/* addhucate Trust Center – Corporate Design wie addhucate.com (Space Grotesk / Google Sans Flex,
   Pflaume #400530, Koralle #ff4c5e). Statisch, ohne externe Ressourcen (CSP nur 'self'). */
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Google Sans Flex";
  src: url("assets/google-sans-flex.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --plum: #400530;
  --plum-deep: #610034;
  --coral: #ff4c5e;
  --ink: #171716;
  --ink-muted: #5d575b;
  --mist: #f7f7f7;
  --mauve-light: #e5dfe3;
  --mauve-dark: #d2c7cf;
  --white: #fff;
  --line: rgba(23, 23, 22, 0.1);
  --ok: #107c10;
  --radius: 5px;
  --font-head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Google Sans Flex", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--plum); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.2; margin: 0 0 0.6em; color: var(--plum); }
h1 { font-size: clamp(32px, 5vw, 50px); letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-size: 18px; font-weight: 600; color: var(--ink); }
p { margin: 0 0 1em; }
ul { margin: 0; padding-left: 1.2em; }
li + li { margin-top: 0.4em; }
strong { font-weight: 600; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.wrap.narrow { max-width: 860px; }
.muted { color: var(--ink-muted); font-size: 15px; }
.kicker, .panel-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 18px;
}

/* Kopfzeile wie addhucate.com */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 80px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 36px; width: auto; display: block; }
.brand-label { font-family: var(--font-head); font-weight: 500; font-size: 15px; color: var(--plum); padding-left: 14px; border-left: 1px solid var(--line); white-space: nowrap; }
.nav { display: flex; gap: 18px; flex: 1; justify-content: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--coral); }

/* Knöpfe: Großbuchstaben, 12 px, 5 px Rundung */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 20px; border-radius: var(--radius); border: 1px solid transparent;
  font: 600 12px/1 var(--font-body); letter-spacing: 0.02em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: all 0.25s;
}
.btn-primary { background: var(--plum); border-color: var(--plum); color: var(--white); }
.btn-primary:hover { background: var(--plum-deep); border-color: var(--plum-deep); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--plum); color: var(--plum); }
.btn-outline:hover { background: var(--plum); color: var(--white); }
.btn-coral { background: var(--coral); border-color: var(--coral); color: var(--plum); }
.btn-coral:hover { background: var(--plum); border-color: var(--plum); color: var(--white); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

/* Einstieg: Text links, Pflaume-Feld rechts */
.hero { border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.lead { font-size: 18px; color: var(--ink); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.updated { font-size: 13px; color: var(--ink-muted); margin: 0; }
.hero-panel { background: var(--plum); color: var(--white); border-radius: var(--radius); padding: 36px 36px 30px; }
.hero-panel ul { list-style: none; padding: 0; }
.hero-panel li { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.18); margin: 0; }
.hero-panel li:first-child { border-top: 0; padding-top: 0; }
.hero-panel strong { display: block; font-family: var(--font-head); font-size: 20px; font-weight: 500; }
.hero-panel span { color: var(--mauve-light); font-size: 15px; }

/* Abschnitte */
.section { padding: 80px 0; }
.section-muted { background: var(--mist); }
.section-coral { background: var(--coral); }
.section-coral h2, .section-coral p, .section-coral a { color: var(--plum); }
.section-lead { color: var(--ink-muted); max-width: 760px; margin-bottom: 32px; font-size: 17px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 22px; }
.section-muted .card { border-color: transparent; }
.card h3 { position: relative; padding-top: 14px; }
.card h3::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 3px; background: var(--coral); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }

.status-list { list-style: none; padding: 0; margin: 0; background: var(--white); border-radius: var(--radius); }
.status-list li { display: flex; align-items: center; gap: 12px; padding: 16px 20px; margin: 0; font-weight: 500; }
.status-list li + li { border-top: 1px solid var(--line); }
.status-list em { margin-left: auto; font-style: normal; font-weight: 400; color: var(--ink-muted); font-size: 14px; text-align: right; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-ok { background: var(--ok); }
.dot-muted { background: var(--mauve-dark); }

/* Architektur */
.diagram { margin: 0 0 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption { font-size: 13px; color: var(--ink-muted); margin-top: 10px; }
.zone { fill: var(--mist); stroke: var(--line); }
.zone-accent { fill: #f6eef3; stroke: var(--mauve-dark); }
.zone-label { font: 600 13px "Google Sans Flex", sans-serif; fill: var(--ink-muted); }
.zone-sub { font: 400 11.5px "Google Sans Flex", sans-serif; fill: var(--ink-muted); }
.box { fill: var(--white); stroke: var(--mauve-dark); }
.box-strong { stroke: var(--plum); stroke-width: 1.6; }
.box-title { font: 500 15px "Space Grotesk", sans-serif; fill: var(--plum); text-anchor: middle; }
.box-sub { font: 400 12px "Google Sans Flex", sans-serif; fill: var(--ink-muted); text-anchor: middle; }
.flow { stroke: var(--plum); stroke-width: 1.6; fill: none; }
.flow-read { stroke: var(--coral); stroke-dasharray: 5 4; }
.flow-label { font: 600 12px "Google Sans Flex", sans-serif; fill: var(--coral); }
.arrowhead { fill: var(--plum); }

/* Maßnahmen */
.controls { display: grid; gap: 10px; }
.control-group { background: var(--white); border-radius: var(--radius); }
.control-group summary {
  display: flex; align-items: center; gap: 12px; padding: 20px 24px;
  font-family: var(--font-head); font-size: 19px; font-weight: 500; color: var(--plum);
  cursor: pointer; list-style: none;
}
.control-group summary::-webkit-details-marker { display: none; }
.control-group summary::after { content: "+"; font-family: var(--font-body); font-size: 22px; font-weight: 300; color: var(--coral); margin-left: 8px; }
.control-group[open] summary::after { content: "–"; }
.count { margin-left: auto; font: 600 12px var(--font-body); color: var(--plum); background: var(--mauve-light); border-radius: var(--radius); padding: 3px 10px; }
.control-group ul { padding: 0 24px 22px 44px; }

.checks { list-style: none; padding: 0; margin-top: 8px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--coral); font-weight: 700; }
.perm-list { font-size: 14px; padding-left: 1.1em; margin-bottom: 12px; }

/* Tabelle */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 16px 20px; vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--plum); font-weight: 600; background: var(--mist); }
tr + tr td { border-top: 1px solid var(--line); }

/* Dokumente */
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.doc { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--white); border-radius: var(--radius); padding: 20px 22px; }
.doc h3 { margin: 0 0 2px; font-size: 16px; }
.doc p { margin: 0; color: var(--ink-muted); font-size: 14px; }
.badge { flex: none; font: 600 11px var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--plum); background: var(--mauve-light); border-radius: var(--radius); padding: 5px 10px; }
.badge-link { text-decoration: none; background: var(--plum); color: var(--white); }
.badge-link:hover { background: var(--coral); color: var(--plum); }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-family: var(--font-head); font-size: 18px; font-weight: 500; color: var(--plum); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-size: 22px; font-weight: 300; color: var(--coral); }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--ink-muted); }
.faq ul { color: var(--ink-muted); margin: -0.4em 0 1.2em; }

.contact { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.contact p { margin: 0; }
.contact h2 { margin-bottom: 8px; }

.footer { padding: 32px 0; font-size: 14px; color: var(--ink-muted); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--ink-muted); }

/* Anfrage-Dialog */
.dialog {
  width: min(580px, calc(100vw - 32px)); border: 0; border-radius: var(--radius);
  padding: 0; background: var(--white); color: var(--ink); box-shadow: 0 24px 64px rgba(64, 5, 48, 0.25);
}
.dialog::backdrop { background: rgba(64, 5, 48, 0.45); }
.dialog form { padding: 30px; display: grid; gap: 14px; }
.dialog h2 { font-size: 26px; margin: 0; }
.dialog p { margin: 0; }
.dialog label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.dialog input, .dialog select, .dialog textarea {
  font: 400 15px var(--font-body); color: var(--ink); background: var(--white);
  border: 1px solid var(--mauve-dark); border-radius: var(--radius); padding: 10px 12px;
}
.dialog input:focus, .dialog select:focus, .dialog textarea:focus { outline: 2px solid var(--plum); outline-offset: 0; border-color: transparent; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog fieldset { border: 1px solid var(--mauve-dark); border-radius: var(--radius); padding: 10px 14px 12px; margin: 0; display: grid; gap: 6px; }
.dialog legend { font-size: 14px; font-weight: 600; padding: 0 4px; }
.dialog .check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.dialog .check input { width: 16px; height: 16px; accent-color: var(--plum); }
.form-error { color: #c42b1c; font-size: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

@media (max-width: 1280px) {
  .nav { display: none; }
  .topbar-inner { justify-content: space-between; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 48px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .docs { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .brand-label { display: none; }
  .brand img { height: 30px; }
  .topbar-inner { height: 68px; }
  .hero-panel { padding: 26px 22px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .contact .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

.addr { list-style: none; padding: 0; }
.addr code, td code { font-size: 13px; background: var(--mist); padding: 1px 6px; border-radius: 4px; }
.changes { list-style: none; padding: 0; }
.changes li { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.changes span { flex: none; width: 96px; font-weight: 600; color: var(--plum); }
