:root { color-scheme: only light; }
/* ==========================================================================
   WebKit Kern – kit.css
   Version: siehe kit/VERSION. Diese Datei wird in Sites kopiert und dort NIE
   bearbeitet. Farben, Schriften, Radien kommen aus skin.css (:root-Tokens).
   Mobile-first: Basis gilt ab 320 px, Erweiterungen per min-width.
   ========================================================================== */

/* ---------- Tokens (Standardwerte, skin.css überschreibt) ---------- */
:root {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: rgba(0, 0, 0, .12);
  --accent: #1a4be0;
  --accent-ink: #ffffff;
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 6px;
  --radius-lg: 14px;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(56px, 10vw, 128px);
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 180ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: .15em; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Typografie ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: .95;            /* Umlaute: enge Zeile + Luft oben */
  padding-top: .04em;
  text-wrap: balance;
  overflow-wrap: anywhere;     /* lange Wörter (Datenschutzerklärung) brechen statt überlaufen */
  hyphens: auto;
}
p, li, td, dd, a, address { overflow-wrap: break-word; }
h1 { font-size: clamp(2.25rem, 8vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); line-height: 1.15; }
p  { max-width: 62ch; }
.lede { font-size: clamp(1.1rem, 2.4vw, 1.35rem); line-height: 1.45; color: var(--ink); }
.muted { color: var(--muted); }
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.stack > * + * { margin-top: var(--stack, 16px); }
.stack-lg { --stack: 28px; }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
small, .small { font-size: .875rem; }

@media (min-width: 860px) {
  body { font-size: 17px; }
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
main > section, .section { padding-block: var(--section); }
.section--surface { background: var(--surface); }
.section--accent { background: var(--accent); color: var(--accent-ink); }
.section--accent a { text-decoration-color: currentColor; }
.section > .wrap > h2:first-child,
.section > .wrap > .eyebrow:first-child + h2 { margin-bottom: clamp(20px, 3vw, 36px); }

.grid { display: grid; gap: clamp(16px, 3vw, 32px); }
@media (min-width: 560px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1.1fr .9fr; }
  .split--media-left > .photo { order: -1; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding-block: calc(var(--header-h, 64px) + 24px) 48px;
}
.hero .wrap { display: grid; gap: clamp(20px, 3vw, 32px); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .fact { color: var(--muted); font-weight: 500; }
@media (min-width: 860px) {
  .hero--split .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; column-gap: clamp(32px, 5vw, 72px); }
  .hero--split .photo { grid-row: 1 / span 4; grid-column: 2; }
}

/* ---------- Header und Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h, 64px); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; text-decoration: none; min-height: 44px; }
.brand img, .brand svg { height: 32px; width: auto; }
.nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius); background: transparent; cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform var(--t) var(--ease); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.nav {
  position: fixed; inset: var(--header-h, 64px) 0 0 0; z-index: 40;
  background: var(--bg); padding: 24px var(--gutter);
  display: none; flex-direction: column; gap: 4px; overflow: auto;
}
.nav.is-open { display: flex; }
/* backdrop-filter macht den Header zum Containing Block – das feste Menü wäre sonst auf Header-Höhe gestutzt */
body.nav-open .site-header { backdrop-filter: none; }
.nav a { display: flex; align-items: center; min-height: 48px; padding: 0 8px; font-size: 1.25rem; font-weight: 500; text-decoration: none; border-radius: var(--radius); }
.nav a:hover, .nav a:focus-visible { background: var(--surface); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.nav .btn { margin-top: 12px; align-self: flex-start; }
body.nav-open { overflow: hidden; }
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav { position: static; inset: auto; display: flex; flex-direction: row; align-items: center; gap: 4px; padding: 0; background: transparent; overflow: visible; }
  .nav a { font-size: 1rem; min-height: 44px; padding: 0 12px; }
  .nav .btn { margin: 0 0 0 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease);
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); padding-inline: 8px; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.btn--block { width: 100%; }
@media (min-width: 480px) { .actions .btn { width: auto; } }
@media (max-width: 479.98px) { .actions .btn { width: 100%; } }

/* ---------- Karten, Fotos ---------- */
.card {
  background: var(--surface); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 28px);
  display: grid; gap: 10px; align-content: start;
}
.card--white { background: var(--bg); border: 1px solid var(--line); }
a.card, .card--link { text-decoration: none; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
a.card:hover, .card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card .icon { width: 28px; height: 28px; color: var(--accent); }

.photo { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); aspect-ratio: var(--ratio, 4 / 3); }
.photo picture { display: contents; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms var(--ease); }
a .photo img:hover, .photo--zoom img:hover { transform: scale(1.025); }
.photo--portrait { --ratio: 3 / 4; }
.photo--wide { --ratio: 16 / 9; }
.photo--square { --ratio: 1; }

/* Platzhalter nur im Entwurf: sichtbar markiert, check.mjs --freigabe meldet ihn */
.placeholder {
  display: grid; place-items: center; text-align: center; padding: 16px;
  border: 2px dashed var(--muted); color: var(--muted); font-size: .9rem; background: var(--surface);
}

/* ---------- Listen, Zahlen, Zitate ---------- */
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px;
  border-radius: 50%; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M6.5 11.5 3 8l1.4-1.4 2.1 2.1 5.1-5.1L13 5z'/%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 16 16'%3E%3Cpath fill='%23000' d='M6.5 11.5 3 8l1.4-1.4 2.1 2.1 5.1-5.1L13 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.facts { display: grid; gap: 20px; }
.facts strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3rem); line-height: 1; letter-spacing: -.02em; }
@media (min-width: 560px) { .facts { grid-template-columns: repeat(3, 1fr); } }
blockquote { border-left: 3px solid var(--accent); padding-left: 20px; font-size: 1.1rem; }
blockquote footer { margin-top: 10px; font-size: .9rem; color: var(--muted); }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 16px; max-width: 640px; }
.form label { display: grid; gap: 6px; font-weight: 500; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg); color: var(--ink);
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 25%, transparent); outline-offset: 0; }
.form .consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-weight: 400; font-size: .95rem; }
.form .consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.form .hp { position: absolute; left: -9999px; }
.form .error { color: #b3261e; font-size: .9rem; }
.form-done { display: grid; gap: 12px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); }
@media (min-width: 560px) { .form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }

/* ---------- Kontaktleiste (mobil) ---------- */
.contact-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-bar a { min-height: 48px; }
@media (min-width: 560px) { .contact-bar { display: flex; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 48px 32px; font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 28px; }
.site-footer .footer-title { font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin-bottom: 8px; }
.site-footer ul { display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); padding-top: 20px; border-top: 1px solid var(--line); }
.site-footer .legal button { background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); }
@media (min-width: 860px) { .site-footer .wrap { grid-template-columns: 2fr 1fr 1fr; } .site-footer .legal { grid-column: 1 / -1; } }

/* ---------- Modals (dialog) ---------- */
.modal { border: 0; padding: 0; width: min(100% - 32px, 760px); max-height: min(100% - 32px, 90svh); border-radius: var(--radius-lg); background: var(--bg); color: var(--ink); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(0, 0, 0, .45); }
.modal__head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 1.25rem; padding-top: 0; }
.modal__close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.modal__body { padding: 24px; display: grid; gap: 14px; }
.modal__body h3 { font-size: 1.05rem; margin-top: 8px; }
.legal-text h2 { font-size: 1.25rem; margin-top: 12px; }
.modal__body p { max-width: none; }

/* ---------- Zwei-Klick-Einbettung ---------- */
.embed { position: relative; aspect-ratio: 16 / 9; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; display: grid; place-items: center; text-align: center; padding: 24px; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Bewegung: Hero-Eintritt einmal, Hover-Ebene, sonst Ruhe ---------- */
@keyframes kit-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
[data-enter] > * { animation: kit-enter 620ms var(--ease) both; }
[data-enter] > :nth-child(2) { animation-delay: 80ms; }
[data-enter] > :nth-child(3) { animation-delay: 160ms; }
[data-enter] > :nth-child(4) { animation-delay: 240ms; }
[data-enter] > :nth-child(5) { animation-delay: 320ms; }
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 2px; transition: background-size var(--t) var(--ease); }
.link:hover, .link:focus-visible { background-size: 100% 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-enter] > * { animation: none; opacity: 1; transform: none; }
}

/* ---------- Hilfsklassen ---------- */
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: var(--radius); }
.skip-link:focus { top: 8px; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }

/* ---------- Druck ---------- */
@media print {
  .site-header, .nav-toggle, .skip-link, .btn, .contact-bar { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  main > section { padding-block: 16pt; }
}
