/* Websitehandwerk – Startseite
   Aufbau: Tokens · Basis · Kopf · Sektionen · Scrollfilm · Formular · Fuss · Bewegung */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); }

/* ---------------------------------------------------------------- Tokens
   Farbsystem nach 60-30-10:
   60 % Neutral (Weiss, Hellgrau)            – Flächen, Text
   30 % Heldenfarbe Blau + Tiefblau          – Marke, Überschriften, dunkle Bühnen
   10 % Akzent Orange                        – nur Handlungen und Hervorhebungen
   Unterstützend: Petrol für Bestätigungen (Häkchen).
   Kontrast (WCAG): Text auf Weiss 7.4:1, Blau auf Weiss 6.9:1, Tiefblau auf Orange 5.6:1,
   Orange-Text auf Hell nur als --accent-ink 5.0:1. Orange nie als Text auf Blau. */
:root {
  --primary: #2c5d8c;          /* Heldenfarbe */
  --primary-hover: #244d75;
  --deep: #13233a;             /* Tiefblau, unterstützend */
  --deep-2: #1b2d47;
  --heading: #13233a;
  --text: #4a5668;
  --text-light: #c9d4e2;
  --accent: #f2761d;           /* Akzent */
  --accent-hover: #f58a3a;
  --accent-ink: #b4530a;       /* Akzent als Text auf hellen Flächen */
  --support: #0f7c71;          /* Petrol, unterstützend */
  --tint: #f4f7fa;
  --line: #e2e8ef;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(29, 39, 53, .07);
  --shadow-lift: 0 14px 40px rgba(29, 39, 53, .14);
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head-h: 72px;
}

/* ---------------------------------------------------------------- Basis */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 17px/1.65 var(--font); color: var(--text); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--font-head); color: var(--heading); margin: 0 0 .5em; font-weight: 700;
  font-optical-sizing: auto; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.6vw + 1rem, 4.6rem); line-height: 1.04; letter-spacing: -.025em; }
h2 { font-size: clamp(1.9rem, 2.2vw + 1rem, 2.75rem); line-height: 1.1; letter-spacing: -.02em; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--white);
  border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.kicker { display: inline-flex; align-items: center; gap: .7em; margin: 0 0 1rem; font: 700 .78rem/1.2 var(--font);
  letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.kicker b { color: var(--accent-ink); font-weight: 800; }
.kicker-light b, .dark .kicker b { color: var(--accent); }
.kicker-light { color: var(--white); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px;
  padding: .8rem 1.6rem; border: 0; border-radius: 999px; background: var(--accent); color: var(--deep);
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(242, 118, 29, .35); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px var(--white); }
.btn-sm { min-height: 42px; padding: .6rem 1.2rem; font-size: .95rem; }

/* ---------------------------------------------------------------- Lesefortschritt */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------------------------------------------------------------- Kopf */
.site-head { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head-h); display: flex; align-items: center;
  color: var(--white); transition: background-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease); }
.site-head.solid { background: rgba(255, 255, 255, .92); color: var(--heading); box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none;
  font: 700 1.45rem/1 var(--font-head); letter-spacing: -.01em; }
.logo svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site-head.solid .logo svg { stroke: var(--primary); }
.site-head.glass { background: rgba(19, 35, 58, .72); box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a:not(.btn) { color: inherit; text-decoration: none; font-weight: 500; position: relative; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s var(--ease); }
.main-nav a:not(.btn):hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }
.menu-btn { display: none; }

@media (max-width: 899px) {
  :root { --head-h: 64px; }
  .menu-btn { display: grid; gap: 5px; place-content: center; width: 46px; height: 46px; margin-right: -8px; border: 0;
    background: none; color: inherit; cursor: pointer; }
  .menu-btn i { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s; }
  .menu-btn[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] i:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: fixed; inset: var(--head-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--white); color: var(--heading); box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
  .main-nav.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .main-nav .btn { margin-top: 18px; }
  .site-head.menu-open { background: var(--white); color: var(--heading); }
  .site-head.menu-open .logo svg { stroke: var(--primary); }
}

/* ---------------------------------------------------------------- Sektionen */
.sec { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.tint { background: var(--tint); }
.dark { background: var(--deep); color: var(--text-light); }
.dark h2, .dark h3 { color: var(--white); }
.sec-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-top { align-items: start; }
.big { font: 500 clamp(1.3rem, 1vw + 1rem, 1.6rem)/1.4 var(--font-head); color: var(--heading); }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } }

/* Hero */
.hero { min-height: min(100svh, 920px); display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--head-h) + 48px) 0 48px; background: var(--deep); color: var(--text-light); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -10% 0 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(19, 35, 58, .55) 0%, rgba(19, 35, 58, .82) 60%, var(--deep) 100%),
    radial-gradient(60% 70% at 78% 30%, rgba(44, 93, 140, .65), transparent 70%),
    url("../3d/standbild.jpg?v=10") center 40% / cover no-repeat, var(--deep);
  will-change: transform; }
.hero-inner { max-width: 900px; margin-inline: auto; text-align: center; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: italic; font-weight: 600; color: var(--accent); }
.hero .kicker { justify-content: center; }
.lead { max-width: 680px; margin: 0 auto 2rem; font-size: clamp(1.05rem, .5vw + 1rem, 1.25rem); color: var(--text-light); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(40px, 7vw, 80px); }
.facts li { padding: 22px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-align: center; }
.facts strong { display: block; font: 700 1.3rem/1.2 var(--font-head); color: var(--white); }
.facts span { font-size: .92rem; }
@media (max-width: 699px) { .facts { grid-template-columns: 1fr; } }

/* Leistungen */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card a { display: flex; flex-direction: column; height: 100%; padding: 28px; border-radius: var(--radius); background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow); color: inherit; text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card a:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lift); }
.card .kicker { margin-bottom: .6rem; }
.card p { margin: 0; }
.ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 12px; background: var(--tint); }
.ico svg { width: 26px; height: 26px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-lead a { background: radial-gradient(120% 90% at 100% 0%, rgba(44, 93, 140, .55), transparent 60%), var(--deep); color: var(--text-light); }
.card-lead h3 { color: var(--white); }
.card-lead .kicker { color: var(--white); }
.card-lead .ico { background: rgba(255, 255, 255, .12); }
.card-lead .ico svg { stroke: var(--accent); }
.more { margin-top: auto; padding-top: 18px; font-weight: 700; color: var(--accent-ink); display: inline-flex; gap: .4em; align-items: center; }
.card-lead .more { color: var(--accent); }
.more::after { content: "→"; transition: transform .25s var(--ease); }
a:hover .more::after { transform: translateX(4px); }
@media (max-width: 999px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .cards { grid-template-columns: 1fr; } }

/* Demos */
.demos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.demo a { display: block; height: 100%; padding: 14px 14px 26px; border-radius: var(--radius); background: var(--white);
  box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.demo a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
/* Vorschau im Browserrahmen: die echte Demoseite als verkleinertes iframe (1280 x 960 px).
   site.js setzt --skala und scrollt beim Hover die Demo langsam nach unten durch. */
.browser { margin: 0 0 18px; border-radius: 10px; overflow: hidden; background: var(--deep); box-shadow: 0 0 0 1px var(--line); }
.browser-bar { display: flex; align-items: center; gap: 6px; margin: 0; padding: 9px 12px; background: var(--deep); }
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.browser-bar em { flex: 1; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1);
  color: var(--text-light); font: 500 .72rem/1.4 var(--font); font-style: normal; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser-view { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.browser-view iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 960px; border: 0; pointer-events: none;
  transform-origin: 0 0; transform: scale(var(--skala, .3)); }
.demo h3, .demo > a > p { padding-inline: 12px; }
.demo .more { margin-left: 12px; }
.tags { display: flex; gap: 8px; margin-bottom: .7rem; }
.tags span { padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--primary); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 899px) { .demos { grid-template-columns: 1fr; max-width: 520px; } }

/* Warum */
.reasons { display: grid; gap: 14px; margin-top: 32px; }
.reasons li { padding: 22px 24px 20px 64px; position: relative; border-radius: var(--radius); background: var(--tint); }
.reasons li::before { content: ""; position: absolute; left: 24px; top: 26px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--support) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.reasons h3 { margin-bottom: .3em; }
.reasons p { margin: 0; }
.checkbox { position: sticky; top: calc(var(--head-h) + 24px); padding: clamp(28px, 4vw, 40px); border-radius: var(--radius);
  background: var(--deep); color: var(--text-light); box-shadow: var(--shadow-lift); }
.checkbox h3 { color: var(--white); font-size: 1.5rem; }
.checks { display: grid; gap: 12px; margin: 20px 0 28px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313233a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.checkbox p:last-child { margin: 0; }
@media (max-width: 899px) { .checkbox { position: static; } }

/* Ablauf: Zeitstrahl. Die orange Linie wächst beim Scrollen von der ersten zur letzten Nummer;
   jede erreichte Nummer füllt sich (li.done). site.js setzt --x0, --y0, --len und --fill. */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps::before, .steps::after { content: ""; position: absolute; z-index: 0; left: var(--x0, 27px); top: var(--y0, 27px);
  width: var(--len, 0px); height: 2px; background: var(--line); }
.steps::after { background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--fill, 1)); }
.steps li { position: relative; z-index: 1; padding-top: 76px; }
.num { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); box-shadow: inset 0 0 0 2px var(--primary); color: var(--primary); font: 700 1.05rem/1 var(--font-head);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease); }
.steps li.done .num { background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); color: var(--deep); }
html.motion .steps li.done .num { animation: erreicht .5s var(--ease); }
@keyframes erreicht { 40% { transform: scale(1.14); } }
.steps h3 { max-width: 15ch; }
@media (max-width: 799px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before, .steps::after { width: 2px; height: var(--len, 0px); }
  .steps::after { transform-origin: 50% 0; transform: scaleY(var(--fill, 1)); }
  .steps li { padding: 14px 0 26px 80px; min-height: 72px; }
}

/* Preise: zwei Pakete nebeneinander, "Schweiz" hervorgehoben, darunter der Vergleich */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; max-width: 980px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 40px); border-radius: var(--radius);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.plan-main { background: radial-gradient(110% 80% at 100% 0%, rgba(44, 93, 140, .6), transparent 60%), var(--deep);
  color: var(--text-light); box-shadow: 0 0 0 2px var(--accent), var(--shadow-lift); }
.plan .kicker { margin: 0 0 .4em; }
.plan-main .kicker { color: var(--accent); }
.badge { position: absolute; top: 0; right: 28px; transform: translateY(-50%); margin: 0; padding: 6px 14px; border-radius: 999px;
  background: var(--accent); color: var(--deep); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.plan-3d { height: 190px; margin: -8px 0 12px; }
.plan-3d canvas { display: block; width: 100%; height: 100%; }
.amount { margin: 0; font: 700 clamp(3rem, 4vw + 1rem, 4.6rem)/1 var(--font-head); color: var(--heading); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan-main .amount { color: var(--white); }
.unit { margin: .4em 0 0; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; color: var(--primary); }
.plan-main .unit { color: var(--accent); }
.plan-lead { margin: 1.1em 0 0; }
.plan .checks { margin: 18px 0 20px; }
.plan-laufend { margin: auto 0 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .95rem; }
.plan-main .plan-laufend { border-color: rgba(255, 255, 255, .14); }
.plan-main strong { color: var(--white); }
.plan p:last-child { margin-bottom: 0; }
.plan .btn { width: 100%; }
.btn-line { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
.btn-line:hover { background: var(--primary); color: var(--white); box-shadow: 0 8px 22px rgba(44, 93, 140, .3); }
.vergleich { max-width: 980px; margin: 48px auto 0; overflow-x: auto; }
.vergleich table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.vergleich caption { margin-bottom: 12px; text-align: left; font: 700 1.25rem/1.3 var(--font-head); color: var(--heading); }
.vergleich th, .vergleich td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.vergleich thead th { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.vergleich tbody th { font-weight: 600; color: var(--heading); width: 28%; }
.vergleich td:last-child { background: rgba(242, 118, 29, .06); }
.vergleich .note { margin-top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.note { font-size: .9rem; opacity: .85; }
@media (max-width: 799px) {
  .plans { grid-template-columns: 1fr; gap: 36px; }
  .plan-main { order: -1; }                       /* am Handy zuerst die Empfehlung */
  .vergleich th, .vergleich td { padding: 11px 8px; }
}

/* Kontakt */
.contact h3 { margin-top: 2rem; font-size: 1.15rem; }
.contact-lines a { color: var(--primary); font-weight: 600; }
.map { margin: 20px 0 0; }
.map-hinweis, .map iframe { display: grid; place-content: center; justify-items: center; gap: 10px; width: 100%; aspect-ratio: 16 / 9;
  border: 0; border-radius: var(--radius); text-align: center; box-shadow: inset 0 0 0 1px var(--line); }
.map-hinweis { padding: 20px;
  background: linear-gradient(rgba(244, 247, 250, .82), rgba(244, 247, 250, .82)),
    repeating-linear-gradient(0deg, transparent 0 38px, var(--line) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 38px, var(--line) 38px 40px), var(--white); }
.map-hinweis svg { width: 34px; height: 34px; fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.map-hinweis p { margin: 0; }
.map-hinweis .note { max-width: 32ch; }
.map iframe { filter: grayscale(1) contrast(.92) brightness(1.04); transition: filter .5s var(--ease); }
.map iframe:hover { filter: none; }
.map figcaption { margin-top: 8px; font-size: .9rem; }
.mini-steps { counter-reset: m; display: grid; gap: 10px; }
.mini-steps li { counter-increment: m; display: flex; gap: 12px; align-items: center; }
.mini-steps li::before { content: counter(m); display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--white); box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary); font-weight: 700; font-size: .85rem; }
.form { display: grid; gap: 6px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--white); color: var(--text); box-shadow: var(--shadow-lift); }
.form label { margin-top: 12px; font-weight: 600; color: var(--heading); font-size: .95rem; }
.form label:first-child { margin-top: 0; }
.form label span { color: #c0392b; }
.form input, .form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--tint); font: inherit; color: var(--heading); transition: border-color .2s, background-color .2s; }
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 3px rgba(44, 93, 140, .18); }
.form [aria-invalid="true"] { border-color: #c0392b; }
.form .btn { margin-top: 20px; justify-self: start; }
.form-error { margin: 8px 0 0; color: #c0392b; font-weight: 600; font-size: .95rem; }
.form .note { margin: 10px 0 0; }

/* Fuss */
.site-foot { padding: 48px 0 32px; background: #0d192b; color: #9aa8bb; font-size: .95rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .08); }
.logo-light { color: var(--white); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.site-foot a { color: inherit; text-decoration: none; }
.site-foot a:hover { color: var(--white); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; }
.foot-legal p { margin: 0; }

/* ---------------------------------------------------------------- Scrollfilm
   Die Bühne klebt, darüber laufen die Texte. Jede Station hat eine eigene Scrollstrecke;
   kino3d.js leitet aus der Scrollposition die Zeitachse der 3D-Szene ab. */
.kino-sec { padding: 0; background: var(--deep); }
.kino { position: relative; }
.kino-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--deep) url("../3d/standbild.jpg?v=10") center / cover no-repeat; }
.kino-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s var(--ease); }
.kino.bereit .kino-stage canvas { opacity: 1; }
.kino-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(19, 35, 58, .7) 0, transparent 140px),
    linear-gradient(90deg, rgba(19, 35, 58, .78) 0%, rgba(19, 35, 58, .35) 38%, transparent 60%); }
.kino-steps { position: relative; margin-top: -100vh; margin-top: -100svh; z-index: 2; pointer-events: none; }
/* Die Textspalte liegt über der Bühne: nur die Karten fangen Klicks, Punkte und Knöpfe bleiben erreichbar. */
.kino-card { pointer-events: auto; }
html.motion .kino-steps > li:not(.on) .kino-card { pointer-events: none; }
.kino-steps > li { height: 160vh; }
.kino-steps > li:first-child { height: 140vh; }
.kino-steps > li:last-child { height: 140vh; }
.kino-steps > li { padding-top: 28vh; }
.kino-card { position: sticky; top: 28vh; width: min(440px, 100% - 2 * var(--gutter));
  margin-left: max(var(--gutter), (100% - var(--wrap)) / 2); padding: 32px; border-radius: var(--radius);
  background: rgba(19, 35, 58, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); color: var(--text-light); }
.kino-card h2 { font-size: clamp(1.7rem, 1.6vw + 1rem, 2.4rem); }
.kino-card p:last-child { margin-bottom: 0; }
.kino-tools { position: absolute; top: calc(var(--head-h) + 18px); right: clamp(14px, 2.5vw, 32px); z-index: 3;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.kino-tool { display: inline-flex; align-items: center; gap: .45em; min-height: 40px; padding: .5rem 1rem; border: 0; border-radius: 999px;
  background: rgba(19, 35, 58, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); color: var(--white);
  font: 600 .92rem/1 var(--font); text-decoration: none; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .2s, box-shadow .2s; }
.kino-tool:hover { background: rgba(19, 35, 58, .9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.kino-tool[aria-pressed="true"] { background: var(--accent); color: var(--deep); box-shadow: none; }
html:not(.motion) .kino-play { display: none; }
.kino-nav { position: absolute; right: clamp(14px, 2.5vw, 32px); top: 50%; transform: translateY(-50%); z-index: 3;
  display: grid; gap: 12px; }
.kino-nav button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .35);
  cursor: pointer; transition: background-color .25s, transform .25s var(--ease); }
.kino-nav button:hover { background: rgba(255, 255, 255, .7); }
.kino-nav button[aria-current="true"] { background: var(--accent); transform: scale(1.35); }
.kino-nav button::before { content: ""; position: absolute; inset: -8px; }
.kino-nav button { position: relative; }

html.motion .kino-card { opacity: .0; transition: opacity .45s var(--ease), translate .45s var(--ease); translate: 0 18px; }
html.motion .kino-steps > li.on .kino-card { opacity: 1; translate: 0 0; }

@media (max-width: 899px) {
  .kino-stage::after { background: linear-gradient(180deg, rgba(19, 35, 58, .7) 0, transparent 120px), linear-gradient(0deg, rgba(19, 35, 58, .85) 0%, rgba(19, 35, 58, .2) 45%, transparent 65%); }
  .kino-card { top: auto; bottom: 20px; margin-inline: auto; padding: 22px; }
  .kino-steps > li { display: flex; flex-direction: column; justify-content: flex-end; height: 150vh; padding-top: 0; }
  .kino-steps > li:first-child, .kino-steps > li:last-child { height: 130vh; }
  .kino-card h2 { font-size: 1.5rem; }
  .kino-nav { gap: 9px; top: calc(var(--head-h) + 74px); transform: none; }
  .kino-tools { top: calc(var(--head-h) + 14px); }
  .kino-tool { min-height: 38px; padding: .45rem .85rem; font-size: .85rem; }
  .kino-nav button { width: 9px; height: 9px; }
}

/* Ohne Bewegung: Texte untereinander statt Film (die Bühne bleibt als Standbild stehen). */
html:not(.motion) .kino-steps > li { height: auto; padding: 18vh 0; }
html:not(.motion) .kino-card { position: relative; top: auto; bottom: auto; }

/* ---------------------------------------------------------------- Bewegung (nur mit html.motion) */
html.motion .reveal { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: var(--d, 0s); }
html.motion .reveal.in { opacity: 1; translate: 0 0; }

/* Rechtstexte: Impressum, Datenschutz, AGB */
.rechtstext { padding-top: calc(var(--head-h) + 64px); }
.rechtstext .wrap { max-width: 760px; }
.rechtstext h1 { font-size: clamp(2rem, 3vw + 1rem, 3rem); margin-bottom: .6em; }
.rechtstext h2 { margin: 2.2em 0 .5em; font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem); }
.rechtstext h3 { margin: 1.4em 0 .3em; font-size: 1.05rem; }
.rechtstext .lead-klein { font-size: 1.1rem; }
.rechtstext .stand { margin-top: 3em; font-size: .9rem; opacity: .8; }
.rechtstext a { color: var(--primary); }

/* Honigtopf-Feld fürs Kontaktformular: unsichtbar, aber nicht display:none (manche Bots prüfen das) */
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; margin-top: 16px; }
.form-ok { margin: 8px 0 0; padding: 12px 14px; border-radius: 10px; background: rgba(15, 124, 113, .1); color: var(--support); font-weight: 600; }
