/* ==========================================================================
   TFS Teningen – Design der Theodor-Frank-Schule (Version 2, eigenständig)
   Gestaltung nach dem Infoflyer: Poppins, tiefes Petrol, Koralle, Sonnengelb,
   pastellfarbene Karten mit Symbolkreisen, Pillen, Treppe und Stempel.

   Aufbau: 1 Grundlagen · 2 Bausteine · 3 Kopfbereich · 4 Startseite · 5 Unterseiten
           6 Inhalte (Block-Editor) · 7 Formulare · 8 Fußbereich · 9 Kleine Bildschirme · 10 Druck
   ========================================================================== */

/* 1 · Grundlagen ---------------------------------------------------------- */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff") format("woff"); font-weight: 600 800; font-style: normal; font-display: swap; }

:root {
	/* Petrol-Töne */
	--teal-900: #0b4f57;
	--teal-800: #09444b;
	--teal-700: #0f6e78;
	--teal-500: #4fa3a6;
	--teal-300: #8dcbc6;
	--teal-200: #bfe3df;
	--mint: #ddf1ef;
	--mint-tint: #eef8f7;
	--sky: #cde8ef;
	--sky-tint: #e6f3f6;
	/* Akzente */
	--sun: #ffc83d;
	--sun-soft: #fff1c9;
	--coral: #e85d40;
	--coral-ink: #b83a24;   /* Koralle für Text (Kontrast >= 4,5:1) */
	--coral-soft: #fde7e0;
	--cream: #fff8ea;
	/* Text und Linien */
	--ink: #10343b;
	--muted: #3d6b72;
	--line: #cfe3e2;
	--footer: #073a41;
	--white: #fff;

	--font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--r: 24px;
	--r-md: 20px;
	--r-sm: 14px;
	--pill: 999px;
	--shadow: 0 10px 30px rgba(11, 79, 87, .10);
	--shadow-lg: 0 24px 56px rgba(11, 79, 87, .20);
	--header-h: 76px;
	--focus: var(--teal-700);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

html.nav-open body { overflow: hidden; }

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--teal-900); }

h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.2; letter-spacing: -.012em; color: var(--teal-900); margin: 0 0 .5em; text-wrap: balance; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.site-header, .hero, .band, .visit, .site-footer, .notice-bar, .topbar, .stance, .tone-accent { --focus: var(--sun); }
.band, .notice-bar { --focus: var(--teal-900); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; left: 16px; top: -100px; z-index: 1000; padding: .8rem 1.2rem;
	background: var(--sun); color: var(--teal-900); font-weight: 700; border-radius: var(--pill); text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { width: min(100% - 48px, 1200px); margin-inline: auto; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* 2 · Wiederkehrende Bausteine -------------------------------------------- */

/* Kleine Überschrift in Koralle, Großbuchstaben */
.eyebrow {
	margin: 0 0 .7rem; font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1.4; color: var(--coral-ink);
}
.section-head--light .eyebrow, .hero .eyebrow { color: var(--sun); }

/* Überschrift mit kurzem gelbem Balken */
.title-bar::after {
	content: ""; display: block; width: 56px; height: 6px; margin-top: .55em; border-radius: 3px; background: var(--sun);
}

/* Zeichen/Knöpfe */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
	padding: .85rem 1.6rem; border: 2px solid transparent; border-radius: var(--pill);
	font: 700 1rem/1.25 var(--font); text-decoration: none; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .2s; }
.btn:hover .icon-arrow-right { transform: translateX(4px); }
.btn--sun { background: var(--sun); color: var(--teal-900); }
.btn--sun:hover { background: #fff; color: var(--teal-900); box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--teal-900); border-color: #fff; }
.btn--teal { background: var(--teal-700); color: #fff; }
.btn--teal:hover { background: var(--teal-900); color: #fff; box-shadow: 0 8px 20px rgba(11, 79, 87, .25); }
.btn--outline { border-color: var(--teal-700); color: var(--teal-700); }
.btn--outline:hover { background: var(--teal-700); color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--teal-700); text-decoration: none; }
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow:hover { color: var(--teal-900); }

/* Pillen / Stichworte */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.pills li {
	padding: .3rem .9rem; border-radius: var(--pill); background: rgba(255, 255, 255, .85); border: 1.5px solid var(--teal-300);
	color: var(--teal-900); font-size: .8125rem; font-weight: 500; line-height: 1.5;
}
.pills--light li { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); color: #fff; }

.chip {
	display: inline-block; padding: .1rem .7rem; border-radius: var(--pill);
	background: var(--mint); color: var(--teal-900); font-size: .75rem; font-weight: 700; letter-spacing: .02em;
}

/* Farbtöne der Karten: Pastellfläche + kräftiger Symbolkreis */
.tone-teal   { --t-bg: var(--mint);      --t-disc: var(--teal-700); --t-icon: #fff;            --t-ink: var(--ink); --t-sub: var(--muted); --t-num: var(--teal-700); }
.tone-coral  { --t-bg: var(--coral-soft); --t-disc: var(--coral);   --t-icon: #fff;            --t-ink: var(--ink); --t-sub: var(--muted); --t-num: var(--coral-ink); }
.tone-sun    { --t-bg: var(--sun-soft);   --t-disc: var(--sun);     --t-icon: var(--teal-900); --t-ink: var(--ink); --t-sub: var(--muted); --t-num: var(--teal-900); }
.tone-cream  { --t-bg: var(--cream);      --t-disc: var(--teal-300); --t-icon: var(--teal-900); --t-ink: var(--ink); --t-sub: var(--muted); --t-num: var(--teal-700); }
.tone-accent { --t-bg: var(--teal-700);   --t-disc: var(--sun);     --t-icon: var(--teal-900); --t-ink: #fff;      --t-sub: #d7ecea;      --t-num: #fff; }

.icon-disc {
	display: inline-grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%;
	background: var(--t-disc, var(--teal-700)); color: var(--t-icon, #fff);
}
.icon-disc .icon { width: 26px; height: 26px; }

.section { padding: clamp(56px, 7vw, 96px) 0; }
/* Startseite: Die Reihenfolge der Abschnitte ist frei wählbar. Abstände richten sich deshalb nach dem Vorgänger. */
.hero + .section, .band + .section { padding-top: clamp(48px, 6vw, 80px); }
.section--plain + .section--plain { padding-top: 0; }
.site-main--home > .section:last-child:not(.section--plain) { margin-bottom: clamp(32px, 4vw, 56px); }
.section-pad { padding: 48px 0 96px; }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 0; }
.section-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.section-split .section-head { margin: 0; }
.section-split > h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 0; }
.mt { margin-top: 1.5rem; }

/* Platzhalter für Beiträge ohne Bild */
.placeholder { display: block; width: 100%; height: 100%; }
.ph-bg { fill: var(--mint); } .ph-sun-soft { fill: var(--sun-soft); } .ph-sun { fill: var(--sun); } .ph-grass { fill: var(--teal-300); } .ph-mark { fill: var(--teal-700); }

/* 3 · Kopfbereich ----------------------------------------------------------- */

.notice-bar { background: var(--sun); color: var(--teal-900); font-weight: 700; text-align: center; font-size: .9375rem; }
.notice-bar .container { padding: .55rem 0; }
.notice-bar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.notice-bar a:hover { text-decoration: underline; }
.notice-bar .icon { width: 1.1em; height: 1.1em; }

.topbar { background: var(--footer); color: #c9e4e1; font-size: .875rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 40px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: .5rem; }
.topbar .icon { width: 1.05em; height: 1.05em; color: var(--sun); }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 3px; }
.topbar__sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .25); margin: 0 .6rem; }

/* Kein backdrop-filter: das würde das Smartphone-Menü (position: fixed) an die Kopfzeile binden */
.site-header {
	position: sticky; top: 0; z-index: 100; background: var(--teal-900); color: #fff; transition: box-shadow .25s;
}
.site-header.is-stuck { box-shadow: 0 8px 28px rgba(7, 58, 65, .35); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }

.brand { display: block; flex: none; }
.brand__logo { height: 44px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav .menu { display: flex; align-items: center; gap: .1rem; }
.main-nav .menu > li { position: relative; display: flex; align-items: center; }

.main-nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: .9375rem; }
.main-nav .menu > li > a { position: relative; display: block; padding: .7rem .75rem; border-radius: var(--pill); transition: background .2s; }
.main-nav .menu > li > a::after {
	content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .3rem; height: 3px; border-radius: 2px; background: var(--sun);
	transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.main-nav .menu > li:hover > a::after,
.main-nav .menu > li:focus-within > a::after,
.main-nav .menu > li.current-menu-item > a::after,
.main-nav .menu > li.current-menu-ancestor > a::after,
.main-nav .menu > li.current_page_ancestor > a::after { transform: scaleX(1); }
.main-nav .menu > li:hover > a { background: rgba(255, 255, 255, .08); }

.submenu-toggle {
	display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -.5rem; padding: 0;
	border: 0; background: none; color: rgba(255, 255, 255, .8); cursor: pointer; border-radius: 50%;
}
.submenu-toggle:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.submenu-toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.is-open > .submenu-toggle .icon { transform: rotate(180deg); }

/* Untermenüs (Desktop): weiße, runde Karte */
.main-nav .sub-menu {
	position: absolute; top: calc(100% - 2px); left: 0; z-index: 10; min-width: 280px; padding: .6rem;
	background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s;
}
.main-nav .menu > li:nth-last-child(-n+3) > .sub-menu { left: auto; right: 0; }
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu,
.main-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu li { display: flex; flex-wrap: wrap; align-items: center; }
.main-nav .sub-menu a { flex: 1; display: block; padding: .5rem 1rem; border-radius: 12px; color: var(--ink); font-weight: 500; font-size: .9375rem; }
.main-nav .sub-menu a:hover { background: var(--mint); color: var(--teal-900); }
.main-nav .sub-menu .current-menu-item > a { background: var(--mint); font-weight: 700; }
.main-nav .sub-menu .submenu-toggle { margin: 0 .3rem 0 0; color: var(--muted); }
.main-nav .sub-menu .submenu-toggle:hover { color: var(--teal-900); background: var(--mint); }
.main-nav .sub-menu .sub-menu {
	position: static; flex-basis: 100%; min-width: 0; padding: 0 0 .3rem 1rem; box-shadow: none; background: transparent;
	opacity: 1; visibility: visible; transform: none; display: none;
}
.main-nav .sub-menu li.is-open > .sub-menu { display: block; }

/* Hervorgehobener Menüpunkt "Anmeldung": gelbe Pille */
.main-nav .menu > li.menu-cta { margin-left: .5rem; }
.main-nav .menu > li.menu-cta > a {
	background: var(--sun); color: var(--teal-900); font-weight: 700; padding: .65rem 1.3rem; transition: background .2s, color .2s;
}
.main-nav .menu > li.menu-cta > a::after { display: none; }
.main-nav .menu > li.menu-cta > a:hover, .main-nav .menu > li.menu-cta:focus-within > a { background: #fff; color: var(--teal-900); }
.main-nav .menu > li.menu-cta.menu-item-has-children > a { border-radius: var(--pill) 0 0 var(--pill); padding-right: .9rem; }
.main-nav .menu > li.menu-cta > .submenu-toggle {
	align-self: stretch; height: auto; width: 34px; margin: 0; color: var(--teal-900); background: var(--sun); border-radius: 0 var(--pill) var(--pill) 0;
	border-left: 1px solid rgba(11, 79, 87, .25); transition: background .2s;
}
.main-nav .menu > li.menu-cta:hover > .submenu-toggle, .main-nav .menu > li.menu-cta:focus-within > .submenu-toggle { background: #fff; }

.header-actions { display: flex; align-items: center; gap: .25rem; }
.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: #fff; cursor: pointer; transition: background .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .12); }
.icon-btn .icon { width: 22px; height: 22px; }
.nav-toggle { display: none; }
.bars { display: grid; gap: 5px; width: 24px; }
.bars span { display: block; height: 2.5px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
html.nav-open .bars span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
html.nav-open .bars span:nth-child(2) { opacity: 0; }
html.nav-open .bars span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.search-panel { background: var(--teal-800); padding: 18px 0; }
.search-panel[hidden] { display: none; }

/* Suchformular */
.search-form { display: flex; max-width: 640px; }
.search-field {
	flex: 1; min-width: 0; padding: .85rem 1.3rem; font: inherit; color: var(--ink);
	border: 2px solid var(--teal-300); border-right: 0; border-radius: var(--pill) 0 0 var(--pill); background: #fff;
}
.search-field:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(255, 200, 61, .5); }
.search-submit {
	display: grid; place-items: center; width: 62px; border: 0; background: var(--sun); color: var(--teal-900); cursor: pointer;
	border-radius: 0 var(--pill) var(--pill) 0; transition: background .2s;
}
.search-submit:hover { background: #fff; }
.search-submit:focus-visible { outline-offset: 0; }
.search-again { margin-bottom: 36px; }
.search-again .search-field { border-color: var(--teal-500); }
.search-again .search-submit { background: var(--teal-700); color: #fff; }
.search-again .search-submit:hover { background: var(--teal-900); }
.page-article .search-field, .empty-state .search-field { border-color: var(--teal-500); }
.page-article .search-submit, .empty-state .search-submit { background: var(--teal-700); color: #fff; }

/* 4 · Startseite ------------------------------------------------------------ */

/* Titelbild: tiefes Petrol, große Kreise, Illustration, Stempel */
.hero { position: relative; overflow: hidden; background: var(--teal-900); color: #fff; padding: clamp(40px, 6vw, 84px) 0 clamp(92px, 10vw, 140px); border-radius: 0 0 clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px); isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; right: -9%; top: 6%; width: min(700px, 76vw); aspect-ratio: 1; border-radius: 50%; background: var(--teal-700); opacity: .5; }
.hero::after { content: ""; position: absolute; z-index: -1; left: -6%; bottom: -34%; width: min(420px, 50vw); aspect-ratio: 1; border-radius: 50%; background: var(--teal-800); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__text { min-width: 0; }
.badge { display: inline-block; margin: 0 0 1.3rem; padding: .35rem 1.1rem; border-radius: var(--pill); background: var(--sun); color: var(--teal-900); font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero__title { margin: 0 0 .35em; color: #fff; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.08; letter-spacing: -.025em; }
.hero__title::after { content: ""; display: block; width: 88px; height: 8px; margin-top: .3em; border-radius: 4px; background: var(--sun); }
.hero__lead { max-width: 34em; margin: 0 0 1.8rem; font-size: clamp(1.0625rem, 1.5vw, 1.2rem); line-height: 1.65; color: #d7ecea; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; min-width: 0; }
.hero__card { margin: 0; border-radius: 32px; overflow: hidden; background: var(--cream); box-shadow: 0 30px 60px rgba(4, 38, 43, .45); transform: rotate(1.2deg); }
.hero__card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 40% 50%; }

/* Stempel: gepunkteter Koralle-Ring */
.stamp {
	position: absolute; left: -22px; bottom: -34px; display: grid; place-content: center; gap: .25rem; width: 176px; height: 176px; padding: 18px;
	border-radius: 50%; background: var(--cream); color: var(--teal-900); text-align: center; transform: rotate(-9deg); box-shadow: 0 14px 30px rgba(4, 38, 43, .35);
}
.stamp::before { content: ""; position: absolute; inset: 7px; border: 3px dotted var(--coral); border-radius: 50%; pointer-events: none; }
.stamp__title { position: relative; font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.25; color: var(--coral-ink); }
.stamp__date { position: relative; display: grid; line-height: 1.25; }
.stamp__date strong { font-size: 1.0625rem; font-weight: 700; }
.stamp__date small { font-size: .8125rem; font-weight: 500; }

.hero__pills { grid-column: 1 / -1; margin-top: clamp(4px, 2vw, 16px); }
.hero__pills li { font-size: .875rem; padding: .4rem 1.1rem; }

/* Gelbes Band mit Uhr */
.band { position: relative; z-index: 2; margin-top: -52px; }
.band__inner { display: flex; align-items: center; gap: 1.1rem 1.4rem; padding: 1.1rem 1.5rem; border-radius: 28px; background: var(--sun); color: var(--teal-900); box-shadow: 0 16px 36px rgba(11, 79, 87, .22); }
.band__icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--teal-900); }
.band__icon .icon { width: 28px; height: 28px; }
.band__text { min-width: 0; }
.band__text p { margin: 0; }
.band__eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; }
.band__title { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; line-height: 1.3; }
.band__note { font-size: .9375rem; font-weight: 500; line-height: 1.45; }
.band__link { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; padding: .65rem 1.3rem; border-radius: var(--pill); background: var(--teal-900); color: #fff; font-weight: 700; font-size: .9375rem; text-decoration: none; white-space: nowrap; transition: background .2s; }
.band__link .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.band__link:hover { background: var(--teal-700); color: #fff; }
.band__link:hover .icon { transform: translateX(4px); }

/* Schnellzugriff */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.tile {
	position: relative; display: grid; align-content: start; gap: .45rem; height: 100%; padding: 26px 26px 76px; border-radius: var(--r);
	background: var(--t-bg); color: var(--t-ink); text-decoration: none; transition: transform .22s, box-shadow .22s;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: var(--t-ink); }
.tile .icon-disc { margin-bottom: .6rem; }
.tile__title { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }
.tile__desc { font-size: .9375rem; line-height: 1.55; color: var(--t-sub); }
.tile__more { position: absolute; right: 22px; bottom: 22px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--teal-900); transition: transform .2s, background .2s; }
.tile__more .icon { width: 18px; height: 18px; }
.tile:hover .tile__more { transform: translateX(4px); background: var(--sun); }
.tile.tone-accent .tile__more { background: var(--sun); }
.tile.tone-accent:hover .tile__more { background: #fff; }

/* Willkommen */
.welcome { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.welcome__text { font-size: 1.0625rem; }
.welcome__text.entry-content > p:first-child { font-size: 1.125rem; color: var(--teal-900); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 2rem 0 0; padding: 0; list-style: none; }
.fact { display: grid; align-content: start; gap: .2rem; padding: 20px 22px; border-radius: var(--r-md); background: var(--t-bg); }
.fact__value { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--t-num); }
.fact__label { font-size: .875rem; line-height: 1.45; color: var(--t-sub); }
.welcome__side { display: grid; gap: 22px; }
.welcome__photo { position: relative; margin: 0; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); }
.welcome__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.welcome__photo:has(.welcome__img--graphic) { box-shadow: none; }
.values { padding: 24px 26px; border-radius: var(--r); background: var(--sun-soft); }
.values p { margin: 0 0 1rem; }
.values .eyebrow { margin-bottom: .5rem; }
.values p:last-child { margin-bottom: 0; }

/* Mehr als Unterricht */
.section--profile { background: var(--mint-tint); }
.cards2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card-soft { display: flex; flex-direction: column; gap: .9rem; padding: 28px; border-radius: var(--r); background: var(--t-bg); color: var(--t-ink); }
.card-soft__head { display: flex; align-items: center; gap: 16px; }
.card-soft h3 { margin: 0; font-size: 1.25rem; }
.card-soft h3 a { color: inherit; text-decoration: none; }
.card-soft h3 a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; }
.card-soft p { margin: 0; color: var(--t-sub); font-size: .9688rem; line-height: 1.65; }
.card-soft .pills { margin-top: auto; padding-top: .4rem; }

/* Dein Weg: Treppe, "Und danach?", BoriS */
.path { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.path__intro { margin: -12px 0 1.6rem; color: var(--muted); }
.stairs { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.stair {
	display: flex; align-items: center; gap: 14px; margin-left: calc(var(--lvl, 0) * clamp(10px, 3vw, 34px)); padding: 13px 20px;
	border-radius: 18px; background: var(--mint); color: var(--teal-900);
}
.stair--0 { background: #ddf1ef; }
.stair--1 { background: #bfe3df; }
.stair--2 { background: #8dcbc6; }
.stair--3 { background: #247b84; color: #fff; }
.stair--4 { background: #0f6e78; color: #fff; }
.stair--5 { background: #0b4f57; color: #fff; }
.stair__no { flex: none; font-size: 1.125rem; font-weight: 700; white-space: nowrap; }
.stair__text { font-size: .9375rem; line-height: 1.4; }
.stair__star { display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin-left: auto; border-radius: 50%; background: var(--sun); color: var(--teal-900); }
.stair__star .icon { width: 18px; height: 18px; }

.path__after { display: grid; gap: 0; }
.path__after .section-head { margin-bottom: 1.2rem; }
.path__doors-title { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.door { display: flex; flex-direction: column; align-items: center; gap: .7rem; padding: 20px 12px; border-radius: var(--r-md); background: var(--t-bg); text-align: center; }
.door__title { font-size: .9375rem; font-weight: 700; line-height: 1.3; }
.doors__note { margin: 1rem 0 0; font-size: .9375rem; color: var(--muted); }
.award { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
.award img { width: 124px; }
.award h3 { margin: 0 0 .3rem; font-size: 1.0625rem; }
.award p { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--muted); }

/* Gut ankommen */
.section--arrive { background: var(--cream); }
.section--arrive .tone-cream { --t-bg: #fff; }
.arrive { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.rows { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.row-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: center; padding: 20px 22px; border-radius: var(--r-md); background: var(--t-bg); color: var(--t-ink); }
.row-card h3 { margin: 0 0 .2rem; font-size: 1.0625rem; }
.row-card h3 a { color: inherit; text-decoration: none; }
.row-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; }
.row-card p { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--t-sub); }
.stance { padding: 28px; border-radius: 28px; background: var(--teal-900); color: #fff; }
.stance__logo { margin-bottom: 1.4rem; padding: 14px 16px; border-radius: 18px; background: #fff; }
.stance__logo img { width: 100%; max-width: 280px; margin-inline: auto; }
.stance h3 { margin: 0 0 .5rem; color: #fff; font-size: 1.375rem; }
.stance h3::after { content: ""; display: block; width: 48px; height: 5px; margin-top: .5rem; border-radius: 3px; background: var(--sun); }
.stance p { margin: 1rem 0 0; color: #d7ecea; font-size: .9688rem; line-height: 1.65; }

/* So geht's weiter: Stepper */
.section--steps { background: var(--sky-tint); }
.steps-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.steps-wrap__head { position: sticky; top: calc(var(--header-h) + 24px); }
.steps-wrap__head .section-head { margin-bottom: 1.6rem; }
.steps { margin: 0; padding: 0; list-style: none; }
.step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding-bottom: 30px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 26px; top: 60px; bottom: 4px; width: 0; border-left: 3px dotted var(--teal-500); }
.step__no { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--teal-700); color: #fff; font-size: 1.375rem; font-weight: 700; }
.step--hot .step__no { background: var(--sun); color: var(--teal-900); box-shadow: 0 0 0 6px rgba(255, 200, 61, .35); }
.step h3 { margin: .45rem 0 .25rem; font-size: 1.1875rem; }
.step p { margin: 0; color: var(--muted); font-size: .9688rem; line-height: 1.65; }

/* Aktuelles */
.news { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.news__side { display: grid; gap: 16px; }

.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: transform .22s, box-shadow .22s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mint); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin: 0 0 .6rem; font-size: .8125rem; color: var(--muted); }
.card__title { margin: 0 0 .6rem; font-size: 1.25rem; line-height: 1.3; }
.card--big .card__title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.card__title a { color: var(--teal-900); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__title a:hover { color: var(--coral-ink); }
.card__excerpt { margin: 0 0 1rem; font-size: .9688rem; line-height: 1.65; color: var(--muted); }
.card__more { display: inline-flex; align-items: center; gap: .45rem; margin: auto 0 0; font-weight: 700; font-size: .9375rem; color: var(--coral-ink); }
.card__more .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.card:hover .card__more .icon { transform: translateX(4px); }
.card--row { flex-direction: row; align-items: stretch; border-radius: var(--r-md); }
.card--row .card__media { flex: none; width: 132px; aspect-ratio: auto; }
.card--row .card__body { padding: 16px 18px; justify-content: center; }
.card--row .card__title { margin: 0; font-size: 1.0625rem; }
.card--row .card__meta { margin-bottom: .35rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Auszeichnungen und Partner */
.partners__title { text-align: center; margin-bottom: 1.6rem; }
.partners__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.partner { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .8rem; margin: 0; padding: 22px 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-align: center; }
.partner__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 80px; }
.partner__logo a { display: flex; align-items: center; justify-content: center; height: 100%; }
.partner input, .partner iframe, .partner video { max-width: 100%; }
.partner img { width: auto; max-width: 100%; max-height: 76px; object-fit: contain; }
.partner figcaption, .partner p { margin: 0; font-size: .8125rem; line-height: 1.45; color: var(--muted); }
.partner a:hover img { opacity: .85; }
.partner--notice { grid-column: 1 / -1; align-items: flex-start; gap: .3rem; padding: 14px 18px; border-color: var(--sun); background: #fff8ea; text-align: left; font-size: .875rem; line-height: 1.5; color: var(--ink); }

/* Besuchsband über der Fußzeile */
.visit { background: linear-gradient(to bottom, #fff 0 50%, var(--footer) 50% 100%); }
.visit__card {
	position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; align-items: center;
	padding: clamp(28px, 5vw, 56px); border-radius: 36px; background: var(--teal-700); color: #fff; box-shadow: var(--shadow-lg); isolation: isolate;
}
.visit__card::before { content: ""; position: absolute; z-index: -1; right: -90px; top: -110px; width: 360px; height: 360px; border-radius: 50%; background: var(--teal-900); opacity: .55; }
.visit__card::after { content: ""; position: absolute; z-index: -1; right: 70px; bottom: -70px; width: 130px; height: 130px; border-radius: 50%; background: var(--sun); opacity: .95; }
.visit h2 { margin: 0 0 1rem; color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.12; }
.visit h2::after { content: ""; display: block; width: 56px; height: 6px; margin-top: .4em; border-radius: 3px; background: var(--sun); }
.visit__name { margin: 0 0 .8rem; line-height: 1.5; }
.visit__address { font-style: normal; line-height: 1.7; }
.visit a { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
.visit a:hover { text-decoration-color: var(--sun); }
.visit__actions { position: relative; z-index: 1; display: grid; gap: 12px; min-width: 220px; }
.visit .btn--ghost-light, .visit .btn--sun { text-decoration: none; }

/* 5 · Unterseiten ----------------------------------------------------------- */

.page-head { position: relative; overflow: hidden; padding: 28px 0 clamp(40px, 6vw, 64px); background: var(--mint); border-radius: 0 0 clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px); isolation: isolate; }
.page-head::before { content: ""; position: absolute; z-index: -1; right: -60px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: var(--sun-soft); }
.page-head::after { content: ""; position: absolute; z-index: -1; right: 150px; bottom: -80px; width: 150px; height: 150px; border-radius: 50%; background: var(--teal-200); opacity: .7; }
.page-head__inner { position: relative; }
.page-head__title { margin: 0; max-width: 18em; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.12; }
.page-head .eyebrow { margin-top: 1.4rem; }
.page-head .eyebrow + .page-head__title { margin-top: 0; }
.page-head__meta { margin: 1.4rem 0 0; font-weight: 500; color: var(--muted); }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .2rem .5rem; margin: 0; padding: 0; list-style: none; font-size: .875rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: .5rem; color: var(--coral-ink); font-weight: 700; }
.breadcrumbs a { color: var(--teal-700); font-weight: 500; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; }

.page-layout { display: grid; gap: clamp(32px, 5vw, 72px); padding-block: 48px clamp(64px, 9vw, 112px); }
.page-layout.has-sidenav { grid-template-columns: 290px minmax(0, 1fr); }
.page-layout.no-sidenav { grid-template-columns: minmax(0, 840px); justify-content: center; }
.page-article { min-width: 0; }
.page-figure { margin: 0 0 2.2rem; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.page-figure img { width: 100%; max-height: 420px; object-fit: cover; }
.section--more { background: var(--mint-tint); }

/* Bereichsnavigation */
.sidenav { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.sidenav__toggle { display: none; }
.sidenav__panel { padding: 22px 18px; border-radius: var(--r); background: var(--mint-tint); }
.sidenav__title { margin: 0 0 .8rem; padding-inline: .6rem; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.sidenav .sidenav__title a { display: inline; padding: 0; border-radius: 0; background: none; color: var(--teal-900); font-weight: 700; font-size: 1.0625rem; text-decoration: none; }
.sidenav .sidenav__title a:hover { background: none; color: var(--teal-900); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; }
.sidenav .sidenav__title a.is-current { color: var(--teal-700); }
.sidenav ul { list-style: none; margin: 0; padding: 0; }
.sidenav li { margin: 2px 0 0; }
.sidenav a { display: block; padding: .5rem .9rem; border-radius: var(--pill); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9375rem; line-height: 1.4; transition: background .2s; }
.sidenav a:hover { background: var(--mint); color: var(--teal-900); }
.sidenav .current_page_item > a { background: var(--teal-700); color: #fff; font-weight: 700; }
.sidenav ul ul { padding-left: .9rem; }
.sidenav ul ul a { font-size: .875rem; }

/* 6 · Inhalte (Block-Editor) ---------------------------------------------- */

.entry-content { font-size: 1.0625rem; line-height: 1.75; overflow-wrap: break-word; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content h2 { margin: 2em 0 .7em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.entry-content h2::after { content: ""; display: block; width: 44px; height: 5px; margin-top: .45em; border-radius: 3px; background: var(--sun); }
.entry-content h3 { margin: 1.8em 0 .5em; font-size: clamp(1.2rem, 2vw, 1.4rem); color: var(--teal-700); }
.entry-content h4 { margin: 1.6em 0 .4em; font-size: 1.1rem; }
.entry-content a { text-decoration-thickness: 2px; text-decoration-color: rgba(15, 110, 120, .35); transition: text-decoration-color .2s; }
.entry-content a:hover { text-decoration-color: var(--coral); }
.entry-content ul, .entry-content ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--coral-ink); font-weight: 700; }
.entry-content img { border-radius: var(--r-sm); }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption, .wp-element-caption { margin-top: .6rem; font-size: .875rem; color: var(--muted); }
.entry-content hr, .wp-block-separator { border: 0; height: 6px; width: 64px; margin: 2.4em 0; border-radius: 3px; background: var(--sun); }
.entry-content .alignleft { float: left; margin: .4em 1.6em 1em 0; }
.entry-content .alignright { float: right; margin: .4em 0 1em 1.6em; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content .alignwide, .entry-content .alignfull { max-width: 100%; }
.welcome__text.entry-content { font-size: 1.0625rem; }

/* Hinweisbox (Zitat-Block, z. B. Fristen auf der Anmeldeseite) */
.entry-content blockquote {
	position: relative; margin: 0 0 1.8em; padding: 1.3rem 1.6rem 1.3rem 2rem; background: var(--sun-soft);
	border-radius: var(--r-md); font-size: 1rem;
}
.entry-content blockquote::before { content: ""; position: absolute; left: 14px; top: 16px; bottom: 16px; width: 6px; border-radius: 3px; background: var(--sun); }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: .6rem; font-size: .875rem; font-style: normal; color: var(--muted); }

/* Knöpfe */
.wp-block-button__link, .wp-element-button {
	display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.6rem; border-radius: var(--pill) !important;
	background: var(--teal-700); color: #fff !important; font-weight: 700; font-size: 1rem; text-decoration: none !important; border: 2px solid var(--teal-700); transition: background .2s, border-color .2s;
}
.wp-block-button__link:hover, .wp-element-button:hover { background: var(--teal-900); border-color: var(--teal-900); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--teal-700) !important; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--teal-700); color: #fff !important; }

/* Downloads (Datei-Block) */
.wp-block-file {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
	margin: 0 0 .9rem; padding: 1rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
	box-shadow: 0 2px 0 rgba(11, 79, 87, .05);
}
.wp-block-file > a:not(.wp-block-file__button) { font-weight: 600; text-decoration: none; }
.wp-block-file > a:not(.wp-block-file__button):hover { text-decoration: underline; }
.wp-block-file .wp-block-file__button, .entry-content .wp-block-file a.wp-block-file__button {
	display: inline-flex; align-items: center; margin: 0; padding: .5rem 1.2rem; font-size: .9375rem; font-weight: 700;
	background: var(--teal-700); color: #fff !important; border-radius: var(--pill); text-decoration: none !important; border: 0; opacity: 1;
	transition: background .2s;
}
.wp-block-file .wp-block-file__button:hover, .entry-content .wp-block-file a.wp-block-file__button:hover { background: var(--teal-900); color: #fff !important; }

/* Tabellen */
.entry-content table { width: 100%; border-collapse: collapse; font-size: .9688rem; line-height: 1.45; margin: 0; }
.entry-content table.table-plain { margin-bottom: 1.6em; }
.entry-content th, .entry-content td { padding: .75rem 1rem; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content thead { border: 0; }
.entry-content thead th, .entry-content tbody tr:first-child th { background: var(--teal-900); color: #fff; font-weight: 700; border-bottom: 0; }
.entry-content tbody tr:nth-child(even) td { background: var(--mint-tint); }
.entry-content tbody tr:hover td { background: var(--mint); }
.entry-content tfoot td { font-weight: 700; }
.wp-block-table { margin: 0 0 1.8em; overflow-x: auto; border-radius: var(--r-sm); border: 1px solid var(--line); }
.wp-block-table table { margin: 0; }
.wp-block-table.is-style-stripes { border: 1px solid var(--line); }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: transparent; }
.table-scroll { overflow-x: auto; margin: 0 0 1.8em; border: 1px solid var(--line); border-radius: var(--r-sm); }

/* Seitenliste (Plugin "Page-list") */
.entry-content ul.page-list, .entry-content ul.ul-page-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.entry-content ul.page-list li, .entry-content ul.ul-page-list li { margin: 0; }
.entry-content ul.page-list a, .entry-content ul.ul-page-list a {
	display: block; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
	font-weight: 700; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.entry-content ul.page-list a:hover, .entry-content ul.ul-page-list a:hover { border-color: var(--teal-500); transform: translateY(-2px); box-shadow: var(--shadow); }

/* Externe-Links-Symbol des Plugins "WP External Links": im Inhalt klein, sonst aus */
.wpel-icon { display: none !important; }
.entry-content .wpel-icon { display: inline-block !important; font-size: .8em; opacity: .6; margin-right: .25em; }

/* Beitragsnavigation, Seitenzahlen */
.post-navigation { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.post-navigation a { display: block; text-decoration: none; color: var(--teal-900); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation .nav-label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-ink); }
.post-navigation .nav-title { display: block; margin-top: .3rem; font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.post-navigation a:hover .nav-title { color: var(--teal-700); }

.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 .9rem; border: 2px solid var(--line); border-radius: var(--pill); color: var(--ink); font-weight: 700; text-decoration: none; transition: background .2s, border-color .2s; }
a.page-numbers:hover { border-color: var(--teal-500); background: var(--mint); }
.page-numbers.current { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.empty-state { max-width: 640px; }

/* 7 · Formulare ------------------------------------------------------------- */

.entry-content input[type="text"], .entry-content input[type="email"], .entry-content input[type="tel"], .entry-content input[type="url"],
.entry-content input[type="number"], .entry-content input[type="date"], .entry-content input[type="password"], .entry-content select, .entry-content textarea {
	max-width: 100%;
}

/* Formidable Forms (Anmeldeformulare). Farben über die eigenen Variablen des Plugins, Feinheiten darunter. */
.page-article .frm_forms.with_frm_style {
	--font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --font-size: 1rem; --label-color: var(--ink); --weight: 600; --required-color: #b00020;
	--description-color: var(--muted); --description-font-size: .875rem;
	--text-color: var(--ink); --border-color: #5b9a9c; --border-color-active: var(--teal-700); --bg-color: #fff; --bg-color-active: #fff;
	--field-border-width: 2px; --border-radius: 14px; --field-height: 50px; --field-pad: 12px 16px;
	--submit-bg-color: var(--teal-700); --submit-hover-bg-color: var(--teal-900); --submit-active-bg-color: var(--teal-900);
	--submit-border-color: var(--teal-700); --submit-hover-border-color: var(--teal-900); --submit-text-color: #fff; --submit-weight: 700;
	--submit-border-radius: 999px; --submit-height: 54px; --submit-font-size: 1.0625rem;
	--section-color: var(--teal-900); --section-bg-color: transparent; --section-font-size: 1.4rem;
	--fieldset-padding: 0; --fieldset-bg-color: transparent; --form-width: 100%;
	max-width: 100%; margin: 0 0 2.4rem; padding: clamp(20px, 3.4vw, 40px);
	background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
	font-family: var(--font); font-size: 1rem;
}
.page-article .frm_forms .frm_primary_label { font-weight: 600; color: var(--ink); font-size: 1rem; margin-bottom: .35rem; }
.page-article .frm_forms .frm_description, .page-article .frm_forms .frm_desc { color: var(--muted); font-size: .875rem; line-height: 1.5; margin-top: .3rem; }
.page-article .frm_forms.with_frm_style input[type="text"], .page-article .frm_forms.with_frm_style input[type="email"],
.page-article .frm_forms.with_frm_style input[type="tel"], .page-article .frm_forms.with_frm_style input[type="url"],
.page-article .frm_forms.with_frm_style input[type="number"], .page-article .frm_forms.with_frm_style input[type="date"],
.page-article .frm_forms.with_frm_style select, .page-article .frm_forms.with_frm_style textarea {
	font-family: var(--font); font-size: 1rem; color: var(--ink); background: #fff;
	border: 2px solid #5b9a9c; border-radius: 14px; padding: .7rem 1rem; box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
.page-article .frm_forms.with_frm_style input:focus, .page-article .frm_forms.with_frm_style select:focus, .page-article .frm_forms.with_frm_style textarea:focus {
	outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 4px rgba(15, 110, 120, .2);
}
.page-article .frm_forms .frm_radio label, .page-article .frm_forms .frm_checkbox label { font-weight: 500; }
.page-article .frm_forms input[type="radio"], .page-article .frm_forms input[type="checkbox"] { accent-color: var(--teal-700); width: 1.15em; height: 1.15em; }
.page-article .frm_forms .frm_section_heading h3, .page-article .frm_forms .frm_section_heading .frm_pos_top { font-family: var(--font); color: var(--teal-900); }
.page-article .frm_forms .frm_section_heading { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 4px dotted var(--teal-200); }
.page-article .frm_forms .frm_button_submit, .page-article .frm_forms.with_frm_style .frm_submit button {
	background: var(--teal-700); color: #fff; border: 2px solid var(--teal-700); border-radius: 999px; padding: .85rem 2.2rem;
	font: 700 1.0625rem/1.2 var(--font); cursor: pointer; transition: background .2s;
}
.page-article .frm_forms .frm_button_submit:hover, .page-article .frm_forms.with_frm_style .frm_submit button:hover { background: var(--teal-900); border-color: var(--teal-900); }
.page-article .frm_forms .frm_submit { margin-top: 1.6rem; }
/* Unsichtbares Spamschutz-Feld (Honeypot) soll keinen Platz im Raster belegen */
.page-article .frm_forms .frm_verify { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.page-article .frm_forms .frm_error, .page-article .frm_forms .frm_error_style { color: #b00020; font-weight: 600; }
.page-article .frm_forms .frm_message, .page-article .frm_forms .frm_success_style { background: #e8f7ee; border: 1px solid #9bd8b2; color: #0f5132; border-radius: 14px; padding: 1rem 1.2rem; }

/* Terminbuchung (Simply Schedule Appointments) */
.page-article iframe.ssa_booking_iframe { width: 100%; border: 0; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); margin: 0 0 2rem; }
.entry-content iframe { border-radius: var(--r-sm); }

/* 8 · Fußbereich ------------------------------------------------------------ */

.site-footer { background: var(--footer); color: #c9e4e1; font-size: .9688rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 4px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr .9fr 1.5fr 1fr; gap: 40px; padding-block: 64px 48px; }
.site-footer__logo { height: 44px; width: auto; margin-bottom: 1.4rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer__title { margin: 0 0 1rem; font: 700 .75rem/1.2 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--sun); }
.footer-menu, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: .7rem; }
.footer-contact .icon { width: 1.15em; height: 1.15em; margin-top: .3em; color: var(--sun); }
.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, .14); font-size: .875rem; }
.site-footer__bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: 20px; }
.site-footer__bar p { margin: 0; }
.site-footer__credit { color: #a9cdc9; }
.to-top { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.to-top .icon { width: 1.1em; height: 1.1em; color: var(--sun); }
.site-footer .rcb-consent a, .site-footer .rcb-consent { color: #fff; }

/* 9 · Kleine Bildschirme ---------------------------------------------------- */

@media (max-width: 1240px) {
	.main-nav a { font-size: .875rem; }
	.main-nav .menu > li > a { padding-inline: .55rem; }
	.main-nav .menu > li > a::after { left: .55rem; right: .55rem; }
	.main-nav .menu > li.menu-cta { margin-left: .2rem; }
	.main-nav .menu > li.menu-cta > a { padding-inline: 1rem; }
}

@media (max-width: 1099px) {
	:root { --header-h: 68px; }
	.brand__logo { height: 40px; }
	.nav-toggle { display: inline-grid; }
	.main-nav {
		position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; margin: 0; padding: 12px 24px 40px; overflow-y: auto; background: var(--teal-900);
		opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .2s, transform .2s, visibility .2s;
	}
	html.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
	.js .main-nav { display: block; }
	.no-js .main-nav { position: static; opacity: 1; visibility: visible; transform: none; padding: 0; }
	.no-js .site-header__inner { flex-wrap: wrap; }
	.main-nav .menu { flex-direction: column; align-items: stretch; gap: 0; max-width: 720px; margin-inline: auto; }
	.main-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .14); }
	.main-nav .menu > li > a { flex: 1; padding: 1rem .2rem; border-radius: 0; font-size: 1.125rem; }
	.main-nav .menu > li:hover > a { background: transparent; }
	.main-nav .menu > li > a::after { display: none; }
	.main-nav .menu > li.current-menu-item > a, .main-nav .menu > li.current-menu-ancestor > a { color: var(--sun); }
	.submenu-toggle { width: 48px; height: 48px; margin: 0; color: #fff; }
	.submenu-toggle .icon { width: 22px; height: 22px; }
	.main-nav .sub-menu {
		position: static; flex-basis: 100%; min-width: 0; padding: 0 0 .8rem .8rem; box-shadow: none; background: transparent; border-radius: 0;
		opacity: 1; visibility: visible; transform: none; display: none;
	}
	.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: none; }
	.main-nav li.is-open > .sub-menu { display: block; }
	.main-nav .sub-menu a { padding: .6rem .6rem; font-size: 1rem; color: #e3f2f1; border-radius: 10px; }
	.main-nav .sub-menu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
	.main-nav .sub-menu .current-menu-item > a { background: rgba(255, 255, 255, .12); color: #fff; }
	.main-nav .sub-menu .submenu-toggle { color: #fff; }
	.main-nav .sub-menu .submenu-toggle:hover { background: rgba(255, 255, 255, .12); color: #fff; }
	.main-nav .menu > li.menu-cta { margin: 1.2rem 0 0; border: 0; }
	.main-nav .menu > li.menu-cta > a, .main-nav .menu > li.menu-cta.menu-item-has-children > a { text-align: center; padding: 1rem; border-radius: var(--pill); }
	.main-nav .menu > li.menu-cta > .submenu-toggle { display: none; }
	.main-nav .menu > li.menu-cta > .sub-menu { display: none !important; }
	.topbar { display: none; }
	.header-actions { margin-left: auto; }
}

@media (max-width: 1000px) {
	.tiles { grid-template-columns: repeat(2, 1fr); }
	.card-grid { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.page-layout.has-sidenav { grid-template-columns: 1fr; gap: 28px; }
	.sidenav { position: static; }
	.sidenav__toggle {
		display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: .9rem 1.3rem;
		background: var(--mint); border: 2px solid var(--teal-200); border-radius: var(--pill); color: var(--teal-900); font: 700 1rem/1.2 var(--font); cursor: pointer;
	}
	.sidenav__toggle .icon { transition: transform .2s; }
	.sidenav.is-open .sidenav__toggle .icon { transform: rotate(180deg); }
	.js .sidenav__panel { display: none; margin-top: 10px; }
	.js .sidenav.is-open .sidenav__panel { display: block; }
	.sidenav__title { display: none; }
	.steps-wrap__head { position: static; }
}

@media (max-width: 899px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__visual { max-width: 560px; margin: 0 6px 38px; }
	.stamp { left: auto; right: -6px; bottom: -34px; width: 148px; height: 148px; }
	.welcome, .path, .arrive, .steps-wrap { grid-template-columns: 1fr; }
	.news { grid-template-columns: 1fr; }
	.cards2 { grid-template-columns: 1fr; }
	.visit__card { grid-template-columns: 1fr; }
	.visit__actions { grid-auto-flow: column; grid-auto-columns: 1fr; min-width: 0; }
	.band__inner { flex-wrap: wrap; }
	.band__link { margin-left: 0; }
}

@media (max-width: 640px) {
	body { font-size: 1rem; }
	.container { width: min(100% - 36px, 1200px); }
	.tiles, .card-grid { grid-template-columns: 1fr; }
	.facts { grid-template-columns: 1fr 1fr; gap: 12px; }
	.fact { padding: 16px; }
	.tile { padding: 22px 22px 70px; }
	.tile .icon-disc { width: 48px; height: 48px; }
	.doors { grid-template-columns: 1fr; }
	.door { flex-direction: row; justify-content: flex-start; text-align: left; padding: 14px 16px; }
	.door .icon-disc { width: 48px; height: 48px; }
	.award { grid-template-columns: 1fr; text-align: left; }
	.award img { width: 140px; }
	.row-card { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 16px; }
	.row-card .icon-disc { width: 48px; height: 48px; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 32px; padding-block: 48px 32px; }
	.card--row .card__media { width: 104px; }
	.hero__actions .btn { width: 100%; }
	.visit__actions { grid-auto-flow: row; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: 1; text-align: left; }
	.partners__list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.partner { padding: 16px 10px 14px; }
	.band { margin-top: -40px; }
	.band__inner { padding: 1rem 1.1rem; border-radius: 24px; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 1em 0; }
	.stair { padding: 11px 14px; gap: 10px; }
	.step { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
	.step__no { width: 48px; height: 48px; font-size: 1.2rem; }
	.step:not(:last-child)::before { left: 22px; top: 52px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.hero__card { transform: none; }
}

/* Sanftes Einblenden beim Scrollen (nur mit JavaScript) */
.js .reveal { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s ease, transform .22s, box-shadow .22s, border-color .22s, background .22s; }
.js .reveal.is-visible { opacity: 1; translate: none; }

/* 10 · Druck ----------------------------------------------------------------- */

@media print {
	.topbar, .notice-bar, .site-header, .visit, .site-footer__grid, .to-top, .sidenav, .search-panel, .partners__list, .section--profile, .section--quick, .band { display: none !important; }
	.page-head { background: none; color: #000; padding: 0 0 1rem; border-radius: 0; }
	.page-head::before, .page-head::after { display: none; }
	.breadcrumbs, .breadcrumbs a, .breadcrumbs ol { color: #000; }
	.page-layout { display: block; padding: 0; }
	body { font-size: 11pt; }
	a { color: #000; text-decoration: underline; }
	.js .reveal { opacity: 1 !important; translate: none !important; }
}
