/*
Theme Name: EKS neu
Theme URI: https://www.erasmus-kittler-schule.de
Author: Erasmus-Kittler-Schule Darmstadt
Description: Responsives Theme der Erasmus-Kittler-Schule (Entwurf A, klar und strukturiert) mit Bilderwechsel, Servicezeile und dezenten Animationen. Schriften werden lokal geladen (keine Verbindung zu Google).
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eks
*/

/* ------------------------------------------------------------
   1. Schriften (lokal, DSGVO-konform)
------------------------------------------------------------ */
@font-face {
	font-family: "Barlow";
	src: url("fonts/Barlow-SemiBold.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Barlow";
	src: url("fonts/Barlow-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Sans 3";
	src: url("fonts/SourceSans3.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}

/* ------------------------------------------------------------
   2. Grundwerte
------------------------------------------------------------ */
:root {
	--eks-blue: #0a4d8c;
	--eks-navy: #062b52;
	--eks-sky: #eaf2fa;
	--eks-mist: #f5f8fc;
	--eks-line: #d5e1ee;
	--eks-text: #1b2a3a;
	--eks-muted: #4a5b6d;
	--eks-white: #ffffff;

	--font-head: "Barlow", "Segoe UI", "Helvetica Neue", sans-serif;
	--font-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;

	--max: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--section: clamp(40px, 6vw, 72px);
	--radius: 12px;
	--shadow: 0 6px 16px rgba(6, 43, 82, 0.08);
}

@media (min-width: 1440px) {
	:root { --max: 1320px; }
}
@media (min-width: 1920px) {
	:root { --max: 1440px; }
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--eks-white);
	color: var(--eks-text);
	font-family: var(--font-body);
	font-size: clamp(16px, 0.3vw + 15px, 18px);
	line-height: 1.6;
	overflow-wrap: break-word;
}

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

a { color: var(--eks-blue); text-underline-offset: 0.15em; }
a:hover { color: var(--eks-navy); }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.15;
	color: var(--eks-navy);
	margin: 0 0 0.5em;
	hyphens: auto;
	-webkit-hyphens: auto;
}
h1 { font-size: clamp(32px, 4.2vw + 12px, 54px); }
h2 { font-size: clamp(26px, 2vw + 16px, 36px); }
h3 { font-size: clamp(20px, 0.8vw + 16px, 26px); }
h4 { font-size: 20px; }

p { margin: 0 0 1em; }

:focus-visible {
	outline: 3px solid #f2a900;
	outline-offset: 2px;
}

.container {
	width: min(100% - 2 * var(--gutter), var(--max));
	margin-inline: auto;
}

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

.skip-link {
	position: absolute;
	left: 12px; top: -60px;
	z-index: 1000;
	background: var(--eks-navy);
	color: var(--eks-white);
	padding: 10px 16px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--eks-white); }

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

/* ------------------------------------------------------------
   3. Servicezeile und Kopfbereich
------------------------------------------------------------ */
.service-bar { display: none; background: var(--eks-navy); color: var(--eks-white); font-size: 14px; }
.service-bar a { color: var(--eks-white); text-decoration: none; }
.service-bar a:hover { text-decoration: underline; color: var(--eks-white); }
.service-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-block: 8px; }
.service-menu, .service-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
@media (min-width: 1200px) { .service-bar { display: block; } }

.site-header { background: var(--eks-white); position: relative; z-index: 50; border-bottom: 1px solid var(--eks-line); }
.header-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 12px;
}
.brand {
	display: flex; align-items: center; gap: 12px;
	text-decoration: none; color: var(--eks-navy); min-width: 0;
}
.brand:hover { color: var(--eks-navy); }
.brand .custom-logo { display: block; width: auto; max-height: 52px; }
.brand-mark {
	flex: 0 0 auto;
	width: 48px; height: 48px;
	border-radius: 8px;
	background: var(--eks-blue);
	color: var(--eks-white);
	font-family: var(--font-head); font-weight: 700; font-size: 17px;
	display: flex; align-items: center; justify-content: center;
}
.brand-text { line-height: 1.2; min-width: 0; }
.brand-name { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(17px, 1.1vw + 13px, 23px); }
.brand-claim { display: block; font-size: 14px; color: var(--eks-muted); }

.header-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.icon-button {
	width: 44px; height: 44px;
	border: 1px solid var(--eks-line);
	background: var(--eks-white);
	color: var(--eks-navy);
	border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer; padding: 0;
}
.icon-button:hover { background: var(--eks-sky); }
.icon-button svg { width: 20px; height: 20px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ------------------------------------------------------------
   4. Navigation – mobil und Tablet (unter 1200 px)
------------------------------------------------------------ */
.header-main { flex-wrap: wrap; }
.brand { order: 1; flex: 1 1 0; }
@media (max-width: 479px) {
	.brand-claim { display: none; }
	.brand .custom-logo { max-height: 44px; }
	.brand-mark { width: 42px; height: 42px; font-size: 15px; }
}
.header-actions { order: 2; }
.site-nav {
	display: none;
	order: 3;
	flex: 1 1 100%;
	margin: 0 calc(-1 * var(--gutter)) -12px;
	background: var(--eks-blue);
}
.site-nav.is-open { display: block; animation: eks-drop 0.25s ease-out; }

.primary-menu, .primary-menu ul { list-style: none; margin: 0; padding: 0; }
.primary-menu > li { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.primary-menu li { position: relative; display: flex; flex-wrap: wrap; align-items: center; }
.primary-menu a {
	flex: 1 1 auto;
	display: block;
	padding: 14px var(--gutter);
	color: var(--eks-white);
	text-decoration: none;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 18px;
}
.primary-menu a:hover { background: rgba(255, 255, 255, 0.1); color: var(--eks-white); }
.submenu-toggle {
	flex: 0 0 auto;
	width: 52px; height: 52px;
	margin-right: calc(var(--gutter) - 12px);
	border: 0; background: transparent; color: var(--eks-white);
	cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
}
.submenu-toggle svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.is-open > .submenu-toggle svg { transform: rotate(180deg); }
.primary-menu .sub-menu { display: none; flex: 1 1 100%; background: var(--eks-navy); }
.primary-menu .is-open > .sub-menu { display: block; }
.primary-menu .sub-menu a {
	font-family: var(--font-body); font-weight: 400; font-size: 17px;
	padding: 12px var(--gutter) 12px calc(var(--gutter) + 16px);
}
.primary-menu .sub-menu .sub-menu a { padding-left: calc(var(--gutter) + 32px); }

.service-mobile { padding: 12px var(--gutter) 18px; background: var(--eks-navy); }
.service-mobile ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.service-mobile a {
	display: inline-block;
	color: var(--eks-white);
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 15px;
	font-weight: 600;
}
.service-mobile a:hover { background: rgba(255, 255, 255, 0.12); color: var(--eks-white); }

/* ------------------------------------------------------------
   5. Navigation – Desktop (ab 1200 px, im Kopf neben dem Logo)
------------------------------------------------------------ */
@media (min-width: 1200px) {
	.header-main { padding-block: 16px; }
	.brand-mark { width: 56px; height: 56px; font-size: 20px; }
	.brand .custom-logo { max-height: 64px; }
	.menu-toggle { display: none; }
	.service-mobile { display: none; }

	.header-main { display: grid; grid-template-columns: auto 1fr auto; }
	.brand, .site-nav, .header-actions { order: 0; }
	.brand { flex: none; }
	.site-nav, .site-nav.is-open { display: block; background: transparent; animation: none; margin: 0; }
	.primary-menu { display: flex; justify-content: flex-end; flex-wrap: wrap; }
	.primary-menu > li { border: 0; flex-wrap: nowrap; }
	.primary-menu > li > a {
		color: var(--eks-navy);
		padding: 12px 12px;
		font-size: 17px;
		border-radius: 6px;
	}
	.primary-menu > li > a:hover { background: var(--eks-sky); color: var(--eks-navy); }
	.primary-menu .current-menu-item > a,
	.primary-menu .current-menu-ancestor > a { color: var(--eks-blue); }
	.primary-menu > li > .submenu-toggle {
		width: 26px; height: 26px; margin: 0 4px 0 -8px;
		color: var(--eks-navy); border-radius: 4px;
	}
	.primary-menu > li > .submenu-toggle svg { width: 14px; height: 14px; }

	.primary-menu > li > .sub-menu {
		display: block;
		position: absolute;
		top: calc(100% + 4px);
		left: 0;
		min-width: 280px;
		max-width: 380px;
		padding: 10px 0;
		background: var(--eks-white);
		border: 1px solid var(--eks-line);
		border-top: 3px solid var(--eks-blue);
		border-radius: 0 0 10px 10px;
		box-shadow: 0 14px 30px rgba(6, 43, 82, 0.14);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
	}
	.primary-menu > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
	.primary-menu > li:hover > .sub-menu,
	.primary-menu > li:focus-within > .sub-menu,
	.primary-menu > li.is-open > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity 0.18s ease, transform 0.18s ease;
	}
	/* Brücke, damit das Menü beim Überfahren des Spalts offen bleibt */
	.primary-menu > li > .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }

	.primary-menu .sub-menu li { display: block; }
	.primary-menu .sub-menu a { color: var(--eks-text); padding: 9px 20px; font-size: 16px; }
	.primary-menu .sub-menu a:hover { background: var(--eks-sky); color: var(--eks-navy); }
	/* Dritte Ebene (z. B. die einzelnen Downloads) nicht im Ausklappmenü zeigen:
	   der Punkt „Downloads“ führt auf seine Übersichtsseite mit Kacheln. */
	.primary-menu .sub-menu .submenu-toggle { display: none; }
	.primary-menu .sub-menu .sub-menu { display: none !important; }
	.primary-menu .sub-menu .menu-item-has-children > a::after { content: " ›"; color: var(--eks-muted); }
}

@keyframes eks-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------
   6. Startseite – Kopfbereich mit Bilderwechsel
------------------------------------------------------------ */
.hero { background: var(--eks-blue); color: var(--eks-white); padding-block: clamp(36px, 5vw, 64px) clamp(72px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.hero-welcome {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: clamp(19px, 0.9vw + 15px, 26px);
	line-height: 1.25;
	margin: 0 0 14px;
	color: #e6f0fa;
	max-width: 28em;
}
.hero h1 { color: var(--eks-white); font-size: clamp(36px, 4.6vw + 12px, 64px); line-height: 1.05; margin-bottom: 16px; }
.hero-lead { font-size: clamp(17px, 0.6vw + 15px, 20px); max-width: 32em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-light { background: var(--eks-white); color: var(--eks-navy); }
.btn-light:hover { background: var(--eks-sky); color: var(--eks-navy); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--eks-white); color: var(--eks-white); padding: 10px 20px; }
.btn-outline:hover { background: var(--eks-white); color: var(--eks-navy); }
.btn-blue { background: var(--eks-blue); color: var(--eks-white); }
.btn-blue:hover { background: var(--eks-navy); color: var(--eks-white); }
.btn-ghost { border: 2px solid var(--eks-blue); color: var(--eks-blue); padding: 10px 20px; }
.btn-ghost:hover { background: var(--eks-blue); color: var(--eks-white); }

.slideshow {
	position: relative;
	aspect-ratio: 3 / 2;
	border-radius: 14px;
	overflow: hidden;
	background: var(--eks-navy);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.slide {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1s ease;
}
.slide.is-active { opacity: 1; }
.slideshow-controls {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 10px 12px;
	background: linear-gradient(to top, rgba(6, 43, 82, 0.55), rgba(6, 43, 82, 0));
}
.slide-dots { display: flex; gap: 2px; }
.slide-dot {
	width: 32px; height: 32px;
	border: 0; padding: 0;
	background: transparent;
	cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
}
.slide-dot span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); transition: width 0.25s ease, background-color 0.25s ease; }
.slide-dot[aria-current="true"] span { width: 22px; border-radius: 6px; background: var(--eks-white); }
.slideshow-toggle {
	width: 40px; height: 40px;
	border: 0; border-radius: 50%;
	background: rgba(6, 43, 82, 0.8);
	color: var(--eks-white);
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer;
}
.slideshow-toggle svg { width: 16px; height: 16px; }
.slideshow-toggle .icon-play { display: none; }
.slideshow-toggle.is-paused .icon-play { display: block; }
.slideshow-toggle.is-paused .icon-pause { display: none; }

/* Hinweiskarten, die in den blauen Bereich hineinragen */
.teasers { margin-top: clamp(-64px, -5vw, -40px); position: relative; z-index: 2; }
.teaser-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 768px) { .teaser-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.teaser {
	height: 100%;
	display: flex; flex-direction: column;
	padding: clamp(20px, 2vw, 26px);
	background: var(--eks-white);
	border: 1px solid var(--eks-line);
	border-radius: var(--radius);
	box-shadow: 0 10px 24px rgba(6, 43, 82, 0.1);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.teaser:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(6, 43, 82, 0.16); }
.teaser h2 { font-size: clamp(20px, 0.6vw + 17px, 23px); margin-bottom: 6px; }
.teaser p { margin-bottom: 12px; }
.teaser a { margin-top: auto; font-weight: 600; }

/* ------------------------------------------------------------
   7. Startseite – Neuigkeiten als Blöcke und Termine
------------------------------------------------------------ */
.news-dates { padding-block: var(--section); display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 1024px) { .news-dates { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; } }
.news-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }
.news-head h2 { margin: 0; }
.news-head a { font-weight: 600; }
.news-blocks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 600px) { .news-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.news-block {
	height: 100%;
	display: flex; flex-direction: column;
	background: var(--eks-white);
	border: 1px solid var(--eks-line);
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	color: var(--eks-text);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.news-block:hover { transform: translateY(-3px); border-color: #9db6d1; box-shadow: 0 14px 28px rgba(6, 43, 82, 0.12); color: var(--eks-text); }
.news-block-media { display: block; aspect-ratio: 16 / 9; background: var(--eks-line); }
.news-block-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-block-body { display: flex; flex-direction: column; gap: 8px; padding: clamp(18px, 2vw, 22px); flex: 1 1 auto; }
.news-block time { font-size: 14px; color: var(--eks-muted); }
.news-block-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(19px, 0.5vw + 17px, 22px); line-height: 1.22; color: var(--eks-navy); margin: 0; }
.news-block-excerpt {
	font-size: 16px;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.news-block-more { margin-top: auto; padding-top: 4px; font-weight: 600; color: var(--eks-blue); }
.news-block:hover .news-block-more { text-decoration: underline; }

.dates-box { background: var(--eks-sky); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); align-self: start; }
.dates-box h2 { font-size: clamp(24px, 1vw + 19px, 30px); }
.dates-list { list-style: none; margin: 0 0 6px; padding: 0; }
.dates-list li { display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr); gap: 4px 14px; padding: 10px 0; border-bottom: 1px solid #c9d8e8; }
.dates-list strong { color: var(--eks-blue); }
.more-link { display: inline-block; margin-top: 16px; font-weight: 600; }

/* ------------------------------------------------------------
   8. Startseite – Schulformen
------------------------------------------------------------ */
.schoolforms { background: var(--eks-mist); padding-block: var(--section); }
.schoolforms-intro { color: var(--eks-muted); margin-bottom: 28px; }
.sf-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 600px)  { .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .sf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sf-card {
	height: 100%;
	display: flex; flex-direction: column;
	background: var(--eks-white);
	border: 1px solid var(--eks-line);
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	color: var(--eks-text);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.sf-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(6, 43, 82, 0.14); color: var(--eks-text); }
.sf-media { aspect-ratio: 16 / 10; background: var(--eks-line); }
.sf-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.sf-title { font-family: var(--font-head); font-weight: 700; font-size: 21px; line-height: 1.2; color: var(--eks-navy); }
.sf-text { font-size: 16px; }
.sf-more { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--eks-blue); }

/* ------------------------------------------------------------
   9. Startseite – Kontakt und Anfahrt
------------------------------------------------------------ */
.visit { padding-block: var(--section); display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
@media (min-width: 1024px) { .visit { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; } }
.visit dl { margin: 0 0 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 18px; }
@media (min-width: 480px) { .visit dl { grid-template-columns: auto minmax(0, 1fr); } }
.visit dt { font-weight: 600; color: var(--eks-navy); }
.visit dd { margin: 0 0 10px; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.visit-media { border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--eks-line); box-shadow: var(--shadow); }
.visit-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ------------------------------------------------------------
   Bereichsübersicht: Unterpunkte eines Reiters als Kacheln
------------------------------------------------------------ */
.area-page { padding-block: clamp(32px, 4vw, 56px) var(--section); }
.area-intro { margin-bottom: 32px; }
.area-in-page { margin-top: 40px; }
.page-hero + .visit, .page-hero + .container.visit { padding-bottom: 0; }
.area-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 600px)  { .area-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .area-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.area-tiles > li { display: flex; }
.area-tile {
	flex: 1 1 auto;
	display: flex; flex-direction: column; gap: 8px;
	min-height: 150px;
	padding: clamp(20px, 2vw, 26px);
	background: var(--eks-white);
	border: 1px solid var(--eks-line);
	border-top: 4px solid var(--eks-blue);
	border-radius: var(--radius);
	text-decoration: none;
	color: var(--eks-text);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.area-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(6, 43, 82, 0.14); color: var(--eks-text); }
.area-tile-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(19px, 0.5vw + 17px, 22px); line-height: 1.22; color: var(--eks-navy); }
.area-tile-text { font-size: 16px; color: var(--eks-muted); }
.area-tile-more { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--eks-blue); }
.area-tile:hover .area-tile-more { text-decoration: underline; }

/* Suchleiste */
.search-panel {
	background: var(--eks-sky);
	padding-block: 14px;
}
.search-panel[hidden] { display: none; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1 1 auto; }
.search-field {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	font: inherit;
	border: 1px solid #9db6d1;
	border-radius: 8px;
	background: var(--eks-white);
	color: var(--eks-text);
}
.search-submit, .button, .wp-block-button__link {
	min-height: 48px;
	padding: 10px 20px;
	font: inherit;
	font-weight: 600;
	border: 0;
	border-radius: 8px;
	background: var(--eks-blue);
	color: var(--eks-white);
	cursor: pointer;
	text-decoration: none;
	display: inline-flex; align-items: center; justify-content: center;
}
.search-submit:hover, .button:hover, .wp-block-button__link:hover { background: var(--eks-navy); color: var(--eks-white); }


/* Partner */
.partners { padding-block: var(--section); border-top: 1px solid var(--eks-line); }
.partners h2 { font-size: clamp(22px, 1vw + 18px, 28px); }
.partner-list {
	list-style: none; margin: 0; padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}
.partner-list li { display: flex; flex: 0 1 calc(50% - 7px); }
@media (min-width: 768px)  { .partner-list li { flex-basis: 220px; } }
.partner-list a, .partner-list li > img { flex: 1 1 auto; }
.partner-list a {
	display: flex; align-items: center; justify-content: center;
	min-height: 104px;
	padding: 14px;
	border: 1px solid var(--eks-line);
	border-radius: 10px;
	background: var(--eks-white);
}
.partner-list a:hover { border-color: var(--eks-blue); }
.partner-list img { max-height: 76px; width: auto; max-width: 100%; object-fit: contain; }


/* ------------------------------------------------------------
   8. Beiträge (Startseite und Übersichten)
------------------------------------------------------------ */
.news { padding-block: var(--section); }
.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 20px;
}
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; }

.post-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
}
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }


.post-card { display: flex; }
.post-card > .news-block { flex: 1 1 auto; }
.post-card-media {
	aspect-ratio: 16 / 10;
	border-radius: 10px;
	overflow: hidden;
	background: var(--eks-line);
}
.post-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-placeholder {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	background: var(--eks-blue);
	color: rgba(255, 255, 255, 0.85);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 28px;
}
.post-card time { display: block; margin-top: 12px; font-size: 14px; color: var(--eks-muted); }
.post-card-title {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.25;
	color: var(--eks-navy);
	margin: 2px 0 0;
}
.post-card a:hover .post-card-title { text-decoration: underline; }


/* ------------------------------------------------------------
   10. Unterseiten
------------------------------------------------------------ */
.page-hero { background: var(--eks-sky); padding-block: clamp(28px, 4vw, 48px); }
.page-hero h1 { margin: 0; font-size: clamp(28px, 2.6vw + 14px, 46px); }
.page-hero .meta { margin: 8px 0 0; color: var(--eks-muted); }

.breadcrumbs { font-size: 14px; margin-bottom: 10px; color: var(--eks-muted); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: var(--eks-muted); }

.page-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
	padding-block: clamp(32px, 4vw, 56px) var(--section);
}
@media (min-width: 1024px) {
	.page-layout.has-aside { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
}

.section-nav {
	align-self: start;
	background: var(--eks-mist);
	border-radius: var(--radius);
	padding: 20px;
}
@media (min-width: 1024px) { .section-nav { position: sticky; top: 24px; } }
.section-nav h2 { font-size: 20px; margin-bottom: 10px; }
.section-nav ul { list-style: none; margin: 0; padding: 0; }
.section-nav a {
	display: block;
	padding: 9px 10px;
	border-radius: 6px;
	text-decoration: none;
	color: var(--eks-text);
}
.section-nav a:hover { background: var(--eks-sky); }
.section-nav .current_page_item > a { background: var(--eks-blue); color: var(--eks-white); font-weight: 600; }
.section-nav .children { padding-left: 12px; }

/* Inhalt aus dem Block-Editor */
.entry-content { max-width: 46em; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: 0.3em; }
.entry-content img { border-radius: 8px; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { font-size: 14px; color: var(--eks-muted); margin-top: 6px; }
.entry-content blockquote {
	margin: 1.5em 0;
	padding: 16px 20px;
	background: var(--eks-mist);
	border-radius: 8px;
}
.entry-content .alignwide { max-width: none; }
.entry-content .alignleft { float: left; margin: 0.3em 1.5em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: 0.3em 0 1em 1.5em; max-width: 50%; }
.entry-content .aligncenter { margin-inline: auto; }
@media (max-width: 599px) {
	.entry-content .alignleft, .entry-content .alignright { float: none; max-width: 100%; margin: 1em 0; }
}

/* Tabellen: auf schmalen Bildschirmen seitlich scrollbar */
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content .wp-block-table,
.entry-content .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content > table { display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--eks-line); text-align: left; vertical-align: top; }
.entry-content .wp-block-table td, .entry-content .wp-block-table th { border: 0; border-bottom: 1px solid var(--eks-line); }
.entry-content .wp-block-table thead { border-bottom: 2px solid var(--eks-blue); }
.entry-content .wp-block-table table, .entry-content .table-scroll table { min-width: 560px; }
.entry-content th { background: var(--eks-sky); color: var(--eks-navy); font-weight: 600; }

/* Download-Blöcke */
.wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	padding: 14px 16px;
	border: 1px solid var(--eks-line);
	border-radius: 10px;
}
.wp-block-file a:not(.wp-block-file__button) { font-weight: 600; }
.wp-block-file .wp-block-file__button {
	background: var(--eks-blue);
	color: var(--eks-white);
	border-radius: 8px;
	padding: 8px 16px;
	text-decoration: none;
	font-weight: 600;
}
.wp-block-file .wp-block-file__button:hover { background: var(--eks-navy); }

.wp-block-embed__wrapper iframe, .entry-content iframe { width: 100%; }

/* Beitragsliste, Suche */
.result-list { list-style: none; margin: 0; padding: 0; max-width: 46em; }
.result-list li { padding: 18px 0; border-bottom: 1px solid var(--eks-line); }
.result-list h2 { font-size: 22px; margin-bottom: 4px; }
.result-list h2 a { text-decoration: none; }

.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.page-numbers {
	min-width: 44px; min-height: 44px;
	padding: 8px 12px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--eks-line);
	border-radius: 8px;
	text-decoration: none;
}
.page-numbers.current { background: var(--eks-blue); border-color: var(--eks-blue); color: var(--eks-white); }

.post-thumbnail { margin: 0 0 24px; }
.post-thumbnail img { border-radius: var(--radius); width: 100%; }

.admin-hint {
	padding: 14px 16px;
	border: 2px dashed #9db6d1;
	border-radius: 8px;
	color: var(--eks-muted);
	font-size: 15px;
}


/* ------------------------------------------------------------
   11. Fußbereich
------------------------------------------------------------ */
.site-footer { background: var(--eks-navy); color: var(--eks-white); font-size: 15px; }
.site-footer a { color: var(--eks-white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--eks-white); }

.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	padding-block: clamp(36px, 5vw, 56px) 28px;
}
@media (min-width: 600px)  { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); } }

.footer-title {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 18px;
	color: var(--eks-white);
	margin: 0 0 10px;
}
.footer-contact p { margin: 0 0 6px; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 6px; }
.footer-menu a { display: inline-block; padding: 3px 0; }

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	padding-block: 16px 24px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 20px;
	font-size: 14px;
}
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }


/* ------------------------------------------------------------
   Animationen (nur mit JavaScript, ruhen bei „Bewegung reduzieren“)
------------------------------------------------------------ */
.js .hero-text > * { opacity: 0; transform: translateY(16px); animation: eks-rise 0.7s cubic-bezier(.2,.7,.2,1) forwards; }
.js .hero-text > *:nth-child(2) { animation-delay: 0.08s; }
.js .hero-text > *:nth-child(3) { animation-delay: 0.16s; }
.js .hero-text > *:nth-child(4) { animation-delay: 0.24s; }
.js .hero-media { opacity: 0; animation: eks-fade 0.9s ease 0.2s forwards; }
@keyframes eks-rise { to { opacity: 1; transform: none; } }
@keyframes eks-fade { to { opacity: 1; } }

.reveal-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
.reveal-ready .reveal-group > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1); }
.reveal-ready .reveal-group.is-visible > * { opacity: 1; transform: none; }
.reveal-ready .reveal-group.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-ready .reveal-group.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-ready .reveal-group.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-ready .reveal-group.is-visible > *:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
	.js .hero-text > *, .js .hero-media, .reveal-ready .reveal, .reveal-ready .reveal-group > * { opacity: 1 !important; transform: none !important; animation: none !important; }
	.teaser:hover, a.sf-card:hover, .btn-light:hover, .news-block:hover, .area-tile:hover { transform: none; }
}

/* ------------------------------------------------------------
   12. Druck
------------------------------------------------------------ */
@media print {
	.site-nav, .header-actions, .search-panel, .section-nav, .quicklinks { display: none !important; }
	.hero, .page-hero, .audience, .site-footer { background: none !important; color: #000 !important; }
	a { color: #000; }
}

