/* =====================================================================
   Körle — „Sonnenseite"
   Design-Ebene über der Engine (theme.css). Hier liegen alle
   Körle-spezifischen Tokens und Überschreibungen; die Engine-CSS
   bleibt unverändert und wiederverwendbar.
   ===================================================================== */

:root {
  --blau: #0061a8;      /* Text auf Weiß 6,4:1 */
  --nacht: #0a2a47;     /* Tiefblau, Grün darauf 7,1:1 */
  --gruen: #a8c018;     /* nur Fläche/Akzent oder Text auf Nacht */
  --wiese: #eef5d6;
  --himmel: #e6f1fa;
  --oliv: #4e5e0e;      /* grüner Text auf Hell 7,2:1 */
  --tinte: #16283a;
  --grau: #4a5a6a;      /* 7,0:1 */
  --linie: #dce6ef;
  --bogen: 999px 999px 32px 32px;

  /* Engine-Variablen auf Körle umlegen */
  --primary: var(--nacht);
  --ink-soft: #123a5e;
  --gold: var(--blau);
  --gold-soft: var(--gruen);
  --gold-text: var(--blau);
  --cream: var(--himmel);
  --line: var(--linie);
}

/* ---- Grundlagen ---- */
body { font-family: "Nunito Sans", system-ui, sans-serif; color: var(--tinte); }
h1, h2, h3, h4, .serif, .font-serif, .head {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-optical-sizing: auto; letter-spacing: -0.02em; font-weight: 800;
}
h4 { font-weight: 700; }
/* Malsfeld-Muster „kursive, blasse Zweitzeile" → Körle: gleiche Zeile in Blau */
h1 .italic, h2 .italic, h3 .italic { font-style: normal; color: var(--blau); opacity: 1; }
::selection { background: var(--gruen); color: var(--nacht); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--blau); outline-offset: 3px; border-radius: 12px;
}

/* Keine Ken-Burns-Bewegung */
.ken-burns > img { animation: none; transform: none; }

/* Engine-Eyebrows (Großbuchstaben, weit gesperrt) → ruhige, fette Kicker */
[class*="tracking-[0.32em]"], [class*="tracking-[0.28em]"], [class*="tracking-[0.3em]"] {
  letter-spacing: 0.01em !important; text-transform: none !important;
  font-weight: 800; font-size: 15px !important;
}
/* Gold-Linie → kleine Sonne */
.gold-rule {
  width: 10px; height: 10px; border-radius: 50%; margin-right: 10px;
  background: var(--gruen); box-shadow: 0 0 0 4px rgba(168,192,24,.25); vertical-align: 1px;
}

/* ---- Farben/Kontrast ---- */
.text-gold { color: var(--blau) !important; }
.bg-ink .text-gold, .bg-nacht .text-gold, .bg-blau .text-gold { color: var(--gruen) !important; }
.bg-gold { color: #fff !important; }
.text-goldSoft { color: var(--gruen) !important; }
/* Grün als Text nur auf dunklem Grund – auf Hell in Oliv */
.bg-white .text-goldSoft, .bg-cream .text-goldSoft, .bg-paper .text-goldSoft { color: var(--oliv) !important; }

/* ---- Formen ---- */
.rounded-2xl { border-radius: 22px; }
.rounded-xl { border-radius: 16px; }
.shadow-card { box-shadow: 0 24px 60px -32px rgba(10,42,71,.40); }

/* ---- Buttons (Pillen) ---- */
.btn-gold, .btn-ink, .btn-outline, .btn-ghost {
  font-weight: 800; letter-spacing: 0; border-radius: 999px; padding: 13px 24px; min-height: 48px;
}
.btn-gold { background: var(--blau); color: #fff; }
.btn-gold svg { color: #fff; }
.btn-gold:hover { background: var(--nacht); box-shadow: none; transform: translateY(-1px); }
.btn-ink { background: var(--nacht); color: #fff; }
.btn-ink svg { color: var(--gruen); }
.btn-ink:hover { background: var(--blau); box-shadow: none; transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--linie); color: var(--blau); }
.btn-outline:hover { background: var(--himmel); border-color: var(--blau); color: var(--blau); }
.btn-gruen {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 13px 24px;
  border-radius: 999px; background: var(--gruen); color: var(--nacht); font-weight: 800;
  transition: background-color .2s, color .2s;
}
.btn-gruen:hover { background: #fff; }

/* ---- Header: schwebende Pille ---- */
.site-header, .site-header.header-solid, .site-header.is-scrolled {
  background: transparent; box-shadow: none; color: var(--tinte);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.k-pille {
  background: #fff; border-radius: 999px;
  box-shadow: 0 8px 30px -14px rgba(10,42,71,.35);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled .k-pille { box-shadow: 0 12px 34px -12px rgba(10,42,71,.45), 0 0 0 1px var(--linie); }
.site-header .nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px;
  border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--tinte);
  transition: background-color .15s, color .15s;
}
.site-header .nav-link::after { display: none; }
.site-header .nav-link:hover, .nav-item:hover > .nav-link, .nav-item:focus-within > .nav-link { background: var(--himmel); color: var(--blau); }

/* Dropdown / Mega-Menü als große Karte */
.nav-dropdown {
  border: 0; border-radius: 28px; padding: 14px;
  box-shadow: 0 30px 60px -24px rgba(10,42,71,.45);
  top: calc(100% + 18px);
}
.nav-dropdown a { font-size: 15px; color: var(--tinte); border-radius: 14px; }
.nav-dropdown a:hover { background: var(--himmel); color: var(--blau); }
.nav-dropdown.nav-mega { padding: 26px 28px; gap: 32px; }
.nav-mega .nav-group-head {
  border-bottom: 0; text-transform: none; letter-spacing: -0.01em; font-size: 17px; font-weight: 800;
  font-family: "Bricolage Grotesque", system-ui, sans-serif; color: var(--blau);
}
.nav-group-icon { background: var(--wiese); color: var(--oliv); border-radius: 50%; }
.nav-mega .nav-group-list a { font-size: 15px; padding: 7px 10px; }
.nav-direct-card { background: var(--himmel); border: 0; border-radius: 20px; }
.nav-direct-card:hover { background: var(--wiese); box-shadow: none; }
.nav-direct-card .ndc-icon { border: 0; border-radius: 50%; color: var(--blau); }
.nav-direct-card .ndc-title { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; }
.nav-direct-card .ndc-more { color: var(--blau); }

/* Mobile-Navigation */
.mobile-nav { background: #fff; }

/* ---- Seitenkopf (Unterseiten): hell statt dunkles Vollbild ---- */
.page-hero {
  background: linear-gradient(180deg, var(--himmel) 0%, #fff 100%);
  color: var(--tinte); min-height: 0 !important; align-items: center;
}
.page-hero-vignette { display: none; }
.page-hero > .relative { padding-top: 56px !important; padding-bottom: 48px !important; }
.page-hero-img { display: none; }
@media (min-width: 1024px) {
  .page-hero { min-height: 400px !important; }
  .page-hero-img {
    display: block; position: absolute; inset: auto;
    top: 36px; bottom: 28px; right: max(32px, calc((100vw - 1400px) / 2 + 48px));
    width: min(30vw, 400px); height: auto; object-fit: cover;
    border-radius: var(--bogen); box-shadow: 0 30px 60px -30px rgba(10,42,71,.6);
  }
  .page-hero > .relative { padding-right: calc(min(30vw, 400px) + 96px) !important; }
}
.page-hero h1 { color: var(--blau); }
.page-hero [class*="text-white"] { color: var(--grau) !important; }
.page-hero h1[class*="text-white"], .page-hero h1 [class*="text-white"] { color: var(--blau) !important; }
.page-hero [class*="bg-white/"] { background: #fff !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.page-hero [class*="ring-white"] { --tw-ring-color: var(--linie) !important; }
.page-hero .text-goldSoft, .page-hero [class*="text-goldSoft"] { color: var(--oliv) !important; }
.page-hero .bg-gold, .page-hero [class*="bg-gold/"] { background: var(--gruen) !important; color: var(--nacht) !important; }
.page-hero nav a, .page-hero [aria-label*="Brot"] a { color: var(--blau) !important; }

/* ---- Fließtext ---- */
.prose-malsfeld { color: var(--tinte); font-size: 17.5px; }
.prose-malsfeld h2, .prose-malsfeld h3 { color: var(--nacht); }
.prose-malsfeld a { color: var(--blau); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose-malsfeld a:hover { color: var(--nacht); }
.prose-malsfeld ul li::before { background: var(--gruen); border-radius: 50%; }

/* ---- Karten / Listen ---- */
.k-karte { transition: transform .2s ease, box-shadow .2s ease; }
.k-karte:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(10,42,71,.45); }
.k-rund { transition: background-color .15s, color .15s, transform .15s; }
a:hover .k-rund, a:focus-visible .k-rund { background: var(--blau); color: #fff; transform: scale(1.05); }
.k-bogen { border-radius: var(--bogen); }
.k-welle { display: block; width: 100%; position: relative; margin-bottom: -1px; } /* 1px Überlappung: kein Haarstrich zur folgenden Fläche (Safari rundet halbe Pixel) */
.filter-chip { font-weight: 700; }

/* Sonne auf der Startseite */
.k-strahlen { animation: k-drehen 60s linear infinite; transform-origin: center; }
@keyframes k-drehen { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .k-strahlen, .k-karte, .k-rund { animation: none !important; transition: none !important; }
}

/* Mobile-Navigation: aufklappbare Karten */
.k-mnav summary::-webkit-details-marker { display: none; }
.k-mnav[open] { background: var(--wiese); }
.k-mnav[open] .k-mnav-chevron { transform: rotate(180deg); }
.k-mnav-chevron { color: var(--blau); transition: transform .2s ease; }

/* Sprungmarken als Pillen (auch im hellen Seitenkopf) */
.anchor-bubbles a, .page-hero .anchor-bubbles a {
  background: #fff !important; color: var(--blau) !important; font-weight: 700; font-size: 15px;
  border: 0; border-radius: 999px; padding: 9px 16px; box-shadow: 0 0 0 1.5px var(--linie);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.anchor-bubbles a:hover, .anchor-bubbles a:focus-visible,
.page-hero .anchor-bubbles a:hover, .page-hero .anchor-bubbles a:focus-visible {
  background: var(--blau) !important; color: #fff !important; box-shadow: none;
}

/* Lange deutsche Wörter (z. B. „Bürgerinformationsveranstaltung") sauber trennen */
h1, h2, h3, h4, .head { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.k-karte, .k-karte * { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }

/* ---- Suche: Live-Treffer & „Oft gesucht" ---- */
.ls-results { border-radius: 22px; box-shadow: 0 26px 60px -24px rgba(10,42,71,.55); }
.k-ls-hero { position: absolute; left: 0; right: 0; top: calc(100% + 10px); margin-top: 0; z-index: 40; }
.ls-item { color: var(--tinte); padding: 13px 18px; }
.ls-item:hover, .ls-item:focus, .ls-item.is-aktiv { background: var(--himmel); outline: none; }
.ls-item .ls-type { color: var(--oliv); background: var(--wiese); font-size: 11px; letter-spacing: .06em; min-width: 108px; }
.ls-item .ls-title { font-weight: 700; font-size: 16px; }
.ls-item.ls-boost { background: linear-gradient(90deg, var(--wiese), transparent 75%); }
.ls-more { color: var(--blau); background: var(--himmel); font-size: 15px; }
.ls-empty { font-size: 15px; color: var(--grau); }
.k-bubble {
  display: inline-flex; align-items: center; min-height: 40px; padding: 7px 16px; border-radius: 999px;
  background: #fff; color: var(--blau); font-weight: 700; font-size: 15px;
  box-shadow: 0 0 0 1.5px var(--linie); transition: background-color .15s, color .15s, box-shadow .15s;
}
.k-bubble:hover, .k-bubble:focus-visible { background: var(--blau); color: #fff; box-shadow: none; }
@media (max-width: 639px) { .ls-item .ls-type { min-width: 0; } }

/* ---- Bilder in Beiträgen ---- */
/* Kopf ohne Bild: keinen Platz für den Bogen reservieren */
@media (min-width: 1024px) {
  .page-hero:not(:has(.page-hero-img)) { min-height: 0 !important; }
  .page-hero:not(:has(.page-hero-img)) > .relative { padding-right: 48px !important; }
}
.k-beitragsbild img { box-shadow: 0 30px 60px -34px rgba(10,42,71,.55); }
.prose-malsfeld img { max-width: 100%; height: auto; border-radius: 16px; margin: 1.75rem 0; }
/* Kleine Bilder (Logos, Förderhinweise) in Originalgröße, nicht aufgeblasen */
.prose-malsfeld img[width] { display: inline-block; margin: 1rem 1rem 1rem 0; border-radius: 6px; }
.prose-malsfeld figure { margin: 2rem 0; }
.prose-malsfeld figcaption { font-size: 15px; color: var(--grau); margin-top: .5rem; }
/* Mehrere Bilder hintereinander (frühere Galerien) als Raster */
.prose-malsfeld p:has(> img:not([width]) + img:not([width])) { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.prose-malsfeld p:has(> img:not([width]) + img:not([width])) img { margin: 0; aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ---- Seitenkopf mit Foto: immer Vollbild, Titel auf dem Bild, Vignette, Welle ----
   Gilt für jedes Kopfbild (Engine-Markup .page-hero-img oder koerle_vollbild()).
   Ohne Bild bleibt der helle Kopf von oben. */
.page-hero:is(.k-hero-voll, :has(> .page-hero-img)) {
  background: var(--nacht); color: #fff;
  min-height: max(420px, min(78vh, 56.25vw)) !important; align-items: flex-end; flex-direction: row;
}
/* bis hinter die schwebende Header-Pille ziehen */
main:has(> .k-hero-voll), main:has(> .page-hero > .page-hero-img) { padding-top: 0 !important; }
.page-hero:is(.k-hero-voll, :has(> .page-hero-img)) :is(.k-vollbild-img, .page-hero-img) {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0;
  object-fit: cover; border-radius: 0; box-shadow: none; aspect-ratio: auto;
}
.page-hero:is(.k-hero-voll, :has(> .page-hero-img)) .page-hero-vignette {
  display: block;
  background:
    linear-gradient(180deg, rgba(10,42,71,.45) 0%, rgba(10,42,71,0) 28%, rgba(10,42,71,0) 40%, rgba(10,42,71,.55) 68%, rgba(10,42,71,.92) 100%),
    linear-gradient(90deg, rgba(10,42,71,.55) 0%, rgba(10,42,71,0) 60%);
}
.page-hero:is(.k-hero-voll, :has(> .page-hero-img)) > .relative {
  padding-top: 140px !important; padding-bottom: 76px !important; padding-right: 24px !important;
}
@media (min-width: 1024px) {
  .page-hero:is(.k-hero-voll, :has(> .page-hero-img)) > .relative { padding-right: 48px !important; }
}
.page-hero:is(.k-hero-voll, :has(> .page-hero-img)) h1,
.page-hero:is(.k-hero-voll, :has(> .page-hero-img)) h1[class*="text-white"] {
  color: #fff !important; text-shadow: 0 2px 24px rgba(10,42,71,.45); max-width: 20ch;
}
.page-hero:is(.k-hero-voll, :has(> .page-hero-img)) [class*="text-white"] { color: rgba(255,255,255,.9) !important; }
.page-hero:is(.k-hero-voll, :has(> .page-hero-img)) [class*="bg-white/"] { background: rgba(255,255,255,.14) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.page-hero:is(.k-hero-voll, :has(> .page-hero-img)) [class*="ring-white"] { --tw-ring-color: rgba(255,255,255,.4) !important; }
.page-hero:is(.k-hero-voll, :has(> .page-hero-img)) :is(.text-goldSoft, [class*="text-goldSoft"]) { color: var(--gruen) !important; }
.page-hero:is(.k-hero-voll, :has(> .page-hero-img)) :is(nav, nav span, nav a, nav .text-goldSoft) { color: #fff !important; text-shadow: 0 1px 8px rgba(10,42,71,.6); }
.page-hero:is(.k-hero-voll, :has(> .page-hero-img)) p { text-shadow: 0 1px 12px rgba(10,42,71,.5); }
@media (max-width: 639px) { .page-hero:is(.k-hero-voll, :has(> .page-hero-img)) nav { display: none; } }
/* Welle unten in der Farbe des folgenden Abschnitts (--welle) */
.page-hero { --welle: #fff; }
.page-hero:has(+ :is(.bg-cream, .bg-himmel)) { --welle: var(--himmel); }
.page-hero:has(+ * > :first-child:is(.bg-cream, .bg-himmel)), .page-hero:has(+ * > :first-child > section:is(.bg-cream, .bg-himmel)) { --welle: var(--himmel); }
.page-hero:has(+ .bg-wiese) { --welle: var(--wiese); }
.page-hero:has(+ :is(.bg-ink, .bg-nacht)) { --welle: var(--nacht); }
.page-hero:has(+ .bg-gruen) { --welle: var(--gruen); }
.page-hero:has(> .page-hero-img)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; z-index: 1; pointer-events: none;
  background: var(--welle);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 22c120-24 240-24 360 0s240 24 360 0 240-24 360 0 240 24 360 0v26H0z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 22c120-24 240-24 360 0s240 24 360 0 240-24 360 0 240 24 360 0v26H0z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.k-vollbild-welle { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 26px; z-index: 1; color: var(--welle); }
@media (min-width: 640px) {
  .k-vollbild-welle, .page-hero:has(> .page-hero-img)::after { height: 46px; }
}

.page-hero nav { flex-wrap: wrap; row-gap: 4px; }

/* Silbentrennung nur für wirklich lange Wörter */
h1, h2, h3, h4, .head, .k-karte, .k-karte * { hyphenate-limit-chars: 14 6 6; -webkit-hyphenate-limit-before: 6; -webkit-hyphenate-limit-after: 6; }

/* ---- Startseiten-Kopf (Vollbild) ---- */
.page-hero.k-hero-start { overflow: visible; z-index: 20; min-height: max(600px, min(88vh, 58vw)) !important; }
.page-hero.k-hero-start > .relative { padding-bottom: 120px !important; padding-top: 160px !important; }
@media (max-width: 639px) { .page-hero.k-hero-start > .relative { padding-bottom: 96px !important; padding-top: 130px !important; } }
.k-hero-start h1 { max-width: 14ch; }
.k-hero-start .k-vollbild-img, .k-hero-start .page-hero-vignette { overflow: hidden; }
.k-hero-sonne { z-index: 1; filter: drop-shadow(0 6px 18px rgba(10,42,71,.35)); }
@media (max-width: 639px) { .k-hero-sonne { display: none; } }
.k-hero-start-img { object-position: center 62%; }

/* Formularfelder im dunklen Kopf: Eingabe dunkel auf weißem Feld (sonst erbt sie Weiß) */
.page-hero :is(input, select, textarea), .site-header :is(input, select, textarea) { color: var(--tinte); }
.page-hero input::placeholder { color: var(--grau); opacity: 1; }

/* ---- Startseiten-Slider: ruhiges Überblenden ---- */
.k-slider { position: absolute; inset: 0; overflow: hidden; }
.k-slider .k-slide { opacity: 0; transition: opacity 1.8s ease; transform: scale(1.06); }
.k-slider .k-slide.is-active { opacity: 1; animation: k-zoom 9s ease-out forwards; }
@keyframes k-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.k-slider-pause {
  position: absolute; right: 24px; bottom: 64px; z-index: 3; width: 40px; height: 40px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: rgba(10,42,71,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.35); transition: background-color .15s;
}
.k-slider-pause:hover { background: rgba(10,42,71,.75); }
.k-slider-pause .k-icon-play, .k-slider-pause[aria-pressed="true"] .k-icon-pause { display: none; }
.k-slider-pause[aria-pressed="true"] .k-icon-play { display: block; }
@media (min-width: 1024px) { .k-slider-pause { right: max(32px, calc((100vw - 1280px) / 2 + 24px)); bottom: 84px; } }
@media (prefers-reduced-motion: reduce) {
  .k-slider .k-slide { transition: none; transform: none; }
  .k-slider .k-slide.is-active { animation: none; }
  .k-slider-pause { display: none; }
}

/* =====================================================================
   Ortschronik – Zeitstrahl
   ===================================================================== */

/* Epochen-Leiste: läuft unter dem Header mit */
.k-epochen-leiste { position: sticky; top: 92px; z-index: 30; padding: 14px 0; background: linear-gradient(#fff 70%, rgba(255,255,255,0)); }
.k-epochen-schiene {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 6px;
  background: #fff; border-radius: 999px; box-shadow: 0 10px 30px -18px rgba(10,42,71,.45), 0 0 0 1px var(--linie);
}
.k-epochen-schiene::-webkit-scrollbar { display: none; }
.k-epochen-link {
  flex: none; display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 16px; border-radius: 999px;
  color: var(--tinte); white-space: nowrap; transition: background-color .2s, color .2s;
}
.k-epochen-zahl { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 16px; }
.k-epochen-name { font-size: 14px; color: var(--grau); }
.k-epochen-link:hover { background: var(--himmel); }
.k-epochen-link.is-aktiv { background: var(--blau); color: #fff; }
.k-epochen-link.is-aktiv .k-epochen-name { color: rgba(255,255,255,.8); }
@media (max-width: 767px) { .k-epochen-name { display: none; } .k-epochen-leiste { top: 84px; } }

/* Kapitel */
.k-chronik { padding-bottom: 40px; }
.k-kapitel { padding-top: 72px; scroll-margin-top: 150px; }
.k-kapitel-kopf { position: relative; text-align: center; margin-bottom: 48px; }
.k-kapitel-zahl {
  display: block; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800;
  font-size: clamp(64px, 13vw, 180px); line-height: .9; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 2px var(--blau); opacity: .9;
}
.k-kapitel-name { margin-top: 10px; font-size: clamp(26px, 3.4vw, 40px); color: var(--nacht); }
.k-kapitel-anzahl { margin-top: 6px; font-weight: 700; color: var(--oliv); }
.k-kapitel:nth-of-type(even) { background: linear-gradient(180deg, transparent, var(--himmel) 160px, var(--himmel) calc(100% - 80px), transparent); }

/* Zeitstrahl: Linie in der Mitte, Einträge abwechselnd */
.k-zeitstrahl { position: relative; list-style: none; padding-bottom: 24px; }
.k-zeitstrahl::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 1px); width: 2px;
  background: linear-gradient(var(--linie), var(--blau) 8%, var(--blau) 92%, var(--linie));
}
.k-ereignis { position: relative; display: grid; grid-template-columns: 1fr 72px 1fr; align-items: center; margin-bottom: 44px; }
.k-ereignis-punkt {
  grid-column: 2; grid-row: 1; justify-self: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gruen); box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--linie); z-index: 1;
}
.k-kapitel:nth-of-type(even) .k-ereignis-punkt { box-shadow: 0 0 0 6px var(--himmel), 0 0 0 7px var(--linie); }
.k-ereignis-jahr {
  grid-row: 1; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800;
  font-size: clamp(34px, 4.2vw, 60px); line-height: 1; letter-spacing: -0.03em; color: var(--blau);
}
.k-ereignis-karte { grid-row: 1; }
.k-ereignis:nth-child(odd) .k-ereignis-karte { grid-column: 1; }
.k-ereignis:nth-child(odd) .k-ereignis-jahr { grid-column: 3; justify-self: start; }
.k-ereignis:nth-child(even) .k-ereignis-karte { grid-column: 3; }
.k-ereignis:nth-child(even) .k-ereignis-jahr { grid-column: 1; justify-self: end; text-align: right; }

.k-ereignis-karte {
  display: block; background: #fff; border-radius: 24px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--linie), 0 24px 50px -34px rgba(10,42,71,.5);
  transition: transform .25s ease, box-shadow .25s ease;
}
.k-ereignis-karte:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--linie), 0 30px 60px -30px rgba(10,42,71,.55); }
.k-ereignis-bild { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--himmel); }
.k-ereignis-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .4s ease; }
.k-ereignis-karte.k-alt .k-ereignis-bild img { filter: sepia(.28) saturate(.85) contrast(1.02); }
.k-ereignis-karte:hover .k-ereignis-bild img { transform: scale(1.04); filter: none; }
.k-ereignis-ohne-bild { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--wiese), var(--himmel)); }
.k-ereignis-ohne-bild span { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: clamp(40px, 6vw, 76px); color: var(--blau); opacity: .55; letter-spacing: -0.03em; }
.k-ereignis-text { display: block; padding: 22px 24px 24px; }
.k-ereignis-jahr-mobil { display: none; }
.k-ereignis-titel { display: block; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 23px; line-height: 1.15; color: var(--tinte); }
.k-ereignis-karte:hover .k-ereignis-titel { color: var(--blau); }
.k-ereignis-auszug { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; color: var(--grau); line-height: 1.55; }
.k-ereignis-orte { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.k-ereignis-orte span { font-size: 13px; font-weight: 700; color: var(--oliv); background: var(--wiese); border-radius: 999px; padding: 3px 11px; }

/* Mobil: Linie links, alles untereinander */
@media (max-width: 767px) {
  .k-zeitstrahl::before { left: 26px; }
  .k-ereignis { grid-template-columns: 34px 1fr; column-gap: 14px; margin-bottom: 28px; }
  .k-ereignis-punkt { grid-column: 1; align-self: start; margin-top: 18px; width: 14px; height: 14px; }
  .k-ereignis:nth-child(n) .k-ereignis-karte { grid-column: 2; }
  .k-ereignis-jahr { display: none; }
  .k-ereignis-jahr-mobil { display: block; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 26px; color: var(--blau); margin-bottom: 4px; }
  .k-ereignis-titel { font-size: 20px; }
}

/* Einzelseite */
.k-chronik-kopf-jahr {
  font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(44px, 7vw, 96px); line-height: .95; color: var(--gruen) !important; margin-bottom: 8px;
  text-shadow: 0 2px 24px rgba(10,42,71,.45);
}
.page-hero:not(.k-hero-voll):not(:has(> .page-hero-img)) .k-chronik-kopf-jahr { color: var(--blau) !important; text-shadow: none; }
.k-chronik-text > p:first-child { font-size: 21px; line-height: 1.6; color: var(--nacht); }
.k-chronik-text img { border-radius: 18px; }
.k-blaettern { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--linie); }
.k-blaettern-danach { flex-direction: row-reverse; text-align: right; }
.k-blaettern-bild { width: 76px; height: 76px; border-radius: 16px; object-fit: cover; flex: none; filter: sepia(.2); }

/* ---- Ortschronik: Bewegung (nur wenn JS läuft und Bewegung erlaubt ist) ---- */
.k-zeitstrahl::after {
  content: ""; position: absolute; top: 0; left: calc(50% - 2px); width: 4px; border-radius: 4px;
  height: var(--k-fortschritt, 0px); background: linear-gradient(var(--gruen), var(--blau));
  box-shadow: 0 0 18px rgba(168,192,24,.55); pointer-events: none;
}
@media (max-width: 767px) { .k-zeitstrahl::after { left: 25px; } }
.k-ereignis-punkt { transition: transform .5s cubic-bezier(.2,.9,.3,1.4), background-color .3s, box-shadow .3s; }
.k-ereignis.is-erreicht .k-ereignis-punkt { background: var(--blau); box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--blau), 0 0 0 14px rgba(0,97,168,.15); }
.k-kapitel:nth-of-type(even) .k-ereignis.is-erreicht .k-ereignis-punkt { box-shadow: 0 0 0 6px var(--himmel), 0 0 0 7px var(--blau), 0 0 0 14px rgba(0,97,168,.15); }
.k-kapitel-zahl { transform: translateY(var(--k-parallax, 0px)); will-change: transform; }

.k-anim .k-ereignis-karte { opacity: 0; transform: translateX(-56px) rotate(-1.5deg); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.75,.2,1), box-shadow .25s ease; }
.k-anim .k-ereignis:nth-child(even) .k-ereignis-karte { transform: translateX(56px) rotate(1.5deg); }
.k-anim .k-ereignis-jahr { opacity: 0; transform: translateY(28px); transition: opacity .7s ease .15s, transform .8s cubic-bezier(.2,.75,.2,1) .15s; }
.k-anim .k-ereignis-punkt { transform: scale(0); }
.k-anim .k-kapitel-name, .k-anim .k-kapitel-anzahl { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.75,.2,1); }
.k-anim .k-kapitel-zahl { opacity: 0; transition: opacity 1.2s ease; }

.k-anim .k-ereignis.is-sichtbar .k-ereignis-karte { opacity: 1; transform: none; }
.k-anim .k-ereignis.is-sichtbar .k-ereignis-karte:hover { transform: translateY(-4px); }
.k-anim .k-ereignis.is-sichtbar .k-ereignis-jahr { opacity: 1; transform: none; }
.k-anim .k-ereignis.is-sichtbar .k-ereignis-punkt { transform: scale(1); }
.k-anim .k-kapitel-kopf.is-sichtbar .k-kapitel-zahl { opacity: .9; }
.k-anim .k-kapitel-kopf.is-sichtbar .k-kapitel-name { opacity: 1; transform: none; transition-delay: .15s; }
.k-anim .k-kapitel-kopf.is-sichtbar .k-kapitel-anzahl { opacity: 1; transform: none; transition-delay: .3s; }
@media (max-width: 767px) {
  .k-anim .k-ereignis-karte, .k-anim .k-ereignis:nth-child(even) .k-ereignis-karte { transform: translateY(32px); }
}
@media (prefers-reduced-motion: reduce) {
  .k-zeitstrahl::after { display: none; }
  .k-kapitel-zahl { transform: none !important; }
}

/* ---- Ortschronik: Themen- und Ortsteil-Kacheln ---- */
.k-themen-kacheln { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 768px) { .k-themen-kacheln { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.k-thema-kachel { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--nacht); isolation: isolate; }
.k-thema-kachel:first-child { grid-column: span 2; aspect-ratio: auto; }
@media (min-width: 768px) { .k-thema-kachel:first-child { grid-row: span 2; } }
.k-thema-kachel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: sepia(.25) saturate(.85); transition: transform .7s cubic-bezier(.2,.75,.2,1), filter .4s; }
.k-thema-kachel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,42,71,0) 35%, rgba(10,42,71,.88)); z-index: 1; }
.k-thema-kachel:hover img { transform: scale(1.06); filter: none; }
.k-thema-kachel-text { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; color: #fff; }
.k-thema-kachel-name { display: block; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: clamp(19px, 2vw, 26px); line-height: 1.1; }
.k-thema-kachel:first-child .k-thema-kachel-name { font-size: clamp(26px, 3vw, 40px); }
.k-thema-kachel-anzahl { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 800; color: var(--nacht); background: var(--gruen); border-radius: 999px; padding: 2px 10px; }

.k-orte-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.k-ort-kachel { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--linie); transition: box-shadow .2s, transform .2s; }
.k-ort-kachel:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--blau); }
.k-ort-kachel img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; filter: sepia(.2); flex: none; }
.k-ort-kachel-name { display: block; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 19px; color: var(--tinte); }
.k-ort-kachel-anzahl { display: block; font-size: 14px; color: var(--grau); }
.k-bubble-aktiv { background: var(--blau); color: #fff; box-shadow: none; }

/* Kacheln beim Scrollen einblenden */
.k-anim .k-thema-kachel, .k-anim .k-ort-kachel { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.75,.2,1); }
.k-anim .k-thema-kachel.is-sichtbar, .k-anim .k-ort-kachel.is-sichtbar { opacity: 1; transform: none; }

/* ---- Kontaktleiste im Startseiten-Kopf (Wunsch Bürgermeister: Kontakt weit oben) ---- */
.k-kontaktleiste { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; max-width: 46rem; }
.k-kontaktleiste a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 9999px; font-weight: 700; font-size: 15px; color: #fff !important;
  background: rgba(10,42,71,.38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); text-shadow: none !important;
  transition: background-color .15s, color .15s;
}
.k-kontaktleiste a:hover, .k-kontaktleiste a:focus-visible { background: #fff; color: var(--blau) !important; }
.k-kl-punkt { width: 10px; height: 10px; border-radius: 9999px; flex: none; background: #e0533f; box-shadow: 0 0 0 3px rgba(224,83,63,.25); }
.k-kl-status.is-open .k-kl-punkt { background: var(--gruen); box-shadow: 0 0 0 3px rgba(168,192,24,.3); }
.k-kl-status.is-soon .k-kl-punkt { background: #f2b51d; box-shadow: 0 0 0 3px rgba(242,181,29,.3); }
@media (max-width: 639px) {
  .k-kontaktleiste a { font-size: 14px; padding: 0 13px; }
}

/* ---- Ausklappmenü: eine Gestaltung für alle Menüpunkte ----
   Spalten mit Überschrift + Linkliste. Feste Spaltenbreiten, Text bricht um
   statt über den Rand zu laufen (Safari misst Flex-Inhalte sonst zu knapp). */
.nav-dropdown.k-menu {
  display: flex; align-items: flex-start; gap: 0; padding: 22px 14px 18px; width: max-content; max-width: min(1080px, calc(100vw - 32px));
}
.k-menu-spalte { width: calc(var(--teilen, 1) * 250px); max-width: 100%; padding: 0 12px; min-width: 0; }
.k-menu-spalte + .k-menu-spalte { border-left: 1px solid var(--line); padding-left: 22px; margin-left: 10px; }
.k-menu .nav-group-head {
  display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 0 10px; border: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 17px; font-weight: 800; line-height: 1.2;
  letter-spacing: -0.01em; text-transform: none; color: var(--blau); white-space: normal; overflow-wrap: anywhere;
}
.k-menu .nav-group-icon { width: 32px; height: 32px; flex: none; }
.k-menu-liste { column-count: var(--teilen, 1); column-gap: 8px; }
.k-menu-liste a {
  display: block; break-inside: avoid; padding: 8px 10px; font-size: 15px; line-height: 1.35; color: var(--tinte);
  white-space: normal; overflow-wrap: break-word; hyphens: manual; -webkit-hyphens: manual; border-radius: 12px;
}
.k-menu-liste a:hover, .k-menu-liste a:focus-visible { background: var(--himmel); color: var(--blau); }
/* Rechte Menüpunkte rechtsbündig öffnen, damit die Karte nicht aus dem Bild läuft */
.nav-item:nth-last-child(-n+2) .nav-dropdown.k-menu { left: auto; right: -40px; transform: translateY(8px); }
.nav-item:nth-last-child(-n+2):hover .nav-dropdown.k-menu,
.nav-item:nth-last-child(-n+2):focus-within .nav-dropdown.k-menu { transform: translateY(0); }
.nav-item:first-child .nav-dropdown.k-menu { left: -20px; transform: translateY(8px); }
.nav-item:first-child:hover .nav-dropdown.k-menu,
.nav-item:first-child:focus-within .nav-dropdown.k-menu { transform: translateY(0); }
/* Gruppenkopf mit eigener Übersichtsseite: klickbar */
.k-menu a.k-menu-kopf-link { border-radius: 14px; padding-top: 4px; padding-bottom: 4px; margin-top: -4px; font-size: 17px; color: var(--blau); }
.k-menu a.k-menu-kopf-link:hover, .k-menu a.k-menu-kopf-link:focus-visible { background: var(--himmel); }
.k-menu-kopf-pfeil { display: inline-flex; flex: none; opacity: .55; transition: transform .15s, opacity .15s; }
.k-menu-kopf-link:hover .k-menu-kopf-pfeil { opacity: 1; transform: translateX(3px); }

/* ---- Leistungen: Aktion, Kontakt, Links (einspaltig ohne Text, sonst rechts) ---- */
.k-lst-karte { background: #fff; border-radius: 24px; box-shadow: 0 0 0 1px var(--line); padding: 26px 28px; }
.k-lst-aktion { box-shadow: 0 0 0 2px var(--blau); }
.k-lst-titel { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 21px; line-height: 1.2; color: var(--tinte); margin: 0 0 16px; }
.k-lst-zeilen { display: grid; gap: 10px; }
.k-lst-zeile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--himmel); color: var(--tinte); text-decoration: none; transition: background-color .15s, transform .15s; }
.k-lst-zeile:hover, .k-lst-zeile:focus-visible { background: #d6e8f6; }
.k-lst-zeile.is-online { background: var(--blau); color: #fff; }
.k-lst-zeile.is-online:hover, .k-lst-zeile.is-online:focus-visible { background: var(--nacht); }
.k-lst-zeile.is-online .k-lst-meta { color: rgba(255,255,255,.8); }
.k-lst-zeile.is-klein { padding: 11px 16px; }
.k-lst-ico { flex: none; width: 40px; height: 40px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--blau); }
.k-lst-zeile.is-online .k-lst-ico { background: rgba(255,255,255,.16); color: #fff; }
.k-lst-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.k-lst-label { font-weight: 700; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.k-lst-meta { font-size: 14px; color: var(--grau); line-height: 1.35; }
.k-lst-pfeil { flex: none; display: inline-flex; }
.k-lst-hinweis { font-size: 16px; line-height: 1.55; color: var(--grau); margin: 0; }
.k-lst-person { display: flex; gap: 14px; align-items: flex-start; padding: 4px 0 14px; }
.k-lst-person + .k-lst-person { border-top: 1px solid var(--line); padding-top: 14px; }
.k-lst-initialen { flex: none; width: 44px; height: 44px; border-radius: 9999px; background: var(--wiese); color: var(--oliv); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.k-lst-name { font-weight: 800; font-size: 17px; color: var(--tinte); }
.k-lst-kontakt { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 15px; }
.k-lst-kontakt a { color: var(--blau); font-weight: 700; overflow-wrap: anywhere; }
.k-lst-kontakt a:hover { text-decoration: underline; }
.k-lst-zeiten { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 2px; }
.k-lst-zeiten summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; cursor: pointer; list-style: none; font-weight: 700; font-size: 15px; color: var(--tinte); padding: 4px 0; }
.k-lst-zeiten summary::-webkit-details-marker { display: none; }
.k-lst-zeiten summary > span:first-child::after { content: " ▾"; color: var(--blau); }
.k-lst-zeiten[open] summary > span:first-child::after { content: " ▴"; }
.k-lst-zeiten dl { margin: 10px 0 0; display: grid; gap: 6px; font-size: 15px; }
.k-lst-zeiten dl > div { display: flex; justify-content: space-between; gap: 12px; }
.k-lst-zeiten dt { color: var(--grau); }
.k-lst-zeiten dd { margin: 0; text-align: right; font-weight: 600; }
@media (max-width: 639px) { .k-lst-karte { padding: 20px; border-radius: 20px; } }

/* ---- Dienstleistungen A–Z und Digitales Rathaus ---- */
.k-az-suche { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 9999px; box-shadow: 0 0 0 1px var(--line), 0 14px 34px -24px rgba(10,42,71,.45); padding: 6px 8px 6px 22px; color: var(--blau); max-width: 720px; }
.k-az-suche input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; color: var(--tinte); padding: 12px 6px; }
.k-az-suche:focus-within { box-shadow: 0 0 0 2px var(--blau), 0 14px 34px -24px rgba(10,42,71,.45); }
.k-az-leiste { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 18px; }
.k-az-leiste > * { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.k-az-leiste a { background: var(--himmel); color: var(--blau); }
.k-az-leiste a:hover, .k-az-leiste a:focus-visible { background: var(--blau); color: #fff; }
.k-az-leiste a.is-leer { opacity: .35; pointer-events: none; }
.k-az-leiste span { color: #b9c4cf; }
.k-az-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 14px; font-size: 14px; color: var(--grau); }
.k-az-legende a { margin-left: auto; font-weight: 700; color: var(--blau); }
.k-az-legende a:hover { text-decoration: underline; }
.k-az-gruppe { display: grid; grid-template-columns: 64px 1fr; gap: 0 18px; padding: 22px 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.k-az-buchstabe { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 40px; line-height: 1; color: var(--blau); margin: 6px 0 0; }
.k-az-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.k-az-zeile { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 16px; color: var(--tinte); text-decoration: none; transition: background-color .15s; }
.k-az-zeile:hover, .k-az-zeile:focus-visible { background: var(--himmel); }
.k-az-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.k-az-titel { font-weight: 800; font-size: 17px; line-height: 1.3; color: var(--tinte); }
.k-az-zeile:hover .k-az-titel { color: var(--blau); }
.k-az-lead { font-size: 14px; line-height: 1.45; color: var(--grau); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.k-az-tags { display: flex; gap: 4px; flex: none; padding-top: 2px; }
.k-az-tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .02em; padding: 3px 9px; border-radius: 9999px; background: var(--himmel); color: var(--blau); }
.k-az-tag.is-online { background: var(--wiese); color: var(--oliv); }
.k-az-leer { font-size: 17px; color: var(--grau); padding: 30px 0; }
.k-az-leer a { color: var(--blau); font-weight: 700; }
@media (max-width: 767px) {
  .k-az-gruppe { grid-template-columns: 1fr; }
  .k-az-buchstabe { font-size: 30px; margin-bottom: 6px; }
  .k-az-liste { grid-template-columns: 1fr; }
  .k-az-leiste > * { width: 32px; height: 32px; font-size: 14px; }
  .k-az-legende a { margin-left: 0; }
}

.k-dr-themen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.k-dr-gruppe { padding-top: 34px; scroll-margin-top: 110px; }
.k-dr-thema { display: flex; align-items: center; gap: 12px; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 26px; color: var(--tinte); margin: 0 0 12px; }
.k-dr-thema svg { width: 40px; height: 40px; padding: 9px; border-radius: 9999px; background: var(--wiese); color: var(--oliv); flex: none; }
.k-dr-liste { background: #fff; border-radius: 24px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.k-dr-zeile { display: flex; align-items: center; gap: 16px; padding: 16px 22px; }
.k-dr-zeile + .k-dr-zeile { border-top: 1px solid var(--line); }
.k-dr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none; }
.k-dr-titel { font-weight: 800; font-size: 17px; color: var(--tinte); }
.k-dr-text:hover .k-dr-titel { color: var(--blau); text-decoration: underline; }
.k-dr-lead { font-size: 14px; color: var(--grau); line-height: 1.45; margin-top: 2px; }
.k-dr-aktionen { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: none; }
.k-dr-knopf { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 9999px; font-weight: 800; font-size: 14px; white-space: nowrap; background: var(--himmel); color: var(--blau); transition: background-color .15s, color .15s; }
.k-dr-knopf:hover, .k-dr-knopf:focus-visible { background: var(--blau); color: #fff; }
.k-dr-knopf.is-online { background: var(--blau); color: #fff; }
.k-dr-knopf.is-online:hover, .k-dr-knopf.is-online:focus-visible { background: var(--nacht); }
@media (max-width: 767px) {
  .k-dr-zeile { flex-direction: column; align-items: stretch; gap: 10px; padding: 16px; }
  .k-dr-aktionen { justify-content: flex-start; }
}
@media (max-width: 767px) { .k-dr-thema { font-size: 21px; } .k-dr-thema svg { width: 34px; height: 34px; padding: 7px; } }

/* ---- Online-Formulare ---- */
.k-lst-formular { border-radius: 16px; }
.k-lst-formular > summary { list-style: none; cursor: pointer; }
.k-lst-formular > summary::-webkit-details-marker { display: none; }
.k-lst-formular[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.k-lst-formular[open] .k-lst-auf { transform: rotate(180deg); }
.k-lst-auf { font-size: 18px; transition: transform .15s; }
.k-lst-formular > .k-form { background: var(--himmel); border-radius: 0 0 16px 16px; padding: 22px 20px 24px; }
.k-form { scroll-margin-top: 120px; }
.k-form-einleitung { font-size: 16px; color: var(--grau); margin: 0 0 16px; }
.k-form-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.k-form-feld, .k-form-zwischen, .k-form-hinweis { grid-column: 1 / -1; min-width: 0; }
.k-form-feld.is-halb { grid-column: auto; }
.k-form-feld { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.k-form-feld > label, .k-form-feld > legend { font-weight: 700; font-size: 15px; color: var(--tinte); padding: 0; }
.k-form-feld input[type=text], .k-form-feld input[type=email], .k-form-feld input[type=tel], .k-form-feld input[type=date], .k-form-feld input[type=number], .k-form-feld textarea {
  width: 100%; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #b9c9d8; padding: 12px 14px; font-size: 16px; color: var(--tinte); font-family: inherit;
}
.k-form-feld input:focus, .k-form-feld textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blau); }
.k-form-feld input[type=file] { font-size: 15px; }
.k-form-hilfe { font-size: 13.5px; color: var(--grau); }
.k-form-optionen { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 4px; }
.k-form-option { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 15.5px; color: var(--tinte); font-weight: 500; cursor: pointer; }
.k-form-option input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--blau); flex: none; }
.k-form-option a { color: var(--blau); text-decoration: underline; }
.k-form-pflicht { color: #b42318; }
.k-form-zwischen { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 18px; color: var(--tinte); margin: 10px 0 0; }
.k-form-hinweis { font-size: 14.5px; color: var(--grau); margin: 0; background: #fff; border-radius: 12px; padding: 10px 14px; }
.k-form-legende { font-size: 13px; color: var(--grau); margin: 14px 0 0; }
.k-form-knopf { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 26px; border: 0; border-radius: 9999px; background: var(--blau); color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; }
.k-form-knopf:hover, .k-form-knopf:focus-visible { background: var(--nacht); }
.k-form-knopf svg { color: #fff; }
.k-form-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.k-form-danke { background: var(--wiese); color: var(--oliv); font-weight: 700; font-size: 16px; border-radius: 14px; padding: 16px 18px; }
.k-form-fehler { background: #fdecea; color: #8a1c12; border-radius: 14px; padding: 14px 18px; margin-bottom: 16px; font-size: 15px; }
.k-form-fehler ul { margin: 6px 0 0 18px; list-style: disc; }
@media (max-width: 639px) { .k-form-raster { grid-template-columns: 1fr; } .k-form-feld.is-halb { grid-column: 1 / -1; } .k-lst-formular > .k-form { padding: 18px 14px 20px; } }

/* Sprung-Bubbles im Vollbild-Kopf: Glas-Look wie die Kontaktleiste (die Brotkrumen-Regel färbt nav-Links weiß) */
.page-hero:is(.k-hero-voll, :has(> .page-hero-img)) .anchor-bubbles--hero a {
  background: rgba(10,42,71,.42) !important; color: #fff !important; text-shadow: none !important;
  border: 0 !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.32) !important;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-weight: 700;
}
.page-hero:is(.k-hero-voll, :has(> .page-hero-img)) .anchor-bubbles--hero a:hover,
.page-hero:is(.k-hero-voll, :has(> .page-hero-img)) .anchor-bubbles--hero a:focus-visible {
  background: #fff !important; color: var(--blau) !important; box-shadow: none !important;
}
