/* Baukasten Studio – Stylesheet für veröffentlichte Kundenseiten */

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

/* Die Seite ist ein Container: dadurch greifen die Umbruchregeln weiter
   unten nach der *Breite der Seite* statt nach der des Browserfensters.
   Nur so zeigt die Handy-Vorschau im Editor — ein 390px schmaler Rahmen in
   einem breiten Fenster — dasselbe wie ein echtes Telefon. */
.bk-body { container-type: inline-size; container-name: seite; }

.bk-body {
  margin: 0;
  background: var(--bk-background);
  color: var(--bk-ink);
  font-family: var(--bk-body-font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

img, video, iframe { max-width: 100%; }

.bk-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--bk-accent); color: var(--bk-accent-contrast);
  padding: 10px 16px; border-radius: 0 0 var(--bk-radius) 0;
}
.bk-skip:focus { left: 0; }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 3px solid var(--bk-accent);
  outline-offset: 2px;
}

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

/* ==========================================================================
   Kopfzeile
   --------------------------------------------------------------------------
   Fünf Anordnungen, drei Handy-Menüs. Die Klassen setzt App\Kopfzeile, die
   jeden Wert vorher gegen ihre eigenen Listen prüft.
   ========================================================================== */

.bk-header { background: var(--bk-surface); z-index: 20; }
.bk-kopf-fest { position: sticky; top: 0; }
.bk-kopf-blank { background: transparent; }

.bk-rand-linie { border-bottom: 1px solid color-mix(in srgb, var(--bk-ink) 10%, transparent); }
.bk-rand-schatten { box-shadow: 0 6px 24px -18px color-mix(in srgb, var(--bk-ink) 90%, transparent); }

.bk-header-inner {
  max-width: var(--bk-max-width); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.bk-brand { text-decoration: none; color: inherit; display: flex; align-items: center; }
.bk-brand-name { font-family: var(--bk-display-font); font-weight: 700; font-size: 1.2rem; }
.bk-logo { max-height: 44px; width: auto; display: block; }

.bk-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.bk-nav-link { color: var(--bk-ink); text-decoration: none; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.bk-nav-link:hover { border-bottom-color: color-mix(in srgb, var(--bk-accent) 50%, transparent); }
.bk-nav-link.is-active { border-bottom-color: var(--bk-accent); }

.bk-kopf-zusatz { display: flex; align-items: center; gap: 14px; }
.bk-kopf-tel { color: var(--bk-ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.bk-kopf-tel:hover { color: var(--bk-accent); }
.bk-kopf-knopf { padding: 9px 18px; font-size: .92em; }

.bk-burger {
  display: none; margin-left: auto; cursor: pointer; padding: 8px;
  background: none; border: 0; border-radius: var(--bk-radius);
}
.bk-burger:focus-visible { outline: 2px solid var(--bk-accent); outline-offset: 2px; }
.bk-burger span {
  display: block; width: 24px; height: 2px; background: var(--bk-ink);
  margin: 5px 0; border-radius: 2px; transition: transform .18s, opacity .18s;
}
/* Aus drei Strichen wird ein Kreuz, sobald das Menü offen ist. */
.bk-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bk-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bk-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.bk-nav-schleier {
  position: fixed; inset: 0; z-index: 18;
  background: color-mix(in srgb, var(--bk-ink) 55%, transparent);
}

/* ---------- Anordnungen ---------- */

.bk-kopf-zentriert .bk-header-inner { flex-direction: column; gap: 12px; }
.bk-kopf-zentriert .bk-nav { margin: 0; justify-content: center; }

.bk-kopf-gestapelt .bk-header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
.bk-kopf-gestapelt .bk-brand-name { font-size: 1.6rem; }
.bk-kopf-gestapelt .bk-nav { margin: 0; width: 100%; }

/* Geteilt: die Marke steht mittig, das Menü läuft links und rechts an ihr
   vorbei. Absolut positioniert statt über order — sonst hängt die Mitte
   davon ab, wie viele Menüpunkte es gerade gibt, und rutscht bei jeder
   neuen Seite. Im Markup steht die Marke weiterhin zuerst; Tastatur und
   Vorleseprogramme folgen dem Dokument, nicht dem Bild. */
.bk-kopf-geteilt .bk-header-inner { position: relative; justify-content: space-between; }
.bk-kopf-geteilt .bk-brand {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  white-space: nowrap;
}
.bk-kopf-geteilt .bk-nav { margin: 0; flex: 1; justify-content: space-between; gap: 30px; }
.bk-kopf-geteilt .bk-nav > .bk-nav-link:first-child { margin-right: auto; }
.bk-kopf-geteilt .bk-kopf-zusatz { margin-left: auto; }

/* Nur Menüknopf: auch am Rechner eingeklappt. */
.bk-js .bk-kopf-minimal .bk-nav { display: none; }
.bk-js .bk-kopf-minimal .bk-nav.is-open { display: flex; }
.bk-kopf-minimal .bk-burger { display: block; }
.bk-kopf-minimal .bk-burger[hidden] { display: none; }
.bk-js .bk-kopf-minimal .bk-nav {
  position: absolute; right: 24px; top: 100%; z-index: 21;
  flex-direction: column; align-items: flex-start; gap: 6px;
  background: var(--bk-surface); padding: 16px 22px; min-width: 220px;
  border-radius: var(--bk-radius);
  box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--bk-ink) 90%, transparent);
}
.bk-kopf-minimal .bk-header-inner { position: relative; }

/* Transparent über dem ersten Abschnitt, fest ab dem ersten Scrollen.
   Die Klasse bk-kopf-gescrollt setzt site.js. */
.bk-kopf-transparent { background: transparent; border-bottom-color: transparent; box-shadow: none; }
.bk-kopf-transparent.bk-kopf-gescrollt { background: var(--bk-surface); }
.bk-kopf-transparent.bk-rand-linie.bk-kopf-gescrollt { border-bottom-color: color-mix(in srgb, var(--bk-ink) 10%, transparent); }
.bk-kopf-transparent.bk-rand-schatten.bk-kopf-gescrollt { box-shadow: 0 6px 24px -18px color-mix(in srgb, var(--bk-ink) 90%, transparent); }

/* ---------- Inhalt ---------- */

.bk-main { min-height: 40vh; }
.bk-section { padding: var(--bk-section-y) 24px; }
.bk-inner { max-width: var(--bk-max-width); margin-left: auto; margin-right: auto; }

/*
 * Elemente, die direkt auf der Seite liegen (nicht in einer Sektion),
 * bekommen dieselbe Inhaltsbreite. Bewusst mit zwei Klassen im Selektor:
 * mit :where() hätten die späteren Element-Regeln die Ränder wieder
 * zurückgesetzt.
 */
.bk-main > .bk-heading, .bk-main > .bk-text, .bk-main > .bk-list,
.bk-main > .bk-quote, .bk-main > .bk-figure, .bk-main > .bk-gallery,
.bk-main > .bk-video, .bk-main > .bk-button-wrap, .bk-main > .bk-button-group,
.bk-main > .bk-columns, .bk-main > .bk-form, .bk-main > .bk-map,
.bk-main > .bk-social, .bk-main > .bk-accordion, .bk-main > .bk-features,
.bk-main > .bk-html, .bk-main > .bk-divider, .bk-main > .bk-placeholder,
.bk-main > .bk-tabs, .bk-main > .bk-hours,
.bk-main > .bk-menu, .bk-main > .bk-countdown, .bk-main > .bk-logos,
.bk-main > .bk-stats, .bk-main > .bk-team {
  max-width: var(--bk-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: content-box;
}
.bk-main > .bk-divider { box-sizing: border-box; }

/* Lange deutsche Woerter ("Weiterbildungsangebot") sprengen bei grossen
   Schriftgraden jede Handybreite. hyphens greift dank lang="de" mit der
   deutschen Trennung; overflow-wrap ist das Sicherheitsnetz, falls ein Wort
   auch dafuer zu lang ist. */
.bk-heading, .bk-text, .bk-quote, .bk-list, .bk-feature, .bk-accordion-item {
  overflow-wrap: break-word;
  hyphens: auto;
}
.bk-heading { font-family: var(--bk-display-font); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1.bk-heading { font-size: clamp(2rem, 5vw, 3rem); }
h2.bk-heading { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3.bk-heading { font-size: 1.3rem; }
h4.bk-heading { font-size: 1.1rem; }
.bk-text { margin: 0 0 1.1em; }
.bk-list { margin: 0 0 1.1em; padding-left: 1.3em; }
.bk-list li { margin-bottom: .4em; }
.bk-quote { margin: 0 0 1.4em; padding: 4px 0 4px 20px; border-left: 3px solid var(--bk-accent); font-size: 1.15em; }
.bk-quote cite { display: block; font-size: .82em; color: var(--bk-muted); font-style: normal; margin-top: .5em; }

.bk-figure { margin: 0 0 1.2em; }
.bk-image { display: block; width: 100%; height: auto; border-radius: var(--bk-radius); }
.bk-figure figcaption { font-size: .85em; color: var(--bk-muted); margin-top: .5em; text-align: center; }

.bk-gallery { display: grid; gap: 12px; margin-bottom: 1.4em; }
.bk-gallery-1 { grid-template-columns: 1fr; }
.bk-gallery-2 { grid-template-columns: repeat(2, 1fr); }
.bk-gallery-3 { grid-template-columns: repeat(3, 1fr); }
.bk-gallery-4 { grid-template-columns: repeat(4, 1fr); }
.bk-gallery-5 { grid-template-columns: repeat(5, 1fr); }
.bk-gallery-6 { grid-template-columns: repeat(6, 1fr); }
.bk-gallery figure { margin: 0; }
.bk-gallery img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--bk-radius); display: block; }
@media (max-width: 720px) { .bk-gallery { grid-template-columns: repeat(2, 1fr) !important; } }

@container seite (max-width: 720px) { .bk-gallery { grid-template-columns: repeat(2, 1fr) !important; } }

.bk-video { margin: 0 0 1.4em; }
.bk-video video, .bk-video iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--bk-radius); display: block; }
.bk-embed-consent {
  aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: color-mix(in srgb, var(--bk-ink) 6%, var(--bk-background));
  border-radius: var(--bk-radius); text-align: center; padding: 16px;
}
.bk-embed-note { font-size: .8em; color: var(--bk-muted); margin: 0; }
.bk-embed-play {
  background: var(--bk-accent); color: var(--bk-accent-contrast); border: 0;
  border-radius: var(--bk-radius); padding: 12px 24px; font: inherit; font-weight: 600; cursor: pointer;
}

.bk-button-wrap { margin: 0 0 1.2em; }
/* Flex-Container richten sich nicht nach text-align. Ohne diese drei Zeilen
   bleibt eine Button-Gruppe linksbuendig, obwohl der Kunde "Mitte" gewaehlt
   hat — die Einstellung sah wirkungslos aus. */
.bk-button-group { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 1.2em; }
.bk-align-center { justify-content: center; }
.bk-align-right { justify-content: flex-end; }
.bk-button-group .bk-button-wrap { margin: 0; }
.bk-button {
  display: inline-block; text-decoration: none; border-radius: var(--bk-radius);
  padding: 12px 26px; font-weight: 600; transition: transform .12s ease, filter .12s ease;
}
.bk-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.bk-button-primary { background: var(--bk-accent); color: var(--bk-accent-contrast); }
.bk-button-secondary { background: color-mix(in srgb, var(--bk-accent) 14%, var(--bk-surface)); color: var(--bk-ink); }
.bk-button-ghost { border: 2px solid var(--bk-accent); color: var(--bk-accent); padding: 10px 24px; }
@media (prefers-reduced-motion: reduce) { .bk-button { transition: none; } .bk-button:hover { transform: none; } }

.bk-columns { display: flex; gap: 28px; margin-bottom: 1.4em; align-items: flex-start; }
.bk-col { flex: 1 1 0; min-width: 0; }
@media (max-width: 720px) { .bk-columns { flex-direction: column; gap: 20px; } }

@container seite (max-width: 720px) { .bk-columns { flex-direction: column; gap: 20px; } }

.bk-divider { border: 0; border-top: 1px solid color-mix(in srgb, var(--bk-ink) 15%, transparent); margin: 24px auto; }
.bk-placeholder {
  background: color-mix(in srgb, var(--bk-accent) 10%, var(--bk-background));
  color: var(--bk-muted); border-radius: var(--bk-radius);
  padding: 44px 16px; text-align: center; margin-bottom: 1.2em; font-size: .9em;
}

.bk-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-bottom: 1.4em; }
.bk-feature { background: var(--bk-surface); border-radius: var(--bk-radius); padding: 22px; }
.bk-feature-icon { font-size: 1.7rem; display: block; margin-bottom: 8px; }
.bk-feature h3 { font-family: var(--bk-display-font); margin: 0 0 .3em; font-size: 1.1rem; }
.bk-feature p { margin: 0; color: var(--bk-muted); font-size: .95em; }

.bk-accordion { margin-bottom: 1.4em; }
.bk-accordion-item { border-bottom: 1px solid color-mix(in srgb, var(--bk-ink) 12%, transparent); }
.bk-accordion-item summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-family: var(--bk-display-font); }
.bk-accordion-body { padding: 0 0 16px; color: var(--bk-muted); }

.bk-social { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 1.2em; }
.bk-social-link {
  color: var(--bk-ink); text-decoration: none; font-weight: 500; font-size: .9em;
  border: 1px solid color-mix(in srgb, var(--bk-ink) 18%, transparent);
  border-radius: 999px; padding: 6px 16px;
}
.bk-social-link:hover { border-color: var(--bk-accent); color: var(--bk-accent); }

.bk-map { margin-bottom: 1.4em; }
.bk-map iframe { width: 100%; height: 320px; border: 0; border-radius: var(--bk-radius); }
.bk-map-address { color: var(--bk-muted); margin: .8em 0 .2em; }
.bk-map-link { color: var(--bk-accent); }

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

.bk-form { display: grid; gap: 16px; margin-bottom: 1.6em; max-width: 620px; }
.bk-field { display: grid; gap: 6px; font-size: .92em; font-weight: 500; }
.bk-field input, .bk-field textarea {
  font: inherit; padding: 11px 14px; border-radius: var(--bk-radius);
  border: 1px solid color-mix(in srgb, var(--bk-ink) 22%, transparent);
  background: var(--bk-surface); color: var(--bk-ink); width: 100%;
}
.bk-field-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.bk-field-check input { width: auto; margin-top: 4px; }
.bk-field-check span { font-size: .9em; color: var(--bk-muted); }
.bk-form button { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-form-note { border-radius: var(--bk-radius); padding: 14px 18px; margin-bottom: 1.2em; }
.bk-form-ok { background: #E1F2E8; color: #1F7A4D; }
.bk-form-error { background: #FBE9E7; color: #B3382E; }

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

.bk-footer {
  margin-top: 48px; padding: 28px 24px;
  border-top: 1px solid color-mix(in srgb, var(--bk-ink) 10%, transparent);
  background: var(--bk-surface);
}
.bk-footer-inner {
  max-width: var(--bk-max-width); margin: 0 auto;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: .88em; color: var(--bk-muted);
}
.bk-footer-text { margin: 0; }
.bk-footer-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.bk-footer-nav a { color: var(--bk-muted); text-decoration: none; }
.bk-footer-nav a:hover { color: var(--bk-accent); text-decoration: underline; }
.bk-footer-badge { margin: 0 0 0 auto; opacity: .75; }

/* ---------- Rechtstexte ---------- */

.bk-legal { max-width: 760px; }
.bk-legal h2 { margin-top: 1.6em; }

.bk-html { margin-bottom: 1.4em; }
.bk-html-frame { width: 100%; border: 0; border-radius: var(--bk-radius); display: block; }
.bk-form-privacy { font-size: .82em; color: var(--bk-muted); margin: 0; }
.bk-form-privacy a { color: var(--bk-accent); }

/* ==========================================================================
   Zusatzbausteine
   ========================================================================== */

/* ---------- Bilderfolge ---------- */

/* Bilderfolge und Vergleich bekommen ihren Rand ueber die Breite, nicht
   ueber padding: ihre Kinder liegen mit inset:0 im Element, ein
   Innenabstand wuerde sie gegen das Bild verschieben. */
.bk-main > .bk-slider, .bk-main > .bk-compare {
  max-width: var(--bk-max-width); width: calc(100% - 48px);
  margin-left: auto; margin-right: auto;
}

.bk-slider { position: relative; margin-bottom: 1.4em; }
.bk-slides {
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  padding-bottom: 6px; margin: 0;
}
.bk-slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; }
.bk-slide img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--bk-radius); display: block; }
.bk-slider-s .bk-slide img { height: 280px; }
.bk-slider-l .bk-slide img { height: 560px; }
.bk-slide figcaption { font-size: .85em; color: var(--bk-muted); margin-top: .5em; text-align: center; }

/* Die Pfeile blendet site.js ein. Ohne Skript bleibt die Spur wischbar —
   ein Pfeil, der nichts tut, wäre schlimmer als keiner. */
.bk-slider-pfeil {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--bk-background) 88%, transparent);
  color: var(--bk-ink); font-size: 26px; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.bk-slider-zurueck { left: 10px; }
.bk-slider-vor { right: 10px; }
.bk-slider-pfeil[disabled] { opacity: .35; cursor: default; }

@media (prefers-reduced-motion: no-preference) {
  .bk-slides { scroll-behavior: smooth; }
}

/* ---------- Reiter ----------
   Bewusst ohne JavaScript: verborgene Optionsfelder und :checked schalten
   um. Deshalb sind die Felder nicht display:none — sonst wären sie nicht
   mehr mit der Tastatur erreichbar. */

.bk-tabs { position: relative; margin-bottom: 1.4em; }
.bk-tab-radio {
  position: absolute; top: 0; left: 0;
  width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none;
}
.bk-tab-labels {
  display: flex; flex-wrap: wrap; gap: 4px;
  border-bottom: 2px solid color-mix(in srgb, var(--bk-ink) 10%, transparent);
}
.bk-tab-label {
  padding: 10px 16px; cursor: pointer; font-weight: 600; color: var(--bk-muted);
  border-radius: var(--bk-radius) var(--bk-radius) 0 0;
}
.bk-tab-label:hover { color: var(--bk-ink); }
.bk-tab-panel { display: none; padding: 18px 2px 2px; }

.bk-tabs .bk-tab-radio.t1:checked ~ .bk-tab-panels > .bk-tab-panel:nth-child(1) { display: block; }
.bk-tabs .bk-tab-radio.t2:checked ~ .bk-tab-panels > .bk-tab-panel:nth-child(2) { display: block; }
.bk-tabs .bk-tab-radio.t3:checked ~ .bk-tab-panels > .bk-tab-panel:nth-child(3) { display: block; }
.bk-tabs .bk-tab-radio.t4:checked ~ .bk-tab-panels > .bk-tab-panel:nth-child(4) { display: block; }
.bk-tabs .bk-tab-radio.t5:checked ~ .bk-tab-panels > .bk-tab-panel:nth-child(5) { display: block; }
.bk-tabs .bk-tab-radio.t6:checked ~ .bk-tab-panels > .bk-tab-panel:nth-child(6) { display: block; }
.bk-tabs .bk-tab-radio.t7:checked ~ .bk-tab-panels > .bk-tab-panel:nth-child(7) { display: block; }
.bk-tabs .bk-tab-radio.t8:checked ~ .bk-tab-panels > .bk-tab-panel:nth-child(8) { display: block; }
.bk-tabs .bk-tab-radio.t9:checked ~ .bk-tab-panels > .bk-tab-panel:nth-child(9) { display: block; }
.bk-tabs .bk-tab-radio.t10:checked ~ .bk-tab-panels > .bk-tab-panel:nth-child(10) { display: block; }

.bk-tabs .bk-tab-radio.t1:checked ~ .bk-tab-labels > .bk-tab-label:nth-child(1) { color: var(--bk-ink); background: var(--bk-surface); box-shadow: inset 0 -2px 0 var(--bk-accent); }
.bk-tabs .bk-tab-radio.t2:checked ~ .bk-tab-labels > .bk-tab-label:nth-child(2) { color: var(--bk-ink); background: var(--bk-surface); box-shadow: inset 0 -2px 0 var(--bk-accent); }
.bk-tabs .bk-tab-radio.t3:checked ~ .bk-tab-labels > .bk-tab-label:nth-child(3) { color: var(--bk-ink); background: var(--bk-surface); box-shadow: inset 0 -2px 0 var(--bk-accent); }
.bk-tabs .bk-tab-radio.t4:checked ~ .bk-tab-labels > .bk-tab-label:nth-child(4) { color: var(--bk-ink); background: var(--bk-surface); box-shadow: inset 0 -2px 0 var(--bk-accent); }
.bk-tabs .bk-tab-radio.t5:checked ~ .bk-tab-labels > .bk-tab-label:nth-child(5) { color: var(--bk-ink); background: var(--bk-surface); box-shadow: inset 0 -2px 0 var(--bk-accent); }
.bk-tabs .bk-tab-radio.t6:checked ~ .bk-tab-labels > .bk-tab-label:nth-child(6) { color: var(--bk-ink); background: var(--bk-surface); box-shadow: inset 0 -2px 0 var(--bk-accent); }
.bk-tabs .bk-tab-radio.t7:checked ~ .bk-tab-labels > .bk-tab-label:nth-child(7) { color: var(--bk-ink); background: var(--bk-surface); box-shadow: inset 0 -2px 0 var(--bk-accent); }
.bk-tabs .bk-tab-radio.t8:checked ~ .bk-tab-labels > .bk-tab-label:nth-child(8) { color: var(--bk-ink); background: var(--bk-surface); box-shadow: inset 0 -2px 0 var(--bk-accent); }
.bk-tabs .bk-tab-radio.t9:checked ~ .bk-tab-labels > .bk-tab-label:nth-child(9) { color: var(--bk-ink); background: var(--bk-surface); box-shadow: inset 0 -2px 0 var(--bk-accent); }
.bk-tabs .bk-tab-radio.t10:checked ~ .bk-tab-labels > .bk-tab-label:nth-child(10) { color: var(--bk-ink); background: var(--bk-surface); box-shadow: inset 0 -2px 0 var(--bk-accent); }

/* Das Optionsfeld selbst ist unsichtbar — der Fokusrahmen muss deshalb
   auf der Beschriftung erscheinen, sonst tastet man sich blind durch. */
.bk-tabs:has(.bk-tab-radio.t1:focus-visible) .bk-tab-labels > .bk-tab-label:nth-child(1) { outline: 3px solid var(--bk-accent); outline-offset: 2px; }
.bk-tabs:has(.bk-tab-radio.t2:focus-visible) .bk-tab-labels > .bk-tab-label:nth-child(2) { outline: 3px solid var(--bk-accent); outline-offset: 2px; }
.bk-tabs:has(.bk-tab-radio.t3:focus-visible) .bk-tab-labels > .bk-tab-label:nth-child(3) { outline: 3px solid var(--bk-accent); outline-offset: 2px; }
.bk-tabs:has(.bk-tab-radio.t4:focus-visible) .bk-tab-labels > .bk-tab-label:nth-child(4) { outline: 3px solid var(--bk-accent); outline-offset: 2px; }
.bk-tabs:has(.bk-tab-radio.t5:focus-visible) .bk-tab-labels > .bk-tab-label:nth-child(5) { outline: 3px solid var(--bk-accent); outline-offset: 2px; }
.bk-tabs:has(.bk-tab-radio.t6:focus-visible) .bk-tab-labels > .bk-tab-label:nth-child(6) { outline: 3px solid var(--bk-accent); outline-offset: 2px; }
.bk-tabs:has(.bk-tab-radio.t7:focus-visible) .bk-tab-labels > .bk-tab-label:nth-child(7) { outline: 3px solid var(--bk-accent); outline-offset: 2px; }
.bk-tabs:has(.bk-tab-radio.t8:focus-visible) .bk-tab-labels > .bk-tab-label:nth-child(8) { outline: 3px solid var(--bk-accent); outline-offset: 2px; }
.bk-tabs:has(.bk-tab-radio.t9:focus-visible) .bk-tab-labels > .bk-tab-label:nth-child(9) { outline: 3px solid var(--bk-accent); outline-offset: 2px; }
.bk-tabs:has(.bk-tab-radio.t10:focus-visible) .bk-tab-labels > .bk-tab-label:nth-child(10) { outline: 3px solid var(--bk-accent); outline-offset: 2px; }

/* ---------- Öffnungszeiten ---------- */

.bk-hours { margin-bottom: 1.4em; }
.bk-hours-titel { font-family: var(--bk-display-font); margin: 0 0 .6em; font-size: 1.15rem; }
.bk-hours-list { margin: 0; }
.bk-hours-row {
  display: flex; gap: 12px; align-items: baseline; padding: 7px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--bk-ink) 8%, transparent);
}
.bk-hours-row dt { font-weight: 600; }
.bk-hours-row dd { margin: 0 0 0 auto; font-variant-numeric: tabular-nums; }
.bk-hours-zu { color: var(--bk-muted); }
.bk-hours-hinweis { margin: .8em 0 0; color: var(--bk-muted); font-size: .9em; }

/* ---------- Speisekarte ----------
   Die Punktreihe zwischen Gericht und Preis ist eine Linie, kein Text:
   Vorleseprogramme sollen nicht dutzende Punkte vorlesen. */

.bk-menu { margin-bottom: 1.4em; }
.bk-menu-titel { font-family: var(--bk-display-font); margin: 0 0 .6em; font-size: 1.25rem; }
.bk-menu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bk-menu-zeile { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.bk-menu-name { font-weight: 600; }
.bk-menu-punkte {
  flex: 1 1 auto; align-self: center; height: 0;
  border-bottom: 1px dotted color-mix(in srgb, var(--bk-ink) 35%, transparent);
}
.bk-menu-preis { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-menu-text { margin: .2em 0 0; color: var(--bk-muted); font-size: .92em; }

/* ---------- Countdown ---------- */

.bk-countdown { margin-bottom: 1.4em; text-align: center; }
.bk-countdown-titel { margin: 0 0 .6em; font-family: var(--bk-display-font); font-size: 1.15rem; }
.bk-countdown-wert {
  margin: 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}
.bk-countdown-feld { background: var(--bk-surface); border-radius: var(--bk-radius); padding: 10px 14px; min-width: 78px; }
.bk-countdown-zahl { display: block; font-family: var(--bk-display-font); font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.bk-countdown-name { display: block; font-size: .76em; color: var(--bk-muted); text-transform: uppercase; letter-spacing: .06em; }
.bk-countdown-vorbei { margin: 0; font-weight: 600; }

/* ---------- Logo-Leiste ---------- */

.bk-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 40px; margin-bottom: 1.4em; }
.bk-logo { display: inline-flex; }
.bk-logo img { height: 48px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.bk-logos-s .bk-logo img { height: 32px; }
.bk-logos-l .bk-logo img { height: 72px; }
.bk-logos-grau .bk-logo img { filter: grayscale(1); opacity: .68; transition: filter .2s, opacity .2s; }
.bk-logos-grau .bk-logo:hover img { filter: none; opacity: 1; }

/* ---------- Vorher/Nachher ----------
   Der Ausschnitt läuft über clip-path statt über die Breite: sonst würde
   das obere Bild gestaucht statt beschnitten. */

.bk-compare {
  position: relative; margin-bottom: 1.4em;
  border-radius: var(--bk-radius); overflow: hidden;
  --bk-compare: 50%;
}
.bk-compare img { display: block; width: 100%; height: auto; }
/* Ohne Deckel wird aus einem hochformatigen Bild eine bildschirmhohe
   Wand, durch die man erst hindurchscrollen muss. */
.bk-compare-a { max-height: 620px; object-fit: cover; }
.bk-compare-b { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--bk-compare)) 0 0); }
.bk-compare-b img { width: 100%; height: 100%; object-fit: cover; }
.bk-compare::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: var(--bk-compare);
  width: 2px; background: rgba(255, 255, 255, .85); pointer-events: none;
}
.bk-compare-tag {
  position: absolute; bottom: 12px; padding: 4px 10px; border-radius: 999px; font-size: .8em;
  background: color-mix(in srgb, var(--bk-ink) 78%, transparent); color: var(--bk-background);
}
.bk-compare-tag-a { left: 12px; }
.bk-compare-tag-b { right: 12px; }
.bk-compare-schieber {
  position: absolute; left: 0; right: 0; top: calc(50% - 16px);
  width: 100%; height: 32px; margin: 0; background: transparent;
  -webkit-appearance: none; appearance: none;
}
.bk-compare-schieber::-webkit-slider-runnable-track { height: 32px; background: transparent; }
.bk-compare-schieber::-moz-range-track { height: 32px; background: transparent; }
.bk-compare-schieber::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 2px solid var(--bk-accent); cursor: ew-resize;
}
.bk-compare-schieber::-moz-range-thumb {
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 2px solid var(--bk-accent); cursor: ew-resize;
}

/* ---------- Zahlen ---------- */

.bk-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px; margin-bottom: 1.4em; text-align: center;
}
.bk-stat-zahl { margin: 0; font-family: var(--bk-display-font); font-size: 2.6rem; font-weight: 700; line-height: 1.1; color: var(--bk-accent); }
.bk-stat-suffix { font-size: .6em; }
.bk-stat-label { margin: .25em 0 0; color: var(--bk-muted); }

/* ---------- Team ---------- */

.bk-team { display: grid; gap: 22px; margin-bottom: 1.4em; }
.bk-team-1 { grid-template-columns: 1fr; }
.bk-team-2 { grid-template-columns: repeat(2, 1fr); }
.bk-team-3 { grid-template-columns: repeat(3, 1fr); }
.bk-team-4 { grid-template-columns: repeat(4, 1fr); }
.bk-team-karte { text-align: center; }
.bk-team-bild { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--bk-radius); display: block; }
.bk-team-ohne {
  display: flex; align-items: center; justify-content: center;
  background: var(--bk-surface); color: var(--bk-muted);
  font-family: var(--bk-display-font); font-size: 3rem;
}
.bk-team-name { margin: .7em 0 0; font-size: 1.05rem; font-family: var(--bk-display-font); }
.bk-team-rolle { margin: .15em 0 0; color: var(--bk-muted); font-size: .9em; }
.bk-team-text { margin: .6em 0 0; font-size: .92em; }
.bk-team-kontakte { margin: .5em 0 0; display: flex; flex-direction: column; gap: 2px; font-size: .88em; }
.bk-team-kontakt { position: relative; color: var(--bk-accent); text-decoration: none; }
.bk-team-kontakt:hover { text-decoration: underline; }

/* Nur für Vorleseprogramme. Innerhalb eines position:relative-Elements,
   damit der Kasten nicht aus der Seite herausragt und sie breit macht. */
.bk-nur-vorlesen {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ==========================================================================
   Stilrichtungen
   --------------------------------------------------------------------------
   Farbe und Schrift allein machen noch keinen eigenen Auftritt. Die
   Stilrichtung hängt als Klasse an der Seite und ändert Rahmen, Schatten,
   Linien und Grossschreibung — immer mit den Farben des gewählten Schemas.
   Keine dieser Regeln schreibt eine feste Farbe fest; sonst sähe sie in
   einem dunklen Schema falsch aus.
   ========================================================================== */

/* ---------- Kante: harte Rahmen, versetzte Schatten ---------- */

.bk-stil-kante {
  --bk-kante: 2px solid var(--bk-ink);
}
.bk-stil-kante .bk-header { border-bottom: var(--bk-kante); }
.bk-stil-kante .bk-nav-link {
  text-transform: uppercase; letter-spacing: .08em; font-size: .8em; font-weight: 700;
}
.bk-stil-kante .bk-footer { border-top: var(--bk-kante); }

/* Der Schatten liegt hart daneben statt weich darunter — und der Knopf
   fährt beim Drücken hinein. Das ist die ganze Idee dieses Stils. */
.bk-stil-kante .bk-button {
  border: var(--bk-kante);
  box-shadow: 5px 5px 0 var(--bk-ink);
  font-weight: 700; letter-spacing: .02em;
  transition: transform .08s, box-shadow .08s;
}
.bk-stil-kante .bk-button:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--bk-ink); filter: none; }
.bk-stil-kante .bk-button:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--bk-ink); }

.bk-stil-kante .bk-box,
.bk-stil-kante .bk-feature,
.bk-stil-kante .bk-team-karte,
.bk-stil-kante .bk-countdown-feld,
.bk-stil-kante .bk-accordion-item { border: var(--bk-kante); }
.bk-stil-kante .bk-feature { box-shadow: 5px 5px 0 var(--bk-ink); }
.bk-stil-kante .bk-team-karte { padding: 14px; }

.bk-stil-kante .bk-image,
.bk-stil-kante .bk-slide img,
.bk-stil-kante .bk-gallery img,
.bk-stil-kante .bk-compare,
.bk-stil-kante .bk-team-bild { border: var(--bk-kante); }

.bk-stil-kante .bk-divider { border-top: var(--bk-kante); }
.bk-stil-kante .bk-tab-labels { border-bottom: var(--bk-kante); }
.bk-stil-kante .bk-tab-label { text-transform: uppercase; letter-spacing: .06em; font-size: .8em; }
.bk-stil-kante .bk-field input,
.bk-stil-kante .bk-field textarea { border: var(--bk-kante); }
.bk-stil-kante .bk-heading { letter-spacing: -.015em; }

/* ---------- Edel: haarfeine Linien, weite Sperrung ---------- */

.bk-stil-edel .bk-heading { font-weight: 400; letter-spacing: .005em; }
.bk-stil-edel .bk-nav-link {
  text-transform: uppercase; letter-spacing: .18em; font-size: .72em; font-weight: 500;
}
.bk-stil-edel .bk-header {
  border-bottom-color: color-mix(in srgb, var(--bk-ink) 14%, transparent);
  background: var(--bk-background);
}
.bk-stil-edel .bk-button {
  border-radius: 0; text-transform: uppercase; letter-spacing: .16em;
  font-size: .74em; font-weight: 500; padding: 15px 34px;
}
.bk-stil-edel .bk-button-ghost { border-width: 1px; padding: 14px 33px; }
.bk-stil-edel .bk-button:hover { filter: none; transform: none; opacity: .82; }

/* Flächen werden zu Linien: das ist der ganze Unterschied zwischen
   „solide" und „teuer". */
.bk-stil-edel .bk-feature,
.bk-stil-edel .bk-team-karte,
.bk-stil-edel .bk-countdown-feld {
  background: none; border: 1px solid color-mix(in srgb, var(--bk-ink) 12%, transparent);
  border-radius: 0;
}
.bk-stil-edel .bk-feature { padding: 30px 26px; }
.bk-stil-edel .bk-quote {
  border-left: 0; padding: 0; text-align: center;
  font-family: var(--bk-display-font); font-size: 1.4em; line-height: 1.35;
}
.bk-stil-edel .bk-hours-row,
.bk-stil-edel .bk-menu-punkte { border-color: color-mix(in srgb, var(--bk-ink) 12%, transparent); }
.bk-stil-edel .bk-divider { border-top-color: color-mix(in srgb, var(--bk-ink) 12%, transparent); }
.bk-stil-edel .bk-stat-zahl { font-weight: 400; }
.bk-stil-edel .bk-stat-label { text-transform: uppercase; letter-spacing: .14em; font-size: .74em; }

/* ---------- Weich: runde Formen, sanfte Schatten ---------- */

.bk-stil-weich .bk-button { border-radius: 999px; padding: 14px 30px; }
.bk-stil-weich .bk-button-ghost { padding: 12px 28px; }
.bk-stil-weich .bk-box,
.bk-stil-weich .bk-feature,
.bk-stil-weich .bk-team-karte,
.bk-stil-weich .bk-countdown-feld,
.bk-stil-weich .bk-accordion-item {
  border-radius: calc(var(--bk-radius) + 10px);
  box-shadow: 0 14px 34px -18px color-mix(in srgb, var(--bk-ink) 55%, transparent);
}
.bk-stil-weich .bk-image,
.bk-stil-weich .bk-figure img,
.bk-stil-weich .bk-slide img,
.bk-stil-weich .bk-gallery img,
.bk-stil-weich .bk-compare,
.bk-stil-weich .bk-team-bild { border-radius: calc(var(--bk-radius) + 10px); }
.bk-stil-weich .bk-field input,
.bk-stil-weich .bk-field textarea { border-radius: calc(var(--bk-radius) + 6px); }
.bk-stil-weich .bk-header { border-bottom: 0; box-shadow: 0 6px 20px -18px color-mix(in srgb, var(--bk-ink) 70%, transparent); }
.bk-stil-weich .bk-tab-label { border-radius: 999px; }
.bk-stil-weich .bk-tab-labels { border-bottom: 0; gap: 8px; }

/* ---------- Magazin: grosse Titel, Linien über den Abschnitten ---------- */

.bk-stil-magazin .bk-heading { line-height: 1.06; letter-spacing: -.02em; }

/* Ein kurzer Strich über der Abschnittsüberschrift — das Zeichen, an dem
   man eine gesetzte Seite von einer getippten unterscheidet. */
/* :where() zählt nicht zur Spezifität — dadurch gewinnen die beiden Regeln
   darunter, die den Strich der Ausrichtung folgen lassen. */
.bk-stil-magazin :where(.bk-inner, .bk-main) > .bk-heading:first-child::before {
  content: ''; display: block; width: 56px; margin: 0 0 20px;
  border-top: 3px solid var(--bk-accent);
}
/* Der Strich gehört zur Überschrift — steht die mittig, steht er auch mittig.
   Ein Blockelement folgt text-align nicht von allein, und geerbte Ausrichtung
   sieht CSS gar nicht: deshalb tragen auch Sektion und Box die Klasse. */
.bk-stil-magazin .bk-heading.bk-align-center::before,
.bk-stil-magazin .bk-align-center .bk-heading::before { margin-inline: auto; }
.bk-stil-magazin .bk-heading.bk-align-right::before,
.bk-stil-magazin .bk-align-right .bk-heading::before { margin-inline: auto 0; }
.bk-stil-magazin .bk-heading + .bk-text { font-size: 1.16em; color: var(--bk-ink); }
.bk-stil-magazin .bk-section + .bk-section {
  border-top: 1px solid color-mix(in srgb, var(--bk-ink) 10%, transparent);
}
.bk-stil-magazin .bk-quote {
  border-left: 0; padding: 26px 0; text-align: center;
  font-family: var(--bk-display-font); font-size: 1.5em; line-height: 1.3;
  border-top: 1px solid color-mix(in srgb, var(--bk-ink) 16%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--bk-ink) 16%, transparent);
}
.bk-stil-magazin .bk-nav-link { font-weight: 600; }
.bk-stil-magazin .bk-feature { background: none; border-top: 2px solid var(--bk-ink); border-radius: 0; padding: 18px 0 0; }
.bk-stil-magazin .bk-figure figcaption { text-align: left; border-left: 2px solid var(--bk-accent); padding-left: 10px; }

@media (max-width: 720px) {
  .bk-slide img { height: 260px; }
  .bk-slider-s .bk-slide img { height: 200px; }
  .bk-slider-l .bk-slide img { height: 340px; }
  .bk-tab-labels { flex-wrap: nowrap; overflow-x: auto; }
  .bk-tab-label { padding: 10px 12px; white-space: nowrap; }
  .bk-team-2, .bk-team-3, .bk-team-4 { grid-template-columns: repeat(2, 1fr); }
  .bk-stats { grid-template-columns: repeat(2, 1fr); }
  .bk-stat-zahl { font-size: 2rem; }
  /* Vier Felder muessen in eine Reihe passen — auch bei einer fuenfstelligen
     Zahl. Deshalb teilen sie sich die Breite, statt eine Mindestbreite zu
     fordern und umzubrechen. */
  .bk-countdown-wert { gap: 8px; }
  .bk-countdown-feld { flex: 1 1 0; min-width: 0; padding: 8px 4px; }
  .bk-countdown-zahl { font-size: 1.35rem; }
  .bk-countdown-name { font-size: .68em; letter-spacing: .02em; }
  .bk-logos { gap: 18px 26px; }
  .bk-logo img { height: 36px; }
  .bk-logos-l .bk-logo img { height: 48px; }
}

@container seite (max-width: 720px) {
  .bk-slide img { height: 260px; }
  .bk-slider-s .bk-slide img { height: 200px; }
  .bk-slider-l .bk-slide img { height: 340px; }
  .bk-tab-labels { flex-wrap: nowrap; overflow-x: auto; }
  .bk-tab-label { padding: 10px 12px; white-space: nowrap; }
  .bk-team-2, .bk-team-3, .bk-team-4 { grid-template-columns: repeat(2, 1fr); }
  .bk-stats { grid-template-columns: repeat(2, 1fr); }
  .bk-stat-zahl { font-size: 2rem; }
  /* Vier Felder muessen in eine Reihe passen — auch bei einer fuenfstelligen
     Zahl. Deshalb teilen sie sich die Breite, statt eine Mindestbreite zu
     fordern und umzubrechen. */
  .bk-countdown-wert { gap: 8px; }
  .bk-countdown-feld { flex: 1 1 0; min-width: 0; padding: 8px 4px; }
  .bk-countdown-zahl { font-size: 1.35rem; }
  .bk-countdown-name { font-size: .68em; letter-spacing: .02em; }
  .bk-logos { gap: 18px 26px; }
  .bk-logo img { height: 36px; }
  .bk-logos-l .bk-logo img { height: 48px; }
}

/* ==========================================================================
   Abschnitts-Formen
   --------------------------------------------------------------------------
   Der Grund, warum zwei Baukasten-Websites gleich aussehen, ist selten die
   Farbe — es ist die Form. Hier bekommt ein Abschnitt eine: geteilt mit
   Bild, randlos, versetzt, als überlappende Karte. Dazu dezente Formen im
   Hintergrund und ein Abschluss nach unten.
   ========================================================================== */

.bk-section { position: relative; }

/* ---------- Anordnungen ---------- */

.bk-abschnitt-schmal > .bk-inner { max-width: 46em; }

.bk-abschnitt-randlos { padding-left: 0; padding-right: 0; }
.bk-abschnitt-randlos > .bk-inner { max-width: none; padding: 0; }

/* Bild links/rechts: das Bild läuft bis zum Fensterrand, der Text bleibt in
   der Inhaltsbreite. Zwei Spalten über Grid, damit beide gleich hoch sind. */
.bk-abschnitt-bild-links,
.bk-abschnitt-bild-rechts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  align-items: center; padding-left: 0; padding-right: 0;
}
.bk-abschnitt-bild-links > .bk-inner,
.bk-abschnitt-bild-rechts > .bk-inner {
  max-width: calc(var(--bk-max-width) / 2); margin: 0; padding: 40px 44px;
}
.bk-abschnitt-bild-links > .bk-inner { margin-right: auto; }
.bk-abschnitt-bild-rechts > .bk-inner { margin-left: auto; }
/* order statt Umsortieren im Markup: Vorleseprogramme und die Tastatur
   folgen dem Dokument, nicht dem Bild. */
.bk-abschnitt-bild-rechts > .bk-abschnitt-bild { order: 2; }
.bk-abschnitt-bild {
  align-self: stretch; min-height: 340px; position: relative; overflow: hidden;
}
.bk-abschnitt-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-abschnitt-bild .bk-placeholder { height: 100%; display: grid; place-items: center; margin: 0; }

/* Karte: der Inhalt ragt in den Abschnitt darüber hinein. */
.bk-abschnitt-karte { padding-top: 0; }
.bk-abschnitt-karte > .bk-inner {
  background: var(--bk-background); border-radius: calc(var(--bk-radius) + 8px);
  padding: clamp(28px, 5vw, 56px);
  margin-top: -80px; position: relative; z-index: 2;
  box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--bk-ink) 90%, transparent);
}

/* Versetzt: zwei Spalten, die zweite tiefer — das bricht die Rasterlinie,
   an der man einen Baukasten sonst sofort erkennt. */
.bk-abschnitt-versetzt > .bk-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px 44px; align-items: start;
}
.bk-abschnitt-versetzt > .bk-inner > *:nth-child(even) { margin-top: 64px; }

/* ---------- Hintergründe ----------
   Alles aus den Farben des Schemas. Eine feste Farbe sähe in einem dunklen
   Schema falsch aus. */

.bk-deko-kreise, .bk-deko-raster, .bk-deko-punkte, .bk-deko-verlauf, .bk-deko-strahlen { overflow: hidden; }
.bk-deko-kreise > .bk-inner, .bk-deko-raster > .bk-inner,
.bk-deko-punkte > .bk-inner, .bk-deko-verlauf > .bk-inner,
.bk-deko-strahlen > .bk-inner { position: relative; z-index: 1; }

.bk-deko-kreise::before {
  content: ''; position: absolute; inset: auto -8% -30% auto;
  width: min(60vw, 620px); aspect-ratio: 1; border-radius: 50%;
  background: color-mix(in srgb, var(--bk-accent) 12%, transparent);
}
.bk-deko-kreise::after {
  content: ''; position: absolute; inset: -22% auto auto -10%;
  width: min(38vw, 380px); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--bk-accent) 22%, transparent);
}

.bk-deko-raster::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--bk-ink) 7%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--bk-ink) 7%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}

.bk-deko-punkte::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--bk-ink) 16%, transparent) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

.bk-deko-verlauf {
  background-image: linear-gradient(160deg,
    color-mix(in srgb, var(--bk-accent) 14%, transparent),
    transparent 55%);
}

.bk-deko-strahlen::before {
  content: ''; position: absolute; inset: -40% -10% auto; height: 140%;
  pointer-events: none;
  background: conic-gradient(from 210deg at 50% 0%,
    transparent 0deg,
    color-mix(in srgb, var(--bk-accent) 12%, transparent) 24deg,
    transparent 48deg,
    color-mix(in srgb, var(--bk-accent) 10%, transparent) 72deg,
    transparent 96deg);
}

/* ---------- Abschluss nach unten ----------
   Das SVG nimmt die Farbe des folgenden Abschnitts an. Über currentColor,
   damit eine Regel für alle Fälle reicht. */

.bk-trenner { padding-bottom: calc(var(--bk-section-y) + 40px); }
.bk-trenner-form {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: clamp(40px, 6vw, 90px); display: block;
  color: var(--bk-background); z-index: 2;
}
.bk-trenner-form path { fill: currentColor; }

/* ==========================================================================
   Bewegung und Tiefe
   --------------------------------------------------------------------------
   Grundsatz: Bewegung ist eine Zugabe, nie Voraussetzung. Die Startwerte
   (unsichtbar, verschoben) hängen alle an `.bk-bewegt` — diese Klasse setzt
   site.js erst, wenn JavaScript läuft UND der Besucher Bewegungen nicht
   abgeschaltet hat. Ohne beides steht jeder Text sofort da; ein Absatz, den
   man erst freiscrollen muss, wäre für Suchmaschinen und Vorleseprogramme
   schlicht nicht vorhanden.
   ========================================================================== */

.bk-bewegt .bk-auf > .bk-inner,
.bk-bewegt .bk-auf > .bk-abschnitt-bild {
  opacity: 0;
  transition: opacity .55s ease-out, transform .55s ease-out;
}
.bk-bewegt .bk-auf-aufsteigen > .bk-inner,
.bk-bewegt .bk-auf-aufsteigen > .bk-abschnitt-bild { transform: translateY(26px); }
.bk-bewegt .bk-auf-nacheinander > .bk-inner { opacity: 1; }

.bk-bewegt .bk-auf.ist-sichtbar > .bk-inner,
.bk-bewegt .bk-auf.ist-sichtbar > .bk-abschnitt-bild {
  opacity: 1; transform: none;
}

/* Nacheinander: die Kinder erscheinen versetzt. Über nth-child statt über
   eine Zahl aus JavaScript — dann braucht das Skript nichts zu rechnen. */
.bk-bewegt .bk-auf-nacheinander > .bk-inner > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}
.bk-bewegt .bk-auf-nacheinander.ist-sichtbar > .bk-inner > * { opacity: 1; transform: none; }
.bk-bewegt .bk-auf-nacheinander.ist-sichtbar > .bk-inner > *:nth-child(1) { transition-delay: 0ms; }
.bk-bewegt .bk-auf-nacheinander.ist-sichtbar > .bk-inner > *:nth-child(2) { transition-delay: 90ms; }
.bk-bewegt .bk-auf-nacheinander.ist-sichtbar > .bk-inner > *:nth-child(3) { transition-delay: 180ms; }
.bk-bewegt .bk-auf-nacheinander.ist-sichtbar > .bk-inner > *:nth-child(4) { transition-delay: 270ms; }
.bk-bewegt .bk-auf-nacheinander.ist-sichtbar > .bk-inner > *:nth-child(5) { transition-delay: 360ms; }
.bk-bewegt .bk-auf-nacheinander.ist-sichtbar > .bk-inner > *:nth-child(6) { transition-delay: 450ms; }
.bk-bewegt .bk-auf-nacheinander.ist-sichtbar > .bk-inner > *:nth-child(n+7) { transition-delay: 520ms; }

/* Parallaxe: das Bild eines geteilten Abschnitts läuft langsamer mit.
   Nur über eine Variable, die site.js setzt — so bleibt das Bild ohne
   Skript einfach stehen. */
.bk-bewegt .bk-parallax > .bk-abschnitt-bild img {
  transform: translateY(var(--bk-parallax, 0px)) scale(1.08);
  will-change: transform;
}

/* ---------- Bildformen ---------- */

.bk-bildform-rund { border-radius: 32px; overflow: hidden; }
.bk-bildform-rund img { border-radius: 32px; }
.bk-bildform-kreis { border-radius: 50%; overflow: hidden; aspect-ratio: 1; }
.bk-bildform-kreis img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.bk-bildform-bogen { border-radius: 220px 220px var(--bk-radius) var(--bk-radius); overflow: hidden; }
.bk-bildform-bogen img { border-radius: 220px 220px var(--bk-radius) var(--bk-radius); }
/* Eine organische Form, die nicht wie ein Rechteck aussieht — vier
   unterschiedliche Radien je Ecke. */
.bk-bildform-tropfen { border-radius: 42% 58% 39% 61% / 47% 42% 58% 53%; overflow: hidden; }
.bk-bildform-tropfen img { border-radius: 42% 58% 39% 61% / 47% 42% 58% 53%; }

/* ---------- Karten reagieren auf den Zeiger ---------- */

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .bk-feature, .bk-team-karte, .bk-logo img {
    transition: transform .22s ease-out, box-shadow .22s ease-out;
  }
  .bk-feature:hover, .bk-team-karte:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px -28px color-mix(in srgb, var(--bk-ink) 80%, transparent);
  }
  .bk-slide img, .bk-gallery img { transition: transform .4s ease-out; }
  .bk-gallery figure { overflow: hidden; border-radius: var(--bk-radius); }
  .bk-gallery figure:hover img { transform: scale(1.05); }
}

@media (max-width: 720px) {
  .bk-burger { display: block; }
  /* Geteilte Abschnitte stapeln: nebeneinander wären Bild und Text auf
     390 Pixeln beide zu schmal. */
  .bk-abschnitt-bild-links,
  .bk-abschnitt-bild-rechts { grid-template-columns: 1fr; }
  .bk-abschnitt-bild-links > .bk-inner,
  .bk-abschnitt-bild-rechts > .bk-inner { max-width: none; padding: 28px 20px; }
  .bk-abschnitt-bild-rechts > .bk-abschnitt-bild { order: 0; }
  .bk-abschnitt-bild { min-height: 220px; }
  .bk-abschnitt-versetzt > .bk-inner { grid-template-columns: 1fr; gap: 20px; }
  .bk-abschnitt-versetzt > .bk-inner > *:nth-child(even) { margin-top: 0; }
  .bk-abschnitt-karte > .bk-inner { margin-top: -40px; padding: 22px 18px; }
  .bk-trenner-form { height: 34px; }

  /* Der Browser-Standard für [hidden] verliert gegen die Klasse — ohne
     diese Zeile stünde ohne JavaScript ein wirkungsloser Knopf da. */
  .bk-burger[hidden] { display: none; }
  .bk-kopf-zentriert .bk-header-inner,
  .bk-kopf-gestapelt .bk-header-inner,
  .bk-kopf-geteilt .bk-header-inner { flex-direction: row; align-items: center; }
  .bk-kopf-geteilt .bk-brand { position: static; transform: none; }
  /* Nur wenn JavaScript läuft, darf das Menü eingeklappt sein — sonst käme
     man ohne Skript nicht mehr an die Navigation. */
  .bk-js .bk-nav { display: none; }
  .bk-js .bk-nav.is-open { display: flex; }
  .bk-nav { width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; margin: 8px 0 0; }
  .bk-nav-link { padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--bk-ink) 8%, transparent); width: 100%; }
  .bk-kopf-zusatz { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; margin-top: 12px; }
  .bk-kopf-knopf { text-align: center; }
  /* Schublade: fährt von rechts ein. position: fixed, damit sie über dem
     Inhalt liegt und nicht die Seite breiter macht. */
  .bk-js .bk-handy-schublade .bk-nav {
    display: flex; position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px);
    z-index: 22; background: var(--bk-surface); margin: 0; padding: 84px 26px 26px;
    gap: 2px; overflow-y: auto; transform: translateX(100%);
    /* visibility zusätzlich zum Verschieben: nur verschoben bliebe die
       geschlossene Schublade für Tastatur und Vorleseprogramm erreichbar.
       Die Verzögerung sorgt dafür, dass das Hinausfahren noch zu sehen ist. */
    visibility: hidden;
    transition: transform .22s ease-out, visibility 0s linear .22s;
    box-shadow: -20px 0 40px -30px color-mix(in srgb, var(--bk-ink) 90%, transparent);
  }
  .bk-js .bk-handy-schublade .bk-nav.is-open {
    transform: translateX(0); visibility: visible;
    transition: transform .22s ease-out, visibility 0s;
  }
  .bk-handy-schublade .bk-burger { position: relative; z-index: 23; }
  /* Vollbild: dasselbe Prinzip, nur ganzflächig und mit großer Schrift. */
  .bk-js .bk-handy-vollbild .bk-nav {
    display: flex; position: fixed; inset: 0; z-index: 22;
    background: var(--bk-background); margin: 0; padding: 92px 30px 30px;
    gap: 6px; overflow-y: auto; opacity: 0; visibility: hidden;
    transition: opacity .18s;
  }
  .bk-js .bk-handy-vollbild .bk-nav.is-open { opacity: 1; visibility: visible; }
  .bk-handy-vollbild .bk-nav-link { font-family: var(--bk-display-font); font-size: 1.5rem; padding: 14px 0; }
  .bk-handy-vollbild .bk-burger { position: relative; z-index: 23; }
  /* Solange ein Menü offen ist, darf die Seite dahinter nicht mitscrollen. */
  .bk-nav-offen { overflow: hidden; }
}

@container seite (max-width: 720px) {
  .bk-burger { display: block; }
  /* Geteilte Abschnitte stapeln: nebeneinander wären Bild und Text auf
     390 Pixeln beide zu schmal. */
  .bk-abschnitt-bild-links,
  .bk-abschnitt-bild-rechts { grid-template-columns: 1fr; }
  .bk-abschnitt-bild-links > .bk-inner,
  .bk-abschnitt-bild-rechts > .bk-inner { max-width: none; padding: 28px 20px; }
  .bk-abschnitt-bild-rechts > .bk-abschnitt-bild { order: 0; }
  .bk-abschnitt-bild { min-height: 220px; }
  .bk-abschnitt-versetzt > .bk-inner { grid-template-columns: 1fr; gap: 20px; }
  .bk-abschnitt-versetzt > .bk-inner > *:nth-child(even) { margin-top: 0; }
  .bk-abschnitt-karte > .bk-inner { margin-top: -40px; padding: 22px 18px; }
  .bk-trenner-form { height: 34px; }

  /* Der Browser-Standard für [hidden] verliert gegen die Klasse — ohne
     diese Zeile stünde ohne JavaScript ein wirkungsloser Knopf da. */
  .bk-burger[hidden] { display: none; }
  .bk-kopf-zentriert .bk-header-inner,
  .bk-kopf-gestapelt .bk-header-inner,
  .bk-kopf-geteilt .bk-header-inner { flex-direction: row; align-items: center; }
  .bk-kopf-geteilt .bk-brand { position: static; transform: none; }
  /* Nur wenn JavaScript läuft, darf das Menü eingeklappt sein — sonst käme
     man ohne Skript nicht mehr an die Navigation. */
  .bk-js .bk-nav { display: none; }
  .bk-js .bk-nav.is-open { display: flex; }
  .bk-nav { width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; margin: 8px 0 0; }
  .bk-nav-link { padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--bk-ink) 8%, transparent); width: 100%; }
  .bk-kopf-zusatz { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; margin-top: 12px; }
  .bk-kopf-knopf { text-align: center; }
  /* Schublade: fährt von rechts ein. position: fixed, damit sie über dem
     Inhalt liegt und nicht die Seite breiter macht. */
  .bk-js .bk-handy-schublade .bk-nav {
    display: flex; position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px);
    z-index: 22; background: var(--bk-surface); margin: 0; padding: 84px 26px 26px;
    gap: 2px; overflow-y: auto; transform: translateX(100%);
    /* visibility zusätzlich zum Verschieben: nur verschoben bliebe die
       geschlossene Schublade für Tastatur und Vorleseprogramm erreichbar.
       Die Verzögerung sorgt dafür, dass das Hinausfahren noch zu sehen ist. */
    visibility: hidden;
    transition: transform .22s ease-out, visibility 0s linear .22s;
    box-shadow: -20px 0 40px -30px color-mix(in srgb, var(--bk-ink) 90%, transparent);
  }
  .bk-js .bk-handy-schublade .bk-nav.is-open {
    transform: translateX(0); visibility: visible;
    transition: transform .22s ease-out, visibility 0s;
  }
  .bk-handy-schublade .bk-burger { position: relative; z-index: 23; }
  /* Vollbild: dasselbe Prinzip, nur ganzflächig und mit großer Schrift. */
  .bk-js .bk-handy-vollbild .bk-nav {
    display: flex; position: fixed; inset: 0; z-index: 22;
    background: var(--bk-background); margin: 0; padding: 92px 30px 30px;
    gap: 6px; overflow-y: auto; opacity: 0; visibility: hidden;
    transition: opacity .18s;
  }
  .bk-js .bk-handy-vollbild .bk-nav.is-open { opacity: 1; visibility: visible; }
  .bk-handy-vollbild .bk-nav-link { font-family: var(--bk-display-font); font-size: 1.5rem; padding: 14px 0; }
  .bk-handy-vollbild .bk-burger { position: relative; z-index: 23; }
  /* Solange ein Menü offen ist, darf die Seite dahinter nicht mitscrollen. */
  .bk-nav-offen { overflow: hidden; }
}
