/* =========================================================
   Badkalkulator.de — Stylesheet
   Farben exakt aus der Logo-Datei gepickt:
     Logo-Blau  #037ACE   Navy  #15304A
   Anmutung: Werkstattzeichnung — Papier, Hairlines, Bemaßung.
   Schrift: IBM Plex Sans / IBM Plex Mono (technische Dokumentation).
   ========================================================= */

/* ---------- Fonts (lokal gehostet, kein Google-CDN → DSGVO) ---------- */
@font-face {
  font-family: 'Plex Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/plexsans-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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Plex Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/plexsans-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: 'Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/plexmono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Plex Mono'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/plexmono-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --blue:      #037ace;
  --blue-cta:  #0270c2;
  --blue-deep: #01598f;

  --navy:      #15304a;

  --paper:     #f8f7f4;
  --white:     #ffffff;

  --ink:       #15304a;
  --body:      #45566a;
  --muted:     #5f7086;

  --line:      rgba(21,48,74,.10);
  --line-2:    rgba(21,48,74,.20);

  --r:         3px;
  --wrap:      1140px;
  --pad:       24px;

  --font-sans: 'Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --ease:      cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--ink); margin: 0; }
h1, h2 { font-weight: 700; letter-spacing: -.022em; line-height: 1.06; }
h3 { font-weight: 600; letter-spacing: -.01em; line-height: 1.28; }
p { margin: 0; max-width: 65ch; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 20px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons / Links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  font-weight: 600; font-size: 1rem; line-height: 1.25;
  text-decoration: none; padding: 16px 30px; border-radius: var(--r);
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn-primary { background: var(--blue-cta); color: #fff; border-color: var(--blue-cta); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); }

.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; }

.btn-line { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

.btn-sm { padding: 11px 20px; font-size: .93rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1rem;
  color: var(--navy); text-decoration: none;
  padding-bottom: 3px; border-bottom: 1px solid var(--line-2);
}
.text-link:hover { color: var(--blue-deep); border-bottom-color: var(--blue); }
.text-link .arrow { transition: transform .18s var(--ease); }
.text-link:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,247,244,.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 36px; min-height: 78px; }
.logo { display: inline-flex; margin-right: auto; }
.logo img { width: 208px; height: auto; }

/* Wechsel zwischen Privatkunden- und Betriebe-Seite: dezent, ohne Button-Optik */
.header-switch {
  font-size: .93rem; font-weight: 500; color: var(--muted); text-decoration: none;
  padding: 4px 0; border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.header-switch:hover { color: var(--navy); border-bottom-color: var(--blue); }

.site-nav { display: flex; gap: 30px; }
.site-nav a {
  font-size: .96rem; font-weight: 500;
  color: var(--muted); text-decoration: none; padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--blue); }

/* ---------- Blaupausen-Raster ---------- */
.hero { position: relative; padding: clamp(52px, 6.5vw, 88px) 0 clamp(64px, 8vw, 110px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(to right,  var(--line) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 44px);
  opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 72%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 72%);
}
.hero > * { position: relative; }

/* ---------- Hero ---------- */
.hero h1 { font-size: clamp(2.3rem, 5.9vw, 4.4rem); max-width: 15ch; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: clamp(40px, 5vw, 76px); align-items: start;
  margin-top: clamp(40px, 5vw, 64px);
}
.lead { font-size: 1.18rem; color: var(--body); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 36px; }

.spec { margin-top: 48px; border-top: 1px solid var(--line); }
.spec-row {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.spec dt {
  font-family: var(--font-mono); font-size: .81rem; font-weight: 500; letter-spacing: .01em;
  color: var(--muted); padding-top: .18em;
}
.spec dd { font-size: .98rem; color: var(--body); }

/* ---------- Abbildungen: dünner Rahmen + Bemaßung beim Überfahren ---------- */
.frame { position: relative; margin: 0; }
.frame-inner {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r);
  transition: border-color .3s ease;
}
.frame:hover .frame-inner { border-color: rgba(3,122,206,.45); }
.frame img { transition: transform .7s var(--ease); }
.frame:hover img { transform: scale(1.025); }

/* Eckwinkel wie Passermarken — erscheinen erst beim Überfahren */
.measure { position: absolute; inset: 13px; pointer-events: none; }
.measure::before, .measure::after {
  content: ""; position: absolute; width: 20px; height: 20px;
  /* helleres Blau, damit die Marken sowohl auf hellen als auch auf dunklen Screenshots stehen */
  border: 1px solid #57adee;
  opacity: 0; transition: opacity .3s ease, transform .45s var(--ease);
}
.measure::before { top: 0;    left: 0;  border-right: 0; border-bottom: 0; transform: translate(6px, 6px); }
.measure::after  { bottom: 0; right: 0; border-left: 0;  border-top: 0;    transform: translate(-6px, -6px); }
.frame:hover .measure::before,
.frame:hover .measure::after { opacity: .85; transform: translate(0, 0); }

.fig-cap {
  margin-top: 14px; font-family: var(--font-mono); font-size: .79rem;
  line-height: 1.55; color: var(--muted); max-width: 46ch;
}

/* Hero-Bild läuft asymmetrisch aus dem Raster nach rechts heraus */
@media (min-width: 1100px) {
  .frame-bleed { margin-right: min(0px, calc(546px - 50vw)); }
  .frame-bleed .frame-inner { border-right: 0; border-radius: var(--r) 0 0 var(--r); }
  .frame-bleed .measure::after { right: 26px; }
}

/* ---------- Sektionen ---------- */
.section { padding: clamp(72px, 9vw, 124px) 0; }

.section-head { position: relative; padding-top: 34px; border-top: 1px solid var(--line-2); }
.section-head::before {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 9px; background: var(--line-2);
}
/* Blattnummer sitzt auf der Linie und unterbricht sie */
.sheet {
  position: absolute; top: 0; right: 0; transform: translateY(-50%);
  background: var(--paper); padding-left: 16px;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500; color: var(--muted);
}
.section-head h2 { font-size: clamp(1.95rem, 4.4vw, 3.3rem); }

/* ---------- 01 Ablauf ---------- */
.steps { position: relative; margin-top: clamp(46px, 5vw, 72px); }
.steps::before {
  content: ""; position: absolute; left: 112px; top: 0; bottom: 0; width: 1px; background: var(--line);
}
.step {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) 168px;
  column-gap: 44px; align-items: start;
  padding: clamp(34px, 3.6vw, 50px) 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  position: relative; align-self: stretch; margin: 0; padding-right: 30px; text-align: right;
  font-family: var(--font-mono); font-weight: 600; font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1; letter-spacing: -.02em; color: var(--blue);
}
.step-num::after {
  content: ""; position: absolute; right: -15px; top: .46em;
  width: 15px; height: 1px; background: var(--blue);
  transition: width .35s var(--ease), right .35s var(--ease);
}
.step:hover .step-num::after { width: 30px; right: -30px; }
.step-body h3 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); }
.step-body p { margin-top: 14px; }
.step-draw { color: var(--navy); opacity: .38; transition: opacity .35s ease, color .35s ease; }
.step:hover .step-draw { opacity: .75; color: var(--blue-deep); }
.step-draw svg { width: 100%; height: auto; }

/* ---------- 02 Einsatz (60/40, bewusst ungleich) ---------- */
.scenarios {
  display: grid; grid-template-columns: 1.5fr 1fr;
  margin-top: clamp(46px, 5vw, 72px); align-items: stretch;
}
.scenario-lead { padding-right: clamp(32px, 4vw, 64px); }
.scenario-side { padding-left: clamp(32px, 4vw, 64px); border-left: 1px solid var(--line); }
.scenario h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.scenario-side h3 { font-size: clamp(1.3rem, 1.9vw, 1.55rem); }
.scenario p { margin-top: 16px; }
.scenario .frame { margin-top: 34px; }

/* ---------- 03 Integration ---------- */
.integration {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: clamp(44px, 6vw, 96px); align-items: start;
  margin-top: clamp(46px, 5vw, 72px);
}
.body-lg { font-size: 1.13rem; }
.dash-list { margin-top: 30px; }
.dash-list li { position: relative; padding-left: 34px; margin-top: 14px; color: var(--body); }
.dash-list li::before {
  content: ""; position: absolute; left: 0; top: .82em; width: 18px; height: 1px; background: var(--blue);
}

.schema { padding-top: 6px; }
.schema-node {
  display: flex; align-items: baseline; gap: 16px;
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 16px 20px; transition: border-color .25s ease, transform .25s var(--ease);
}
.schema:hover .schema-node { border-color: rgba(3,122,206,.35); }
.schema-node-end { border-color: var(--blue); }
.schema-idx { font-family: var(--font-mono); font-size: .78rem; font-weight: 500; color: var(--blue); }
.schema-name { font-weight: 500; color: var(--navy); }
.schema-link { display: grid; place-items: center; height: 38px; }
.schema-link span { position: relative; display: block; width: 1px; height: 100%; background: var(--line-2); }
.schema-link span::after {
  content: ""; position: absolute; left: -3px; bottom: 1px; width: 7px; height: 7px;
  border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  transform: rotate(45deg);
}

/* ---------- 04 Preise ---------- */
.plans-sub { margin-top: 22px; font-size: 1.09rem; max-width: 62ch; }
.plans {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px;
  margin-top: clamp(40px, 4.5vw, 60px);
}
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: clamp(26px, 3vw, 38px);
}
/* Kleine Überzeile in Mono wie Bildunterschriften und Spec-Labels – bewusst ohne Versalien/Sperrsatz */
.plan-eyebrow { font-family: var(--font-mono); font-size: .78rem; font-weight: 500; color: var(--muted); }
.plan h3 { margin-top: 8px; font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.plan-tagline { margin-top: 6px; color: var(--body); }
.plan-price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--ink);
}
/* Der Preis bleibt die größte Zahl der Karte */
.plan-amount {
  font-weight: 700; font-size: clamp(2.2rem, 4vw, 2.8rem); line-height: 1;
  letter-spacing: -.022em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.plan-from, .plan-unit { font-size: 1rem; font-weight: 500; color: var(--muted); }
.nowrap { white-space: nowrap; }
.plan-terms { margin-top: 10px; font-family: var(--font-mono); font-size: .79rem; line-height: 1.55; color: var(--muted); }
.plan-list { margin: 18px 0 30px; padding-top: 4px; border-top: 1px solid var(--line); }
.plan-list li { font-size: .98rem; }
/* Button am Kartenende, auch wenn die Listen unterschiedlich lang sind */
.plan-cta { margin-top: auto; align-self: flex-start; }

/* Hervorgehobene Karte: Navy, Nebentext #c9d3de (Kontrast 8,9:1), Haupttext Weiß */
.plan-featured { background: var(--navy); border-color: var(--navy); color: #c9d3de; }
.plan-featured h3, .plan-featured .plan-price, .plan-featured .plan-tagline { color: #fff; }
.plan-featured .plan-eyebrow, .plan-featured .plan-terms,
.plan-featured .plan-from, .plan-featured .plan-unit,
.plan-featured .plan-list li { color: #c9d3de; }
.plan-featured .plan-price, .plan-featured .plan-list { border-top-color: rgba(255,255,255,.16); }
.plan-featured .dash-list li::before { background: #57adee; }
.plan-featured .btn-light:hover { border-color: #fff; }
/* Kleines rechteckiges Badge oben rechts, auf der Kante wie die Blattnummern */
.plan-badge {
  position: absolute; top: 0; right: clamp(26px, 3vw, 38px); transform: translateY(-50%);
  background: var(--blue-cta); color: #fff; border-radius: var(--r);
  padding: 4px 10px; font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
}

/* Die Rechnung: helle Fläche wie die übrigen Info-Kästen, volle Rasterbreite */
.plans-calc {
  margin-top: 20px; padding: clamp(24px, 3vw, 36px);
  background: var(--white); border: 1px solid var(--line-2); border-left: 2px solid var(--blue);
  border-radius: var(--r);
}
.plans-calc .body-lg { margin-top: 10px; max-width: 70ch; color: var(--ink); }

/* Gut zu wissen: details/summary, ohne JavaScript */
.plans-faq { margin-top: clamp(44px, 5vw, 64px); max-width: 800px; }
.plans-faq h3 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.plans-faq details { border-bottom: 1px solid var(--line); }
.plans-faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 16px 40px 16px 0; font-weight: 600; color: var(--navy);
}
.plans-faq summary::-webkit-details-marker { display: none; }
.plans-faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 1.15rem; font-weight: 500; color: var(--blue);
}
.plans-faq details[open] summary::after { content: "\2212"; }
.plans-faq summary:hover { color: var(--blue-deep); }
.plans-faq details p { padding: 0 0 18px; margin-top: -4px; }

@media (min-width: 700px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

/* ---------- Zitat-Platzhalter ---------- */
.quote { margin: clamp(40px, 5vw, 64px) 0 0; max-width: 46rem; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.4; letter-spacing: -.012em; color: var(--ink); max-width: none;
}
.quote figcaption { margin-top: 22px; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }

/* ---------- Abschluss + Footer: ein dunkler Block ---------- */
.closing { position: relative; background: var(--navy); color: rgba(255,255,255,.76); }
.closing::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(to right,  rgba(255,255,255,.05) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.05) 0 1px, transparent 1px 44px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 62%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 62%);
}
.closing > * { position: relative; }
.closing-inner { padding: clamp(76px, 9vw, 128px) var(--pad) clamp(64px, 7vw, 96px); }
.closing h2 { color: #fff; font-size: clamp(1.85rem, 4.1vw, 3.05rem); max-width: 19ch; }
.closing-sub { margin-top: 24px; font-size: 1.09rem; color: rgba(255,255,255,.72); max-width: 52ch; }
.closing .btn { margin-top: 0; }

/* ---------- Terminbuchung: Zwei-Klick-Einbettung ---------- */
.booking { margin-top: 44px; max-width: 940px; }
.booking-gate {
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--r);
  padding: clamp(24px, 3vw, 34px);
}
.booking-note {
  font-size: .95rem; line-height: 1.65; color: rgba(255,255,255,.68); max-width: 62ch;
}
.booking-note a { color: rgba(255,255,255,.9); text-decoration: underline; text-underline-offset: 3px; }
.booking-note a:hover { color: #fff; }
.booking-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 26px;
}
.booking-alt {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.78); text-decoration: none;
  padding-bottom: 2px; border-bottom: 1px solid rgba(255,255,255,.28);
}
.booking-alt:hover { color: #fff; border-bottom-color: rgba(255,255,255,.7); }
.booking-alt .arrow { transition: transform .18s var(--ease); }
.booking-alt:hover .arrow { transform: translate(3px, -3px); }

.booking-frame {
  background: #fff; border-radius: var(--r); overflow: hidden;
  min-height: 640px; padding: 6px;
}
.booking-frame:focus { outline: none; }
@media (max-width: 640px) { .booking-frame { min-height: 560px; } }

.site-footer { background: var(--navy); }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; justify-content: space-between;
  padding-top: 44px; padding-bottom: 36px; border-top: 1px solid rgba(255,255,255,.14);
}
.footer-brand img { width: 224px; }
.claim {
  margin-top: 16px; font-family: var(--font-mono); font-size: .82rem;
  color: rgba(255,255,255,.6); max-width: none;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-nav a {
  font-weight: 500; font-size: .95rem;
  color: rgba(255,255,255,.8); text-decoration: none;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
}
.footer-nav a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.5); }
.footer-bottom {
  padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.09);
  font-family: var(--font-mono); font-size: .79rem; color: rgba(255,255,255,.48);
}

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(48px, 6vw, 84px) 0 clamp(72px, 9vw, 120px); }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.legal .updated { margin-top: 16px; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.legal h2 {
  margin-top: 52px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 1.2rem; font-weight: 600; letter-spacing: -.008em;
}
.legal p { margin-top: 14px; }
.legal ul { list-style: none; margin-top: 14px; }
.legal li { position: relative; padding-left: 28px; margin-top: 9px; }
.legal li::before {
  content: ""; position: absolute; left: 0; top: .82em; width: 14px; height: 1px; background: var(--line-2);
}
.legal address { font-style: normal; margin-top: 14px; }
.legal a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }

.note {
  margin-top: 26px; padding: 20px 24px; max-width: none;
  background: #fdf8ec; border: 1px solid rgba(21,48,74,.14); border-left: 2px solid #c8901a;
  font-size: .96rem; color: #6b4f08;
}
.note strong { color: #4a3705; }

.back-link {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 34px;
  font-family: var(--font-mono); font-size: .8rem; color: var(--muted); text-decoration: none;
}
.back-link:hover { color: var(--navy); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { max-width: 18ch; }
  .lead { max-width: 60ch; }
  .integration { grid-template-columns: 1fr; }
  .schema { max-width: 420px; }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .scenarios { grid-template-columns: 1fr; }
  .scenario-lead { padding-right: 0; padding-bottom: 52px; border-bottom: 1px solid var(--line); }
  .scenario-side { padding-left: 0; padding-top: 52px; border-left: 0; }
  .scenario-side h3 { font-size: 1.45rem; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .steps::before { left: 62px; }
  .step { grid-template-columns: 62px minmax(0, 1fr); column-gap: 24px; }
  .step-draw { display: none; }
  .step-num { padding-right: 18px; }
  .step-num::after { width: 10px; right: -10px; }
  .header-inner { min-height: 68px; gap: 16px; }
  .logo img { width: 178px; }
  .footer-inner { flex-direction: column; gap: 30px; }
}
@media (max-width: 520px) {
  :root { --pad: 20px; }
  .hero-actions { gap: 20px; align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .text-link { align-self: flex-start; }
  .header-cta { display: none; }
  .logo img { width: 166px; }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
  .spec dt { padding-top: 0; }
  .measure { inset: 9px; }
}

/* ---------- Touch: kein Hover, Bemaßung dauerhaft dezent ---------- */
@media (hover: none) {
  .frame .measure::before, .frame .measure::after { opacity: .5; transform: none; }
  .frame img { transform: none !important; }
}

/* ---------- Motion / Print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .frame:hover img { transform: none; }
}
@media print {
  .site-header, .hero-actions, .closing .btn { display: none; }
  body { background: #fff; font-size: 12pt; }
  .hero::before, .closing::before, .measure { display: none; }
}
