/* ==========================================================================
   WG „Eisenbahn“ – Designsystem
   Farben auf WCAG-AA geprüft (Text ≥ 4.5:1), Bewegungen respektieren
   prefers-reduced-motion, Schriften lokal gehostet (DSGVO).
   ========================================================================== */

@font-face { font-family: "Jakarta"; src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jakarta"; src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
	--ink: #0f2a44;
	--ink-2: #2b4b6b;
	--text: #1d2a37;
	--muted: #556372;
	--green: #157a4e;
	--green-d: #0f5f3c;
	--green-l: #7fd6a6;
	--mint: #e3f4ea;
	--sky: #e6eef7;
	--sand: #f6f3ec;
	--sand-2: #efe9dd;
	--white: #fff;
	--red: #b42318;
	--red-l: #fdecea;
	--amber: #8a5a00;
	--amber-l: #fff4d6;
	--line: #dfe3e8;
	--focus: #ffbf47;

	--ff: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--ff-accent: "Fraunces", Georgia, "Times New Roman", serif;

	--fs-base: 1.0625rem;
	--radius: 22px;
	--radius-sm: 14px;
	--shadow-sm: 0 1px 2px rgba(15,42,68,.06), 0 2px 8px rgba(15,42,68,.05);
	--shadow: 0 2px 6px rgba(15,42,68,.05), 0 14px 34px -10px rgba(15,42,68,.18);
	--shadow-lg: 0 30px 60px -20px rgba(15,42,68,.30);
	--ease: cubic-bezier(.2,.7,.2,1);
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 76px;
}

/* Anzeige-Einstellungen (Barrierefreiheit) */
html[data-fs="l"]  { font-size: 112.5%; }
html[data-fs="xl"] { font-size: 125%; }
html[data-contrast="high"] {
	--text: #000; --muted: #1f2933; --ink: #001a33; --green: #005c33; --green-d: #00401f;
	--line: #4b5563; --sand: #fff; --sand-2: #f2f2f2; --mint: #fff; --sky: #fff;
}
html[data-contrast="high"] a:not(.btn):not(.tile):not(.district):not(.stretched):not(.nav__link) { text-decoration: underline; }
html[data-contrast="high"] .flat-card, html[data-contrast="high"] .news-card, html[data-contrast="high"] .tile, html[data-contrast="high"] .person, html[data-contrast="high"] .info-card, html[data-contrast="high"] .price-card { border: 2px solid #000; }

/* ---------- Basis ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--ff); font-size: var(--fs-base); line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--green-d); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 750; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; hyphens: auto; -webkit-hyphens: auto; }
h1, h2, h3, .page-title, .section-title { hyphens: manual; }
ul, ol { padding-left: 1.2em; }
em { font-style: italic; }
h1 em, h2 em, .hero__title em, .footer-cta__title em { font-family: var(--ff-accent); font-weight: 500; font-style: italic; color: var(--green); letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--green-l); color: var(--ink); }

/* Fokus – gut sichtbar für Tastaturnutzer */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 6px rgba(15,42,68,.85); }
#main:focus { outline: none; }

.sr-only { 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 { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 12px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 0; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hide-sm { }
@media (max-width: 640px) { .hide-sm { display: none !important; } }
@media (max-width: 1280px) { .hide-md { display: none !important; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s, border-color .25s; white-space: nowrap; }
.btn .icon { transition: transform .3s var(--ease); flex: none; }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px -8px rgba(21,122,78,.55); }
.btn--primary:hover { background: var(--green-d); color: #fff; box-shadow: 0 12px 26px -10px rgba(21,122,78,.7); transform: translateY(-1px); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--mint); color: var(--ink); transform: translateY(-1px); }
.btn--ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn--sm { min-height: 42px; padding: .55em 1.1em; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; transition: background .2s; text-decoration: none; }
.icon-btn:hover { background: var(--sand); color: var(--ink); }

/* ---------- Topbar ---------- */
.notice-bar { background: var(--amber-l); color: #4a3300; font-weight: 600; font-size: .9375rem; }
.notice-bar .container { display: flex; gap: 10px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.topbar { background: var(--ink); color: #dfe8f2; font-size: .875rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 12px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; align-items: center; }
.topbar a, .topbar button { color: #dfe8f2; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; padding: 6px 2px; font-size: .875rem; }
.topbar a:hover, .topbar button:hover { color: #fff; }
.topbar__emergency { color: #ffd2cc !important; font-weight: 700; }
.topbar__actions > li { position: relative; }
.a11y-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 200; width: 290px; background: #fff; color: var(--text); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 18px; animation: pop .25s var(--ease); }
.a11y-panel__title { font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.a11y-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.seg { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 6px 12px; font-weight: 700; color: var(--ink) !important; cursor: pointer; font-size: .9rem; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff !important; }
.a11y-switch { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; font-weight: 600; }
.a11y-switch input { width: 20px; height: 20px; accent-color: var(--green); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, background .3s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(15,42,68,.25); border-bottom-color: var(--line); background: rgba(255,255,255,.96); }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-width: 0; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { color: var(--ink); transition: transform .4s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand__sub { font-size: .75rem; color: var(--muted); font-weight: 600; letter-spacing: .01em; }
.brand__logo { max-height: 56px; width: auto; }
.brand__logo--svg { height: 52px; width: auto; max-width: 240px; object-fit: contain; }
@media (max-width: 420px) { .brand__logo--svg { height: 42px; max-width: 180px; } }
/* Bildergalerien in News (aus dem Import oder dem Editor) */
.prose .wp-block-gallery, .prose .wge-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 2em 0; padding: 0; }
.prose .wp-block-gallery figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; border-radius: 14px; }
.prose .wp-block-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .6s var(--ease); }
.prose .wp-block-gallery a:hover img { transform: scale(1.05); }

.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px; color: var(--ink); font-weight: 650; text-decoration: none; background: none; border: 0; cursor: pointer; font-size: 1rem; position: relative; transition: background .2s, color .2s; }
.nav__link:hover { background: var(--sand); color: var(--ink); }
.nav__item.is-active > .nav__link { color: var(--green); }
.nav__item.is-active > .nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: currentColor; }
.nav__sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 10px); left: -8px; min-width: 250px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: pop .22s var(--ease); }
.nav__sub .nav__link { display: flex; width: 100%; border-radius: 10px; font-weight: 600; }
.nav__sub .nav__link[aria-current="page"] { background: var(--mint); color: var(--green-d); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

.header-actions { display: flex; align-items: center; gap: 6px; }
.merk-count[hidden] { display: none; }
.merk-count { position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--green); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; animation: pop .3s var(--ease); }
.nav-toggle { display: none; }
.nav-toggle__bars { display: grid; gap: 5px; width: 22px; }
.nav-toggle__bars span { height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
	.nav-toggle { display: inline-grid; }
	.nav { position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-top, 118px); background: #fff; margin: 0; padding: 16px var(--gutter) 32px; overflow-y: auto; overscroll-behavior: contain;
		transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s linear .4s; z-index: 99; border-top: 1px solid var(--line); }
	.nav.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
	.nav__link { width: 100%; justify-content: flex-start; gap: 14px; font-size: 1.12rem; padding: 10px 10px; border-radius: 14px; min-height: 56px; }
	.nav__link .nav__ico { width: 40px; height: 40px; border-radius: 12px; background: var(--mint); color: var(--green-d); display: grid; place-items: center; flex: none; }
	.nav__item.is-active > .nav__link .nav__ico, .nav__link[aria-current] .nav__ico { background: var(--green); color: #fff; }
	.nav__caret { margin-left: auto; }
	.nav__item.is-active > .nav__link::after { display: none; }
	.nav__sub { position: static; box-shadow: none; border: 0; padding: 2px 0 8px 26px; min-width: 0; animation: none; border-left: 2px solid var(--mint); margin-left: 29px; border-radius: 0; }
	.nav__sub .nav__link { font-size: 1rem; min-height: 48px; padding: 6px 10px; }
	.nav__sub .nav__ico { width: 32px; height: 32px; border-radius: 10px; background: var(--sand); }
	.nav__item:has(.chip--x) {}
	.nav__list > .nav__item > .nav__link[href*="notfall"] .nav__ico { background: var(--red-l); color: var(--red); }
	.nav__sub a[href*="notfall"] .nav__ico { background: var(--red-l); color: var(--red); }
	.nav__quick { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
	.nav__quick-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
	.nav__quick-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 16px; background: var(--sand); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; }
	.nav__quick-btn .icon { color: var(--green); }
	.nav__quick-btn--alert { background: var(--red-l); color: #7a1a12; } .nav__quick-btn--alert .icon { color: var(--red); }
	html.nav-open { overflow: hidden; }
}
@media (min-width: 981px) {
	.nav__quick { display: none; }
	.nav__link .nav__ico { display: inline-grid; color: var(--green); margin-right: 2px; }
	.nav__list > .nav__item > .nav__link .nav__ico .icon { width: 18px; height: 18px; }
	.nav__sub .nav__link { gap: 10px; }
	.nav__sub .nav__ico { width: 32px; height: 32px; border-radius: 10px; background: var(--mint); display: grid; place-items: center; color: var(--green-d); flex: none; }
	.nav__sub a[href*="notfall"] .nav__ico { background: var(--red-l); color: var(--red); }
	.nav__btn .nav__caret .icon { transform: rotate(90deg); transition: transform .25s; }
	.nav__btn[aria-expanded="true"] .nav__caret .icon { transform: rotate(-90deg); }
}
@media (min-width: 981px) and (max-width: 1180px) { .nav__list > .nav__item > .nav__link .nav__ico { display: none; } }


/* ---------- Gleis-Motiv (Eisenbahn) ---------- */
.rail { position: relative; height: 14px; overflow: visible; pointer-events: none; }
.rail__track { position: absolute; inset: 0; opacity: .38; background:
	linear-gradient(var(--ink), var(--ink)) 0 3px / 100% 2px no-repeat,
	linear-gradient(var(--ink), var(--ink)) 0 9px / 100% 2px no-repeat,
	repeating-linear-gradient(90deg, rgba(15,42,68,.3) 0 5px, transparent 5px 22px); }
.rail--light .rail__track { opacity: .28; background:
	linear-gradient(#fff, #fff) 0 3px / 100% 2px no-repeat,
	linear-gradient(#fff, #fff) 0 9px / 100% 2px no-repeat,
	repeating-linear-gradient(90deg, rgba(255,255,255,.4) 0 5px, transparent 5px 22px); }
/* Kleiner Zug, der über das Gleis fährt */
.rail__train { position: absolute; left: 0; bottom: 4px; width: 150px; height: auto; z-index: 2; transform: translateX(-180px); animation: train 26s linear infinite; will-change: transform; filter: drop-shadow(0 3px 3px rgba(15,42,68,.18)); }
.rail--light .rail__train { animation-name: train-rtl; animation-duration: 34s; }
/* Footer: Zug fährt von rechts nach links – gespiegelt, damit die Lok vorne fährt */
@keyframes train-rtl { from { transform: translateX(calc(100vw + 20px)) scaleX(-1); } to { transform: translateX(-180px) scaleX(-1); } }
.rail__train .lamp { animation: lamp 1.6s ease-in-out infinite; }
@keyframes train { from { transform: translateX(-180px); } to { transform: translateX(calc(100vw + 20px)); } }
@keyframes lamp { 50% { opacity: .35; } }
.page-hero .rail, .hero .rail { overflow: visible; }
.hero, .page-hero { overflow-x: clip; overflow-y: visible; }
.site-footer .rail { margin-top: -26px; }
@media (max-width: 640px) { .rail__train { width: 112px; animation-duration: 16s; } }
@media (prefers-reduced-motion: reduce) { .rail__train { animation: none; transform: translateX(24px); } .rail--light .rail__train { transform: translateX(calc(100vw - 180px)) scaleX(-1); } }
html[data-motion="reduce"] .rail__train { transform: translateX(24px) !important; }
html[data-motion="reduce"] .rail--light .rail__train { transform: translateX(calc(100vw - 180px)) scaleX(-1) !important; }

/* ---------- Typografie-Bausteine ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.kicker--light { color: var(--green-l); }
.section-title { font-size: clamp(1.85rem, 3.6vw, 2.9rem); }
.section-title--sm { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.lead { font-size: clamp(1.06rem, 1.4vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head-row .section-head { margin-bottom: 0; }
.page-title { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.03em; }
.page-title--sm { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.page-title .icon { display: inline; vertical-align: -4px; color: var(--red); }
.meta { color: var(--muted); font-size: .9rem; font-weight: 600; margin-bottom: 8px; }

/* ---------- Sektionen ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--tint { background: var(--sand); }
.section--ink { background: var(--ink); color: #dfe8f2; overflow: hidden; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .kicker { color: var(--green-l); }
.section--ink .section-title em { color: var(--green-l); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--sand) 100%); padding: clamp(40px, 6vw, 80px) 0 0; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob--1 { width: 520px; height: 520px; background: var(--mint); top: -160px; right: -120px; animation: float 16s ease-in-out infinite; }
.blob--2 { width: 380px; height: 380px; background: var(--sky); bottom: -120px; left: -140px; animation: float 20s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(30px, 24px) scale(1.06); } }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-bottom: clamp(40px, 6vw, 72px); }
.hero__title { font-size: clamp(2.5rem, 6.2vw, 4.7rem); letter-spacing: -.035em; line-height: 1.02; margin-bottom: 22px; }
.hero__title em { display: inline-block; }
.hero__text { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 52ch; margin-bottom: 30px; }
.hero__visual { position: relative; }
.hero-ill { width: 100%; filter: drop-shadow(0 30px 50px rgba(15,42,68,.18)); }
.hero__photo img { border-radius: 36px; aspect-ratio: 4/3.6; object-fit: cover; box-shadow: var(--shadow-lg); }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); font-size: .9rem; color: var(--ink); animation: bob 6s ease-in-out infinite; }
.float-card .icon { color: var(--green); }
.float-card--a { left: -18px; top: 18%; }
.float-card--b { right: -10px; bottom: 8%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Animierte Illustration */
.hero-ill .tram { animation: tram 14s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes tram { 0% { transform: translateX(-200px); } 45%, 55% { transform: translateX(195px); } 100% { transform: translateX(600px); } }
.hero-ill .cloud--a { animation: drift 30s linear infinite; }
.hero-ill .cloud--b { animation: drift 40s linear infinite reverse; }
@keyframes drift { from { transform: translateX(-40px); } to { transform: translateX(60px); } }
.hero-ill .win-lit { animation: lit 5s ease-in-out infinite; }
.hero-ill .win-lit--2 { animation-delay: -1.7s; }
.hero-ill .win-lit--3 { animation-delay: -3.3s; }
@keyframes lit { 0%, 100% { fill: #e6eef7; } 40%, 70% { fill: #ffd89a; } }
.hero-ill .house { transform-box: fill-box; transform-origin: bottom; animation: rise 1.1s var(--ease) both; }
.hero-ill .house--2 { animation-delay: .15s; }
.hero-ill .house--3 { animation-delay: .3s; }
@keyframes rise { from { transform: scaleY(.6); opacity: 0; } }
.hero-ill .sun { animation: pulse 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { transform: scale(1.08); } }

/* Schnellsuche */
.quicksearch { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr auto; gap: 6px; align-items: end; background: #fff; border-radius: 22px; padding: 10px; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 640px; }
.qs-field { display: flex; flex-direction: column; padding: 6px 12px; border-radius: 14px; transition: background .2s; }
.qs-field:hover, .qs-field:focus-within { background: var(--sand); }
.qs-field label { white-space: nowrap; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.qs-field select { border: 0; background: transparent; font-weight: 700; color: var(--ink); padding: 4px 0; cursor: pointer; min-height: 32px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f2a44' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 18px; }
.qs-field select:focus-visible { outline: none; box-shadow: none; }
.qs-field:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.quicksearch .btn { height: 56px; border-radius: 16px; }
.hero__stats { list-style: none; padding: 0; margin: 34px 0 0; display: flex; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--ink); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero__stats span { font-size: .9rem; color: var(--muted); font-weight: 600; margin-top: 6px; }

@media (max-width: 980px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__visual { max-width: 560px; margin: 0 auto; width: 100%; }
	.float-card--a { left: 0; }
	.float-card--b { right: 0; }
}
@media (max-width: 640px) {
	.quicksearch { grid-template-columns: 1fr 1fr; }
	.qs-field:first-child { grid-column: 1 / -1; }
	.quicksearch .btn { grid-column: 1 / -1; }
	.float-card { display: none; }
}

/* Einblende-Animationen */
.anim-in { animation: inUp .9s var(--ease) both; animation-delay: calc(var(--d, 0) * .1s + .05s); }
@keyframes inUp { from { opacity: 0; transform: translateY(22px); } }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Seitenkopf ---------- */
.page-hero { position: relative; background: linear-gradient(180deg, var(--sand) 0%, #fff 100%); padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: var(--mint); filter: blur(70px); opacity: .6; right: -160px; top: -220px; pointer-events: none; }
.page-hero > .container { position: relative; }
.page-hero .rail { position: absolute; left: 0; right: 0; bottom: 0; }
.page-hero--compact { padding-bottom: clamp(28px, 4vw, 44px); }
.page-hero--alert { background: linear-gradient(180deg, var(--red-l) 0%, #fff 100%); }
.page-hero--alert::before { background: #ffd9d4; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumb a { color: var(--muted); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--green); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 700; }

/* ---------- Grids & Karten ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .results .grid--2 { grid-template-columns: repeat(3, 1fr); } .results .flat-card__body { padding: 18px; } }
@media (max-width: 640px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.stretched { text-decoration: none; color: inherit; }
.stretched:focus-visible { outline: none; box-shadow: none; }
.flat-card:focus-within, .news-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }

.flat-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.flat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.flat-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--sand); }
.flat-card__media img, .flat-card__media svg { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.flat-card:hover .flat-card__media img, .flat-card:hover .flat-card__media svg { transform: scale(1.06); }
.flat-card__badges { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.badge { display: inline-block; background: rgba(255,255,255,.94); color: var(--ink); font-weight: 700; font-size: .78rem; padding: 6px 11px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.badge--alt { background: var(--ink); color: #fff; }
.badge--warn { background: var(--amber-l); color: #5c3d00; }
.fav-btn { position: absolute; right: 12px; top: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), color .2s, background .2s; }
.fav-btn:hover { transform: scale(1.1); }
.fav-btn[aria-pressed="true"] { color: #fff; background: var(--red); }
.fav-btn[aria-pressed="true"] .icon path { fill: currentColor; }
.fav-btn.is-pop { animation: heart .45s var(--ease); }
@keyframes heart { 40% { transform: scale(1.3); } }
.fav-btn--wide { position: static; width: auto; height: auto; border-radius: 999px; box-shadow: none; background: transparent; display: inline-flex; }
.fav-btn--wide[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.flat-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.flat-card__addr { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.flat-card__title { font-size: 1.15rem; line-height: 1.3; margin-bottom: 14px; letter-spacing: -.01em; }
.flat-card__title a:hover { color: var(--green); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.facts > div { display: flex; align-items: center; gap: 6px; background: var(--sand); border-radius: 10px; padding: 6px 10px; font-size: .9rem; font-weight: 700; color: var(--ink); }
.facts dt { color: var(--green); display: flex; } .facts dd { margin: 0; }
.flat-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 16px; }
.price { margin: 0; display: flex; flex-direction: column; line-height: 1.2; }
.price__label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.price strong { font-size: 1.4rem; color: var(--ink); letter-spacing: -.02em; }
.flat-card__go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--green-d); transition: background .3s, color .3s, transform .4s var(--ease); }
.flat-card:hover .flat-card__go { background: var(--green); color: #fff; transform: rotate(-35deg); }

.news-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card__media { aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, var(--mint), var(--sky)); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__ph { display: grid; place-items: center; height: 100%; color: var(--green); opacity: .55; }
.news-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-card__title { font-size: 1.15rem; line-height: 1.3; }
.news-card__title a:hover { color: var(--green); }
.news-card__text { color: var(--muted); font-size: .95rem; }
.link-more { margin-top: auto; display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--green); }
.news-card:hover .link-more .icon { transform: translateX(4px); }
.link-more .icon { transition: transform .3s var(--ease); }
.placeholder-svg { width: 100%; height: 100%; }

/* ---------- Vorteile ---------- */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.benefit { background: #fff; border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s; }
.benefit:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.benefit__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--mint); color: var(--green-d); margin-bottom: 18px; transition: transform .5s var(--ease); }
.benefit:hover .benefit__icon { transform: rotate(-8deg) scale(1.06); }
.benefit h3 { font-size: 1.2rem; }
.benefit p { color: var(--muted); margin: 0; }
@media (max-width: 1024px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }

/* ---------- Stadtteile ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.split--hero { align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.district-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.district { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 20px 24px; border-radius: 18px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: #fff; transition: background .3s, transform .4s var(--ease), border-color .3s; }
.district:hover { background: var(--ink); color: #fff; transform: translateX(6px); border-color: var(--ink); }
.district__name { font-weight: 750; font-size: 1.15rem; }
.district__count { font-size: .875rem; font-weight: 700; color: var(--green); background: var(--mint); padding: 4px 10px; border-radius: 999px; }
.district:hover .district__count { background: rgba(255,255,255,.14); color: var(--green-l); }
.district .icon { transition: transform .3s var(--ease); }
.district:hover .icon { transform: translateX(4px); }

/* ---------- Schritte ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 34px; height: 14px; background:
	linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.4)) 0 3px / 100% 2px no-repeat,
	linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,.4)) 0 9px / 100% 2px no-repeat,
	repeating-linear-gradient(90deg, rgba(255,255,255,.2) 0 5px, transparent 5px 22px); }
.step { position: relative; text-align: center; padding: 0 10px; }
.step__num { position: relative; display: grid; place-items: center; width: 82px; height: 82px; margin: 0 auto 20px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2rem; font-weight: 800; box-shadow: 0 0 0 10px var(--ink), 0 0 0 12px rgba(127,214,166,.4); }
.step p { color: #c7d4e2; max-width: 32ch; margin-inline: auto; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }

/* ---------- Service / Kacheln ---------- */
.service-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr; } }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .tiles--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tiles, .tiles--4 { grid-template-columns: 1fr; } }
.tile { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 26px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .45s var(--ease), box-shadow .45s, border-color .3s; }
.tile .icon { color: var(--green); margin-bottom: 8px; transition: transform .5s var(--ease); }
.tile strong { font-size: 1.15rem; }
.tile span { color: var(--muted); font-size: .92rem; }
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--ink); border-color: transparent; }
.tile:hover .icon { transform: scale(1.12) rotate(-6deg); }
.tile--alert { background: var(--red-l); border-color: #f5c2bc; }
.tile--alert .icon { color: var(--red); }
.hours-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hours-card h2, .hours-card h3 { display: flex; gap: 10px; align-items: center; font-size: 1.25rem; }
.hours-card h2 .icon, .hours-card h3 .icon { color: var(--green); }
.hours { margin: 0 0 16px; }
.hours > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.hours dt { font-weight: 700; color: var(--ink); }
.hours dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.hours-card__addr { display: flex; gap: 8px; align-items: center; margin: 8px 0 0; color: var(--muted); font-weight: 600; }
.alert-inline { display: flex; gap: 10px; align-items: flex-start; background: var(--red-l); border-radius: 14px; padding: 14px; margin-top: 18px; color: #5a1610; }
.alert-inline .icon { color: var(--red); flex: none; margin-top: 3px; }
.alert-inline p { margin: 0; font-size: .95rem; }
.alert-inline a { color: var(--red); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c7d4e2; padding-bottom: 32px; position: relative; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--green-l); text-decoration: underline; }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: clamp(40px, 6vw, 64px) 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-cta__title { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; margin: 0; line-height: 1.15; }
.footer-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.site-footer .btn--light, .site-footer .btn--light:hover { color: var(--ink); text-decoration: none; }
.site-footer .btn--ghost-light:hover { color: #fff; text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 32px; padding: 48px 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer-h { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; margin-bottom: 16px; }
.site-footer address { font-style: normal; margin-bottom: 18px; }
.site-footer .hours > div { border-color: rgba(255,255,255,.12); padding: 7px 0; flex-direction: column; gap: 0; }
.site-footer .hours dt { color: #fff; font-size: .9rem; } .site-footer .hours dd { text-align: left; font-size: .95rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-list li { display: flex; gap: 8px; align-items: center; }
.footer-list a { display: inline-flex; gap: 8px; align-items: center; }
.footer-emergency { color: #ffc2b9 !important; font-weight: 700; }
.footer-social { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08); transition: background .3s, transform .3s var(--ease); }
.footer-social a:hover { background: var(--green); transform: translateY(-3px); color: #fff; }
.footer-bottom { display: flex; gap: 16px 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; font-size: .9rem; }
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.to-top { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.to-top .icon { transform: rotate(-90deg); }

/* ---------- Wohnungssuche ---------- */
.search-layout { display: grid; grid-template-columns: 320px 1fr; gap: clamp(24px, 3vw, 40px); align-items: start; }
@media (max-width: 960px) { .search-layout { grid-template-columns: 1fr; } }
.filters { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .filters { position: static; } }
.filters__box { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.filters__box summary { list-style: none; cursor: pointer; padding: 20px 22px; }
.filters__box summary::-webkit-details-marker { display: none; }
.filters__title { display: flex; gap: 10px; align-items: center; font-size: 1.15rem; margin: 0; }
.filters__title .icon { color: var(--green); }
@media (min-width: 961px) { .filters__box summary { pointer-events: none; } }
.filter-form { padding: 0 22px 22px; display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 700; font-size: .92rem; color: var(--ink); display: flex; justify-content: space-between; gap: 8px; }
.field legend { margin-bottom: 8px; padding: 0; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number], .field select, .field textarea, .search-form input {
	width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #b8c1cb; border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(21,122,78,.16); outline: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field output { color: var(--green); font-weight: 800; }
.unit { color: var(--muted); font-weight: 600; margin-left: 4px; }
.field label .unit { margin-right: auto; }
input[type=range] { width: 100%; accent-color: var(--green); height: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .875rem; font-weight: 650; color: var(--ink); transition: all .2s; }
.chip span .icon { color: var(--green); }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:checked + span .icon { color: var(--green-l); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.link-reset { text-align: center; font-weight: 700; font-size: .92rem; }
.filters__help { margin-top: 16px; padding: 20px 22px; background: var(--mint); border-radius: var(--radius); font-size: .95rem; }
.filters__help a { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.results__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.results__count { margin: 0; font-size: 1.05rem; } .results__count strong { color: var(--green); font-size: 1.4rem; }
.sort-form { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.sort-form select { min-height: 44px; border-radius: 12px; border: 1.5px solid #b8c1cb; padding: 8px 12px; background: #fff; font-weight: 600; }
.group-title { font-size: 1.3rem; margin: 32px 0 16px; display: flex; gap: 8px; align-items: baseline; }
.group-title:first-of-type { margin-top: 0; }
.group-title span { color: var(--muted); font-weight: 600; font-size: 1rem; }
.empty { text-align: center; padding: 56px 24px; background: var(--sand); border-radius: var(--radius); }
.empty .icon { margin: 0 auto 16px; color: var(--green); }
.pagination, .nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; color: var(--ink); }
.page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
a.page-numbers:hover { border-color: var(--ink); }

/* ---------- Exposé ---------- */
.expose__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.expose__addr { display: flex; gap: 8px; align-items: center; font-size: 1.1rem; font-weight: 600; color: var(--muted); margin: 0; }
.expose__addr .icon { color: var(--green); }
.expose__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(150px, 230px)); gap: 10px; margin-top: 8px; border-radius: 28px; overflow: hidden; }
.gallery[data-images="1"] { grid-template-columns: 1fr; grid-template-rows: minmax(260px, 470px); }
.gallery[data-images="0"] { grid-template-columns: 1fr; grid-template-rows: clamp(220px, 30vw, 340px); }
.gallery[data-images="2"] { grid-template-columns: 2fr 1fr; grid-template-rows: minmax(240px, 460px); }
.gallery[data-images="2"] .gallery__item--main { grid-row: auto; }
.gallery[data-images="4"] .gallery__item:nth-child(4) { grid-column: span 2; }
.gallery[data-images="3"] { grid-template-columns: 2fr 1fr; }
.gallery__item { position: relative; display: block; overflow: hidden; background: var(--sand); }
.gallery__item--main { grid-row: span 2; }
.gallery__item img, .gallery__item svg { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
a.gallery__item:hover img { transform: scale(1.05); }
.gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15,42,68,.6); color: #fff; font-weight: 800; font-size: 1.2rem; }
.gallery__note { position: absolute; left: 20px; bottom: 20px; right: 20px; margin: 0; background: rgba(255,255,255,.94); border-radius: 14px; padding: 12px 16px; font-weight: 600; color: var(--ink); max-width: 460px; }
@media (max-width: 760px) {
	.gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px; border-radius: 20px; }
	.gallery__item--main { grid-column: 1 / -1; grid-row: auto; }
	.gallery__item:nth-child(n+4) { display: none; }
	.gallery[data-images="2"] { grid-template-rows: 240px 180px; }
	.gallery[data-images="2"] .gallery__item:nth-child(2) { grid-column: 1 / -1; }
}
.expose__grid { display: grid; grid-template-columns: 1fr 380px; gap: clamp(28px, 4vw, 56px); margin-top: clamp(28px, 4vw, 48px); align-items: start; }
@media (max-width: 1000px) { .expose__grid { grid-template-columns: 1fr; } }
.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 36px; }
@media (max-width: 640px) { .keyfacts { grid-template-columns: repeat(2, 1fr); } }
.keyfact { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px; border-radius: 18px; background: var(--sand); }
.keyfact .icon { color: var(--green); margin-bottom: 6px; }
.keyfact__v { font-size: 1.45rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.keyfact__v--sm { font-size: 1.05rem; }
.keyfact__l { font-size: .85rem; color: var(--muted); font-weight: 600; }
.block { padding: 28px 0; border-top: 1px solid var(--line); }
.block__title { font-size: 1.35rem; }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.features li { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; font-weight: 650; }
.features .icon { color: var(--green); flex: none; }
.floorplan { display: block; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.data-list { margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.data-list > div { padding: 14px; background: var(--sand); border-radius: 14px; }
.data-list dt { font-size: .82rem; color: var(--muted); font-weight: 700; }
.data-list dd { margin: 0; font-weight: 750; color: var(--ink); }
.eclass { display: inline-block; padding: 2px 10px; border-radius: 6px; color: #fff; background: #4caf50; font-weight: 800; }
.eclass--d, .eclass--e { background: #c98a00; } .eclass--f, .eclass--g, .eclass--h { background: #c0392b; }
.expose__side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
@media (max-width: 1000px) { .expose__side { position: static; } }
.price-card, .contact-card { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.price-card__title, .contact-card__title { font-size: 1.2rem; }
.price-list { margin: 0 0 18px; }
.price-list > div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.price-list dt { color: var(--muted); font-weight: 600; } .price-list dd { margin: 0; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-list__total { border-bottom: 0 !important; padding-top: 14px !important; }
.price-list__total dt { color: var(--ink); font-weight: 800; } .price-list__total dd { font-size: 1.5rem; color: var(--green); }
.shares { background: var(--mint); border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.shares__title { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green-d); margin-bottom: 4px; }
.shares__sum { font-size: 1.6rem; font-weight: 800; color: var(--ink); margin: 0; letter-spacing: -.02em; }
.shares__calc { font-size: .875rem; color: var(--ink-2); margin: 2px 0 8px; font-weight: 600; }
.shares__note { font-size: .875rem; margin: 0; color: var(--muted); }
.inquiry { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 56px); background: var(--sand); border-radius: 32px; padding: clamp(28px, 4vw, 56px); margin: clamp(40px, 6vw, 72px) 0 0; }
@media (max-width: 900px) { .inquiry { grid-template-columns: 1fr; } }
.mobile-cta { display: none; }
@media (max-width: 760px) {
	.mobile-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border-radius: 20px; padding: 10px 10px 10px 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); transform: translateY(140%); transition: transform .4s var(--ease); }
	.mobile-cta.is-shown { transform: none; }
	.mobile-cta__price { display: flex; flex-direction: column; line-height: 1.1; }
	.mobile-cta__price small { color: var(--muted); font-weight: 700; font-size: .75rem; }
	.mobile-cta__price strong { color: var(--ink); font-size: 1.2rem; }
	.single-wohnung .site-footer { padding-bottom: 110px; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(8,20,34,.94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 24px 12px; animation: fade .25s; }
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lightbox__img { max-height: 86vh; max-width: 100%; margin: auto; border-radius: 12px; object-fit: contain; animation: inUp .4s var(--ease); }
.lightbox button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox__close { position: absolute; top: 18px; right: 18px; }
.lightbox__prev .icon { transform: rotate(180deg); }
.lightbox__count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; }

/* ---------- Formulare ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.field--wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field--check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--green); flex: none; }
.field--check label { font-weight: 500; display: block; font-size: .95rem; color: var(--text); }
.req { color: var(--red); } .opt { color: var(--muted); font-weight: 500; }
.form-note { font-size: .9rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; font-weight: 600; }
.notice .icon { flex: none; margin-top: 2px; }
.notice--ok { background: var(--mint); color: var(--green-d); }
.notice--err { background: var(--red-l); color: #7a1a12; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--red); }
.field-error { color: var(--red); font-size: .875rem; font-weight: 700; }
.search-form { display: flex; gap: 8px; max-width: 520px; margin-top: 16px; }
.search-form .btn { min-height: 50px; }

/* ---------- Team ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs a { padding: 9px 16px; border-radius: 999px; background: var(--sand); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; transition: background .2s, color .2s; }
.tabs a:hover { background: var(--ink); color: #fff; }
.team-group { margin-bottom: 40px; scroll-margin-top: calc(var(--header-h) + 24px); }
.person { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; height: 100%; transition: transform .4s var(--ease), box-shadow .4s; }
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.person--compact { border: 0; padding: 0; box-shadow: none !important; transform: none !important; }
.person__avatar { flex: none; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--mint), var(--sky)); display: grid; place-items: center; font-weight: 800; color: var(--green-d); font-size: 1.1rem; }
.person__avatar img { width: 100%; height: 100%; object-fit: cover; }
.person__name { font-size: 1.1rem; margin-bottom: 2px; }
.person__role { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.person__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .92rem; }
.person__links a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font-weight: 650; word-break: break-word; }
.person__links a:hover { text-decoration: underline; }

/* ---------- Mitglied ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.check-list li { padding-left: 34px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23157a4e' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.table caption { text-align: left; font-weight: 800; color: var(--ink); padding-bottom: 12px; font-size: 1.1rem; }
.table th, .table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.table thead th { background: var(--ink); color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.table tbody tr:nth-child(even) { background: var(--sand); }
.table tbody tr:last-child > * { border-bottom: 0; }
.calc { margin-top: 28px; padding: 24px; background: var(--mint); border-radius: var(--radius); }
.calc h3 { font-size: 1.15rem; }
.calc label { font-weight: 700; display: block; margin-bottom: 6px; }
.calc input { width: 140px; min-height: 50px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid #9fb3a8; font-size: 1.1rem; font-weight: 700; }
.calc__out { margin: 14px 0 0; display: flex; flex-direction: column; }
.calc__sum { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.calc__detail { color: var(--ink-2); font-weight: 600; }

/* ---------- Notfall ---------- */
.emergency-first { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.emergency-call { display: flex; flex-direction: column; padding: 18px 24px; border-radius: 18px; background: #fff; border: 2px solid var(--red); text-decoration: none; color: var(--ink); min-width: 250px; transition: transform .3s var(--ease), box-shadow .3s; }
.emergency-call span { font-size: .85rem; font-weight: 700; color: var(--muted); }
.emergency-call strong { font-size: 1.5rem; color: var(--red); letter-spacing: -.01em; }
.emergency-call:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.emergency-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 20px 0 28px; }
.emergency-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.emergency-card h3 { font-size: 1.1rem; display: flex; gap: 8px; align-items: center; }
.emergency-card h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.emergency-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.emergency-card li { display: flex; flex-direction: column; gap: 4px; }
.emergency-card__name { font-weight: 600; }
.emergency-card__tel { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; font-size: 1.2rem; text-decoration: none; color: var(--ink); }
.emergency-card__tel:hover { color: var(--red); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .3s, border-color .3s; }
.faq__item[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 24px; font-weight: 750; color: var(--ink); font-size: 1.08rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--mint); color: var(--green-d); transition: transform .35s var(--ease), background .3s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--green); color: #fff; }
.faq__a { padding: 0 24px 22px; animation: inUp .4s var(--ease); }

/* ---------- Kontakt ---------- */
.contact-layout { display: grid; grid-template-columns: 380px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 16px; }
.info-card { display: block; background: var(--sand); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--text); }
.info-card h2 { font-size: 1.15rem; display: flex; gap: 10px; align-items: center; }
.info-card h2 .icon { color: var(--green); }
.info-card address { font-style: normal; margin-bottom: 14px; }
.info-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.info-list li { display: flex; gap: 10px; align-items: center; }
.info-list .icon { color: var(--green); }
.info-card--alert { display: flex; gap: 12px; align-items: center; background: var(--red-l); color: #5a1610; transition: transform .3s var(--ease); }
.info-card--alert .icon { color: var(--red); }
.info-card--alert:hover { transform: translateX(4px); color: #5a1610; }
.contact-form { background: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- Merkliste / Infozeitung ---------- */
.mag-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.mag { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.mag__cover { aspect-ratio: 3/4; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 60%, var(--green) 140%); color: #fff; box-shadow: var(--shadow); transition: transform .45s var(--ease), box-shadow .45s; }
.mag__cover img { width: 100%; height: 100%; object-fit: cover; margin: -20px; width: calc(100% + 40px); height: calc(100% + 40px); }
.mag:hover .mag__cover { transform: translateY(-6px) rotate(-1.5deg); box-shadow: var(--shadow-lg); }
.mag__nr { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.mag__brand { font-family: var(--ff-accent); font-style: italic; font-size: 1.5rem; color: var(--green-l); }
.mag__title { font-weight: 750; }
.mag__meta { color: var(--muted); font-size: .9rem; }

/* ---------- Fließtext ---------- */
.prose { max-width: 72ch; }
.prose--lg { font-size: 1.1rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose img { border-radius: 18px; }
.prose blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 4px solid var(--green); background: var(--mint); border-radius: 0 16px 16px 0; font-size: 1.1rem; }
.prose ul li::marker { color: var(--green); }
.post-figure { margin: 0 0 32px; } .post-figure img { border-radius: 24px; width: 100%; }
.post-figure figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-nav__link { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; background: var(--sand); text-decoration: none; color: var(--ink); font-weight: 700; transition: background .3s; }
.post-nav__link span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.post-nav__link--next { text-align: right; grid-column: 2; }
.post-nav__link:hover { background: var(--mint); color: var(--ink); }
.cat-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.cat-nav a { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; color: var(--ink); font-size: .92rem; }
.cat-nav a[aria-current], .cat-nav a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-motion="reduce"] .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- Druck ---------- */
@media print {
	.topbar, .site-header, .site-footer, .filters, .mobile-cta, .fav-btn, .expose__actions, .inquiry, .rail { display: none !important; }
	body { font-size: 11pt; } .reveal { opacity: 1 !important; transform: none !important; }
	.expose__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Geschäftsstelle ---------- */
.hq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .hq-grid { grid-template-columns: 1fr; } }
.hq-visual { margin: 0; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hq-visual img, .hq-visual svg { width: 100%; height: 100%; aspect-ratio: 520/380; object-fit: cover; }
.hq-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .hq-cards { grid-template-columns: 1fr; } }
.hq-card { background: var(--sand); border-radius: var(--radius); padding: 22px; }
.hq-card h3 { display: flex; gap: 8px; align-items: center; font-size: 1.1rem; }
.hq-card h3 .icon { color: var(--green); }
.hq-card address { font-style: normal; margin-bottom: 12px; }
.hq-links { display: grid; gap: 6px; }
.hq-links a { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: none; word-break: break-word; }
.hq-card .hours > div { flex-direction: column; gap: 0; padding: 7px 0; }
.hq-card .hours dd { text-align: left; }
.hq .flag, .hero-ill .flag { transform-box: fill-box; transform-origin: left center; animation: flag 2.4s ease-in-out infinite; }
@keyframes flag { 50% { transform: skewY(6deg) scaleX(.92); } }
.float-card--hq { right: -14px; top: 30%; text-decoration: none; animation-delay: -1.5s; }
.float-card--hq:hover { color: var(--green-d); box-shadow: var(--shadow-lg); }
@media (max-width: 640px) { .float-card--hq { display: flex; left: 8px; top: 4px; font-size: .8rem; padding: 8px 12px; } }

/* Fotos der Geschäftsstelle: heute + Neubau 2000 */
.hq-photos { position: relative; padding: 0 0 18% 0; }
.hq-photo { margin: 0; position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--sky); }
.hq-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.hq-photo:hover img { transform: scale(1.04); }
.hq-photo { aspect-ratio: 4/3; }
.hq-photo--then { position: absolute; width: 50%; right: -4%; bottom: 0; aspect-ratio: 4/3; border: 6px solid #fff; border-radius: 22px; transform: rotate(2.5deg); transition: transform .6s var(--ease); }
.hq-photo--then img { filter: saturate(.85) sepia(.12); }
.hq-photos:hover .hq-photo--then { transform: rotate(0) translateY(-6px); }
.hq-photo figcaption { position: absolute; left: 14px; top: 14px; }
.hq-tag { display: inline-block; background: rgba(255,255,255,.95); color: var(--ink); font-weight: 800; font-size: .8rem; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); letter-spacing: .02em; }
.hq-tag--now { background: var(--green); color: #fff; }
.hq-since { position: absolute; left: 6%; bottom: 2%; display: flex; flex-direction: column; background: var(--ink); color: #cfe0ef; border-radius: 18px; padding: 14px 18px; font-size: .85rem; box-shadow: var(--shadow); line-height: 1.3; }
.hq-since strong { color: #fff; font-size: 1.25rem; letter-spacing: -.02em; }
@media (max-width: 560px) { .hq-photo--then { width: 58%; right: -2%; } .hq-since { padding: 10px 14px; } .hq-since strong { font-size: 1.05rem; } }
.hero-ill .glass-shine { animation: shine 7s ease-in-out infinite; }
@keyframes shine { 0%, 60% { transform: skewX(-12deg) translateX(0); } 100% { transform: skewX(-12deg) translateX(140px); } }

/* Startseite: grüner Hintergrund mit der Geschäftsstelle */
.hero--foto .hero__bg::after { content: ""; position: absolute; inset: 0; background: url("../img/hero-gruen.webp") right bottom / auto 100% no-repeat; }
@media (max-width: 1100px) { .hero--foto .hero__bg::after { background-image: url("../img/hero-gruen-1000.webp"); } }
.hero--foto .hero__grid { min-height: clamp(520px, 62vh, 700px); }
.hero--foto .hero__visual { align-self: stretch; min-height: 420px; }
.hero__spacer { display: block; width: 100%; height: 100%; }
.hero--foto .blob--1 { opacity: .35; }
@media (max-width: 980px) {
	.hero--foto .hero__bg::after { background-size: 140% auto; background-position: 70% bottom; opacity: .55; }
	.hero--foto .hero__visual { min-height: 260px; }
	.hero--foto .float-card--hq { left: 0; bottom: 18%; display: flex; }
	.hero--foto .float-card--b { display: none; }
}

/* Schnellzugriff-Schilder im Startseitenkopf */
.hero-chips ul { list-style: none; margin: 0; padding: 0; }
.hero-chips .float-card { text-decoration: none; transition: box-shadow .3s, transform .3s var(--ease), background .3s; }
.hero-chips .float-card:hover, .hero-chips .float-card:focus-visible { box-shadow: var(--shadow-lg); background: var(--ink); color: #fff; animation-play-state: paused; }
.hero-chips .float-card:hover .icon, .hero-chips .float-card:focus-visible .icon { color: var(--green-l); }
.hero-chips .chip--alert .icon { color: var(--red); }
.hero-chips .chip--alert strong { color: var(--red); }
.hero-chips .chip--alert:hover strong { color: #ffc2b9; }
@media (min-width: 981px) {
	.hero--foto .hero-chips .float-card { position: absolute; }
	.hero--foto .chip--alert  { left: 2%;  top: 6%;  animation-delay: -1s; }
	.hero--foto .chip--team   { right: 0;  top: 20%; animation-delay: -3s; }
	.hero--foto .chip--flats  { left: 8%;  top: 40%; animation-delay: -4.5s; }
	.hero--foto .chip--member { right: 4%; top: 58%; animation-delay: -2s; }
	.hero--foto .chip--hq     { left: 14%; bottom: 10%; animation-delay: -5s; }
	.hero--illu .hero-chips li:not(:has(.chip--hq)):not(:has(.chip--team)) { display: none; }
	.hero--illu .chip--hq { position: absolute; right: -14px; top: 30%; }
	.hero--illu .chip--team { position: absolute; right: -10px; bottom: 8%; }
}
@media (max-width: 980px) {
	.hero-chips { position: relative; z-index: 2; margin-top: -40px; }
	.hero-chips ul { display: flex; flex-wrap: wrap; gap: 8px; }
	.hero-chips .float-card { position: static; display: inline-flex; animation: none; font-size: .85rem; padding: 9px 13px; }
	.hero--foto .hero__visual { min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 20px; }
}

@media (max-width: 980px) { .nav__btn .nav__caret .icon { transform: rotate(90deg); transition: transform .25s; } .nav__btn[aria-expanded="true"] .nav__caret .icon { transform: rotate(-90deg); } }
@media (min-width: 981px) { .nav__sub { min-width: 280px; } .nav__sub .nav__txt { white-space: nowrap; } }

/* ---------- Stadtteilkarte ---------- */
.section--map { background: linear-gradient(180deg, #fff 0%, var(--sand) 100%); }
.split--map { align-items: center; grid-template-columns: .8fr 1.2fr; }
@media (max-width: 900px) { .split--map { grid-template-columns: 1fr; } }
.district-map { margin: 0; }
.district-map__svg { width: 100%; height: auto; overflow: visible; }
.dm-city { fill: #dde2e7; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.dm-borders polyline { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.dm-river { fill: none; stroke: #7cc4ea; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.dm-creek { fill: none; stroke: #7cc4ea; stroke-width: 1.6; stroke-linecap: round; }
.dm-area { stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; transition: fill .3s, transform .3s var(--ease), filter .3s; transform-box: fill-box; transform-origin: center; }
.dm-d.is-off .dm-area { fill: #b9c9bf; }
.dm-d.is-on .dm-area { fill: var(--green); }
.dm-lead { fill: none; stroke: #8a959f; stroke-width: 1; transition: stroke .3s; }
.dm-dot { fill: #fff; stroke: #556372; stroke-width: 1; }
.dm-label { font: 700 italic 12px var(--ff); fill: #8a959f; letter-spacing: -.01em; }
.dm-d.is-on .dm-label { fill: var(--green-d); font-size: 12.5px; }
.dm-badge circle { fill: var(--green); }
.dm-badge text { font: 800 11px var(--ff); fill: #fff; }
.dm-d.is-on { cursor: pointer; outline: none; }
.dm-d.is-on:hover .dm-area, .dm-d.is-on:focus-visible .dm-area, .dm-d.is-on.is-hl .dm-area { fill: var(--ink); transform: scale(1.06); filter: drop-shadow(0 3px 4px rgba(15,42,68,.35)); }
.dm-d.is-on:hover .dm-lead, .dm-d.is-on:focus-visible .dm-lead { stroke: var(--ink); stroke-width: 1.6; }
.dm-d.is-on:hover .dm-label, .dm-d.is-on:focus-visible .dm-label { fill: var(--ink); text-decoration: underline; }
.dm-d.is-on:hover .dm-badge circle, .dm-d.is-on:focus-visible .dm-badge circle { fill: var(--ink); }
.dm-d.is-on:focus-visible .dm-label { outline: none; }
.dm-d.is-on:focus-visible .dm-badge circle { stroke: var(--focus); stroke-width: 3; }
.dm-d.is-on .dm-badge { animation: dm-pulse 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes dm-pulse { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.18); } }
.dm-hq circle { fill: var(--red, #b42318); }
.dm-hq path { fill: #fff; }
.dm-hq .dm-hq__pulse { fill: rgba(180,35,24,.25); animation: dm-hq 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes dm-hq { from { transform: scale(.8); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.district-map__caption { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 10px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.district-map__caption span { display: inline-flex; align-items: center; gap: 6px; }
.dm-key { width: 14px; height: 14px; border-radius: 4px; background: #b9c9bf; display: inline-block; }
.dm-key--on { background: var(--green); }
.dm-key--hq { background: #b42318; border-radius: 50%; }
.district-map__empty { text-align: center; color: var(--muted); }
/* Einblend-Animation: Stadtteile erscheinen nacheinander */
.js .district-map .dm-d { opacity: 0; transition: opacity .6s var(--ease); }
.js .reveal.is-visible .district-map .dm-d, .js .district-map.is-visible .dm-d, .map-toggle .district-map .dm-d { opacity: 1; }
/* Kompakte Karte in der Wohnungssuche */
.map-toggle { margin-top: 18px; max-width: 760px; }
.map-toggle summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 800; color: var(--ink); padding: 8px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); list-style: none; }
.map-toggle summary::-webkit-details-marker { display: none; }
.map-toggle[open] summary { background: var(--ink); color: #fff; border-color: var(--ink); }
.map-toggle .district-map { margin-top: 14px; background: #fff; border-radius: var(--radius); padding: 14px; border: 1px solid var(--line); }
.district-map--compact .district-map__svg { max-height: 420px; }
@media (prefers-reduced-motion: reduce) { .dm-badge, .dm-hq__pulse { animation: none !important; } }
html[data-motion="reduce"] .dm-badge, html[data-motion="reduce"] .dm-hq__pulse { animation: none !important; }
html[data-contrast="high"] .dm-d.is-off .dm-area { fill: #9aa5ae; } html[data-contrast="high"] .dm-label { fill: #333; }

.district-map__list { display: none; list-style: none; margin: 14px 0 0; padding: 0; flex-wrap: wrap; gap: 8px; justify-content: center; }
.district-map__list a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 999px; background: var(--mint); color: var(--green-d); font-weight: 750; text-decoration: none; min-height: 44px; }
.district-map__list a span { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-size: .8rem; }
@media (max-width: 700px) {
	.district-map__list { display: flex; }
	.district-map__caption span:nth-child(2) { display: none; }
}

/* Besondere Merkmale – Kacheln mit Illustration */
.feature-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; }
.feature-tiles li { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; text-align: center; padding: 18px 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; font-weight: 650; font-size: .95rem; color: var(--ink); line-height: 1.25; transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; }
.feature-tiles li:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature-tiles .feat-art { width: 64px; height: 64px; transition: transform .5s var(--ease); }
.feature-tiles li:hover .feat-art { transform: scale(1.08) rotate(-3deg); }
html[data-contrast="high"] .feature-tiles li { border: 2px solid #000; }
/* Kleine Merkmal-Hinweise auf den Wohnungskarten */
.flat-card__feats { display: flex; gap: 6px; margin: -6px 0 16px; flex-wrap: wrap; }
.flat-card__feats li { list-style: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--mint); }
.flat-card__feats .feat-art { width: 24px; height: 24px; }
.flat-card__feats { padding: 0; }

/* ---------- Wohnungssuche: Ansicht & Karte ---------- */
.results__tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.view-switch { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 4px; border: 1px solid var(--line); }
.view-switch__btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; border-radius: 999px; padding: 8px 14px; font-weight: 750; color: var(--ink); cursor: pointer; min-height: 40px; }
.view-switch__btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.view-switch__btn .icon { color: currentColor; }
.flat-map { position: relative; margin-bottom: 24px; }
.flat-map__canvas { height: clamp(360px, 58vh, 560px); border-radius: var(--radius); overflow: hidden; background: #e8ece9; border: 1px solid var(--line); z-index: 1; }
.flat-map__consent { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 24px; border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(227,244,234,.96), rgba(246,243,236,.96)), repeating-linear-gradient(45deg, #dde4df 0 2px, transparent 2px 16px); }
.flat-map__consent .icon { color: var(--green); }
.flat-map__consent p { max-width: 46ch; margin: 0; color: var(--muted); }
.flat-map__consent-title { font-weight: 800; font-size: 1.2rem; color: var(--ink) !important; }
.flat-map__remember { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--muted); cursor: pointer; }
.flat-map__remember input { width: 18px; height: 18px; accent-color: var(--green); }
.flat-map__note { font-size: .875rem; color: var(--muted); margin: 8px 0 0; }
.flat-map__error { padding: 40px; text-align: center; }
/* Marker */
.map-pin { background: none; border: 0; }
.map-pin::before { content: ""; position: absolute; left: 50%; top: 0; width: 34px; height: 34px; margin-left: -17px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--green); border: 3px solid #fff; box-shadow: 0 6px 14px rgba(15,42,68,.35); transition: background .2s, transform .25s var(--ease); }
.map-pin__b { position: absolute; left: 0; right: 0; top: 7px; text-align: center; color: #fff; font: 800 14px/20px var(--ff); }
.map-pin:hover::before, .map-pin:focus::before, .map-pin.is-hl::before { background: var(--ink); transform: rotate(-45deg) scale(1.15); }
.map-pin.is-hl { z-index: 9999 !important; }
.map-hq { display: grid; place-items: center; background: #b42318; color: #fff; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.3); font-size: 14px; }
.leaflet-container { font-family: var(--ff); }
.leaflet-popup-content-wrapper { border-radius: 16px; }
.leaflet-popup-content { margin: 12px 14px; }
.map-pop__addr { margin: 0 0 8px !important; font-weight: 800; color: var(--ink); }
.map-pop__item { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.map-pop__item:hover { background: var(--mint); }
.map-pop__item img, .map-pop__ph { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; background: var(--sand); }
.map-pop__item strong { display: block; font-size: .9rem; line-height: 1.25; }
.map-pop__item small { color: var(--muted); font-size: .8rem; }
.leaflet-marker-icon:focus-visible { outline: 3px solid var(--focus); }
/* Liste unter der Karte kompakter */
body.view-map .flat-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 640px) { .results__tools { width: 100%; justify-content: space-between; } }
.leaflet-container a.map-pop__item { color: var(--ink); }
.leaflet-container a.map-pop__item strong { color: var(--ink); }
.leaflet-container a.map-pop__item:hover strong { color: var(--green-d); text-decoration: underline; }

.map-pin--approx::before { background: #fff; border: 3px dashed var(--green); }
.map-pin--approx .map-pin__b { color: var(--green-d); }
.map-pin--approx:hover .map-pin__b, .map-pin--approx.is-hl .map-pin__b { color: #fff; }
.map-key { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.map-key--approx { border: 2px dashed var(--green); background: #fff; }

/* Häufige Fragen: Themen */
.faq-ask { margin: 0 0 18px; }
.faq-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.faq-toc a { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--sand); color: var(--ink); font-weight: 700; text-decoration: none; font-size: .95rem; }
.faq-toc a:hover { background: var(--mint); }
.faq-toc span { background: #fff; border-radius: 99px; padding: 0 8px; font-size: .8rem; }
.faq-group { font-size: 1.35rem; margin: 34px 0 12px; scroll-margin-top: 120px; }

/* Handy: Spalten dürfen nie breiter als der Bildschirm werden (Inhalt wie Terminwahl/Galerie bricht sonst rechts heraus) */
.expose__grid { grid-template-columns: minmax(0, 1fr) 380px; }
@media (max-width: 1000px) { .expose__grid { grid-template-columns: minmax(0, 1fr); } }
.expose__grid > *, .gallery > *, .flat-grid > *, .flat-layout > *, .results > * { min-width: 0; }
.gallery img, .flat-card img, .floorplan img { max-width: 100%; }
@media print { .expose__grid { grid-template-columns: 1fr 1fr; } }

/* Handy: lange Schaltflächen und Texte umbrechen statt den Inhalt aus dem Bild zu schieben */
@media (max-width: 600px) {
	.btn { white-space: normal; text-align: center; }
	.table th, .table td { padding: 10px 10px; }
	.price-list > div { gap: 12px; }
	.price-list dd { text-align: right; }
}
.expose__side { grid-template-columns: minmax(0, 1fr); }
.split > *, .hq-grid > *, .footer-grid > *, .form-grid > *, .field-row > *, .post-nav > * { min-width: 0; }
.person { min-width: 0; }
.person > * { min-width: 0; }
.person a, .contact-card a, .prose a { overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* lange deutsche Wörter („Wohnungsgeberbestätigung“) dürfen auf schmalen Bildschirmen trennen */
.faq__item summary > span:first-child, .faq__a, .person, .block__title, .page-title, .section-title { min-width: 0; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.faq__item { min-width: 0; }
@media (max-width: 380px) { .person { padding: 16px; gap: 12px; } }

/* ---------- 360°-Rundgang ---------- */
.gallery-wrap { position: relative; }
.gallery__tour { position: absolute; z-index: 5; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(15,42,68,.88); color: #fff; font-weight: 800; text-decoration: none; box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.gallery__tour:hover { background: var(--green); }
.tour__stage { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--ink); isolation: isolate; }
@media (max-width: 600px) { .tour__stage { aspect-ratio: 4 / 5; } }
.tour__start { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; color: #fff; font: inherit; text-align: center;
	background: linear-gradient(180deg, rgba(15,42,68,.15), rgba(15,42,68,.75)), var(--poster, none) center / cover, var(--ink); }
.tour__play { width: 76px; height: 76px; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255,255,255,.18); transition: transform .3s var(--ease); }
.tour__start:hover .tour__play { transform: scale(1.08); }
.tour__start-t { font-size: 1.3rem; font-weight: 800; }
.tour__start-s { font-size: .95rem; opacity: .9; }
.tour__start.is-loading .tour__play { animation: tour-pulse 1s infinite; }
@keyframes tour-pulse { 50% { transform: scale(.9); opacity: .7; } }
.tour__start:focus-visible, .tour__btn:focus-visible, .tour__room:focus-visible, .tour__pano:focus-visible { outline: 3px solid var(--focus, #ffbf47); outline-offset: -3px; }
.tour__pano { position: absolute; inset: 0; cursor: grab; touch-action: none; }
.tour__pano:active { cursor: grabbing; }
.tour__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour__ui { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: flex-end; padding: 12px; pointer-events: none;
	background: linear-gradient(transparent, rgba(8,20,34,.55)); }
.tour__rooms, .tour__ctr { display: flex; gap: 6px; flex-wrap: wrap; pointer-events: auto; }
.tour__room { border: 0; border-radius: 999px; padding: 8px 14px; min-height: 40px; background: rgba(255,255,255,.88); color: var(--ink); font: inherit; font-weight: 800; font-size: .9rem; cursor: pointer; }
.tour__room[aria-selected="true"] { background: var(--green); color: #fff; }
.tour__btn { width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(15,42,68,.82); color: #fff; display: grid; place-items: center; cursor: pointer; }
.tour__btn:hover { background: var(--green); }
.tour__hint { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; transition: opacity .6s; }
.tour__hint span { background: rgba(8,20,34,.7); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.tour__hint.is-out { opacity: 0; }
.tour__badge { position: absolute; z-index: 4; top: 12px; left: 12px; background: #f1e8ff; color: #5b2a99; font-weight: 800; font-size: .8rem; padding: 5px 10px; border-radius: 999px; pointer-events: none; }
.tour__stage.is-full, .tour__stage:fullscreen { position: fixed; inset: 0; z-index: 2000; border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; height: 100dvh; }
html.tour-lock, html.tour-lock body { overflow: hidden; }
.badge--tour { background: var(--ink) !important; color: #fff !important; }
@media (max-width: 600px) { .tour__btn { width: 38px; height: 38px; } .tour__ui { padding: 10px; } .gallery__tour { left: 12px; bottom: 12px; padding: 8px 12px; font-size: .9rem; } }
@media (prefers-reduced-motion: reduce) { .tour__start.is-loading .tour__play { animation: none; } }

/* ---------- Bilder in Beiträgen: Karussell & Lightbox ---------- */
.prose img { border-radius: 18px; }
.zoomable, img.zoomable { cursor: zoom-in; }
.post-figure img { cursor: zoom-in; }
.carousel { position: relative; margin: 2em 0; }
.carousel__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 4px 14px; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 24px; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline: 3px solid var(--focus, #ffbf47); outline-offset: 2px; }
.carousel__slide { flex: 0 0 86%; margin: 0; scroll-snap-align: center; transition: transform .45s var(--ease), opacity .45s; opacity: .55; transform: scale(.94); }
.carousel__slide.is-active { opacity: 1; transform: none; }
.carousel__slide:only-child { flex-basis: 100%; }
.carousel__open { display: block; width: 100%; padding: 0; border: 0; background: var(--sand); border-radius: 24px; overflow: hidden; cursor: zoom-in; box-shadow: 0 18px 40px -22px rgba(15,42,68,.55); aspect-ratio: 3 / 2; }
.carousel__open img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; transition: transform .6s var(--ease); }
.carousel__open:hover img { transform: scale(1.03); }
.carousel__open:focus-visible { outline: 3px solid var(--focus, #ffbf47); outline-offset: 3px; }
.carousel__slide figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; text-align: center; }
.carousel__nav { position: absolute; top: calc(50% - 30px); z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(15,42,68,.6); transition: background .2s, transform .2s, opacity .2s; }
.carousel__nav:hover:not(:disabled) { background: var(--green); color: #fff; transform: scale(1.06); }
.carousel__nav:disabled { opacity: 0; pointer-events: none; }
.carousel__nav--prev { left: 10px; } .carousel__nav--prev .icon { transform: rotate(180deg); }
.carousel__nav--next { right: 10px; }
.carousel__count { position: absolute; top: 16px; right: calc(7% + 14px); z-index: 2; background: rgba(15,42,68,.78); color: #fff; font-weight: 800; font-size: .8rem; padding: 4px 10px; border-radius: 99px; pointer-events: none; }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.carousel__dots button { width: 10px; height: 10px; padding: 0; border-radius: 99px; border: 0; background: #c7d0d8; cursor: pointer; transition: width .3s var(--ease), background .3s; }
.carousel__dots button[aria-current="true"] { width: 28px; background: var(--green); }
@media (max-width: 600px) { .carousel__slide { flex-basis: 90%; } .carousel__nav { width: 40px; height: 40px; top: calc(50% - 26px); } .carousel__count { right: calc(5% + 10px); } }
html.lb-open, html.lb-open body { overflow: hidden; }
.lightbox { grid-template-rows: minmax(0, 1fr) auto auto; }
.lightbox__fig { margin: 0; display: grid; place-items: center; gap: 10px; min-height: 0; height: 100%; grid-row: 1; grid-column: 2; }
.lightbox__img { max-height: 74vh; }
.lightbox__img.is-in { animation: lbIn .35s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } }
.lightbox__cap { color: #d6e2ee; text-align: center; font-size: .95rem; max-width: 70ch; }
.lightbox__prev { grid-row: 1; grid-column: 1; } .lightbox__next { grid-row: 1; grid-column: 3; }
.lightbox__count { position: static !important; grid-column: 1 / -1; grid-row: 2; margin: 6px 0 0; }
.lightbox__thumbs { grid-column: 1 / -1; grid-row: 3; display: flex; gap: 8px; justify-content: center; overflow-x: auto; padding: 8px 4px 2px; scrollbar-width: none; }
.lightbox__thumbs::-webkit-scrollbar { display: none; }
.lightbox .lightbox__thumbs button { width: 64px; height: 46px; flex: none; border-radius: 10px !important; overflow: hidden; padding: 0; background: none; opacity: .5; border: 2px solid transparent; transition: opacity .2s, border-color .2s; }
.lightbox .lightbox__thumbs button[aria-current="true"] { opacity: 1; border-color: #7fd6a6; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 600px) { .lightbox { grid-template-columns: 44px 1fr 44px; padding: 16px 6px; } .lightbox button { width: 44px; height: 44px; } .lightbox__img { max-height: 64vh; } }
@media (prefers-reduced-motion: reduce) { .carousel__slide, .carousel__open img, .lightbox__img.is-in { transition: none; animation: none; } .carousel__track { scroll-behavior: auto; } }
html[data-motion="reduce"] .carousel__slide, html[data-motion="reduce"] .lightbox__img.is-in { transition: none; animation: none; }
.carousel__track { padding-inline: 7%; scroll-padding-inline: 7%; }
.carousel__count { right: auto; left: calc(7% + 16px); top: 18px; }
@media (max-width: 600px) { .carousel__track { padding-inline: 5%; scroll-padding-inline: 5%; } .carousel__count { left: calc(5% + 12px); } }
.lightbox { background: rgba(8,20,34,.97); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.field__hint { margin: 6px 0 0; font-size: .9rem; color: var(--muted, #5b6b7a); }

/* ---------- Wohnlage im Exposé ---------- */
.lage { scroll-margin-top: 100px; }
.expose__addr a { color: inherit; text-decoration: underline; text-decoration-color: rgba(0,112,60,.35); text-underline-offset: 4px; }
.expose__addr a:hover { color: var(--green-d); text-decoration-color: currentColor; }
.lage__addr { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; }
.lage__addr .icon { color: var(--green); flex: none; margin-top: 2px; }
.lage__text { margin: 0 0 12px; max-width: 70ch; }
.lage__map { margin: 18px 0 8px; }
.lage__canvas { height: clamp(280px, 45vh, 420px); }
.lage__sub { font-size: 1.1rem; margin: 24px 0 10px; color: var(--ink); }
.lage__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.lage__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.lage__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--mint, #e3f4ea); color: var(--green-d); }
.lage__item--hq .lage__ico { background: #fde8e6; color: #b42318; }
.lage__txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.lage__k { font-weight: 750; color: var(--ink); }
.lage__n { font-size: .875rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lage__d { text-align: right; line-height: 1.25; white-space: nowrap; }
.lage__d strong { display: block; font-size: .9rem; color: var(--ink); }
.lage__d small { color: var(--muted); font-size: .8rem; }
.lage__src { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.lage__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
@media (max-width: 420px) { .lage__item { grid-template-columns: auto minmax(0, 1fr); } .lage__d { grid-column: 2; text-align: left; } .lage__d strong, .lage__d small { display: inline; margin-right: 6px; } }
.map-pin--home .map-pin__b { font-size: 18px; top: 6px; }
.map-poi { background: none; border: 0; }
.map-poi span { display: block; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #fff; background: #2b4b6b; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.map-poi--oepnv span, .map-poi--bahnhof span { background: #c8102e; }
.map-poi--einkauf span, .map-poi--baecker span { background: #d97706; }
.map-poi--apotheke span, .map-poi--arzt span { background: #0e7490; }
.map-poi--kita span, .map-poi--schule span { background: #7c3aed; }
.map-poi--gruen span { background: #15803d; }
@media print { .lage__map, .lage__links { display: none !important; } }
.lage__legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--muted); }
.lage__legend li { display: inline-flex; align-items: center; }
.lage__legend .map-key { border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); background: #2b4b6b; }
.lage__key--home { background: var(--green) !important; }
.lage__key--hq { background: #b42318 !important; }
.lage__key--oepnv, .lage__key--bahnhof { background: #c8102e !important; }
.lage__key--einkauf, .lage__key--baecker { background: #d97706 !important; }
.lage__key--apotheke, .lage__key--arzt { background: #0e7490 !important; }
.lage__key--kita, .lage__key--schule { background: #7c3aed !important; }
.lage__key--gruen { background: #15803d !important; }

/* ---------- Saison-Stimmung für Bilder ohne eigenes Saisonbild (Startseite & Bilder) ---------- */
:where(picture.wge-fb) { display: block; position: relative; }
picture.wge-fb::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
/* Winter: kühler, entsättigt, Frost an den Rändern, Schneeschimmer oben */
.wge-fb--winter img { filter: saturate(.5) hue-rotate(-12deg) brightness(1.06) contrast(.94); }
.wge-fb--winter::after {
	background:
		radial-gradient(ellipse 120% 95% at 50% 55%, transparent 58%, rgba(232,242,255,.55) 86%, rgba(245,250,255,.85) 100%),
		linear-gradient(180deg, rgba(225,238,255,.35) 0%, transparent 28%, transparent 78%, rgba(240,247,255,.55) 100%),
		radial-gradient(circle at 12% 18%, rgba(255,255,255,.9) 0 1.2px, transparent 2px) 0 0 / 46px 46px,
		radial-gradient(circle at 70% 60%, rgba(255,255,255,.75) 0 1px, transparent 1.8px) 0 0 / 31px 31px,
		linear-gradient(180deg, rgba(120,160,210,.16), rgba(120,160,210,.16));
}
/* Herbst: warm, golden */
.wge-fb--herbst img { filter: sepia(.28) saturate(1.25) hue-rotate(-14deg) brightness(.98); }
.wge-fb--herbst::after { background: radial-gradient(ellipse 120% 95% at 50% 50%, transparent 60%, rgba(120,60,10,.35) 100%), linear-gradient(180deg, rgba(255,170,60,.16), rgba(190,90,20,.14)); }
/* Frühling: frisch, hell */
.wge-fb--fruehling img { filter: saturate(1.15) brightness(1.06) hue-rotate(6deg); }
.wge-fb--fruehling::after { background: radial-gradient(ellipse 120% 95% at 50% 50%, transparent 62%, rgba(255,240,250,.45) 100%), linear-gradient(180deg, rgba(255,214,235,.14), rgba(200,240,190,.12)); }
/* Sommer: sonnig */
.wge-fb--sommer img { filter: saturate(1.25) brightness(1.04) contrast(1.05); }
.wge-fb--sommer::after { background: radial-gradient(circle at 85% 10%, rgba(255,230,150,.45), transparent 45%); }
.hz-welcome__img picture.wge-fb::after { border-radius: 200px 200px var(--radius) var(--radius); }
.fp-info__img picture.wge-fb::after { border-radius: 6px; }
/* Text- und Overlay-Ebenen der Designs bleiben darüber */
.hz-slide__shade, .hz-slide__inner { z-index: 2; }
.hz-life__body { position: relative; z-index: 2; }
.fp-track__img::after { z-index: 2; }
@media print { picture.wge-fb::after { display: none; } .wge-fb img { filter: none !important; } }
