/*
Theme Name: AfD Kreistagsfraktion Mittelsachsen
Theme URI: https://afd-kreistag-mittelsachsen.de/
Author: Robert Rösler
Author URI: https://robertroesler.de/
Description: Eigenes Theme für die AfD-Kreistagsfraktion Mittelsachsen. Startseite mit Slider, Kennzahlen, Aktuelles, Terminen und Kontaktformular – alle Inhalte über „Design → Customizer“ pflegbar. Keine externen Ressourcen (Schriften lokal), kein Tracking. Enthält eine Übergangshilfe für Inhalte aus dem Enfold-Layout-Builder.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 7.2
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: afd-mittelsachsen
*/

/* ==========================================================================
   Schriften (lokal, SIL Open Font License – siehe assets/fonts/OFL.txt)
   ========================================================================== */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }

/* ==========================================================================
   Design-Tokens
   ========================================================================== */
:root {
	--navy-950: #081630;
	--navy-900: #0b1c3a;
	--navy-800: #0e2447;
	--navy-700: #133a72;
	--blue: #1a63c4;
	--blue-bright: #2479e0;
	--blue-soft: #e8f0fb;
	--red: #e3000f;
	--red-dark: #b4000c;
	--ink: #0f1d33;
	--text: #4f5a6d;
	--muted: #7a8599;
	--line: #e3e8ef;
	--soft: #f2f4f8;
	--white: #fff;

	--font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-cond: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;

	--container: 1180px;
	--gutter: 24px;
	--radius: 2px;
	--shadow: 0 10px 30px -12px rgba(14, 36, 71, .22);
	--header-h: 72px;
	--ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   Basis
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .page-hero :focus-visible { outline-color: #fff; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
	top: 8px; left: 8px; padding: 12px 18px; background: #fff; color: var(--navy-800); font-weight: 700;
}
.site-main:focus { outline: none; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container--content { max-width: calc(820px + 2 * var(--gutter)); }

/* ==========================================================================
   Bausteine
   ========================================================================== */
.kicker {
	display: flex; align-items: center; gap: 12px;
	margin: 0 0 14px;
	font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
	color: var(--muted);
}
.kicker::before { content: ""; width: 30px; height: 2px; background: var(--red); flex: none; }
.kicker--light { color: rgba(255, 255, 255, .72); }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 22px;
	font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	text-decoration: none; line-height: 1.2;
	border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 36px; padding: 8px 16px; font-size: 11px; }
.btn--block { display: flex; width: 100%; }
.btn--red { background: linear-gradient(180deg, var(--red), var(--red-dark)); color: #fff; }
.btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--navy { background: linear-gradient(90deg, var(--navy-800), var(--blue)); color: #fff; }
.btn--navy:hover { background: var(--navy-800); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--ghost:hover { background: #fff; color: var(--navy-800); }

.text-link {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 13px; font-weight: 700; color: var(--blue); text-decoration: none;
}
.text-link:hover { color: var(--navy-800); }
.text-link:hover .icon-arrow { transform: translateX(3px); }
.icon-arrow { transition: transform .2s var(--ease); }

.badge {
	display: inline-block; padding: 3px 8px;
	font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4;
	color: var(--blue); background: var(--blue-soft); border: 1px solid #c9dbf4; border-radius: var(--radius);
	text-decoration: none;
}
.badge--red { color: #fff; background: var(--red); border-color: var(--red); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 12px; color: var(--muted); }

.card { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }

.more {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
}

.empty { color: var(--muted); font-style: italic; }
.empty--box { padding: 40px; background: var(--soft); border: 1px dashed var(--line); text-align: center; font-style: normal; }

.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 48px; fill: #fff; pointer-events: none; }

/* ==========================================================================
   Kopfzeile
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: linear-gradient(90deg, var(--navy-800) 0%, var(--navy-700) 45%, var(--blue-bright) 100%);
	color: #fff;
	box-shadow: 0 2px 18px rgba(8, 22, 48, .25);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; flex: none; }
.brand:hover { color: #fff; }
.brand__logo { width: auto; max-height: 46px; }
.brand__mark {
	font-family: var(--font-cond); font-weight: 800; font-size: 30px; letter-spacing: -.01em; line-height: 1;
	padding: 4px 10px; border: 2px solid #fff; border-radius: 6px;
}
.brand__text { display: flex; flex-direction: column; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .3); line-height: 1.15; }
.brand__l1 { font-family: var(--font-cond); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.brand__l2 { font-family: var(--font-cond); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }

.site-nav { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: flex-end; }
.primary-nav .menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a {
	display: block; padding: 10px 11px;
	font-family: var(--font-cond); font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
	color: rgba(255, 255, 255, .86); text-decoration: none;
	position: relative;
}
.primary-nav .menu > li > a::after {
	content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px;
	background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.primary-nav .menu > li > a:hover, .primary-nav .menu > .current-menu-item > a, .primary-nav .menu > .current_page_item > a, .primary-nav .menu > .current-menu-ancestor > a { color: #fff; }
.primary-nav .menu > li > a:hover::after, .primary-nav .menu > .current-menu-item > a::after, .primary-nav .menu > .current_page_item > a::after, .primary-nav .menu > .current-menu-ancestor > a::after { transform: scaleX(1); }

/* Untermenü */
.primary-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 230px; z-index: 5;
	list-style: none; margin: 0; padding: 8px 0;
	background: var(--navy-900); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { padding: 9px 18px; font-size: 13px; }
.primary-nav .sub-menu a:hover { background: rgba(255, 255, 255, .06); color: #fff; }

.header-actions { display: flex; gap: 10px; }

.nav-toggle {
	display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center;
	background: transparent; border: 1px solid rgba(255, 255, 255, .35); color: #fff; border-radius: var(--radius); cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: inline; }

@media (max-width: 1120px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--navy-900); padding: 8px var(--gutter) 24px;
		max-height: calc(100vh - var(--header-h)); overflow-y: auto;
		box-shadow: 0 20px 30px -10px rgba(0, 0, 0, .35);
		display: none;
	}
	.nav-open .site-nav { display: flex; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; }
	.primary-nav .menu a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.primary-nav .menu > li > a::after { display: none; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 16px; background: transparent; }
	.header-actions { padding-top: 18px; flex-wrap: wrap; }
	.header-actions .btn { flex: 1 1 auto; min-height: 44px; }
}
@media (max-width: 480px) {
	.brand__text { display: none; }
}

/* ==========================================================================
   Hero / Slider
   ========================================================================== */
.hero {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(1200px 500px at 85% 15%, rgba(36, 121, 224, .35), transparent 60%),
		linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
	min-height: clamp(480px, 70vh, 700px);
	display: grid;
}
.hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); z-index: 3; }
.hero__slides { position: relative; display: grid; }
.hero__slide {
	grid-area: 1 / 1; position: relative; display: flex; align-items: center;
	padding: 80px 0 120px;
	opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility .9s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8s linear; }
.hero__slide.is-active .hero__bg { transform: scale(1); }
.hero__slide::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(8, 22, 48, .82) 0%, rgba(8, 22, 48, .55) 45%, rgba(8, 22, 48, .15) 100%),
		linear-gradient(0deg, rgba(8, 22, 48, .55), transparent 40%);
}
.hero__content { position: relative; z-index: 2; padding-left: calc(var(--gutter) + 40px); padding-right: calc(var(--gutter) + 80px); }
.hero__title {
	margin: 0 0 22px; color: #fff;
	font-family: var(--font-cond); font-weight: 800; text-transform: uppercase;
	font-size: clamp(46px, 8.2vw, 112px); line-height: .9; letter-spacing: -.005em;
}
.hero__l1, .hero__l2 { display: block; }
.hero__l2 { color: var(--blue-bright); text-shadow: 0 2px 30px rgba(8, 22, 48, .35); }
.hero__text { max-width: 46ch; font-size: clamp(16px, 1.4vw, 19px); color: rgba(255, 255, 255, .82); margin-bottom: 26px; }
.hero__btn { margin-top: 4px; }

.hero__slide.is-active .hero__title, .hero__slide.is-active .hero__text, .hero__slide.is-active .hero__btn, .hero__slide.is-active .kicker {
	animation: heroIn .9s var(--ease) both;
}
.hero__slide.is-active .hero__title { animation-delay: .08s; }
.hero__slide.is-active .hero__text { animation-delay: .18s; }
.hero__slide.is-active .hero__btn { animation-delay: .26s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__arrow {
	position: absolute; top: 50%; z-index: 4; transform: translateY(-50%);
	width: 44px; height: 44px; display: grid; place-items: center;
	background: rgba(8, 22, 48, .35); color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius);
	cursor: pointer; transition: background .2s;
}
.hero__arrow:hover { background: rgba(255, 255, 255, .15); }
.hero__arrow--prev { left: 22px; }
.hero__arrow--next { right: 22px; }
.hero__counter {
	position: absolute; z-index: 4; right: calc(var(--gutter) + 70px); bottom: 150px;
	font-family: var(--font-cond); font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .28);
}
.hero__current { font-size: 52px; }
.hero__total { font-size: 18px; }
.hero__dots { position: absolute; z-index: 4; right: calc(var(--gutter) + 50px); bottom: 128px; display: flex; flex-direction: column; gap: 6px; }
.hero__dot { width: 3px; height: 12px; padding: 0; border: 0; background: rgba(255, 255, 255, .35); cursor: pointer; transition: height .3s, background .3s; }
.hero__dot.is-active { height: 26px; background: #fff; }
.hero__dot::before { content: ""; position: absolute; inset: -8px -10px; } /* größere Klickfläche */
.hero__dot { position: relative; }
.hero .wave { z-index: 5; height: 56px; }

@media (max-width: 900px) {
	.hero__arrow, .hero__counter { display: none; }
	.hero__content { padding-left: calc(var(--gutter) + 8px); padding-right: var(--gutter); }
	.hero__dots { flex-direction: row; right: auto; left: calc(var(--gutter) + 8px); bottom: 74px; }
	.hero__dot { width: 12px; height: 3px; }
	.hero__dot.is-active { width: 28px; height: 3px; }
}

/* ==========================================================================
   Abschnitte
   ========================================================================== */
.section { padding: 88px 0; }
.section--tight { padding: 64px 0 88px; }
.section--soft { background: var(--soft); border-top: 1px solid var(--line); }

.section-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 32px; }
.section-head__end { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.section-title {
	margin: 0; font-family: var(--font-cond); font-weight: 800; text-transform: uppercase;
	font-size: clamp(26px, 2.6vw, 32px); letter-spacing: .01em; line-height: 1;
}
.section-title--bar { padding-left: 14px; border-left: 4px solid var(--red); }
.section-title--lg { font-size: clamp(30px, 3vw, 38px); margin-bottom: 28px; }
.section-sub { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.square-btn {
	width: 38px; height: 38px; display: grid; place-items: center;
	background: #fff; border: 1px solid var(--line); color: var(--ink); cursor: pointer; border-radius: var(--radius);
	transition: background .2s, color .2s, border-color .2s;
}
.square-btn:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* Willkommen */
.welcome { padding-top: 72px; }
.welcome__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.display {
	font-family: var(--font-cond); font-weight: 800; text-transform: uppercase;
	font-size: clamp(34px, 4.2vw, 50px); line-height: 1.02; letter-spacing: .005em; margin: 0 0 24px;
}
.display__dark, .display__blue { display: block; }
.display__blue { color: var(--blue); }
.lead { font-size: 17px; line-height: 1.8; color: var(--text); max-width: 60ch; }

.stats { margin: 0; display: grid; }
.stat {
	display: flex; flex-direction: column-reverse; justify-content: center;
	padding: 22px 0 22px 22px; border-bottom: 1px solid var(--line); position: relative;
}
.stat:last-child { border-bottom: 0; }
.stat::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; background: var(--blue); }
.stat--red::before { background: var(--red); }
.stat__value { margin: 0; font-family: var(--font-cond); font-weight: 800; font-size: clamp(36px, 3.4vw, 46px); line-height: 1; color: var(--ink); }
.stat__label { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }

@media (max-width: 900px) {
	.welcome__grid { grid-template-columns: 1fr; gap: 32px; }
	.stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
	.stat { border-bottom: 0; padding: 4px 0 4px 16px; }
	.stat::before { top: 4px; bottom: 4px; }
}
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* Aktuelles */
.news__viewport { position: relative; }
.news__page[hidden] { display: none; }
.news__page { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 20px; }
.news__page.is-entering { animation: newsIn .5s var(--ease) both; }
@keyframes newsIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.news__page > .news-feature { grid-row: span 2; }
.news__page > .news-feature:only-child { grid-column: 1 / -1; grid-row: auto; }

.news-feature {
	position: relative; overflow: hidden; min-height: 400px;
	display: flex; align-items: flex-end;
	background: linear-gradient(150deg, var(--navy-700), var(--navy-950));
	box-shadow: var(--shadow); color: #fff;
}
.news-feature__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 22, 48, .95) 0%, rgba(8, 22, 48, .55) 45%, rgba(8, 22, 48, .1) 100%); }
.news-feature:hover .news-feature__img { transform: scale(1.04); }
.news-feature__body { position: relative; z-index: 2; padding: 32px; }
.news-feature .meta { color: rgba(255, 255, 255, .7); }
.news-feature__title {
	margin: 0 0 10px; color: #fff;
	font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.05;
}
.news-feature__title a, .news-row__title a, .post-card__title a { color: inherit; text-decoration: none; }
.news-feature__title a::after, .news-row__title a::after, .post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.news-feature__excerpt { color: rgba(255, 255, 255, .78); font-size: 15px; max-width: 62ch; }
.news-feature .more { color: #8cbcff; }

.news-row { position: relative; display: grid; grid-template-columns: 140px minmax(0, 1fr); background: #fff; box-shadow: var(--shadow); transition: box-shadow .2s; }
.news-row:hover { box-shadow: 0 16px 34px -14px rgba(14, 36, 71, .35); }
.news-row__media { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--navy-700), var(--navy-950)); }
.news-row__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-row__placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-cond); font-weight: 800; font-size: 44px; color: rgba(255, 255, 255, .2); }
.news-row__body { padding: 18px 20px; }
.news-row__title { margin: 0 0 6px; font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; font-size: 18px; line-height: 1.12; }
.news-row__excerpt { font-size: 13.5px; line-height: 1.6; margin-bottom: 10px; }

.news__dots { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.news__dot { width: 6px; height: 6px; background: #c6cfdc; border-radius: 3px; transition: width .3s, background .3s; }
.news__dot.is-active { width: 22px; background: var(--blue); }

@media (max-width: 900px) {
	.news__page { grid-template-columns: 1fr; grid-auto-rows: auto; }
	.news__page > .news-feature { grid-row: auto; min-height: 340px; }
}
@media (max-width: 480px) { .news-row { grid-template-columns: 96px minmax(0, 1fr); } }

/* Termine */
.event-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); }
.event + .event { border-top: 1px solid var(--line); }
.event__link {
	display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 20px; align-items: center; gap: 20px;
	padding: 14px 20px; color: inherit; text-decoration: none; transition: background .2s;
}
.event__link:hover { background: #f7f9fc; }
.event__date {
	display: flex; flex-direction: column; align-items: center; justify-content: center; height: 52px;
	background: linear-gradient(160deg, var(--navy-800), var(--blue)); color: #fff; line-height: 1;
}
.event__day { font-family: var(--font-cond); font-weight: 800; font-size: 24px; }
.event__month { margin-top: 3px; font-size: 8.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.event__title { display: block; font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; font-size: 17px; color: var(--ink); line-height: 1.15; }
.event__meta { display: block; font-size: 13px; color: var(--muted); }
.event__time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.event__time strong { font-family: var(--font-cond); font-size: 18px; color: var(--blue); margin-right: 4px; }
.event__chev { color: var(--muted); }
@media (max-width: 600px) {
	.event__link { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 14px; }
	.event__time { grid-column: 2; }
	.event__chev { display: none; }
}
.termin-switch { margin-bottom: 20px; }

/* Kontakt */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.contact__form { padding: clamp(24px, 4vw, 48px); }
.contact__aside { display: grid; gap: 20px; }
@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; } }

.side-card { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 22px; font-size: 14px; }
.side-card__title { font-size: 16px; margin-bottom: 4px; }
.side-card p { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.support__second { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

.contact-card { padding: 0; overflow: hidden; }
.contact-card__head { display: flex; gap: 12px; align-items: center; padding: 16px 20px; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); color: #fff; }
.contact-card__icon { width: 34px; height: 34px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); border-radius: 50%; flex: none; }
.contact-card__title { color: #fff; font-size: 15px; margin: 0; }
.contact-card .contact-card__sub { margin: 0; color: rgba(255, 255, 255, .78); font-size: 12px; }
.contact-card__list { list-style: none; margin: 0; padding: 8px 20px; }
.contact-card__list li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.contact-card__list li:last-child { border-bottom: 0; }
.contact-card__list .icon { color: var(--blue); margin-top: 3px; }
.contact-card__list address { font-style: normal; line-height: 1.55; }
.contact-card__list a { color: var(--ink); text-decoration: none; word-break: break-word; }
.contact-card__list a:hover { color: var(--blue); }
.contact-card__fb {
	display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 12px 12px; padding: 10px;
	background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
}
.contact-card__fb:hover { background: var(--blue); color: #fff; }

/* Formulare */
.form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .form-row--2 { grid-template-columns: 1fr; } }
.field { margin: 0 0 18px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.req { color: var(--red); }
.field input[type="text"], .field input[type="email"], .field textarea, .search-form input[type="search"], .newsletter input {
	width: 100%; min-height: 48px; padding: 12px 14px;
	background: #fff; border: 1px solid #d3dae5; border-radius: var(--radius); color: var(--ink);
	transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .search-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 99, 196, .18); }
.field--check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.field--check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue); }
.field--check label { font-weight: 400; color: var(--text); font-size: 13.5px; line-height: 1.55; margin: 0; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 6px 0 0; }
.form-hint { font-size: 12px; color: var(--muted); }
.form-notice { padding: 14px 16px; font-size: 14.5px; border-left: 4px solid; margin-bottom: 22px; }
.form-notice--success { background: #eaf7ee; border-color: #1e8e3e; color: #145c29; }
.form-notice--error { background: #fdecec; border-color: var(--red); color: #8a0a12; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.search-form { display: flex; gap: 10px; margin: 0 0 24px; }
.search-form .btn { flex: none; }

/* ==========================================================================
   Unterseiten
   ========================================================================== */
.page-hero {
	position: relative; padding: 72px 0 96px; color: #fff; overflow: hidden;
	background:
		radial-gradient(900px 400px at 90% 0%, rgba(36, 121, 224, .4), transparent 60%),
		linear-gradient(160deg, var(--navy-950), var(--navy-800) 60%, var(--navy-700));
}
.page-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
.page-hero__title {
	margin: 0; color: #fff; font-family: var(--font-cond); font-weight: 800; text-transform: uppercase;
	font-size: clamp(34px, 5vw, 62px); line-height: .98; max-width: 22ch; overflow-wrap: anywhere; hyphens: auto;
}

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { position: relative; display: flex; flex-direction: column; }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__title { font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; font-size: 22px; line-height: 1.08; margin-bottom: 10px; }
.post-card__excerpt { font-size: 14.5px; flex: 1; }

.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers {
	min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 10px;
	border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px;
}
.page-numbers.current, .page-numbers:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
.sidebar { display: grid; gap: 20px; align-content: start; }
@media (max-width: 960px) { .with-sidebar { grid-template-columns: 1fr; } }

.entry-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.entry-image { margin: 0 0 32px; }
.entry-image img { width: 100%; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.entry-tags a { font-size: 12px; padding: 4px 10px; background: var(--soft); color: var(--text); text-decoration: none; }

.post-navigation { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 24px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-navigation a { text-decoration: none; display: block; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.nav-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav-title { font-family: var(--font-cond); font-weight: 700; font-size: 19px; text-transform: uppercase; color: var(--ink); line-height: 1.15; }

.termin-facts { padding: 20px 24px; margin-bottom: 32px; border-left: 4px solid var(--red); }
.termin-facts p { display: flex; gap: 10px; align-items: center; margin: 4px 0; color: var(--ink); }
.termin-facts .icon { color: var(--blue); flex: none; }

/* ==========================================================================
   Inhalte (Editor, Seiten, Beiträge)
   ========================================================================== */
.entry-content { color: #3d475a; }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; margin-top: 1.6em; }
.entry-content h2 { font-size: clamp(26px, 2.6vw, 32px); }
.entry-content h3 { font-size: 23px; }
.entry-content h4 { font-size: 19px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content li::marker { color: var(--red); }
.entry-content blockquote, .wp-block-quote {
	margin: 1.8em 0; padding: 6px 0 6px 24px; border-left: 4px solid var(--red);
	font-size: 20px; line-height: 1.5; color: var(--ink);
}
.entry-content blockquote cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: var(--muted); }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption, .wp-element-caption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.entry-content .wp-block-button__link, .entry-content .wp-element-button {
	background: linear-gradient(90deg, var(--navy-800), var(--blue)); color: #fff; border-radius: var(--radius);
	padding: 12px 24px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
}
.alignwide { max-width: 1100px; }
.alignleft { float: left; margin: .3em 1.6em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.6em; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* Tabellen (Anträge, Anfragen) */
.table-wrap { width: 100%; overflow-x: auto; margin: 1.6em 0; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); background: #fff; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; margin: 0; }
.entry-content caption { caption-side: top; text-align: left; padding: 12px 16px; font-weight: 700; color: var(--ink); }
.entry-content th, .entry-content thead td {
	background: var(--navy-800); color: #fff; text-align: left; vertical-align: bottom;
	padding: 12px 16px; font-family: var(--font-cond); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
	white-space: nowrap;
}
.entry-content td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.entry-content tbody tr:nth-child(even) td { background: #f8fafc; }
.entry-content tbody tr:hover td { background: var(--blue-soft); }
.entry-content td a { font-weight: 600; }
.wp-block-table { margin: 1.6em 0; }
.wp-block-table .table-wrap { margin: 0; }
.wp-block-table thead { border: 0; }

/* Enfold-Übergangshilfe */
.av-section, .av-row { display: flex; flex-wrap: wrap; gap: 0 32px; margin-bottom: 1.4em; }
.av-section > *, .av-row > * { flex: 1 1 100%; min-width: 0; }
.av-col--1-2 { flex-basis: calc(50% - 16px); }
.av-col--1-3 { flex-basis: calc(33.333% - 22px); }
.av-col--2-3 { flex-basis: calc(66.666% - 11px); }
.av-col--1-4 { flex-basis: calc(25% - 24px); }
.av-col--3-4 { flex-basis: calc(75% - 8px); }
.av-col--1-5 { flex-basis: calc(20% - 26px); }
.av-col--2-5 { flex-basis: calc(40% - 20px); }
.av-col--3-5 { flex-basis: calc(60% - 13px); }
.av-col--4-5 { flex-basis: calc(80% - 7px); }
@media (max-width: 760px) { .av-section > *, .av-row > * { flex-basis: 100% !important; } }
.av-note { padding: 14px 18px; background: var(--blue-soft); border-left: 4px solid var(--blue); margin: 1em 0; }
.av-toggle { border: 1px solid var(--line); margin-bottom: 8px; background: #fff; }
.av-toggle summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--ink); }
.av-toggle > div { padding: 0 18px 8px; }
.av-subheading { color: var(--muted); margin-top: -.4em; }

/* ==========================================================================
   Fußzeile
   ========================================================================== */
.site-footer { background: var(--navy-900); color: #93a3bf; font-size: 14px; }
.site-footer a { color: #c7d3e8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr .8fr 1.2fr; gap: 48px; padding-top: 64px; padding-bottom: 56px; }
.footer-logo { display: inline-block; margin-bottom: 18px; color: #fff; }
.footer-logo img { max-height: 54px; width: auto; }
.site-footer__tagline { max-width: 36ch; line-height: 1.7; }
.social { display: flex; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
.social a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s; }
.social a:hover { background: var(--blue-bright); }
.site-footer__nav { text-align: center; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-menu a { font-weight: 600; font-size: 13px; }
.site-footer__heading { color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer__aside { text-align: right; }
.footer-contact { font-style: normal; line-height: 1.75; }
.newsletter { display: flex; margin-top: 12px; }
.newsletter input { flex: 1; min-width: 0; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .15); color: #fff; }
.newsletter input::placeholder { color: #93a3bf; }
.newsletter .btn { flex: none; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12px; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-top: 18px; padding-bottom: 18px; }
.site-footer__bottom p { margin: 0; }
.legal-menu { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 860px) {
	.site-footer__grid { grid-template-columns: 1fr; gap: 36px; }
	.site-footer__nav, .site-footer__aside { text-align: left; }
}

/* ==========================================================================
   WordPress-Standardklassen
   ========================================================================== */
.wp-caption { max-width: 100%; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }

/* ==========================================================================
   Bewegung reduzieren
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	html { scroll-behavior: auto; }
	.hero__bg { transform: none !important; }
}

/* ==========================================================================
   Druck
   ========================================================================== */
@media print {
	.site-header, .site-footer, .hero__arrow, .hero__dots, .nav-toggle, .wave { display: none !important; }
	.page-hero { background: none; color: #000; padding: 0 0 16px; }
	.page-hero__title { color: #000; }
	.entry-content th { background: #eee; color: #000; }
}
