/* ==========================================================================
   Portal-Stylesheet — reines CSS, kein JavaScript.
   Zwei Themes über <html data-portal="dms"> bzw. data-portal="crm".

   Diese Datei liegt als eigene Kopie in jedem Portal — die Portale laufen auf
   getrennten Domains und teilen sich zur Laufzeit nichts. Gepflegt wird die
   Vorlage in _shared, verteilt wird sie mit:  python _shared/ausrollen.py
   Der Ordner _shared wird NICHT hochgeladen.
   ========================================================================== */

:root {
  /* Theme DMS — Tiefblau */
  --accent:        #16548f;
  --accent-dark:   #0f3c68;
  --accent-soft:   #e9f0f8;
  --accent-line:   #c3d7ec;
  --accent-deep:   #0b2b4a;

  /* Neutrale */
  --ink:           #101b26;
  --ink-soft:      #46535f;
  --ink-faint:     #6d7a86;
  --line:          #e2e7ed;
  --line-strong:   #cdd5de;
  --bg:            #ffffff;
  --bg-soft:       #f6f8fa;
  --bg-tint:       #eef3f8;

  /* Signalfarben — Befundschwere im Pflichten-Check */
  --ok:            #14713f;
  --ok-bg:         #e9f6ee;
  --warn:          #8a5300;
  --warn-bg:       #fdf4e3;
  --crit:          #a32218;
  --crit-bg:       #fcedeb;

  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     18px;
  --shadow-sm:     0 1px 2px rgba(16,27,38,.05), 0 2px 6px rgba(16,27,38,.04);
  --shadow:        0 2px 4px rgba(16,27,38,.04), 0 10px 30px rgba(16,27,38,.07);
  --shadow-lg:     0 4px 8px rgba(16,27,38,.05), 0 24px 60px rgba(16,27,38,.12);
  --maxw:          1140px;
  --font:          system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-num:      ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

/* Theme CRM — Petrol */
html[data-portal="crm"] {
  --accent:       #0b6c62;
  --accent-dark:  #084f47;
  --accent-soft:  #e5f3f1;
  --accent-line:  #b9dcd7;
  --accent-deep:  #06342f;
  --bg-tint:      #ecf5f3;
}

/* --- Reset / Basis ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-wrap: break-word;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.66;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 {
  line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.018em; color: var(--ink);
  /* „Verfahrensdokumentation“ und Verwandte sprengen sonst schmale Displays */
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.45rem, 2.9vw, 2rem); margin-top: 2.1em; }
h3 { font-size: 1.16rem; margin-top: 1.7em; letter-spacing: -.01em; }
h4 { font-size: 1rem; }
p, ul, ol { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .45em; }
li::marker { color: var(--accent); }
strong { font-weight: 650; }
small { font-size: .875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.6rem 0; }
abbr[title] { text-decoration: underline dotted; cursor: help; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 750px; }
.lead { font-size: 1.14rem; color: var(--ink-soft); }

/* --- Skip-Link ---------------------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; top: 0; }

/* --- Header ------------------------------------------------------------- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky; top: 0; z-index: 30;
}
.site-head .wrap {
  display: flex; align-items: center; gap: 26px;
  min-height: 70px; flex-wrap: wrap;
  position: relative;   /* Bezugspunkt für das aufklappende Menü */
}
.logo {
  font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center;
}
/* Kein gap im Flex-Container: Der würde auch zwischen Wortmarke und ".at"
   wirken — das Kürzel gehört aber ohne Abstand an den Namen. */
.logo::before {
  content: ""; width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  margin-right: 10px;
  /* Dasselbe Zeichen wie im Favicon — eine Datei, zwei Verwendungen.
     Zwei Ebenen, deshalb ausgeschrieben statt in Kurzform: In der Kurzform
     wäre das zwei Bilder in einer Ebene, und der Browser verwirft die Zeile.
     Der Verlauf liegt darunter als Rückfall, falls die Datei einmal fehlt. */
  background-image: url("/favicon.svg"),
                    linear-gradient(140deg, var(--accent) 15%, var(--accent-deep) 100%);
  background-size: 100% 100%, auto;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  box-shadow: 0 1px 2px rgba(16,27,38,.20);
}
.logo span { color: var(--accent); font-weight: 600; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; align-items: center; }

/* --- Klappmenü ----------------------------------------------------------
   Ohne JavaScript: Ein Kontrollkästchen trägt den Zustand, das zugehörige
   Label ist der sichtbare Knopf. Am Schreibtisch sind beide ausgeblendet und
   die Navigation steht wie gewohnt in einer Zeile. */
.menue-schalter { display: none; }
.menue-knopf { display: none; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
/* Kopfzeilen-CTA — kompakter und plastischer als der Standard-Button,
   damit er neben den Textlinks als Schaltfläche gelesen wird. */
.site-nav a.btn {
  border-bottom: 0;
  margin-left: 6px;
  padding: 10px 18px;
  font-size: .92rem;
  font-weight: 650;
  letter-spacing: -.005em;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-color: var(--accent-dark);
  box-shadow: 0 1px 2px rgba(16,27,38,.16), inset 0 1px 0 rgba(255,255,255,.20);
  display: inline-flex; align-items: center; gap: 8px;
}
.site-nav a.btn::after {
  content: "→";
  font-weight: 400;
  transition: transform .15s ease;
}
.site-nav a.btn:hover {
  background: linear-gradient(180deg, var(--accent-dark) 0%, var(--accent-deep) 100%);
  box-shadow: 0 2px 6px rgba(16,27,38,.22), inset 0 1px 0 rgba(255,255,255,.16);
}
.site-nav a.btn:hover::after { transform: translateX(3px); }
.site-nav a.btn:active { transform: translateY(1px); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff !important; text-decoration: none;
  font-weight: 600; font-size: .98rem; border: 1px solid var(--accent);
  cursor: pointer; text-align: center; line-height: 1.35;
  box-shadow: 0 1px 2px rgba(16,27,38,.10);
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: #fff; color: var(--accent) !important; border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

/* --- Eyebrow, Badges, Tags ---------------------------------------------- */
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .8rem; font-weight: 650; padding: 5px 11px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent-dark); border: 1px solid var(--accent-line);
}
.badge-neutral { background: var(--bg-soft); color: var(--ink-soft); border-color: var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 1em 0 1.4em; padding: 0; list-style: none; }
.tags li { margin: 0; }
.tags a {
  display: inline-block; font-size: .88rem; text-decoration: none; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; background: #fff;
}
.tags a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* --- Hero --------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1000px 420px at 84% -10%, var(--accent-soft) 0%, rgba(255,255,255,0) 62%),
    linear-gradient(178deg, var(--bg-tint) 0%, #fff 72%);
  border-bottom: 1px solid var(--line);
  padding: 62px 0 56px;
}
.hero h1 { margin-bottom: .4em; max-width: 17ch; }
.hero .lead { max-width: 56ch; font-size: 1.16rem; }
.hero-grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .85fr); align-items: start; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 28px; }
.hero-meta {
  margin-top: 26px; font-size: .9rem; color: var(--ink-faint);
  display: flex; gap: 8px 24px; flex-wrap: wrap; padding: 0; list-style: none;
}
.hero-meta li, .hero-meta span { margin: 0; display: flex; align-items: center; gap: 7px; }
.hero-meta li::before, .hero-meta span::before {
  content: "✓"; color: var(--ok); font-weight: 800; font-size: .95em;
}

/* Seitenpanel im Hero — Vorschau auf den Check */
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px 26px 22px; position: relative;
}
.panel h2, .panel h3 { margin-top: 0; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.panel-head h2,
.panel-head h3 { margin: 0; font-size: 1.02rem; letter-spacing: -.01em; }
.panel ol { counter-reset: p; list-style: none; padding: 0; margin: 0 0 20px; }
.panel ol li {
  counter-increment: p; position: relative; padding-left: 34px; margin-bottom: 12px;
  font-size: .95rem; color: var(--ink-soft); line-height: 1.5;
}
.panel ol li::before {
  content: counter(p); position: absolute; left: 0; top: 1px;
  width: 23px; height: 23px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent-dark); font-weight: 700; font-size: .78rem;
  display: flex; align-items: center; justify-content: center;
}
.panel-foot { font-size: .84rem; color: var(--ink-faint); text-align: center; margin: 12px 0 0; }

/* --- Vertrauensleiste --------------------------------------------------- */
.trustbar {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-soft); padding: 18px 0;
}
.trustbar ul {
  display: flex; flex-wrap: wrap; gap: 10px 38px; justify-content: center;
  list-style: none; margin: 0; padding: 0; font-size: .89rem; color: var(--ink-soft);
}
.trustbar li { margin: 0; display: flex; align-items: center; gap: 8px; }
.trustbar strong { color: var(--ink); font-weight: 650; }

/* --- Sections ----------------------------------------------------------- */
section { padding: 10px 0; }
.section-soft {
  background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 52px 0; margin-top: 58px;
}
.section-soft h2 { margin-top: 0; }
.section-head { max-width: 66ch; margin-bottom: 26px; }
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }

/* --- Karten-Grid -------------------------------------------------------- */
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; font-size: 1.05rem; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-soft); font-size: .96rem; }
.card-link { text-decoration: none; color: inherit; display: block; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link:hover { border-color: var(--accent-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link:hover h3 { color: var(--accent); }
.card-link .more { display: inline-block; margin-top: 12px; font-size: .9rem; font-weight: 600; color: var(--accent); }
.card-link .more::after { content: " →"; }

/* Nummerierte Schritte */
.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 24px; }
.steps .card::before {
  counter-increment: s; content: counter(s);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: .95rem;
  margin-bottom: 13px; border: 1px solid var(--accent-line);
}

/* --- Kennzahlen --------------------------------------------------------- */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 1.6em 0; }
.stat { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; }
.stat b { display: block; font-size: 1.85rem; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--ink-soft); }

/* --- Tabellen ----------------------------------------------------------- */
.table-scroll {
  overflow-x: auto; margin: 0 0 1.3em; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff;
}
table { border-collapse: collapse; width: 100%; font-size: .94rem; background: #fff; }
caption { text-align: left; font-size: .88rem; color: var(--ink-faint); padding: 12px 16px 0; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  background: var(--bg-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-faint); white-space: nowrap; font-weight: 700;
}
tbody th[scope="row"] { font-weight: 650; color: var(--ink); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:hover { background: var(--bg-soft); }
.y { color: var(--ok); font-weight: 700; }
.n { color: var(--ink-faint); }

/* --- Hinweisboxen ------------------------------------------------------- */
.note, .warn, .crit, .good {
  border: 1px solid var(--accent-line); border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 17px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.7em 0; font-size: .96rem;
}
.warn { border-color: #edd9ae; border-left-color: var(--warn); background: var(--warn-bg); }
.crit { border-color: #f0cdc8; border-left-color: var(--crit); background: var(--crit-bg); }
.good { border-color: #bfe2cd; border-left-color: var(--ok);  background: var(--ok-bg); }
.note p:last-child, .warn p:last-child, .crit p:last-child, .good p:last-child { margin-bottom: 0; }
.note strong:first-child, .warn strong:first-child,
.crit strong:first-child, .good strong:first-child { display: block; margin-bottom: .35em; }

/* „Kurz gefasst" — Antwort-zuerst-Absatz, wird von Antwortmaschinen zitiert */
.kurz {
  font-size: 1.06rem; line-height: 1.6; color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin: 0 0 1.8em;
}
.kurz p:last-child { margin-bottom: 0; }
.kurz strong:first-child { color: var(--accent-dark); }

/* --- Checkliste --------------------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 1.2em 0 1.6em; }
.checklist li {
  position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line);
  margin: 0; font-size: .97rem;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 17px;
  width: 15px; height: 15px; border: 2px solid var(--accent); border-radius: 4px;
}
.checklist li strong { display: block; }

/* --- Ablaufkette -------------------------------------------------------- */
.chain { list-style: none; padding: 0; margin: 1.4em 0 1.8em; counter-reset: c; }
.chain li {
  counter-increment: c; position: relative; padding: 0 0 22px 44px; margin: 0;
  border-left: 2px solid var(--line);
}
.chain li:last-child { border-left-color: transparent; padding-bottom: 0; }
.chain li::before {
  content: counter(c); position: absolute; left: -15px; top: -2px;
  width: 28px; height: 28px; border-radius: 50%; background: #fff;
  border: 2px solid var(--accent); color: var(--accent-dark);
  font-weight: 700; font-size: .82rem; display: flex; align-items: center; justify-content: center;
}
.chain li b { display: block; margin-bottom: 2px; }
.chain li span { color: var(--ink-soft); font-size: .95rem; }

/* --- Formular (Pflichten-Check) ----------------------------------------- */
.wizard { max-width: 720px; margin: 0 auto; }
/* Auf Seiten, deren Text linksbündig steht, darf das Formular nicht
   mittig sitzen — sonst springt die Kante. */
.wizard-links { margin-left: 0; margin-right: 0; max-width: 750px; }
fieldset {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px 10px; margin: 0 0 20px; background: #fff; box-shadow: var(--shadow-sm);
}
legend { font-weight: 700; font-size: 1.12rem; padding: 0 8px; color: var(--ink); letter-spacing: -.01em; }
legend .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 25px; height: 25px; border-radius: 7px; background: var(--accent);
  color: #fff; font-size: .8rem; margin-right: 9px; vertical-align: -4px;
}
.hint { font-size: .9rem; color: var(--ink-faint); margin: -4px 0 16px; }

.opts { display: grid; gap: 9px; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); margin-bottom: 16px; }
.opt {
  display: flex; align-items: flex-start; gap: 11px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 15px;
  cursor: pointer; background: #fff; font-size: .95rem; line-height: 1.45;
  transition: border-color .12s, background .12s;
}
.opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.opt input { margin: 3px 0 0; accent-color: var(--accent); flex-shrink: 0; width: 17px; height: 17px; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 550; }

label.field { display: block; margin-bottom: 17px; font-size: .9rem; font-weight: 650; color: var(--ink-soft); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], select, textarea {
  width: 100%; padding: 12px 14px; margin-top: 6px; min-height: 48px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: .97rem; font-weight: 400; color: var(--ink); background: #fff;
  color-scheme: light;
}
textarea { min-height: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input:hover:not(:focus), select:hover:not(:focus) { border-color: var(--ink-faint); }

/* Auswahlfelder: eigener Pfeil, damit sie neben den Textfeldern nicht wie
   Fremdkörper wirken. Das SVG steckt inline — keine externe Anfrage. */
select {
  appearance: none; -webkit-appearance: none;
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%2346535f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
select:disabled { color: var(--ink-faint); background-color: var(--bg-soft); }

/* Datumsfeld: der native Aufbau wird sonst weder in der Höhe noch in der
   Typografie an den Rest angeglichen. */
input[type="date"] {
  font-variant-numeric: tabular-nums;
  cursor: text;
}
input[type="date"]::-webkit-datetime-edit { padding: 0; line-height: 1.2; }
input[type="date"]::-webkit-datetime-edit-fields-wrapper { padding: 0; }
input[type="date"]::-webkit-datetime-edit-text { padding: 0 1px; color: var(--ink-faint); }
input[type="date"]::-webkit-datetime-edit-day-field:focus,
input[type="date"]::-webkit-datetime-edit-month-field:focus,
input[type="date"]::-webkit-datetime-edit-year-field:focus {
  background: var(--accent-soft); color: var(--accent-dark); border-radius: 3px; outline: none;
}
input[type="date"]::-webkit-inner-spin-button { display: none; }
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: .5; padding: 6px; margin-right: -6px;
  border-radius: 6px;
  transition: opacity .12s ease, background .12s ease;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1; background: var(--accent-soft);
}
.cols2 { display: grid; gap: 0 20px; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }
.req { color: #b3261e; }

.consent {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px;
  font-size: .9rem; line-height: 1.55; color: var(--ink-soft);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px;
}
.consent input { margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; width: 17px; height: 17px; }

/* Honeypot — für Menschen unsichtbar, für Bots ausfüllbar */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit-row { text-align: center; padding: 8px 0 4px; }
.submit-row .btn { width: 100%; max-width: 420px; }
.submit-row small { display: block; margin-top: 12px; color: var(--ink-faint); }

/* Fortschritt */
.progress { height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 4px 0 10px; }
.progress span {
  display: block; height: 100%; border-radius: 99px; min-width: 6px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
}
.step-meta {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: .86rem; color: var(--ink-faint); margin: 0 0 26px;
}
.nav-row { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.nav-row .btn-ghost { padding-left: 20px; padding-right: 20px; }
.nav-row .btn-lg { flex: 1 1 auto; max-width: 420px; }

/* --- Befunde (Ergebnisseite des Pflichten-Checks) ----------------------- */
.score-head {
  display: flex; gap: 26px; align-items: center; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 28px; background: #fff; box-shadow: var(--shadow); margin-bottom: 30px;
}
.score-ring {
  width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 7px solid var(--accent-line); color: var(--accent-dark); background: var(--accent-soft);
}
.score-ring b { font-size: 1.7rem; line-height: 1; letter-spacing: -.03em; }
.score-ring span { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; margin-top: 3px; }
.score-head div p:last-child { margin-bottom: 0; }
.score-head h2 { margin: 0 0 .3em; font-size: 1.35rem; }

.befund {
  border: 1px solid var(--line); border-left: 5px solid var(--line-strong);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin-bottom: 14px; background: #fff;
}
.befund h3 { margin: 0 0 .4em; font-size: 1.04rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.befund p { margin-bottom: .6em; font-size: .96rem; color: var(--ink-soft); }
.befund p:last-child { margin-bottom: 0; }
.befund .stufe {
  font-size: .7rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 99px; white-space: nowrap;
}
.befund-kritisch { border-left-color: var(--crit); }
.befund-kritisch .stufe { background: var(--crit-bg); color: var(--crit); }
.befund-pruefen { border-left-color: var(--warn); }
.befund-pruefen .stufe { background: var(--warn-bg); color: var(--warn); }
.befund-ok { border-left-color: var(--ok); }
.befund-ok .stufe { background: var(--ok-bg); color: var(--ok); }

/* --- Bereichsbalken (Reifegrad-Check) ----------------------------------- */
.bereich { margin: 0 0 26px; }
.bereich-kopf {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 14px; margin-bottom: 7px;
}
.bereich-kopf strong { font-size: 1.02rem; }
.bereich-kopf span {
  font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent-dark);
}
.bereich p { margin: 9px 0 0; font-size: .95rem; color: var(--ink-soft); }

/* --- Rechner ------------------------------------------------------------ */
.rechner-form {
  display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  align-items: end; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 26px 28px; background: #fff; box-shadow: var(--shadow); margin-bottom: 28px;
}
.rechner-form label.field {
  margin-bottom: 0;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-faint);
}
.rechner-form label.field .req { text-transform: none; letter-spacing: 0; }
.feldhinweis {
  display: block; margin-top: 7px;
  font-size: .8rem; font-weight: 400; line-height: 1.45;
  color: var(--ink-faint); text-transform: none; letter-spacing: 0;
}
.rechner-form .btn {
  align-self: end; min-height: 48px; padding: 12px 26px; white-space: nowrap;
}
@media (max-width: 640px) {
  .rechner-form { padding: 20px 18px 22px; }
  .rechner-form .btn { width: 100%; }
}
.ergebnis-box {
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  border-radius: var(--radius); padding: 26px 28px; margin-bottom: 26px;
}
.ergebnis-box h2 { margin: 0 0 .4em; font-size: 1.2rem; }
.ergebnis-box .datum {
  font-family: var(--font-num); font-size: 2rem; font-weight: 700;
  letter-spacing: -.03em; color: var(--accent-dark); display: block; margin: .2em 0;
}

/* --- FAQ (details/summary, kein JS) ------------------------------------- */
details {
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px; background: #fff; padding: 0 22px;
}
details[open] { border-color: var(--accent-line); background: #fff; box-shadow: var(--shadow-sm); }
summary {
  cursor: pointer; font-weight: 650; padding: 17px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); font-weight: 300; line-height: 1; }
details[open] summary::after { content: "−"; }
details > *:not(summary) { margin-bottom: 1em; }
details p { color: var(--ink-soft); }

/* --- CTA-Band ----------------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff; border-radius: var(--radius-lg);
  padding: 44px 38px; margin: 58px 0 0; text-align: center;
  box-shadow: var(--shadow);
}
.cta h2 { color: #fff; margin: 0 0 .4em; }
.cta p { color: rgba(255,255,255,.88); max-width: 56ch; margin: 0 auto 24px; }
.cta .btn { background: #fff; color: var(--accent-dark) !important; border-color: #fff; }
.cta .btn:hover { background: var(--bg-tint); }
.cta small { display: block; margin-top: 16px; color: rgba(255,255,255,.72); font-size: .86rem; }

/* --- Breadcrumb --------------------------------------------------------- */
.crumb { font-size: .87rem; color: var(--ink-faint); padding: 20px 0 4px; }
.crumb a { color: var(--ink-faint); }

/* --- Footer ------------------------------------------------------------- */
.site-foot {
  margin-top: 66px; border-top: 1px solid var(--line);
  background: var(--bg-soft); padding: 44px 0 32px; font-size: .91rem; color: var(--ink-soft);
}
.foot-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.site-foot h3,
.site-foot h4 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-faint); margin-bottom: .9em; margin-top: 0;
}
.site-foot ul { list-style: none; padding: 0; }
.site-foot li { margin-bottom: .4em; }
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { color: var(--accent); text-decoration: underline; }
.foot-legal { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line-strong); font-size: .84rem; color: var(--ink-faint); }
.foot-legal p { margin-bottom: .55em; }
.foot-legal strong { color: var(--ink-soft); }

/* --- Meta / Stand-Angabe ------------------------------------------------ */
.stand { font-size: .84rem; color: var(--ink-faint); margin-bottom: 1.7em; }
.quelle { font-size: .84rem; color: var(--ink-faint); }

/* --- Einwilligungsbanner (consent.js) ----------------------------------
   Erscheint nur, solange keine Entscheidung vorliegt. Beide Schaltflächen
   sind gleich groß und gleich erreichbar — Ablehnen darf nicht schwerer
   sein als Zustimmen. */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff; border-top: 1px solid var(--line-strong);
  box-shadow: 0 -8px 30px rgba(16,27,38,.14);
  padding: 18px 0 20px;
}
.consent-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  display: flex; gap: 26px; align-items: center; flex-wrap: wrap;
}
.consent-text { flex: 1 1 420px; }
.consent-text strong { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.consent-text p { margin: 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.55; }
.consent-knoepfe { display: flex; gap: 12px; flex: 0 0 auto; }
.consent-knoepfe .btn { min-width: 168px; padding: 12px 20px; }

.consent-widerruf { font-size: .84rem; }
.linkknopf {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
}
.linkknopf:hover { color: var(--accent-dark); }

@media (max-width: 700px) {
  .consent-inner { gap: 16px; }
  .consent-knoepfe { width: 100%; }
  .consent-knoepfe .btn { flex: 1 1 0; min-width: 0; }
}
@media print { .consent-banner { display: none !important; } }

/* --- Reduced Motion / Print --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-head, .site-foot, .cta, .btn, .skip, .menue-knopf { display: none !important; }
  body { font-size: 11pt; } .wrap { max-width: none; }
  .befund { break-inside: avoid; }
}

/* --- Responsiv -----------------------------------------------------------
   Zwei Stufen: ab 900 px klappt die Navigation zusammen, ab 640 px wird der
   Rest kompakter. Getestet wurde gegen 320 px Breite — darunter gibt es
   praktisch keine Geräte mehr. */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { max-width: 22ch; }

  /* Kopfzeile: eine Zeile, Menü dahinter */
  .site-head .wrap {
    min-height: 62px; gap: 12px; flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px;
  }
  .logo { font-size: 1.05rem; }
  .logo::before { width: 24px; height: 24px; margin-right: 8px; }

  /* Am Handy wird der Schalter gebraucht: unsichtbar, aber bedienbar und
     mit der Tastatur erreichbar. Am Schreibtisch ist er ganz aus dem Weg,
     damit er dort keinen Tabulator-Halt erzeugt. */
  .menue-schalter { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; }
  .menue-knopf {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    margin-left: auto; padding: 0 17px; min-height: 46px; cursor: pointer;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    background: #fff; color: var(--ink); font-size: .92rem; font-weight: 650;
    -webkit-tap-highlight-color: transparent;
  }
  .menue-striche, .menue-striche::before, .menue-striche::after {
    content: ""; display: block; width: 18px; height: 2px; border-radius: 2px;
    background: var(--ink); transition: transform .18s ease, opacity .18s ease;
  }
  .menue-striche { position: relative; }
  .menue-striche::before { position: absolute; top: -6px; }
  .menue-striche::after  { position: absolute; top: 6px; }

  /* Geöffnet: Striche werden zum Kreuz */
  .menue-schalter:checked + .menue-knopf .menue-striche { background: transparent; }
  .menue-schalter:checked + .menue-knopf .menue-striche::before { top: 0; transform: rotate(45deg); }
  .menue-schalter:checked + .menue-knopf .menue-striche::after  { top: 0; transform: rotate(-45deg); }
  .menue-schalter:focus-visible + .menue-knopf { outline: 3px solid var(--accent); outline-offset: 2px; }

  /* Die Navigation selbst: Liste unter der Kopfzeile, volle Breite */
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 6px 22px 16px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(16,27,38,.10);
    max-height: calc(100vh - 62px); overflow-y: auto;
  }
  .menue-schalter:checked ~ .site-nav { display: flex; }

  .site-nav a {
    padding: 14px 2px; font-size: 1rem; border-bottom: 1px solid var(--line);
  }
  .site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--line); }
  .site-nav a.btn {
    margin: 14px 0 0; padding: 14px 20px; font-size: 1rem;
    justify-content: center; border-bottom: 0;
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .site-nav { padding-left: 18px; padding-right: 18px; }
  .hero { padding: 34px 0 32px; }
  .hero .lead, .lead { font-size: 1.06rem; }

  .panel { padding: 22px 20px 18px; }
  .cta { padding: 30px 20px; margin-top: 44px; }
  .cta .btn { display: block; }
  .section-soft { padding: 40px 0; margin-top: 44px; }
  h2 { margin-top: 1.7em; }

  fieldset { padding: 18px 16px 6px; }
  legend { font-size: 1.04rem; }
  .opts { grid-template-columns: 1fr; }
  .cols2 { grid-template-columns: 1fr; }

  .score-head { padding: 20px; gap: 16px; }
  .score-ring { width: 78px; height: 78px; border-width: 6px; }
  .score-ring b { font-size: 1.4rem; }

  .rechner-form { padding: 20px 18px 22px; }
  .rechner-form .btn { width: 100%; }
  .ergebnis-box { padding: 22px 20px; }
  .ergebnis-box .datum { font-size: 1.6rem; }

  .chain li { padding-left: 34px; }
  .chain li::before { left: -14px; width: 26px; height: 26px; }
  .stats { gap: 12px; }
  .stat b { font-size: 1.6rem; }

  /* Tabellen bleiben scrollbar, brauchen aber eine Mindestbreite —
     sonst quetschen sich vier Spalten auf 300 px zusammen. */
  .table-scroll { -webkit-overflow-scrolling: touch; }
  .table-scroll table { min-width: 560px; }
  th, td { padding: 11px 13px; }

  .foot-grid { gap: 22px; }
  .trustbar ul { gap: 8px 20px; font-size: .86rem; }
}

@media (max-width: 480px) {
  .nav-row { flex-direction: column-reverse; align-items: stretch; }
  .nav-row .btn-lg { max-width: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .btn-lg { padding: 14px 22px; font-size: 1rem; }
  .badge { font-size: .74rem; }
  .logo { font-size: .98rem; }
  .menue-knopf .menue-wort { display: none; }
  .menue-knopf { padding: 0; width: 46px; min-height: 46px; }
}
