/* FluxFree – Website
   Farben, Schriften und Rundungen folgen dem "Ruhepuls"-Design der App
   (ci-reflux-fe/src/theme/colors.ts + typography.ts): warme Salbei-Töne,
   Fraunces für Überschriften, Karla für Fließtext, hell + dunkel. */

/* ---------- Schriften (selbst gehostet, keine Verbindung zu Google) ---------- */
@font-face { font-family: "Fraunces"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/fraunces-600.woff") format("woff"); }
@font-face { font-family: "Fraunces"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/fraunces-700.woff") format("woff"); }
@font-face { font-family: "Karla"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/karla-400.woff") format("woff"); }
@font-face { font-family: "Karla"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/karla-600.woff") format("woff"); }
@font-face { font-family: "Karla"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/karla-700.woff") format("woff"); }

/* ---------- Farb-Tokens ---------- */
:root {
  --bg: #F2F6F3;
  --surface: #FFFFFF;
  --surface-muted: #EAF1EC;
  --border: #DCE7E1;
  --border-muted: #E8F0EC;

  --text: #20302A;
  --text-body: #4C5F56;
  --text-muted: #657A70;

  --primary: #3E7C64;
  --primary-hover: #346A55;
  --primary-soft: #E1EEE7;
  --primary-border: #BFE0CF;
  --primary-strong: #1F4A3A;
  --on-primary: #FFFFFF;

  --amber: #CC8F3A;
  --amber-soft: #FBF3E7;
  --amber-border: #EAD3AC;
  --amber-strong: #8A5F1F;
  --amber-text: #6B4B1A;

  --danger: #C2554A;
  --danger-soft: #FBEDEB;
  --danger-border: #E9C6C0;
  --danger-strong: #8C3A31;

  --purple: #8B6BAE;
  --teal: #4791A6;

  --todo-bg: #FFF1A8;
  --todo-text: #4A3B00;

  --shadow-sm: 0 1px 2px rgba(32, 48, 42, .06), 0 2px 8px rgba(32, 48, 42, .04);
  --shadow-md: 0 8px 28px rgba(32, 48, 42, .10);
  --shadow-phone: 0 30px 60px -20px rgba(31, 74, 58, .35), 0 12px 24px -12px rgba(32, 48, 42, .25);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Karla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121815;
    --surface: #1B2420;
    --surface-muted: #212C27;
    --border: #33413A;
    --border-muted: #2A3630;

    --text: #E8EFEA;
    --text-body: #B4C3BB;
    --text-muted: #9FB0A8;

    --primary: #7FBFA0;
    --primary-hover: #93cdb0;
    --primary-soft: #1E3A2E;
    --primary-border: #2E5643;
    --primary-strong: #9FDABE;
    --on-primary: #10201A;

    --amber: #E0B15C;
    --amber-soft: #3A2F1A;
    --amber-border: #5C4A28;
    --amber-strong: #F0C878;
    --amber-text: #D8B786;

    --danger: #E58076;
    --danger-soft: #3A211E;
    --danger-border: #5C332E;
    --danger-strong: #F0958A;

    --purple: #B39BD0;
    --teal: #7FBECF;

    --todo-bg: #5c4b00;
    --todo-text: #ffe98a;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, .35);
    --shadow-phone: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 12px 24px -12px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.2vw + .6rem, 4rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 2.6vw + .8rem, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { color: var(--text); font-weight: 700; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--on-primary); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Platzhalter, die vor dem Livegang ausgefüllt werden müssen */
mark.todo { background: var(--todo-bg); color: var(--todo-text); padding: 0 .3em; border-radius: 4px; font-weight: 600; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border-muted); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.35rem/1 var(--font-display); color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text-body); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-strong); }
.nav .btn { margin-left: 8px; color: var(--on-primary); padding: 10px 18px; }
.nav .btn:hover { background: var(--primary-hover); color: var(--on-primary); }
.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--border); color: var(--text); width: 44px; height: 44px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .js .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 18px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); display: none; }
  .js .nav.open { display: flex; }
  .js .nav a { padding: 14px 14px; font-size: 1.05rem; }
  .js .nav .btn { margin: 8px 0 0; text-align: center; padding: 14px 18px; }
  .no-js .nav, :root:not(.js) .nav { flex-wrap: wrap; justify-content: flex-end; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent; background: var(--primary); color: var(--on-primary); font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.btn:hover { background: var(--primary-hover); color: var(--on-primary); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--primary-strong); border-color: var(--primary-border); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary-strong); box-shadow: none; }
.store-btn { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 22px 10px 18px; min-width: 190px; border-radius: 16px; background: var(--text); color: var(--bg); border-color: var(--text); }
.store-btn:hover { background: var(--text); color: var(--bg); }
.store-btn small { font-weight: 600; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.store-btn span { font-size: 1.15rem; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; max-width: 900px; aspect-ratio: 1; background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%); pointer-events: none; z-index: 0; }
.hero::after { content: ""; position: absolute; left: -15%; bottom: -30%; width: 55vw; max-width: 700px; aspect-ratio: 1; background: radial-gradient(closest-side, color-mix(in srgb, var(--amber) 16%, transparent), transparent 70%); pointer-events: none; z-index: 0; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); border: 1px solid var(--primary-border); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.eyebrow svg { width: 16px; height: 16px; flex: none; }
.nav-toggle svg { width: 22px; height: 22px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.lead { font-size: clamp(1.1rem, 1vw + .9rem, 1.3rem); color: var(--text-body); max-width: 34em; }
.hero .store-row { margin: 28px 0 22px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; font-size: .95rem; font-weight: 600; color: var(--text-muted); }
.trust li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.trust svg { width: 18px; height: 18px; color: var(--primary); flex: none; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.hero-visual .phone { position: relative; }
.hero-visual .phone-main { width: min(100%, 300px); z-index: 2; }
.hero-visual .phone-side { position: absolute; width: min(46%, 210px); z-index: 1; opacity: .96; }
.hero-visual .phone-left { left: -2%; top: 14%; transform: rotate(-7deg); }
.hero-visual .phone-right { right: -2%; top: 20%; transform: rotate(7deg); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; margin-top: 12px; }
  .hero-visual .phone-side { display: none; }
}
@media (min-width: 901px) and (max-width: 1080px) { .hero-visual .phone-side { display: none; } }

/* ---------- Telefon-Rahmen ---------- */
.phone { margin: 0; padding: 9px; background: #0e1311; border-radius: 15% / 7%; box-shadow: var(--shadow-phone), inset 0 0 0 1.5px #2a332f; }
.phone img { width: 100%; border-radius: 12.5% / 5.8%; background: var(--surface-muted); }
.phone figcaption { display: none; }
.phone-sm { width: min(100%, 260px); }
.phone-md { width: min(100%, 290px); }

/* ---------- Sektionen ---------- */
section { position: relative; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border-muted); }
.section-head { max-width: 46rem; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head p { font-size: 1.15rem; }
.kicker { display: block; font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }

/* Schritte */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px 26px; margin: 0; box-shadow: var(--shadow-sm); counter-increment: step; }
.section-alt .steps li { background: var(--bg); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font: 700 1.1rem var(--font-display); margin-bottom: 16px; }
.steps h3 { margin-bottom: .4em; }
.steps p { margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Feature-Zeilen mit Screenshot */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 9vw, 120px); }
.feature.flip .feature-media { order: -1; }
.feature-media { display: flex; justify-content: center; gap: 20px; position: relative; }
.feature-media.duo .phone:first-child { transform: translateY(-14px) rotate(-2deg); }
.feature-media.duo .phone:last-child { transform: translateY(22px) rotate(2deg); }
.feature-media.tinted::before { content: ""; position: absolute; inset: 6% 4%; border-radius: 40px; background: var(--primary-soft); z-index: 0; transform: rotate(-3deg); }
.feature-media .phone { position: relative; z-index: 1; }
.feature h2 { margin-bottom: .45em; }
.feature .lead-sm { font-size: 1.12rem; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; margin: 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E7C64' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; border: 1px solid var(--primary-border); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237FBFA0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); } }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .feature-media.duo .phone:first-child, .feature-media.duo .phone:last-child { transform: none; }
}
@media (max-width: 520px) { .feature-media.duo { gap: 12px; } .feature-media.duo .phone { padding: 6px; } }

/* Phasen-Zeitleiste */
.phases { list-style: none; margin: 26px 0 0; padding: 0; position: relative; }
.phases li { position: relative; padding: 0 0 22px 52px; margin: 0; }
.phases li::before { content: attr(data-n); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font: 700 1rem var(--font-display); z-index: 1; }
.phases li::after { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--primary-border); }
.phases li:last-child { padding-bottom: 0; }
.phases li:last-child::after { display: none; }
.phases strong { display: block; font: 600 1.15rem var(--font-display); }
.phases span { display: block; font-size: .92rem; font-weight: 700; color: var(--primary); margin-bottom: 2px; }

/* Karten-Raster */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.section-alt .card { background: var(--bg); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.15rem; margin: 16px 0 .35em; }
.card p { margin: 0; font-size: 1rem; }
.icon-chip { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.icon-chip svg { width: 24px; height: 24px; }
.icon-chip.amber { background: var(--amber-soft); color: var(--amber); }
.icon-chip.purple { background: color-mix(in srgb, var(--purple) 16%, var(--surface)); color: var(--purple); }
.icon-chip.teal { background: color-mix(in srgb, var(--teal) 16%, var(--surface)); color: var(--teal); }
.icon-chip.danger { background: var(--danger-soft); color: var(--danger); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Hinweis-Boxen */
.callout { display: flex; gap: 18px; align-items: flex-start; background: var(--amber-soft); border: 1px solid var(--amber-border); border-radius: var(--radius); padding: 24px 26px; color: var(--amber-text); }
.callout svg { flex: none; width: 28px; height: 28px; color: var(--amber); margin-top: 2px; }
.callout h3 { color: var(--amber-strong); font-size: 1.15rem; margin-bottom: .3em; }
.callout p:last-child { margin-bottom: 0; }
.callout.info { background: var(--primary-soft); border-color: var(--primary-border); color: var(--text-body); }
.callout.info svg { color: var(--primary); }
.callout.info h3 { color: var(--primary-strong); }
.callout.danger { background: var(--danger-soft); border-color: var(--danger-border); color: var(--text-body); }
.callout.danger svg { color: var(--danger); }
.callout.danger h3 { color: var(--danger-strong); }
.callout.danger strong { color: var(--danger-strong); }

/* Preise */
.plan { max-width: 760px; margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.plan > div { padding: clamp(24px, 4vw, 40px); }
.plan-trial { background: linear-gradient(160deg, var(--primary), #5b9a7f 60%, #b98a3f); color: #fff; }
.plan-trial h3, .plan-trial strong { color: #fff; }
.plan-trial p { color: rgba(255, 255, 255, .92); }
.plan-big { font: 700 3.4rem/1 var(--font-display); color: #fff; display: block; margin: 8px 0 4px; }
@media (max-width: 720px) { .plan { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq-group { max-width: 820px; margin: clamp(36px, 5vw, 56px) auto 16px; font-size: 1.5rem; display: flex; align-items: center; gap: 12px; }
.faq-group:first-of-type { margin-top: 0; }
details.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: box-shadow .2s, border-color .2s; }
.section-alt details.faq { background: var(--bg); }
details.faq[open] { border-color: var(--primary-border); box-shadow: var(--shadow-sm); }
details.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font: 600 1.15rem/1.35 var(--font-display); color: var(--text); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E7C64' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .25s; }
details.faq[open] summary::after { transform: rotate(45deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) details.faq summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237FBFA0' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); } }
details.faq .answer { padding: 0 22px 20px; }
details.faq .answer > :last-child { margin-bottom: 0; }
.faq-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.faq-toc a { display: inline-block; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--primary-border); background: var(--primary-soft); color: var(--primary-strong); font-weight: 700; text-decoration: none; }
.faq-toc a:hover { background: var(--primary); color: var(--on-primary); }

/* CTA */
.cta { text-align: center; background: linear-gradient(150deg, var(--primary-strong), var(--primary) 70%); color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 48px); position: relative; overflow: hidden; }
.cta h2, .cta p { color: #fff; }
.cta p { opacity: .92; max-width: 34em; margin-inline: auto; }
.cta .store-row { justify-content: center; margin-top: 26px; }
.cta .store-btn { background: #fff; color: #1f4a3a; border-color: #fff; }
.cta .store-btn:hover { background: #f2f6f3; color: #1f4a3a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta { background: linear-gradient(150deg, #1E3A2E, #2d5a45 80%); } }

/* Seitenkopf für Unterseiten */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 40px); text-align: center; background: linear-gradient(var(--primary-soft), transparent); }
.page-head h1 { font-size: clamp(2.1rem, 4vw + .6rem, 3.3rem); }
.page-head p { max-width: 40em; margin-inline: auto; font-size: 1.15rem; }
.breadcrumb { font-size: .92rem; font-weight: 600; margin-bottom: 18px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* Rechtstexte */
.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: clamp(56px, 8vw, 96px); }
.legal-toc { position: sticky; top: 92px; font-size: .95rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; max-height: calc(100vh - 116px); overflow: auto; }
.legal-toc strong { display: block; margin-bottom: 8px; font-family: var(--font-display); font-size: 1.05rem; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; }
.legal-toc li { margin: 0; }
.legal-toc a { display: block; padding: 5px 0; color: var(--text-body); text-decoration: none; }
.legal-toc a:hover { color: var(--primary); }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.65rem; margin-top: 2.2em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .97rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border: 1px solid var(--border); }
.prose th { background: var(--primary-soft); color: var(--primary-strong); font-weight: 700; }
.prose td { background: var(--surface); }
.prose address { font-style: normal; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 20px; margin: 1em 0; }
.prose .callout { margin: 1.4em 0; }
.stand { font-size: .95rem; color: var(--text-muted); }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal-toc { position: static; max-height: none; } }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 32px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h2 { font: 700 .82rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-body); text-decoration: none; }
.footer-grid a:hover { color: var(--primary); text-decoration: underline; }
.footer-brand p { max-width: 24em; margin-top: 14px; }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-muted); font-size: .88rem; color: var(--text-muted); display: grid; gap: 8px; }
.footer-legal p { margin: 0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Scroll-Reveal (nur mit JS, respektiert reduzierte Bewegung) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer .footer-grid, .nav-toggle, .cta { display: none; }
  body { background: #fff; color: #000; }
  .legal { display: block; } .legal-toc { display: none; }
}

@media (max-width: 480px) {
  .store-row { gap: 10px; }
  .store-btn { min-width: 0; flex: 1 1 150px; padding: 10px 16px; }
  .store-btn span { font-size: 1.05rem; }
}
@media (max-width: 520px) {
  .callout { padding: 18px; gap: 12px; }
  .callout svg { width: 24px; height: 24px; }
}

/* ---------- Sprachumschalter DE | EN ---------- */
.header-right { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.lang-switch a, .lang-switch span { display: inline-grid; place-items: center; min-width: 40px; height: 32px; padding: 0 10px; border-radius: 999px; font: 700 .82rem/1 var(--font-body); letter-spacing: .06em; text-decoration: none; color: var(--text-muted); }
.lang-switch a:hover { color: var(--primary-strong); background: var(--primary-soft); }
.lang-switch .cur { background: var(--primary); color: var(--on-primary); }
@media (max-width: 860px) { .header-right { gap: 8px; } }
