/* Marktgemeinde Nenzing — Entwurf von VCSLV.
   Token: Nachtblau (Grund), Markenblau, Schiefer, Schnee; ein Akzent Leopardenrot; Grün nur für «geöffnet».
   Schrift: Overpass (Overlay auf die Wortmarke, notes/research.md § 9). Radien: 24 Block · 14 Kachel · Kapsel. */

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

:root {
  --night: #1b3044; --night-2: #243c53; --night-3: #2e4a64; --blau: #325775; --schiefer: #4d6a86; --tinte: #172a3c;
  --schnee: #f2f5f7; --weiss: #fff; --linie: #d5dde4; --linie-d: rgba(255, 255, 255, .16);
  --rot: #ae281e; --rot-d: #8f2017; --rot-l: #e5574a; --gruen: #1f8a4c; --gruen-l: #4fc483;
  --r-block: 24px; --r-tile: 14px; --r-pill: 999px;
  --sans: 'Overpass', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gut: clamp(16px, 4.2vw, 56px); --max: 1280px;
  --hdr-h: 92px;
  --t-small: 14px; --t-body: 16px; --t-lead: 18px;
  --h2s: clamp(2.1rem, min(3.4vw, 5.6svh), 3.5rem);
  --h3m: clamp(1.35rem, 1.7vw, 1.6rem);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 0; overflow-x: clip; }
body { margin: 0; background: var(--schnee); color: var(--tinte); font: 400 var(--t-body)/1.55 var(--sans); font-synthesis: none; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, picture, video, canvas { display: block; max-width: 100%; user-select: none; -webkit-user-drag: none; }
::selection { background: rgba(174, 40, 30, .32); color: inherit; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 650; }
.nw { white-space: nowrap; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--weiss); color: var(--tinte); padding: 10px 16px; border-radius: var(--r-pill); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--rot-l); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

/* ---------- type ---------- */
.h2 { font-weight: 300; font-size: var(--h2s); line-height: 1.04; letter-spacing: -.02em; color: var(--tinte); text-wrap: balance; }
.h2 em, .h3 em { font-style: normal; color: var(--rot); font-weight: 400; }
.h3 { font-weight: 600; font-size: var(--h3m); line-height: 1.2; letter-spacing: -.01em; }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--schiefer); max-width: 46ch; margin-top: 12px; text-wrap: pretty; }

/* ---------- Knöpfe (Kapsel), Chips (Pille) ---------- */
.knopf { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 4px 22px 0; border-radius: var(--r-pill);
  border: 1.5px solid transparent; font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; white-space: nowrap; overflow: hidden; isolation: isolate;
  -webkit-touch-callout: none; user-select: none; -webkit-tap-highlight-color: transparent; transition: transform .2s var(--ease), background-color .25s, color .25s, border-color .25s; }
.knopf svg { width: 19px; height: 19px; margin-top: -4px; flex: none; }
.knopf:active { transform: scale(.97); }
.knopf--rot { background: var(--rot); color: var(--weiss); }
.knopf--rot:hover { background: var(--rot-d); }
.knopf--hell { background: var(--weiss); color: var(--tinte); border-color: var(--linie); }
.knopf--hell:hover { border-color: var(--tinte); }
.knopf--linie { border-color: currentColor; background: transparent; }
.knopf--linie::after { content: ''; position: absolute; inset: 0; background: currentColor; opacity: 0; transition: opacity .25s; z-index: -1; }
.knopf--linie:hover::after { opacity: .1; }
.knopf--klein { min-height: 40px; padding: 3px 16px 0; font-size: 14.5px; }
.knopf[disabled] { opacity: .45; pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 3px 15px 0; border-radius: var(--r-pill); border: 1.5px solid var(--linie);
  background: var(--weiss); color: var(--tinte); font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.chip:hover { border-color: var(--tinte); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--rot); border-color: var(--rot); color: var(--weiss); }
.chip small { font-size: 12.5px; font-weight: 600; opacity: .7; }

/* Status-Punkt: grün nur «geöffnet» */
.punkt { position: relative; flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #8a9aab; }
.punkt.is-open { background: var(--gruen-l); }
.punkt.is-open::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; background: var(--gruen-l); opacity: 0; animation: ping 2.4s ease-out infinite; }
.punkt.is-off::after { animation-play-state: paused; }
@keyframes ping { 0% { transform: scale(.4); opacity: .55; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Kopf: Entwurfs-Streifen (bleibt immer) + Leiste ---------- */
.kopf { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--weiss); }
.entwurf { display: block; width: 100%; height: 28px; padding: 4px 12px 0; border: 0; background: #0e1b28; color: rgba(255, 255, 255, .86); font-size: 12.5px; font-weight: 500;
  line-height: 24px; letter-spacing: .01em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entwurf span { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.entwurf:hover span { text-decoration-color: currentColor; }
.kopf__bar { display: flex; align-items: center; gap: 28px; height: 62px; padding: 0 var(--gut); background: var(--night); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.kopf__marke { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; transition: opacity .35s; }
.kopf__wappen { width: 26px; height: auto; }
.kopf__wm { width: 128px; height: auto; fill: var(--weiss); }
.kopf.has-hero .kopf__marke { opacity: 0; pointer-events: none; }
.kopf__nav { display: flex; gap: 4px; margin-left: auto; }
.kopf__nav a { padding: 9px 13px 6px; border-radius: var(--r-pill); text-decoration: none; font-size: 15.5px; font-weight: 500; color: rgba(255, 255, 255, .86); transition: background-color .2s, color .2s; }
.kopf__nav a:hover { background: rgba(255, 255, 255, .1); color: var(--weiss); }
.kopf__status { display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px 5px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .08); text-decoration: none; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.kopf__status:hover { background: rgba(255, 255, 255, .14); }
.kopf__status .punkt { margin-top: -3px; }
.kopf__status .s-sh, [data-status] .s-sh, .fz__auf .s-sh { display: none; }
.fz__t { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.kopf__menu { display: none; align-items: center; gap: 10px; height: 40px; padding: 3px 14px 0; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: var(--r-pill); background: transparent; color: var(--weiss); font-size: 15px; font-weight: 600; }
.kopf__menu i { position: relative; width: 16px; height: 10px; margin-top: -3px; border-top: 2px solid; border-bottom: 2px solid; }
.menue { display: grid; gap: 2px; padding: 10px var(--gut) 18px; background: var(--night); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.menue[hidden] { display: none; }
.menue a { padding: 13px 4px 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); text-decoration: none; font-size: 18px; font-weight: 500; }

/* ---------- 1 · Bühne ---------- */
.buehne { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: var(--hdr-h); overflow: hidden; overflow-anchor: none;
  background: radial-gradient(120% 80% at 20% 0%, #24405a 0%, var(--night) 58%); color: var(--weiss); }
.buehne__in { position: relative; z-index: 2; flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(28px, 6svh, 80px) var(--gut) clamp(26px, 5svh, 60px);
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.buehne__marke { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: clamp(20px, 2.4vw, 34px); row-gap: 26px; }
.wappen-gross { position: relative; width: clamp(92px, 9.2vw, 136px); }
.wappen-gross img { width: 100%; height: auto; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .28)); }
.wappen-gross::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(../img/wappen.svg) center/contain no-repeat; mask: url(../img/wappen.svg) center/contain no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%) -160% 0/250% 100% no-repeat; opacity: 0; }
.buehne__wm { position: relative; padding-left: clamp(20px, 2.4vw, 34px); border-left: 1px solid rgba(255, 255, 255, .22); }
.buehne__wm .rv { display: block; overflow: hidden; padding-bottom: 2px; }
.buehne__wm svg { width: 100%; max-width: 430px; height: auto; fill: var(--weiss); }
.buehne__ort { grid-column: 1 / -1; display: grid; gap: 6px; font-size: 16.5px; color: rgba(255, 255, 255, .74); }
.buehne__status { display: inline-flex; align-items: center; gap: 9px; color: var(--weiss); font-weight: 500; }
.buehne__status .punkt { margin-top: -3px; }

.frage { position: relative; }
.frage__t { font-weight: 300; font-size: clamp(1.9rem, min(3vw, 5.2svh), 2.9rem); line-height: 1.08; letter-spacing: -.02em; margin-bottom: clamp(16px, 2.6svh, 26px); text-wrap: balance; }
.suche { position: relative; display: flex; align-items: center; height: 64px; padding: 0 8px 0 22px; border-radius: var(--r-pill); background: var(--weiss); color: var(--tinte);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .5); }
.suche__i { width: 22px; height: 22px; flex: none; color: var(--schiefer); margin-top: -2px; }
.suche__in { flex: 1; min-width: 0; height: 100%; padding: 4px 12px 0; border: 0; background: transparent; font-size: 18px; outline: none; -webkit-appearance: none; appearance: none; }
.suche__in::placeholder { color: #7c8d9e; }
.suche__in::-webkit-search-cancel-button { display: none; }
.suche:focus-within { box-shadow: 0 0 0 3px rgba(229, 87, 74, .55), 0 18px 44px -18px rgba(0, 0, 0, .5); }
.suche__go { flex: none; height: 48px; padding: 4px 22px 0; border: 0; border-radius: var(--r-pill); background: var(--rot); color: var(--weiss); font-weight: 600; font-size: 16px; transition: background-color .2s, transform .2s var(--ease); }
.suche__go:hover { background: var(--rot-d); }
.suche__go:active { transform: scale(.97); }
.suche__list { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; max-height: min(340px, 52svh); overflow: auto; padding: 6px; border-radius: var(--r-tile);
  background: var(--weiss); color: var(--tinte); box-shadow: 0 22px 50px -14px rgba(10, 25, 40, .45); overscroll-behavior: contain; }
.suche__list[hidden] { display: none; }
.suche__list li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 11px 12px 8px; border-radius: 10px; cursor: pointer; font-size: 16px; }
.suche__list li small { flex: none; font-size: 13.5px; color: var(--schiefer); font-weight: 500; }
.suche__list li[aria-selected="true"], .suche__list li:hover { background: var(--schnee); }
.suche__list li mark { background: none; color: var(--rot); font-weight: 650; }
.suche__list li[aria-disabled="true"] { cursor: default; color: var(--schiefer); }
.frage .chips { margin-top: 16px; }
.frage .chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .26); color: var(--weiss); }
.frage .chip:hover { border-color: var(--weiss); background: rgba(255, 255, 255, .12); }
.frage .chip[aria-pressed="true"] { background: var(--rot); border-color: var(--rot); }
.frage__hinweis { margin-top: 14px; font-size: 15px; color: rgba(255, 255, 255, .72); min-height: 1.5em; }
.frage__hinweis b { color: var(--weiss); font-weight: 600; }
.frage__hinweis a { color: var(--weiss); text-underline-offset: 3px; }

.buehne__pano { position: relative; z-index: 1; height: clamp(190px, 40svh, 430px); flex: none; overflow: hidden; }
.buehne__pano picture, .ko__band picture { height: 100%; }
.buehne__pano img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.buehne__pano::before { content: ''; position: absolute; inset: 0 0 auto; height: 46%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, var(--night) 0%, rgba(27, 48, 68, .42) 38%, rgba(27, 48, 68, 0) 100%); }

/* Intro (nur mit JS, ohne Reduced Motion) */
.js:not(.no-anim):not(.is-static) .wappen-gross img { opacity: 0; transform: translateY(14px) scale(.96); }
.js:not(.no-anim):not(.is-static) .buehne__wm svg { transform: translateY(104%); }
.js:not(.no-anim):not(.is-static) .buehne__ort, .js:not(.no-anim):not(.is-static) .frage { opacity: 0; transform: translateY(18px); }
.js:not(.no-anim):not(.is-static) .buehne__pano img { transform: scale(1.06); }
.intro-in .wappen-gross img { opacity: 1 !important; transform: none !important; transition: opacity .9s var(--ease) .05s, transform 1.1s var(--ease) .05s; }
.intro-in .buehne__wm svg { transform: none !important; transition: transform 1.1s cubic-bezier(.16, 1, .3, 1) .35s; }
.intro-in .buehne__ort { opacity: 1 !important; transform: none !important; transition: opacity .8s var(--ease) .75s, transform .9s var(--ease) .75s; }
.intro-in .frage { opacity: 1 !important; transform: none !important; transition: opacity .9s var(--ease) .9s, transform 1s var(--ease) .9s; }
.intro-in .buehne__pano img { transform: none !important; transition: transform 3.2s cubic-bezier(.16, 1, .3, 1) .1s; }
.intro-in .wappen-gross::after { animation: sheen 1.6s ease-in-out 1.2s 1 both; }
@keyframes sheen { 0% { opacity: 1; background-position: -160% 0; } 100% { opacity: 1; background-position: 260% 0; } }

/* ---------- Sektionen ---------- */
.sek { position: relative; }
.sek__in { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }

/* ---------- 2 · Wegweiser ---------- */
.weg { background: var(--schnee); }
.weg__in { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: clamp(20px, 2.6vw, 36px); row-gap: clamp(16px, 2.6svh, 28px); }
.weg__kopf { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.weg__kopf .lead { margin: 0 0 6px; max-width: 44ch; }
.weg__plan { min-width: 0; min-height: 0; display: flex; }
.plan { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: clamp(14px, 1.8vw, 22px); border-radius: var(--r-block); background: var(--night); color: var(--weiss); }
.plan__top { display: flex; align-items: center; gap: 16px; }
.plan__foto { position: relative; flex: none; width: 150px; }
.plan__foto img { width: 100%; height: 92px; object-fit: cover; object-position: 50% 52%; border-radius: var(--r-tile); }
.plan__foto figcaption { position: absolute; left: 6px; bottom: 6px; padding: 3px 7px 1px; border-radius: 6px; background: rgba(14, 27, 40, .72); font-size: 10.5px; line-height: 1.3; color: rgba(255, 255, 255, .9); }
.plan__foto figcaption a { color: inherit; }
.suche--klein { flex: 1; height: 52px; padding-left: 18px; box-shadow: none; }
.suche--klein .suche__in { font-size: 17px; }
.chips--rail { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 2px 4px 4px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.chips--rail::-webkit-scrollbar { display: none; }
.plan .chip { background: transparent; border-color: rgba(255, 255, 255, .24); color: var(--weiss); scroll-snap-align: start; }
.plan .chip:hover { border-color: var(--weiss); }
.plan .chip[aria-pressed="true"] { background: var(--rot); border-color: var(--rot); }
.schnitt { position: relative; flex: 1; min-height: 250px; }
.schnitt svg { position: absolute; left: 0; top: 0; overflow: visible; }
.plan__fuss { font-size: 13px; color: rgba(255, 255, 255, .6); }

/* Schnitt-Zeichnung */
.sn-floor { fill: rgba(255, 255, 255, .035); stroke: rgba(255, 255, 255, .14); stroke-width: 1; }
.sn-gang { fill: rgba(255, 255, 255, .05); }
.sn-core { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .16); }
.sn-stair { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1.2; }
.sn-elab { fill: rgba(255, 255, 255, .7); font: 600 12px var(--sans); stroke: #2a4158; stroke-width: 4px; stroke-linejoin: round; paint-order: stroke; }
.sn-ground { stroke: rgba(255, 255, 255, .32); stroke-width: 1.5; }
.sn-room { cursor: pointer; outline: none; }
.sn-room rect { fill: var(--night-2); stroke: rgba(255, 255, 255, .2); stroke-width: 1; transition: fill .35s, stroke .35s; }
.sn-room text { fill: rgba(255, 255, 255, .86); font: 600 14px var(--sans); text-anchor: middle; dominant-baseline: central; pointer-events: none; transition: fill .35s; }
.sn-room:hover rect, .sn-room:focus-visible rect { fill: var(--night-3); stroke: rgba(255, 255, 255, .55); }
.sn-room.is-dim rect { fill: rgba(36, 60, 83, .55); stroke: rgba(255, 255, 255, .1); }
.sn-room.is-dim text { fill: rgba(255, 255, 255, .42); }
.sn-room.is-on rect { fill: var(--rot); stroke: #ff8b80; }
.sn-room.is-on text { fill: var(--weiss); }
.sn-room.is-peer rect { stroke: rgba(229, 87, 74, .8); }
.sn-door { fill: var(--schnee); opacity: .5; }
.sn-route { fill: none; stroke: var(--rot-l); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.sn-route-glow { fill: none; stroke: var(--rot-l); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; opacity: .18; }
.sn-me { fill: var(--weiss); stroke: var(--rot-l); stroke-width: 3; }
.sn-in { fill: var(--weiss); font: 600 12.5px var(--sans); }
.sn-arrow { fill: var(--weiss); }
.sn-tag rect { fill: var(--weiss); }
.sn-tag text { fill: var(--tinte); font: 650 13px var(--sans); dominant-baseline: central; }

/* Antwortkarte */
.antwort { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: clamp(18px, 2vw, 28px); border-radius: var(--r-block); background: var(--weiss); border: 1px solid var(--linie); overflow: hidden; }
.antwort__wo { font-size: 14.5px; font-weight: 600; color: var(--rot); }
.antwort__t { margin-top: 4px; font-weight: 400; font-size: clamp(1.5rem, min(2.1vw, 3.6svh), 2rem); line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
.antwort__stelle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; padding: 12px 14px 10px; border-radius: var(--r-tile); background: var(--schnee); font-size: 15px; }
.antwort__stelle .punkt { margin-top: -3px; }
.antwort__stelle b { font-weight: 600; }
.antwort__st { display: inline-flex; align-items: center; gap: 8px; }
.antwort__tel { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 3px; border-radius: var(--r-pill); background: var(--weiss); border: 1px solid var(--linie); text-decoration: none; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.antwort__tel:hover { border-color: var(--tinte); }
.antwort__tel svg { width: 16px; height: 16px; margin-top: -3px; }
.antwort__mitte { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.antwort__mit:empty { display: none; }
.antwort__rest { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.mit__kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14.5px; font-weight: 600; color: var(--schiefer); }
.mit__kopf span:last-child { font-weight: 500; }
.mit { display: grid; gap: 2px; margin-top: 6px; }
.mit label { display: flex; align-items: flex-start; gap: 11px; padding: 7px 8px 5px; margin: 0 -8px; border-radius: 10px; cursor: pointer; font-size: 15.5px; line-height: 1.38; transition: background-color .2s; }
.mit label:hover { background: var(--schnee); }
.mit label { position: relative; }
.mit input { position: absolute; left: 8px; top: 7px; width: 20px; height: 20px; margin: 0; opacity: 0; z-index: 1; cursor: pointer; }
.mit .box { flex: none; width: 20px; height: 20px; margin-top: 0; border-radius: 6px; border: 1.5px solid #9fb0bf; background: var(--weiss); display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.mit .box::after { content: ''; width: 10px; height: 6px; margin-top: -3px; border-left: 2.2px solid var(--weiss); border-bottom: 2.2px solid var(--weiss); transform: rotate(-45deg) scale(.4); opacity: 0; transition: transform .2s var(--ease), opacity .2s; }
.mit input:checked + .box { background: var(--gruen); border-color: var(--gruen); }
.mit input:checked + .box::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.mit input:checked ~ .txt { color: var(--schiefer); }
.mit input:focus-visible + .box { outline: 2px solid var(--rot-l); outline-offset: 2px; }
.fakten { display: grid; gap: 6px; font-size: 15px; }
.fakten div { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); gap: 12px; padding-top: 6px; border-top: 1px solid var(--linie); }
.fakten dt { color: var(--schiefer); font-weight: 500; }
.fakten dd { color: var(--tinte); }
.antwort__ohne { font-size: 15px; color: var(--schiefer); }
.antwort__go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 4px; }
.antwort__go .knopf--linie { color: var(--tinte); }
.antwort__leer { margin: auto 0; display: grid; gap: 16px; align-content: center; }
.antwort__leer .antwort__t { font-weight: 300; }
.antwort__leer p { color: var(--schiefer); max-width: 40ch; }
.antwort__stellen { display: grid; gap: 4px; margin-top: 6px; }
.antwort__stellen button { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px 8px; border: 1px solid var(--linie); border-radius: 12px; background: var(--weiss); text-align: left; font-size: 15px; transition: border-color .2s, background-color .2s; }
.antwort__stellen button:hover { border-color: var(--tinte); }
.antwort__stellen button span { color: var(--schiefer); font-size: 14px; }
.antwort.is-flash { animation: flash .6s var(--ease); }
/* Desktop: die Karte hat eine feste Höhe. Langes scrollt in der Mitte, die Knöpfe bleiben unten sichtbar */
@media (min-width: 900px) {
  .antwort__mitte { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; margin-inline: -8px; padding-inline: 8px; scrollbar-width: thin; scrollbar-color: var(--linie) transparent; }
  .antwort__rest { display: contents; }   /* damit die Knöpfe an der ganzen Scrollfläche kleben, nicht nur an ihrem Block */
  .antwort__go { position: sticky; bottom: 0; z-index: 1; padding-top: 10px; background: var(--weiss); }
  .antwort__go::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; background: linear-gradient(rgba(255, 255, 255, 0), var(--weiss)); pointer-events: none; }
}
@keyframes flash { 0% { transform: translateY(6px); opacity: .4; } 100% { transform: none; opacity: 1; } }

/* ---------- 3 · Aktuelles ---------- */
.akt { background: var(--weiss); }
.akt__in { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: clamp(20px, 2.6vw, 36px); row-gap: clamp(16px, 2.6svh, 28px); }
.akt__kopf { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.akt__kopf .lead { margin: 0 0 6px; }
.akt__news { min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.akt__mehr { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.akt__mehr .nk { flex: 1; }
.nk { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 14px; border-radius: var(--r-tile); background: var(--schnee); min-width: 0; }
.nk__meta { font-size: 13.5px; font-weight: 600; color: var(--schiefer); }
.nk__t { font-size: 18px; font-weight: 600; line-height: 1.22; letter-spacing: -.005em; }
.nk__x { font-size: 15px; line-height: 1.45; color: #3a536b; }
.nk__lnk { margin-top: auto; padding-top: 4px; font-weight: 600; font-size: 15px; color: var(--rot); text-underline-offset: 3px; }
.nk--hkz { padding: 20px 22px; background: var(--night); color: var(--weiss); }
.nk--hkz .nk__meta { color: rgba(255, 255, 255, .7); }
.nk--hkz .nk__t { font-size: clamp(1.35rem, 1.9vw, 1.7rem); font-weight: 400; }
.nk--hkz .nk__x { color: rgba(255, 255, 255, .8); }
.check { display: grid; gap: 12px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--linie-d); }
.check__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.check__lab { font-size: 15px; color: rgba(255, 255, 255, .82); }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .08); }
.stepper button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--weiss); font-size: 20px; line-height: 1; padding-top: 3px; }
.stepper button:hover { background: rgba(255, 255, 255, .2); }
.stepper output { min-width: 4.6em; text-align: center; font-weight: 600; padding-top: 3px; }
.geld { display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 16px; border-radius: var(--r-pill); background: var(--weiss); color: var(--tinte); }
.geld input { width: 6.2em; border: 0; outline: none; background: transparent; font-size: 17px; font-weight: 600; padding-top: 3px; text-align: right; }
.geld span { color: var(--schiefer); font-weight: 600; padding-top: 3px; }
.check__ergebnis { display: flex; align-items: flex-start; gap: 10px; flex-wrap: nowrap; padding: 12px 14px 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: 15.5px; line-height: 1.4; min-height: 3.6em; }
.check__ergebnis b { font-weight: 650; }
.check__ergebnis > span:not(.punkt) { flex: 1; min-width: 0; }
.check__ergebnis .punkt { margin-top: 6px; }
.check__ergebnis.is-ja { background: rgba(79, 196, 131, .16); }
.check__fuss { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.check__fuss .knopf--linie { color: var(--weiss); }
.akt__ev { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.advent { display: flex; gap: 14px; align-items: center; padding: 14px 16px 12px; border-radius: var(--r-tile); background: var(--night); color: var(--weiss); }
.advent__fenster { flex: none; position: relative; width: 46px; height: 56px; border-radius: 8px; background: #2c4660; overflow: hidden; }
.advent__fenster::before, .advent__fenster::after { content: ''; position: absolute; background: var(--night); }
.advent__fenster::before { left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; }
.advent__fenster::after { top: 50%; left: 0; right: 0; height: 3px; margin-top: -1.5px; }
.advent__fenster.is-lit { background: radial-gradient(circle at 50% 60%, #ffd98a 0%, #f2a541 45%, #b9642a 100%); box-shadow: 0 0 22px rgba(242, 165, 65, .45); }
.advent__txt { font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, .82); }
.advent__txt b { display: block; color: var(--weiss); font-size: 16px; font-weight: 600; }
.akt__ev .h3 { margin-top: 4px; }
.evs { display: grid; gap: 6px; }
.ev { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--linie); }
.ev__d { display: grid; justify-items: center; padding: 6px 0 4px; border-radius: 12px; background: var(--schnee); line-height: 1.1; }
.ev__d b { font-size: 21px; font-weight: 600; }
.ev__d small { font-size: 12.5px; color: var(--schiefer); font-weight: 600; }
.ev__t { font-size: 15.5px; font-weight: 600; line-height: 1.28; }
.ev__o { font-size: 13.5px; color: var(--schiefer); line-height: 1.35; }
.ev__ics { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--linie); background: var(--weiss); display: grid; place-items: center; color: var(--tinte); transition: border-color .2s, background-color .2s; }
.ev__ics:hover { border-color: var(--tinte); background: var(--schnee); }
.ev__ics svg { width: 18px; height: 18px; }

/* ---------- 4 · Termin + Formulare ---------- */
.ter { background: var(--schnee); }
.ter__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: clamp(20px, 2.6vw, 36px); row-gap: clamp(16px, 2.6svh, 28px); }
.ter__kopf { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.ter__kopf .lead { margin: 0 0 6px; max-width: 48ch; }
.buchung { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: clamp(18px, 2vw, 26px); border-radius: var(--r-block); background: var(--weiss); border: 1px solid var(--linie); }
.buchung__fuer { padding: 10px 14px 8px; border-radius: 12px; background: rgba(174, 40, 30, .07); color: var(--rot-d); font-size: 15px; font-weight: 500; }
.buchung__fuer b { font-weight: 650; }
.buchung__reihe { display: grid; gap: 8px; min-width: 0; }
.buchung__lab { font-size: 14px; font-weight: 600; color: var(--schiefer); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.tage { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; overscroll-behavior-x: contain; }
.tage::-webkit-scrollbar { display: none; }
.tag { flex: none; display: grid; justify-items: center; gap: 1px; min-width: 58px; padding: 8px 6px 6px; border-radius: var(--r-tile); border: 1.5px solid var(--linie); background: var(--weiss); line-height: 1.1; transition: border-color .2s, background-color .2s, color .2s; }
.tag small { font-size: 12.5px; color: var(--schiefer); font-weight: 600; }
.tag b { font-size: 19px; font-weight: 600; }
.tag:hover { border-color: var(--tinte); }
.tag[aria-checked="true"] { background: var(--rot); border-color: var(--rot); color: var(--weiss); }
.tag[aria-checked="true"] small { color: rgba(255, 255, 255, .85); }
.zeiten { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 6px; max-height: 132px; overflow-y: auto; padding: 2px; margin: -2px; overscroll-behavior: contain; }
.zeit { height: 38px; padding-top: 3px; border-radius: var(--r-pill); border: 1.5px solid var(--linie); background: var(--weiss); font-size: 15px; font-weight: 600; transition: border-color .2s, background-color .2s, color .2s; }
.zeit:hover { border-color: var(--tinte); }
.zeit[aria-checked="true"] { background: var(--rot); border-color: var(--rot); color: var(--weiss); }
.zeit:disabled { opacity: .35; text-decoration: line-through; pointer-events: none; }
.buchung__felder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.feld { display: grid; gap: 5px; min-width: 0; }
.feld span { font-size: 14px; font-weight: 600; color: var(--schiefer); }
.feld input, .feld select { width: 100%; height: 48px; padding: 4px 16px 0; border-radius: var(--r-pill); border: 1.5px solid var(--linie); background: var(--weiss); font-size: 16px; outline: none; transition: border-color .2s; -webkit-appearance: none; appearance: none; }
.feld select { padding-right: 34px; background: var(--weiss) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234d6a86' stroke-width='1.8'/%3E%3C/svg%3E") right 14px center/11px no-repeat; }
.feld input:focus, .feld select:focus { border-color: var(--tinte); }
.feld input.is-err { border-color: var(--rot); }
.buchung__msg { font-size: 15px; min-height: 0; }
.buchung.is-done .buchung__reihe, .buchung.is-done .buchung__felder { display: none; }
.buchung__msg.is-err { color: var(--rot); font-weight: 500; }
.buchung__msg.is-wahl { padding: 10px 14px 8px; border-radius: 12px; background: var(--schnee); font-weight: 600; }
.ticket { display: grid; gap: 10px; padding: 16px 18px 14px; border-radius: var(--r-tile); background: var(--night); color: var(--weiss); }
.ticket__k { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: rgba(255, 255, 255, .72); font-weight: 600; }
.ticket__t { font-size: 19px; font-weight: 600; line-height: 1.25; }
.ticket__x { font-size: 14.5px; color: rgba(255, 255, 255, .82); line-height: 1.45; }
.ticket__go { display: flex; flex-wrap: wrap; gap: 8px; }
.ticket__go .knopf--linie { color: var(--weiss); }
.ticket__fuss { font-size: 13px; color: rgba(255, 255, 255, .6); }
.formulare { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.formulare__lead { font-size: 15.5px; color: var(--schiefer); }
.flist { display: grid; gap: 8px; }
.fz { border-radius: var(--r-tile); background: var(--weiss); border: 1px solid var(--linie); overflow: hidden; }
.fz__kopf { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; }
.fz__i { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--schnee); display: grid; place-items: center; color: var(--blau); }
.fz__i svg { width: 19px; height: 19px; }
.fz__t { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.fz__t small { display: block; font-size: 13px; color: var(--schiefer); font-weight: 500; }
.fz__auf { flex: none; }
.fz__body { display: grid; gap: 10px; padding: 0 14px 14px; }
.fz__body[hidden] { display: none; }
.fz__felder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fz__felder .feld input { height: 44px; }
.feld input[type=date] { text-align: left; color: var(--tinte); }
.feld input[type=date]::-webkit-date-and-time-value { text-align: left; }
.feld input[type=date]::-webkit-calendar-picker-indicator { opacity: .55; }
.fz__fuss { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; }
.fz__fuss a { color: var(--schiefer); }
.fz__msg { font-size: 14.5px; }
.fz__msg.is-ok { color: var(--gruen); font-weight: 600; }
.fz__msg.is-err { color: var(--rot); }

/* ---------- 5 · Abfall ---------- */
.abf { background: var(--weiss); }
.abf__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.abf__b { min-width: 0; display: grid; gap: 14px; }
.abf__foto { position: relative; min-width: 0; }
.abf__foto img { width: 100%; height: clamp(260px, 50svh, 520px); object-fit: cover; border-radius: var(--r-block); }
.abf__rh { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px 10px; border-radius: var(--r-tile); background: rgba(14, 27, 40, .86); color: var(--weiss); font-size: 15px; line-height: 1.4; }
.abf__rh .punkt { margin-top: 6px; }
.abf__rh b { display: block; font-weight: 600; }
.abf__tool { min-width: 0; }
.abf__form { position: relative; margin-top: 22px; }
.abf__felder { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 10px; }
.abf__list { top: calc(100% + 6px); right: 130px; }
.abf__out { margin-top: 18px; min-height: 172px; }
.platten { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.platte { display: grid; gap: 2px; padding: 12px 14px 10px; border-radius: var(--r-tile); background: var(--schnee); line-height: 1.25; }
.platte small { font-size: 13px; font-weight: 600; color: var(--schiefer); }
.platte b { font-size: 21px; font-weight: 600; }
.platte span { font-size: 14.5px; color: #3a536b; }
.platte.is-bald { background: var(--night); color: var(--weiss); }
.platte.is-bald small, .platte.is-bald span { color: rgba(255, 255, 255, .78); }
.abf__aktion { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.abf__aktion .knopf--linie { color: var(--tinte); }
.abf__hinweis { font-size: 15px; color: var(--schiefer); }
.abf__hinweis button { border: 0; background: none; padding: 0; color: var(--rot); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.abf__fuss { font-size: 14.5px; color: var(--schiefer); max-width: 56ch; }

/* ---------- 6 · Leben + Kontakt ---------- */
.ko { background: var(--schnee); display: grid; grid-template-columns: minmax(var(--gut), 1fr) repeat(3, minmax(0, 384px)) minmax(var(--gut), 1fr);
  column-gap: clamp(16px, 2.4vw, 32px); align-content: start; }
.ko__a { display: contents; }
.ko__band { grid-column: 1 / -1; height: clamp(130px, 22svh, 270px); overflow: hidden; margin-left: calc(-1 * clamp(16px, 2.4vw, 32px)); margin-right: calc(-1 * clamp(16px, 2.4vw, 32px)); }
.ko__band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.ko__leben, .ko__kontakt, .karte { margin-top: clamp(18px, 3.2svh, 34px); min-width: 0; }
.ko__leben { grid-column: 2; display: flex; flex-direction: column; gap: 14px; }
.ko__leben .h2 { font-size: clamp(1.9rem, min(2.8vw, 5svh), 2.8rem); }
.stolz { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stolz li { display: grid; gap: 2px; align-content: start; padding: 11px 13px 9px; border-radius: var(--r-tile); background: var(--weiss); border: 1px solid var(--linie); line-height: 1.28; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.stolz small { font-size: 13px; font-weight: 600; color: var(--rot); }
.stolz b { font-size: 15.5px; font-weight: 600; }
.stolz span { font-size: 13.5px; color: var(--schiefer); }
.zahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.zahlen li { display: grid; gap: 4px; align-content: start; }
.zahlen b { font-weight: 300; font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1; letter-spacing: -.02em; }
.zahlen span { font-size: 13px; color: var(--schiefer); line-height: 1.3; }
.ko__kontakt { grid-column: 3; display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 2vw, 26px); border-radius: var(--r-block); background: var(--night); color: var(--weiss); }
.ko__adr { color: rgba(255, 255, 255, .8); }
.ko__status { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; line-height: 1.4; }
.ko__status .punkt { margin-top: 6px; }
.zeiten-tab { width: 100%; border-collapse: collapse; font-size: 15px; }
.zeiten-tab th, .zeiten-tab td { padding: 6px 0 4px; text-align: left; border-bottom: 1px solid var(--linie-d); font-weight: 400; }
.zeiten-tab th { width: 1%; white-space: nowrap; padding-right: 22px; color: rgba(255, 255, 255, .72); }
.zeiten-tab tr.is-heute th, .zeiten-tab tr.is-heute td { color: var(--weiss); font-weight: 600; }
.zeiten-tab .sh { display: none; }
.ko__wege { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.ko__wege .knopf--hell { border-color: transparent; }
.ko__wege .knopf--linie { color: var(--weiss); }
.karte { grid-column: 4; position: relative; border-radius: var(--r-block); overflow: hidden; background: #e8e8e6; min-height: 260px; }
.karte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.karte__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); display: grid; justify-items: center; color: var(--rot); pointer-events: none; }
.karte__pin svg { width: 40px; height: 40px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.karte__pin b { order: -1; margin-bottom: 2px; padding: 4px 10px 2px; border-radius: var(--r-pill); background: var(--rot); color: var(--weiss); font-size: 13.5px; font-weight: 600; }
.karte__route { position: absolute; right: 12px; bottom: 30px; background: var(--weiss); color: var(--tinte); border-color: var(--linie); }
.karte__route:hover { border-color: var(--tinte); }
.karte figcaption { position: absolute; right: 12px; bottom: 6px; font-size: 11px; color: #4a4a4a; background: rgba(255, 255, 255, .78); padding: 1px 6px; border-radius: 4px; }

/* ---------- Fuß ---------- */
.fuss { background: var(--night); color: rgba(255, 255, 255, .82); }
.fuss__in { max-width: var(--max); margin: 0 auto; padding: 36px var(--gut) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 24px 40px; align-items: start; font-size: 14.5px; }
.fuss__marke { display: flex; gap: 14px; align-items: flex-start; }
.fuss__marke img { width: 38px; height: auto; flex: none; }
.fuss__marke b { color: var(--weiss); font-weight: 600; }
.fuss a { text-underline-offset: 3px; }
.fuss__quellen { color: rgba(255, 255, 255, .6); font-size: 13.5px; }
.fuss__entwurf { padding: 8px 16px 6px; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: var(--weiss); font-size: 14px; font-weight: 500; }
.fuss__entwurf:hover { background: rgba(255, 255, 255, .08); }

/* ---------- Dock (Telefon), Dialog, Toast ---------- */
.dock { display: none; }
.notiz { max-width: min(520px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--r-block); background: var(--weiss); color: var(--tinte); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.notiz::backdrop { background: rgba(14, 27, 40, .55); }
.notiz__in { display: grid; gap: 12px; padding: 26px 26px 22px; font-size: 15.5px; line-height: 1.5; }
.notiz__t { font-size: 22px; font-weight: 600; }
.notiz__klein { font-size: 13.5px; color: var(--schiefer); }
.notiz__knoepfe { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.notiz .knopf--linie { color: var(--tinte); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translateX(-50%); display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px); padding: 12px 18px 10px; border-radius: var(--r-pill); background: var(--tinte); color: var(--weiss); font-size: 15px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); }
.toast[hidden] { display: none; }

/* Erscheinen beim Scrollen: nur Deckkraft (kein Hochrutschen auf jeder Sektion) */
.js .reveal { opacity: 0; transition: opacity .9s var(--ease); }
.js .reveal.is-in { opacity: 1; }
.no-anim .reveal, .is-static .reveal { opacity: 1 !important; }

/* ================= Screens layer ================= */
:root { --scr-t: calc(var(--hdr-h) + clamp(14px, 3.4svh, 44px)); --scr-b: clamp(18px, 3.8svh, 48px); }
main > .sek { padding-top: var(--scr-t); padding-bottom: var(--scr-b); }
main > .ko { padding-top: var(--hdr-h); }
@media (min-width: 900px) {
  main > .sek { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  main > .sek > .sek__in { flex: none; }
  .weg__in, .akt__in, .ter__in { height: calc(100svh - var(--scr-t) - var(--scr-b)); max-height: 820px; }
  main > .ko { display: grid; justify-content: stretch; align-content: start; }
}
@media (min-width: 900px) and (max-height: 820px) {
  :root { --h2s: clamp(1.9rem, min(3vw, 5.4svh), 2.8rem); }
  .lead { font-size: 16.5px; }
  .ko__band { height: 16svh; }
  .zeiten-tab th, .zeiten-tab td { padding: 4px 0 2px; }
  .ko__kontakt { gap: 7px; }
  .nk { padding: 12px 14px 10px; }
  .nk__x { font-size: 14.5px; }
  .ev { padding-top: 5px; padding-bottom: 5px; }
  .ev__d b { font-size: 18px; }
}
@media (min-width: 900px) and (max-height: 700px) {
  .lead { display: none; }
  .plan__top { display: none; }
}

/* ================= Tablet / phone ================= */
@media (max-width: 1100px) {
  .kopf__nav a { padding: 9px 9px 6px; font-size: 15px; }
  .buehne__in { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 30px; }
  .frage__t { max-width: 22ch; }
}
@media (max-width: 899px) {
  :root { --hdr-h: 84px; --scr-b: 28px; }
  .kopf__bar { height: 56px; gap: 12px; }
  .kopf__nav { display: none; }
  .kopf__status { margin-left: auto; padding: 7px 12px 4px; font-size: 13.5px; }
  .kopf__menu { display: inline-flex; }
  .kopf__wm { width: 104px; }
  .kopf__wappen { width: 22px; }
  main > .sek { scroll-margin-top: var(--hdr-h); }
  .weg__in, .akt__in, .ter__in, .abf__in { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 18px; }
  .weg__kopf, .akt__kopf, .ter__kopf { display: block; }
  .weg__kopf .lead, .akt__kopf .lead, .ter__kopf .lead { margin-top: 10px; }
  .schnitt { min-height: 0; height: auto; }
  .schnitt svg { position: static; }
  .akt__news { grid-template-columns: minmax(0, 1fr); }
  .akt__mehr { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 4px; scroll-padding: 0 var(--gut); overscroll-behavior-x: contain; }
  .akt__mehr::-webkit-scrollbar { display: none; }
  .akt__mehr .nk { flex: 0 0 82%; scroll-snap-align: start; }
  .akt__ev { margin-top: 6px; }
  .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; overscroll-behavior-x: contain; }
  .seg::-webkit-scrollbar { display: none; }
  .zeiten { max-height: 88px; }
  .buchung__felder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .buchung__felder .knopf { grid-column: 1 / -1; }
  .buchung { gap: 12px; }
  .flist .fz:nth-child(n+5) { display: none; }
  .formulare__lead { font-size: 14.5px; }
  .fz__kopf { padding: 8px 8px 8px 12px; gap: 10px; }
  .abf__b { order: 2; }
  .abf__foto img { height: 210px; }
  .abf__tool .lead { display: none; }
  .abf__form { margin-top: 14px; }
  .abf__out { margin-top: 12px; min-height: 0; }
  .platte { padding: 9px 12px 7px; }
  .platte b { font-size: 18px; }
  .ko { display: block; }
  .ko__a { display: block; }
  .ko__leben { margin: 20px var(--gut) 0; }
  .ko__kontakt { margin: 22px var(--gut) 0; }
  .karte { margin: 16px var(--gut) 0; min-height: 0; height: 240px; }
  .fuss__in { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
  main > .sek:last-of-type { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .dock { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px;
    border-radius: var(--r-pill); background: var(--night); box-shadow: 0 14px 36px -12px rgba(0, 0, 0, .5); transform: translateY(140%); transition: transform .45s var(--ease); }
  .dock.is-on { transform: none; }
  .dock__k { display: flex; align-items: center; justify-content: center; gap: 7px; height: 46px; padding-top: 3px; border-radius: var(--r-pill); color: var(--weiss); text-decoration: none; font-size: 14.5px; font-weight: 600; -webkit-tap-highlight-color: transparent; }
  .dock__k svg { width: 18px; height: 18px; margin-top: -3px; }
  .dock__k--rot { background: var(--rot); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); border-radius: var(--r-tile); }
}
@media (max-width: 719px) {
  [data-status] .s-lg, .fz__auf .s-lg { display: none; }
  [data-status] .s-sh, .fz__auf .s-sh { display: inline; white-space: nowrap; }
  .ko__status [data-status] .s-sh { white-space: normal; }   /* 360 px: die Zeile darf im Kontaktblock umbrechen */
  :root { --scr-t: 28px; --h2s: clamp(1.95rem, 8.4vw, 2.4rem); --t-lead: 16.5px; }
  .entwurf { font-size: 11.5px; height: 28px; }
  .buehne__in { padding-top: 22px; padding-bottom: 20px; gap: 22px; align-content: start; }
  .buehne__marke { row-gap: 16px; }
  .wappen-gross { width: 64px; }
  .buehne__wm svg { max-width: 250px; }
  .buehne__ort { font-size: 15px; }
  .frage__t { font-size: clamp(1.6rem, 7.2vw, 2rem); margin-bottom: 14px; }
  .suche { height: 56px; padding-left: 16px; padding-right: 6px; }
  .suche__in { font-size: 16.5px; padding-left: 10px; }
  .suche__go { height: 44px; padding: 3px 16px 0; font-size: 15px; }
  .frage .chips { gap: 6px; margin-top: 12px; }
  .frage .chip { min-height: 36px; padding: 3px 13px 0; font-size: 14.5px; }
  .frage .chip:nth-child(n+7) { display: none; }
  .buehne__pano { height: clamp(150px, 26svh, 230px); }
  .plan { padding: 12px; border-radius: 20px; }
  .plan__foto { width: 92px; }
  .plan__foto img { height: 64px; }
  .plan__foto figcaption { left: 4px; right: 4px; bottom: 4px; font-size: 9px; padding: 2px 4px 0; text-align: center; }
  .suche--klein { height: 48px; padding-left: 14px; }
  .suche--klein .suche__in { font-size: 16px; }
  .antwort { padding: 18px 16px; }
  .antwort__tel { margin-left: 0; }
  .fakten div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ev { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; }
  .fz__felder { grid-template-columns: minmax(0, 1fr); }
  .abf__felder { grid-template-columns: minmax(0, 1fr) 96px; }
  .abf__list { right: 0; }
  .platten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zeiten-tab .lg { display: none; }
  .zeiten-tab .sh { display: inline; }
  .ko__band { height: 104px; margin: 0; }
  .stolz li { padding: 9px 11px 7px; }
}
@media (max-width: 480px) {
  .kopf__wm { display: none; }
  .kopf__status .s-lg { display: none; }
  .kopf__status .s-sh { display: inline; }
}
@media (max-width: 380px) {
  .tag { min-width: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ================= VCSLV credit (templates/credit) ================= */
.vc-credit-row { margin-top: clamp(28px, 4vw, 44px); padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  display: flex; justify-content: center; grid-column: 1 / -1; flex: 0 0 100%; width: 100%; box-sizing: border-box; }
.vc-credit { --vc-dot: #D2664A; display: inline-flex; align-items: center; gap: .7em; min-height: 44px; padding: 0 6px; color: inherit; text-decoration: none; font-size: 12px; line-height: 1; letter-spacing: .04em; opacity: .72; transition: opacity .4s ease; }
.vc-credit--light { --vc-dot: #A8452F; }
.vc-credit__mark { display: block; height: .92em; width: auto; overflow: visible; }
.vc-credit__dot { fill: var(--vc-dot); transform-box: fill-box; transform-origin: center; transition: transform .8s cubic-bezier(.2, .9, .25, 1.35) .15s, filter .4s ease; }
.vc-credit__line { padding-left: .7em; border-left: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.vc-credit.is-arm .vc-credit__dot { transform: scale(0); }
.vc-credit.is-arm.is-in .vc-credit__dot { transform: scale(1); }
.vc-credit:hover, .vc-credit:focus-visible { opacity: 1; }
.vc-credit:hover .vc-credit__dot, .vc-credit:focus-visible .vc-credit__dot { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--vc-dot) 80%, transparent)); }
.vc-credit:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; border-radius: 4px; }
@media (max-width: 899px) { .vc-credit-row { padding-bottom: calc(84px + env(safe-area-inset-bottom)); } }
@media (max-width: 520px) {
  .vc-credit { flex-wrap: wrap; justify-content: center; row-gap: 8px; padding: 10px 6px; }
  .vc-credit__line { flex-basis: 100%; text-align: center; padding-left: 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .vc-credit.is-arm .vc-credit__dot { transform: none; transition: none; } }
