/* =====================================================================
   Gleiswart Landingpage (23.11.2026): der Kategorie-Standard, mit Stripe als
   Messlatte für die Machart. Weißer Grund, eine kühle Wechselfläche, Gleiswart-Tinte,
   Signalorange nur für die Haupthandlung und Fristzustände, Barlow selbst gehostet
   (gleiche Schrift wie die App), echte Ansichten der App als Beweis.
   ===================================================================== */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
/* Wortmarke „GLEISWART“ (Logo seit 02.12.2026): Montserrat 700, nur für das Logo */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/montserrat-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/montserrat-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/barlow-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #1C2430;
  --ink-2: #4A5565;          /* 7.4:1 auf Weiß */
  --ink-3: #5F6B7A;          /* 5.5:1 auf Weiß, nur für kleine Hinweise */
  --bg: #FFFFFF;
  --wash: #F4F6F8;
  --line: #E1E5EA;
  --line-2: #C9D0D8;
  --accent: #163A6B;         /* Navy, 11:1 auf Weiß (seit 03.12.2026, vorher Signalorange) */
  --accent-press: #0F223D;  /* Navy des Logos */
  --accent-tint: #EEF2F7;
  --brand-green: #7FC412;    /* nur Akzent (Logo, Markierungen), nie für Text */
  /* States (Fristenrechner pills, draft notes): text, tint, line */
  --error-ink: #B91C1C; --error-tint: #FEF2F2; --error-line: #FECACA;
  --warning-ink: #6B4A03; --warning-tint: #FFFBEB; --warning-line: #FDE68A;
  --success-ink: #166534; --success-tint: #F0FDF4; --success-line: #BBF7D0;
  --font: "Barlow", "Segoe UI", system-ui, sans-serif;
  --r: 8px;
  --r-lg: 12px;
  --shadow-frame: 0 1px 2px rgba(28, 36, 48, .06), 0 28px 56px -28px rgba(28, 36, 48, .32);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-color: var(--line-2) transparent; }
body { margin: 0; font: 400 18px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
::selection { background: #D9E8B8; color: var(--ink); }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 4.6vw, 4rem); font-weight: 600; line-height: 1.04; letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 3.2vw, 2.75rem); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 16px; text-wrap: pretty; }
a { color: var(--accent-press); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 12px 18px; background: var(--ink); color: #fff; }
.skip:focus, .skip:hover { left: 12px; top: 12px; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px;
  border: 1px solid var(--accent); border-radius: var(--r); background: var(--accent); color: #fff;
  font: 600 1.06rem/1 var(--font); text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 34, 61, .25);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: var(--accent-press); border-color: var(--accent-press); color: #fff; box-shadow: 0 6px 16px -8px rgba(15, 34, 61, .6); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(28, 36, 48, .06); }
.btn-secondary:hover { background: var(--wash); color: var(--ink); border-color: var(--ink-3); box-shadow: 0 1px 2px rgba(28, 36, 48, .06); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .98rem; }
.btn-block { width: 100%; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; color: #0F223D; text-decoration: none; font-family: "Montserrat", "Barlow", sans-serif; font-weight: 700; font-size: 1.2rem; letter-spacing: .04em; text-transform: uppercase; }
.logo:hover { color: #0F223D; }
.nav-links { display: flex; gap: 28px; }
.nav-links a, .nav-login { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 1rem; }
.nav-links a:hover, .nav-login:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 20px; }

/* Start */
.hero { padding: 72px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5.7fr) minmax(0, 6.3fr); gap: 48px; align-items: center; }
.lead { font-size: 1.22rem; line-height: 1.55; color: var(--ink-2); max-width: 40ch; margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 16px; }
.hero-cta .btn { white-space: nowrap; }
.hero-note { font-size: .98rem; color: var(--ink-3); margin: 0; }
.hero-shot { margin: 0; width: calc(100% + 200px); }
.hero-shot figcaption { margin-top: 14px; font-size: .92rem; color: var(--ink-3); }

/* Rahmen für echte App-Ansichten */
.frame { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; box-shadow: var(--shadow-frame); }
.frame-bar { display: flex; align-items: center; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #FAFBFC; font-size: .82rem; color: var(--ink-3); }

/* Kurzfakten */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts p { margin: 0; padding: 24px 24px 24px 0; font-size: 1rem; color: var(--ink-2); line-height: 1.45; }
.facts p + p { padding-left: 24px; border-left: 1px solid var(--line); }
.facts strong { display: block; color: var(--ink); font-weight: 600; font-size: 1.06rem; margin-bottom: 2px; }

/* Abschnitte */
.section { padding: 112px 0; }
.section-wash { background: var(--wash); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-lead { font-size: 1.15rem; color: var(--ink-2); margin-top: 16px; max-width: 60ch; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

.problem { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.pains { list-style: none; margin: 0; padding: 0; }
.pains li { padding: 20px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.pains li:first-child { padding-top: 0; border-top: 0; }
.pains strong { color: var(--ink); font-weight: 600; }

/* Produkt-Tour: Reiter tauschen die große Ansicht */
.tour-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 32px; background: #fff; border: 1px solid var(--line); border-radius: 10px; width: fit-content; }
.tour-tabs button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font: 500 1rem var(--font); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.tour-tabs button:hover { color: var(--ink); background: var(--wash); }
.tour-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tour-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.tour-panel + .tour-panel { margin-top: 64px; }
.tour-text h3 { margin-bottom: 12px; }
.tour-text p { color: var(--ink-2); }
.tour.js .tour-panel + .tour-panel { margin-top: 0; }
.tour.js .tour-panel[hidden] { display: none; }
.tour.js .tour-panel { animation: tour-in .45s var(--ease) both; }
@keyframes tour-in { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Zweispaltige Abschnitte */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.split-reverse .split-text { order: 2; }
.split-reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split-shot, .phone-shot { margin: 0; }

/* Handy mit echter Prüfansicht: Gehäuse mit Metallrand, Kamerainsel, Statusleiste, Tasten, sichtbare Gehäusetiefe,
   leicht zur Textspalte gedreht. Das Bild ist eine Aufnahme der App (390 × 800 CSS-Pixel, doppelte Auflösung). */
.phone-shot { justify-self: center; width: 300px; position: relative; }
.device { --w: 300px; --k: .926; /* = Breite / 324 */ width: var(--w); perspective: 1700px; filter: drop-shadow(26px 34px 34px rgba(28, 36, 48, .22)) drop-shadow(4px 8px 10px rgba(28, 36, 48, .16)); }
.device-body {
  position: relative; padding: calc(12px * var(--k)); border-radius: calc(52px * var(--k)); background: #151A21;
  box-shadow: inset 0 0 0 calc(2px * var(--k)) #6B7582, inset 0 0 0 calc(4px * var(--k)) #0B0E12;
  transform: rotateY(-18deg) rotateX(5deg) rotateZ(1.5deg); transform-style: preserve-3d;
}
/* Gehäusetiefe: eine zweite, dunklere Platte dahinter; durch die Drehung wird ihre Kante sichtbar */
.device-body::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: #2E3640;
  box-shadow: inset 0 0 0 calc(2px * var(--k)) #4A5462; transform: translateZ(calc(-16px * var(--k)));
}
.device-key { position: absolute; width: calc(4px * var(--k)); border-radius: 2px; background: #3C4551; transform: translateZ(calc(-8px * var(--k))); }
.key-action { left: calc(-3px * var(--k)); top: 17%; height: 4%; }
.key-up { left: calc(-3px * var(--k)); top: 24%; height: 8%; }
.key-down { left: calc(-3px * var(--k)); top: 34%; height: 8%; }
.key-power { right: calc(-3px * var(--k)); top: 27%; height: 12%; }
.device-screen { position: relative; overflow: hidden; border-radius: calc(41px * var(--k)); background: var(--ink); transform: translateZ(1px); }
.device-screen img { display: block; width: 100%; height: auto; }
.device-status {
  display: flex; align-items: center; justify-content: space-between; height: calc(36px * var(--k)); padding: calc(6px * var(--k)) calc(26px * var(--k)) 0;
  background: var(--ink); color: #fff; font: 600 calc(13px * var(--k))/1 var(--font); letter-spacing: .01em;
}
.device-status svg { height: calc(11px * var(--k)); width: auto; fill: #fff; }
.device-island { position: absolute; top: calc(9px * var(--k)); left: 50%; width: calc(84px * var(--k)); height: calc(24px * var(--k)); margin-left: calc(-42px * var(--k)); border-radius: 99px; background: #050608; }
/* Lichtreflex auf dem Glas, sehr zurückhaltend */
.device-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 26%, rgba(255, 255, 255, 0) 42%); pointer-events: none; }

.ticks { list-style: none; margin: 24px 0 0; padding: 0; }
.ticks li { position: relative; padding: 8px 0 8px 32px; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%;
  background: #E8ECF0 center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C2430' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
}
.ticks-small li { font-size: 1rem; padding: 6px 0 6px 30px; }
.ticks-small li::before { top: 10px; }

/* Preise */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.price-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 48px -28px rgba(15, 34, 61, .45); }
.price-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.45rem; }
.badge { padding: 3px 10px; border-radius: 999px; background: #E8ECF0; color: var(--ink); font-size: .8rem; font-weight: 600; letter-spacing: 0; }
.price-for { color: var(--ink-2); font-size: 1rem; margin: 6px 0 20px; min-height: 3.2em; }
.price { display: flex; flex-direction: column; gap: 2px; margin-bottom: 24px; }
.price strong { font-size: 2.75rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.price span { color: var(--ink-3); font-size: .96rem; }
.price-alt { margin: -16px 0 24px; color: var(--ink-2); font-size: .96rem; }
.price-card .ticks { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.price-note { margin: 24px auto 0; text-align: center; color: var(--ink-3); font-size: .98rem; max-width: 70ch; }
/* Kostenloser Einstieg: eine ruhige Zeile über den Tarifen, keine vierte Karte */
.free-tier { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 24px; padding: 20px 32px; background: var(--wash); border: 1px solid var(--line); border-radius: var(--r-lg); }
.free-tier h3 { font-size: 1.2rem; margin: 0 0 4px; }
.free-tier p { margin: 0; color: var(--ink-2); max-width: 70ch; }
.free-tier .btn { flex: none; }
/* Staffel im Dienstleister-Tarif */
.tiers { width: 100%; border-collapse: collapse; margin: -8px 0 8px; font-variant-numeric: tabular-nums; }
.tiers th, .tiers td { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.tiers th { text-align: left; font-weight: 400; color: var(--ink-2); }
.tiers td { text-align: right; font-weight: 600; }
.tiers-example { margin: 0 0 20px; color: var(--ink-3); font-size: .96rem; }
@media (max-width: 680px) {
  .free-tier { flex-direction: column; align-items: flex-start; padding: 20px; }
}

.steps { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--line); padding-top: 40px; }
.steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; align-items: start; }
.step-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); font-weight: 600; color: var(--ink); }
.steps strong { display: block; font-weight: 600; margin: 4px 0 4px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 1rem; }

/* Funktionsübersicht */
.matrix-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.matrix { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 1rem; }
.matrix th, .matrix td { padding: 13px 20px; border-bottom: 1px solid var(--line); text-align: center; }
.matrix tbody th[scope=row] { text-align: left; font-weight: 400; color: var(--ink); }
.matrix thead th { font-weight: 600; font-size: 1.02rem; background: #FAFBFC; }
.matrix thead th:first-child { text-align: left; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.matrix td { width: 140px; color: var(--ink-3); }
.matrix td.yes::before { content: ""; display: inline-block; width: 20px; height: 20px; vertical-align: middle; background: center / 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%231C2430%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27m5 12 5 5 9-10%27/%3E%3C/svg%3E"); }
.matrix td.no::before { content: ""; display: inline-block; width: 12px; height: 2px; vertical-align: middle; background: var(--line-2); }
.matrix tr.group th { text-align: left; padding-top: 22px; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: #fff; }
.matrix tbody tr:last-child > * { border-bottom: 0; }
.matrix .short, .matrix-legend { display: none; }

/* Fragen */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-weight: 600; font-size: 1.1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
summary:hover { color: var(--accent-press); }
details p { color: var(--ink-2); padding-bottom: 22px; margin: 0; max-width: 68ch; }

/* Formular */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-frame); overflow: hidden; }
.form-head { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 28px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 1.2rem; }
.form-head-hint { font-weight: 400; font-size: .95rem; color: var(--ink-3); }
.form-body { padding: 24px 28px 28px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field legend, label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 6px; padding: 0; }
.req { color: var(--ink-2); }
input[type=email], input[type=text], input[type=tel], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: 400 1.05rem var(--font); color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); caret-color: var(--accent);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22, 58, 107, .2); }
textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.field.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); }
.field.check label { font-weight: 400; margin: 0; font-size: .98rem; color: var(--ink-2); }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice { display: flex; gap: 10px; align-items: center; min-height: 48px; margin: 0; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--r); font-weight: 500; font-size: 1rem; line-height: 1.25; cursor: pointer; }
.choice:hover { border-color: var(--ink-3); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent); }
.choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); }
.field.invalid input, .field.invalid select { border-color: #B91C1C; background: #FEF2F2; }
.field.invalid label, .field.invalid legend { color: #B91C1C; }
.form.two-step:not(.step-2) .form-more { display: none; }
.form.step-2 .form-basic, .form.step-2 .form-head-hint { display: none; }
.form-done, .form-success { margin-bottom: 20px; padding: 16px 18px; border-radius: var(--r); background: #F0FDF4; border: 1px solid #BBF7D0; }
.form-done h3, .form-success h3 { font-size: 1.2rem; margin-bottom: 4px; }
.form-done p, .form-success p { margin: 0; color: var(--ink-2); }
.form-done:focus, .form-success:focus { outline: none; }
.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.6em; font-size: 1rem; }
.form-status.error { color: #B91C1C; }
.link-btn { display: block; margin: 14px auto 0; padding: 10px; min-height: 44px; background: none; border: 0; font: 500 1rem var(--font); color: var(--ink-2); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.link-btn[hidden] { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Abschluss und Fußzeile */
.cta { padding: 112px 0; background: var(--accent-press); color: #fff; }
/* Auf Navy wie das negative Logo: Signalgrün als Handlung, Navy als Schrift (9:1) */
.cta .btn { background: #9BDD1F; border-color: #9BDD1F; color: var(--accent-press); box-shadow: none; }
.cta .btn:hover { background: #B5EB52; border-color: #B5EB52; color: var(--accent-press); box-shadow: none; }
.cta :focus-visible { outline-color: #9BDD1F; }
.cta-inner { text-align: center; }
.cta h2 { color: #fff; max-width: 20ch; margin: 0 auto 16px; }
.cta p { color: #D8E2EE; font-size: 1.15rem; }
.cta .hero-cta { justify-content: center; }
.cta .btn-secondary { background: transparent; color: #fff; border-color: #5F6B7A; box-shadow: none; }
.cta .btn-secondary:hover { background: rgba(255, 255, 255, .08); border-color: #C9D0D8; color: #fff; }
.footer { padding: 32px 0; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .98rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }

/* Eine Bewegung: die Startansicht setzt sich beim Laden */
@media (prefers-reduced-motion: no-preference) {
  .hero-shot .frame { animation: settle 1.1s var(--ease) both; }
  @keyframes settle { from { transform: translate(24px, 12px); filter: blur(6px); opacity: .55; } to { transform: none; filter: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Responsiv */
@media (max-width: 1080px) {
  .hero-grid, .problem, .split, .split-reverse, .tour-panel, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split-reverse .split-text { order: 0; }
  .hero-shot { width: 100%; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .facts p:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts p:nth-child(n+3) { border-top: 1px solid var(--line); }
  .price-for { min-height: 0; }
  .pricing, .steps { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .section { padding: 88px 0; }
  .nav-links { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 48px 0 56px; }
  .nav-login { display: none; }
  .facts-row { grid-template-columns: 1fr; }
  .facts p, .facts p + p { padding: 16px 0; border-left: 0; }
  .facts p + p { border-top: 1px solid var(--line); }
  .field-row, .choices { grid-template-columns: 1fr; }
  .tour-tabs { width: 100%; flex-wrap: wrap; }
  .tour-tabs button { flex: 1 1 auto; padding: 0 12px; }
  .form-head, .form-body { padding-left: 20px; padding-right: 20px; }
  .section, .cta { padding: 64px 0; }
  .matrix { min-width: 0; font-size: .95rem; }
  .matrix th, .matrix td { padding: 11px 6px; }
  .matrix td { width: 68px; }
  .matrix thead th:not(:first-child) { font-size: .78rem; hyphens: manual; line-height: 1.2; }
  .matrix tbody th[scope=row] { padding-left: 14px; }
  .matrix .long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .matrix .short { display: inline; }
  .matrix-legend { display: block; margin: 10px 0 0; text-align: center; color: var(--ink-3); font-size: .95rem; }
  .phone-shot { width: 250px; }
  .device { --w: 250px; --k: .772; }
  .device-body { transform: rotateY(-12deg) rotateX(4deg) rotateZ(1deg); }
}

/* Rechtsseiten und Danke-Seite */
.wrap.narrow { max-width: 760px; }
.legal { padding: 64px 0 112px; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 24px; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 8px; }
.legal p, .legal li { color: var(--ink-2); max-width: 68ch; }
.legal h3 { font-size: 1.15rem; margin: 24px 0 6px; }
.legal address { font-style: normal; color: var(--ink-2); line-height: 1.6; }
.legal-intro { font-size: 1.1rem; }
.legal-updated { color: var(--ink-3); font-size: 1rem; }
.legal-toc { margin: 24px 0 8px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r); }
.legal-toc h2 { font-size: 1.1rem; margin: 0 0 8px; }
.legal-toc ol { margin: 0; padding-left: 0; list-style: none; columns: 2 18em; column-gap: 32px; }
.legal-toc li { margin: 2px 0; }
.legal-table { overflow-x: auto; margin: 12px 0 8px; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.legal-table th { color: var(--ink); font-weight: 600; background: var(--wash); }
.todo { padding: 14px 18px; border: 1px solid var(--warning-line); border-radius: var(--r); background: var(--warning-tint); color: var(--ink); }


/* Handy: Produktansichten lesbar groß, seitlich wischbar */
@media (max-width: 680px) {
  .tour-panel .frame, .stack .frame { overflow-x: auto; overscroll-behavior-x: contain; }
  .tour-panel .frame img, .stack .frame img { width: 720px; max-width: none; }
  .tour-panel .frame::after, .stack .frame::after { content: none; }
  .tour-panel:not(:has(.frame-fit))::after { content: "Ansicht seitlich wischen"; display: block; margin-top: -28px; font-size: .9rem; color: var(--ink-3); }
  .tour-panel .frame-fit { overflow: hidden; max-width: 360px; }
  .tour-panel .frame-fit img { width: 100%; max-width: 100%; }
}

/* Nach der zweiten Prüfung: Tourenkarte überlappt nur den leeren Rand der Gesamtübersicht */
.stack { padding: 0; margin: 0; }
.stack-back { width: 100%; }
.stack-front { position: relative; right: auto; bottom: auto; width: 72%; margin: -14px 0 0 auto; }
.stack figcaption { position: static; max-width: none; margin-top: 14px; }
@media (max-width: 680px) {
  .stack-front { width: 100%; margin: 16px 0 0; }
  .stack figcaption::after { content: " · Ansichten seitlich wischen"; }
}

/* Site footer (since 29.11.2026): brand, description, facts and copyright on the left,
   links grouped by purpose on the right. One source: siteFooter() in landing/scripts/ratgeber-shared.mts. */
.site-footer { border-top: 1px solid var(--line); background: var(--wash); }
.site-footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 56px; padding-top: 64px; padding-bottom: 56px; }
.site-footer .logo { display: inline-flex; }
.site-footer-tagline { margin: 16px 0 0; max-width: 34ch; color: var(--ink-2); font-size: 1rem; }
.site-footer-facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.site-footer-facts li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 1rem; }
.site-footer-facts li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(-45deg); }
.site-footer-copy { margin: 24px 0 0; color: var(--ink-3); font-size: 1rem; }
.site-footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
.site-footer-group h2 { margin: 0 0 12px; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.site-footer-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer-group a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink-2); font-size: 1rem; text-decoration: none; }
.site-footer-group a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 1080px) { .site-footer-top { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 680px) {
  .site-footer-top { padding-top: 48px; padding-bottom: 40px; }
  .site-footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
