/* Schriften lokal ausgeliefert (DSGVO: kein Google-Server). Fehlen die Dateien,
   greift die System-Schrift aus --font / --display. */
@font-face { font-family: "Fredoka"; font-weight: 500 600; font-display: swap; src: url("/static/fredoka.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400 800; font-display: swap; src: url("/static/plus-jakarta-sans.woff2") format("woff2"); }

/* KiwiTee-Look (10.10.2026, Milan): Kiwigruen auf hellem Creme, Kiwischale (braun) statt Nacht-Lila,
   Fredoka fuer Logo und Ueberschriften. Alter Look "Studio" gesichert in looks/studio_style.css.
   Davor: Studio v2 — warm, bildlastig, weniger Werkzeug-Optik (Milan 05.10.: "blass, sehr technisch").
   Eine kraeftige Akzentfarbe (Koralle), warmer Grund, Gold fuer Tokens/Seltenheit.
   Weiterhin bewusst: keine Verlaeufe als Deko, keine Emojis, keine Glas-Effekte. */

:root {
  --bg: #f5f8ec;
  --surface: #ffffff;
  --sunk: #e8efd8;
  --ink: #26320f;
  --ink-2: #56633f;
  --ink-3: #8e9a7a;
  --line: #dfe7cc;
  --line-2: #cbd6b3;
  --accent: #5e9e1f;
  --accent-ink: #ffffff;
  --accent-soft: #e3f1cf;
  --accent-deep: #477a14;
  --night: #2b2418;
  --gold: #f2b705;
  --gold-soft: #fff3cc;
  --gold-ink: #7a5600;
  --ok: #24794a;
  --ok-soft: #dff2e6;
  --warn: #9a5b00;
  --warn-soft: #fff0d6;
  --bad: #b02a1e;
  --bad-soft: #fbe3df;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(40, 50, 20, .05), 0 6px 20px rgba(40, 50, 20, .06);
  --display: "Fredoka", var(--font);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1 { font-size: 30px; line-height: 1.15; margin: 0; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 18px; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 15px; margin: 0; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); }

/* ── Kopfzeile ── */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 24px;
  height: 78px; padding: 0 28px 13px; align-items: flex-end;
  background: rgba(245, 248, 236, .92); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -0.02em; }
.logo { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 16px; }
.topnav { display: flex; gap: 2px; flex: 1; position: relative; }

/* Kiwi-Vogel: watschelt ueber den aktiven Reiter */
.kiwi { position: absolute; left: 0; bottom: 100%; margin-bottom: -2px; transition: transform var(--walk, 0s) linear; cursor: pointer; }
.kiwi-flip { display: block; transition: transform .15s; }
.kiwi.left .kiwi-flip { transform: scaleX(-1); }
.kiwi-body { display: block; transform-origin: 50% 100%; }
.kiwi-body svg { display: block; }
.kiwi.walking .kiwi-body { animation: waddle .64s linear infinite; }
.kiwi.hop .kiwi-body { animation: hop .45s ease-out; }
@keyframes waddle { 0%, 100% { transform: rotate(-14deg) translateY(0); } 25% { transform: rotate(0) translateY(-1.5px); } 50% { transform: rotate(14deg) translateY(0); } 75% { transform: rotate(0) translateY(-1.5px); } }
.kiwi.walking .leg-l { animation: step .32s ease-in-out infinite; }
.kiwi.walking .leg-r { animation: step .32s ease-in-out infinite -.16s; }
@keyframes step { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.8px); } }
@keyframes hop { 40% { transform: translateY(-9px) scaleY(1.05); } 75% { transform: translateY(0) scaleY(.9); } }
@media (prefers-reduced-motion: reduce) { .kiwi { transition: none; } .kiwi.walking .kiwi-body, .kiwi.hop .kiwi-body { animation: none; } }
.topnav a { text-decoration: none; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.topnav a:hover { color: var(--ink); background: var(--sunk); }
.topnav a.active { color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.tokens {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); box-shadow: var(--shadow);
}
.tokens b { color: var(--ink); font-size: 15px; }
.tokens.bump { animation: bump .5s ease; }
@keyframes bump { 30% { transform: scale(1.08); } }

.page { max-width: 1160px; margin: 0 auto; padding: 36px 28px 60px; }
.foot { max-width: 1160px; margin: 0 auto; padding: 0 28px 40px; font-size: 13px; }
.foot a { color: var(--ink-3); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head .sub { margin-top: 8px; max-width: 640px; }

/* ── Bausteine ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .08s, box-shadow .15s, background .15s;
}
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px rgba(94, 158, 31, .28); }
.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.dark { background: var(--night); border-color: var(--night); color: #fff; }
.btn.light { background: #fff; border-color: #fff; color: var(--night); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--sunk); color: var(--ink); }
.btn.small { height: 34px; padding: 0 14px; font-size: 13px; }
.cost { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.22); font-size: 12px; font-weight: 800; }
.btn:not(.primary):not(.dark) .cost { background: var(--gold-soft); color: var(--gold-ink); }
.coin { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 2px #d9a300; display: inline-block; flex: none; }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--sunk); color: var(--ink-2); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.accent { background: var(--accent-soft); color: var(--accent-deep); }
.pill.gold { background: var(--gold-soft); color: var(--gold-ink); }
.pill.night { background: var(--night); color: #fff; }

input[type=search], input[type=text] {
  height: 46px; padding: 0 16px; width: 100%; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); font: inherit; color: var(--ink);
}
input:focus, .btn:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(94, 158, 31, .35); outline-offset: 2px; }

.empty { padding: 56px 28px; text-align: center; }
.empty h2 { margin-bottom: 8px; }
.empty .btn { margin-top: 20px; }

/* ── Uebersicht ── */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; margin-bottom: 36px; }
.action { position: relative; overflow: hidden; padding: 28px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; min-height: 240px; }
.action.main { background: var(--accent-soft); border: 2px solid var(--accent); }
.action, .project { border: 1.5px solid #b9d98f; }
.action .go { margin-top: auto; align-self: flex-start; position: relative; z-index: 1; }
.collage { position: absolute; right: -10px; bottom: -26px; display: flex; gap: 10px; transform: rotate(-6deg); }
.collage img { width: 112px; height: 134px; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.action.main .text-col { max-width: 70%; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.big-num { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 16px; }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.project { text-decoration: none; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.project:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(60,40,20,.06), 0 14px 30px rgba(60,40,20,.1); }
.cover { aspect-ratio: 16 / 9; background: var(--accent-soft); display: flex; justify-content: center; align-items: center; gap: 4%; padding: 6% 4% 0; box-sizing: border-box; overflow: hidden; }
.mock-shirt { position: relative; height: 100%; aspect-ratio: 1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M34 7L19 12 3 26l10 15 9-5v58h56V36l9 5 10-15-16-14-15-5c-3 7-9 10-16 10S37 14 34 7z' fill='%231d1f1a'/%3E%3C/svg%3E") center bottom / contain no-repeat; }
.mock-shirt img { position: absolute; left: 29%; top: 22%; width: 42%; height: 48%; object-fit: contain; }
.cover.none { position: relative; }
.cover.none span { position: absolute; top: 50%; left: 0; right: 0; text-align: center; color: var(--ink-2); font-weight: 700; font-size: 13px; }
.project .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.bar { height: 6px; border-radius: 99px; background: var(--sunk); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; background: var(--accent); }
.progress-text { font-size: 13px; color: var(--ink-2); display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Nischensuche ── */
.search-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start; }
.matrix { padding: 22px; }
.matrix-grid { display: grid; grid-template-columns: 112px repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.matrix-grid .ax { font-size: 12px; font-weight: 700; color: var(--ink-3); display: flex; align-items: center; }
.matrix-grid .ax.top { justify-content: center; text-align: center; }
.cell {
  border: 2px solid transparent; border-radius: 12px; padding: 12px 10px; cursor: pointer; text-align: left;
  font: inherit; display: flex; flex-direction: column; gap: 3px; min-height: 80px; transition: transform .1s, border-color .15s;
}
.cell:hover { transform: translateY(-1px); }
.cell .n { font-size: 22px; font-weight: 800; line-height: 1.05; }
.cell .lbl { font-size: 11px; opacity: .8; font-weight: 600; }
.cell .p { font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 4px; margin-top: auto; }
.cell.on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31,26,20,.1); }
.cell:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.r0 { background: #e8efd8; color: var(--ink-2); }
.r1 { background: #e3f1cf; color: #2f4a0e; }
.r2 { background: #c6e39f; color: #2a420b; }
.r3 { background: #93c95a; color: #1b2c05; }
.r4 { background: var(--night); color: #fff; }
.r4 .p { color: var(--gold); }
.legend { display: flex; gap: 14px; align-items: center; margin-top: 14px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; font-weight: 600; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.broad { margin-top: 14px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; border: 2px solid transparent; background: var(--sunk); border-radius: 12px; width: 100%; font: inherit; text-align: left; color: var(--ink); }
.broad.on { border-color: var(--ink); }

.runner { padding: 24px; position: sticky; top: 84px; display: flex; flex-direction: column; gap: 12px; }
.runner .choice { font-size: 20px; font-weight: 800; line-height: 1.25; }
.steps-live { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 10px; }
.steps-live li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); opacity: 0; transform: translateY(4px); transition: all .25s; }
.steps-live li.show { opacity: 1; transform: none; }
.steps-live .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }

.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; margin-top: 28px; }
.result { padding: 22px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.result.rare { background: var(--night); color: #fff; border-color: var(--night); }
.result.rare .muted, .result.rare .faint { color: #d6ccb8; }
.result .name { font-size: 24px; font-weight: 800; letter-spacing: .01em; line-height: 1.2; }
.result .name.masked { letter-spacing: .14em; }
.result .name.revealed { animation: reveal .5s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fact { background: var(--sunk); border-radius: 10px; padding: 10px 12px; }
.result.rare .fact { background: rgba(255,255,255,.08); }
.fact b { display: block; font-size: 15px; }
.fact span { font-size: 11px; color: var(--ink-3); font-weight: 700; }
.result.rare .fact span { color: #ada28c; }

/* ── Meine Nischen ── */
.niche-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.niche-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; }

/* ── Stile / Varianten ── */
.style-group { margin-bottom: 32px; }
.style-group .gh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.variants-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.variant { padding: 0; overflow: hidden; cursor: pointer; border: 2px solid var(--line); transition: transform .1s, border-color .15s; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.variant:hover { transform: translateY(-2px); }
.variant .pic { aspect-ratio: 1 / 1; background: #2b2418; display: grid; place-items: center; position: relative; overflow: hidden; }
.variant .pic img { width: 100%; height: 100%; object-fit: cover; }
.variant .pic.empty { background: var(--sunk); }
.variant .pic .ph { color: var(--ink-2); font-size: 15px; font-weight: 800; padding: 16px; text-align: center; line-height: 1.3; letter-spacing: -0.01em; }
.variant .pic .ph small { display: block; margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.variant .tick { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.92); color: transparent; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.variant .vlabel { padding: 10px 12px 12px; font-size: 14px; font-weight: 700; line-height: 1.3; }
.variant.on { border-color: var(--accent); }
.variant.on .tick { background: var(--accent); color: #fff; }

.summary {
  position: sticky; bottom: 18px; margin-top: 10px; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 12px 12px 12px 24px; background: var(--night); color: #fff; border-radius: 999px; box-shadow: 0 14px 34px rgba(43,36,24,.35);
}
.summary .muted { color: #d6ccb8; }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #6b5d45; background: transparent; color: #fff; cursor: pointer; font: inherit; font-weight: 700; }

/* ── Looks (6) ── */
.looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-bottom: 10px; }
.look { padding: 0; overflow: hidden; cursor: pointer; text-align: left; font: inherit; color: var(--ink); border: 2px solid var(--line); transition: transform .1s, border-color .15s; }
.look:hover { transform: translateY(-2px); }
.look.on { border-color: var(--accent); }
.look-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: #2a2d26; aspect-ratio: 3 / 1.25; }
.look-pics img { width: 100%; height: 100%; object-fit: contain; padding: 8px; box-sizing: border-box; display: block; background: #111; }
.look-ph { background: var(--sunk); }
.look-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.look-row { display: flex; justify-content: space-between; align-items: center; }
.look .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--sunk); color: transparent; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.look-count { display: inline-flex; align-items: center; gap: 6px; }
.look-count b { min-width: 18px; text-align: center; font-size: 16px; }
.look-count button { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; font-weight: 800; }
.look-count button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-deep); }
.look-count button:disabled { opacity: .35; cursor: default; }
.look.on .look-count b { color: var(--accent-deep); }
.look:not(.on) .look-pics { opacity: .45; }

/* ── Projekt ── */
.steps { display: flex; gap: 6px; margin: 0 0 26px; flex-wrap: wrap; }
.steps a, .steps span.static {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px;
  text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px;
}
.steps .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 800; background: var(--line); color: var(--ink-2); }
.steps .done .n { background: var(--ok-soft); color: var(--ok); }
.steps a:hover { background: var(--sunk); }
.steps .on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.steps .on .n { background: var(--accent); color: #fff; }
.steps span.static { cursor: default; }

.project-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; margin-bottom: 24px; }
.kv { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 12px; }
.kv div { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.kv b { display: block; font-size: 17px; color: var(--ink); font-weight: 800; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

.banner { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14px; }
.banner.info { background: var(--accent-soft); color: var(--accent-deep); }
.banner.ok { background: var(--ok-soft); color: var(--ok); }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.spinner { width: 16px; height: 16px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.split { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }

.concepts { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.concept { padding: 10px; display: flex; flex-direction: column; gap: 4px; }
/* Spruch wie aufs Shirt gedruckt: hell auf Schwarz, Nische als kleine Zeile in Kiwigruen */
.spruch { background: #1d1f1a; color: #fff; border-radius: 10px; min-height: 140px; padding: 22px 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 8px; }
.spruch p { font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.2; }
.spruch small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8dc63f; }
.concept-body { padding: 12px 10px 6px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.concept .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.concept-foot { margin-top: auto; display: flex; justify-content: flex-end; }
.label { font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.concept details summary { cursor: pointer; color: var(--accent-deep); font-weight: 700; font-size: 13px; }
.prompt { margin-top: 10px; padding: 12px; background: var(--sunk); border-radius: 10px; font: 12px/1.55 var(--mono); white-space: pre-wrap; max-height: 240px; overflow: auto; }

.swatches { display: inline-flex; gap: 8px; align-items: center; padding: 6px 10px; background: var(--surface); border-radius: 999px; border: 1px solid var(--line); }
.swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); cursor: pointer; padding: 0; }
.swatch.on { outline: 2px solid var(--accent); outline-offset: 2px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.tile { overflow: hidden; display: flex; flex-direction: column; }
.tile .img { aspect-ratio: 5 / 6; display: grid; place-items: center; background: var(--tee, #111); transition: background .2s; position: relative; }
.tile .img img { width: 84%; height: 84%; object-fit: contain; }
.tile .img .ph { color: #9b9187; font-size: 13px; font-weight: 600; }
.tile .redo { position: absolute; top: 10px; right: 10px; opacity: 0; transition: opacity .15s; }
.tile:hover .redo, .tile .redo:focus-visible { opacity: 1; }
.tile .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.tile .text { font-size: 14px; font-weight: 700; line-height: 1.35; }
.tile .tags { display: flex; gap: 6px; flex-wrap: wrap; }

.listing-card { padding: 22px; margin-bottom: 18px; display: grid; grid-template-columns: 220px 1fr; gap: 22px; }
.export-list { display: flex; flex-direction: column; }
.export-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.export-row:last-child { border-bottom: 0; }
.export-row img { width: 64px; height: 76px; object-fit: contain; background: #111; border-radius: 8px; }
.export-row .t { font-weight: 700; font-size: 14px; }

/* ── Tokens ── */
.ledger-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ledger-row:last-child { border-bottom: 0; }
.plus { color: var(--ok); font-weight: 800; }
.minus { color: var(--ink); font-weight: 800; }
.price-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 26px; }
.price-table .card { padding: 16px 18px; }
.price-table b { font-size: 22px; display: flex; align-items: center; gap: 6px; }

/* ── intern: alte Tabelle ── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: #f8fbf1; }
.table .r { text-align: right; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: var(--night); color: #fff; padding: 12px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: all .2s; max-width: 90vw; font-weight: 600; z-index: 20; }
.toast.show { opacity: 1; transform: translateX(-50%); }

dialog { border: 0; border-radius: 18px; padding: 0; width: min(480px, 92vw); color: var(--ink); box-shadow: 0 30px 60px rgba(43,36,24,.3); }
dialog::backdrop { background: rgba(43, 36, 24, .45); }
dialog .d-body { padding: 26px 26px 18px; display: flex; flex-direction: column; gap: 10px; }
dialog .d-foot { padding: 14px 20px; display: flex; justify-content: flex-end; gap: 10px; background: var(--bg); }

@media (max-width: 860px) {
  .hero, .search-layout { grid-template-columns: 1fr; }
  .runner { position: static; }
  .listing-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page { padding: 22px 16px 50px; }
  .foot { padding: 0 16px 30px; }
  .topbar { padding: 8px 16px; gap: 10px 12px; height: auto; flex-wrap: wrap; }
  .topnav { order: 3; flex-basis: 100%; overflow-x: auto; padding-top: 26px; }
  .kiwi { bottom: auto; top: 0; margin-bottom: 0; }   /* Handy: Nav scrollt -> Vogel innerhalb, sonst abgeschnitten */
  .topbar { align-items: center; }
  .hide-sm { display: none; }
  h1 { font-size: 24px; }
  .collage { display: none; }
  .action.main .text-col { max-width: 100%; }
  .matrix { padding: 16px; }
  .matrix-grid { grid-template-columns: 64px repeat(3, 1fr); gap: 6px; }
  .cell { padding: 8px 6px; min-height: 66px; }
  .cell .n { font-size: 17px; }
  .cell .lbl { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .project-head { grid-template-columns: 1fr; }
  .summary { border-radius: 18px; padding: 14px 16px; }
  .concepts { grid-template-columns: 1fr; }
  .variants-grid { grid-template-columns: repeat(2, 1fr); }
  .export-row { grid-template-columns: 48px 1fr; }
  .export-row img { width: 48px; height: 58px; }
}

/* Weiter-Knopf am Seitenende (10.10.: nur oben war er leicht zu uebersehen) */
.next-step { display: flex; justify-content: flex-end; margin-top: 24px; }

/* KiwiTee: Fredoka fuer Logo und Ueberschriften */
h1, h2, .brand, .big-num, .result .name, .runner .choice { font-family: var(--display); }
h1 { font-weight: 600; letter-spacing: -0.01em; }
h2, .brand { font-weight: 600; }
.brand svg { flex: none; }

/* ── Konten (13.10.) ── */
.account { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow); }
.account:hover { color: var(--ink); }
body.anon .topnav, body.anon .tokens, body.anon .account { visibility: hidden; }
.auth { max-width: 420px; margin: 40px auto; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.auth h1 { font-size: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.field input { font: inherit; font-weight: 500; padding: 11px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); }
.field input:focus { outline: none; border-color: var(--accent); }
.auth .btn { justify-content: center; }
.auth .err { color: var(--bad); font-weight: 600; font-size: 14px; min-height: 1em; }
.admin-grid { display: grid; gap: 18px; }
.admin-row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.admin-row .field { flex: 1; min-width: 160px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td.r, .table th.r { text-align: right; }
.table input { width: 80px; font: inherit; padding: 6px 8px; border-radius: 8px; border: 1.5px solid var(--line-2); }
.linkbox { display: flex; gap: 8px; align-items: center; background: var(--accent-soft); border: 1.5px solid var(--accent); border-radius: var(--radius-sm); padding: 10px 12px; font: 13px var(--mono); word-break: break-all; }

/* ── Rechtstexte (14.10.) ── */
.legal { max-width: 760px; margin: 0 auto; padding: 32px 36px; }
.legal h1 { margin-bottom: 14px; }
.legal h2 { font-size: 17px; margin: 22px 0 6px; }
.legal p, .legal li { line-height: 1.6; }
.legal ul { padding-left: 20px; display: grid; gap: 4px; }
.legal-foot { text-align: center; color: var(--ink-3); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); }
.legal-kurz { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 8px; margin: 6px 0 10px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.legal-table th { text-align: left; font-size: 12px; color: var(--ink-3); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.legal-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
@media (max-width: 640px) { .legal { padding: 22px 18px; } .legal-table { font-size: 13px; } }
