/* JournalTailor — Marketing-Website
   Ein Motiv: der gelbe Fundstellen-Marker. Eine Markenfarbe: Indigo→Violett.
   Keine Webfonts (DSGVO, Tempo) – Systemschriften. */

:root {
  --bg: #f7f5ef;
  --bg-2: #efece3;
  --surface: #ffffff;
  --ink: #14131d;
  --ink-2: #3b3949;
  --muted: #625f72;
  --line: #e2ded2;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-ink: #ffffff;
  --marker: #ffe14d;
  --marker-soft: rgba(255, 225, 77, 0.55);
  --marker-line: #e3b400;
  --danger: #c8321f;
  --danger-soft: rgba(200, 50, 31, 0.1);
  --ok: #0f7a57;
  --ok-soft: rgba(15, 122, 87, 0.12);
  --paper: #fffefa;
  --paper-ink: #1d1c26;
  --code-bg: #14131d;
  --code-ink: #e9e7f5;
  --shadow: 0 1px 2px rgba(20, 19, 29, 0.06), 0 12px 32px -12px rgba(20, 19, 29, 0.18);
  --radius: 14px;
  --wrap: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0d15;
    --bg-2: #14131d;
    --surface: #17161f;
    --ink: #efeef6;
    --ink-2: #cfcde0;
    --muted: #a3a0b6;
    --line: #2a2838;
    --brand: #8b85ff;
    --brand-2: #b286ff;
    --brand-ink: #0e0d15;
    --marker-soft: rgba(255, 214, 10, 0.3);
    --marker-line: #ffd60a;
    --danger: #ff7a66;
    --danger-soft: rgba(255, 122, 102, 0.12);
    --ok: #4fd1a5;
    --ok-soft: rgba(79, 209, 165, 0.12);
    --paper: #fbfaf5;
    --code-bg: #07060c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.6rem, 6.6vw, 5.6rem); font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 780; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.small { font-size: 0.86rem; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.mono { font-family: var(--mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 700; text-decoration: none;
  padding: 0.85em 1.35em; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 1rem; box-shadow: 0 8px 24px -10px rgba(79, 70, 229, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
@media (prefers-color-scheme: dark) { .btn { color: #0e0d15; } }
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(79, 70, 229, 0.85); }
@media (prefers-color-scheme: dark) { .btn:hover { color: #0e0d15; } }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (prefers-color-scheme: dark) { .btn-ghost, .btn-ghost:hover { color: var(--ink); } }
.btn-marker { background: var(--marker); color: #14131d; box-shadow: 0 8px 22px -10px rgba(227, 180, 0, 0.9); }
.btn-marker:hover, .btn-marker:focus { color: #14131d; }
@media (prefers-color-scheme: dark) { .btn-marker, .btn-marker:hover { color: #14131d; } }
.btn-small { padding: 0.5em 1em; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Ribbon + Header ---------- */
.ribbon { background: var(--ink); color: var(--bg); font-size: 0.86rem; }
.ribbon-in { display: flex; gap: 12px; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.ribbon a { color: var(--marker); font-weight: 700; text-decoration: none; white-space: nowrap; }
.ribbon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--marker); box-shadow: 0 0 0 0 rgba(255, 225, 77, 0.7); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 225, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 225, 77, 0); } }

.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; font-size: 1.12rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.logo-mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-2); font-weight: 560; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); background: linear-gradient(transparent 60%, var(--marker-soft) 60%); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); color: var(--ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 1180px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; }
}

/* ---------- Fundstellen-Marker (das Motiv) ---------- */
mark, .fs {
  background: linear-gradient(104deg, transparent 0.4em, var(--marker-soft) 0.5em, var(--marker-soft) calc(100% - 0.4em), transparent calc(100% - 0.3em));
  color: inherit; padding: 0 0.35em; margin: 0 -0.2em; border-radius: 0.2em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.fs { cursor: pointer; transition: background 0.15s ease; }
.fs:hover, .fs[aria-expanded="true"] { background: var(--marker); color: #14131d; }
.fs-n {
  display: inline-grid; place-items: center; min-width: 1.35em; height: 1.35em; margin-left: 0.2em;
  font-size: 0.62em; font-weight: 800; line-height: 1; vertical-align: 0.55em;
  border-radius: 999px; background: var(--ink); color: var(--bg); font-family: var(--mono); letter-spacing: 0;
}
/* Fundstellen-Popover als Kassenzettel – derselbe Papierbeleg wie im Hero, in hell und dunkel */
.fs-pop {
  position: absolute; z-index: 60; width: min(380px, calc(100vw - 32px));
  filter: drop-shadow(0 16px 26px rgba(10, 9, 20, 0.28)) drop-shadow(0 1px 1px rgba(10, 9, 20, 0.14));
  animation: pop-in 0.18s ease-out both;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) rotate(-0.4deg); } }
.fs-pop-paper {
  background: #fffefa; color: #1d1c26; border-radius: 4px 4px 0 0; padding: 16px 20px 28px; font-size: 0.92rem;
  --zz: 8px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zz)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zz)) 100%;
}
.fs-pop-head { display: flex; align-items: center; gap: 10px; padding: 0 28px 10px 0; margin-bottom: 12px; border-bottom: 1.5px solid #1d1c26; font: 700 0.68rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: #6b6878; }
.fs-pop-no { background: #14131d; color: #fffefa; border-radius: 999px; padding: 4px 9px; letter-spacing: 0.06em; }
.fs-pop-title { font-size: 1.06rem; margin: 0 0 8px; letter-spacing: -0.01em; line-height: 1.25; }
.fs-pop-title span { background: linear-gradient(transparent 58%, rgba(255, 225, 77, 0.75) 58%, rgba(255, 225, 77, 0.75) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.fs-pop-detail { margin: 0 0 12px; color: #3b3949; line-height: 1.55; }
.fs-pop-src { margin: 0; padding-top: 10px; border-top: 1px dashed #c9c5b8; font: 0.74rem/1.5 var(--mono); color: #5b5866; }
.fs-pop-src a { color: #1d1c26; }
.fs-pop-src a:hover { color: var(--brand); }
.fs-pop-close { position: absolute; top: 8px; right: 8px; background: none; border: 0; font-size: 1.35rem; line-height: 1; color: #6b6878; cursor: pointer; padding: 6px 9px; border-radius: 6px; }
.fs-pop-close:hover { background: #efece3; color: #1d1c26; }
.fs-tail { white-space: nowrap; }

/* Konami-Modus: alles belegen */
body.all-marked main p, body.all-marked main h2, body.all-marked main li { background: var(--marker-soft); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: var(--bg-2); }
.section-dark { background: var(--ink); color: var(--bg); }
.section-dark .muted { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.section-dark a:hover { color: var(--marker); }
.eyebrow { font: 700 0.76rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.16em; color: var(--brand); margin-bottom: 18px; display: inline-flex; gap: 8px; align-items: center; }
.section-dark .eyebrow { color: var(--marker); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 62ch; }
.section-dark .lead { color: color-mix(in srgb, var(--bg) 82%, transparent); }
.head { max-width: 760px; margin-bottom: 48px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-num { font: 800 0.8rem/1 var(--mono); color: var(--muted); margin-bottom: 14px; display: block; letter-spacing: 0.08em; }
.pill { display: inline-block; font: 700 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--marker-soft); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); position: relative; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 780px; max-height: 780px;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.16), transparent 70%); pointer-events: none; z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 0.35em; }
.hero h1 .l2 { display: block; color: var(--ink-2); }
.swipe {
  background-image: linear-gradient(104deg, transparent 0.25em, var(--marker) 0.35em, var(--marker) calc(100% - 0.25em), transparent calc(100% - 0.15em));
  background-repeat: no-repeat; background-size: 0% 72%; background-position: 0 70%;
  animation: swipe 1.1s 0.5s cubic-bezier(0.6, 0, 0.2, 1) forwards; color: var(--ink); padding: 0 0.2em 0 0.08em;
}
@media (prefers-color-scheme: dark) { .swipe { animation-name: swipe-dark; } }
@keyframes swipe { to { background-size: 100% 72%; } }
@keyframes swipe-dark { to { background-size: 100% 72%; color: #14131d; } }
.hero .lead { margin-bottom: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 0.9rem; color: var(--muted); padding: 0; list-style: none; }
.hero-proof li::before { content: "✓ "; color: var(--ok); font-weight: 800; }

/* ---------- Lebender Beleg ---------- */
.stage { position: relative; }
.beleg {
  background: var(--paper); color: var(--paper-ink); border-radius: 6px 6px 0 0; padding: 26px 26px 34px;
  box-shadow: var(--shadow); font-size: 0.86rem; position: relative; transform: rotate(-1.2deg);
  --zz: 10px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zz)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zz)) 100%;
}
.beleg-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1.5px solid #1d1c26; padding-bottom: 12px; margin-bottom: 14px; }
.beleg-sup { font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; }
.beleg-title { font: 800 1.35rem/1 var(--font); letter-spacing: 0.08em; text-align: right; }
.beleg-meta { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin-bottom: 14px; font-family: var(--mono); font-size: 0.8rem; }
.beleg table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.78rem; margin-bottom: 12px; }
.beleg th { text-align: left; font-weight: 700; border-bottom: 1px solid #c9c5b8; padding: 4px 0; }
.beleg td { padding: 4px 0; border-bottom: 1px dashed #dcd8cb; }
.beleg .r { text-align: right; }
.beleg-sum { display: grid; grid-template-columns: 1fr auto; gap: 2px 18px; font-family: var(--mono); font-size: 0.82rem; margin-left: auto; width: max-content; }
.beleg-sum .tot { font-weight: 800; font-size: 0.95rem; border-top: 1.5px solid #1d1c26; padding-top: 4px; }
.beleg-foot { margin-top: 14px; font-family: var(--mono); font-size: 0.72rem; color: #5b5866; }
.fld { position: relative; border-radius: 3px; transition: background 0.3s ease, box-shadow 0.3s ease; padding: 0 2px; margin: 0 -2px; }
.fld.on { background: rgba(255, 225, 77, 0.65); box-shadow: 0 0 0 2px var(--marker-line); }
.fld.on::after {
  content: attr(data-n); position: absolute; top: -10px; right: -12px; width: 18px; height: 18px; border-radius: 50%;
  background: #14131d; color: #fff; font: 800 0.66rem/18px var(--mono); text-align: center;
}
.buchung {
  background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius); padding: 18px 18px 16px; margin: -18px 18px 0 30px;
  position: relative; box-shadow: var(--shadow); font-family: var(--mono); font-size: 0.8rem; transform: rotate(0.6deg);
}
@media (max-width: 560px) { .buchung { margin: -12px 0 0 0; transform: none; } .beleg { transform: none; } }
.buchung-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.buchung-label { font-weight: 700; color: #a8a4c0; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.68rem; }
.tabs { display: inline-flex; background: rgba(255, 255, 255, 0.08); border-radius: 999px; padding: 3px; }
.tabs button { background: none; border: 0; color: #cfcce2; font: 700 0.74rem/1 var(--mono); padding: 7px 11px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--marker); color: #14131d; }
.buchung pre { margin: 0; white-space: pre-wrap; word-break: break-word; line-height: 1.55; min-height: 9.4em; }
.buchung .hl { background: rgba(255, 225, 77, 0.28); color: #fff3b0; border-radius: 3px; transition: background 0.3s; }
.buchung .hl.on { background: var(--marker); color: #14131d; }
.buchung-foot { margin-top: 10px; color: #8d89a6; font-size: 0.7rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.status-ok { color: #4fd1a5; }

/* ---------- Flow ---------- */
.flow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.flow li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 14px; position: relative; counter-increment: s; }
.flow li::before { content: counter(s, decimal-leading-zero); font: 800 0.72rem/1 var(--mono); color: var(--muted); display: block; margin-bottom: 10px; }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--muted); z-index: 1; background: var(--bg); line-height: 1; }
.flow h3 { font-size: 1.02rem; margin-bottom: 6px; }
.flow p { font-size: 0.84rem; color: var(--muted); margin: 0; }
@media (max-width: 1100px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } .flow li::after { display: none; } }
@media (max-width: 640px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Meta-Band „BELEGT.“ ---------- */
.belegt-band { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.belegt-word { font: 900 clamp(3rem, 9vw, 7.5rem)/0.9 var(--font); letter-spacing: -0.05em; }
.belegt-word span { background: linear-gradient(104deg, transparent 0.1em, var(--marker) 0.15em, var(--marker) calc(100% - 0.1em), transparent); color: #14131d; padding: 0 0.1em; }
@media (max-width: 860px) { .belegt-band { grid-template-columns: 1fr; } }

/* ---------- Betrugsschild ---------- */
.fraud { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 860px) { .fraud { grid-template-columns: 1fr; } }
.mail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.mail-head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.84rem; color: var(--muted); display: grid; gap: 2px; }
.mail-head b { color: var(--ink); }
.mail-body { padding: 18px; font-size: 0.95rem; }
.alert { border-radius: var(--radius); padding: 22px; border: 1.5px solid var(--danger); background: var(--danger-soft); }
.alert-title { color: var(--danger); font-weight: 800; display: flex; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 1.05rem; }
.alert ul { margin: 0; padding-left: 1.1em; }
.alert li { margin-bottom: 6px; }
.iban-diff { font-family: var(--mono); font-size: 0.86rem; background: var(--surface); border-radius: 8px; padding: 10px 12px; margin: 12px 0; border: 1px solid var(--line); }
.iban-diff del { color: var(--muted); }
.iban-diff ins { text-decoration: none; background: var(--danger-soft); color: var(--danger); font-weight: 700; }

/* ---------- Zielsysteme / Wortmarken ---------- */
.targets { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.target { font: 900 clamp(1.6rem, 4vw, 3rem)/1 var(--font); letter-spacing: -0.03em; padding: 14px 24px; border: 2px solid var(--line); border-radius: 16px; color: var(--ink-2); }
.target-plus { border-style: dashed; font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 700; color: var(--muted); }

/* ---------- Vergleich ---------- */
.filter { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 22px; background: var(--surface); }
.filter legend { font-weight: 700; padding: 0 6px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 0.9rem; font-weight: 600; user-select: none; }
.chip input { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; }
.chip:has(input:checked) { border-color: var(--marker-line); background: var(--marker-soft); }
.table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.vg { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 900px; }
.vg caption { text-align: left; padding: 14px 16px; color: var(--muted); font-size: 0.82rem; caption-side: bottom; border-top: 1px solid var(--line); }
.vg th, .vg td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.vg thead th { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; background: var(--bg-2); position: sticky; top: 0; }
.vg tbody th { font-weight: 700; min-width: 170px; }
.vg td.v-price { min-width: 150px; }
.vg .v { text-align: center; }
.vg .v-yes { color: var(--ok); font-size: 1.1rem; }
.vg .v-no { color: var(--muted); font-size: 1.1rem; }
.vg .v-na { color: var(--muted); font-size: 0.78rem; font-style: italic; }
.vg .v-part { font-size: 0.8rem; color: var(--ink-2); }
.vg .v-price { text-align: left; font-size: 0.82rem; color: var(--ink-2); }
.vg tr.self { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.vg tr.self th { color: var(--brand); }
.vg tr.dim { opacity: 0.32; }
.vg tr.match th::after { content: " ✓"; color: var(--ok); }
.vg th.sel { color: var(--ink); background: var(--marker-soft); }
.honest { border-color: var(--marker-line); }
.honest li { margin-bottom: 10px; }

/* ---------- Countdown ---------- */
.cd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 640px; }
.cd div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 10px; text-align: center; }
.section-dark .cd div { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); }
.cd b { display: block; font: 900 clamp(2rem, 6vw, 3.6rem)/1 var(--mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cd span { font: 700 0.7rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--muted); }
.timeline li.now::before { border-color: var(--marker-line); background: var(--marker); }
.timeline li.past::before { background: var(--muted); }
.timeline time { font: 800 0.8rem/1 var(--mono); letter-spacing: 0.06em; color: var(--brand); display: block; margin-bottom: 6px; }

/* ---------- Abtipp-Test ---------- */
.game { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 920px) { .game { grid-template-columns: 1fr; } }
.game .beleg { transform: none; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 650; font-size: 0.92rem; }
.form input, .form select, .form textarea {
  font: 500 1rem/1.3 var(--font); padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.form .mono input, .form input.mono { font-family: var(--mono); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } }
.form input.ok { border-color: var(--ok); background: var(--ok-soft); }
.form input.bad { border-color: var(--danger); background: var(--danger-soft); }
.form .hint { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.clock { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.clock b { font: 900 clamp(2.4rem, 6vw, 3.4rem)/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.clock span { color: var(--muted); font-size: 0.9rem; }
.result { display: none; }
.result.show { display: block; animation: rise 0.5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat b { display: block; font: 900 1.9rem/1.1 var(--mono); letter-spacing: -0.03em; }
.stat span { font-size: 0.82rem; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; gap: 10px; }
canvas.card-canvas { width: 100%; max-width: 600px; height: auto; border-radius: 12px; box-shadow: var(--shadow); display: block; margin: 16px 0; }

/* ---------- Belegt-Seite ---------- */
.belegt-group { margin-bottom: 48px; }
.belegt-list { list-style: none; counter-reset: b; padding: 0; margin: 0; display: grid; gap: 14px; }
.belegt-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; counter-increment: b; scroll-margin-top: 110px; }
.belegt-list li:target { box-shadow: 0 0 0 3px var(--marker); }
.belegt-list li::before { content: "#" counter(b, decimal-leading-zero); display: block; font: 700 0.7rem/1 var(--mono); letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; }
.belegt-list h3 { font-size: 1.05rem; margin-bottom: 6px; }
.belegt-list p { margin-bottom: 6px; }

/* ---------- Prosa (Rechtstexte) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }
.todo { background: var(--danger-soft); color: var(--danger); padding: 0 4px; border-radius: 4px; font-weight: 700; }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.nf h1 { font-size: clamp(2.4rem, 7vw, 5rem); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--bg-2); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid a:not(.brand) { display: block; text-decoration: none; color: var(--ink-2); padding: 3px 0; font-size: 0.93rem; }
.footer-h { font: 700 0.74rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin: 6px 0 14px; }
.footer-claim { font-weight: 700; margin: 14px 0 6px; max-width: 30ch; }
.footer-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-legal p { margin-bottom: 6px; max-width: 110ch; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .swipe { background-size: 100% 72%; }
}
@media print {
  .ribbon, .site-header, .site-footer, .fs-pop { display: none; }
}
.btn-center { justify-content: center; }

/* Hero-Feinschliff */
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.6rem); }
h1 .fs { background: linear-gradient(transparent 62%, var(--marker-soft) 62%, var(--marker-soft) 92%, transparent 92%); padding: 0; margin: 0; }
h1 .fs:hover, h1 .fs[aria-expanded="true"] { background: linear-gradient(transparent 62%, var(--marker) 62%, var(--marker) 92%, transparent 92%); color: inherit; }
h1 .fs-n { font-size: 0.28em; vertical-align: 1.9em; }
.targets { margin-bottom: 28px; }
.fraud + p { margin-top: 18px; }
.fs-n { padding: 0 0.32em; }
.beleg th.r, .beleg td.r { padding-left: 12px; white-space: nowrap; }
.result { scroll-margin-top: 110px; }

/* Dunkle Flächen bleiben in beiden Farbschemata dunkel */
.ribbon, .section-dark { background: #14131d; color: #efeef6; }
.section-dark .muted { color: #a8a4c0; }
.section-dark .lead { color: #cfcde0; }
.section-dark h1 .l2 { color: #9d99b8; }
.section-dark .cd span { color: #a8a4c0; }
.section-dark .fs-n { background: #efeef6; color: #14131d; }
.section-dark mark, .section-dark .fs { background: linear-gradient(104deg, transparent 0.4em, rgba(255, 214, 10, 0.32) 0.5em, rgba(255, 214, 10, 0.32) calc(100% - 0.4em), transparent calc(100% - 0.3em)); }
.section-dark .fs:hover { background: var(--marker); color: #14131d; }
.cd { margin: 8px 0 28px; }

/* App-Absprung */
.nav { gap: 18px; }
.nav .nav-app { box-shadow: inset 0 0 0 1.5px var(--line); }
.section-dark .btn-on-dark, .section-dark .btn-on-dark:hover { color: #efeef6; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28); }
.section-dark .btn-on-dark:hover { box-shadow: inset 0 0 0 1.5px #efeef6; }
@media (max-width: 1180px) { .nav .nav-app { margin-top: 14px; justify-content: center; } .nav .nav-app + .btn { margin-top: 10px; } }
.nav a { white-space: nowrap; }
.header-mobile { display: none; gap: 8px; align-items: center; }
.app-mobile { box-shadow: inset 0 0 0 1.5px var(--line); }
@media (max-width: 1180px) { .header-mobile { display: flex; } .nav .nav-app { display: none; } }

/* ---------- Die 20 fiesesten Belege ---------- */
.belege-bar { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); position: sticky; top: 76px; z-index: 30; box-shadow: var(--shadow); }
.belege-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.belege-tabs button { font: 650 0.9rem/1 var(--font); padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: none; color: var(--ink); cursor: pointer; }
.belege-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.belege-score { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.belege-score b { font: 900 1.6rem/1 var(--mono); background: var(--marker); color: #14131d; padding: 2px 10px; border-radius: 6px; }
section[data-cat][hidden] { display: none; }
.bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .bgrid { grid-template-columns: 1fr; } }
.bcard { position: relative; background: var(--paper); color: #1d1c26; border-radius: 6px; padding: 22px 22px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; transition: transform 0.2s ease; }
.bcard:nth-child(3n + 1) { transform: rotate(-0.5deg); }
.bcard:nth-child(3n + 2) { transform: rotate(0.4deg); }
.bcard:hover { transform: rotate(0) translateY(-2px); }
.bcard-no { font: 800 0.72rem/1 var(--mono); letter-spacing: 0.12em; color: #6b6878; }
.bcard h3 { margin: 0; font-size: 1.12rem; color: #14131d; }
.bcard-quote { margin: 0; font-family: var(--mono); font-size: 0.84rem; line-height: 1.5; color: #3b3949; padding: 10px 12px; background: #f4f1e8; border-radius: 4px; border: 1px dashed #d8d3c4; }
.bcard-fix { margin: 0; font-size: 0.93rem; color: #1d1c26; flex: 1; }
.bcard .fs { color: #1d1c26; }
.bcard .fs-n { background: #14131d; color: #fffefa; }
.kenn { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 650; color: #3b3949; cursor: pointer; align-self: flex-start; padding: 6px 10px 6px 8px; border-radius: 999px; border: 1.5px solid #d8d3c4; }
.kenn input { accent-color: #14131d; width: 16px; height: 16px; margin: 0; }
.bcard.known .kenn { background: #ffe14d; border-color: #e3b400; color: #14131d; }
.bcard-mafia { background: #fffefa; }
.stamp { position: absolute; top: 16px; right: 16px; font: 900 0.72rem/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: #c8321f; border: 2px solid #c8321f; border-radius: 4px; padding: 5px 8px; transform: rotate(6deg); opacity: 0.85; }
.mafia .head .lead em { color: var(--marker); font-style: normal; font-weight: 700; }
.jargon { margin-top: 40px; max-width: 760px; padding: 22px 24px; border: 1px dashed rgba(255, 255, 255, 0.28); border-radius: var(--radius); }
.jargon h3 { color: #efeef6; margin-bottom: 10px; }
.jargon p { color: #cfcde0; font-size: 0.95rem; }
.jargon p:last-child { margin-bottom: 0; }

/* ---------- Story ---------- */
.story { max-width: 820px; }
.story-hero h1 { max-width: 18ch; }
.chapters { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 44px; }
.chapters h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.chapters p { font-size: 1.08rem; color: var(--ink-2); }
.story-outro { font: italic 600 clamp(1.3rem, 2.4vw, 1.7rem)/1.35 ui-serif, Georgia, "Times New Roman", serif; text-align: center; margin: 56px auto; max-width: 30ch; }
.founder, .origin, .pivot { margin: 56px 0; }
.founder { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.founder h2, .origin h2, .pivot h2 { font-family: ui-serif, Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -0.01em; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.founder p, .origin p, .pivot p { font-size: 1.04rem; line-height: 1.7; }
.founder-all { font: italic 800 1.9rem/1 ui-serif, Georgia, serif; background: linear-gradient(transparent 58%, var(--marker-soft) 58%); padding: 0 4px; }
.origin-quote { margin: 20px 0; padding: 0; font: italic 700 clamp(1.4rem, 3vw, 2rem)/1.3 ui-serif, Georgia, serif; text-align: center; }
.origin-list, .pivot-list { padding-left: 1.1em; }
.origin-list li, .pivot-list li { margin-bottom: 12px; line-height: 1.65; }
.pivot-beat { font: 700 1.25rem/1.4 ui-serif, Georgia, serif; }
.pivot-current { list-style: none; margin-left: -1.1em; padding: 12px 14px; border-radius: 12px; background: var(--marker-soft); }

/* ---------- Familie der Tailors ---------- */
.family { border-top: 1px solid var(--line); background: var(--bg-2); }
.family-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .family-grid { grid-template-columns: 1fr; } }
.fam { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); height: 100%; }
a.fam:hover { color: var(--ink); border-color: var(--ink-2); }
.fam b { display: block; font-size: 0.98rem; }
.fam small { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.fam-mark { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font: 800 1rem/1 var(--font); background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); }
.fam-go { margin-left: auto; color: var(--muted); }
.fam-current { border: 2px solid var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }
.fam-current .fam-mark { background: linear-gradient(135deg, #4f46e5, #a855f7); color: #fff; border: 0; }
.fam-current b { color: var(--brand); }
@media (max-width: 620px) {
  .belege-bar { position: static; }
  .belege-score { white-space: nowrap; font-size: 0.95rem; }
}
