/* Source Sans 3, SIL Open Font License – lokal, nicht über Google Fonts */
@font-face {
	font-family: "Source Sans 3";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/source-sans-3-400-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Source Sans 3";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/source-sans-3-400-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/source-sans-3-400-normal-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/source-sans-3-400-normal-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/source-sans-3-600-normal-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/source-sans-3-600-normal-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/source-sans-3-700-normal-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/source-sans-3-700-normal-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
	--blue:         #4081CF;
	--blue-deep:    #26518c;
	--brand:        #2f68b8;
	--brand-dark:   #26518c;
	--accent:       #4081CF;
	--text:         #2b3038;
	--muted:        #5a6b82;
	--bg:           #ffffff;
	--bg-alt:       #eef3fb;
	--border:       #dbe4f2;
	--maxw:         1160px;
	--font:         "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { font-size: 16px; scrollbar-gutter: stable; }

body {
	margin: 0;
	font-family: var(--font);
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);

	display: flex;
	flex-direction: column;
	min-height: 100svh;
}
#content, .main-layout { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

/* width: 100% nötig, weil .main-layout Flex-Kind des body ist */
.container {
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 1.25rem;
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

.visually-hidden {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Logo auf den Unterseiten */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 500; height: 0; }
.brand { position: absolute; left: 2.083vw; top: 2.4vw; display: block; }
.brand-logo { display: block; width: auto; height: clamp(52px, 7vw, 130px); }

.main-nav ul {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
}
.main-nav a {
	display: block;
	color: #fff;
	text-decoration: none;
	padding: .4rem .75rem;
	border-radius: 0;
	font-size: .95rem;
}
.main-nav a:hover { background: rgba(255,255,255,.15); color: #fff; }
.main-nav li.current a { background: var(--accent); color: #1a1a1a; font-weight: 600; }

.menu-toggle {
	position: fixed;
	top: 2.24vw;
	right: 2.8vw;
	width: 6.055vw;
	aspect-ratio: 118 / 146;
	z-index: 1001;
	padding: 0; border: 0; background: none; cursor: pointer;
	--mt-flaeche: #4081CF; --mt-linie: #4081CF; --mt-zeichen: #fff;
}
/* Über blauen Flächen umgekehrt, siehe main.js */
.menu-toggle.ist-invers { --mt-flaeche: #fff; --mt-linie: #fff; --mt-zeichen: #4081CF; }
.mt-badge { display: block; width: 100%; height: 100%; overflow: visible; }
.mt-flaeche { fill: var(--mt-flaeche); transition: fill .2s; }
.mt-linien { fill: none; stroke: var(--mt-linie); stroke-width: 3; transition: stroke .2s; }
.mt-zeichen { fill: none; stroke: var(--mt-zeichen); stroke-width: 4; transition: stroke .2s; }
.menu-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
body.menu-open .menu-toggle { opacity: 0; pointer-events: none; }

.menu-close {
	position: fixed;
	top: 2.24vw; right: 2.8vw;
	width: 6.055vw; aspect-ratio: 116.25 / 144.6;
	z-index: 1001;
	padding: 0; border: 0; background: none; cursor: pointer;
	opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.menu-close img { display: block; width: 100%; height: 100%; }
body.menu-open .menu-close { opacity: 1; pointer-events: auto; }

.page-hero {
	--kopf: max(5.5rem, 10.5vw);
	background: var(--blue);
	color: #fff;
	padding: var(--kopf) 0 clamp(2.25rem, 5vw, 4rem);
}
/* Banner mit Bild */
.page-hero.has-image {
	background-size: cover;
	background-position: center;
	border-top: 0;
	position: relative;
	min-height: min(64svh, calc(max(16rem, 28vw) + var(--kopf)));
	display: grid;
	align-content: end;
}
.page-hero.has-image::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(15, 40, 85, 0.30), rgba(15, 40, 85, 0.62));
}
.page-hero .container { position: relative; }
.page-hero .breadcrumbs { margin: 0 0 .65rem; color: rgba(255, 255, 255, 0.82); }
.page-hero .breadcrumbs a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.page-hero .breadcrumbs a:hover { color: #fff; }
.page-hero .breadcrumbs span { color: #fff; }
.page-hero h1 {
	margin: 0; color: #fff; font-weight: 700; line-height: 1.05;
	font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -0.02em;
}

.main-layout { padding-top: 2.5rem; padding-bottom: 4rem; }
.content { max-width: none; }
.content h1 { color: var(--blue-deep); margin: 0 0 1.25rem; font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -0.015em; line-height: 1.1; }
.content h2 { color: var(--blue-deep); margin: 3.5rem 0 .3rem; font-size: 1.7rem; letter-spacing: -0.01em; }
.content h3 { color: var(--brand); margin: 2.6rem 0 .2rem; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.textinhalt > h2:first-child, .textinhalt > h3:first-child { margin-top: 0; }

/* Abstand für Sprungmarken */
.content [id], .textinhalt [id] { scroll-margin-top: 2rem; }

/* Formatvorlage „Kurs-Symbol: …“ (H2), neue Symbole: assets/symbole/HINWEIS.txt */
.content h2[class*="kurs-"] {
	display: flex; align-items: center; gap: .6rem;
	margin-top: 3.75rem; padding-bottom: .5rem;
	border-bottom: 2px solid var(--border);
}
.content h2[class*="kurs-"]::before {
	content: ""; flex: 0 0 auto; width: 1.6rem; height: 1.6rem; background: var(--brand);
	-webkit-mask: var(--symbol) center / contain no-repeat; mask: var(--symbol) center / contain no-repeat;
}
.content h2.kurs-planet { --symbol: url("../assets/symbole/planet.svg"); }
.content h2.kurs-palette { --symbol: url("../assets/symbole/color-palette.svg"); }
.content h2.kurs-herz { --symbol: url("../assets/symbole/heart.svg"); }
.content h2.kurs-code { --symbol: url("../assets/symbole/code-slash.svg"); }
.content h2.kurs-geld { --symbol: url("../assets/symbole/cash.svg"); }
.content h2.kurs-werkzeug { --symbol: url("../assets/symbole/construct.svg"); }
.content h2.kurs-buch { --symbol: url("../assets/symbole/book.svg"); }
.content h2.kurs-musik { --symbol: url("../assets/symbole/musical-notes.svg"); }
.content h2.kurs-sport { --symbol: url("../assets/symbole/football.svg"); }
.content h2.kurs-sprache { --symbol: url("../assets/symbole/language.svg"); }
.content h2.kurs-natur { --symbol: url("../assets/symbole/leaf.svg"); }
.content h2.kurs-labor { --symbol: url("../assets/symbole/flask.svg"); }
.content h2.kurs-welt { --symbol: url("../assets/symbole/globe.svg"); }
.content h2.kurs-kamera { --symbol: url("../assets/symbole/camera.svg"); }

.content p, .content li { font-size: 1.4rem; line-height: 1.65; }
.content p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.content > p:first-of-type { font-size: 1.5rem; line-height: 1.5; color: #3a4658; }
.content a { color: var(--brand); text-underline-offset: 2px; }
.content ul { padding-left: 1.2rem; }
.content li { margin-bottom: .35rem; }
.content img { max-width: 100%; height: auto; border-radius: 0; }

/* Bilder im Text: abwechselnd rechts/links, Formatvorlagen „klein“, „hochkant“ */
.textinhalt > figure, .textinhalt > figure.align_right, .textinhalt img.align_right {
	float: right; clear: right;
	width: min(42%, 28rem);
	margin: .45rem 0 1.4rem 2.25rem;
}
.textinhalt > figure:nth-of-type(even), .textinhalt > figure.align_left, .textinhalt img.align_left {
	float: left; clear: left;
	margin: .45rem 2.25rem 1.4rem 0;
}
.textinhalt > figure.align_right { float: right; clear: right; margin: .45rem 0 1.4rem 2.25rem; }
.textinhalt > figure.align_center { float: none; width: auto; margin: 2.25rem 0; }
.textinhalt > figure.hoch { width: min(30%, 17rem); }
.textinhalt > figure.klein { width: fit-content; max-width: min(34%, 19rem); }
.textinhalt > figure.klein.hoch { max-width: min(24%, 13rem); }
.content figure img, .textinhalt img.align_left, .textinhalt img.align_right {
	display: block; width: auto; max-width: 100%; height: auto;
	box-shadow: -.65rem .65rem 0 var(--bg-alt);
}
.content figure:not(.klein) img { width: 100%; }
.textinhalt > figure:nth-of-type(even) img,
.textinhalt > figure.align_left img, .textinhalt img.align_left { box-shadow: .65rem .65rem 0 var(--bg-alt); }
.textinhalt > figure.align_right img { box-shadow: -.65rem .65rem 0 var(--bg-alt); }
.textinhalt > figure.align_center img { box-shadow: none; }
.content figcaption {
	margin-top: 1.15rem; font-size: 1rem; line-height: 1.45; color: var(--muted); text-align: left;
}

/* Formatvorlage „Bildreihe“ */
.content p.bildreihe {
	clear: both; margin: 1.5rem 0 2.25rem;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: start;
}
.content p.bildreihe img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.content p.bildreihe img:nth-of-type(3n+2) { margin-top: 1.25rem; }
.content p.bildreihe img:nth-of-type(3n)   { margin-top: 2.5rem; }

.textinhalt > h2, .textinhalt > h3 { clear: both; }
.textinhalt > ul, .textinhalt > ol, .textinhalt > table { overflow: hidden; }

@media (max-width: 640px) {
	.textinhalt > figure, .textinhalt > figure:nth-of-type(even),
	.textinhalt > figure.align_left, .textinhalt > figure.align_right,
	.textinhalt > figure.hoch, .textinhalt > figure.klein,
	.textinhalt img.align_left, .textinhalt img.align_right {
		float: none; width: auto; max-width: 100%; margin: 1.75rem 0;
	}
	.textinhalt > figure.hoch, .textinhalt > figure.klein { max-width: 20rem; }
	.content p.bildreihe { grid-template-columns: 1fr 1fr; }
	.content p.bildreihe img:nth-of-type(n) { margin-top: 0; }
}

/* Partnerlogos: <ul class="partner-logos"> */
.content .partner-logos {
	list-style: none; margin: 2rem 0 2.5rem; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
	gap: 1.25rem 2rem;
}
.content .partner-logos li { margin: 0; }
.content .partner-logos a {
	display: flex; align-items: center; justify-content: center;
	height: 5.5rem; padding: .5rem; background: #fff;
}
.content .partner-logos a:hover { background: var(--bg-alt); }
.content .partner-logos img { max-width: 100%; max-height: 100%; width: auto; height: auto; }

/* Tabellen, Formatvorlage „Zusatz (klein)“ = td small */
.content table { width: 100%; margin: 1.25rem 0 2.25rem; border-collapse: collapse; font-size: 1.15rem; line-height: 1.4; }
.content th, .content td {
	text-align: left; vertical-align: top;
	padding: .75rem 1.25rem .75rem 0; border: 0; border-top: 1px solid var(--border);
}
.content thead th, .content thead td { border-top: 2px solid var(--brand); color: var(--blue-deep); font-weight: 600; white-space: nowrap; }
.content td small { display: block; margin-top: .15rem; font-size: .92rem; color: var(--muted); }
@media (max-width: 640px) {
	.content table:not(.datenblatt) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

.content p.modul-info { margin: 0 0 .6rem; font-size: 1.15rem; line-height: 1.5; color: var(--muted); text-align: left; }
.content p.stand { font-size: 1rem; color: var(--muted); text-align: left; }

/* Förderhinweis (IKT-Richtlinie) */
.content .foerder-satz {
	margin: 0 0 1.75rem; padding: 1.1rem 1.35rem;
	background: var(--bg-alt); border-left: 4px solid var(--brand); border-radius: 0;
	font-size: 1.12rem; line-height: 1.65; color: var(--text);
}
.content .foerder-logos { margin: 0 0 2.25rem; }
.content .foerder-logos img { max-width: 560px; width: 100%; border-radius: 0; }

/* Formatvorlage „Kennzahlen“ (Liste, Zahl in <strong>) */
.content ul.kennzahlen {
	list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem 3.5rem;
	margin: 2rem 0 2.5rem; padding: 1.5rem 0;
	border-top: 2px solid var(--brand); border-bottom: 1px solid var(--border);
}
.content ul.kennzahlen li { margin: 0; font-size: 1.05rem; line-height: 1.3; color: var(--muted); }
.content ul.kennzahlen strong {
	display: block; margin-bottom: .4rem;
	font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 600; line-height: 1; color: var(--brand);
}

/* Formatvorlage „Datenblatt“ (zweispaltige Tabelle) */
.content table.datenblatt { width: auto; min-width: min(100%, 26rem); margin: 0 0 2.5rem; font-size: 1.4rem; line-height: 1.55; }
.content table.datenblatt th, .content table.datenblatt td:first-child {
	width: 13rem; padding: .8rem 1.5rem .8rem 0; white-space: normal;
	font-size: 1.25rem; font-weight: 600; color: var(--blue-deep); border-top: 1px solid var(--border);
}
.content table.datenblatt td { padding: .8rem 0; }
@media (max-width: 640px) {
	.content table.datenblatt, .content table.datenblatt tbody,
	.content table.datenblatt tr, .content table.datenblatt th, .content table.datenblatt td { display: block; width: auto; }
	.content table.datenblatt th, .content table.datenblatt td:first-child { padding-bottom: 0; }
	.content table.datenblatt td:last-child { padding-top: .25rem; border-top: 0; }
}

/* Formatvorlage „Abschnitt“: H2 auf schiefer Fläche wie im Menü */
.content h2.abschnitt {
	margin: 4.5rem 0 1.4rem; padding: 1rem 1.5rem 1.1rem;
	background: var(--bg-alt); color: var(--blue-deep);
	clip-path: polygon(0 12%, 100% 0, 99.2% 100%, .6% 88%);
}

/* Formatvorlage „Tagesplan“, Zellfarben über die Vorlagen darunter */
.content table.tagesplan {
	table-layout: fixed; min-width: 40rem; margin: 1.75rem 0 1rem;
	border-collapse: separate; border-spacing: 3px; font-size: 1rem; line-height: 1.3;
}
.content .tagesplan th, .content .tagesplan td {
	padding: .55rem .5rem; border: 0; text-align: center; vertical-align: middle;
}
.content .tagesplan thead th { border: 0; color: var(--blue-deep); white-space: normal; }
.content .tagesplan tbody th { width: 8.5rem; text-align: left; font-weight: 600; color: var(--blue-deep); white-space: nowrap; }
.content .tagesplan thead th:first-child { width: 8.5rem; text-align: left; }
.tp-unterricht { --tp: #4081CF; }
.tp-ab7        { --tp: #26518c; }
.tp-ab11       { --tp: #B9CDEE; --tp-text: #26518c; }
.tp-ganztag    { --tp: #888FA1; }
.tp-ks         { --tp: #5a6273; }
.tp-pause      { --tp: #eef3fb; --tp-text: #26518c; }
.tp-modul      { --tp: linear-gradient(135deg, #888FA1 50%, #4081CF 50%); }
.content .tagesplan td[class*="tp-"] { background: var(--tp); color: var(--tp-text, #fff); font-weight: 600; }
.content .tagesplan td.tp-pause { padding-block: .3rem; font-weight: 400; }
.content .tagesplan td.tp-frei { background: none; }
.content ul.tagesplan-legende {
	list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem;
	margin: 0 0 1.5rem; padding: 0;
}
.content ul.tagesplan-legende li { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: 1.05rem; }
.content ul.tagesplan-legende li::before { content: ""; width: 1.4rem; height: 1rem; background: var(--tp); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
@media (max-width: 640px) {
	.content table.tagesplan { display: table; min-width: 0; border-spacing: 2px; font-size: .74rem; hyphens: auto; -webkit-hyphens: auto; }
	.content .tagesplan th, .content .tagesplan td { padding: .4rem .15rem; }
	.content .tagesplan tbody th, .content .tagesplan thead th:first-child { width: 3.6rem; white-space: normal; }
	.content .tagesplan thead th { font-size: .7rem; overflow: hidden; text-overflow: ellipsis; }
}

/* Formatvorlage „Link als Schaltfläche“ */
.content a.ext-link {
	display: inline-flex; align-items: center; gap: .5rem;
	font-size: 1.4rem; font-weight: 600;
}
.content a.ext-link::after, .content .kanal-hinweis a::before {
	content: ""; flex: 0 0 auto; width: 1.05rem; height: 1.05rem; background: currentColor;
	-webkit-mask: var(--symbol, url("../assets/symbole/open.svg")) center / contain no-repeat;
	        mask: var(--symbol, url("../assets/symbole/open.svg")) center / contain no-repeat;
}

/* Formatvorlage „Kanal-Links“, Symbol je nach Link-Adresse */
.content .kanal-hinweis { display: flex; flex-wrap: wrap; gap: .75rem; text-align: left; }
.content .kanal-hinweis a {
	display: inline-flex; align-items: center; gap: .55rem;
	padding: .65rem 1.15rem; background: var(--bg-alt);
	font-size: 1.2rem; font-weight: 600; text-decoration: none;
}
.content .kanal-hinweis a:hover { background: var(--border); }
.content .kanal-hinweis a::before { width: 1.4rem; height: 1.4rem; }
.content .kanal-hinweis a[href*="instagram"] { --symbol: url("../assets/symbole/logo-instagram.svg"); }
.content .kanal-hinweis a[href*="facebook"]  { --symbol: url("../assets/symbole/logo-facebook.svg"); }
.content .kanal-hinweis a[href*="youtube"], .content .kanal-hinweis a[href*="youtu.be"] { --symbol: url("../assets/symbole/logo-youtube.svg"); }

.post { padding: 0 0 2.75rem; margin: 0 0 2.75rem; }
.post:last-child { border-bottom: 0; }
.post-date { margin: 1rem 0 .1rem; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.post h2 { margin: 0 0 .5rem; }
.post > p:last-child { margin-top: 0; }

.post-gallery { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 0; background: #dbe4f2; }
.post-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: 0; transition: opacity .4s ease; }
.post-gallery img.is-active { opacity: 1; }
.pg-prev, .pg-next {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 40px; height: 40px; border: 0; border-radius: 0; cursor: pointer;
	background: rgba(0, 0, 0, .4); color: #fff;
	display: flex; align-items: center; justify-content: center;
}
.pg-prev:hover, .pg-next:hover { background: rgba(0, 0, 0, .6); }
.pg-prev { left: .6rem; } .pg-next { right: .6rem; }
.pg-prev ion-icon, .pg-next ion-icon { font-size: 20px; }
.pg-count {
	position: absolute; right: .6rem; bottom: .6rem;
	background: rgba(0, 0, 0, .55); color: #fff; font-size: .78rem;
	padding: .2rem .55rem; border-radius: 0;
}

.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs span { color: var(--text); }

.team-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.9rem 2rem; margin: 1.25rem 0 2.75rem;
}
.person { display: flex; align-items: center; gap: 1rem; }
.person-photo {
	flex: 0 0 auto; width: 116px; height: 116px; overflow: hidden;
	background: var(--bg-alt); display: block;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-info { display: flex; flex-direction: column; min-width: 0; }
.person-name { font-weight: 600; color: var(--text); font-size: 1.25rem; line-height: 1.25; }
.person-role { font-size: 1.08rem; color: var(--muted); line-height: 1.35; margin-top: .1rem; }

.person-photo { cursor: zoom-in; transition: box-shadow .15s ease; }
.person-photo:hover, .person-photo:focus-visible { box-shadow: 0 0 0 3px var(--blue); outline: none; }

.person-contact {
	display: inline-flex; align-items: center; gap: .3rem; margin-top: .35rem;
	font-size: 1rem; font-weight: 600; color: var(--brand); text-decoration: none;
}
.person-contact ion-icon { font-size: 1.05em; }
.person-contact:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Vergrößertes Porträt */
.foto-box {
	position: fixed; inset: 0; z-index: 1100;
	display: flex; align-items: center; justify-content: center; padding: 1.5rem;
	background: rgba(15, 40, 85, .82);
}
.foto-box__inhalt { margin: 0; background: var(--bg); border-radius: 0; overflow: hidden; max-width: 100%; }
.foto-box__inhalt img { display: block; width: 100%; height: auto; }
.foto-box__text { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1.1rem 1.05rem; }
.foto-box__text strong { color: var(--blue-deep); font-size: 1.05rem; }
.foto-box__text span { color: var(--muted); font-size: .9rem; line-height: 1.35; }
.foto-box__zu {
	position: absolute; top: 1.1rem; right: 1.25rem;
	width: 44px; height: 44px; border: 0; border-radius: 0;
	background: rgba(255,255,255,.16); color: #fff; font-size: 26px;
	display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.foto-box__zu:hover { background: rgba(255,255,255,.28); }
.foto-box__zu:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.hero {
	background: var(--bg-alt);
	padding: 1.5rem 1.75rem;
	margin-bottom: 2rem;
}
.hero h2 { margin-top: 0; color: var(--brand-dark); }

.cards h2 { color: var(--brand-dark); }
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
}
.card {
	display: block;
	text-decoration: none;
	color: inherit;
	padding: 1rem 1.1rem;
	background: var(--bg-alt);
	transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.card:hover {
	box-shadow: 0 6px 18px rgba(31,58,147,.12);
	transform: translateY(-2px);
	border-color: var(--brand);
}
.card h3 { margin: 0 0 .35rem; color: var(--brand); }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }

.subnav { margin-top: 2.5rem; padding-top: 0; }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.subnav a {
	display: inline-block;
	padding: .45rem .9rem;
	background: var(--bg-alt);
	text-decoration: none;
	color: var(--brand);
	font-size: .92rem;
	font-weight: 600;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.subnav a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

.edit-link { margin-top: 2rem; font-size: .85rem; }
.edit-link a { color: var(--muted); }

.site-footer {
	background: #26518c;
	color: rgba(255, 255, 255, 0.8);
	font-family: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
}
.footer-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding-top: 1.75rem;
	padding-bottom: 1.75rem;
}
.site-footer p { margin: 0; font-size: .9rem; }
.footer-nav a { color: #fff; text-decoration: none; margin-left: 1.25rem; font-size: .9rem; }
.footer-nav a:hover { text-decoration: underline; }

@media (max-width: 640px) {
	.brand-name { font-size: 1.1rem; }
	.footer-inner { flex-direction: column; align-items: flex-start; }
	.footer-nav a { margin: 0 1.25rem 0 0; }
}

.lead { max-width: 52ch; margin: 0 0 clamp(2.25rem, 5vw, 3.5rem); }
.lead :is(h1, h2, h3) {
	color: #fff; margin: 0 0 1.1rem;
	font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 700;
	letter-spacing: -0.02em; line-height: 1.08; max-width: 14ch;
}
.lead p {
	font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.55;
	color: rgba(255, 255, 255, 0.94); margin: 0 0 1rem; font-weight: 400;
}

.event { margin: clamp(1.75rem, 4vw, 2.75rem) 0 0; font-size: 1.05rem; }
.event-kicker { font-weight: 700; color: #fff; }
.event-date { color: rgba(255, 255, 255, 0.9); margin-left: .5rem; }

/* Lageplan, lädt erst nach Klick */
.content .karte-rahmen { position: relative; margin: 1.25rem 0 .75rem; background: var(--bg-alt); aspect-ratio: 16 / 10; }
.content .karte-rahmen iframe { display: block; width: 100%; height: 100%; border: 0; }
.content .karte-rahmen .sc-consent { height: 100%; justify-content: center; }
.content .karte-link { margin: 0 0 2rem; font-size: 1rem; text-align: left; }

.news { background: var(--bg-alt); padding: clamp(3rem, 6vw, 5rem) 0; font-family: var(--font); }
.news .container { max-width: 1120px; }
.news-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.news-head h2 { margin: 0; color: var(--blue-deep); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.015em; }
.news-all { color: var(--brand); font-weight: 600; text-decoration: none; white-space: nowrap; }
.news-all::after { content: " →"; }
.news-all:hover { text-decoration: underline; }
.news-intro { margin: -1rem 0 1.75rem; color: var(--muted); font-size: 1.02rem; }

/* Social Media (Zwei-Klick-Lösung) */
.social-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.75rem; align-items: start; justify-items: center; }
.sc { width: 100%; max-width: 420px; background: var(--bg-alt); overflow: hidden; }
.news .sc { background: var(--bg); }
.sc-head {
	display: flex; align-items: center; gap: .7rem;
	padding: 1.05rem 1.2rem; text-decoration: none; color: var(--blue-deep);
}
.sc-head h3 { margin: 0; font-size: 1.15rem; letter-spacing: -0.01em; color: inherit; }
.sc-logo { flex: 0 0 auto; font-size: 1.55rem; color: var(--brand); }
.sc-pfeil { flex: 0 0 auto; margin-left: auto; font-size: 1.1rem; color: var(--muted); transition: transform .15s ease; }
.sc-head:hover { color: var(--brand); }
.sc-head:hover .sc-pfeil { color: var(--brand); transform: translateX(3px); }
.sc-head:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }

.sc-frame { position: relative; }
.sc-frame iframe { display: block; width: 100%; height: var(--h, 620px); border: 0; }

.sc-consent { display: flex; flex-direction: column; align-items: center; gap: .85rem; padding: 2.5rem 1.5rem; text-align: center; }
.sc-consent-icon { font-size: 2rem; color: var(--brand); }
.sc-consent-lead { margin: 0; color: var(--blue-deep); font-weight: 600; font-size: 1.08rem; }
.sc-consent-note { margin: 0; max-width: 42ch; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.sc-consent-note a { color: var(--brand); }
.sc-load { border: 0; border-radius: 0; background: var(--brand); color: #fff; font-family: var(--font); font-size: 1rem; font-weight: 600; padding: .7rem 1.5rem; cursor: pointer; }
.sc-load:hover { background: var(--blue-deep); }
.sc-load:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.sc-remember { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .85rem; cursor: pointer; }
.sc-linkonly { margin: 0; padding: 1.75rem 1.5rem; text-align: center; color: var(--muted); }
.sc-linkonly a { color: var(--brand); font-weight: 600; }

@media (max-width: 820px) { .social-wall { grid-template-columns: 1fr; gap: 1.5rem; } }

body.menu-locked { overflow: hidden; }

.fmenu {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: #4081CF;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
	--s: min(calc(100vw / 1920), calc(100vh / 1200));
	visibility: hidden;
	opacity: 0;
	transition: opacity .3s ease, visibility 0s linear .3s;
}
body.menu-open .fmenu { visibility: visible; opacity: 1; transition: opacity .3s ease; }

.fmenu__stage { position: relative; width: calc(1920 * var(--s)); height: calc(1200 * var(--s)); }
.fmenu img { display: block; max-width: none; }
.fm-group { position: static; margin: 0; }
.fm-items { display: contents; }
.fm-panels, .fm-cat, .fm-i, .fm-soc { position: absolute; margin: 0; }

.fm-panels { left: calc(-15.82 * var(--s)); top: calc(40.58 * var(--s)); width: calc(1866.15 * var(--s)); height: calc(1043.35 * var(--s)); }

/* Signet 61:70 */
.fm-logo { position: fixed; left: 2.083vw; top: 2.396vw; width: 7vw; height: 8.033vw; margin: 0; z-index: 2; display: block; }
.fm-logo img { width: 100%; height: 100%; }

.fm-cat {
	left: calc(var(--l) * var(--s)); top: calc(var(--t) * var(--s));
	font-weight: 500; color: #fff; font-size: calc(40 * var(--s));
	line-height: 1.2; white-space: nowrap;
	transform: rotate(calc(var(--rot, 0) * 1deg)); transform-origin: left center;
}
.fm-cat.is-right { transform: translateX(-100%) rotate(calc(var(--rot, 0) * 1deg)); transform-origin: right center; text-align: right; }

.fm-i {
	/* gleicht den Versatz der Panel-Grafik aus */
	transform: translateX(calc(-14 * var(--s)));
	left: calc(var(--l) * var(--s)); top: calc(var(--t) * var(--s));
	font-size: calc(32 * var(--s)); line-height: 1.2; color: #7198D6;
	white-space: nowrap; text-decoration: none;
}
.fm-i:hover { color: #7198D6; text-decoration: underline; }

/* leere Seiten, siehe $zeigeFehlend in _menu.php */
.fm-i.fehlt-inhalt { color: #D93B4B; }
.fm-i.fehlt-inhalt:hover { color: #B62A38; }

.fm-socials { position: fixed; left: 2.6vw; bottom: 2vw; display: flex; align-items: flex-end; gap: 0; z-index: 2; margin: 0; }
.fm-soc + .fm-soc { margin-left: -1vw; }
.fm-soc:last-child { margin-left: .4vw; }
.fm-flaeche { display: none; }
.fm-soc {
	position: relative; left: auto; top: auto;
	height: 6.2vw; width: calc(6.2vw * var(--w) / var(--h));
	display: block;
}
.fm-soc-badge { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.fm-soc:hover { filter: brightness(0.92); }

@media (max-width: 820px) {

	.menu-toggle, .menu-close { width: 52px; top: .85rem; right: .85rem; }
	.brand { left: 1.25rem; top: 1.1rem; }
	.brand-logo { height: 60px; }

	.fmenu { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; }
	.fmenu__stage {
		position: static; width: 100%; height: auto; min-height: 100%;
		padding: 8rem 1.75rem 9rem;
		display: flex; flex-direction: column; gap: 3.6rem;
	}
	.fmenu .fm-panels { display: none; }

	.fmenu::before, .fmenu::after {
		content: ""; position: fixed; left: 0; right: 0; z-index: 1; pointer-events: none;
	}
	.fmenu::before { top: 0; height: 5.5rem; background: linear-gradient(to bottom, #4081CF 60%, rgba(64,129,207,0)); }
	.fmenu::after { bottom: 0; height: 7rem; background: linear-gradient(to top, #4081CF 60%, rgba(64,129,207,0)); }

	.fm-logo { position: fixed; top: .95rem; left: 1.25rem; width: 54px; height: 62px; margin: 0; z-index: 2; }

	.fm-group { position: relative; display: flex; flex-direction: column; }
	.fm-flaeche {
		display: block; position: absolute; inset: 0; width: 100%; height: 100%;
		overflow: visible; z-index: 0;
	}
	.fm-flaeche polygon { fill: #fff; }
	.fm-flaeche path { fill: none; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }

	.fm-cat, .fm-cat.is-right {
		position: absolute; left: 0; right: auto; bottom: calc(100% + .45rem); top: auto;
		transform: rotate(-2.5deg); transform-origin: left bottom;
		font-size: 1.45rem; white-space: nowrap; text-align: left;
	}
	.fm-group.is-right .fm-cat { left: auto; right: 0; transform-origin: right bottom; }
	/* untere Felder: Überschrift unter der Fläche, wie auf dem Desktop */
	.fm-group:nth-of-type(n+3) .fm-cat { bottom: auto; top: calc(100% + .7rem); transform: rotate(2.5deg); }
	.fm-group:nth-of-type(n+3) .fm-cat { transform-origin: left top; }
	.fm-group.is-right:nth-of-type(n+3) .fm-cat { transform-origin: right top; }

	.fm-items {
		position: relative; z-index: 1;
		display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem 1.2rem;
		padding: 1.9rem 10% 1.9rem 15%;
	}
	.fm-group:nth-of-type(2) .fm-items { padding: 2.1rem 15% 1.7rem 9%; }
	.fm-group:nth-of-type(3) .fm-items { padding: 1.5rem 9% 2.1rem 15%; }
	.fm-group:nth-of-type(4) .fm-items { padding: 1.5rem 15% 2.1rem 9%; }

	.fm-i {
		position: static; transform: none; display: block; white-space: nowrap;
		font-size: 1.12rem; line-height: 1.3; color: #4081CF;
	}

	.fm-socials { position: fixed; left: 1.25rem; bottom: 1.1rem; width: auto; height: auto; z-index: 2; display: flex; gap: 0; margin: 0; }
	.fm-soc {
		position: relative; left: auto; top: auto;
		height: 86px; width: calc(86px * var(--w) / var(--h)); flex: 0 0 auto;
	}

}

/* Rundgang */
.rundgang { clear: both; margin: 1.5rem 0 3rem; }
.rundgang__plan { position: relative; line-height: 0; }
.rundgang__plan img { display: block; width: 100%; height: auto; }
.rundgang[data-bearbeiten] .rundgang__plan { cursor: crosshair; }
.rundgang__punkt {
	position: absolute; left: var(--x); top: var(--y);
	width: 2.4rem; height: 2.4rem; padding: 0; border: 3px solid #fff; cursor: pointer;
	background: var(--blue); color: #fff;
	transform: translate(-50%, -50%);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .25);
}
.rundgang__punkt span { display: block; font: 700 1rem/1 var(--font); }
.rundgang__punkt:hover, .rundgang__punkt:focus-visible { background: var(--blue-deep); outline: none; }
.rundgang__punkt:focus-visible { box-shadow: 0 0 0 3px var(--blue-deep), 0 0 0 6px #fff; }
.rundgang__marke {
	position: absolute; left: var(--x); top: var(--y); width: 1.4rem; height: 1.4rem;
	border: 3px dashed #fff; transform: translate(-50%, -50%); pointer-events: none;
}
.rundgang__liste {
	list-style: none; margin: 1.5rem 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .5rem;
}
.rundgang__liste li { margin: 0; }
.rundgang__liste button {
	display: flex; align-items: center; gap: .8rem; width: 100%; padding: .7rem .9rem;
	border: 0; background: var(--bg-alt); color: var(--blue-deep); cursor: pointer; text-align: left;
	font: 600 1.15rem/1.3 var(--font);
}
.rundgang__liste button:hover, .rundgang__liste button:focus-visible { background: var(--border); outline: none; }
.rundgang__nr {
	flex: 0 0 auto; display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem;
	background: var(--blue); color: #fff; font-size: .95rem;
}
.rundgang__hilfe { margin: 1rem 0 0; font-size: 1rem; color: var(--muted); text-align: left; }
.rundgang__hilfe output { display: block; margin-top: .25rem; font-weight: 600; color: var(--blue-deep); }

.rundgang__ansicht {
	width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
	border: 0; background: #111; color: #fff;
}
.rundgang__ansicht[open] { display: flex; flex-direction: column; }
.rundgang__ansicht::backdrop { background: rgba(0, 0, 0, .85); }
.rundgang__kopf {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: .8rem 1.25rem; background: var(--blue);
}
.rundgang__kopf h2 { margin: 0; color: #fff; font-size: 1.35rem; }
.rundgang__kopf p { margin: .2rem 0 0; font-size: 1rem; line-height: 1.4; text-align: left; color: rgba(255, 255, 255, .88); }
.rundgang__knoepfe { display: flex; gap: .4rem; }
.rundgang__standorte { display: flex; gap: .25rem; margin-left: auto; }
.rundgang__standorte[hidden] { display: none; }
.rundgang__standorte button {
	padding: .45rem .8rem; border: 0; cursor: pointer;
	background: rgba(255, 255, 255, .16); color: #fff; font: 600 1rem/1.2 var(--font);
}
.rundgang__standorte button:hover, .rundgang__standorte button:focus-visible { background: rgba(255, 255, 255, .3); outline: none; }
.rundgang__standorte button[aria-pressed="true"] { background: #fff; color: var(--blue-deep); }
@media (max-width: 640px) {
	.rundgang__punkt { width: 1.55rem; height: 1.55rem; border-width: 2px; }
	.rundgang__punkt span { font-size: .75rem; }
	.rundgang__kopf { flex-wrap: wrap; }
	.rundgang__standorte { order: 3; margin-left: 0; width: 100%; }
}
.rundgang__knoepfe button {
	display: grid; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0; border: 0; cursor: pointer;
	background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.4rem;
}
.rundgang__knoepfe button:hover, .rundgang__knoepfe button:focus-visible { background: rgba(255, 255, 255, .3); outline: none; }
.rundgang__panorama { flex: 1; min-height: 0; }
/* Pannellum ohne Rundungen */
.rundgang__ansicht .pnlm-controls, .rundgang__ansicht .pnlm-zoom-controls, .rundgang__ansicht .pnlm-control { border-radius: 0; }
