/* Dein Glücksort – Design-System „Modernist“ (siehe README im Design-Handoff) */
[hidden] { display: none !important; }
:root {
  --bg: #f3f2f2;
  --surface: #eae9e9;
  --text: #201e1d;
  --muted: #605d5d;
  --divider: rgba(32, 30, 29, .4);
  --accent: #ec3013;
  --accent-hover: #c4260d;
  --poster: #dd2b0f; /* Weiß darauf 4,75:1 (WCAG AA) */
  --accent-text: #ae1800;
  --accent-soft: #fff2ef;
  --on-accent: #ffffff;
  --ink: #201e1d;
  --on-ink: #f3f2f2;
  --ease: cubic-bezier(.3, 0, .1, 1);
  --gutter: 20px;
  --max: 1200px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1918;
    --surface: #2d2b2b;
    --text: #f3f2f2;
    --muted: #bab6b6;
    --divider: rgba(243, 242, 242, .35);
    --accent-text: #ff9783;
    --accent-soft: #4d170e;
    --ink: #2d2b2b;
  }
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.5 system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 20; background: var(--bg); padding: 8px 12px; }

/* Buttons: linksbündige Labels, Pfeil rechts */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 56px; padding: 0 20px; min-width: 240px;
  font: inherit; font-weight: 800; text-decoration: none; text-align: left;
  border: 2px solid currentColor; background: transparent; color: inherit;
  transition: background .24s var(--ease), color .24s var(--ease);
}
.btn::after { content: "→"; font-weight: 400; }
.btn-ink { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-ink:hover { background: transparent; color: var(--text); }
.btn-light { background: #fff; color: #201e1d; border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; }
.btn-accent { background: var(--poster); color: var(--on-accent); border-color: var(--poster); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost:hover { background: var(--text); color: var(--bg); }
/* „Bald im App Store“: reine Statuszeile, kein Knopf */
.soon { margin-top: 20px; font-weight: 600; font-size: .9375rem; }
.soon::before { content: ""; display: inline-block; width: 8px; height: 8px; background: currentColor; margin-right: 10px; vertical-align: 1px; }

/* Kopfleiste */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg); border-bottom: 2px solid var(--text);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { white-space: nowrap; font-weight: 800; font-size: 1.125rem; letter-spacing: -.01em; text-decoration: none; margin-right: auto; }
.brand span { color: var(--accent); }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .9375rem; }
.nav a:hover { color: var(--accent-text); }
.top .btn { min-height: 44px; min-width: 0; padding: 0 14px; font-size: .9375rem; white-space: nowrap; gap: 12px; }
@media (max-width: 420px) { .top .btn::after { display: none; } .top .wrap { gap: 12px; } }
@media (min-width: 900px) { .nav { display: flex; } }

/* Hero: rotes Poster */
.hero { background: var(--poster); color: var(--on-accent); overflow: hidden; }
.hero .wrap { display: grid; gap: 40px; padding-top: 48px; }
.hero h1 { font-size: clamp(3rem, 12vw, 7.5rem); letter-spacing: -.045em; line-height: .92; max-width: 9ch; margin: 16px 0 24px; }
.hero .lead { font-size: 1.25rem; max-width: 30ch; border-top: 2px solid currentColor; padding-top: 20px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .phone { justify-self: center; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.3fr 1fr; align-items: end; padding-top: 80px; }
  .hero .text { padding-bottom: 96px; }
  .hero .phone { justify-self: end; }
}

/* iPhone-Rahmen in echten Proportionen (iPhone Pro Max: 1320 × 2868 px).
   Systemelement, daher gerundet. Alle Maße hängen an --w. */
.phone {
  --w: min(280px, 72vw);
  --bz: calc(var(--w) * .028);
  position: relative; width: var(--w); aspect-ratio: 1320 / 2868;
  border: var(--bz) solid #111; border-radius: calc(var(--w) * .165);
  background: #111; overflow: hidden;
  box-shadow: 0 12px 32px rgba(45, 43, 43, .22);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: calc(var(--w) * .14); }
.phone::before {
  content: ""; position: absolute; z-index: 1; left: 50%; transform: translateX(-50%);
  top: calc(var(--w) * .024); width: calc(var(--w) * .275); height: calc(var(--w) * .08);
  background: #000; border-radius: 999px;
}
/* Im Hero ragt das Handy nur zu zwei Dritteln aus dem roten Feld */
.hero .phone { aspect-ratio: 1320 / 2150; border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.hero .phone img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
@media (min-width: 900px) { .hero .phone { --w: 340px; } .shots .phone { --w: 260px; } }

/* Abschnitte */
section { padding: 88px 0; }
.hero { padding: 0; }
.head { border-bottom: 2px solid var(--text); padding-bottom: 20px; margin-bottom: 40px; display: grid; gap: 12px; }
.head h2 { font-size: clamp(2.25rem, 6vw, 4rem); letter-spacing: -.035em; }
.head p { color: var(--muted); font-size: 1.125rem; max-width: 46ch; }
.head .eyebrow { color: var(--accent-text); }

/* So geht's */
.steps { display: grid; gap: 0; counter-reset: s; }
.step { border-top: 1px solid var(--divider); padding: 24px 0; display: grid; align-content: start; grid-template-columns: 88px 1fr; gap: 16px; }
.step:first-child { border-top: 0; }
.step .num { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.step h3 { font-size: 1.375rem; margin-bottom: 6px; }
.step p { color: var(--muted); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--divider); padding: 0 28px; }
  .step:first-child { border-left: 0; padding-left: 0; }
  .step .num { font-size: 5rem; margin-bottom: 12px; }
}

.shots { display: grid; gap: 40px; margin-top: 72px; justify-items: center; }
.shots figure { margin: 0; display: grid; gap: 16px; justify-items: start; align-content: start; }
.shots figcaption { font-weight: 600; max-width: 300px; }
.shots figcaption span { display: block; font-weight: 400; color: var(--muted); }
@media (min-width: 900px) { .shots { grid-template-columns: repeat(4, 1fr); gap: 32px; } .shots .phone { --w: min(230px, calc((100vw - 200px) / 4)); } }

/* Funktionen */
.grid { display: grid; border-top: 2px solid var(--text); }
.cell { padding: 28px 0; border-bottom: 1px solid var(--divider); }
.cell svg { width: 32px; height: 32px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; margin-bottom: 18px; }
.cell h3 { font-size: 1.25rem; margin-bottom: 8px; }
.cell p { color: var(--muted); }
@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cell { padding: 32px 28px 32px 0; }
  .cell:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--divider); }
}
@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cell, .cell:nth-child(2n) { padding: 32px 28px; border-left: 1px solid var(--divider); }
  .cell:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
}
.features { padding-top: 0; }
.head.no-line { border-bottom: 0; margin-bottom: 0; }

/* Ersparnis */
.savings { background: var(--surface); }
.savings .wrap { display: grid; gap: 32px; }
.big { font-size: clamp(5rem, 22vw, 13rem); font-weight: 800; letter-spacing: -.06em; line-height: .85; }
.big small { font-size: .35em; letter-spacing: -.02em; }
.savings p { font-size: 1.25rem; max-width: 34ch; }
.savings .note { font-size: .875rem; color: var(--muted); }
@media (min-width: 900px) { .savings .wrap { grid-template-columns: 1.4fr 1fr; align-items: end; } }

/* Free und Premium */
.plans { width: 100%; border-collapse: collapse; font-size: 1rem; }
.plans th, .plans td { text-align: left; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--divider); vertical-align: top; }
.plans thead th { border-bottom: 2px solid var(--text); font-size: 1.25rem; padding-bottom: 12px; }
.plans thead th:last-child { color: var(--accent-text); }
.plans tbody th { font-weight: 600; width: 34%; }
.plans .price { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; display: block; }
.plans .yes { font-weight: 700; }
.plans-note { margin-top: 16px; color: var(--muted); font-size: .875rem; line-height: 1.55; }
@media (max-width: 560px) { .plans { font-size: .9375rem; } .plans .price { font-size: 1.25rem; } }

/* Händler: dunkler Block, Anrede Sie */
.merchants { background: #201e1d; color: #f3f2f2; }
.merchants .head { border-color: #f3f2f2; }
.merchants .head p { color: #bab6b6; }
.merchants .head .eyebrow { color: #ff9783; }
.merchants .wrap > .cols { display: grid; gap: 48px; }
.facts { display: grid; gap: 0; }
.fact { border-top: 1px solid rgba(243, 242, 242, .35); padding: 20px 0; }
.fact:first-child { border-top: 0; padding-top: 0; }
.fact strong { display: block; font-size: 1.25rem; margin-bottom: 4px; }
.fact span { color: #bab6b6; }
.join { border: 2px solid #f3f2f2; padding: 24px; display: grid; gap: 20px; align-content: start; }
.join h3 { font-size: 1.5rem; }
.join ol { margin: 0; padding: 0; list-style: none; counter-reset: j; display: grid; gap: 14px; }
.join li { counter-increment: j; display: grid; grid-template-columns: 36px 1fr; }
.join li::before { content: counter(j); font-weight: 800; color: #ff9783; }
.join .btn { margin-top: 8px; }
.join small { color: #bab6b6; }
@media (min-width: 900px) { .merchants .wrap > .cols { grid-template-columns: 1.2fr 1fr; } }

/* Sicher */
.safe { display: grid; gap: 0; border-top: 2px solid var(--text); }
.safe li { list-style: none; padding: 18px 0; border-bottom: 1px solid var(--divider); display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.safe li::before { content: "✓"; font-weight: 800; color: var(--accent); }
.safe strong { display: block; }
.safe span { color: var(--muted); }
ul.safe { margin: 0; padding: 0; }
@media (min-width: 900px) { ul.safe { grid-template-columns: 1fr 1fr; column-gap: 40px; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--divider); }
.faq details:first-of-type { border-top: 2px solid var(--text); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; font-size: 1.125rem; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; font-weight: 400; transition: transform .24s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* Schluss */
.final { background: var(--poster); color: var(--on-accent); }
.final h2 { font-size: clamp(2.5rem, 8vw, 5.5rem); letter-spacing: -.045em; line-height: .95; max-width: 14ch; margin-bottom: 32px; }
.final .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Fußzeile */
footer { padding: 40px 0 48px; font-size: .875rem; }
footer .wrap { display: grid; gap: 20px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer nav a { font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
footer nav a:hover { text-decoration: underline; }
footer p { color: var(--muted); }

/* Unterseiten (Impressum, Datenschutz) */
.legal { padding: 56px 0 88px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.25rem, 7vw, 3.5rem); letter-spacing: -.035em; border-bottom: 2px solid var(--text); padding-bottom: 16px; margin-bottom: 32px; }
.legal h2 { font-size: 1.375rem; margin: 36px 0 10px; }
.legal p, .legal ul { margin: 0 0 14px; }
.legal .todo { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; padding: 0 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Empfehlen: Kunden vermitteln Händler */
.refer { background: var(--accent-soft); }
.refer .head { border-color: var(--accent-text); }
.refer .head strong { color: var(--accent-text); }
.refer .actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.refer .fine { margin-top: 16px; font-size: .875rem; line-height: 1.6; color: var(--muted); max-width: 70ch; }

/* Handwerker im Unternehmens-Block */
.trades { margin-top: 56px; padding-top: 32px; border-top: 2px solid #f3f2f2; display: grid; gap: 28px; }
.trades h3 { font-size: 1.5rem; margin-bottom: 8px; }
.trades p { color: #bab6b6; max-width: 46ch; }
.coupons { display: grid; gap: 12px; }
.coupon { background: #2d2b2b; border-left: 4px solid var(--accent); padding: 16px 18px; display: grid; gap: 4px; }
.coupon .eyebrow { color: #ff9783; }
.coupon strong { font-size: 2.25rem; letter-spacing: -.03em; line-height: 1.05; }
.coupon span:last-child { color: #d7d3d3; }
@media (min-width: 700px) { .coupons { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .trades { grid-template-columns: 1fr 2fr; align-items: start; } }

/* Handy-Menü: zweite Zeile in der Kopfleiste, waagerecht wischbar */
.nav-mobile {
  display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none;
  padding: 0 var(--gutter); border-top: 1px solid var(--divider);
}
.nav-mobile::-webkit-scrollbar { display: none; }
.nav-mobile a { flex: none; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap; }
html { scroll-padding-top: 116px; }
@media (min-width: 900px) { .nav-mobile { display: none; } html { scroll-padding-top: 72px; } }


/* ===== Handy (unter 700 px): kürzer, dichter, wischbar ===== */
@media (max-width: 699px) {
  section { padding: 56px 0; }
  .head { margin-bottom: 28px; padding-bottom: 16px; }
  .head h2 { font-size: 2.125rem; }
  .head p { font-size: 1.0625rem; }

  /* Hero: Handy nur angeschnitten, damit „So geht's“ früher kommt */
  .hero .wrap { gap: 32px; padding-top: 36px; }
  .hero .lead { font-size: 1.125rem; }
  .hero .actions { margin-top: 24px; }
  .hero .actions .btn { width: 100%; }
  .hero .phone { --w: 250px; aspect-ratio: 1320 / 1500; }

  /* So geht's: Nummer schmaler */
  .step { grid-template-columns: 56px 1fr; padding: 18px 0; gap: 12px; }
  .step .num { font-size: 2.25rem; }
  .step h3 { font-size: 1.1875rem; }


  /* Funktionen enger */
  .cell { padding: 20px 0; }
  .cell svg { width: 28px; height: 28px; margin-bottom: 10px; }
  .cell h3 { font-size: 1.125rem; margin-bottom: 4px; }

  .savings .wrap { gap: 16px; }
  .big { font-size: 7rem; }

  .plans th, .plans td { padding: 12px 8px 12px 0; }

  /* Unternehmen */
  .fact { padding: 14px 0; }
  .fact strong { font-size: 1.125rem; }
  .merchants .wrap > .cols { gap: 32px; }
  .join { padding: 20px; }
  .join .btn { width: 100%; }
  .trades { margin-top: 40px; padding-top: 24px; }
  /* Gutscheine als kompakte Zeilen: Wert links, Text rechts */
  .coupon { grid-template-columns: 104px 1fr; column-gap: 12px; row-gap: 2px; padding: 14px 16px; align-items: center; }
  .coupon strong { grid-column: 1; grid-row: 1 / 3; font-size: 1.75rem; }
  .coupon .eyebrow { grid-column: 2; font-size: .6875rem; }
  .coupon span:last-child { grid-column: 2; }

  /* Empfehlen: Knöpfe volle Breite */
  .refer .actions { display: grid; gap: 12px; margin-top: 28px; }
  .refer .actions .btn { width: 100%; }

  .faq summary { font-size: 1.0625rem; padding: 16px 40px 16px 0; }
  .faq summary::after { top: 12px; }

  .final h2 { font-size: 2.75rem; }
  .final .actions .btn { width: 100%; }
}

/* Barrierefreiheit: Fokusrahmen auf Rot weiß, Logo-Link groß genug zum Tippen */
.hero :focus-visible, .final :focus-visible, .invite .poster :focus-visible { outline-color: #fff; }
.shots:focus-visible { outline-offset: -3px; }
.brand { min-height: 44px; display: inline-flex; align-items: center; }

/* Nur für Screenreader sichtbar */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Beta-Bewerbung */
.beta-hero .wrap { padding-bottom: 56px; }
.beta-hero h1 { max-width: 12ch; }
.beta { padding-top: 56px; }
.beta-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .beta-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.beta-h { font-size: 1.75rem; letter-spacing: -.03em; border-bottom: 2px solid var(--text); padding-bottom: 12px; margin-bottom: 24px; }
.form { display: grid; gap: 20px; }
.form .field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.form label, .form legend { font-weight: 600; }
.form legend { margin-bottom: 8px; padding: 0; }
.form .hint { font-size: .875rem; color: var(--muted); }
.form .error, #b-checks-err { font-size: .875rem; font-weight: 600; color: var(--accent-text); }
.input { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--text); background: var(--bg); border: 2px solid var(--divider); }
.input:focus { border-color: var(--text); outline: none; }
.input[aria-invalid="true"] { border-color: var(--accent-text); }
textarea.input { resize: vertical; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; cursor: pointer; font-weight: 400 !important; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--poster); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.beta-side { border: 2px solid var(--text); padding: 24px; }
.beta-side .beta-h { font-size: 1.25rem; }
.beta-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.beta-steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; }
.beta-steps li::before { content: counter(s); font-weight: 800; font-size: 1.25rem; color: var(--accent); grid-row: span 2; }
.beta-steps strong { display: block; }
.beta-steps span { color: var(--muted); }
.beta-done { border-left: 4px solid var(--poster); background: var(--accent-soft); padding: 20px; display: grid; gap: 8px; }
.beta-done h3 { font-size: 1.375rem; }
.note-err { border-left: 4px solid var(--accent-text); background: var(--accent-soft); padding: 14px 16px; margin-bottom: 16px; }
.soon a { color: inherit; }
/* Beta: Hinweis für Betriebe, Auswahl iPhone/Android (Tippflächen ≥ 44 px) */
.form fieldset .check { min-height: 44px; align-items: center; }
.portal-hint { border-left: 4px solid var(--poster); background: var(--accent-soft); padding: 20px; display: grid; gap: 12px; justify-items: start; }
.portal-hint h3 { font-size: 1.25rem; }
.portal-hint p { margin: 0; }
.portal-hint .btn { max-width: 100%; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.choice { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; min-height: 56px; padding: 10px 14px; border: 2px solid var(--divider); cursor: pointer; font-weight: 400 !important; }
.choice input { width: 22px; height: 22px; margin: 0; accent-color: var(--poster); }
.choice strong { display: block; font-weight: 700; }
.choice small { display: block; color: var(--muted); font-size: .875rem; }
.choice:has(input:checked) { border-color: var(--text); }
.choice:has(input[aria-invalid="true"]) { border-color: var(--accent-text); }

/* Partner-Band (Werbepaket, als Anzeige gekennzeichnet): Laufband nach links */
.ticker { padding: 0 !important; --strip: #201e1d; background: var(--strip); color: #f3f2f2; border-bottom: 2px solid #201e1d; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; }
.ticker[hidden] { display: none; }
@media (prefers-color-scheme: dark) { .ticker { --strip: #2d2b2b; border-bottom-color: #f3f2f2; } }
.ticker-label { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 24px 0 var(--gutter); background: var(--strip); color: #fff; border-right: 1px solid rgba(243, 242, 242, .16); }
.ticker-label .ad-label { color: #ff9783; }
.ticker-label::after { content: ""; position: absolute; top: 0; bottom: 0; right: -28px; width: 28px; background: linear-gradient(90deg, var(--strip), transparent); }
.ticker-label h2 { font-size: .875rem; letter-spacing: -.01em; line-height: 1.15; max-width: 10em; }
.ad-label { align-self: flex-start; font-size: .625rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; border: 1.5px solid currentColor; padding: 1px 6px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; animation: marquee-left var(--dur, 60s) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track li { display: flex; align-items: center; }
.marquee-track li::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex: none; }
.chip { display: flex; align-items: center; gap: 12px; padding: 10px 24px; color: inherit; text-decoration: none; min-height: 64px; transition: background .2s var(--ease); }
a.chip:hover, a.chip:focus-visible { background: rgba(243, 242, 242, .07); }
a.chip:hover .chip-logo img { transform: scale(1.04); }
.chip-logo { position: relative; flex: none; }
.chip-logo img { display: block; width: 44px; height: 44px; object-fit: contain; background: #fff; padding: 4px; transition: transform .2s var(--ease); }
.chip-seal { position: absolute; right: -6px; bottom: -6px; width: 18px; height: 18px; border-radius: 50%; background: #1d6b3a; color: #fff; font-size: .625rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--strip); }
.chip-text { display: grid; gap: 1px; white-space: nowrap; }
.chip-text strong { font-size: .9375rem; letter-spacing: -.01em; }
.chip-text small { font-size: .75rem; color: #bab6b6; font-weight: 600; }
.chip-text .offer { font-size: .8125rem; font-weight: 700; color: #ff9783; }
.chip-text .offer b { color: #fff; font-weight: 800; }
@media (max-width: 699px) {
  .ticker { grid-template-columns: minmax(0, 1fr); }
  .ticker-label { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; padding: 12px var(--gutter) 2px; background: var(--strip); }
  .ticker-label::after { display: none; }
  .ticker-label h2 { max-width: none; }
  .chip { padding: 8px 18px; min-height: 60px; gap: 10px; }
  .chip-logo img { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .dir-chev { transition: none; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  .chip, .chip-logo img { transition: none; }
}

/* „Wer ist dabei“: Verzeichnis aller Betriebe, nach PLZ */
.dir { padding-top: 48px; }
.dir-h { font-size: clamp(2.25rem, 6vw, 4rem); letter-spacing: -.035em; }
.dir-filter { display: grid; gap: 14px; margin-bottom: 20px; }
.dir-filter .field { display: grid; gap: 6px; }
.dir-filter label { font-weight: 600; }
.dir-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.dir-cats button { min-height: 40px; padding: 0 14px; font: inherit; font-weight: 700; font-size: .875rem; background: transparent; color: var(--text); border: 2px solid var(--text); cursor: pointer; }
.dir-cats button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.dir-status { font-weight: 700; margin: 8px 0 4px; min-height: 1.5em; }
.dir-group { font-size: 1rem; letter-spacing: .02em; padding: 22px 0 8px; border-bottom: 2px solid var(--text); position: sticky; top: 111px; background: var(--bg); z-index: 2; }
@media (min-width: 900px) { .dir-group { top: 64px; } }
.dir-ul { list-style: none; margin: 0; padding: 0; }
.dir-details { border-bottom: 1px solid var(--divider); }
.dir-card { display: grid; grid-template-columns: 64px auto 1fr 32px; align-items: center; gap: 4px 14px; padding: 16px 0; color: inherit; min-height: 64px; cursor: pointer; list-style: none; }
.dir-card::-webkit-details-marker { display: none; }
.dir-card:not(:has(.dir-logo)) { grid-template-columns: 64px 1fr 32px; }
.dir-card:hover .dir-name { text-decoration: underline; text-underline-offset: 3px; }
.dir-name { display: inline-flex; align-items: center; gap: 8px; }
.dir-check { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #1d6b3a; color: #fff; font-size: .625rem; font-weight: 800; }
.dir-teaser { font-size: .875rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.dir-teaser b { font-weight: 800; color: var(--accent-text); }
.dir-more-n { color: var(--muted); font-weight: 600; }
.dir-chev { justify-self: center; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s var(--ease); }
.dir-details[open] .dir-chev { transform: translateY(2px) rotate(-135deg); }
.dir-details[open] .dir-teaser { visibility: hidden; height: 0; margin: 0; }
.dir-panel { padding: 0 0 22px 78px; display: grid; gap: 16px; }
.coupons-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.coupon-tile { display: grid; grid-template-columns: auto 1fr; background: var(--surface); border: 1px solid var(--divider); }
.coupon-val { padding: 14px 12px; width: 7.25rem; justify-content: center; white-space: nowrap; font-size: 1.375rem; font-weight: 800; letter-spacing: -.03em; color: var(--accent-text); border-right: 2px dashed var(--divider); display: flex; align-items: center; }
.coupon-text { padding: 12px 14px; display: grid; gap: 2px; align-content: center; }
.coupon-text strong { font-size: .9375rem; line-height: 1.3; }
.dir-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.dir-actions .btn { min-height: 44px; min-width: 0; padding: 0 16px; font-size: .9375rem; gap: 14px; }
.dir-link { font-weight: 600; font-size: .9375rem; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.dir-plz { font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: 1rem; }
.dir-logo { width: 40px; height: 40px; object-fit: contain; background: #fff; border: 1px solid var(--divider); padding: 3px; }
.dir-main { display: grid; gap: 2px; min-width: 0; }
.dir-main strong { font-size: 1.0625rem; }
.dir-meta { font-size: .875rem; color: var(--muted); }
.dir-seal { font-size: .75rem; font-weight: 800; color: var(--ok, #1d6b3a); border: 2px solid currentColor; padding: 1px 6px; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .dir-seal { color: #8fd3a6; } }
@media (max-width: 560px) {
  .dir-card, .dir-card:not(:has(.dir-logo)) { grid-template-columns: 56px 1fr 24px; }
  .dir-logo { display: none; }
  .dir-panel { padding-left: 0; }
  .coupons-grid { grid-template-columns: 1fr; }
  .dir-actions .btn { flex: 1 1 100%; }
}
.dir-more { margin: 24px 0; }
.dir-empty-cta { border: 2px solid var(--text); padding: 20px; display: grid; gap: 12px; justify-items: start; margin-top: 24px; }
.ticker-label .ticker-all { font-size: .75rem; font-weight: 700; color: #f3f2f2; text-underline-offset: 3px; }

/* Erzeugte Verzeichnisseiten (build_directory.py): Betrieb, Ort, PLZ-Bereich */
.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: inherit; }
.shop-head { display: flex; gap: 20px; align-items: flex-start; }
.shop-logo { width: 96px; height: 96px; object-fit: contain; background: #fff; border: 1px solid var(--divider); padding: 6px; flex: none; }
.dir-index { border: 2px solid var(--text); padding: 14px 16px; margin-bottom: 16px; display: grid; gap: 6px; font-size: .9375rem; }
.dir-index a { margin-right: 10px; font-weight: 600; display: inline-block; min-height: 32px; }
@media (max-width: 560px) { .shop-head { flex-direction: column; } .shop-logo { width: 72px; height: 72px; } }
.dir section { padding: 28px 0 0; }

/* Suche mit Standort */
.dir-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.dir-search:has(.dir-near[hidden]) { grid-template-columns: 1fr; }
.dir-near { min-height: 52px; gap: 8px; padding: 0 16px; font-size: .9375rem; white-space: nowrap; }
.dir-near::after { content: none; }
.dir-near[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.dir-hint { font-size: .8125rem; color: var(--muted); margin: 2px 0 0; }
@media (max-width: 560px) { .dir-search { grid-template-columns: 1fr; } .dir-near { justify-content: center; } }
.dir-km { display: block; font-family: system-ui, -apple-system, sans-serif; font-weight: 800; font-size: .9375rem; white-space: nowrap; }
.dir-plz small { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); }
/* Reine Webshops im Verzeichnis: „Online“ statt PLZ, eigener Bereich nach den Betrieben vor Ort */
.dir-web { font-family: system-ui, -apple-system, sans-serif; font-weight: 800; font-size: .875rem; }
.dir-online { margin-top: 8px; }
.dir-online-lead { font-size: .9375rem; color: var(--muted); margin: 10px 0 4px; max-width: 62ch; }
/* Jetzt geöffnet */
.open-state { font-weight: 700; }
.open-state.is-open { color: #1d6b3a; }
.open-state.is-closed { color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .open-state.is-open { color: #8fd3a6; } }
:root[data-theme="dark"] .open-state.is-open { color: #8fd3a6; }
/* Wo, wann, Kontakt */
.dir-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px 24px; margin: 0; font-size: .9375rem; }
.dir-info dt { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.dir-info dd { margin: 0; line-height: 1.5; }
.dir-info a { font-weight: 600; text-underline-offset: 3px; }
.dir-route::after { content: " ↗"; content: " ↗" / ""; }   /* Pfeil nur fürs Auge, VoiceOver liest ihn nicht */
.feat { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.feat li { font-size: .8125rem; font-weight: 600; border: 1px solid var(--divider); padding: 3px 8px; }
.dir-note { font-size: .8125rem; color: var(--muted); margin: -6px 0 0; }
.hours { border-collapse: collapse; font-size: .9375rem; }
.hours th { text-align: left; font-weight: 700; padding: 3px 18px 3px 0; }
.hours td { padding: 3px 0; }
.shop-info { margin-top: 28px; }
.shop-info .dir-info { margin-top: 16px; }
.hours-now { display: block; margin-top: 6px; }
.hours-now[hidden] { display: none; }
/* Kopfzeile auf sehr schmalen Handys: „Beta-Platz“ sichtbar, „sichern“ nur für VoiceOver */
@media (max-width: 359px) { .xs-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* Screenshots: bis 899 px eine waagerechte Wischreihe (sonst stünden vier Handys untereinander).
   Darunter Punkte und Pfeile (js/shots.js), damit man sieht, dass es weitergeht, und auch ohne Wischen hinkommt. */
@media (max-width: 899px) {
  .shots {
    display: flex; gap: 16px; margin: 40px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; justify-items: initial;
    overscroll-behavior-x: contain;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shots figure { flex: 0 0 auto; scroll-snap-align: start; }
  .shots .phone { --w: 210px; }
  .shots figcaption { max-width: 210px; font-size: .9375rem; }
}
.shots-nav { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 12px; }
.shots-nav[hidden] { display: none; }
.shots-nav button { width: 44px; height: 44px; display: inline-grid; place-items: center; background: none; border: 0; padding: 0; color: var(--text); cursor: pointer; font: inherit; }
.shots-nav button[disabled] { opacity: .3; cursor: default; }
.shots-arrow { font-size: 1.25rem; font-weight: 700; }
.shots-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid currentColor; transition: background-color .2s, transform .2s; }
.shots-dot[aria-current="true"]::before { background: currentColor; transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) { .shots-dot::before { transition: none; } }

/* Beta bestätigt: zwei Schritte zu TestFlight (Aufbau wie „So geht's“), am Computer zusätzlich ein QR-Code */
.tf-lead { font-size: 1.125rem; margin: 8px 0 24px; }
.tf-steps { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); }
.tf-step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--divider); }
.tf-num { font-size: 2.5rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--accent-text); }
.tf-step h2 { font-size: 1.25rem; margin: 2px 0 6px; }
.tf-step p { margin: 0 0 16px; color: var(--muted); }
.tf-step .btn { width: 100%; max-width: 360px; }
.tf-qr { display: flex; gap: 20px; align-items: center; margin-top: 24px; padding: 16px; border: 2px solid var(--text); max-width: 560px; }
.tf-qr svg { width: 132px; height: 132px; display: block; flex: none; }
.tf-hint { margin-top: 20px; padding: 14px 16px; border: 1px solid var(--divider); font-size: .9375rem; color: var(--muted); max-width: 560px; }
.tf-hint strong { color: var(--text); }
@media (max-width: 699px) {
  .tf-step { grid-template-columns: 32px 1fr; gap: 12px; padding: 20px 0; }
  .tf-num { font-size: 2rem; }
  .tf-step .btn { padding: 0 16px; font-size: 1rem; gap: 12px; }
  .tf-qr { display: none; }   /* am Handy überflüssig */
}
