/* Feuerwehrverband Enzkreis – Website */

@font-face {
	font-family: "Inter";
	src: url("../fonts/inter.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

:root {
	--accent: #e3057b;
	--accent-dark: #b80463;
	--accent-soft: #fdeaf3;
	--text: #1b1b1d;
	--muted: #5c5c63;
	--line: #e7e7ea;
	--surface: #f6f6f7;
	--bg: #fff;
	--footer: #1b1b1d;
	--radius: 10px;
	--wrap: 1180px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: var(--fs-body, 17px)/1.6 var(--font);
	font-feature-settings: "cv11", "ss01";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-head, var(--font)); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 700; }
h2 { font-size: clamp(min(24px, var(--fs-h2, 32px)), 2.6vw, var(--fs-h2, 32px)); font-weight: 650; }
h3 { font-size: var(--fs-h3, 20px); font-weight: 600; }
h4 { font-size: var(--fs-h4, 1em); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.lead { font-size: 20px; color: var(--muted); max-width: 46em; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: #fff; padding: 8px 12px; }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { height: 60px; width: auto; }
.nav__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__item > a {
	display: block; padding: 10px 14px; border-radius: 8px;
	color: var(--text); text-decoration: none; font-weight: 550; font-size: 16px;
}
.nav__item > a:hover, .nav__item > a[aria-current] { background: var(--accent-soft); color: var(--accent-dark); }
.nav__sub {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 240px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.08);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s ease;
}
.nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 15px; }
.nav__sub a:hover, .nav__sub a[aria-current] { background: var(--surface); color: var(--accent-dark); }
.menu-toggle { display: none; }

@media (max-width: 1200px) {
	.menu-toggle {
		display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px;
		border: 1px solid var(--line); border-radius: 8px; background: #fff; font: 600 16px var(--font); color: var(--text); cursor: pointer;
	}
	.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
	.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.menu-toggle__bars::before { top: -6px; } .menu-toggle__bars::after { top: 6px; }
	.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); max-height: calc(100vh - 84px); overflow: auto; }
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; padding: 8px 16px 20px; }
	.nav__item > a { font-size: 18px; padding: 12px; }
	.nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; }
	.nav__sub li:first-child { display: none; }
	.brand img { height: 50px; }
	.header-inner { min-height: 72px; }
}

/* Startseite */
/* Startseite: schmaler Bildstreifen, Kacheln wechseln nacheinander (assets/js/site.js) */
.hero { position: relative; margin-top: 20px; }
.hero__strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hero__tile { position: relative; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 10px; background: var(--surface); }
.hero__tile:nth-child(n+5) { display: none; }
.hero__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.2s ease; }
.hero__tile img.is-next { opacity: 0; }
.hero__pause { position: absolute; right: 12px; bottom: 8px; padding: 4px 10px; border: 0; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.hero.wrap .hero__pause { right: 36px; }
.hero__pause:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 900px) {
	.hero__strip { grid-template-columns: repeat(3, 1fr); }
	.hero__tile:nth-child(n+4) { display: none; }
}
@media (max-width: 600px) {
	.hero.wrap { padding: 0; margin-top: 0; }
	.hero.wrap .hero__pause { right: 8px; bottom: 6px; }
	.hero__strip { grid-template-columns: repeat(2, 1fr); gap: 3px; }
	.hero__tile { border-radius: 0; }
	.hero__tile:nth-child(n+3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero__tile img { transition: none; } }

/* Überschrift kompakt (auf breiten Bildschirmen einzeilig), damit Aktuelles/Termine ohne Scrollen sichtbar sind */
.intro { padding-top: 24px; padding-bottom: 0; text-align: center; }
.intro h1 { font-size: clamp(22px, 2.8vw, 32px); margin-bottom: .35em; text-wrap: balance; }
.intro .lead { font-size: 17px; margin: 0 auto; text-wrap: pretty; }
@media (max-width: 600px) { .intro .lead { font-size: 16px; } }
.home-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; padding-top: 24px; padding-bottom: 48px; }
.panel { background: var(--surface); border-radius: 14px; padding: 28px; }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 3px solid var(--accent); padding-bottom: 12px; margin-bottom: 8px; }
.panel__head h2 { margin: 0; }
.more { font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.more::after { content: " →"; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } .panel { padding: 20px; } }

.news-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-item h3 { margin: 2px 0 6px; }
.news-item h3 a, .event h3 a { color: var(--text); text-decoration: none; }
.news-item h3 a:hover, .event h3 a:hover { color: var(--accent-dark); text-decoration: underline; }
.news-item p { margin: 0; color: var(--muted); }
.meta { font-size: 14px; color: var(--muted); margin: 0; }

.event { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.event:last-child { border-bottom: 0; }
.event h3 { font-size: 18px; margin: 0 0 2px; }
.event__date { display: flex; flex-direction: column; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 0; line-height: 1.1; }
.event__day { font-size: 24px; font-weight: 700; color: var(--accent-dark); }
.event__month { font-size: 13px; font-weight: 600; text-transform: uppercase; }
.event__year { font-size: 12px; color: var(--muted); }

.quicklinks, .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; padding-bottom: 64px; }
.tiles { padding: 8px 0 0; }
/* Startseite: alle Schnellzugriffe in einer Reihe (keine einzelne Kachel in Reihe 2) */
.quicklinks { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.quicklink {
	display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius);
	text-decoration: none; color: var(--text); border-left: 4px solid var(--accent); transition: border-color .15s, background .15s;
}
.quicklink:hover { background: var(--surface); color: var(--text); }
.quicklink__title { font-weight: 650; font-size: 18px; }
.quicklink__title::after { content: " →"; color: var(--accent); }
.quicklink__sub { font-size: 14px; color: var(--muted); }

/* Unterseiten */
.page-head { background: var(--surface); padding: 40px 0 32px; margin-bottom: 40px; position: relative; }
.page-head.has-cover { padding-top: 0; }
.page-head__img { width: 100%; height: clamp(160px, 24vw, 320px); object-fit: cover; margin-bottom: 32px; }
.page-head h1 { margin: 0; }
.page-head .lead { margin: 12px 0 0; }
.page-head__meta { color: var(--muted); margin: 8px 0 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.content-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-bottom: 64px; }
.content-grid > .prose:only-child { grid-column: 1 / -1; max-width: 820px; }
/* Seiten ohne Seitenmenü: Kopf und Inhalt in schmalem, zentriertem Rahmen statt links im breiten */
main:has(.content-grid > .prose:only-child) .page-head > .wrap, .wrap.content-grid:has(> .prose:only-child) { max-width: calc(820px + 48px); }
/* schmale Seiten (Aktuelles, Meldung, Termine, Termin): Kopf bündig mit der Inhaltsspalte */
main:has(> .wrap.narrow) .page-head > .wrap { max-width: 820px; }
.subnav ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.subnav a { display: block; padding: 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text); text-decoration: none; font-size: 15px; }
.subnav a:hover { color: var(--accent-dark); }
.subnav a[aria-current] { border-left-color: var(--accent); color: var(--accent-dark); font-weight: 600; }
@media (max-width: 900px) {
	.content-grid { grid-template-columns: 1fr; gap: 24px; }
	.subnav ul { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
	.subnav a { border: 1px solid var(--line); border-radius: 999px; margin: 0; padding: 6px 14px; }
	.subnav a[aria-current] { border-color: var(--accent); background: var(--accent-soft); }
}
.narrow.prose, .narrow { padding-bottom: 64px; }

.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose figure { margin: 1.5em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.prose img { border-radius: var(--radius); }
.prose ul { padding-left: 1.2em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }

/* Bausteine */
.person { display: inline-flex; align-items: center; gap: 16px; width: calc(50% - 12px); margin: 8px 0 !important; vertical-align: top; }
.person:nth-of-type(odd) { margin-right: 20px !important; }
.person img, .person__placeholder { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; }
.person__placeholder { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); font-size: 32px; font-weight: 700; }
.person figcaption { display: flex; flex-direction: column; margin: 0; color: var(--muted); font-size: 15px; }
.person strong { color: var(--text); font-size: 17px; }
@media (max-width: 640px) { .person { width: 100%; } .person:nth-of-type(odd) { margin-right: 0 !important; } }

.download { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.download:hover { border-color: var(--accent); color: var(--text); }
.download + .download { margin-top: 10px; }
.download img { width: 64px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.download__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent-dark); font-size: 13px; font-weight: 700; flex: none; }
.download__text { display: flex; flex-direction: column; }
.download small { color: var(--muted); }

.accordion { border: 1px solid var(--line); border-radius: var(--radius); }
.accordion + .accordion { margin-top: 10px; }
.accordion summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 600; list-style: none; position: relative; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 24px; color: var(--accent); font-weight: 400; }
.accordion[open] summary::after { content: "–"; }
.accordion__body { padding: 0 20px 20px; }
.accordion__body > * + * { margin-top: 1em; }

.video__frame { position: relative; aspect-ratio: 16 / 9; background: #222; border-radius: var(--radius); overflow: hidden; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, #2a2a2e, #111); color: #fff; border: 0; font: 600 18px var(--font); cursor: pointer; padding: 16px; }
.video__play small { font-weight: 400; font-size: 13px; opacity: .75; }
.video__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: 22px; padding-left: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chips a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 15px; }
.chips a[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }
.list .event, .list .news-item { padding: 18px 0; }
.archive { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 16px; }
.archive summary { cursor: pointer; font-weight: 600; font-size: 18px; }
.year { margin-top: 24px; color: var(--muted); }
.facts { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; background: var(--surface); padding: 20px; border-radius: var(--radius); }
.facts dt { font-weight: 600; } .facts dd { margin: 0; }
.back::before { content: "← "; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; color: var(--muted); }

/* Fußzeile */
.site-footer { background: var(--footer); color: #d6d6da; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer-title { color: #fff; font-weight: 650; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 6px; }
.site-footer p { margin: 0 0 12px; }
.footer-meta { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #333; padding-top: 16px; padding-bottom: 24px; font-size: 14px; color: #a0a0a8; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.panel__sub { margin: 20px 0 0; }

/* Arbeitskreise: Untermenü auf der Seite */
.ak-nav { position: sticky; top: 0; z-index: 5; background: var(--bg, #fff); padding: 10px 0; }
.ak-section { scroll-margin-top: 72px; }
.ak-section + .ak-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }

/* Social-Media-Links */
.social { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 24px; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; }
.social a:hover { border-color: var(--accent); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* Lesbarkeit bei schmalen Fenstern / starkem Zoom: lange Wörter trennen statt überlaufen */
/* keine automatische Silbentrennung (Simon): lange Wörter gehen in die nächste Zeile, nur im Notfall umbrechen */
h1, h2, h3, .quicklink__title, .panel h3 { hyphens: manual; overflow-wrap: break-word; text-wrap: balance; }
@media (max-width: 480px) {
	.wrap { padding-left: 16px; padding-right: 16px; }
	.lead { font-size: 18px; }
	.panel { padding: 16px; }
}
.home-grid > *, .event > * { min-width: 0; }
.panel__head { flex-wrap: wrap; }
@media (max-width: 360px) { .event { grid-template-columns: 52px 1fr; gap: 10px; } }

/* Bilder unter Meldungen: unbeschnitten, mit Bildunterschrift */
.gallery { display: grid; gap: 20px; margin: 1.5em 0; }
.gallery--multi { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: start; }
.gallery figure { margin: 0; }
.gallery img { display: block; width: 100%; height: auto; max-height: 75vh; object-fit: contain; background: var(--surface); }
.gallery .credit { opacity: .8; }

/* Vergangene Termine: sichtbar, aber zurückgenommen */
.badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--muted); margin-bottom: 4px; }
.event.is-past .event__date { background: var(--surface); filter: grayscale(1); opacity: .75; }
.event.is-past h3 a { color: var(--muted); }
.notice { padding: 12px 16px; border-radius: var(--radius); background: var(--surface); border-left: 4px solid var(--muted); color: var(--muted); }
.entry { padding: 16px 0; border-bottom: 1px solid var(--line); }
.entry:last-of-type { border-bottom: 0; }
.entry h3 { margin: 2px 0 8px; }
.site-footer .social a { color: #fff; border-color: #55555c; }
.site-footer .social a:hover { border-color: var(--accent); }

/* Übersichts-Kacheln: gleich hoch, Beschreibung max. 3 Zeilen, Pfeil nie allein in der Zeile */
.tiles, .quicklinks { grid-auto-rows: 1fr; }
.quicklink__title::after { content: "\00a0→"; }
.quicklink__sub { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.prose ol[type="a"] { list-style-type: lower-alpha; }
.prose li + li { margin-top: .4em; }
.prose li > ol, .prose li > ul, .prose li > p { margin-top: .4em; }

/* Feuerwehren im Enzkreis: Karten mit Ort, Kommandant*in, Adresse, Website */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; margin: 1.5em 0; }
.fw-card { display: flex; flex-direction: column; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.fw-card[hidden] { display: none; }
.fw-card .eyebrow { margin: 0; font-size: 12px; }
.fw-card h3 { margin: 2px 0 8px; font-size: 22px; }
.fw-card p { margin: 0 0 6px; font-size: 15px; }
.fw-card__addr { color: var(--muted); }
.fw-card__link { margin-top: auto; padding-top: 8px; font-weight: 600; text-decoration: none; }
.fw-card__link::after { content: "\00a0↗"; }
.fw-search { width: 100%; box-sizing: border-box; padding: 12px 16px; font: inherit; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.fw-search:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.fw-card.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #fffafd; }
.fw-card__map { align-self: flex-start; margin-top: 6px; padding: 0; background: none; border: 0; font: 600 14px var(--font); color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.fw-card__map:hover { color: var(--accent-dark); }

/* Buttons */
.btn { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid var(--accent); }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--accent-dark); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* Dokumente (Wissenswertes) */
.doc { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); margin: 1.5em 0; }
.doc__head { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.doc__head h3 { margin: 0; }
.doc__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.doc__preview summary { cursor: pointer; font-weight: 600; margin-top: 12px; }
.doc__preview iframe { width: 100%; height: min(80vh, 900px); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 12px; }

/* Lehrgänge */
.course-table { overflow-x: auto; margin: 1.5em 0; }
.course-table table { min-width: 520px; }
.course-table th, .course-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.course-table tr.is-past td, .course-table tr.is-past a { color: var(--muted); }
.course { padding: 22px 24px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); margin: 1.5em 0; scroll-margin-top: 24px; }
.course h2 { margin: 0 0 8px; font-size: clamp(20px, 2.2vw, 24px); }
/* Lehrgänge: Karten im Raster, vergangene zugeklappt */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; align-items: start; margin: 1.5em 0; }
.course-grid .course { margin: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.course__body { padding: 20px 22px 22px; }
.course-grid .course h2 { font-size: 20px; line-height: 1.3; hyphens: manual; overflow-wrap: break-word; text-wrap: balance; }
.course__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.course__content { margin: 0 0 4px; color: var(--muted); }
.course-grid .course__facts { grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 15px; }
.course-archive { margin: 2em 0 1.5em; border-top: 1px solid var(--line); padding-top: 1em; }
.course-archive > summary { cursor: pointer; font-weight: 600; font-size: 18px; color: var(--muted); }
.course-archive[open] > summary { margin-bottom: .75em; }
.course-row { border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.course-grid .course { scroll-margin-top: 96px; }
.prose .ak-courses, .ak-courses { list-style: none; padding: 0; margin: 0 0 8px; }
.ak-courses li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ak-courses a { font-weight: 600; }
.course-row > summary { cursor: pointer; padding: 10px 0; list-style: none; display: flex; flex-wrap: wrap; gap: 2px 16px; align-items: baseline; }
.course-row > summary::-webkit-details-marker { display: none; }
.course-row > summary::before { content: "+"; color: var(--accent); width: 1em; flex: none; }
.course-row[open] > summary::before { content: "–"; }
.course-row__title { font-weight: 600; flex: 1 1 280px; }
.course-row__meta { color: var(--muted); font-size: 15px; }
.course-row > :not(summary) { margin-left: 1.6em; }
.course-row[open] { padding-bottom: 12px; }
.course.is-past { border-left-color: var(--line); background: var(--surface); }
.course.is-past h2 { color: var(--muted); }
.course__facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 12px 0 0; }
.course__facts dt { font-weight: 600; }
.course__facts dd { margin: 0; }
@media (max-width: 520px) { .course__facts { grid-template-columns: 1fr; gap: 0; } .course__facts dd { margin-bottom: 8px; } }
.infobox { padding: 16px 20px; border-radius: var(--radius); background: var(--accent-soft); margin: 1.5em 0; }
.content-grid > * { min-width: 0; }
@media (max-width: 600px) {
	.course-table table, .course-table tbody, .course-table tr, .course-table td { display: block; min-width: 0; }
	.course-table thead { display: none; }
	.course-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
	.course-table td { border: 0; padding: 2px 0; }
	.course-table td[data-label="Lehrgang"] { font-weight: 600; }
	.course-table td[data-label="Termin"]::before, .course-table td[data-label="Ort"]::before { content: attr(data-label) ": "; color: var(--muted); }
}
@media (max-width: 760px) { .doc__preview { display: none; } }

/* Editor-Formate */
.txt-accent { color: var(--accent-dark); font-weight: 600; }
.txt-large { font-size: var(--fs-large, 1.25em); line-height: 1.45; }
.txt-xlarge { font-size: var(--fs-xlarge, 1.6em); line-height: 1.3; }
.txt-small { font-size: var(--fs-small, .85em); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); font-size: 1.1em; color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* Bild-Baustein: Größe und Position */
.img { margin: 1.5em 0; }
.img img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.img figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.img--mittel { max-width: 66%; margin-left: auto; margin-right: auto; }
.img--klein { max-width: 40%; }
.img--klein.img--mitte { margin-left: auto; margin-right: auto; }
.img--mitte figcaption { text-align: center; }
.img--klein.img--links { float: left; margin: .3em 24px 12px 0; }
.img--klein.img--rechts { float: right; margin: .3em 0 12px 24px; }
.prose::after { content: ""; display: table; clear: both; }
@media (max-width: 600px) { .img--mittel, .img--klein { max-width: 100%; float: none !important; margin: 1.5em 0 !important; } }

/* Text mit Bild */
.textbild { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 28px; align-items: start; margin: 2em 0; }
.textbild--rechts { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.textbild--rechts .textbild__img { order: 2; }
.textbild__img { margin: 0; }
.textbild__img img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.textbild__img figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.textbild__text > :first-child { margin-top: 0; }
@media (max-width: 700px) { .textbild, .textbild--rechts { grid-template-columns: 1fr; } .textbild--rechts .textbild__img { order: 0; } }

/* Hinweis-Box */
.callout { margin: 1.5em 0; padding: 16px 20px; border-radius: var(--radius); border-left: 4px solid; }
.callout--info { background: #eef4fb; border-color: #3b74c4; }
.callout--wichtig { background: var(--accent-soft); border-color: var(--accent); }
.callout--erfolg { background: #edf7ef; border-color: #2f8f46; }
.callout__title { font-weight: 700; margin: 0 0 4px; }
.callout > :last-child { margin-bottom: 0; }
.btn-row { margin: 1.5em 0; }

/* Hilfe-Seite (Anleitung) */
.hilfe { padding-top: 32px; padding-bottom: 64px; }
.hilfe h2 { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); }
.hilfe [id] { scroll-margin-top: 100px; }
.hilfe blockquote { font-size: 1em; background: var(--accent-soft); border-left-color: var(--accent); padding: 10px 16px; border-radius: var(--radius); }
.hilfe table { border-collapse: collapse; width: 100%; font-size: 15px; }
.hilfe th, .hilfe td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.hilfe code { background: var(--surface); padding: 1px 6px; border-radius: 4px; }

/* Kreiskarte (Leaflet lokal, Gemeinden als eigene Flächen) */
.kk { margin: 1.5em 0 2em; container-type: inline-size; scroll-margin-top: 90px; }
.kk h2 { margin-bottom: .3em; }
.kk__hint { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.kk__stage { display: grid; gap: 16px; }
@container (min-width: 700px) { .kk__stage { grid-template-columns: 1fr 260px; align-items: start; } }
.kk__map { height: clamp(320px, 62cqi, 540px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; z-index: 0; }
.kk__map.leaflet-container { font: 13px/1.3 var(--font); background: var(--surface); }
.kk-area { cursor: pointer; transition: fill .15s; outline: none; }
.kk-label { pointer-events: none; }
.kk-label span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-size: 11px; font-weight: 600; color: #6b2346; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff; opacity: 0; transition: opacity .2s; }
.kk-label span.is-on { opacity: .9; }
.kk-label--pf span { opacity: 1 !important; color: #4a4a50; font-size: 12px; text-align: center; }
.kk-label--pf small { display: block; font-size: 10px; font-weight: 500; }
.kk--tiles .kk-label span { color: #1b1b1d; }
.kk__map .leaflet-bar { border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 3px rgb(0 0 0 / .08); overflow: hidden; }
.kk__map .leaflet-bar a { width: 34px; height: 34px; line-height: 32px; color: var(--text); font: 600 20px/32px var(--font); }
.kk__map .leaflet-bar a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.kk__map .leaflet-control-attribution { background: rgb(255 255 255 / .85); font-size: 11px; border-top-left-radius: 6px; }
.kk__map .leaflet-control-attribution a { color: var(--muted); }
.kk__card { padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); background: #fff; min-height: 120px; }
.kk__card .eyebrow { margin: 0; font-size: 12px; }
.kk__card h3 { margin: 2px 0 8px; font-size: 22px; }
.kk__card dl { margin: 0 0 8px; font-size: 15px; }
.kk__card dl div { margin-bottom: 4px; }
.kk__card dt { color: var(--muted); font-size: 13px; }
.kk__card dd { margin: 0; font-weight: 600; }
.kk__muted, .kk__empty { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.kk__empty { margin: 0; }
.kk__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.kk__actions .btn::after { content: "\00a0↗"; }
.kk__tolist { font-size: 14px; }
.kk__tiles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.kk__tiles-btn { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 600 14px var(--font); color: var(--text); cursor: pointer; }
.kk__tiles-btn:hover, .kk__tiles-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.kk__tiles small { flex: 1 1 260px; font-size: 13px; }
