/* Toolbrick — Pixel-/Baustein-Stil: alles groß, eckig, wenige Farben, harte Schatten. */
:root {
  --paper: #fff6e0;
  --ink: #141414;
  --y1: #ffd800;
  --y2: #ffaf00;
  --o1: #ff8205;
  --o2: #fa500f;
  --r1: #e10500;
  --px: 8px; /* Grundraster */
  --shadow: 0 var(--px) 0 var(--ink);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; margin: 0; border-radius: 0 !important; }
body { min-height: 100vh; font-size: 20px; line-height: 1.4; }
a { color: inherit; }
::selection { background: var(--y1); }

/* Pixel-Schrift aus Bausteinen (app.js rendert Buchstaben als Raster) */
.pixel-text { display: flex; flex-wrap: wrap; column-gap: calc(var(--cell) * 4); row-gap: calc(var(--cell) * 2); }
.pixel-word { display: inline-flex; gap: var(--cell); flex-wrap: nowrap; }
.pixel-glyph { display: grid; grid-template-columns: repeat(5, var(--cell)); grid-auto-rows: var(--cell); }
.pixel-glyph i { display: block; }
.pixel-glyph i.on {
  background: var(--c, var(--ink));
  /* Noppen: jeder Baustein bekommt einen Lichtpunkt */
  background-image: radial-gradient(circle at 50% 45%, rgba(255,255,255,.35) 0 22%, transparent 24%);
}

/* Kopfzeile */
header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 32px; border-bottom: var(--px) solid var(--ink);
}
#logo { --cell: 7px; cursor: pointer; }
#who { display: flex; align-items: center; gap: 16px; font-weight: 800; text-transform: uppercase; }
.balance { font-size: 32px; font-weight: 900; padding: 6px 14px; background: var(--y1); border: 4px solid var(--ink); box-shadow: var(--shadow); }

/* Farbstreifen wie gestapelte Steine */
.stripes { display: grid; grid-template-columns: repeat(5, 1fr); height: 24px; }
.stripes span:nth-child(1) { background: var(--y1); }
.stripes span:nth-child(2) { background: var(--y2); }
.stripes span:nth-child(3) { background: var(--o1); }
.stripes span:nth-child(4) { background: var(--o2); }
.stripes span:nth-child(5) { background: var(--r1); }

main { max-width: 1200px; margin: 0 auto; padding: 48px 32px 120px; }

/* Startseite */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 48px 0; }
.hero .pixel-text { --cell: clamp(8px, 2.2vw, 22px); }
.hero p { font-size: clamp(22px, 2.6vw, 34px); max-width: 30ch; font-weight: 700; }
.bricks { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0; margin: 24px 0; }
.bricks i { aspect-ratio: 1; display: block; background-image: radial-gradient(circle at 50% 42%, rgba(255,255,255,.35) 0 20%, transparent 22%); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.stack, .card { min-width: 0; }
.step { border: 6px solid var(--ink); padding: 24px; background: #fff; box-shadow: var(--shadow); }
.step b { display: block; font-size: 56px; line-height: 1; }

/* Navigation */
nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
nav button { font-size: 28px; }
nav button[aria-current="true"] { background: var(--ink); color: var(--y1); }

/* Bedienelemente: groß, eckig, harter Schatten */
button, .button {
  font: inherit; font-weight: 900; text-transform: uppercase; letter-spacing: .02em;
  padding: 16px 28px; border: 6px solid var(--ink); background: var(--y1); color: var(--ink);
  box-shadow: var(--shadow); cursor: pointer; text-decoration: none; display: inline-block;
  transition: transform .05s, box-shadow .05s;
}
button:hover, .button:hover { background: var(--o1); }
button:active, .button:active { transform: translateY(var(--px)); box-shadow: none; }
button.ghost { background: #fff; }
button.danger { background: var(--r1); color: #fff; }
button:disabled { opacity: .4; cursor: default; }
input, textarea, select {
  font: inherit; font-size: 24px; width: 100%; min-width: 0; padding: 16px 18px;
  border: 6px solid var(--ink); background: #fff; color: var(--ink); outline: none;
}
input:focus, textarea:focus { background: #fffbe8; box-shadow: inset 0 0 0 4px var(--y1); }
textarea { min-height: 140px; resize: vertical; }
label { display: grid; gap: 8px; font-weight: 800; text-transform: uppercase; font-size: 16px; }
.row { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; }
.row > * { flex: 1 1 220px; min-width: 0; }
.row > button { flex: 0 0 auto; }

h1 { font-size: clamp(40px, 6vw, 80px); line-height: .95; font-weight: 900; text-transform: uppercase; margin-bottom: 32px; }
h2 { font-size: 36px; font-weight: 900; text-transform: uppercase; margin: 48px 0 16px; }
.big { font-size: clamp(56px, 10vw, 128px); font-weight: 900; line-height: 1; }
.muted { opacity: .6; }
.stack { display: grid; gap: 24px; }

/* Karten */
.card { border: 6px solid var(--ink); background: #fff; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.card .link { font-weight: 900; font-size: 22px; word-break: break-all; }
.tag { display: inline-block; padding: 2px 10px; border: 4px solid var(--ink); font-weight: 900; font-size: 16px; text-transform: uppercase; background: var(--y1); }
.tag.draft { background: #fff; }
.tag.published { background: var(--y1); }
.tag.failing { background: var(--r1); color: #fff; }
.price { font-weight: 900; font-size: 26px; }
pre, code { font-family: inherit; }
pre { background: var(--ink); color: var(--y1); padding: 20px; overflow-x: auto; font-size: 16px; border: 6px solid var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 20px; }
td, th { text-align: left; padding: 12px 8px; border-bottom: 4px solid var(--ink); vertical-align: top; }
td input { font-size: 20px; padding: 8px 10px; border-width: 4px; max-width: 200px; }

/* Meldungen */
#toast { position: fixed; left: 32px; right: 32px; bottom: 32px; padding: 20px 24px; font-weight: 900; font-size: 22px; border: 6px solid var(--ink); background: var(--y1); box-shadow: var(--shadow); display: none; z-index: 10; }
#toast.error { background: var(--r1); color: #fff; }

@media (max-width: 640px) {
  body { font-size: 18px; }
  header { padding: 16px; }
  #logo { --cell: 4px; }
  main { padding: 32px 16px 120px; }
  nav button { font-size: 20px; padding: 12px 16px; }
}

/* Anbieter-Statistik: große Zahlen als Bausteine, Tagesbalken aus Steinen */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border: 6px solid var(--ink); }
.stats > div { padding: 16px 20px; font-weight: 800; text-transform: uppercase; font-size: 14px; border-right: 6px solid var(--ink); }
.stats > div:last-child { border-right: 0; }
.stats > div:nth-child(1) { background: var(--y1); }
.stats > div:nth-child(2) { background: var(--y2); }
.stats > div:nth-child(3) { background: var(--o1); }
.stats > div:nth-child(4) { background: var(--o2); color: #fff; }
.stats b { display: block; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; text-transform: none; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 72px; padding-top: 8px; }
.bars i { flex: 1; max-width: 32px; background: var(--o1); background-image: radial-gradient(circle at 50% 6px, rgba(255,255,255,.35) 0 3px, transparent 4px); }
td.num, th.num { text-align: right; font-weight: 900; white-space: nowrap; }
