/* ==========================================================================
   aej-rlp – Stile
   Alle Farben kommen aus theme.json (Palette + custom.farbe). Hier keine Farbwerte eintragen,
   sonst greift ein späterer Farbwechsel (Logo/Rebrand) nicht überall.
   ========================================================================== */

/* 1 · Kurznamen für die Farben aus theme.json ---------------------------- */
:root {
	--navy: var(--wp--preset--color--marineblau);
	--blue: var(--wp--preset--color--blau);
	--orange: var(--wp--preset--color--orange);
	--orange-text: var(--wp--preset--color--orange-text);
	--light: var(--wp--preset--color--hell);
	--bg: var(--wp--preset--color--hintergrund);
	--white: var(--wp--preset--color--weiss);
	--text: var(--wp--preset--color--text);
	--muted: var(--wp--preset--color--sekundaer);
	--on-navy: var(--wp--preset--color--auf-marineblau);
	--error: var(--wp--custom--farbe--fehler);
	--error-bg: var(--wp--custom--farbe--fehler-flaeche);
	--error-text: var(--wp--custom--farbe--fehler-text);
	--fluss: var(--wp--custom--farbe--fluss);
	--fluss-hell: var(--wp--custom--farbe--fluss-hell);
	--linie: var(--wp--custom--farbe--linie);
	--rand: var(--wp--custom--farbe--rand);
	--kachel: var(--wp--custom--farbe--kachel);
	--glimmen: var(--wp--custom--farbe--glimmen);
	--hinweis: var(--wp--custom--farbe--hinweis);
	--hinweis-rand: var(--wp--custom--farbe--hinweis-rand);
	--hinweis-text: var(--wp--custom--farbe--hinweis-text);

	/* Namen aus dem Intro-Entwurf */
	--aej-navy: var(--navy);
	--aej-blue: var(--blue);
	--aej-orange: var(--orange);
	--aej-light: var(--on-navy);
	--aej-white: var(--white);

	--r-card: var(--wp--custom--radius--karte, 12px);
	--r-btn: var(--wp--custom--radius--knopf, 8px);
	--max: var(--wp--custom--breite, 1120px);
	--hdr: var(--wp--custom--kopfhoehe, 84px);
	--adminbar: var(--wp-admin--admin-bar--height, 0px);
	--shadow: 0 2px 4px color-mix(in srgb, var(--navy) 6%, transparent), 0 12px 32px color-mix(in srgb, var(--navy) 8%, transparent);
}

/* 2 · Grundlagen ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + var(--adminbar)); }
body { margin: 0; overflow-x: clip; }
.wp-site-blocks { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-text); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; }
h3, h2.h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }
.wp-block-image { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-text); margin: 0 0 10px; }
.lead { font-size: 20px; max-width: 62ch; color: var(--text); }
.ph { background: var(--hinweis); color: var(--hinweis-text); border-radius: 4px; padding: 0 4px; font-size: .92em; }
.skip-link.screen-reader-text:focus { background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--r-btn); z-index: 200; }

/* 3 · Kopfbereich --------------------------------------------------------- */
.site-header { position: sticky; top: var(--adminbar); z-index: 50; background: color-mix(in srgb, var(--white) 96%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--light); }
.site-header .kopf-innen { display: flex; align-items: center; justify-content: space-between; height: var(--hdr); gap: 24px; }
.site-header .logo { display: block; flex: none; }
.site-header .logo img.wort { height: 62px; width: auto; }
.site-header .logo img.bild { display: none; height: 52px; width: auto; }

.hauptmenue .wp-block-navigation__container { gap: 28px; }
.hauptmenue .wp-block-navigation-item__content { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 3px solid transparent; }
.hauptmenue .wp-block-navigation-item__content:hover,
.hauptmenue .current-menu-item > .wp-block-navigation-item__content { border-color: var(--orange); }
.hauptmenue .wp-block-navigation__responsive-container-open,
.hauptmenue .wp-block-navigation__responsive-container-close { color: var(--navy); }
.hauptmenue .wp-block-navigation__responsive-container.is-menu-open { background: var(--white); color: var(--navy); padding: 24px; }
.hauptmenue .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0; width: 100%; }
.hauptmenue .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--light); }
.hauptmenue .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { display: block; padding: 14px 0; font-size: 18px; border: 0; }

/* 4 · Startseiten-Kopf mit Karte (aus Vorschau v11) ------------------------- */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero .kicker { font-size: clamp(14px, 1.3vw, 17px); font-weight: 600; letter-spacing: .02em; text-transform: none; margin: 0 0 6px; color: var(--on-navy); }
.hero h1 { color: var(--white); font-weight: 800; letter-spacing: -.01em; }
.hero h1.big { font-size: clamp(44px, 5.6vw, 76px); line-height: 1.02; margin-bottom: 16px; }
.hero p.sub { font-size: clamp(18px, 2vw, 22px); color: var(--on-navy); max-width: 34ch; margin: 0 0 32px; }
.hero-art { position: relative; transition: opacity 1.4s ease, transform 1.3s cubic-bezier(.65, 0, .25, 1); }
.hero-art svg { width: 100%; height: auto; max-height: min(72vh, 760px); overflow: visible; display: block; margin-left: auto; }
#heroMap .land { fill: color-mix(in srgb, var(--white) 0%, transparent); stroke: var(--on-navy); stroke-width: 3; stroke-linejoin: round; transition: fill 1.2s; }
#heroMap.s1 .land { fill: color-mix(in srgb, var(--white) 5%, transparent); }
#heroMap .riv { fill: none; stroke: var(--fluss); stroke-width: 3; opacity: 0; transition: opacity 1.4s; }
#heroMap.s2 .riv { opacity: .75; }
#heroMap .edge { stroke: color-mix(in srgb, var(--on-navy) 45%, transparent); stroke-width: 2; }
#heroMap .pt { fill: var(--white); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); }
#heroMap .pt.on { opacity: .9; transform: scale(1); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), opacity .5s; }
#heroMap .pt.tw { animation: tw 3s ease-in-out infinite; }
#heroMap .pt.glimmt { fill: var(--glimmen); }
@keyframes tw { 0%, 100% { opacity: .9; } 50% { opacity: .35; } }
#heroMap .hub { fill: var(--orange); stroke: var(--white); stroke-width: 5; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); }
#heroMap.s4 .hub { opacity: 1; transform: scale(1); transition: transform .7s cubic-bezier(.3, 1.6, .5, 1), opacity .4s; }
#heroMap .halo { fill: none; stroke: var(--orange); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
#heroMap.s4 .halo { animation: halo 2.6s ease-out infinite; }
@keyframes halo { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
#heroMap .lbl { font: 700 44px "Fira Sans", sans-serif; fill: var(--white); opacity: 0; transition: opacity .8s .3s; }
#heroMap.s4 .lbl { opacity: 1; }
#heroMap .sig { fill: var(--orange); }
.hero-text > * { transition: opacity 1.2s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.js .hero.intro .hero-text > * { opacity: 0; transform: translateX(-36px); }
.hero-text > *:nth-child(2) { transition-delay: .12s; }
.hero-text > *:nth-child(3) { transition-delay: .24s; }
.hero-text > *:nth-child(4) { transition-delay: .36s; }
.hero-text > *:nth-child(5) { transition-delay: .6s; }
.hero-skip { position: absolute; right: 16px; bottom: 14px; background: none; border: 1px solid color-mix(in srgb, var(--on-navy) 40%, transparent); color: var(--on-navy); font: 600 12px "Fira Sans", sans-serif; padding: 5px 10px; border-radius: 20px; cursor: pointer; transition: opacity .4s; }
.hero:not(.intro) .hero-skip { opacity: 0; pointer-events: none; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; color: var(--on-navy); font-weight: 600; text-decoration: none; font-size: 16px; padding: 8px 0; }
.scroll-cue .arr { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--orange); color: var(--orange); font-size: 18px; animation: bob 2s ease-in-out infinite; }
.scroll-cue:hover { color: var(--white); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.hero-cap { position: absolute; right: 0; bottom: -6px; font-size: 13px; color: var(--on-navy); opacity: 0; transition: opacity 1s; }
.hero-cap.on { opacity: .85; }
.hero-logo { width: clamp(120px, 16vh, 170px); height: clamp(120px, 16vh, 170px); border-radius: 50%; background: var(--white); display: grid; place-items: center; margin-bottom: 22px; box-shadow: 0 10px 30px color-mix(in srgb, var(--text) 25%, transparent); }
.hero-logo svg { width: 78%; height: 78%; display: block; }
.hero-logo .lb, .lb { fill: var(--navy); }
.hero-logo .lo, .lo { fill: var(--orange); }

/* Intro-Overlay (langes Intro auf Knopfdruck) */
.hero-intro { position: absolute; inset: 0; z-index: 6; background: var(--navy); opacity: 1; transition: opacity 1.6s ease, background-color .3s ease; font-family: "Fira Sans", system-ui, sans-serif; }
.hero-intro svg { width: 100%; height: 100%; display: block; transform-origin: 0 0; }
.hero-intro text { fill: var(--white); }
.hero.intro-off .hero-intro { opacity: 0; pointer-events: none; }
.hero-intro.idle { display: none; }
.hero-intro-skip { position: absolute; right: 16px; bottom: 58px; z-index: 7; background: none; border: 1px solid color-mix(in srgb, var(--on-navy) 50%, transparent); color: var(--on-navy); font: 600 12px "Fira Sans", sans-serif; padding: 5px 10px; border-radius: 20px; cursor: pointer; }
.hero.intro-off .hero-intro-skip { display: none; }
.hero-sound { position: absolute; left: 16px; bottom: 58px; z-index: 7; background: color-mix(in srgb, var(--white) 8%, transparent); border: 1px solid color-mix(in srgb, var(--on-navy) 50%, transparent); color: var(--white); font: 600 12px "Fira Sans", sans-serif; padding: 6px 12px; border-radius: 20px; cursor: pointer; transition: opacity .4s; }
.hero-sound:hover { background: color-mix(in srgb, var(--white) 16%, transparent); }
.hero.flipping .hero-intro { background-color: transparent; }
.hero.long .hero-art, .hero.flipping .hero-art { opacity: 0; }
.hero.long .hero-skip, .hero.flipping .hero-skip { display: none; }
.hero.long .hero-sound, .hero.flipping .hero-sound { opacity: 0; pointer-events: none; }
.hero.no-long .hero-sound { display: none; }

.hero-intro .dot { fill: var(--aej-light); opacity: 0; transform: translate(var(--x0), var(--y0)); animation: dot 18s cubic-bezier(.6, 0, .3, 1) var(--j) both; }
.hero-intro .dot.o { fill: var(--aej-orange); }
@keyframes dot {
	0% { opacity: 0; transform: translate(var(--x0), var(--y0)) scale(.4); }
	6.67% { opacity: 1; transform: translate(var(--x0), var(--y0)) scale(1); }
	22.22% { transform: translate(var(--x0), var(--y0)) scale(1); }
	33.33% { transform: translate(var(--x1), var(--y1)) scale(1); }
	45.56% { transform: translate(var(--x1b), var(--y1b)) scale(1); }
	58.89% { opacity: 1; transform: translate(var(--x1), var(--y1)) scale(1); }
	63.33% { opacity: 1; transform: translate(var(--x2), var(--y2)) scale(.5); }
	64.44%, 100% { opacity: 0; transform: translate(var(--x2), var(--y2)) scale(.2); }
}
.hero-intro .dw { animation: wob var(--wd) ease-in-out infinite alternate; }
@keyframes wob { from { transform: translate(0, 0); } to { transform: translate(var(--wx), var(--wy)); } }
.hero-intro .dw2 { animation: wander 18s ease-in-out var(--j) both; }
@keyframes wander { 0% { transform: translate(0, 0); } 8.89% { transform: translate(var(--ax), var(--ay)); } 17.78% { transform: translate(calc(var(--ax) * -.7), calc(var(--ay) * .5)); } 25.56% { transform: translate(calc(var(--ax) * .3), calc(var(--ay) * -.6)); } 33.33%, 100% { transform: translate(0, 0); } }
.hero-intro .ring { fill: none; stroke: var(--aej-orange); stroke-width: 2.5; stroke-dasharray: 6 10; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ring 4.2s ease var(--d) both; }
@keyframes ring { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: .9; transform: scale(1); } 72% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.15); } }
.hero-intro .word { font-size: 26px; font-weight: 700; text-anchor: middle; fill: var(--aej-light); opacity: 0; animation: fade 3.6s ease var(--d) both; }
@keyframes fade { 0% { opacity: 0; transform: translateY(10px); } 25% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; } }
.hero-intro .cap { font-size: 54px; font-weight: 700; opacity: 0; animation: cap var(--len) ease var(--d) both; }
.hero-intro .cap.s { font-size: 30px; font-weight: 400; fill: var(--aej-light); }
.hero-intro .cap.m { font-size: 46px; }
@keyframes cap { 0% { opacity: 0; transform: translateY(14px); } 22% { opacity: 1; transform: none; } 78% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
.hero-intro .land { fill: color-mix(in srgb, var(--white) 7%, transparent); stroke: var(--aej-light); stroke-width: 75; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2s ease-in-out 9.4s both, landfill 1s ease 10.8s both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes landfill { from { fill: color-mix(in srgb, var(--white) 0%, transparent); } to { fill: color-mix(in srgb, var(--white) 7%, transparent); } }
.hero-intro .fluss { fill: var(--fluss-hell); opacity: 0; animation: in 1.2s ease 10.6s both; }
@keyframes in { to { opacity: 1; } }
.hero-intro .marker { opacity: 0; animation: in 1.1s ease var(--d) both; }
.hero-intro .pin { fill: var(--aej-orange); stroke: var(--white); stroke-width: 4; }
.hero-intro .pulse { fill: none; stroke: var(--aej-orange); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out calc(var(--d) + .3s) 2; }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.hero-intro .lbl { font-size: 24px; font-weight: 700; stroke: var(--aej-navy); stroke-width: 6; paint-order: stroke; stroke-linejoin: round; }
.hero-intro .lbl.sub { font-size: 20px; font-weight: 400; fill: var(--aej-light); }
.hero-intro .link { display: none; }
.hero-intro .marker .lbl { opacity: 0; animation: in 1.2s ease 13s both, fadeout 1.2s ease 16.9s both; }
.hero-intro .marker .lbl.sub { animation: in 1.2s ease 13s both, citybold 1.4s ease 16.9s both; }
@keyframes citybold { to { font-size: 24px; font-weight: 700; fill: var(--white); } }
@keyframes fadeout { to { opacity: 0; } }
.hero-intro .net .ne { stroke: color-mix(in srgb, var(--on-navy) 45%, transparent); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .5s linear var(--d) both; }
.hero-intro .net .np { fill: var(--white); opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .8s cubic-bezier(.3, 1.4, .5, 1) var(--d) both; }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: .9; transform: scale(1); } }
.hero-intro .net .city { display: none; }
.hero-intro.is-done * { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }

/* 5 · Fluss durch die Seite ------------------------------------------------ */
.aej-front { position: relative; }
.river-gutter { position: absolute; left: calc(max(0px, (100% - var(--max)) / 2) + 4px); top: 0; width: 110px; height: 100%; pointer-events: none; z-index: 1; }
.river-gutter svg { width: 100%; height: 100%; overflow: visible; }
.river-gutter path { fill: none; stroke-linecap: round; }
.river-base { stroke: var(--linie); stroke-width: 10; }
.river-live { stroke: var(--navy); stroke-width: 10; }
.river-shine { stroke: var(--fluss); stroke-width: 3; opacity: .7; }
.rdot { fill: var(--white); stroke: var(--linie); stroke-width: 4; transition: all .4s; }
.rdot.on { fill: var(--orange); stroke: var(--white); stroke-width: 4; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--orange) 60%, transparent)); }

/* 6 · Abschnitte der Startseite ------------------------------------------- */
.section { position: relative; padding: 72px 0; }
.section .wrap { padding-left: 120px; width: 100%; }
.section.alt { background: var(--white); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.card { background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; gap: 16px; border-top: 4px solid var(--orange); }
.section.alt .card { background: var(--bg); }
.card > * { margin: 0; }
.card .lg { height: 96px; display: flex; align-items: center; }
.card .lg img { max-height: 96px; max-width: 180px; width: auto; object-fit: contain; }
.card .more { margin-top: auto; }
.card .more a { font-weight: 700; text-decoration: none; }
.card .more a::after { content: " →"; }

.join { margin: 28px 0 0; padding: 12px 18px; border-left: 4px solid var(--orange); background: var(--bg); border-radius: 0 var(--r-card) var(--r-card) 0; font-size: clamp(16px, 2vh, 19px); max-width: 70ch; }
.join a { font-weight: 700; color: var(--navy); }

.tasks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.task { --ic: 44px; --pad-y: 24px; --pad-x: 24px; position: relative; background: var(--white); border-radius: var(--r-card); padding: var(--pad-y) var(--pad-x); box-shadow: var(--shadow); }
.section.alt .task { background: var(--bg); }
.task::before { content: ""; display: block; width: var(--ic); height: var(--ic); border-radius: 50%; background: var(--light); margin-bottom: 14px; }
.task::after { content: ""; position: absolute; top: var(--pad-y); left: var(--pad-x); width: var(--ic); height: var(--ic); background: var(--navy); -webkit-mask: var(--icon) center / 55% no-repeat; mask: var(--icon) center / 55% no-repeat; }
.task h3 { margin: 0 0 .4em; }
.task p { margin: 0; color: var(--muted); font-size: 15px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vh, 32px); margin-top: clamp(28px, 6vh, 72px); }
.stat { background: var(--navy); color: var(--white); border-radius: var(--r-card); padding: clamp(24px, 4.5vh, 56px) clamp(18px, 2vw, 32px); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 0; background: var(--orange); transition: width 1.6s cubic-bezier(.2, .7, .2, 1); }
.stat.is-in::after, .no-js .stat::after { width: 100%; }
.stat .num { display: block; margin: 0; font-size: clamp(38px, 7vh, 76px); font-weight: 800; line-height: 1; color: var(--orange); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .lbl { display: block; margin: clamp(10px, 1.6vh, 18px) 0 0; font-size: clamp(15px, 2.1vh, 20px); color: var(--on-navy); font-weight: 600; }
.stats-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

.values { list-style: none; margin: clamp(20px, 4vh, 48px) 0 0; padding: clamp(16px, 2.6vh, 28px) 0 0; border-top: 1px solid var(--light); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); }
.values li { position: relative; display: block; padding-left: 48px; min-height: 36px; font-size: clamp(14px, 1.8vh, 17px); color: var(--muted); line-height: 1.4; }
.values li::before { content: ""; position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--light); }
.values li::after { content: ""; position: absolute; left: 0; top: 0; width: 36px; height: 36px; background: var(--navy); -webkit-mask: var(--icon) center / 22px no-repeat; mask: var(--icon) center / 22px no-repeat; }
.values strong { color: var(--navy); }

.insta-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.insta { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; max-width: min(100%, calc((100vh - 200px) * 1.5)); margin-left: auto; gap: 10px; }
.insta > p { margin: 0; aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, var(--light), var(--kachel)); display: grid; place-items: center; color: var(--muted); font-size: 12px; text-align: center; padding: 6px; }
.wp-block-button__link { transition: transform .15s, box-shadow .15s; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px color-mix(in srgb, var(--text) 18%, transparent); }

/* 7 · Fußbereich ---------------------------------------------------------- */
.site-footer { background: var(--navy); color: var(--on-navy); font-size: 15px; }
.site-footer .fuss-spalten { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.site-footer .fuss-titel { color: var(--white); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; font-weight: 700; }
.site-footer a { color: var(--white); }
.site-footer p { margin: 0 0 6px; }
.foerder-f .plate { background: var(--white); border-radius: 8px; padding: 8px 14px; display: inline-block; }
.foerder-f .plate img { width: 100%; max-width: 200px; }
.legal { border-top: 1px solid color-mix(in srgb, var(--on-navy) 20%, transparent); text-align: center; padding: 16px; font-size: 13px; margin: 0; }

/* 8 · Unterseiten: Seitenkopf, Kontakt, Rechtliches -------------------------- */
.page-head { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: min(42vw, 420px); aspect-ratio: 1; border-radius: 50%; opacity: .14; pointer-events: none;
	background: radial-gradient(circle closest-side, transparent 0 46%, var(--orange) 46.5% 48%, transparent 48.5% 72.5%, var(--white) 73% 73.8%, transparent 74.3% 98.5%, var(--white) 99% 100%, transparent 100%); }
.page-head .wrap { padding-top: 64px; padding-bottom: 64px; position: relative; z-index: 1; }
.page-head .kicker { color: var(--orange); }
.page-head h1 { color: var(--white); font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.01em; margin: 0 0 14px; }
.page-head p:not(.kicker) { font-size: clamp(17px, 1.8vw, 20px); color: var(--on-navy); max-width: 52ch; margin: 0; }
.page-head a { color: var(--white); }

.contact { padding: 72px 0 96px; }
.contact .grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact .card { padding: clamp(24px, 3vw, 40px); display: block; }
.contact h2 { font-size: clamp(22px, 2.4vw, 28px); }
.info-card > h2 { margin-bottom: 24px; }
.info { --icon: none; position: relative; padding-left: 58px; min-height: 44px; margin-bottom: 22px; }
.info::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--light); }
.info::after { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 44px; background: var(--navy); -webkit-mask: var(--icon) center / 22px no-repeat; mask: var(--icon) center / 22px no-repeat; }
.info p { margin: 0; }
.info .lbl { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.info .val { font-size: 17px; color: var(--text); }
.info a { font-weight: 600; text-decoration: none; }
.info a:hover { text-decoration: underline; }
.person { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--light); }
.person p { margin: 0; }
.person .name { font-weight: 700; color: var(--navy); font-size: 17px; }
.person .role { color: var(--muted); font-size: 15px; }
.insta-link { margin: 28px 0 0; }
.insta-link a { font-weight: 700; text-decoration: none; }

.kontakt-form form { display: grid; gap: 20px; }
.kontakt-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kontakt-form label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.kontakt-form .req { color: var(--orange-text); }
.kontakt-form input[type=text], .kontakt-form input[type=email], .kontakt-form textarea { width: 100%; font: inherit; color: var(--text); background: var(--white); border: 1.5px solid var(--rand); border-radius: var(--r-btn); padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.kontakt-form input:hover, .kontakt-form textarea:hover { border-color: var(--blue); }
.kontakt-form input:focus, .kontakt-form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 45%, transparent); }
.kontakt-form textarea { min-height: 180px; resize: vertical; }
.kontakt-form .hint { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.kontakt-form .err { display: none; font-size: 14px; color: var(--error); margin: 6px 0 0; font-weight: 600; }
.kontakt-form .invalid input, .kontakt-form .invalid textarea { border-color: var(--error); }
.kontakt-form .invalid .err { display: block; }
.kontakt-form .check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.kontakt-form .check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--navy); }
.kontakt-form .check label { font-weight: 400; color: var(--text); margin: 0; font-size: 15px; }
.kontakt-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kontakt-form .btn { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 14px 26px; border: 0; border-radius: var(--r-btn); font: 700 16px "Fira Sans", sans-serif; cursor: pointer; background: var(--orange); color: var(--navy); transition: transform .15s, box-shadow .15s; }
.kontakt-form .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px color-mix(in srgb, var(--navy) 18%, transparent); }
.kontakt-form .summary { display: none; border-left: 4px solid var(--error); background: var(--error-bg); color: var(--error-text); padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; }
.kontakt-form .summary.show { display: block; }
.kontakt-form .summary ul { margin: 6px 0 0; padding-left: 20px; }
.kontakt-form .summary a { color: var(--error-text); }
.kontakt-form .summary p { margin: 6px 0 0; }
.kontakt-form .success { display: none; }
.kontakt-form .success.show { display: block; }
.kontakt-form .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--light); display: grid; place-items: center; margin-bottom: 18px; }
.kontakt-form .tick svg { width: 32px; height: 32px; stroke: var(--navy); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.legalpage { padding: 72px 0 96px; }
.legalpage > .wrap > .prose { max-width: 820px; margin: 0 auto; }
.legalpage .card { display: block; padding: clamp(24px, 3vw, 40px); }
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.toc { position: sticky; top: calc(var(--hdr) + var(--adminbar) + 24px); font-size: 15px; }
.toc-h { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { margin: 0; padding: 0 0 0 20px; display: grid; gap: 6px; }
.toc a { color: var(--navy); text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--orange-text); text-decoration: underline; }
.prose h2 { font-size: clamp(20px, 2vw, 24px); margin: 40px 0 12px; scroll-margin-top: calc(var(--hdr) + var(--adminbar) + 24px); }
.prose > h2:first-child, .prose .draft + h2 { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 14px; max-width: 68ch; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 4px; }
.prose .kv strong { display: inline-block; min-width: 5.5em; color: var(--muted); }
.draft { background: var(--hinweis); border-left: 4px solid var(--orange); color: var(--hinweis-text); padding: 12px 16px; border-radius: 6px; margin-bottom: 32px !important; }
.stand { margin-top: 40px !important; padding-top: 20px; border-top: 1px solid var(--light); color: var(--muted); font-size: 14px; }
.foerder-logo img { width: 240px; max-width: 100%; border: 1px solid var(--light); border-radius: 8px; padding: 10px 14px; background: var(--white); }

/* 9 · Baustelle und Wartung ------------------------------------------------ */
.site-header.ist-baustelle .kopf-innen { justify-content: flex-end; }
.bs-hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.bs-hero::after { content: ""; position: absolute; right: -80px; top: 50%; transform: translateY(-50%); width: min(52vw, 560px); aspect-ratio: 1; border-radius: 50%; opacity: .14; pointer-events: none;
	background: radial-gradient(circle closest-side, transparent 0 46%, var(--orange) 46.5% 48%, transparent 48.5% 72.5%, var(--white) 73% 73.8%, transparent 74.3% 98.5%, var(--white) 99% 100%, transparent 100%);
	animation: bs-dreh 40s linear infinite; }
@keyframes bs-dreh { to { transform: translateY(-50%) rotate(360deg); } }
.bs-hero .wrap { position: relative; z-index: 1; padding-top: clamp(48px, 9vh, 96px); padding-bottom: clamp(48px, 9vh, 96px); }
.bs-hero .kicker { color: var(--orange); }
.bs-hero h1 { color: var(--white); font-size: clamp(34px, 5vw, 64px); font-weight: 800; letter-spacing: -.01em; line-height: 1.05; max-width: 18ch; margin: 0 0 18px; }
.bs-hero .sub { font-size: clamp(17px, 2vw, 22px); color: var(--on-navy); max-width: 46ch; margin: 0 0 28px; }
.bs-hero a { color: var(--white); }
.bs-hero .hero-logo { width: clamp(96px, 13vh, 140px); height: clamp(96px, 13vh, 140px); }
.bs-status { display: inline-flex; align-items: center; gap: 12px; margin: 0; padding: 8px 16px 8px 12px; border: 1px solid color-mix(in srgb, var(--on-navy) 40%, transparent); border-radius: 30px; font-size: 14px; font-weight: 600; color: var(--on-navy); }
.bs-status::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 color-mix(in srgb, var(--orange) 60%, transparent); animation: bs-puls 2s ease-out infinite; }
@keyframes bs-puls { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--orange) 60%, transparent); } 100% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--orange) 0%, transparent); } }
.bs-section { padding: clamp(48px, 8vh, 88px) 0; }
.bs-section.alt { background: var(--white); }
.bs-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 18px; }
.bs-cards .card h2.h3 { margin: 0; }
.bs-section.alt .card { background: var(--bg); }
.bs-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.bs-wer p { max-width: 58ch; }
.bs-verbaende { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.bs-verbaende li { position: relative; padding-left: 26px; font-weight: 600; }
.bs-verbaende li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 20%, transparent); }
.bs-verbaende a { color: var(--navy); text-decoration: none; }
.bs-verbaende a:hover { text-decoration: underline; }
.bs-kontakt { display: block; padding: clamp(24px, 3vw, 40px); }
.bs-kontakt h2, .bs-recht h2, .bs-wer h2 { font-size: clamp(22px, 2.4vw, 28px); }
.bs-kontakt > p { margin-bottom: 22px; }
.bs-recht { font-size: 15px; color: var(--muted); }
.bs-recht h2 { font-size: 18px; }
.bs-legal { background: var(--navy); color: var(--on-navy); border-top: 0; }
.aej-wartung .bs-voll { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.aej-wartung .bs-voll .wrap { width: 100%; }
.bs-kurzkontakt { margin: 28px 0 6px; color: var(--on-navy); }
.bs-links { font-size: 14px; color: var(--on-navy); margin: 0; }

/* 10 · Einblenden beim Scrollen (nur wenn JavaScript läuft) ------------------ */
.js :is(.section, .page-head, .bs-section) > .wrap > :not(.cards, .tasks, .stats, .bs-cards, .bs-zwei, .insta-layout),
.js :is(.cards, .tasks, .stats, .bs-cards, .bs-zwei, .insta-layout, .grid, .legal-grid) > *,
.js .legalpage > .wrap > .prose { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js :is(.cards, .grid, .legal-grid, .bs-zwei) > :first-child:not(.is-in) { transform: translateX(-40px); }
.js :is(.cards, .grid, .legal-grid, .bs-zwei) > :last-child:not(.is-in) { transform: translateX(40px); }
.js .is-in { opacity: 1 !important; transform: none !important; }
:is(.section > .wrap, .page-head > .wrap, .bs-section > .wrap, .cards, .tasks, .stats, .bs-cards, .bs-zwei, .insta-layout, .grid, .legal-grid) > :nth-child(2) { transition-delay: .1s; }
:is(.section > .wrap, .page-head > .wrap, .bs-section > .wrap, .cards, .tasks, .stats, .bs-cards, .bs-zwei, .insta-layout, .grid, .legal-grid) > :nth-child(3) { transition-delay: .22s; }
:is(.section > .wrap, .page-head > .wrap, .bs-section > .wrap, .cards, .tasks, .stats, .bs-cards, .bs-zwei, .insta-layout, .grid, .legal-grid) > :nth-child(4) { transition-delay: .34s; }
:is(.section > .wrap, .page-head > .wrap, .bs-section > .wrap, .cards, .tasks, .stats, .bs-cards, .bs-zwei, .insta-layout, .grid, .legal-grid) > :nth-child(n+5) { transition-delay: .46s; }

/* 11 · Startseite: jeder Bereich ein Bildschirm, rastet beim Scrollen ein ------ */
html:has(.aej-front .section) { scroll-snap-type: y proximity; }
@media (min-width: 961px) and (min-height: 640px) {
	html:has(.aej-front .section) { scroll-snap-type: y mandatory; }
}
.aej-front .section { min-height: calc(100vh - var(--hdr) - var(--adminbar)); min-height: calc(100svh - var(--hdr) - var(--adminbar)); scroll-snap-align: start; display: flex; align-items: center; }
html:has(.aej-front .section) .hero { min-height: calc(100vh - var(--hdr) - var(--adminbar)); min-height: calc(100svh - var(--hdr) - var(--adminbar)); scroll-snap-align: start; display: flex; align-items: center; }
html:has(.aej-front .section) .site-footer { scroll-snap-align: end; }

@media (min-width: 961px) {
	.aej-front .section { padding: clamp(40px, 6vh, 80px) 0; }
	.aej-front .section h2 { font-size: clamp(30px, 5.2vh, 56px); }
	.aej-front .section .kicker { font-size: clamp(13px, 1.7vh, 17px); }
	.aej-front .section .lead { font-size: clamp(18px, 2.6vh, 26px); max-width: 58ch; }
	.cards, .tasks { margin-top: clamp(28px, 6vh, 80px); gap: clamp(20px, 2.6vh, 36px); }
	#wer .cards { margin-top: clamp(20px, 3.5vh, 48px); }
	.card { padding: clamp(24px, 3.6vh, 48px); gap: clamp(14px, 2.2vh, 28px); }
	#wer .card .lg { height: clamp(80px, 12vh, 160px); }
	#wer .card .lg img { max-height: clamp(80px, 12vh, 160px); max-width: clamp(170px, 22vh, 280px); }
	.card h3 { font-size: clamp(19px, 2.6vh, 26px); }
	.card .more { font-size: clamp(16px, 2vh, 20px); }
	.join { margin-top: clamp(14px, 2.4vh, 28px); }
	.task { --pad-y: clamp(22px, 4vh, 48px); --pad-x: clamp(20px, 2.6vh, 36px); --ic: clamp(44px, 7vh, 80px); }
	.task::before { margin-bottom: clamp(14px, 2.4vh, 26px); }
	.task h3 { font-size: clamp(19px, 2.6vh, 26px); }
	.task p { font-size: clamp(15px, 2vh, 19px); }
	.insta { gap: clamp(10px, 1.6vh, 20px); }
}

/* 12 · Kleinere Bildschirme ------------------------------------------------ */
@media (max-width: 960px) {
	.site-header .logo img.wort { display: none; }
	.site-header .logo img.bild { display: block; }
	.hero .wrap { grid-template-columns: 1fr; }
	.hero-art { max-width: 360px; margin: 0 auto; }
	.cards, .tasks { grid-template-columns: 1fr 1fr; }
	.section { padding: 56px 0; }
	.section .wrap { padding-left: 56px; }
	.river-gutter { width: 52px; }
	.stats { grid-template-columns: 1fr 1fr; }
	.values { grid-template-columns: 1fr 1fr; }
	.insta-layout { grid-template-columns: 1fr; }
	.site-footer .fuss-spalten { grid-template-columns: 1fr; }
	.contact .grid, .legal-grid, .bs-zwei, .bs-cards { grid-template-columns: 1fr; }
	.toc { position: static; }
	.js :is(.cards, .grid, .legal-grid, .bs-zwei) > :is(:first-child, :last-child):not(.is-in) { transform: translateY(28px); }
}
@media (max-width: 600px) {
	.wrap { padding: 0 16px; }
	.section .wrap { padding-left: 52px; }
	.cards, .tasks, .values { grid-template-columns: 1fr; }
	.kontakt-form .row2 { grid-template-columns: 1fr; }
	.kontakt-form .btn { justify-self: stretch; justify-content: center; }
	.page-head .wrap { padding-top: 44px; padding-bottom: 44px; }
	.contact, .legalpage { padding: 40px 0 72px; }
}

/* 13 · Bewegung reduzieren -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js :is(.section, .page-head, .bs-section) > .wrap > *,
	.js :is(.cards, .tasks, .stats, .bs-cards, .bs-zwei, .insta-layout, .grid, .legal-grid) > *,
	.js .legalpage > .wrap > .prose { opacity: 1; transform: none; transition: none; }
	.scroll-cue .arr, .bs-hero::after, .bs-status::before { animation: none; }
	.hero-intro * { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}

/* 14 · Editor --------------------------------------------------------------- */
.aej-editor-platzhalter { display: grid; gap: 4px; padding: 24px; border: 2px dashed var(--rand); border-radius: var(--r-card); background: var(--bg); color: var(--muted); font-size: 14px; }
.aej-editor-platzhalter strong { color: var(--navy); font-size: 16px; }
.aej-editor-platzhalter.is-logo { padding: 10px 14px; }
.editor-styles-wrapper .card .lg img { max-height: 96px; }

/* 15 · Symbole (Masken – Farbe kommt über background aus theme.json) --------- */
.task.ic-beratung { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
.task.ic-foerdermittel { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18.5 6.5a7 7 0 1 0 0 11M4 10.5h10M4 13.5h10'/%3E%3C/svg%3E"); }
.task.ic-jugendpolitik { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l18-8-8 18-2-8-8-2z'/%3E%3C/svg%3E"); }
.task.ic-netzwerken { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3Ccircle cx='18' cy='6' r='3'/%3E%3Ccircle cx='12' cy='18' r='3'/%3E%3Cpath d='M8.5 7.5l2 8M15.5 7.5l-2 8M9 6h6'/%3E%3C/svg%3E"); }
.values li:nth-child(1) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-4.5-9.5-9A5.5 5.5 0 0 1 12 6a5.5 5.5 0 0 1 9.5 6c-2.5 4.5-9.5 9-9.5 9z'/%3E%3C/svg%3E"); }
.values li:nth-child(2) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/svg%3E"); }
.values li:nth-child(3) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M6 9h12'/%3E%3C/svg%3E"); }
.values li:nth-child(4) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 8.3-8 9-4.6-.7-8-4.5-8-9V6z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.info.ic-ort { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.info.ic-mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.info.ic-telefon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
.insta-link a { display: inline-flex; align-items: center; gap: 10px; }
.insta-link a::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='.8'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='.8'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Baustelle am Handy: Logo steht schon groß im Kopf, Kopfzeile ausblenden */
@media (max-width: 960px) { .site-header.ist-baustelle { display: none; } }

/* 16 · Startseite v13: Mitmach-Zeile mit Knopf „Unsere Haltung“ ------------- */
.join-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: clamp(14px, 2.4vh, 28px); }
.join-row .join { margin: 0; }
.haltung-link { margin: 0; }
.haltung-link a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: var(--navy); color: var(--white); font-weight: 700; text-decoration: none; font-size: clamp(15px, 1.9vh, 18px); transition: transform .15s, background .15s; }
.haltung-link a:hover { background: var(--orange); color: var(--navy); transform: translateY(-2px); }

/* v13: letzter Einrast-Bildschirm = Instagram + Fußbereich zusammen (--foot misst startseite.js) */
@media (min-width: 961px) and (min-height: 640px) {
	.aej-front #insta { min-height: calc(100svh - var(--hdr) - var(--adminbar) - var(--foot, 0px)); }
	html:has(.aej-front .section) .site-footer { scroll-snap-align: none; }
	html.foot-tall:has(.aej-front .section) .site-footer { scroll-snap-align: end; }
}

/* 17 · Seite „Unsere Haltung“ (Vorschau Haltung v2) -------------------------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h-hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; min-height: calc(100svh - var(--hdr) - var(--adminbar) - 56px); display: flex; align-items: center; }
.h-hero .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; width: 100%; }
.h-hero .kicker { color: var(--orange); }
.h-hero h1 { color: var(--white); font-size: clamp(44px, 8.2vw, 112px); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; margin: 0 0 24px; }
.h-hero .wir { display: block; }
.rot { display: block; position: relative; height: 1.2em; overflow: hidden; color: var(--orange); }
.rot span { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(100%); animation: rot 10s infinite; }
.rot span:nth-child(2) { animation-delay: 2.5s; } .rot span:nth-child(3) { animation-delay: 5s; } .rot span:nth-child(4) { animation-delay: 7.5s; }
@keyframes rot { 0% { opacity: 0; transform: translateY(100%); } 4%, 22% { opacity: 1; transform: none; } 26%, 100% { opacity: 0; transform: translateY(-100%); } }
.h-sub { font-size: clamp(18px, 2vw, 24px); color: var(--on-navy); max-width: 40ch; margin: 0 0 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.chips a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 2px solid color-mix(in srgb, var(--on-navy) 45%, transparent); color: var(--white); text-decoration: none; font-weight: 700; font-size: 17px; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.chips a strong { font-size: 12px; color: var(--orange); letter-spacing: .08em; }
.chips a:hover { background: var(--orange); border-color: var(--orange); color: var(--navy); transform: translateY(-2px); }
.chips a:hover strong { color: var(--navy); }
.h-dots { position: absolute; inset: 0; pointer-events: none; }
.h-dots i { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--on-navy); opacity: .18; animation: float 9s ease-in-out infinite; }
.h-dots i:nth-child(3n) { background: var(--orange); opacity: .55; width: 18px; height: 18px; }
.h-dots i:nth-child(1) { left: 62%; top: 18%; } .h-dots i:nth-child(2) { left: 74%; top: 30%; animation-delay: -2s; } .h-dots i:nth-child(3) { left: 86%; top: 16%; animation-delay: -4s; }
.h-dots i:nth-child(4) { left: 68%; top: 52%; animation-delay: -1s; } .h-dots i:nth-child(5) { left: 80%; top: 62%; animation-delay: -3s; } .h-dots i:nth-child(6) { left: 92%; top: 44%; animation-delay: -5s; }
.h-dots i:nth-child(7) { left: 58%; top: 78%; animation-delay: -6s; } .h-dots i:nth-child(8) { left: 72%; top: 84%; animation-delay: -2.5s; } .h-dots i:nth-child(9) { left: 88%; top: 80%; animation-delay: -7s; }
.h-dots i:nth-child(10) { left: 96%; top: 24%; animation-delay: -1.5s; } .h-dots i:nth-child(11) { left: 52%; top: 10%; animation-delay: -4.5s; } .h-dots i:nth-child(12) { left: 84%; top: 92%; animation-delay: -3.5s; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(14px, -18px); } 66% { transform: translate(-12px, 10px); } }

.ticker { background: var(--orange); color: var(--navy); overflow: hidden; white-space: nowrap; padding: 14px 0; font-weight: 800; font-size: clamp(20px, 2.6vw, 32px); text-transform: lowercase; }
.ticker .track { display: inline-block; animation: tick 30s linear infinite; }
.ticker span { margin-right: .9em; } .ticker span::after { content: "✶"; margin-left: .9em; }
@keyframes tick { to { transform: translateX(-50%); } }

.val { padding: clamp(72px, 12vh, 140px) 0; background: var(--bg); position: relative; overflow: hidden; }
.val.alt { background: var(--white); }
.val-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.val-head { position: sticky; top: calc(var(--hdr) + var(--adminbar) + 40px); }
.val .num { display: block; margin: 0; font-size: clamp(90px, 14vw, 190px); font-weight: 800; line-height: .85; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--navy) 28%, transparent); letter-spacing: -.04em; }
.val h2 { font-size: clamp(42px, 6vw, 80px); font-weight: 800; letter-spacing: -.02em; margin: -.35em 0 18px; color: var(--navy); }
.sticker { display: inline-block; margin: 0; background: var(--orange); color: var(--navy); font-weight: 800; padding: 8px 16px; border-radius: 8px; rotate: -3deg; box-shadow: 0 6px 18px color-mix(in srgb, var(--orange) 30%, transparent); font-size: 17px; }
.sticker.tilt-r { rotate: 3deg; }
.big { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; color: var(--navy); line-height: 1.3; margin: 0 0 28px; }
.val-body > p { font-size: 18px; }
.val-body > p.big { font-size: clamp(22px, 2.6vw, 32px); }
.tags { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { background: var(--white); border: 2px solid var(--navy); color: var(--navy); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 17px; transition: background .2s, color .2s; }
.tags li:nth-child(odd) { rotate: -1.5deg; } .tags li:nth-child(even) { rotate: 1.5deg; }
.tags li:hover { background: var(--navy); color: var(--white); }
.flow { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.flow li { position: relative; background: var(--bg); border-radius: var(--r-card); padding: 18px 14px; text-align: center; font-size: 15px; color: var(--muted); }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -12px; top: 50%; transform: translate(50%, -50%); color: var(--orange-text); font-weight: 800; font-size: 20px; z-index: 1; }
.flow strong { display: block; font-weight: 800; color: var(--navy); font-size: 19px; margin-bottom: 4px; }
.flow li:last-child { background: var(--navy); color: var(--on-navy); } .flow li:last-child strong { color: var(--white); }
.nine { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: var(--bg); border-radius: var(--r-card); padding: 22px; }
.val.alt .nine, .val.alt .flow li:not(:last-child) { background: var(--bg); }
.seats { display: grid; grid-template-columns: repeat(3, 22px); gap: 8px; }
.seats span { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); }
.seats span:nth-child(-n+3) { background: var(--orange); } .seats span:nth-child(n+7) { background: var(--blue); }
.nine p { margin: 0; font-size: 17px; } .nine strong { color: var(--navy); }
.quote { margin: 0 0 32px; padding: 0 0 0 24px; border-left: 6px solid var(--orange); font-size: clamp(28px, 3.4vw, 44px) !important; font-weight: 800; line-height: 1.15; color: var(--navy); letter-spacing: -.01em; }
.quote mark { color: inherit; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--orange) 45%, transparent) 62%); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trio > div { background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 22px; border-top: 4px solid var(--orange); }
.trio h3 { font-size: 20px; font-weight: 800; margin: 0 0 6px; } .trio p { margin: 0; color: var(--muted); font-size: 15px; }
.checks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding: 16px 18px 16px 58px; background: var(--bg); border-radius: var(--r-card); font-size: 17px; }
.checks li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--navy); }
.checks li::after { content: ""; position: absolute; left: 16px; top: 50%; width: 28px; height: 28px; margin-top: -14px; background: var(--orange); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 16px no-repeat; }
.checks strong { color: var(--navy); }
.help { background: var(--navy); color: var(--on-navy); border-radius: var(--r-card); padding: 24px 26px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.help p { margin: 0; font-size: 17px; } .help strong { color: var(--white); }
.btn-help a { display: inline-block; background: var(--orange); color: var(--navy); font-weight: 800; text-decoration: none; padding: 12px 20px; border-radius: 999px; }
.chat-sec { background: var(--light); padding: clamp(72px, 10vh, 120px) 0; }
.chat-sec h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; }
.chat { max-width: 720px; margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 78%; margin: 0; padding: 14px 18px; border-radius: 20px; font-size: 17px; line-height: 1.45; box-shadow: 0 2px 8px color-mix(in srgb, var(--navy) 8%, transparent); }
.msg.q { align-self: flex-start; background: var(--white); color: var(--text); border-bottom-left-radius: 6px; }
.msg.a { align-self: flex-end; background: var(--navy); color: var(--white); border-bottom-right-radius: 6px; margin-bottom: 14px; }
.cta { background: var(--navy); color: var(--white); padding: clamp(72px, 10vh, 120px) 0; text-align: center; }
.cta h2 { color: var(--white); font-size: clamp(36px, 5.4vw, 72px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; }
.cta p { color: var(--on-navy); font-size: 20px; margin: 0 auto 32px; max-width: 46ch; }
.cta .cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: none; }
.cta-btns a { background: var(--orange); color: var(--navy); font-weight: 800; text-decoration: none; padding: 14px 22px; border-radius: 999px; transition: transform .15s, background .15s; }
.cta-btns a:hover { transform: translateY(-3px); background: var(--white); }
.cta .back { margin: 36px auto 0; font-size: 16px; } .cta .back a { color: var(--on-navy); }

/* Einblenden auf der Haltungsseite */
.js :is(.h-hero > .wrap, .val-head, .val-body, .chat-sec > .wrap, .cta > .wrap) > :not(.chat),
.js :is(.flow, .trio, .checks, .chat) > * { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .tags > * { opacity: 0; transition: opacity .7s ease; }
.js .msg.q:not(.is-in), .js .msg.a:not(.is-in) { transform: translateY(16px) scale(.96); }
:is(.val-head, .val-body, .flow, .trio, .checks, .tags, .chat) > :nth-child(2) { transition-delay: .1s; }
:is(.val-head, .val-body, .flow, .trio, .checks, .tags, .chat) > :nth-child(3) { transition-delay: .22s; }
:is(.val-head, .val-body, .flow, .trio, .checks, .tags, .chat) > :nth-child(n+4) { transition-delay: .34s; }

@media (prefers-reduced-motion: reduce) {
	.rot { height: auto; } .rot span { position: static; display: none; opacity: 1; transform: none; animation: none; } .rot span:first-child { display: block; }
	.h-dots i, .ticker .track { animation: none; }
	.js :is(.h-hero > .wrap, .val-head, .val-body, .chat-sec > .wrap, .cta > .wrap) > *, .js :is(.flow, .trio, .checks, .chat, .tags) > * { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 960px) {
	.val-grid { grid-template-columns: 1fr; } .val-head { position: static; }
	.flow { grid-template-columns: 1fr 1fr; gap: 20px; } .flow li:nth-child(2)::after { display: none; }
	.trio { grid-template-columns: 1fr; }
	.h-dots i { opacity: .1; } .h-dots i:nth-child(3n) { opacity: .3; }
}
@media (max-width: 600px) {
	.msg { max-width: 90%; }
	.nine { grid-template-columns: 1fr; }
	.help { flex-direction: column; align-items: flex-start; }
}

/* 18 · Baustellen-/Wartungsseite: schlicht, nur Baustellenschild (ohne neues Website-Design) */
:root { --bs-gelb: var(--wp--custom--farbe--baustelle-gelb); --bs-dunkel: var(--wp--custom--farbe--baustelle-dunkel); }
.aej-baustelle, .aej-wartung { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: clamp(32px, 6vh, 72px) 16px; }
.schild { width: 100%; max-width: 680px; text-align: center; }
.schild-svg { display: block; width: min(300px, 70vw); height: auto; margin: 0 auto clamp(24px, 4vh, 40px); }
.schild-svg .s-gelb { fill: var(--bs-gelb); }
.schild-svg .s-dunkel { fill: var(--bs-dunkel); }
.schild-svg .s-weiss { fill: var(--white); }
.schild-svg .s-text { font: 800 46px "Fira Sans", system-ui, sans-serif; letter-spacing: .06em; fill: var(--bs-dunkel); }
.schild-svg .s-lampe circle { animation: bs-blink 1.6s ease-in-out infinite; }
.schild-svg .s-lampe circle + circle { animation-delay: .8s; }
@keyframes bs-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.schild h1 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; color: var(--text); margin: 0 0 14px; }
.schild-sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin: 0 auto 28px; max-width: 46ch; }
.schild-kontakt { background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 24px 28px; text-align: left; display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px 28px; font-size: 16px; }
.schild-kontakt p { margin: 0; }
.schild-kontakt a { color: var(--text); font-weight: 600; }
.schild-recht { margin-top: 28px; font-size: 13px; color: var(--muted); text-align: left; }
.schild-recht p { margin: 0 0 8px; }
@media (max-width: 600px) { .schild-kontakt { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .schild-svg .s-lampe circle { animation: none; } }
