/* ==========================================================================
   Schriften – selbst gehostet (woff2, latin). Kein Drittanbieter-Request.
   Poppins: Überschriften · Lato: Fließtext · Montserrat: Labels und Navigation
   ========================================================================== */

@font-face {
  font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/lato-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/lato-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/poppins-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/poppins-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/montserrat-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/montserrat-latin-600-normal.woff2") format("woff2");
}

/* ==========================================================================
   Blowball – Design System
   Farben, Typografie und Komponenten der Produktwebsite.
   Markenfarbe: mit Blowball-Styleguide abgleichen (siehe docs/offene-punkte.md)
   ========================================================================== */

:root {
  /* Flächen */
  --paper: #ffffff;
  --mist: #eff5f9;
  --mist-2: #e0eaf1;
  --ink: #03314b;          /* Markennavy des bestehenden Blowball-Auftritts */
  --ink-2: #05456a;
  --line: #d6e2ea;
  --line-dark: #1d5776;

  /* Text */
  --text: #0f2b3d;
  --muted: #526e7e;
  --muted-dark: #9dbccd;

  /* Marke: Blau des Logos */
  --brand: #007fd8;
  --brand-dark: #0065ae;
  --brand-tint: #e4f1fc;
  --brand-light: #3cc6d3;  /* Türkis aus dem Blowball-Verlauf */

  /* Signal – ausschließlich für Datenfluss und ausgehende Kanäle */
  --signal: #10879b;
  --signal-light: #3cc6d3;
  --signal-tint: #e3f6f8;

  /* Maße */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --radius: 10px;
  --radius-lg: 16px;

  /* Typografie */
  --font-display: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Lato", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-label: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.875rem);
  --step-0: clamp(1.02rem, 0.99rem + 0.15vw, 1.09rem);
  --step-1: clamp(1.125rem, 1.08rem + 0.25vw, 1.25rem);
  --step-2: clamp(1.35rem, 1.25rem + 0.5vw, 1.6rem);
  --step-3: clamp(1.65rem, 1.45rem + 0.9vw, 2.1rem);
  --step-4: clamp(2rem, 1.65rem + 1.6vw, 2.9rem);
  --step-5: clamp(2.2rem, 1.75rem + 2.2vw, 3.4rem);
}

/* --- Reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  line-height: 1.18;
  letter-spacing: -0.012em;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand); }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }

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

.section-dark :focus-visible { outline-color: var(--brand-light); }

/* --- Hilfsklassen --------------------------------------------------------- */

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

.section { padding-block: clamp(56px, 8vw, 104px); }
.section-mist { background: var(--mist); }
.section-dark { background: linear-gradient(180deg, #05435a 0%, #03314b 100%); color: #e4eef4; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: var(--brand-light); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }

.eyebrow {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin: 0 0 14px;
  font-weight: 500;
}
.section-dark .eyebrow { color: var(--brand-light); }

.lead { font-size: var(--step-1); color: var(--muted); }
.section-dark .lead { color: var(--muted-dark); }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 0 0 var(--radius) var(--radius); z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 7px;
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.005em;
  font-size: var(--step-0);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.section-dark .btn-primary { background: #fff; color: var(--ink); }
.section-dark .btn-primary:hover { background: var(--brand-light); color: var(--ink); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-dark); background: #fff; }
.section-dark .btn-secondary { color: #fff; border-color: var(--line-dark); }
.section-dark .btn-secondary:hover { border-color: var(--brand-light); color: #fff; background: rgba(255,255,255,0.04); }
.btn-sm { padding: 9px 16px; font-size: var(--step--1); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.link-arrow {
  font-weight: 500; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.link-arrow::after { content: "→"; transition: transform 0.15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* --- Kopfzeile ------------------------------------------------------------ */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; gap: 26px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 161px; height: 34px; }
.footer .brand img { width: 189px; height: 40px; }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; position: relative; }

/* Menü, Sekundärlink und CTA teilen sich Schrift, Größe und Zeilenhöhe,
   damit die Grundlinien in der Kopfzeile exakt übereinanderliegen. */
.nav a,
.nav-trigger,
.nav-actions .login,
.topbar .btn-sm {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.4;
  padding: 9px 12px;
}
.nav a, .nav-trigger {
  display: block; border-radius: 6px;
  text-decoration: none; color: var(--text);
}
.nav a:hover, .nav-trigger:hover { background: var(--mist); color: var(--brand-dark); }
.nav a[aria-current="page"] { color: var(--brand-dark); font-weight: 700; }

.nav-trigger {
  background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
}
.nav-trigger[data-section="current"] { color: var(--brand-dark); font-weight: 700; }
.nav-trigger::after {
  content: ""; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: 0.55;
  transition: transform 0.15s ease;
}
.nav-trigger[aria-expanded="true"]::after { transform: rotate(180deg); }

.nav .subnav {
  position: absolute; top: calc(100% + 8px); left: 0;
  display: none; flex-direction: column; align-items: stretch; z-index: 60;
  /* Die Lücke zwischen Trigger und Panel wird von einer unsichtbaren Brücke
     überdeckt. Ohne sie verlässt der Zeiger auf dem Weg nach unten den
     Hover-Bereich und das Menü schließt, bevor man klicken kann. */
  min-width: 268px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 38px -18px rgba(3, 49, 75, 0.35);
}
.nav .subnav::before {
  content: ""; position: absolute;
  top: -10px; left: 0; right: 0; height: 10px;
}

.nav .has-sub:hover .subnav,
.nav .has-sub:focus-within .subnav,
.nav .nav-trigger[aria-expanded="true"] + .subnav { display: block; }

/* Mit JavaScript entscheidet der Zustand des Triggers: Escape schließt das
   Menü, obwohl der Fokus danach wieder auf dem Trigger liegt. Ohne JavaScript
   bleibt :focus-within die einzige Möglichkeit, das Menü per Tastatur zu
   erreichen – dann greift diese Regel nicht. */
.js-on .nav .nav-trigger[aria-expanded="false"]:focus + .subnav { display: none; }
.subnav li { width: 100%; }
.subnav a { padding: 9px 10px; }
.subnav a span { display: block; }
.subnav-hint {
  font-size: 13px; color: var(--muted); margin-top: 1px;
}
.subnav a:hover .subnav-hint { color: var(--brand-dark); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .login { text-decoration: none; color: var(--text); border-radius: 6px; }
.nav-actions .login:hover { color: var(--brand-dark); background: var(--mist); }
.topbar .btn-sm { font-family: var(--font-body); font-weight: 700; padding: 9px 18px; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 12px; font: inherit; font-size: 0.9rem; cursor: pointer; color: var(--text);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav, .nav-actions { display: none; }
  .topbar.is-open .nav,
  .topbar.is-open .nav-actions {
    display: block;
    width: 100%;
    margin-left: 0;
    padding-bottom: 16px;
  }
  .topbar.is-open .topbar-inner { flex-wrap: wrap; padding-bottom: 4px; }
  .topbar.is-open .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .topbar.is-open .nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .topbar.is-open .nav-trigger {
    display: flex; width: 100%; text-align: left; justify-content: space-between;
    padding: 12px 8px; color: var(--text); border-bottom: 1px solid var(--line);
    border-radius: 0; font-size: 15px; letter-spacing: 0; text-transform: none;
    font-family: var(--font-body); font-weight: 400;
  }
  .topbar.is-open .nav-trigger::after { display: block; margin-right: 5px; }
  .topbar.is-open .nav .subnav {
    display: none; position: static; min-width: 0;
    padding: 4px 0 8px 14px; border: 0; border-bottom: 1px solid var(--line);
    border-radius: 0; box-shadow: none; background: var(--mist);
  }
  .topbar.is-open .nav-trigger[aria-expanded="true"] + .subnav { display: block; }
  .topbar.is-open .subnav a { padding: 10px 12px; border-bottom: 0; }
  .topbar.is-open .subnav a::before { content: "›"; margin-right: 8px; color: var(--brand); }
  .topbar.is-open .subnav a span:first-child { display: inline; }
  .topbar.is-open .subnav-hint { display: none; }
  .topbar.is-open .nav-actions { display: flex; padding-top: 12px; }
}

/* --- Hero ----------------------------------------------------------------- */

.hero { padding-block: clamp(48px, 7vw, 88px) clamp(48px, 6vw, 80px); }
.hero-grid {
  display: grid; gap: clamp(32px, 5vw, 56px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.hero-grid-top { align-items: start; }
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: var(--muted); }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
  font-family: var(--font-label); font-size: 0.78rem; color: var(--muted);
  letter-spacing: 0.04em;
}

/* --- Screenshot-Rahmen (Platzhalter) -------------------------------------- */

.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(12,26,30,0.04), 0 18px 40px -24px rgba(12,26,30,0.35);
}
.shot-plain {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}
.shot-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--mist);
}
.shot-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mist-2); border: 1px solid var(--line); }
.shot-title {
  font-family: var(--font-label); font-size: 0.72rem; color: var(--muted);
  margin-left: 6px; letter-spacing: 0.03em;
}
.shot-image { display: block; width: 100%; height: auto; }
.shot-body {
  min-height: 300px;
  display: grid; place-items: center;
  padding: 32px 24px; text-align: center;
  background-color: #fafcfe;
  background-image:
    repeating-linear-gradient(135deg, rgba(0,127,216,0.05) 0 8px, transparent 8px 16px);
}
.shot-body p { max-width: 42ch; color: var(--muted); font-size: var(--step--1); margin: 0; }
.shot-body strong {
  display: block; font-family: var(--font-label); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand-dark); margin-bottom: 10px;
}
.shot-sm .shot-body { min-height: 200px; }

.shot-callouts { display: grid; gap: 10px; margin-top: 16px; }
.shot-callout {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline;
  font-size: var(--step--1); color: var(--muted);
}
.shot-callout span:first-child {
  font-family: var(--font-label); font-size: 0.7rem; color: var(--brand-dark);
  border: 1px solid var(--brand-tint); background: var(--brand-tint);
  border-radius: 4px; padding: 1px 6px;
}
.shot-checklist { list-style: none; margin-bottom: 0; padding: 0; }
.shot-checklist .shot-callout span:first-child {
  min-width: 28px; text-align: center;
}

/* --- Systemlandschaft ------------------------------------------------------ */

.landscape { margin-top: clamp(28px, 4vw, 48px); }
.landscape-svg { width: 100%; height: auto; }
.landscape-mobile { display: none; }

@media (max-width: 780px) {
  .landscape-svg { display: none; }
  .landscape-mobile { display: block; }
}

.flow-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.flow-row {
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 14px 16px; background: rgba(255,255,255,0.03);
}
.flow-row-core { border-color: #0a8ae6; background: rgba(0,127,216,0.16); }
.flow-label {
  font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted-dark); display: block; margin-bottom: 6px;
}
.flow-row-core .flow-label { color: var(--brand-light); }
.flow-items { display: flex; flex-wrap: wrap; gap: 6px; }
.flow-item {
  font-size: 0.85rem; border: 1px solid var(--line-dark); border-radius: 5px;
  padding: 4px 9px; color: #dcebf3;
}
.flow-row-core .flow-item { border-color: rgba(60,198,211,0.5); }
.flow-arrow { text-align: center; color: var(--brand-light); font-size: 1rem; line-height: 1; }


/* --- Einordnung: "Blowball passt, wenn ..." -------------------------------- */

.fitlist {
  list-style: none; margin: 34px 0 0; padding: 0;
  display: grid; gap: 0;
}
.fitlist li {
  display: grid; gap: 4px 20px; margin: 0;
  padding: 22px 0 22px 40px; border-top: 1px solid var(--line);
  position: relative;
}
.fitlist li::before {
  content: ""; position: absolute; left: 6px; top: 28px;
  width: 15px; height: 8px;
  border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
  transform: rotate(-45deg);
}
@media (min-width: 760px) { .fitlist li { grid-template-columns: 300px 1fr; } }
.fitlist strong { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); }
.fitlist span { color: var(--muted); }

.fit-counter {
  margin-top: 24px; padding: 16px 0 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: var(--step-0);
}

/* --- Herausgehobene Kernaussage -------------------------------------------- */

.pullquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-2);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-left: 3px solid var(--brand);
  padding: 4px 0 4px 22px;
  margin: 26px 0;
}

/* --- Raster / Karten ------------------------------------------------------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }

.card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; background: #fff;
  display: flex; flex-direction: column;
}
.card h3 { font-size: var(--step-1); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .link-arrow { margin-top: auto; padding-top: 14px; font-size: 0.95rem; }
.card-kicker {
  font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.card-example {
  margin: 14px 0 0; padding: 12px 14px;
  border-left: 2px solid var(--brand); background: var(--brand-tint);
  border-radius: 0 6px 6px 0; font-size: 0.9rem; color: var(--ink-2);
}

.fact {
  border-top: 1px solid var(--line); padding-top: 18px;
}
.fact h3 { font-size: var(--step-1); margin-bottom: 6px; }
.fact p { color: var(--muted); font-size: 0.95rem; }
.fact .proof {
  font-family: var(--font-label); font-size: 0.76rem; color: var(--brand-dark);
  display: block; margin-top: 8px; line-height: 1.5;
}
.section-dark .fact { border-color: var(--line-dark); }
.section-dark .fact p { color: var(--muted-dark); }
.section-dark .fact .proof { color: var(--brand-light); }

/* --- Use Cases ------------------------------------------------------------- */

.uc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.uc-tab {
  font: inherit; font-size: 0.92rem; cursor: pointer;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--text);
}
.uc-tab:hover { border-color: var(--brand); color: var(--brand-dark); }
.uc-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.uc-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: clamp(22px, 3vw, 34px); }
.uc-panel + .uc-panel { margin-top: 20px; }
.js-on .uc-panel + .uc-panel { margin-top: 0; }
.uc-panel h3 { margin-bottom: 6px; }
.uc-panel > p { color: var(--muted); max-width: 68ch; }

.chain { list-style: none; display: grid; gap: 10px; margin: 22px 0 0; padding: 0; }
@media (min-width: 720px) {
  .chain { grid-auto-flow: column; grid-auto-columns: 1fr; align-items: stretch; }
}
.chain li {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; position: relative; background: var(--mist);
  color: var(--text);   /* Karten sind immer hell – auch in dunklen Sektionen */
}
.chain li.is-core { background: var(--brand-tint); border-color: var(--brand); }
.chain li.is-out { background: #dcf3f6; border-color: #86d2dd; }
.chain-step {
  font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px;
}
.chain-title { font-weight: 700; display: block; margin-bottom: 4px; color: var(--text); }
.chain li p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.section-dark .chain-step, .section-dark .chain li p { color: var(--muted); }

/* --- FAQ ------------------------------------------------------------------- */

.faq { max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer; padding: 18px 34px 18px 0; position: relative;
  font-weight: 500; font-size: var(--step-1); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 15px;
  font-size: 1.4rem; color: var(--brand); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 20px; color: var(--muted); max-width: 70ch; }

/* --- Tabelle / Kennwerte --------------------------------------------------- */

.deflist { display: grid; gap: 0; margin: 0; }
.deflist > div {
  display: grid; gap: 4px 24px; padding: 16px 0; border-top: 1px solid var(--line);
}
@media (min-width: 700px) { .deflist > div { grid-template-columns: 220px 1fr; } }
.deflist dt { font-weight: 600; }
.deflist dd { margin: 0; color: var(--muted); }
.section-dark .deflist > div { border-color: var(--line-dark); }
.section-dark .deflist dd { color: var(--muted-dark); }

/* --- Hinweis / Platzhalter-Kennzeichnung ----------------------------------- */

.note {
  border: 1px dashed #d3ab63; background: #fdf5e6;
  border-radius: var(--radius); padding: 14px 18px;
  font-size: var(--step--1); color: #6b5220;
}
.note code { background: rgba(107, 82, 32, 0.09); }
.note strong { font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* --- Split-Blöcke ---------------------------------------------------------- */

.split { display: grid; gap: clamp(28px, 4vw, 52px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split-wide-right { }
@media (min-width: 900px) { .split-wide-right { grid-template-columns: 0.85fr 1.15fr; } }
.split-reverse > *:first-child { order: 2; }
@media (max-width: 899px) { .split-reverse > *:first-child { order: 0; } }


/* --- Erzählabschnitt: Label + Aussage links, Ausführung rechts --------------
   Bewusst nicht in Hero-Größe: die H1 der Seite bleibt die einzige große
   Stimme, Abschnittsaussagen stehen eine Stufe darunter. Beide Spalten sind
   oben ausgerichtet, damit Überschrift und erster Textabsatz auf einer Linie
   beginnen. */

.narrative {
  display: grid;
  gap: 18px 56px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
@media (min-width: 900px) {
  .narrative { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 0 clamp(40px, 5vw, 72px); }
}
.section-dark .narrative { border-color: var(--line-dark); }

.narrative-label {
  display: block;
  font-family: var(--font-label);
  font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-dark);
  margin: 0 0 12px;
}
.section-dark .narrative-label { color: var(--brand-light); }

.narrative h2 {
  font-size: var(--step-3);
  line-height: 1.25;
  margin: 0;
  max-width: 22ch;
}

.narrative-body { max-width: 60ch; }
/* Auf breiten Schirmen beginnt der Text auf Höhe der Aussage, nicht auf Höhe
   des kleinen Labels darüber. */
@media (min-width: 900px) { .narrative-body { padding-top: 34px; } }
.narrative-body > p:first-child {
  font-size: 1.14rem;
  line-height: 1.6;
  color: var(--text);
}
.narrative-body > p + p {
  margin-top: 0.9em;
  color: var(--muted);
}
@media (max-width: 899px) {
  .narrative-body > p:first-child { font-size: 1.06rem; }
}

/* --- Breadcrumb ------------------------------------------------------------ */

.breadcrumb { padding-block: 16px 0; }
.breadcrumb ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0; padding: 0; font-size: var(--step--1); color: var(--muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-dark); text-decoration: underline; }


/* --- Dokumentation --------------------------------------------------------- */

.docs-layout {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(32px, 4vw, 52px) clamp(56px, 7vw, 88px);
}
@media (min-width: 940px) {
  .docs-layout { grid-template-columns: 240px minmax(0, 1fr); }
}

.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav > ul > li + li { margin-top: 24px; }
.docs-nav h2 {
  font-family: var(--font-label); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 10px;
}
.docs-nav li { margin: 0; }
.docs-nav a {
  display: block; padding: 7px 12px; border-radius: 7px;
  text-decoration: none; color: var(--text); font-size: 0.97rem;
  border-left: 2px solid transparent;
}
.docs-nav a:hover { background: var(--mist); color: var(--brand-dark); }
.docs-nav a[aria-current="page"] {
  background: var(--brand-tint); color: var(--brand-dark);
  font-weight: 700; border-left-color: var(--brand);
}
.docs-nav-foot {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: var(--step--1); color: var(--muted);
}
@media (min-width: 940px) {
  .docs-nav { position: sticky; top: 96px; }
}

.doc { max-width: 760px; }
.doc h1 { font-size: var(--step-4); margin-bottom: 14px; }
.doc-meta {
  font-family: var(--font-label); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.doc .lead { margin-bottom: 8px; }

.doc-toc {
  margin: 32px 0 8px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 22px; background: var(--mist);
}
.doc-toc h2 {
  font-family: var(--font-label); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 8px;
}
.doc-toc ol { margin: 0; padding-left: 1.2em; }
.doc-toc li { margin-bottom: 4px; }
.doc-toc a { color: var(--brand-dark); }

.doc-section { margin-top: 40px; scroll-margin-top: 96px; }
.doc-section h2 { font-size: var(--step-2); margin-bottom: 14px; }
.doc-section ul { padding-left: 1.15em; }
.doc-section li { margin-bottom: 0.5em; }

/* Rechtstexte folgen dem Seitenraster; lange Zeilen bleiben trotzdem lesbar. */
.legal-section { padding-top: 0; }
.legal-content > h2,
.legal-content > p,
.legal-content > address,
.legal-content > ul,
.legal-content > .deflist,
.legal-content > .doc-section { max-width: 900px; }
.legal-content > .doc-toc { max-width: 720px; }
.privacy-content > .doc-section { font-size: 0.95rem; }

@media (min-width: 940px) {
  .privacy-content {
    max-width: var(--wrap);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 40px;
    align-items: start;
  }
  .privacy-content > .doc-toc {
    grid-column: 2;
    grid-row: 1 / span 20;
    position: sticky;
    top: 96px;
    max-width: none;
    margin: 0;
  }
  .privacy-content > .doc-section {
    grid-column: 1;
    max-width: 900px;
    width: 100%;
  }
  .privacy-content > .doc-section:first-of-type { margin-top: 0; }
}

.imprint-content { max-width: var(--wrap); }
.page-sub main .imprint-content > h2 {
  max-width: none;
  margin: 36px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: var(--step-1);
}
.page-sub main .imprint-content > h2:first-child { margin-top: 0; }
.imprint-content > address { max-width: none; line-height: 1.75; }
.imprint-content > p { max-width: none; color: var(--muted); }
.imprint-content .deflist { max-width: none; margin-bottom: 14px; }
.imprint-content .deflist > div {
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  padding: 6px 0;
  border: 0;
}
.imprint-content .deflist dt {
  font-family: var(--font-label);
  font-size: 0.72rem;
  line-height: 1.7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.imprint-content .deflist dd { color: var(--text); }
@media (max-width: 699px) {
  .imprint-content .deflist > div { grid-template-columns: 1fr; gap: 0; padding: 8px 0; }
}

.anchor {
  text-decoration: none; color: var(--line);
  font-weight: 400; opacity: 0; transition: opacity 0.15s ease;
}
.doc-section h2:hover .anchor, .anchor:focus { opacity: 1; color: var(--brand); }

.doc-figure { margin: 22px 0; }
.doc-figure img {
  width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff;
}

.table-wrap { overflow-x: auto; margin: 20px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
.doc th, .doc td {
  text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.doc th {
  font-family: var(--font-label); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  border-bottom-color: var(--ink);
}

.doc-foot {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: var(--step--1);
}


/* --- Blog ------------------------------------------------------------------ */

.post-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; overflow: hidden;
  display: flex; flex-direction: column;
}
.post-card .doc-figure { margin: 0; }
.post-card .doc-figure img {
  border: 0; border-radius: 0; aspect-ratio: 5 / 2; object-fit: cover;
}
.post-card .note { margin: 14px; min-height: 150px; }
.post-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: var(--step-1); margin-bottom: 8px; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover { color: var(--brand-dark); }
.post-card p { color: var(--muted); font-size: 0.95rem; }
.post-card .link-arrow { margin-top: auto; padding-top: 14px; font-size: 0.95rem; }

.post-meta {
  font-family: var(--font-label); font-weight: 600; font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}

.post { padding-block: clamp(28px, 4vw, 44px) 0; }
.post-head { max-width: 760px; }
.post-head h1 { font-size: var(--step-4); margin-bottom: 16px; }
.post-head .lead { font-size: 1.16rem; }
.post-hero { margin: clamp(28px, 4vw, 40px) 0; }
.post-hero .doc-figure { margin: 0; }
.post-hero img { border-radius: var(--radius-lg); }
.post-body { max-width: 760px; padding-bottom: clamp(40px, 6vw, 72px); }
.post-body .doc-section:first-child { margin-top: 0; }
.post-foot {
  max-width: 760px; margin-bottom: clamp(48px, 6vw, 72px);
  padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: var(--step--1);
}
.post-body .note { margin: 0; }

/* --- Formular -------------------------------------------------------------- */

.form { display: grid; gap: 18px; max-width: 620px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 0.95rem; }
.field .hint { font-size: 0.82rem; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--text);
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); }
.field textarea { min-height: 140px; resize: vertical; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 0.92rem; }
.check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }

/* --- Fußzeile -------------------------------------------------------------- */

.footer { background: var(--ink); color: #cfe0e2; padding-block: 56px 32px; font-size: 0.95rem; }
.footer a { color: #cfe0e2; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer h2 {
  font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted-dark); margin-bottom: 14px; font-weight: 500;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  color: var(--muted-dark); font-size: 0.86rem;
}
.footer-vendor { max-width: 34ch; color: var(--muted-dark); }

/* --- Sprachumschalter ------------------------------------------------------ */

.lang { display: flex; gap: 6px; align-items: center; font-size: 0.86rem; }
.lang a[aria-current="true"] { color: #fff; font-weight: 600; }

/* --- Reveal-Animation ------------------------------------------------------ */

.js-on .reveal { opacity: 0; transform: translateY(14px); }
.js-on .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.pulse { offset-rotate: 0deg; animation: flow 3.2s linear infinite; }
.pulse-2 { animation-delay: 1.1s; }
.pulse-3 { animation-delay: 2.2s; }
@keyframes flow {
  0% { offset-distance: 0%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* Consent --------------------------------------------------------------- */
.consent[hidden] { display: none; }
.consent-open { overflow: hidden; }
.consent {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 49, 75, .72);
  color: var(--text);
  backdrop-filter: blur(2px);
}
.consent-inner {
  width: min(760px, 100%);
  padding: clamp(24px, 4vw, 40px);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(2, 35, 54, .3);
}
.consent .eyebrow { margin-bottom: 8px; }
.consent h2 { font-size: var(--step-2); margin: 0 0 12px; }
.consent p { max-width: none; margin: 0; color: var(--muted); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.consent-actions .btn { justify-content: center; text-align: center; }
.consent-settings {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}
.consent-settings:hover { color: #fff; }

@media (max-width: 760px) {
  .consent { padding: 16px; }
  .consent-actions { grid-template-columns: 1fr; }
  .consent-actions .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-on .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; opacity: 0.75; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

code {
  font-family: var(--font-mono); font-size: 0.9em;
  background: rgba(0,127,216,0.07); padding: 1px 5px; border-radius: 4px;
}

/* QR-Code-Generator ------------------------------------------------------ */
.qr-hero { padding-bottom: 44px; }
.qr-section { padding-top: 0; }
.qr-app { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 28px; align-items: start; }
.qr-controls { display: grid; gap: 22px; }
.qr-panel, .qr-preview { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 40px rgba(3,49,75,.06); }
.qr-fields { margin-top: 22px; }
.qr-fields[hidden] { display: none; }
.qr-grid, .qr-design { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.qr-design { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qr-design > .field { align-self: start; }
.qr-design .field select { min-height: 48px; appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%2303314b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.qr-span { grid-column: 1 / -1; }
.qr-check { display: flex; gap: 9px; align-items: center; }
.qr-color { width: 100%; min-height: 48px; padding: 4px; }
.qr-preview { position: sticky; top: 92px; }
.qr-canvas-wrap { padding: 18px; margin: 20px 0; background: #eef5f8; border-radius: 14px; }
.qr-canvas-wrap canvas { display: block; width: 100%; height: auto; background: #fff; }
.qr-preview .btn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qr-preview .btn-row .btn { width: 100%; min-width: 0; padding-inline: 12px; justify-content: center; text-align: center; white-space: normal; line-height: 1.25; }
.qr-preview .btn-row .btn { font-size: 15px; }
.qr-help { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; border: 1px solid var(--brand); border-radius: 50%; color: var(--brand); font-size: 12px; font-weight: 700; cursor: help; }
.qr-help::after { content: attr(data-tooltip); position: absolute; z-index: 4; left: 50%; bottom: calc(100% + 9px); width: min(270px, 70vw); padding: 10px 12px; border-radius: 7px; background: var(--ink); color: #fff; font: 400 13px/1.4 var(--font-body); box-shadow: 0 8px 24px rgba(3,49,75,.2); opacity: 0; visibility: hidden; transform: translate(-50%, 4px); transition: .15s ease; pointer-events: none; }
.qr-help:hover::after, .qr-help:focus::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.qr-panel small { display: block; margin-top: 6px; color: var(--muted); }
.qr-remove-logo { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--brand-dark); font: inherit; text-decoration: underline; cursor: pointer; }
.qr-design input[type="file"] { padding: 6px; line-height: 34px; cursor: pointer; }
.qr-design input[type="file"]::file-selector-button { margin-right: 12px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 6px; background: var(--mist); color: var(--ink); font: 600 14px var(--font-label); cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.qr-design input[type="file"]::file-selector-button:hover { border-color: var(--brand); background: var(--brand-tint); }
.qr-transparent { margin-top: 0; padding-top: 2px; font-size: 14px; }
.qr-app.is-transparent .qr-canvas-wrap { background-color: #eef5f8; background-image: linear-gradient(45deg, #dce7ec 25%, transparent 25%), linear-gradient(-45deg, #dce7ec 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #dce7ec 75%), linear-gradient(-45deg, transparent 75%, #dce7ec 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }
.qr-privacy { margin-top: 20px; color: var(--muted); font-size: .9rem; }
.qr-steps .card > span { color: var(--brand); font: 600 var(--step-2) var(--font-display); }
@media (max-width: 900px) { .qr-app { grid-template-columns: 1fr; } .qr-preview { position: static; } }
@media (max-width: 560px) { .qr-grid, .qr-design { grid-template-columns: 1fr; } .qr-span { grid-column: auto; } .qr-preview .btn-row { grid-template-columns: 1fr; } }

/* --- Unterseiten: nur die H1 spricht laut --------------------------------- */

/* Auf der Startseite tragen Abschnittsüberschriften die Argumentation und
   dürfen groß sein. Auf Unterseiten ist die H1 gesetzt – Abschnitte stehen
   eine Stufe darunter, damit keine zweite Headline-Ebene entsteht. */
.page-sub main h2 { font-size: var(--step-3); }
.page-sub main .docs-nav h2,
.page-sub main .doc-toc h2 { font-size: 0.72rem; }
.page-sub main .doc-section h2 { font-size: var(--step-2); }

/* --- Druck ----------------------------------------------------------------- */

@media print {
  .topbar, .footer, .btn-row { display: none; }
  body { color: #000; }
}
