/* ==========================================================================
   SanOPS Website (docs/konzept/website.md, docs/DESIGNSYSTEM.md 5.4, E64)
   Ohne Build: setzt auf tokens.css (aus design/dist, Abschnitte 1–6) auf.
   Schrift: Inter. Überschriften wie auf der alten SanOPS-Website (E65): Gewicht 760, eng gesetzt, zweiter Teil in Rot.
   Rot ist Handlungsaufforderung und Akzent, nie Fläche für Fließtext. Sperrliste E65: flache Schaltflächen, keine
   farbige Linie an nur einer Seite einer Box.
   Hell/dunkel folgt prefers-color-scheme; dunkle Bänder über data-theme="dark".
   ========================================================================== */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/Inter-Variable.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: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/Inter-Variable-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;
}
/* ---------- Grundlagen ---------- */
:root {
  --site-gutter: clamp(20px, 4.5vw, 48px);
  --site-section: clamp(72px, 9vw, 136px);
  --site-header: 68px;
  --site-radius: 20px;
  --site-radius-lg: 28px;
  --site-line: color-mix(in srgb, var(--so-color-border) 80%, transparent);
  --site-shadow-sm: 0 1px 2px rgba(24, 23, 22, 0.05), 0 2px 6px -2px rgba(24, 23, 22, 0.06);
  --site-shadow: 0 1px 2px rgba(24, 23, 22, 0.04), 0 12px 32px -14px rgba(24, 23, 22, 0.18);
  --site-shadow-lg: 0 2px 4px rgba(24, 23, 22, 0.04), 0 32px 64px -28px rgba(24, 23, 22, 0.32), 0 12px 24px -16px rgba(24, 23, 22, 0.12);
  --site-glow: color-mix(in srgb, var(--so-color-brand) 10%, transparent);
  --site-panel: linear-gradient(180deg, var(--so-color-surface), color-mix(in srgb, var(--so-color-surface) 92%, var(--so-color-canvas)));
  --site-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --site-red-text: #D60004;
  scroll-padding-top: calc(var(--site-header) + 24px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --site-shadow-sm: 0 0 0 1px rgba(255, 255, 255, 0.04);
    --site-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 16px 40px -18px rgba(0, 0, 0, 0.7);
    --site-shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 40px 80px -32px rgba(0, 0, 0, 0.85);
    --site-glow: color-mix(in srgb, var(--so-color-brand) 22%, transparent);
    --site-red-text: #FF5A54;
  }
}
[data-theme="dark"] {
  --site-red-text: #FF5A54;
  --site-shadow-sm: 0 0 0 1px rgba(255, 255, 255, 0.04);
  --site-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 16px 40px -18px rgba(0, 0, 0, 0.7);
  --site-shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 40px 80px -32px rgba(0, 0, 0, 0.85);
  --site-glow: color-mix(in srgb, var(--so-color-brand) 22%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Bereiche mit eigenem Thema übernehmen dessen Textfarbe (vererbte Farbe wird sonst nicht neu berechnet). */
[data-theme] { color: var(--so-color-text); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--so-color-canvas);
  color: var(--so-color-text);
  font-family: var(--so-font-sans);
  font-feature-settings: var(--so-font-feature-ui);
  font-size: var(--so-text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
/* Lange deutsche Wörter in großen Überschriften auf schmalen Bildschirmen trennen statt überlaufen. */
/* Nur sehr lange Wörter trennen (z. B. Sanitäts-dienste), kurze bleiben ganz. */
.display, .h1, .h2, .tile-head .h3, .audience-big .h3 { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 14 7 7; overflow-wrap: break-word; }
main { overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
/* Keine Einzelwörter in der letzten Zeile: Fließtext „pretty“, Überschriften und kurze Teaser „balance“. Als Langform
   gesetzt, damit `white-space: nowrap` erhalten bleibt; Browser ohne Unterstützung brechen wie gewohnt um. */
p, li, dd, dt, figcaption, blockquote, summary, label, td, th, small { text-wrap-style: pretty; }
h1, h2, h3, h4, h5, h6, .display, .h1, .h2, .h3, .h4, .eyebrow, .chip, .footer-claim, caption, legend, .faq summary,
.lead, .stat-label, .compare-row [role="cell"], .price-teaser .muted, .check-list li > span { text-wrap-style: balance; }
/* Nur Klassengewicht, damit Komponenten eigene Innenabstände setzen können. */
:where(ul, ol)[role="list"] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
code, kbd { font-family: var(--so-font-mono); font-size: 0.92em; }
strong, b { font-weight: var(--so-font-weight-semibold); }
::selection { background: color-mix(in srgb, var(--so-color-brand) 18%, transparent); color: var(--so-color-text); }

a { color: var(--so-color-link); text-decoration-line: underline; text-decoration-color: var(--so-color-link-decoration); text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2.5px; }

:focus-visible { outline: 2px solid var(--so-color-focus-ring); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; stroke-width: 1.75; }
.icon.flip { transform: scaleX(-1); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: var(--so-z-tooltip);
  padding: 12px 16px; border-radius: var(--so-radius-md);
  background: var(--so-color-primary); color: var(--so-color-on-primary); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--so-size-content-max) + 2 * var(--site-gutter)); margin-inline: auto; padding-inline: var(--site-gutter); }
.wrap-text { max-width: calc(800px + 2 * var(--site-gutter)); }
.wrap-narrow { max-width: calc(1040px + 2 * var(--site-gutter)); }

/* ---------- Typografie ---------- */
.display, .h1, .h2, .figure, .price-amount, .amount, .stat-value { font-feature-settings: "kern", "lnum"; }
/* Werte der alten Website: Gewicht 760, Laufweite -0,035 em, Zeilenhöhe 1,08. */
.display { font-size: clamp(2.25rem, 1rem + 4.3vw, 4.55rem); line-height: 1.08; font-weight: 760; letter-spacing: -0.035em; text-wrap-style: balance; }
.h1 { font-size: clamp(2.125rem, 1rem + 3.6vw, 4rem); line-height: 1.08; font-weight: 760; letter-spacing: -0.035em; text-wrap-style: balance; }
.h2 { font-size: clamp(1.875rem, 1rem + 2.7vw, 3.5rem); line-height: 1.08; font-weight: 760; letter-spacing: -0.035em; text-wrap-style: balance; }
.h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.375rem); line-height: 1.3; font-weight: 650; letter-spacing: -0.012em; }
.h4 { font-size: var(--so-text-lg); line-height: 1.4; font-weight: 650; letter-spacing: -0.008em; }
.accent { color: var(--so-color-brand); }
/* Schwarz-Rot-Spiel der alten Website: zweiter Teil großer Überschriften in SanOPS-Rot. */
.display .accent, .h1 .accent, .h2 .accent { display: block; color: var(--so-color-brand); text-wrap-style: balance; }
.lead { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); line-height: 1.6; color: var(--so-color-text-muted); max-width: 40rem; }
.muted { color: var(--so-color-text-muted); }
.subtle { color: var(--so-color-text-subtle); }
.small { font-size: var(--so-text-sm); line-height: 1.5; }
.numeric { font-feature-settings: var(--so-font-feature-numeric); }
.code { font-feature-settings: var(--so-font-feature-code); letter-spacing: var(--so-tracking-wide); }
.nowrap { white-space: nowrap; }
.prose { max-width: 720px; }
.prose > * + * { margin-top: 1em; }
.prose p, .prose li { color: var(--so-color-text-muted); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }
.prose h2 { margin-top: 2em; font-size: var(--so-text-xl); line-height: var(--so-text-xl-line-height); font-weight: 600; letter-spacing: -0.01em; }
.prose h3 { margin-top: 1.5em; font-size: var(--so-text-lg); line-height: var(--so-text-lg-line-height); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--so-text-sm); line-height: var(--so-text-sm-line-height); }
.prose th, .prose td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--so-color-border); color: var(--so-color-text-muted); }
.prose th { font-weight: 600; color: var(--so-color-text); }
.prose .legal-mark { padding: 0 2px; border-radius: 3px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem; line-height: 1.2; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--site-red-text);
}

/* ---------- Schaltflächen ---------- */
.btn {
  --btn-h: 46px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--btn-h); padding: 0 20px;
  border: 1px solid transparent; border-radius: 12px;
  font-size: 0.9375rem; line-height: 1.2; font-weight: 600; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: background-color var(--so-duration-fast) var(--so-ease-standard), border-color var(--so-duration-fast) var(--so-ease-standard), color var(--so-duration-fast) var(--so-ease-standard);
}
.btn:hover { text-decoration: none; }
.btn .icon { width: 18px; height: 18px; }
.btn-lg { --btn-h: 54px; padding: 0 26px; font-size: 1rem; border-radius: 14px; }
.btn-sm { --btn-h: 40px; padding: 0 16px; font-size: var(--so-text-sm); border-radius: 10px; }
.btn-block { width: 100%; }
/* Schaltflächen sind flach (E65): keine Verläufe, kein Glanz, keine starken Schatten. */
.btn-brand { background: var(--so-color-brand); color: var(--so-color-on-brand); }
.btn-brand:hover { background: var(--so-color-brand-hover); color: var(--so-color-on-brand); }
.btn-primary { background: var(--so-color-primary); color: var(--so-color-on-primary); }
.btn-primary:hover { background: var(--so-color-primary-hover); color: var(--so-color-on-primary); }
.btn-secondary { background: var(--so-color-surface); color: var(--so-color-text); border-color: var(--so-color-border-strong); }
.btn-secondary:hover { background: var(--so-color-surface); color: var(--so-color-text); border-color: var(--so-color-text); }
.btn-ghost { background: transparent; color: var(--so-color-text); }
.btn-ghost:hover { background: var(--so-color-hover); color: var(--so-color-text); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn .arrow { transition: transform var(--so-duration-base) var(--site-ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--so-color-text); }
.text-link .icon { width: 16px; height: 16px; color: var(--so-color-brand); transition: transform var(--so-duration-base) var(--site-ease-out); }
.text-link:hover { text-decoration: underline; text-decoration-color: var(--so-color-link-decoration); }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- Chips und Hinweise ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  /* Text optisch mittig: Inhalt um --chip-text-shift tiefer, das Symbol bleibt an seiner Stelle (translate unten). */
  --chip-text-shift: 0.15rem;
  min-height: 26px; padding: calc(3px + var(--chip-text-shift)) 10px calc(3px - var(--chip-text-shift));
  border: 1px solid var(--chip-border, var(--so-color-border)); border-radius: var(--so-radius-full);
  background: var(--chip-bg, var(--so-color-subtle)); color: var(--chip-fg, var(--so-color-text-muted));
  font-size: 0.75rem; line-height: 1.2; font-weight: 600; white-space: nowrap;
}
.chip .icon { width: 14px; height: 14px; translate: 0 calc(-1 * var(--chip-text-shift)); }
.card > .chip, .tile > .chip, .stack > .chip, .hero-copy > .chip, .split-copy > .chip, .variant .chip { align-self: flex-start; justify-self: start; width: fit-content; }
.chip-success { --chip-bg: var(--so-feedback-success-subtle); --chip-fg: var(--so-feedback-success-text); --chip-border: var(--so-feedback-success-border); }
.chip-info { --chip-bg: var(--so-feedback-info-subtle); --chip-fg: var(--so-feedback-info-text); --chip-border: var(--so-feedback-info-border); }
.chip-warning { --chip-bg: var(--so-feedback-warning-subtle); --chip-fg: var(--so-feedback-warning-text); --chip-border: var(--so-feedback-warning-border); }
.chip-neutral { --chip-bg: var(--so-feedback-neutral-subtle); --chip-fg: var(--so-feedback-neutral-text); --chip-border: var(--so-feedback-neutral-border); }
.chip-brand { --chip-bg: var(--so-color-brand-subtle); --chip-fg: var(--so-color-text); --chip-border: color-mix(in srgb, var(--so-color-brand) 30%, transparent); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.banner {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border: 1px solid var(--banner-border); border-radius: 14px;
  background: var(--banner-bg); color: var(--so-color-text);
}
.banner > .icon { color: var(--banner-fg); margin-top: 2px; }
.banner strong { display: block; color: var(--so-color-text); }
.banner p { color: var(--so-color-text-muted); }
.banner a { color: inherit; }
.banner-info { --banner-bg: var(--so-feedback-info-subtle); --banner-border: var(--so-feedback-info-border); --banner-fg: var(--so-feedback-info-text); }
.banner-warning { --banner-bg: var(--so-feedback-warning-subtle); --banner-border: var(--so-feedback-warning-border); --banner-fg: var(--so-feedback-warning-text); }
.banner-danger { --banner-bg: var(--so-feedback-danger-subtle); --banner-border: var(--so-feedback-danger-border); --banner-fg: var(--so-feedback-danger-text); }
.banner-success { --banner-bg: var(--so-feedback-success-subtle); --banner-border: var(--so-feedback-success-border); --banner-fg: var(--so-feedback-success-text); }
.banner ul { margin: 6px 0 0; padding-left: 1.1em; }

/* ---------- Kopfzeile ---------- */
.topbar { display: none; border-bottom: 1px solid var(--site-line); background: var(--so-color-canvas); font-size: 0.8125rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar nav { display: flex; gap: 4px; }
.topbar nav a { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 8px; color: var(--so-color-text-muted); font-weight: 500; text-decoration: none; }
.topbar nav a:hover { color: var(--so-color-text); background: var(--so-color-hover); }
.topbar nav a[aria-current="page"] { color: var(--so-color-text); font-weight: 650; background: var(--so-color-surface); box-shadow: var(--site-shadow-sm); }
.topbar .note { display: inline-flex; align-items: center; gap: 8px; color: var(--so-color-text-subtle); }
.topbar .note .icon { width: 14px; height: 14px; color: var(--so-feedback-success-text); }
@media (min-width: 1080px) { .topbar { display: block; } }

.site-header {
  position: sticky; top: 0; z-index: var(--so-z-header);
  background: color-mix(in srgb, var(--so-color-canvas) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--site-line);
}
.site-nav { display: flex; align-items: center; gap: 12px; min-height: var(--site-header); }
.brand { display: inline-flex; flex: none; align-items: center; padding: 6px 0; margin-right: 16px; border-radius: 6px; }
.logo { height: 30px; width: auto; aspect-ratio: 237 / 77; flex-shrink: 0; display: block; }
.logo .logo-mark { fill: var(--so-logo-mark); }
.logo .logo-text { fill: var(--so-logo-text); }
.logo .logo-knockout { fill: var(--so-logo-knockout); }

.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; white-space: nowrap;
  border-radius: 10px; color: var(--so-color-text-muted); font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  transition: color var(--so-duration-fast) var(--so-ease-standard), background-color var(--so-duration-fast) var(--so-ease-standard);
}
.primary-nav a:hover { color: var(--so-color-text); background: var(--so-color-hover); }
.primary-nav a[aria-current="page"] { color: var(--so-color-text); font-weight: 600; background: var(--so-color-muted); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-actions .btn-ghost { display: none; }
.seg {
  display: inline-flex; gap: 2px; padding: 3px;
  border-radius: var(--so-radius-full); background: var(--so-color-muted);
}
.seg a, .seg label {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px;
  border-radius: var(--so-radius-full); color: var(--so-color-text-muted);
  font-size: var(--so-text-sm); font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.seg a:hover, .seg label:hover { color: var(--so-color-text); }
.seg a[aria-current="page"], .seg input:checked + label {
  background: var(--so-color-surface); color: var(--so-color-text); font-weight: 600;
  box-shadow: 0 1px 2px rgba(24, 23, 22, 0.08), 0 0 0 1px var(--so-color-border);
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:focus-visible + label { outline: 2px solid var(--so-color-focus-ring); outline-offset: 2px; }

/* Mobilmenü nach KIDDA-Muster: volle Höhe unter der Kopfzeile, Bereichsumschalter, große Einträge, eine Hauptaktion. */
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 12px; color: var(--so-color-text); cursor: pointer;
  transition: background-color var(--so-duration-fast) var(--so-ease-standard);
}
.menu-toggle:hover, .menu[open] .menu-toggle { background: var(--so-color-muted); }
.menu-icon { position: relative; width: 22px; height: 18px; }
.menu-icon > span {
  position: absolute; inset-inline: 0; height: 2px; border-radius: 2px; background: currentColor; transform-origin: center;
  transition: transform 220ms var(--so-ease-standard), opacity 150ms var(--so-ease-standard);
}
.menu-icon > span:nth-child(1) { top: 1px; }
.menu-icon > span:nth-child(2) { top: 8px; }
.menu-icon > span:nth-child(3) { top: 15px; }
.menu[open] .menu-icon > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[open] .menu-icon > span:nth-child(2) { opacity: 0; transform: scaleX(0.5); }
.menu[open] .menu-icon > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-panel {
  position: absolute; inset-inline: 0; top: 100%; height: calc(100dvh - var(--site-header)); overflow-y: auto; overscroll-behavior: contain;
  padding: 24px max(var(--site-gutter), calc((100% - 520px) / 2)) max(24px, env(safe-area-inset-bottom));
  background: var(--so-color-surface); border-top: 1px solid var(--site-line);
  display: flex; flex-direction: column; gap: 24px; z-index: var(--so-z-nav);
}
.menu[open] .menu-panel { animation: menu-appear 200ms var(--so-ease-standard) both; }
.menu-panel > * { flex-shrink: 0; }
@keyframes menu-appear { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.menu-audience { display: flex; width: 100%; padding: 4px; gap: 4px; border-radius: 16px; background: var(--so-color-muted); }
.menu-audience a, .menu-audience button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 12px; background: transparent; color: var(--so-color-text-muted);
  font: inherit; font-size: var(--so-text-sm); font-weight: 600; text-decoration: none; cursor: pointer;
}
.menu-audience a:hover, .menu-audience button:hover { color: var(--so-color-text); }
.menu-audience a[aria-current="page"], .menu-audience button[aria-pressed="true"] { background: var(--so-color-surface); color: var(--so-color-text); box-shadow: none; }
.menu-area { display: grid; gap: 24px; }
.menu-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.menu-navigation a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 10px 14px;
  border-radius: 12px; color: var(--so-color-text); text-decoration: none; font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.02em;
  transition: background-color var(--so-duration-fast) var(--so-ease-standard);
}
.menu-navigation a > .icon { width: 18px; height: 18px; color: var(--so-color-text-subtle); }
.menu-navigation a:hover { background: var(--so-color-hover); }
.menu-navigation a[aria-current="page"] { background: var(--so-color-muted); }
.menu-actions { display: grid; gap: 6px; text-align: center; }
.menu-actions > .btn { width: 100%; min-height: 50px; justify-content: space-between; padding-inline: 18px; }
.menu-actions p { margin: 0; color: var(--so-color-text-muted); font-size: var(--so-text-sm); }
.menu-actions p a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 4px; color: var(--so-color-text); font-weight: 600; }
body:has(.site-header .menu[open]) { overflow: hidden; }
@media (max-width: 639px) { .header-actions > .btn { display: none; } }

@media (min-width: 640px) { .header-actions .btn-ghost { display: inline-flex; } }
@media (min-width: 1080px) {
  .primary-nav { display: block; }
  .menu { display: none; }
}

/* ---------- Brotkrumen ---------- */
.breadcrumbs { padding-top: 24px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: var(--so-text-sm); color: var(--so-color-text-subtle); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumbs li + li::before { content: ""; width: 14px; height: 14px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0.7; }
.breadcrumbs a { color: var(--so-color-text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--so-color-text); text-decoration: underline; text-decoration-color: var(--so-color-link-decoration); }
.breadcrumbs [aria-current="page"] { color: var(--so-color-text); font-weight: 500; }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--site-section); }
.section-tight { padding-block: calc(var(--site-section) * 0.5); }
.section-surface { background: var(--so-color-surface); border-block: 1px solid var(--site-line); }
.section-head { display: grid; gap: 18px; max-width: 52rem; margin-bottom: clamp(36px, 5vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head .lead { margin: 0; }
.section-head.split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 960px) { .section-head.split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; } }
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 32px; }

/* Dunkle Bänder: Flächen aus dem dunklen Thema, Licht von oben, Raster. */
.band-dark {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(1200px 500px at 70% -10%, color-mix(in srgb, #E60005 20%, transparent), transparent 60%), #121110;
  color: var(--so-color-text);
}
.band-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black, transparent 75%);
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(48px, 7vw, 104px) clamp(56px, 7vw, 112px); }
/* Der Lichtschein bleibt innerhalb des Kopfbereichs und läuft dort aus, auch bei kurzen Seitenköpfen (kein harter Rand). */
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -30% -20% auto 30%; height: min(900px, 130%);
  background: radial-gradient(closest-side, var(--site-glow), transparent 72%);
}
.hero::after {
  content: ""; position: absolute; z-index: -2; inset: 0;
  background-image: linear-gradient(color-mix(in srgb, var(--so-color-text) 6%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--so-color-text) 6%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, black, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, black, transparent 72%);
}
.hero-grid { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-copy .lead { margin: 0; }
.hero-note { display: inline-flex; align-items: center; gap: 8px; font-size: var(--so-text-sm); color: var(--so-color-text-muted); }
.hero-note .icon { color: var(--so-feedback-success-text); width: 18px; height: 18px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 4px; }
.hero-grid:not(.text-only) .display, .layout-aside .display { font-size: clamp(2.125rem, 0.9rem + 2.8vw, 3.25rem); }
.hero-compact { padding-block: clamp(40px, 6vw, 88px) clamp(32px, 5vw, 64px); }
.hero-compact .hero-copy { gap: 20px; max-width: 54rem; }
@media (min-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
  .hero-grid.text-only { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Produktansichten (echte Oberfläche, nur Beispieldaten) ---------- */
.stage { position: relative; }

.window {
  position: relative; overflow: hidden;
  border-radius: 16px; border: 1px solid color-mix(in srgb, var(--so-color-border-strong) 80%, transparent);
  background: var(--so-color-surface); box-shadow: var(--site-shadow-lg);
  font-size: 12px; line-height: 1.35; color: var(--so-color-text);
}
.window-bar { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--so-color-border); background: var(--so-color-subtle); }
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--so-color-border-strong); }
.window-url { flex: 1; max-width: 300px; margin-inline: auto; height: 22px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 6px; background: var(--so-color-surface); color: var(--so-color-text-subtle); font-size: 11px; box-shadow: inset 0 0 0 1px var(--so-color-border); }
.window-url .icon { width: 11px; height: 11px; }

.app { display: grid; grid-template-columns: 172px minmax(0, 1fr); min-height: 380px; background: var(--so-color-canvas); }
.app-side { display: grid; align-content: start; gap: 2px; padding: 12px 10px; border-right: 1px solid var(--so-color-border); background: var(--so-color-surface); }
.app-context { display: grid; gap: 1px; margin-bottom: 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--so-color-border); background: var(--so-color-subtle); }
.app-context b { font-size: 11.5px; }
.app-context small { color: var(--so-color-text-subtle); font-size: 10.5px; }
.app-nav { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 7px; color: var(--so-color-text-muted); font-weight: 500; white-space: nowrap; }
.app-nav .icon { width: 15px; height: 15px; }
.app-nav.on { background: var(--so-color-subtle); color: var(--so-color-text); font-weight: 650; }
.app-nav.on .icon { color: var(--so-color-brand); }
.app-main { display: grid; align-content: start; gap: 12px; padding: 16px 18px; min-width: 0; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-head h4 { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.app-head small { color: var(--so-color-text-subtle); }
.app-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 7px; background: var(--so-color-primary); color: var(--so-color-on-primary); font-weight: 600; font-size: 11px; white-space: nowrap; }
.app-btn .icon { width: 12px; height: 12px; }
.app-btn.brand { background: var(--so-color-brand); color: #fff; }
.app-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.app-kpi { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--so-color-border); background: var(--so-color-surface); }
.app-kpi b { display: block; font-size: 20px; line-height: 1.1; font-weight: 720; font-feature-settings: "tnum"; }
.app-kpi small { color: var(--so-color-text-subtle); font-size: 10.5px; }
.app-table { border: 1px solid var(--so-color-border); border-radius: 10px; overflow: hidden; background: var(--so-color-surface); }
.app-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--so-color-border); }
.app-row:first-child { border-top: 0; }
.app-row.head { background: var(--so-color-subtle); color: var(--so-color-text-subtle); font-size: 10.5px; font-weight: 600; }
.app-row strong { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row small { color: var(--so-color-text-subtle); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.app-bar { height: 6px; border-radius: 3px; background: var(--so-color-muted); overflow: hidden; }
.app-bar i { display: block; height: 100%; border-radius: inherit; background: var(--so-feedback-success-solid); }
.app-bar.warn i { background: var(--so-feedback-warning-solid); }
.app-bar.w-100 i { width: 100%; } .app-bar.w-75 i { width: 75%; } .app-bar.w-50 i { width: 50%; } .app-bar.w-25 i { width: 25%; } .app-bar.w-0 i { width: 4%; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 650; white-space: nowrap; background: var(--tag-bg); color: var(--tag-fg); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.ok { --tag-bg: var(--so-feedback-success-subtle); --tag-fg: var(--so-feedback-success-text); }
.tag.warn { --tag-bg: var(--so-feedback-warning-subtle); --tag-fg: var(--so-feedback-warning-text); }
.tag.info { --tag-bg: var(--so-feedback-info-subtle); --tag-fg: var(--so-feedback-info-text); }
.tag.neutral { --tag-bg: var(--so-feedback-neutral-subtle); --tag-fg: var(--so-feedback-neutral-text); }

/* Telefon */
.phone {
  position: relative; width: 248px; padding: 9px; border-radius: 40px;
  background: linear-gradient(160deg, #3A3836, #121110); box-shadow: var(--site-shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.1);
  font-size: 12px; line-height: 1.35;
}
.phone-screen { position: relative; overflow: hidden; min-height: 470px; border-radius: 32px; background: var(--so-color-canvas); color: var(--so-color-text); }
.phone-notch { position: absolute; top: 9px; left: 50%; width: 84px; height: 24px; border-radius: 14px; background: #0A0A09; transform: translateX(-50%); z-index: 2; }
.phone-status { display: flex; justify-content: space-between; padding: 12px 22px 0; font-size: 11px; font-weight: 650; }
.phone-head { display: grid; gap: 2px; padding: 22px 16px 10px; }
.phone-head small { color: var(--so-color-text-subtle); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.phone-head b { font-size: 21px; font-weight: 720; letter-spacing: -0.02em; }
.phone-list { display: grid; gap: 8px; padding: 0 12px 70px; }
.phone-card { display: grid; gap: 6px; padding: 11px 12px; border-radius: 14px; background: var(--so-color-surface); border: 1px solid var(--so-color-border); box-shadow: var(--site-shadow-sm); }
.phone-card > .tag, .phone-card > .app-btn { justify-self: start; }
.phone-card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.phone-card .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.phone-card strong { display: block; font-size: 12.5px; font-weight: 650; }
.phone-card small { display: block; color: var(--so-color-text-subtle); font-size: 10.5px; }
.phone-card .date { display: grid; place-items: center; flex: none; width: 38px; height: 40px; border-radius: 10px; background: var(--so-color-subtle); border: 1px solid var(--so-color-border); line-height: 1; }
.phone-card .date b { font-size: 15px; font-weight: 720; }
.phone-card .date small { font-size: 9px; font-weight: 700; text-transform: uppercase; color: var(--so-color-brand); }
.phone-card.highlight { border-color: color-mix(in srgb, var(--so-color-brand) 40%, var(--so-color-border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--so-color-brand) 10%, transparent), var(--site-shadow-sm); }
.phone-tabs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 10px 6px 14px; border-top: 1px solid var(--so-color-border); background: color-mix(in srgb, var(--so-color-surface) 94%, transparent); }
.phone-tabs span { display: grid; justify-items: center; gap: 3px; color: var(--so-color-text-subtle); font-size: 9.5px; font-weight: 600; }
.phone-tabs span.on { color: var(--so-color-brand); }
.phone-tabs .icon { width: 17px; height: 17px; }

/* Schwebende Karten (Ereignisse aus dem Dienst) */
.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 14px; border: 1px solid var(--so-color-border);
  background: color-mix(in srgb, var(--so-color-surface-raised) 94%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--site-shadow-lg); font-size: 12px; line-height: 1.3; white-space: nowrap;
}
.float strong { display: block; font-size: 12.5px; }
.float small { display: block; color: var(--so-color-text-subtle); font-size: 11px; }
.float-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--so-color-brand-subtle); color: var(--so-color-brand); flex: none; }
.float-icon.ok { background: var(--so-feedback-success-subtle); color: var(--so-feedback-success-text); }
.float-icon .icon { width: 18px; height: 18px; }

.hero-wide { max-width: none; }
.hero-wide .display { max-width: 16ch; }
.hero-sub { display: grid; gap: 28px; align-items: end; width: 100%; }
@media (min-width: 1000px) { .hero-sub { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; } .hero-sub .stack { justify-items: end; } }
.hero-home { padding-bottom: clamp(40px, 5vw, 72px); }
.hero-stage { position: relative; margin-top: clamp(48px, 6vw, 88px); padding: 0 0 56px; }
.hero-stage::before { content: ""; position: absolute; z-index: -1; inset: 10% 6% -4% 6%; border-radius: 48px; background: radial-gradient(closest-side, color-mix(in srgb, var(--so-color-brand) 16%, transparent), transparent 75%); filter: blur(24px); }
.hero-stage .window { max-width: 1060px; }
.hero-stage .app { min-height: 0; grid-template-columns: 200px minmax(0, 1fr); }
.app-row .app-bar { display: block; margin-top: 5px; max-width: 120px; }
.hero-stage .phone { position: absolute; right: 0; bottom: 0; z-index: 2; transform: rotate(2.5deg); }
/* Schwebende Karten nur über freien Flächen: unter der Seitenleiste bzw. unterhalb des Fensters. */
.hero-stage .float-a { left: -28px; bottom: 20px; }
.hero-stage .float-b { left: 30%; bottom: 8px; }
@media (max-width: 1079px) {
  .hero-stage .window { margin-right: 120px; }
  .hero-stage .phone { width: 230px; right: 0; bottom: -10px; }
  .hero-stage .phone-screen { min-height: 440px; }
  .hero-stage .float-a { left: 8px; }
  .hero-stage .float-b { display: none; }
}
@media (max-width: 720px) {
  .hero-stage .window { margin-right: 0; }
  .hero-stage .app, .app { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-side { display: none; }
  .app-row { grid-template-columns: minmax(0, 1fr) auto; }
  .app-row > :nth-child(2) { display: none; }
  .app-kpis .app-kpi:nth-child(3) { display: none; }
  .app-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stage { padding-bottom: 180px; }
  .hero-stage .phone { width: 200px; right: 4px; bottom: 0; }
  .hero-stage .phone-screen { min-height: 340px; }
  .hero-stage .float-a { left: 0; bottom: 20px; z-index: 1; padding-right: 14px; }
  .hero-stage .float-a small { display: none; }
  .hero-stage .float-b { display: none; }
}

/* Paar für Hilfsorganisationen und Unternehmen: Fenster hinten, davor Telefon bzw. Angebot, dazu ein Ereignis. */
.duo-stage { position: relative; padding: 0 184px 56px 0; }
.duo-stage::before { content: ""; position: absolute; z-index: -1; inset: 4% 0 0 8%; border-radius: 48px; background: radial-gradient(closest-side, color-mix(in srgb, var(--so-color-brand) 16%, transparent), transparent 75%); filter: blur(24px); }
/* Schmale Symbolleiste statt Seitenleiste, damit die Inhalte neben dem Telefon Platz haben. */
.app-rail { min-height: 0; grid-template-columns: 48px minmax(0, 1fr); }
.duo-stage .app-rail { min-height: 318px; }
.app-rail .app-side { justify-items: center; gap: 4px; padding: 12px 6px; }
.app-rail .app-nav { justify-content: center; width: 34px; height: 32px; padding: 0; }
.app-rail .app-head small:first-child { display: block; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; }
.duo-stage .phone, .duo-stage .sheet { position: absolute; right: 0; bottom: 0; z-index: 2; transform: rotate(2.5deg); }
.duo-stage .phone { width: 212px; }
.duo-stage .phone-screen { min-height: 392px; }
.duo-stage .phone-head { padding-bottom: 6px; }
.duo-stage .float { left: -24px; bottom: 10px; }

.tree .app-row { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) auto; }
.tree-name { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; }
.tree-name > span:last-child { min-width: 0; }
.tree-icon { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--so-color-border); background: var(--so-color-subtle); color: var(--so-color-text-muted); }
.tree-icon .icon { width: 13px; height: 13px; }
.tree .app-row:nth-child(2) .tree-icon { border-color: transparent; background: var(--so-color-brand-subtle); color: var(--so-color-brand); }
.tree-child { position: relative; }
.tree-child .tree-name { padding-left: 22px; }
.tree-child::before, .tree-child::after { content: ""; position: absolute; left: 23px; background: var(--so-color-border-strong); }
.tree-child::before { top: 0; bottom: 0; width: 1px; }
.tree-child:last-child::before { bottom: 50%; }
.tree-child::after { top: 50%; width: 14px; height: 1px; }

.duo-stage .kanban { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; background: none; }
.duo-stage .kanban-col { min-height: 0; padding: 8px; }
.duo-stage .kanban-card { padding: 9px 10px; }
.kanban-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.kanban-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 2px; white-space: nowrap; }
.avatar-sm { width: 22px; height: 22px; font-size: 8.5px; letter-spacing: 0.02em; }

.phone-profile { display: flex; align-items: center; gap: 12px; padding: 0 16px 14px; }
.phone-profile .avatar { width: 44px; height: 44px; flex: none; background: var(--so-color-brand-subtle); color: var(--so-color-brand); font-size: 14px; }
.phone-profile strong { display: block; overflow: hidden; font-size: 16px; font-weight: 720; letter-spacing: -0.01em; text-overflow: ellipsis; white-space: nowrap; }
.phone-profile > span:last-child { min-width: 0; }
.phone-profile small { display: inline-flex; align-items: center; gap: 4px; color: var(--so-color-text-muted); font-size: 11px; }
.phone-profile small .icon { width: 13px; height: 13px; color: var(--so-feedback-success-text); }
.phone-label { padding: 4px 4px 0; color: var(--so-color-text-subtle); font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.phone-group { gap: 0; padding: 2px 12px; }
.phone-group .row { padding: 8px 0; border-top: 1px solid var(--so-color-border); }
.phone-group .row:first-child { border-top: 0; }
.phone-group .who { flex: 1; }
.phone-group strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-group .row > .icon { width: 14px; height: 14px; color: var(--so-color-text-subtle); }

/* Angebot als Blatt (Unternehmen) */
.sheet {
  display: grid; gap: 12px; width: 232px; padding: 16px; border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--so-color-border-strong) 80%, transparent);
  background: var(--so-color-surface-raised); box-shadow: var(--site-shadow-lg);
  font-size: 12px; line-height: 1.35; color: var(--so-color-text);
}
.sheet-head { display: flex; align-items: center; gap: 10px; }
.sheet-head small { display: block; color: var(--so-color-text-subtle); font-size: 10.5px; font-weight: 600; font-feature-settings: "tnum"; }
.sheet-head strong { display: block; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.sheet-basis { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: var(--so-color-subtle); color: var(--so-color-text-muted); font-size: 10.5px; font-weight: 550; }
.sheet-basis .icon { width: 13px; height: 13px; }
.sheet-lines { display: grid; gap: 0; margin: 0; }
.sheet-lines > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--so-color-border); }
.sheet-lines > div:first-child { border-top: 0; padding-top: 0; }
.sheet-lines dt { color: var(--so-color-text-muted); }
.sheet-lines dd { margin: 0; font-weight: 600; font-feature-settings: "tnum"; white-space: nowrap; }
.sheet-lines .sheet-total { padding-top: 9px; border-top: 1px solid var(--so-color-border-strong); }
.sheet-total dt { color: var(--so-color-text); font-weight: 650; }
.sheet-total dd { font-size: 15px; font-weight: 750; }
.sheet-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sheet-foot small { color: var(--so-color-text-subtle); font-size: 10.5px; }

@media (max-width: 1079px) {
  .duo-stage { padding-right: 200px; }
}
@media (max-width: 720px) {
  .duo-stage { padding: 0 0 132px; }
  .app-rail, .duo-stage .app-rail { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .duo-stage .phone { width: 168px; right: 0; padding: 7px; border-radius: 32px; }
  .duo-stage .phone-screen { min-height: 300px; border-radius: 26px; }
  .duo-stage .phone-head { padding-top: 18px; }
  .duo-stage .phone-profile { gap: 8px; padding: 0 12px 8px; }
  .duo-stage .phone-profile .avatar { width: 34px; height: 34px; font-size: 12px; }
  .duo-stage .phone-profile strong { font-size: 14px; }
  .duo-stage .phone-list { padding: 0 8px 64px; }
  .duo-stage .phone-group .row:nth-child(2), .duo-stage .phone-label:first-child, .duo-stage .phone-group { display: none; }
  .duo-stage .sheet { right: 0; width: 210px; padding: 14px; }
  .duo-stage .sheet-basis { display: none; }
  .duo-stage .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo-stage .kanban-col:nth-child(3) { display: none; }
  .duo-stage .float { display: none; }
}

/* Einstiegsanimation einmalig, nur ohne reduzierte Bewegung (Konzept 5.4: keine Dauerbewegung) */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 760ms var(--site-ease-out) both; }
  .rise-2 { animation-delay: 90ms; }
  .rise-3 { animation-delay: 220ms; }
  .rise-4 { animation-delay: 520ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .hero-stage .phone.rise, .duo-stage .phone.rise, .duo-stage .sheet.rise { animation-name: rise-phone; }
  @keyframes rise-phone { from { opacity: 0; transform: translateY(28px) rotate(2.5deg); } to { opacity: 1; transform: rotate(2.5deg); } }
}

/* ---------- Vertrauensleiste ---------- */
.trust-strip { border-block: 1px solid var(--site-line); background: color-mix(in srgb, var(--so-color-surface) 70%, transparent); }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); list-style: none; margin: 0; padding: 0; }
.trust li { display: flex; align-items: center; gap: 12px; padding: 22px 8px; font-size: 0.9375rem; font-weight: 550; line-height: 1.35; }
.trust li .icon { color: var(--so-color-brand); width: 22px; height: 22px; }
@media (min-width: 900px) { .trust li + li { border-left: 1px solid var(--site-line); padding-left: 24px; } }

.icon-tile {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(180deg, var(--so-color-surface), var(--so-color-subtle)); color: var(--so-color-brand);
  box-shadow: inset 0 0 0 1px var(--so-color-border), 0 1px 2px rgba(24, 23, 22, 0.06);
}
.icon-tile.neutral { color: var(--so-color-text); }
.icon-tile.solid { background: var(--so-color-brand); color: #fff; box-shadow: 0 8px 18px -10px rgba(230, 0, 5, 0.8); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-tile:not(.neutral):not(.solid) { color: #FF8272; } }
[data-theme="dark"] .icon-tile:not(.neutral):not(.solid) { color: #FF8272; }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 14px; grid-column: span 6;
  padding: clamp(24px, 2.6vw, 36px); border-radius: var(--site-radius-lg);
  background: var(--site-panel); border: 1px solid var(--site-line); box-shadow: var(--site-shadow);
  transition: transform var(--so-duration-slow) var(--site-ease-out), box-shadow var(--so-duration-slow) var(--site-ease-out), border-color var(--so-duration-slow) var(--site-ease-out);
}
.tile p { color: var(--so-color-text-muted); }
.tile-head { display: grid; gap: 10px; max-width: 34rem; }
.tile-head .h3 { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; }
.tile-visual { margin-top: auto; padding-top: 12px; }
/* Chat und Aushang füllen ihre Kachel bis unten, damit die Reihe gleich hoch und ohne Leerfläche wirkt. */
.tile-visual:has(> .chat-panel, > .join-visual) { flex: 1; display: grid; margin-top: 0; }
.tile.is-link:hover { transform: translateY(-3px); box-shadow: var(--site-shadow-lg); border-color: var(--so-color-border-strong); }
.tile .stretched { text-decoration: none; color: inherit; }
.tile .stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 4; }
.tile .stretched:focus-visible { outline: none; }
.tile:has(.stretched:focus-visible) { outline: 2px solid var(--so-color-focus-ring); outline-offset: 3px; }
.tile.is-preparing .tile-visual { opacity: 0.85; filter: saturate(0.7); }
.tile-dark { background: radial-gradient(600px 300px at 80% 0%, color-mix(in srgb, #E60005 22%, transparent), transparent 60%), #181716; border-color: rgba(255, 255, 255, 0.08); color: var(--so-color-text); }
@media (min-width: 900px) {
  .tile.w-4 { grid-column: span 4; }
  .tile.w-3 { grid-column: span 3; }
  .tile.w-2 { grid-column: span 2; }
}

/* ---------- Karten und Listen ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
@media (min-width: 1024px) {
  .grid-3.fixed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-2.fixed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: clamp(22px, 2.4vw, 32px); border: 1px solid var(--site-line); border-radius: var(--site-radius);
  background: var(--site-panel); box-shadow: var(--site-shadow);
}
.card p { color: var(--so-color-text-muted); }
.card .card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card .card-foot { margin-top: auto; padding-top: 8px; }
.card-link { transition: transform var(--so-duration-slow) var(--site-ease-out), box-shadow var(--so-duration-slow) var(--site-ease-out), border-color var(--so-duration-base) var(--so-ease-standard); }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--site-shadow-lg); border-color: var(--so-color-border-strong); }
.card-link .stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link .stretched { text-decoration: none; color: inherit; }
.card-link .stretched:focus-visible { outline: none; }
.card-link:has(.stretched:focus-visible) { outline: 2px solid var(--so-color-focus-ring); outline-offset: 3px; }
.card.is-preparing { background: var(--so-color-subtle); box-shadow: none; border-style: dashed; border-color: var(--so-color-border-strong); }
.card.is-preparing .icon-tile { background: transparent; color: var(--so-color-text-muted); box-shadow: inset 0 0 0 1.5px var(--so-color-border-strong); }
.card-flat { box-shadow: none; }
/* Hervorhebung über vollständige Kontur, nie über eine Linie an einer Seite (Sperrliste E65). */
.card-accent { border-color: var(--so-color-brand); box-shadow: var(--site-shadow), 0 0 0 1px var(--so-color-brand); }

.feature-list { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--site-line); }
.feature-list li:last-child { border-bottom: 1px solid var(--site-line); }
.feature-list h3 { font-size: 1.1875rem; line-height: 1.35; font-weight: 650; letter-spacing: -0.01em; }
.feature-list p { color: var(--so-color-text-muted); margin-top: 4px; max-width: 46rem; }
.feature-list .note { display: inline-block; margin-top: 8px; font-size: var(--so-text-sm); color: var(--so-color-text-subtle); }
@media (min-width: 960px) {
  .feature-list.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
  .feature-list.cols li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--site-line); }
}

.check-list { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.check-list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; color: var(--so-color-text-muted); }
.check-list li .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--so-feedback-success-text); }
.check-list.planned li .icon { color: var(--so-color-text-subtle); }
.check-list.cross li .icon { color: var(--so-color-text-subtle); }
.check-list.brand li .icon { color: var(--so-color-brand); }

.split { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 1000px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split.reverse > :first-child { order: 2; }
  .split.wide-visual { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}
.split-copy { display: grid; gap: 20px; justify-items: start; }
.split-copy .lead { margin: 0; }

/* Ablauf in Schritten */
.steps { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps.horizontal { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.steps li { position: relative; display: grid; gap: 8px; align-content: start; padding: 28px 24px 24px; border: 1px solid var(--site-line); border-radius: var(--site-radius); background: var(--site-panel); box-shadow: var(--site-shadow-sm); counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 8px;
  font-size: 2rem; line-height: 1; font-weight: 760; letter-spacing: -0.02em;
  color: var(--so-color-brand);
}
.steps li p { color: var(--so-color-text-muted); }

/* Ablauf als Zeitleiste */
.process { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: proc; }
.process li { position: relative; display: grid; gap: 4px; padding: 0 0 26px 54px; counter-increment: proc; }
.process li::before {
  content: counter(proc); position: absolute; left: 0; top: -4px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--so-color-surface); border: 1.5px solid var(--so-color-border-strong);
  font-weight: 760; font-size: 15px;
}
.process li::after { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: linear-gradient(var(--so-color-border-strong), transparent); }
.process li:last-child { padding-bottom: 0; }
.process li:last-child::after { display: none; }
.process li.on::before { background: var(--so-color-brand); border-color: var(--so-color-brand); color: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--so-color-brand) 16%, transparent); }
.process h3 { font-size: 1.0625rem; font-weight: 650; }
.process p { color: var(--so-color-text-muted); font-size: 0.9375rem; }

/* Vergleich Bisher / Mit SanOPS */
.compare { display: grid; border: 1px solid var(--site-line); border-radius: var(--site-radius); overflow: hidden; background: var(--so-color-surface); box-shadow: var(--site-shadow); }
.compare-row { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--site-line); }
.compare-row:first-child { border-top: 0; }
.compare-row > div { display: flex; gap: 12px; align-items: flex-start; padding: 20px 24px; }
.compare-row > div:first-child { color: var(--so-color-text-muted); background: var(--so-color-subtle); }
.compare-row > div:first-child .icon { color: var(--so-color-text-subtle); }
.compare-row > div:last-child { font-weight: 550; }
.compare-row > div:last-child .icon { color: var(--so-feedback-success-text); }
.compare-head { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 650; }
@media (min-width: 720px) { .compare-row { grid-template-columns: 1fr 1fr; } }

/* Kasten mit Markenakzent */
.callout {
  position: relative; display: grid; gap: 14px; padding: clamp(26px, 3vw, 44px);
  border-radius: var(--site-radius-lg); background: var(--so-color-brand-subtle); border: 1px solid color-mix(in srgb, var(--so-color-brand) 22%, transparent);
}
.callout p { color: var(--so-color-text-muted); }

/* Kennzahlen */
.stat { display: grid; gap: 6px; }
.stat-value { font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: 0.95; font-weight: 780; letter-spacing: -0.035em; font-feature-settings: "tnum", "lnum"; }
.stat-label { color: var(--so-color-text-muted); }
.stats { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stats .stat { padding-top: 18px; border-top: 1px solid var(--site-line); }

/* Zielgruppen */
.audience-card { display: grid; gap: 14px; align-content: start; }
.audience-card .links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 4px; }

/* Abschluss-Aufruf */
.final-cta { padding-block: clamp(16px, 2vw, 32px) var(--site-section); }
.final-cta-inner {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 40px; align-items: end; padding: clamp(36px, 6vw, 88px);
  border-radius: 32px; color: var(--so-color-text);
  background: radial-gradient(900px 420px at 85% 0%, color-mix(in srgb, #E60005 32%, transparent), transparent 62%), radial-gradient(500px 300px at 0% 100%, color-mix(in srgb, #E60005 12%, transparent), transparent 70%), #121110;
  border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: var(--site-shadow-lg);
}
.final-cta-inner::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(105deg, transparent 35%, black 80%);
  -webkit-mask-image: linear-gradient(105deg, transparent 35%, black 80%);
}
.final-cta-inner p { color: var(--so-color-text-muted); max-width: 40rem; }
.final-cta-inner .h2 { max-width: 18ch; }
/* Bedingungen als Box mit Innenabstand; Häkchen in Schriftfarbe, Rot hätte auf Dunkel zu wenig Kontrast. */
.final-cta-points { align-self: center; padding: clamp(20px, 2.4vw, 28px); border-radius: 20px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12); }
.final-cta-points li, .final-cta-points li .icon { color: var(--so-color-text); }
@media (min-width: 1000px) { .final-cta-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--site-line); }
.faq details { border-bottom: 1px solid var(--site-line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 18px 4px; cursor: pointer; list-style: none;
  font-size: 1.0625rem; line-height: 1.4; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq-icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--so-color-muted); transition: background-color var(--so-duration-base) var(--so-ease-standard); }
.faq summary .faq-icon::before, .faq summary .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 1px; background: var(--so-color-text); transition: transform var(--so-duration-base) var(--site-ease-out); }
.faq summary .faq-icon::after { transform: rotate(90deg); }
.faq details[open] summary .faq-icon { background: var(--so-color-brand-subtle); }
.faq details[open] summary .faq-icon::after { transform: rotate(0deg); }
.faq .answer { padding: 0 48px 22px 4px; color: var(--so-color-text-muted); display: grid; gap: 10px; justify-items: start; }
.faq-groups { display: grid; gap: 56px; }
.faq-group h2 { margin-bottom: 14px; }
/* Inhaltsverzeichnis für Hilfe und Rechtstexte: ab 1024 px mitlaufend links, aktiver Abschnitt als Fläche (keine Seitenleiste). */
.doc-layout { display: grid; gap: 32px; }
.toc-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.toc-list a { display: flex; gap: 10px; padding: 8px 12px; border-radius: 10px; color: var(--so-color-text-muted); font-size: var(--so-text-sm); line-height: 1.4; text-decoration: none; transition: background-color var(--so-duration-fast) var(--so-ease-standard), color var(--so-duration-fast) var(--so-ease-standard); }
.toc-list a:hover { background: var(--so-color-hover); color: var(--so-color-text); }
.toc-list a[aria-current] { background: var(--so-color-brand-subtle); color: var(--so-color-text); font-weight: 600; }
.toc-num { flex: none; min-width: 1.4em; color: var(--so-color-text-subtle); font-feature-settings: var(--so-font-feature-numeric); }
.toc-list a[aria-current] .toc-num { color: var(--site-red-text); }
.toc-title { margin: 0 0 8px; padding-inline: 12px; color: var(--so-color-text-subtle); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.toc-disclosure summary { justify-content: flex-start; }
.toc-disclosure summary .toc-chevron { margin-left: auto; }
.toc-disclosure .toc-list { padding-bottom: 4px; }
/* Unter 1024 px: Themen als Chips (Hilfe) oder aufklappbares Verzeichnis (Rechtstexte). */
@media (max-width: 1023px) {
  .toc-wrap:not(.toc-chips) .toc { display: none; }
  .toc-chips .toc-title { display: none; }
  .toc-chips .toc-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .toc-chips .toc-list a { align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--site-line); border-radius: var(--so-radius-full); background: var(--so-color-surface); color: var(--so-color-text); font-weight: 500; }
  .toc-chips .toc-list a:hover { background: var(--so-color-hover); }
  .toc-chips .toc-list a[aria-current] { font-weight: 500; }
}
@media (min-width: 1024px) {
  .doc-layout { grid-template-columns: 248px minmax(0, 1fr); gap: 72px; align-items: start; }
  .toc-wrap { position: sticky; top: calc(var(--site-header) + 24px); max-height: calc(100dvh - var(--site-header) - 48px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: transparent transparent; }
  .toc-wrap:hover, .toc-wrap:focus-within { scrollbar-color: var(--so-color-border-strong) transparent; }
  .toc-disclosure { display: none; }
}

/* Aufklappbare Details */
.disclosure { border: 1px solid var(--site-line); border-radius: 16px; background: var(--so-color-surface); box-shadow: var(--site-shadow-sm); }
.disclosure summary { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px; cursor: pointer; font-weight: 600; list-style: none; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary .icon { transition: transform var(--so-duration-base) var(--so-ease-standard); }
.disclosure[open] summary .icon { transform: rotate(180deg); }
.disclosure > :not(summary) { padding: 0 20px 20px; }

/* Tabellen */
.table-wrap { overflow-x: auto; border: 1px solid var(--site-line); border-radius: var(--site-radius); background: var(--so-color-surface); box-shadow: var(--site-shadow-sm); }
table.table { width: 100%; border-collapse: collapse; font-size: var(--so-text-sm); }
.table caption { padding: 16px 20px; text-align: left; font-weight: 600; color: var(--so-color-text); border-bottom: 1px solid var(--site-line); }
.table th, .table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--site-line); }
.table thead th { background: var(--so-color-subtle); font-weight: 600; color: var(--so-color-text-muted); white-space: nowrap; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-feature-settings: var(--so-font-feature-numeric); white-space: nowrap; }
.table tbody th { font-weight: 600; }
.table tr.is-current > * { background: var(--so-color-selected); }
.table code { white-space: nowrap; }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 22px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) {
  .form-row.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row.cols-postal { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}
.field { display: grid; gap: 7px; align-content: start; }
.field > label, .field > .label, fieldset > legend { font-size: var(--so-text-sm); font-weight: 600; line-height: 1.4; color: var(--so-color-text); }
.field .req { font-weight: 400; color: var(--so-color-text-subtle); }
.hint { font-size: var(--so-text-sm); line-height: 1.5; color: var(--so-color-text-subtle); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 11px 15px;
  border: 1px solid var(--so-color-border-input); border-radius: 12px;
  background: var(--so-color-surface); color: var(--so-color-text);
  font-size: var(--so-text-base); line-height: 1.4;
  box-shadow: inset 0 1px 2px rgba(24, 23, 22, 0.04);
  transition: border-color var(--so-duration-fast) var(--so-ease-standard), box-shadow var(--so-duration-fast) var(--so-ease-standard);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--so-color-border-input-hover); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--so-color-focus-ring); box-shadow: 0 0 0 4px color-mix(in srgb, var(--so-color-focus-ring) 25%, transparent); }
.textarea { min-height: 170px; resize: vertical; }
.select { appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237F7B77' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--so-feedback-danger-outline); box-shadow: 0 0 0 1px var(--so-feedback-danger-outline); }
.field-error { display: flex; gap: 6px; align-items: flex-start; font-size: var(--so-text-sm); line-height: 1.4; font-weight: 500; color: var(--so-feedback-danger-text); }
.field-error .icon { width: 16px; height: 16px; margin-top: 2px; }
.field-error[hidden] { display: none; }
/* Mehrspaltige Zeilen: Label, Hinweis, Feld und Meldung liegen über alle Spalten auf gemeinsamen Zeilen (Subgrid).
   So stehen die Felder einer Zeile immer auf gleicher Höhe, egal wie lang Hinweise sind oder wo eine Meldung
   erscheint. Ohne Subgrid bleibt das gewöhnliche Raster. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 640px) {
    .form-row.cols-2, .form-row.cols-postal { grid-template-rows: repeat(4, auto); row-gap: 0; }
    .form-row.cols-2 > .field, .form-row.cols-postal > .field { grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
    :is(.form-row.cols-2, .form-row.cols-postal) > .field > label { grid-row: 1; }
    :is(.form-row.cols-2, .form-row.cols-postal) > .field > .hint { grid-row: 2; margin-top: 7px; }
    :is(.form-row.cols-2, .form-row.cols-postal) > .field > :is(.input, .select, .textarea, .dropdown, .input-affix, .password-wrap) { grid-row: 3; margin-top: 7px; }
    :is(.form-row.cols-2, .form-row.cols-postal) > .field > .field-error { grid-row: 4; margin-top: 7px; }
  }
}

/* HTML-Auswahlliste (dropdown.js): Combobox im Aussehen des Auswahlfelds, Liste darunter oder darüber. */
.dropdown { position: relative; min-width: 0; }
.dropdown-native { position: absolute; left: 0; bottom: 0; width: 1px !important; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; overflow: hidden; }
.dropdown-button { display: flex; align-items: center; cursor: pointer; user-select: none; -webkit-user-select: none; text-align: left; }
.dropdown-button .dropdown-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dropdown-button.is-placeholder .dropdown-value { color: var(--so-color-text-subtle); }
.dropdown-button:focus-visible, .dropdown.is-open .dropdown-button { outline: none; border-color: var(--so-color-focus-ring); box-shadow: 0 0 0 4px color-mix(in srgb, var(--so-color-focus-ring) 25%, transparent); }
.dropdown-button[aria-disabled="true"] { cursor: not-allowed; background-color: var(--so-color-subtle); color: var(--so-color-text-disabled); border-style: dashed; }
.dropdown-button[aria-disabled="true"] .dropdown-value { color: var(--so-color-text-disabled); }
.dropdown.is-open .dropdown-button { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237F7B77' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E"); }
.dropdown-list {
  position: absolute; z-index: var(--so-z-dropdown); left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 6px; list-style: none; max-height: min(320px, 60vh); overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--so-color-border-strong); border-radius: 12px; background: var(--so-color-surface-raised, var(--so-color-surface));
  box-shadow: var(--site-shadow-lg);
}
.dropdown.is-above .dropdown-list { top: auto; bottom: calc(100% + 6px); }
.dropdown-list[hidden] { display: none; }
.dropdown-option { position: relative; padding: 10px 12px 10px 36px; border-radius: 8px; color: var(--so-color-text); line-height: 1.4; cursor: pointer; }
.dropdown-option.is-placeholder { display: none; }
.dropdown-option.is-active { background: var(--so-color-hover); }
.dropdown-option[aria-selected="true"] { font-weight: 600; }
.dropdown-option[aria-selected="true"]::before { content: ""; position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--so-color-brand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.dropdown-option[aria-disabled="true"] { color: var(--so-color-text-disabled); cursor: not-allowed; }
@media (forced-colors: active) {
  .dropdown-option.is-active { outline: 2px solid Highlight; }
  .dropdown-list { border-color: CanvasText; }
}
.input-affix { display: flex; align-items: stretch; }
.input-affix .input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; }
.input-affix .affix { display: inline-flex; align-items: center; padding: 0 15px; border: 1px solid var(--so-color-border-input); border-left: 0; border-radius: 0 12px 12px 0; background: var(--so-color-subtle); color: var(--so-color-text-muted); white-space: nowrap; font-size: var(--so-text-sm); }
.input-affix .input:focus-visible { position: relative; z-index: 1; }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 56px; }
.password-toggle { position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 9px; background: transparent; color: var(--so-color-text-muted); cursor: pointer; }
.password-toggle:hover { background: var(--so-color-hover); color: var(--so-color-text); }
.password-toggle .icon-hide { display: none; }
.password-toggle[aria-pressed="true"] .icon-show { display: none; }
.password-toggle[aria-pressed="true"] .icon-hide { display: block; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
fieldset > legend { padding: 0; margin-bottom: 4px; }

.choice { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 15px 16px; border: 1px solid var(--so-color-border-strong); border-radius: 14px; background: var(--so-color-surface); cursor: pointer; transition: border-color var(--so-duration-fast) var(--so-ease-standard), background-color var(--so-duration-fast) var(--so-ease-standard), box-shadow var(--so-duration-fast) var(--so-ease-standard); }
.choice:hover { border-color: var(--so-color-border-input-hover); }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--so-color-primary); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--so-color-selected-border); background: var(--so-color-selected); box-shadow: 0 0 0 1px var(--so-color-selected-border); }
.choice:has(input:disabled) { cursor: not-allowed; background: var(--so-color-subtle); border-style: dashed; }
.choice:has(input:disabled) .choice-title { color: var(--so-color-text-muted); }
.choice:has(input:focus-visible) { outline: 2px solid var(--so-color-focus-ring); outline-offset: 2px; }
.choice input:focus-visible { outline: none; }
.choice-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }
.choice-text { display: block; margin-top: 2px; font-size: var(--so-text-sm); color: var(--so-color-text-muted); }
.choice[aria-invalid="true"], fieldset[aria-invalid="true"] .choice { border-color: var(--so-feedback-danger-outline); }
.choice-grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .choice-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Erste Textzeile so hoch wie das Kästchen, damit beide mittig zueinander stehen; weitere Zeilen laufen darunter. */
.checkbox { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin: 0; accent-color: var(--so-color-primary); cursor: pointer; }
.checkbox > span { line-height: 20px; }
.checkbox input[aria-invalid="true"] { outline: 2px solid var(--so-feedback-danger-outline); outline-offset: 1px; }

.stepper { display: flex; align-items: stretch; gap: 6px; }
.stepper .input { text-align: center; font-feature-settings: var(--so-font-feature-numeric); font-weight: 650; font-size: 1.125rem; min-width: 0; }
.stepper button { flex: none; min-width: 50px; min-height: 50px; padding: 0 8px; border: 1px solid var(--so-color-border-strong); border-radius: 12px; background: var(--so-color-surface); color: var(--so-color-text); font-weight: 650; font-size: var(--so-text-sm); cursor: pointer; font-feature-settings: var(--so-font-feature-numeric); box-shadow: var(--site-shadow-sm); }
.stepper button:hover { background: var(--so-color-hover); }
.range { width: 100%; height: 28px; margin: 4px 0 0; accent-color: var(--so-color-brand); cursor: pointer; }

.honeypot { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-panel { padding: clamp(22px, 3vw, 40px); border: 1px solid var(--site-line); border-radius: var(--site-radius-lg); background: var(--so-color-surface); box-shadow: var(--site-shadow); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 8px; }
.form-actions .btn-brand, .form-actions .btn-primary { margin-left: auto; }
.reg-step ~ .form-actions { margin-top: 32px; }
/* Freitext zur Ebene steht unter der Ebene, auch wenn links nichts steht. */
@media (min-width: 640px) { .form-row.cols-2 > [data-other="level"] { grid-column: 2; } }
/* Angebotsanfrage im Kontaktformular (E79): Konfiguration als ruhige Fläche wie die Zusammenfassung der Registrierung. */
.offer-config { gap: 18px; padding: 18px clamp(16px, 2vw, 22px) 20px; border: 1px solid var(--site-line); border-radius: 14px; background: var(--so-color-subtle); }
.offer-config[hidden] { display: none; }
.offer-config > legend { float: left; width: 100%; margin: 0; }
.offer-config > legend + .hint { margin-top: -10px; }
.offer-estimate { display: grid; gap: 2px; font-size: var(--so-text-sm); font-weight: 600; color: var(--so-color-text); }
.offer-estimate:empty { display: none; }
.error-summary { scroll-margin-top: calc(var(--site-header) + 16px); }
.error-summary ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.error-summary a { font-weight: 500; }

/* Schrittleiste der Registrierung */
.progress { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: progress; }
.progress li { display: grid; gap: 10px; counter-increment: progress; font-size: var(--so-text-sm); color: var(--so-color-text-subtle); font-weight: 500; }
.progress li::before { content: ""; height: 4px; border-radius: 2px; background: var(--so-color-muted); }
.progress li span::before { content: counter(progress) " "; font-feature-settings: var(--so-font-feature-numeric); }
.progress li.is-done::before { background: var(--so-color-text); }
.progress li[aria-current="step"] { color: var(--so-color-text); font-weight: 650; }
.progress li[aria-current="step"]::before { background: var(--so-color-brand); }
@media (max-width: 520px) { .progress li span { font-size: var(--so-text-xs); } }
.reg-step[hidden] { display: none; }
.reg-step > h2 { margin-bottom: 4px; }
.reg-step > .hint { margin-bottom: 20px; }
.summary-list { display: grid; gap: 12px; }
.summary-block { padding: 16px 18px; border: 1px solid var(--site-line); border-radius: 14px; background: var(--so-color-subtle); }
.summary-block header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.summary-block dl { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 6px 16px; font-size: var(--so-text-sm); }
.summary-block dt { color: var(--so-color-text-subtle); }
.summary-block dd { margin: 0; overflow-wrap: anywhere; }
.code-input { font-size: 1.5rem; letter-spacing: 0.35em; text-align: center; font-feature-settings: var(--so-font-feature-code); max-width: 320px; }
.layout-aside { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) {
  .layout-aside { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; }
  .layout-aside > aside { position: sticky; top: calc(var(--site-header) + 24px); }
}

/* ---------- Preise ---------- */
.price-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.price-switch .label { font-size: var(--so-text-sm); font-weight: 600; color: var(--so-color-text-muted); }
.variant-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: stretch; }
.variant { position: relative; display: flex; flex-direction: column; gap: 20px; padding: clamp(26px, 2.8vw, 36px); border: 1px solid var(--site-line); border-radius: var(--site-radius-lg); background: var(--site-panel); box-shadow: var(--site-shadow); }
.variant.is-highlight { background: radial-gradient(500px 240px at 100% 0%, color-mix(in srgb, #E60005 26%, transparent), transparent 60%), #181716; border-color: rgba(255, 255, 255, 0.1); box-shadow: var(--site-shadow-lg); }
.variant .badge-top { align-self: flex-start; }
.variant .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.variant .price-amount { font-size: clamp(2.6rem, 2rem + 1.6vw, 3.25rem); line-height: 1; font-weight: 780; letter-spacing: -0.03em; }
.variant .price-unit { color: var(--so-color-text-muted); font-size: var(--so-text-sm); }
.variant .price-label { font-size: var(--so-text-sm); color: var(--so-color-text-subtle); }
.variant .price-amount.is-text { font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2rem); }
.variant .btn { margin-top: auto; }
[data-tax-view="net"] .tax-gross, [data-tax-view="gross"] .tax-net { display: none; }

.calc { display: grid; gap: 24px; }
@media (min-width: 1024px) { .calc { grid-template-columns: minmax(0, 1fr) 420px; align-items: start; } }
.calc-inputs { display: grid; gap: 28px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--site-line); border-radius: var(--site-radius-lg); background: var(--so-color-surface); box-shadow: var(--site-shadow); }
.calc-result {
  position: relative; overflow: hidden; display: grid; gap: 16px; padding: clamp(26px, 3vw, 36px);
  border-radius: var(--site-radius-lg); color: var(--so-color-text);
  background: radial-gradient(520px 260px at 100% 0%, color-mix(in srgb, #E60005 28%, transparent), transparent 62%), #181716;
  border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: var(--site-shadow-lg);
}
@media (min-width: 1024px) { .calc-result { position: sticky; top: calc(var(--site-header) + 24px); } }
.calc-result .amount { font-size: clamp(3rem, 2.2rem + 3vw, 4.25rem); line-height: 1; font-weight: 780; letter-spacing: -0.035em; font-feature-settings: "tnum", "lnum"; }
.calc-result .per { display: block; margin-top: 6px; color: var(--so-color-text-muted); }
.calc-result .meta { display: grid; gap: 4px; color: var(--so-color-text-muted); font-size: var(--so-text-sm); }
.calc-result .divider { height: 1px; background: var(--so-color-border); }
.people { display: grid; grid-template-columns: repeat(5, 28px); gap: 8px; }
.people .icon { width: 28px; height: 28px; color: var(--so-color-text); }
.unit-box { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 20px 24px; border: 1px dashed var(--so-color-border-strong); border-radius: 16px; background: var(--so-color-surface); }
.count-cols { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.breakdown { border-top: 1px solid var(--so-color-border); padding-top: 12px; }
.breakdown summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; cursor: pointer; font-weight: 600; list-style: none; }
.breakdown summary::-webkit-details-marker { display: none; }
.breakdown summary .icon { transition: transform var(--so-duration-base) var(--so-ease-standard); }
.breakdown[open] summary .icon { transform: rotate(180deg); }
.breakdown-list { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 8px 0 10px; font-size: var(--so-text-sm); }
.breakdown-list dt { color: var(--so-color-text-muted); }
.breakdown-list dd { margin: 0; text-align: right; font-feature-settings: var(--so-font-feature-numeric); white-space: nowrap; }
.breakdown-list .total { padding-top: 6px; border-top: 1px solid var(--so-color-border); color: var(--so-color-text); font-weight: 600; }
.price-tiers { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.price-tier { display: grid; gap: 8px; padding: 24px; border-radius: 20px; border: 1px solid var(--site-line); background: var(--site-panel); box-shadow: var(--site-shadow-sm); }
.price-tier .figure { font-size: 2.5rem; line-height: 1; font-weight: 780; letter-spacing: -0.03em; }
.price-tier .bar { height: 8px; border-radius: 4px; background: var(--so-color-muted); overflow: hidden; }
.price-tier .bar i { display: block; height: 100%; background: var(--so-color-brand); border-radius: inherit; }
.price-tier .bar.full i { width: 100%; } .price-tier .bar.half i { width: 50%; } .price-tier .bar.quarter i { width: 25%; }

/* ---------- Domain-Seite ---------- */
.dns-flow { display: grid; gap: 14px; align-items: center; padding: 28px; border: 1px solid var(--site-line); border-radius: var(--site-radius-lg); background: var(--site-panel); box-shadow: var(--site-shadow); }
.dns-flow .host { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--so-color-subtle); border: 1px solid var(--site-line); font-feature-settings: var(--so-font-feature-code); font-weight: 600; overflow-wrap: anywhere; }
.dns-flow .arrow-down { justify-self: center; display: inline-flex; align-items: center; gap: 8px; color: var(--so-color-text-muted); font-size: var(--so-text-sm); }
.dns-flow .arrow-down .icon { transform: rotate(90deg); }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid var(--so-color-border-strong); border-radius: 8px; background: var(--so-color-surface); color: var(--so-color-text); font-size: var(--so-text-xs); font-weight: 600; cursor: pointer; }
.copy-btn[hidden] { display: none; }
.numbered { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: num; }
.numbered > li { position: relative; display: grid; gap: 12px; padding-left: 52px; counter-increment: num; color: var(--so-color-text-muted); }
.numbered > li::before { content: counter(num); position: absolute; left: 0; top: -3px; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--so-color-border-strong); background: var(--so-color-surface); color: var(--so-color-text); font-weight: 760; font-size: var(--so-text-sm); }

/* ---------- Illustrationen (SanOPS-Stil: Linien, Grautöne, Rot als Akzent) ---------- */
.illu { position: relative; }
.illu svg { width: 100%; height: auto; }
.illu-frame { position: relative; overflow: hidden; padding: clamp(20px, 3vw, 36px); border-radius: var(--site-radius-lg); border: 1px solid var(--site-line); background: radial-gradient(120% 80% at 80% 0%, var(--site-glow), transparent 60%), var(--site-panel); box-shadow: var(--site-shadow); }
.illu-line { stroke: var(--so-color-text); }
.illu-muted { stroke: var(--so-color-border-strong); }
.illu-fill { fill: var(--so-color-surface); }
.illu-fill-subtle { fill: var(--so-color-subtle); }
.illu-fill-muted { fill: var(--so-color-muted); }
.illu-brand { fill: var(--so-color-brand); }
.illu-brand-stroke { stroke: var(--so-color-brand); }
.illu-brand-subtle { fill: var(--so-color-brand-subtle); }
.illu-text { fill: var(--so-color-text); font-family: var(--so-font-sans); }
.illu-text-muted { fill: var(--so-color-text-muted); font-family: var(--so-font-sans); }
.illu-ok { fill: var(--so-feedback-success-solid); }
.illu-warn { fill: var(--so-feedback-warning-solid); }
.illu-inverse { fill: var(--so-color-inverse); }
.illu-stroke { stroke: var(--so-color-border); }
.illu-stroke-strong { stroke: var(--so-color-border-strong); }
.band-ribbon { position: absolute; top: 20px; right: -44px; z-index: 2; transform: rotate(35deg); padding: 6px 52px; background: var(--so-feedback-warning-solid); color: var(--so-feedback-warning-on-solid); font-size: var(--so-text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: var(--site-shadow); }

/* Lagekarte, Sichtung, FMS (Farben aus dem Designsystem) */
.map { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--so-color-border); background: var(--so-color-subtle); }
.map svg { display: block; width: 100%; height: auto; }
.map-bg { fill: var(--so-color-subtle); }
.map-block { fill: color-mix(in srgb, var(--so-color-muted) 70%, var(--so-color-subtle)); }
.map-road { stroke: var(--so-color-surface); }
.map-road-edge { stroke: var(--so-color-border-strong); }
.map-park { fill: color-mix(in srgb, var(--so-feedback-success-solid) 16%, var(--so-color-subtle)); }
.map-water { fill: color-mix(in srgb, var(--so-feedback-info-solid) 18%, var(--so-color-subtle)); }
.map-area { fill: var(--so-color-map-area); stroke: var(--so-color-map-area-border); }
.map-route { stroke: var(--so-color-map-route); }
.map-label { fill: #181716; font-family: var(--so-font-sans); font-weight: 650; }
.map-halo { fill: var(--so-color-map-halo); }
.map-unit { fill: var(--so-fms-4-solid); }
.map-unit-3 { fill: var(--so-fms-3-solid); }
.map-sk1 { fill: var(--so-triage-sk1-solid); }
.map-sk2 { fill: var(--so-triage-sk2-solid); stroke: var(--so-triage-sk2-outline); }
.map-sk3 { fill: var(--so-triage-sk3-solid); }
.fms { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; font-weight: 750; font-size: 12.5px; font-feature-settings: var(--so-font-feature-numeric); }
.fms-2 { background: var(--so-fms-2-solid); color: var(--so-fms-2-on-solid); }
.fms-3 { background: var(--so-fms-3-solid); color: var(--so-fms-3-on-solid); }
.fms-4 { background: var(--so-fms-4-solid); color: var(--so-fms-4-on-solid); }
.sk { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 24px; padding: 0 7px; border-radius: 6px; font-weight: 750; font-size: 11.5px; letter-spacing: 0.02em; }
.sk1 { background: var(--so-triage-sk1-solid); color: var(--so-triage-sk1-on-solid); }
.sk2 { background: var(--so-triage-sk2-solid); color: var(--so-triage-sk2-on-solid); box-shadow: inset 0 0 0 1.5px var(--so-triage-sk2-outline); }
.sk3 { background: var(--so-triage-sk3-solid); color: var(--so-triage-sk3-on-solid); }
.sk4 { background: var(--so-triage-sk4-solid); color: var(--so-triage-sk4-on-solid); }
/* Bricht in schmalen Ansichten in zwei Reihen um, statt Werte über den Rand laufen zu lassen. */
.vitals { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; }
.vital { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--so-color-border); background: var(--so-color-surface); }
.vital small { color: var(--so-color-text-subtle); font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; }
.vital b { font-size: 15px; white-space: nowrap; font-weight: 720; font-feature-settings: "tnum"; }
.log { display: grid; gap: 0; }
.log-item { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--so-color-border); font-size: 11.5px; }
.log-item:first-child { border-top: 0; }
.log-item time { color: var(--so-color-text-subtle); font-feature-settings: var(--so-font-feature-numeric); font-weight: 650; }
.chat { display: grid; align-content: end; gap: 8px; }
/* Gruppenchat in der Startseiten-Kachel: Fläche wie der Beitritts-Aushang, damit beide Kacheln gleich gefüllt sind. */
.chat-panel { display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: 16px; border-radius: 18px; background: var(--so-color-muted); font-size: 12px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--so-color-border); }
.chat-head strong { display: block; font-size: 13px; }
.chat-head small { display: block; color: var(--so-color-text-subtle); font-size: 11px; }
.chat-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--so-color-brand-subtle); color: var(--so-color-brand); }
.chat-pinned { display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--so-color-border); background: var(--so-color-surface); }
.chat-pinned .icon { margin-top: 1px; color: var(--so-color-brand); }
.chat-pinned b { display: block; font-size: 10.5px; font-weight: 650; color: var(--so-color-text-subtle); }
.chat-share { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-top: 8px; padding: 8px; border-radius: 10px; border: 1px solid var(--so-color-border); background: var(--so-color-canvas); }
.chat-share strong { display: block; font-size: 11.5px; }
.chat-share small { display: block; color: var(--so-color-text-subtle); font-size: 10.5px; }
.chat-share .date { display: grid; place-items: center; width: 32px; padding: 3px 0; border-radius: 8px; border: 1px solid var(--so-color-border); background: var(--so-color-surface); line-height: 1.1; }
.chat-share .date b { margin: 0; color: var(--so-color-text); font-size: 13px; font-weight: 720; }
.chat-share .date small { color: var(--so-color-brand); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.chat-read { display: inline-flex; align-items: center; gap: 4px; justify-self: end; color: var(--so-color-text-subtle); font-size: 11px; }
.chat-input { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 14px; border-radius: var(--so-radius-full); border: 1px solid var(--so-color-border); background: var(--so-color-surface); color: var(--so-color-text-subtle); }
.chat-send { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--so-color-brand); color: #fff; }
.bubble { max-width: 90%; padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: var(--so-color-surface); border: 1px solid var(--so-color-border); font-size: 12px; }
.bubble b { display: block; font-size: 11px; color: var(--so-color-text-subtle); margin-bottom: 2px; }
.bubble.own { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--so-color-chat-own); color: var(--so-color-on-chat-own); border-color: transparent; }
.bubble small { display: block; margin-top: 4px; font-size: 10px; opacity: 0.75; }

/* ---------- Fußzeile ---------- */
.site-footer { padding-block: 80px 36px; background: var(--so-color-surface); border-top: 1px solid var(--site-line); font-size: var(--so-text-sm); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.footer-brand { display: grid; gap: 18px; align-content: start; grid-column: 1 / -1; max-width: 26rem; }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.7fr repeat(3, 1fr); } .footer-brand { grid-column: auto; } }
.footer-brand p { color: var(--so-color-text-muted); }
.site-footer h2 { font-size: 0.75rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--so-color-text-subtle); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer ul a { display: inline-flex; min-height: 32px; align-items: center; color: var(--so-color-text-muted); text-decoration: none; }
.site-footer ul a:hover { color: var(--so-color-text); text-decoration: underline; text-decoration-color: var(--so-color-link-decoration); }
.site-footer ul a[aria-current="page"] { color: var(--so-color-text); font-weight: 600; }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--so-color-text); text-decoration: underline; text-decoration-color: var(--so-color-link-decoration); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--site-line); color: var(--so-color-text-subtle); }
.footer-claim { font-size: clamp(1.05rem, 0.7rem + 1.1vw, 1.47rem); line-height: 1.05; font-weight: 740; letter-spacing: -0.025em; color: var(--so-color-text); }

/* ---------- Seiten-Spezifisches ---------- */
.not-found { text-align: center; }
.not-found .h1 { margin-top: 12px; }
/* Kundenadresse nach der Registrierung: schlicht und fett, bricht bei langen Namen an Bindestrichen um. */
.done-address { margin-top: 4px; font-size: 1.25rem; font-weight: 700; overflow-wrap: anywhere; }
.code-display { display: inline-block; padding: 14px 20px; border-radius: 14px; border: 1px solid var(--site-line); background: var(--so-color-surface); box-shadow: var(--site-shadow-sm); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.08em; font-feature-settings: var(--so-font-feature-code); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-list { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; margin: 0; padding: 0; }

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; animation-delay: 0ms !important; scroll-behavior: auto !important; }
  .card-link:hover, .tile.is-link:hover { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .topbar, .site-footer, .final-cta, .menu, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .callout, .variant, .tile { box-shadow: none; }
}

/* ---------- Abstände (kein Inline-Stil wegen CSP) ---------- */
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

/* ---------- Kacheln der Startseite ---------- */
.tile-request { display: grid; gap: 12px; }
.tile-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--so-color-text-muted); font-size: 11.5px; }
.tile-meta li { display: inline-flex; align-items: center; gap: 6px; }
.tile-meta .icon { width: 13px; height: 13px; color: var(--so-color-text-subtle); }
.tile-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.tile-steps li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--so-feedback-success-subtle); color: var(--so-feedback-success-text); font-size: 11px; font-weight: 650; }
.tile-steps .icon { width: 14px; height: 14px; }
.triage-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.triage-count { display: grid; justify-items: start; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.triage-count b { font-size: 1.75rem; line-height: 1; font-weight: 760; font-feature-settings: "tnum"; }
.org-tree { display: grid; justify-items: center; gap: 22px; padding: 8px 0; font-size: 12.5px; }
.org-node { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--so-color-surface); border: 1px solid var(--so-color-border); box-shadow: var(--site-shadow-sm); font-weight: 650; white-space: nowrap; }
.org-node .icon { color: var(--so-color-brand); }
.org-node.top { background: var(--so-color-brand-subtle); border-color: color-mix(in srgb, var(--so-color-brand) 35%, transparent); }
.org-node.top::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 12px; background: var(--so-color-border-strong); }
.org-level { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; }
.org-level::before { content: ""; position: absolute; top: -10px; left: 25%; right: 25%; height: 2px; background: var(--so-color-border-strong); }
.org-branch { position: relative; display: grid; justify-items: center; gap: 12px; }
.org-branch::before { content: ""; position: absolute; top: -10px; left: 50%; width: 2px; height: 10px; background: var(--so-color-border-strong); }
.org-leaves { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.org-leaves span { padding: 6px 10px; border-radius: 10px; background: var(--so-color-subtle); border: 1px dashed var(--so-color-border-strong); color: var(--so-color-text-muted); font-size: 11.5px; font-weight: 600; text-align: center; }

/* ---------- Lage (Einsatzführung) ---------- */
.lage-title { display: inline-flex; align-items: center; gap: 10px; margin-left: 8px; font-size: 12px; }
.lage-body { display: grid; gap: 12px; padding: 12px; background: var(--so-color-canvas); }
.lage-side { display: grid; gap: 10px; align-content: start; }
.lage-card { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--so-color-border); background: var(--so-color-surface); }
.lage-card .app-head small { font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--so-color-text-subtle); }
.lage-unit { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.lage-unit small { color: var(--so-color-text-subtle); font-size: 11px; }
@media (min-width: 760px) { .lage-body { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }

/* ---------- Preis-Ausblick und Zielgruppen ---------- */
.price-teaser { display: grid; gap: 20px; padding: clamp(24px, 3vw, 40px); border-radius: var(--site-radius-lg); border: 1px solid var(--site-line); background: radial-gradient(500px 240px at 100% 0%, var(--site-glow), transparent 60%), var(--so-color-canvas); box-shadow: var(--site-shadow); }
.price-teaser .price-tiers { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.audience-big { padding: clamp(28px, 3.2vw, 44px); }
.audience-big .h3 { font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.9rem); font-weight: 720; letter-spacing: -0.02em; }
/* Aushang mit echtem QR-Code: Papier bleibt in beiden Themen weiß, die App-Anfrage liegt darüber. */
.join-visual { position: relative; display: grid; justify-items: center; gap: 12px; padding: 22px 16px; border-radius: 18px; background: var(--so-color-muted); }
.poster {
  --so-logo-mark: #E60005; --so-logo-text: #181716; --so-logo-knockout: #FFFFFF;
  display: grid; justify-items: center; gap: 8px; width: min(100%, 236px); padding: 18px 18px 16px; border-radius: 6px;
  background: #FFFFFF; color: #181716; text-align: center; box-shadow: 0 1px 2px rgba(24, 23, 22, 0.08), 0 18px 36px -20px rgba(24, 23, 22, 0.45);
}
.poster-head { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.poster-head .logo { height: 18px; }
.poster-kicker { color: #D60004; font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.poster-title { margin-top: 6px; font-size: 19px; line-height: 1.1; font-weight: 760; letter-spacing: -0.03em; }
.poster-qr { width: 100%; max-width: 156px; padding: 4px 0; }
.poster-qr svg { width: 100%; height: auto; }
.poster-code { font-family: var(--so-font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; }
.poster-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin: 4px 0 0; padding: 8px 0 0; list-style: none; border-top: 1px solid #E7E5E2; width: 100%; color: #55524F; font-size: 10px; font-weight: 600; }
.poster-steps li { display: inline-flex; align-items: center; gap: 5px; }
.poster-steps span { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #181716; color: #FFFFFF; font-size: 9px; }
.join-request {
  display: grid; gap: 10px; width: min(100%, 300px); padding: 12px;
  border-radius: 18px; border: 1px solid var(--so-color-border); background: var(--so-color-surface); box-shadow: var(--site-shadow); font-size: 12.5px;
}
.join-request-app { display: flex; align-items: center; justify-content: space-between; color: var(--so-color-text-subtle); font-size: 11px; }
.join-request-app .logo { height: 13px; }
.join-request-who { display: flex; align-items: center; gap: 10px; }
.join-request-text { display: grid; line-height: 1.3; }
.join-request-text small { color: var(--so-color-text-subtle); font-size: 11px; }
.join-request .app-btn { justify-content: center; padding-block: 8px; }
/* Nebeneinander nur, wenn die Kachel selbst breit genug ist (nicht das Fenster). */
.tile-visual:has(> .join-visual) { container-type: inline-size; }
@container (min-width: 500px) {
  .join-visual { grid-template-columns: auto minmax(0, 236px); justify-content: center; align-items: center; gap: 20px; padding: 26px 22px; }
  .poster { width: 220px; }
  .join-request { width: 100%; }
}

.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--so-color-muted); font-size: 11px; font-weight: 700; }

.ops-units { display: grid; gap: 8px; margin-bottom: 18px; }
.ops-unit { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; }
.ops-unit small { color: var(--so-color-text-subtle); }
.structure-visual { display: grid; gap: 28px; padding-block: clamp(32px, 4vw, 48px); }
.policy-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--so-color-surface); border: 1px solid var(--so-color-border); box-shadow: var(--site-shadow); font-size: 13px; }
.policy-card .stack { gap: 0; }
.policy-lock { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px solid var(--so-color-border); color: var(--so-color-text-subtle); font-size: 12px; font-weight: 600; }
.policy-lock .icon { color: var(--so-color-brand); }
.price-tier .small { white-space: nowrap; }

/* Rechenbeispiele im Kopf der Preisseite */
.examples { display: grid; gap: 20px; align-self: center; padding: clamp(24px, 3vw, 36px); border-radius: var(--site-radius-lg); border: 1px solid var(--site-line); background: var(--site-panel); box-shadow: var(--site-shadow-lg); }
.examples-title { margin-top: 4px; color: var(--so-color-text-subtle); font-size: var(--so-text-sm); font-weight: 600; }

/* Einstiegspreis: dunkles Preisfeld mit Licht von oben rechts und Raster, große Zahl, drei Zusagen. */
.price-from {
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 4px; justify-items: start;
  padding: clamp(22px, 2.6vw, 30px); border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(420px 240px at 100% 0%, color-mix(in srgb, #E60005 36%, transparent), transparent 66%), radial-gradient(320px 200px at 0% 110%, color-mix(in srgb, #E60005 12%, transparent), transparent 70%), #121110;
  box-shadow: var(--site-shadow);
}
.price-from::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(105deg, transparent 35%, black 90%); -webkit-mask-image: linear-gradient(105deg, transparent 35%, black 90%);
}
.price-from-label { color: var(--site-red-text); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.price-from-figure { display: flex; align-items: flex-end; gap: 8px; margin: 10px 0 2px; line-height: 0.8; }
.price-from-prefix { padding-bottom: 0.3em; color: var(--so-color-text-muted); font-size: 1.25rem; font-weight: 600; }
.price-from-amount { font-size: clamp(4.25rem, 2.9rem + 3.6vw, 6rem); font-weight: 800; letter-spacing: -0.055em; }
.price-from-cents { margin-left: 0.04em; font-size: 0.4em; letter-spacing: -0.02em; vertical-align: top; }
.price-from-unit { display: grid; gap: 6px; padding-bottom: 0.1em; }
.price-from-unit > span { color: var(--site-red-text); font-size: 2.25rem; font-weight: 760; line-height: 0.9; }
.price-from-unit small { color: var(--so-color-text-muted); font-size: 0.875rem; font-weight: 550; line-height: 1; white-space: nowrap; }
.price-from-tax { color: var(--so-color-text-subtle); font-size: 0.8125rem; }
.price-from-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; width: 100%; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.1); list-style: none; }
.price-from-facts li { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 550; }
.price-from-facts .icon { color: var(--so-feedback-success-text); }
.examples-list { display: grid; }
.examples-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--site-line); }
.examples-list .stack { gap: 2px; }
.examples-price { display: grid; justify-items: end; font-size: 1.375rem; font-weight: 740; font-feature-settings: "tnum"; white-space: nowrap; }
.examples-price small { font-family: var(--so-font-sans); font-size: 12px; font-weight: 500; color: var(--so-color-text-subtle); }

.facts { display: grid; gap: 0 56px; }
.facts li { display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: start; padding: 22px 0; border-top: 1px solid var(--site-line); font-size: 1.0625rem; color: var(--so-color-text-muted); }
.facts li .icon { width: 22px; height: 22px; color: var(--so-color-brand); margin-top: 2px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Weitere Produktansichten ---------- */
.stage-phone { display: grid; place-items: center; padding: 24px 0; }
.stage-phone::before { content: ""; position: absolute; z-index: -1; inset: 10% 15%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--so-color-brand) 18%, transparent), transparent 75%); filter: blur(20px); }
.phone.solo { transform: rotate(-2deg); }
.phone-card .who .avatar { flex: none; }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 10px; padding: 14px; background: var(--so-color-canvas); }
.kanban-col { display: grid; gap: 8px; align-content: start; padding: 10px; border-radius: 12px; background: var(--so-color-subtle); border: 1px solid var(--so-color-border); min-height: 220px; }
.kanban-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kanban-head small { color: var(--so-color-text-subtle); font-weight: 650; }
.kanban-card { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--so-color-surface); border: 1px solid var(--so-color-border); box-shadow: var(--site-shadow-sm); }
.kanban-card small { display: inline-flex; align-items: center; gap: 5px; color: var(--so-color-text-subtle); font-size: 10.5px; }
.kanban-card .icon { width: 12px; height: 12px; }
.cert { padding-top: 26px; }
.cert-doc { position: relative; display: grid; gap: 8px; padding: 18px 16px 16px; border-radius: 12px; background: var(--so-color-surface); border: 1px solid var(--so-color-border); box-shadow: var(--site-shadow); min-height: 300px; }
.cert-bar { height: 5px; border-radius: 3px; background: var(--so-color-brand); }
.cert-line { height: 9px; border-radius: 4px; background: var(--so-color-muted); }
.cert-line.w-70 { width: 70%; } .cert-line.w-90 { width: 90%; } .cert-line.w-60 { width: 60%; }
.cert-check { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--so-feedback-success-solid); color: #fff; }
.cert-qr { position: absolute; right: 16px; bottom: 16px; width: 76px; }
