/* Marktgemeinde Schruns — Entwurf von VCSLV
   Colours: Wappen black #1e1e1e (ink), Wappen blue #0067b2 (the one accent), Wappen green #008542 (status checks only),
   Wappen gold #fadc41 (only inside the Wappen and the SchrUNSer masthead). Paper #f6f4ef.
   Type: Besley (Clarendon, the face of old Kundmachungen) for headings, Lexend (made for reading fluency) for text. */

@font-face { font-family: 'Besley'; src: url(../fonts/besley-latin-wght-normal.woff2) format('woff2'); font-weight: 400 900; 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: 'Besley'; src: url(../fonts/besley-latin-ext-wght-normal.woff2) format('woff2'); font-weight: 400 900; 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: 'Lexend'; src: url(../fonts/lexend-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; 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: 'Lexend'; src: url(../fonts/lexend-latin-ext-wght-normal.woff2) format('woff2'); font-weight: 100 900; 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; }

:root {
  --paper: #f6f4ef; --paper-2: #ece8df; --white: #fff; --ink: #1e1e1e; --ink-2: #4a4945; --ink-3: #66645d;
  --line: rgba(30, 30, 30, .13); --line-2: rgba(30, 30, 30, .26);
  --accent: #0067b2; --accent-d: #00528f; --accent-t: rgba(0, 103, 178, .08); --accent-l: #8cc4ef;
  --ok: #008542; --ok-d: #006a35; --ok-t: #e4f2e9; --err: #a3261c; --gold: #fadc41;
  --serif: 'Besley', 'Rockwell', serif; --sans: 'Lexend', 'Helvetica Neue', Arial, sans-serif;
  --r-lg: 24px; --r-md: 14px; --r-pill: 999px; --r: var(--r-lg); --strip-h: 30px; --bar-h: 64px; --hdr-h: calc(var(--strip-h) + var(--bar-h));
  --gut: clamp(20px, 4vw, 64px); --max: 1360px;
  --t-cap: 13px; --t-small: 14px; --t-body: 15.5px; --t-lead: 17px;
  --h2s: clamp(2rem, min(3.3vw, 5.6svh), 3.4rem);
  --h3s: clamp(1.3rem, min(1.7vw, 3svh), 1.6rem);
  --scr-t: calc(var(--hdr-h) + clamp(14px, 3.6svh, 44px));
  --scr-b: clamp(18px, 3.6svh, 44px);
}
@media (max-width: 899px) { :root { --bar-h: 56px; --scr-b: 30px; } }
@media (max-width: 719px) { :root { --t-small: 13.5px; --t-body: 15px; --t-lead: 15.5px; --h2s: clamp(1.85rem, 8vw, 2.3rem); --h3s: 1.3rem; --scr-t: 30px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 0; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-body)/1.55 var(--sans); font-synthesis: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
img, picture, video, canvas, svg { user-select: none; -webkit-user-drag: none; }
::selection { background: rgba(0, 103, 178, .32); color: inherit; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
b, strong { font-weight: 600; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-pill); }
.skip:focus { top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.lnk { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; font: inherit; }
.lnk:hover { color: var(--accent-d); }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid transparent; font: 500 15px/1.1 var(--sans); text-decoration: none; white-space: nowrap; overflow: hidden; -webkit-touch-callout: none; user-select: none; transition: background-color .2s, border-color .2s, transform .12s; }
.btn:active { transform: scale(.97); }
.btn--fill { background: var(--accent); color: #fff; }
.btn--fill:hover { background: var(--accent-d); }
.btn--line { border-color: currentColor; color: var(--accent); background: transparent; }
.btn--line::after { content: ''; position: absolute; inset: 0; background: currentColor; opacity: 0; transition: opacity .2s; }
.btn--line:hover::after { opacity: .1; }
.btn--s { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- Header with the permanent draft line ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 100; }
.draft { display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--strip-h); padding: 4px 12px; border: 0; background: var(--ink); color: #f6f4ef; font: 500 12.5px/1.25 var(--sans); letter-spacing: .01em; text-align: center; }
.draft:hover .draft__txt { text-decoration: underline; text-underline-offset: .2em; }
.draft__txt::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--gold); vertical-align: .08em; }
.hdr__bar { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); height: var(--bar-h); padding: 0 var(--gut); background: var(--paper); border-bottom: 1px solid var(--line); }
.hdr__brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; margin-right: auto; transition: opacity .4s; }
.hdr__w { height: 38px; width: 31px; }
.hdr__name { display: flex; flex-direction: column; font: 700 21px/1 var(--serif); }
.hdr__name small { font: 500 11.5px/1.2 var(--sans); color: var(--ink-2); margin-bottom: 2px; }
.hdr.has-crest .hdr__brand { opacity: 0; pointer-events: none; }
.hdr__nav { display: flex; gap: clamp(14px, 1.7vw, 28px); }
.hdr__nav a { color: var(--ink); text-decoration: none; font-weight: 450; font-size: 15px; padding: 8px 0; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .3s; }
.hdr__nav a:hover { background-size: 100% 2px; }
.hdr__nav .hdr__amt { color: var(--accent); }
.hdr__status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); font-size: 13px; text-decoration: none; white-space: nowrap; }
.hdr__status:hover { border-color: var(--ink); }
.hdr__menu { display: none; align-items: center; gap: 10px; height: 44px; padding: 0 4px 0 12px; border: 0; background: none; font: 500 15px var(--sans); }
.hdr__menu i { position: relative; width: 20px; height: 2px; background: currentColor; transition: background .2s; }
.hdr__menu i::before, .hdr__menu i::after { content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform .25s; }
.hdr__menu i::before { top: -6px; } .hdr__menu i::after { top: 6px; }
.hdr__menu[aria-expanded="true"] i { background: transparent; }
.hdr__menu[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.hdr__menu[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }
.menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 18px; display: grid; }
.menu[hidden] { display: none; }
.menu a { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 17px; }
@media (max-width: 1180px) { .hdr__nav a:nth-child(3) { display: none; } }
@media (max-width: 1023px) { .hdr__nav { display: none; } .hdr__menu { display: inline-flex; } }
@media (max-width: 899px) { .hdr__w { height: 32px; width: 26px; } .hdr__name { font-size: 19px; } }
@media (max-width: 389px) { .draft { font-size: 11px !important; } }
@media (max-width: 520px) { .draft { font-size: 11.5px; letter-spacing: 0; padding: 4px 10px; } .draft__txt::before { margin-right: 6px; } .hdr__status { padding: 6px 10px; font-size: 12.5px; } .hdr__menu-l { display: none; } .hdr__name small { font-size: 10.5px; } }
.hdr__status .s-sh { display: none; }
@media (max-width: 400px) { .hdr__status .s-lg { display: none; } .hdr__status .s-sh { display: inline; } .hdr__status { padding: 6px 9px; gap: 6px; } }

/* status dots: green = open (signal colour), grey = closed */
.dot { position: relative; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #9a978e; }
.dot.is-open { background: var(--ok); }
.dot.is-open::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: ping 2.6s ease-out infinite; }
.dot.is-off::after { animation-play-state: paused; }
.dot--lg { width: 12px; height: 12px; margin-top: 6px; }
@keyframes ping { 0% { transform: scale(.6); opacity: .7; } 70%, 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); min-height: 100vh; min-height: 100svh; padding-top: var(--hdr-h); overflow-anchor: none; }
.hero__photo { grid-column: 2; grid-row: 1; position: relative; overflow: hidden; background: #c9d3dc; }
.hero__photo .rv { position: absolute; inset: 0; overflow: hidden; display: block; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 58%; }
.hero__main { container-type: inline-size; grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(18px, 3.4svh, 44px) clamp(22px, 3.6vw, 64px) clamp(18px, 3.4svh, 40px) var(--gut); min-width: 0; }
.crest { display: flex; align-items: center; gap: clamp(14px, 1.5vw, 26px); }
.crest__svg { --ch: clamp(84px, 15svh, 150px); height: var(--ch); width: calc(var(--ch) * .8203); flex: none; overflow: visible; }
.crest__name { display: flex; flex-direction: column; font-weight: 400; min-width: 0; }
.crest__mg { font: 500 clamp(14px, 1.2vw, 19px)/1.2 var(--sans); color: var(--ink-2); margin-bottom: .2em; }
.crest__sch { display: block; font: 700 clamp(2.8rem, min(6.2vw, 11.5svh, 14.5cqi), 6.6rem)/.9 var(--serif); letter-spacing: -.012em; white-space: nowrap; }
.crest__sch .lt { display: inline-block; }
.crest__sch .ltm { display: inline-block; overflow: hidden; padding: 0 .02em .14em; margin-bottom: -.14em; vertical-align: top; }
.crest__line { margin: clamp(8px, 1.4svh, 16px) 0 0 calc(var(--chw, 0px)); font-size: 15px; color: var(--ink-2); }
.cw-draw { stroke-dasharray: 1 1; stroke-dashoffset: 0; }

.con { margin-top: clamp(14px, 3svh, 34px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.con__row { padding: clamp(12px, 1.9svh, 18px) clamp(16px, 1.6vw, 22px); }
.con__row + .con__row { border-top: 1px solid var(--line); }
.con__k { font: 500 var(--t-cap)/1.3 var(--sans); color: var(--ink-2); margin-bottom: 3px; display: block; }
.con__amt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.con__v { font: 600 clamp(1.08rem, min(1.45vw, 2.7svh), 1.34rem)/1.25 var(--serif); overflow-wrap: break-word; }
.con__s { margin-top: 4px; font-size: var(--t-small); color: var(--ink-2); line-height: 1.4; }
.con__amt-rh { padding-left: 16px; border-left: 1px solid var(--line); min-width: 0; max-width: 210px; }
.con__v2 { font-size: var(--t-small); line-height: 1.35; }
/* the street search: field and arrow are one capsule */
.combo { position: relative; display: flex; align-items: center; gap: 4px; height: 52px; padding: 4px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--paper); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.combo:focus-within { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #fff; }
.combo__in { flex: 1; min-width: 0; height: 100%; padding: 0 8px 0 14px; border: 0; border-radius: var(--r-pill); background: transparent; font-size: 16px; }
.combo__in:focus, .combo__in:focus-visible { outline: none; }
.combo__in::placeholder { color: var(--ink-3); }
.combo__go { flex: none; width: 54px; height: 100%; border: 0; border-radius: var(--r-pill); background: var(--accent); color: #fff; display: grid; place-items: center; transition: background-color .2s; }
.combo__go:hover { background: var(--accent-d); }
.combo__go svg { width: 22px; height: 22px; }
.combo__list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 232px; overflow: auto; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: 0 16px 36px -18px rgba(30, 30, 30, .4); padding: 6px; }
.combo__list li { padding: 10px 14px; border-radius: var(--r-md); cursor: pointer; font-size: 15px; }
.combo__list li[aria-selected="true"], .combo__list li:hover { background: var(--accent-t); color: var(--accent-d); }
.combo__list mark { background: none; color: inherit; font-weight: 600; }
.abf { margin-top: 10px; min-height: 52px; }
.abf__try { font-size: var(--t-small); color: var(--ink-2); padding-top: 4px; }
.abf__dates { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.abf__d { display: flex; flex-direction: column; }
.abf__d b { font: 600 clamp(1.15rem, min(1.5vw, 2.8svh), 1.4rem)/1.15 var(--serif); }
.abf__d:first-child b { color: var(--accent); }
.abf__d small { font-size: 12.5px; color: var(--ink-2); }
.abf__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.abf__foot .lnk { font-size: 13.5px; }
.con__next { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: var(--t-small); line-height: 1.4; }
.con__next p { min-width: 0; flex: 1 1 220px; }
.con__next b { font-weight: 600; }
.con__next .wm b { color: var(--accent); }

@media (max-width: 899px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero__photo { height: clamp(170px, 30svh, 320px); flex: none; }
  .hero__main { padding: 0 var(--gut) 26px; }
  .crest { margin-top: calc(var(--ch-m) * -.42); align-items: flex-end; }
  .crest__svg { --ch: var(--ch-m); }
  .hero { --ch-m: clamp(78px, 21vw, 104px); }
  .crest__name { padding-bottom: 4px; }
  .crest__sch { font-size: clamp(2.6rem, 12.4vw, 3.6rem); }
  .crest__line { margin-top: 8px; }
  .con { margin-top: 14px; box-shadow: none; }
  .con__amt { grid-template-columns: auto minmax(0, 1fr); }
  .con__amt-rh { grid-column: 2; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--line); max-width: none; display: flex; gap: 8px; align-items: baseline; }
  .con__amt-rh .con__k { margin: 0; flex: none; }
}
@media (max-width: 899px) and (max-height: 700px) { .hero__photo { height: clamp(150px, 24svh, 220px); } .con__s { display: none; } }
@media (min-width: 900px) and (max-width: 1399px) {
  .hero { grid-template-columns: minmax(0, 50fr) minmax(0, 50fr); }
  .con__amt { grid-template-columns: auto minmax(0, 1fr); }
  .con__amt-rh { grid-column: 2; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--line); max-width: none; display: flex; gap: 8px; align-items: baseline; }
  .con__amt-rh .con__k { margin: 0; flex: none; }
}
@media (min-width: 900px) and (max-height: 760px) {
  .crest__svg { --ch: clamp(76px, 13svh, 120px); }
  .crest__sch { font-size: clamp(3rem, min(6vw, 10svh), 5.6rem); }
  .con__row { padding-top: 10px; padding-bottom: 10px; }
  .abf { min-height: 40px; margin-top: 8px; }
}
/* crest white outline so the shield reads on the photo edge (phones) */
@media (max-width: 899px) { .crest__svg { filter: drop-shadow(0 6px 14px rgba(30, 30, 30, .18)); } }

/* ---------- Sections and screens ---------- */
.sec { position: relative; padding-top: var(--scr-t); padding-bottom: var(--scr-b); scroll-margin-top: 0; }
.sec--desk { background: var(--paper-2); }
.sec--white { background: var(--white); }
.sec--p2 { background: var(--paper-2); }
/* the one dark section: Gemeindevertretung reads like the notice board in the evening — light type, the Wappen blue lightened */
.sec--ink { background: var(--ink); color: #f1eee7; --line: rgba(241, 238, 231, .14); --line-2: rgba(241, 238, 231, .3); --ink-2: rgba(241, 238, 231, .74); --ink-3: rgba(241, 238, 231, .6); }
.sec--ink .h2 em, .sec--ink .h3 em { color: var(--accent-l); }
.sec--ink a, .sec--ink .lnk { color: var(--accent-l); }
.sec--ink :focus-visible { outline-color: var(--accent-l); }
.sec--ink .ses__body li::before { background: var(--accent-l); }
.sec--ink .ses__btn:hover .ses__t { color: var(--accent-l); }
.sec--ink .nl { --line: rgba(30, 30, 30, .13); --line-2: rgba(30, 30, 30, .26); --ink-2: #4a4945; --ink-3: #66645d; color: var(--ink); }
.sec--ink .nl :focus-visible { outline-color: var(--accent); }
.sec--ink .sess--rail .ses { background: rgba(241, 238, 231, .06); }
@media (min-width: 900px) { main > .sec { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; } }
@media (max-width: 719px) { main > .sec, main [data-screen] { scroll-margin-top: var(--hdr-h); } }
.h2 { font: 700 var(--h2s)/1.06 var(--serif); letter-spacing: -.01em; }
.h3 { font: 700 var(--h3s)/1.15 var(--serif); }
h1 em, h2 em, h3 em, .h2 em, .h3 em { font-style: normal; color: var(--accent); }
.lead { margin-top: 10px; font-size: var(--t-lead); color: var(--ink-2); max-width: 64ch; }
.lead--s { font-size: var(--t-small); margin-top: 6px; }
.sec__head { margin-bottom: clamp(12px, 2.4svh, 26px); }
@media (min-width: 1100px) { .meldung .sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; } .meldung .sec__head .lead { max-width: 60ch; margin: 0 0 .35em; font-size: var(--t-body); } }

/* ---------- Device: Eine Meldung — alle Kanäle ---------- */
.pult-grid { display: grid; grid-template-columns: minmax(0, 41fr) minmax(0, 59fr); gap: clamp(16px, 2vw, 30px); align-items: stretch; }
@media (max-width: 1499px) { .pult-grid { grid-template-columns: minmax(0, 47fr) minmax(0, 53fr); } }
@media (min-width: 900px) and (max-height: 760px) { .fld { padding: 2px 0; } .fld__in { min-height: 34px; padding-top: 6px; padding-bottom: 6px; } .meldung .h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); } .pult { padding-top: 12px; padding-bottom: 12px; } }
.pult { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(14px, 2svh, 20px) clamp(16px, 1.6vw, 22px); display: flex; flex-direction: column; }
.pult__top { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pult__k { font: 500 var(--t-cap)/1.2 var(--sans); color: var(--ink-2); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; font-size: 13.5px; color: var(--ink); transition: background-color .2s, border-color .2s, color .2s; }
.seg button:hover { border-color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.fields { display: grid; }
.pult__part--2 { flex: 1; display: flex; flex-direction: column; }
.fld { display: grid; grid-template-columns: 20px 96px minmax(0, 1fr); gap: 0 10px; align-items: start; padding: clamp(2px, .45svh, 5px) 0; }
.fld__ok { width: 20px; height: 20px; margin-top: 8px; border-radius: 50%; border: 1.5px solid #b9b5ab; background: #fff; transition: background-color .25s, border-color .25s; }
.fld.is-ok .fld__ok { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3l3 3 6-6.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.fld.is-err .fld__ok { border-color: var(--err); }
.fld__ok--opt { border-style: dashed; }
.fld__l { padding-top: 9px; font: 500 13px/1.25 var(--sans); color: var(--ink-2); }
.fld__c { min-width: 0; }
.fld__in { width: 100%; min-height: 36px; padding: 7px 12px; border: 1px solid transparent; border-radius: var(--r-md); background: var(--paper); font-size: 15px; line-height: 1.35; transition: background-color .2s, border-color .2s; }
.fld__in:hover { background: #efebe2; }
.fld__in:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.fld__in--t { font: 600 16.5px/1.3 var(--serif); }
.fld__in--s { font-size: 14px; line-height: 1.4; margin-top: 4px; }
.fld__in--a { resize: none; display: block; overflow: hidden; }
.fld__in--d { width: 106px; flex: none; font-variant-numeric: tabular-nums; }
.fld__in--sel { width: auto; flex: none; padding-right: 6px; }
.fld__row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fld__dash { color: var(--ink-3); }
.fld__h { font-size: 12.5px; line-height: 1.35; color: var(--ink-2); margin-top: 3px; }
.fld__h:empty { display: none; }
.fld.is-err .fld__h { color: var(--err); }
.chk { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; min-height: 36px; }
.fld__row .chk { margin-left: 4px; }
.chk input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.chk--block { display: flex; margin-top: 10px; }
.zeiten { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding-top: 5px; }
.zplace { font-size: 13px; color: var(--ink-2); margin-right: 2px; }
.zchip { display: inline-flex; align-items: center; gap: 2px; padding: 1px 2px 1px 9px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 12.5px; white-space: nowrap; }
.zchip button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); font-size: 15px; line-height: 1; }
.zchip button:hover { background: var(--paper-2); color: var(--ink); }
.zchip--add { background: transparent; border-style: dashed; padding: 0; }
.zchip--add button { width: auto; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; color: var(--accent); }
.zadd { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.pult__det { margin-top: 6px; display: grid; gap: 4px; }
.pult__det .fld__l { padding: 0; }
.pult__detbtn { font-size: 13.5px; }
.fld__add { display: block; margin-top: 3px; font-size: 13px; text-align: left; }
.pult__det textarea { resize: vertical; font-size: 14px; }
.pult__go { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.pult__msg { font-size: 13.5px; color: var(--ink-2); flex: 1 1 100%; }
.pult__msg:empty { display: none; }
.pult__msg.is-err { color: var(--err); }
.pult__msg.is-ok { color: var(--ok-d); }
/* desktop: the message sits beside the button, so the screen does not move when it appears */
@media (min-width: 900px) { .pult__go { flex-wrap: nowrap; } .pult__msg { flex: 1 1 auto; min-width: 0; line-height: 1.35; } }
.pult__go .btn, .pult__go .pult__detbtn { flex: none; } /* the button never shrinks below its label (textcheck 1024×768, 06.12.) */

.stage { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
.rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
/* channel tiles: a ring like the form's field checks; it turns into a green check when the channel has its output */
.ch { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 1px 8px; padding: 9px 36px 9px 14px; align-content: start; text-align: left; background: rgba(255, 255, 255, .55); border: 1px solid var(--line); border-radius: var(--r-md); transition: background-color .25s, border-color .2s, box-shadow .2s; }
.ch::after { content: ''; position: absolute; top: 9px; right: 10px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #b9b5ab; background: transparent; transition: background-color .25s, border-color .25s; }
.ch:hover { background: #fff; }
.ch[aria-selected="true"] { background: #fff; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ch.is-done { background: #fff; }
.ch.is-done::after { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3l3 3 6-6.6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; animation: chtick .45s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes chtick { from { transform: scale(.4); } to { transform: none; } }
.ch__n { font: 600 14px/1.25 var(--sans); }
.ch__p { font-size: 12.5px; line-height: 1.35; color: var(--ink-2); min-height: 1.35em; overflow-wrap: anywhere; }
.ch__s { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; line-height: 18px; color: var(--ink-3); white-space: nowrap; min-height: 18px; }
.ch__s:empty { display: none; }
.ch__s.is-done { color: var(--ok-d); }
.ch.is-pulse { animation: chpulse .9s ease-out; }
@keyframes chpulse { 0% { box-shadow: 0 0 0 0 rgba(0, 133, 66, .35); } 100% { box-shadow: 0 0 0 10px rgba(0, 133, 66, 0); } }
.ch.is-pulse[aria-selected="true"] { animation: chpulse-sel .9s ease-out; }
@keyframes chpulse-sel { 0% { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 0 rgba(0, 133, 66, .35); } 100% { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 10px rgba(0, 133, 66, 0); } }
/* «Veröffentlichen» pressed by the demo run */
.btn.is-press { transform: scale(.96); background: var(--accent-d); }
.view { position: relative; flex: 1 1 auto; min-height: 360px; border-radius: var(--r-lg); background: #dcd7cb; overflow: hidden; }
.out { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 28px); padding: clamp(12px, 2svh, 22px); }
.out[hidden] { display: none; }
.out.is-in { animation: outin .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes outin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.out__side { display: flex; flex-direction: column; gap: 10px; max-width: 300px; min-width: 0; }
.out__side p { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.out__side .out__lab { font: 500 13px var(--sans); color: var(--ink); }
.out__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.fit { position: relative; flex: none; }
.fit > .sheet, .fit > .phone, .fit > .mail, .fit > .browser, .fit > .stat-card { position: absolute; left: 0; top: 0; transform: scale(var(--k, .5)); transform-origin: 0 0; }

/* -- the real-looking outputs -- */
.sheet { width: 794px; height: 1123px; background: #fff; color: var(--ink); box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 24px 50px -20px rgba(0, 0, 0, .35); overflow: hidden; }
.aus { padding: 64px 72px 56px; display: flex; flex-direction: column; }
.aus__hd { display: flex; align-items: center; gap: 20px; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.aus__hd svg { width: 66px; height: 80px; }
.aus__hd b { display: block; font: 700 34px/1.05 var(--serif); }
.aus__hd span { font-size: 15px; color: var(--ink-2); }
.aus__kick { margin-top: 38px; font: 500 19px var(--sans); color: var(--accent); }
.aus__t { margin-top: 8px; font: 700 58px/1.04 var(--serif); letter-spacing: -.01em; }
.aus__lead { margin-top: 22px; font: 400 24px/1.42 var(--sans); }
.aus__det { margin-top: 14px; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.aus__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 36px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.aus__facts dt { font-size: 15px; color: var(--ink-2); }
.aus__facts dd { margin: 2px 0 0; font: 600 21px/1.3 var(--sans); }
.aus__tab { margin-top: 26px; border-collapse: collapse; width: 100%; font-size: 18px; }
.aus__tab td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.aus__tab td:last-child { text-align: right; font-weight: 600; }
.aus__ft { margin-top: auto; display: flex; align-items: flex-end; gap: 22px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.aus__qr { width: 104px; height: 104px; flex: none; }
.aus__qr svg, .aus__qr img { width: 100%; height: 100%; }
.aus__ft p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.aus__ft b { color: var(--ink); }
.muster { font-size: 12px !important; color: #66645d !important; margin-top: 6px; }

.ib { padding: 46px 56px 40px; display: flex; flex-direction: column; font-size: 15.5px; line-height: 1.45; }
.ib__mast { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #333; }
.ib__logo { font: 700 54px/1 var(--sans); letter-spacing: -.02em; color: var(--accent); }
.ib__logo span { color: #f2c500; }
.ib__mast svg { width: 64px; height: 78px; }
.ib__sub { text-align: center; padding: 10px 0; border-bottom: 1px solid #333; font-size: 15px; }
.ib__cols { columns: 2; column-gap: 34px; margin-top: 18px; flex: 1; }
.ib__sec { font: 700 19px var(--sans); border-bottom: 1px solid #333; padding-bottom: 3px; margin-bottom: 8px; break-after: avoid; }
.ib__it { break-inside: avoid; margin-bottom: 16px; padding: 6px 8px; margin-left: -8px; margin-right: -8px; border-radius: 3px; }
.ib__it h4 { font: 700 16px/1.3 var(--sans); margin-bottom: 2px; }
.ib__it.is-new { background: var(--accent-t); box-shadow: inset 3px 0 0 var(--accent); }
.ib__ft { display: grid; grid-template-columns: 1fr 1fr auto; gap: 18px; padding-top: 12px; border-top: 1px solid #333; font-size: 11.5px; line-height: 1.4; }

.mail { width: 640px; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .35); }
.mail__meta { padding: 14px 22px; background: #f3f2ee; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.mail__meta b { color: var(--ink); font-weight: 600; }
.mail__body { padding: 26px 40px 30px; }
.mail__mast { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mail__mast svg { width: 34px; height: 42px; }
.mail__mast b { font: 700 20px/1.1 var(--serif); display: block; }
.mail__mast span { font-size: 13px; color: var(--ink-2); }
.mail__img { display: block; width: 100%; height: 120px; object-fit: cover; margin-top: 18px; border-radius: 3px; }
.mail__t { margin-top: 18px; font: 700 30px/1.12 var(--serif); }
.mail__lead { margin-top: 10px; font-size: 17px; line-height: 1.5; }
.mail__det { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.mail__facts { margin-top: 14px; border-collapse: collapse; width: 100%; font-size: 15px; }
.mail__facts th { text-align: left; font-weight: 400; color: var(--ink-2); padding: 6px 14px 6px 0; vertical-align: top; width: 34%; border-top: 1px solid var(--line); }
.mail__facts td { padding: 6px 0; border-top: 1px solid var(--line); font-weight: 500; }
.mail__btn { display: inline-block; margin-top: 18px; padding: 12px 20px; background: var(--accent); color: #fff; border-radius: 4px; font-weight: 500; font-size: 15px; }
.mail__ft { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

.phone { width: 300px; height: 610px; border-radius: 44px; background: #1e1e1e; padding: 11px; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .45); }
.phone__scr { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #2b3a4a url(../img/hero-800.webp) 55% 40% / cover; }
.phone__scr::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 32, .35), rgba(10, 20, 32, .55)); }
.phone__time { position: relative; text-align: center; color: #fff; padding-top: 44px; }
.phone__time b { display: block; font: 300 64px/1 var(--sans); letter-spacing: -.02em; }
.phone__time span { font-size: 14px; opacity: .9; }
.notif { position: relative; margin: 14px 10px 0; padding: 11px 12px; border-radius: 18px; background: rgba(246, 244, 239, .93); color: var(--ink); }
.notif + .notif { margin-top: 8px; }
.notif__hd { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink-2); margin-bottom: 4px; }
.notif__hd svg { width: 17px; height: 21px; }
.notif__hd i { font-style: normal; margin-left: auto; }
.notif__hd .wa { width: 17px; height: 17px; border-radius: 5px; background: #25a35a; flex: none; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 700; }
.notif p { font-size: 13px; line-height: 1.38; }
.notif b { font-weight: 600; }
.copybox { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 18px; font-size: 14px; line-height: 1.5; }
.copybox__meta { display: flex; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.copybox__meta .is-ok { color: var(--ok-d); }

.browser { width: 720px; background: var(--paper); border-radius: 8px; overflow: hidden; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .35); }
.browser__bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #e6e2d8; font-size: 13px; color: var(--ink-2); }
.browser__url { flex: 1; padding: 5px 12px; background: #fff; border-radius: 999px; }
.browser__pg { padding: 22px 28px 26px; }
.browser__h { display: flex; align-items: center; gap: 10px; font: 700 26px var(--serif); margin-bottom: 12px; }
.browser__h svg { width: 26px; height: 32px; }

.stat-card { width: 560px; background: #fff; border-radius: var(--r-lg); padding: 22px 26px; }
.stat-card__row { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.stat-card__row:last-of-type { border-bottom: 0; }
.stat-card__row .dot { margin-top: 7px; }
.stat-card__k { font-size: 13px; color: var(--ink-2); }
.stat-card__v { font: 600 20px/1.25 var(--serif); }
.stat-card__s { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }
.stat-card__where { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); }
.stat-card__where span::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3l3 3 6-6.6' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.stat-card__chg { margin-top: 12px; padding: 10px 14px; background: var(--paper); border-radius: var(--r-md); font-size: 13.5px; }

/* ---------- News item (shared by the list and the website output) ---------- */
.nitem { border-bottom: 1px solid var(--line); }
.nitem__btn { display: grid; grid-template-columns: 92px minmax(0, 1fr) 24px; gap: 4px 14px; align-items: baseline; width: 100%; padding: 13px 0; border: 0; background: none; text-align: left; }
.nitem__d { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.nitem__t { font: 600 clamp(1.02rem, 1.2vw, 1.15rem)/1.3 var(--serif); }
.nitem__r { display: block; font: 500 12.5px var(--sans); color: var(--accent); margin-bottom: 2px; }
.nitem__pm { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 14px; line-height: 1; color: var(--ink-2); align-self: center; transition: transform .25s; }
.nitem__btn[aria-expanded="true"] .nitem__pm { transform: rotate(45deg); }
.nitem__btn:hover .nitem__t { color: var(--accent-d); }
.nitem__body { padding: 0 0 16px 106px; font-size: var(--t-small); color: var(--ink-2); }
.nitem__body[hidden] { display: none; }
.nitem__facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin-top: 8px; color: var(--ink); }
.nitem__facts dt { color: var(--ink-2); }
.nitem__facts dd { margin: 0; }
.nitem.is-new { animation: newflash 2.6s ease-out; }
@keyframes newflash { 0%, 30% { background: var(--accent-t); } 100% { background: transparent; } }
.badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #fff; font: 500 11.5px/1.6 var(--sans); vertical-align: .15em; }

/* ---------- Aktuelles ---------- */
.akt-grid { display: grid; grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); gap: clamp(22px, 4vw, 64px); }
.news { margin-top: clamp(12px, 2svh, 22px); border-top: 1px solid var(--line-2); }
.akt-ev .h3 { margin-bottom: 10px; }
/* the Münster on top of the events: most of them happen on the Kirchplatz beside it */
.akt-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; margin-bottom: clamp(12px, 2svh, 20px); background: #cfd5da; }
.akt-photo img { width: 100%; height: clamp(120px, 24svh, 225px); object-fit: cover; object-position: 50% 60%; }
.akt-photo figcaption, .photo-cap { position: absolute; left: 12px; bottom: 12px; padding: 3px 12px; border-radius: var(--r-pill); background: rgba(246, 244, 239, .92); color: var(--ink); font-size: 12.5px; line-height: 1.5; }
.evs { border-top: 1px solid var(--line-2); }
.ev { border-bottom: 1px solid var(--line); }
.ev__btn { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; padding: 9px 0; border: 0; background: none; text-align: left; }
.ev__date { text-align: center; line-height: 1; }
.ev__date b { display: block; font: 700 24px/1 var(--serif); }
.ev__date small { font-size: 12px; color: var(--ink-2); }
.ev__t { font-weight: 500; font-size: 15px; line-height: 1.3; }
.ev__m { display: block; font-size: 13px; color: var(--ink-2); }
.ev__btn:hover .ev__t { color: var(--accent-d); }
.ev__more { padding: 0 0 12px 64px; font-size: 13.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.ev__more[hidden] { display: none; }
.ev.is-today .ev__date b { color: var(--accent); }

/* ---------- Bürgerservice ---------- */
.bs-grid { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: clamp(22px, 4vw, 64px); align-items: start; }
.hkz { margin-top: clamp(12px, 2.2svh, 24px); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(14px, 2.2svh, 22px) clamp(18px, 2vw, 28px); background: var(--white); }
.hkz__steps { display: flex; gap: 6px; margin-bottom: 14px; }
.hkz__steps li { display: flex; align-items: center; gap: 8px; flex: 1; padding-bottom: 8px; border-bottom: 2px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.hkz__steps span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 12px; }
.hkz__steps li.is-on { border-color: var(--accent); color: var(--ink); }
.hkz__steps li.is-on span { background: var(--accent); border-color: var(--accent); color: #fff; }
.hkz__steps li.is-done { border-color: var(--ok); }
.hkz__steps li.is-done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.hkz__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.hkz__row--chk { border-bottom: 0; }
.hkz__l { font-size: 15px; }
.step { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--paper); overflow: hidden; }
.step__b { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; color: var(--accent); }
.step__b:hover { background: var(--accent-t); }
.step__b:disabled { color: #b9b5ab; pointer-events: none; }
.step__v { min-width: 36px; text-align: center; font: 600 18px var(--serif); }
.step--s .step__b { width: 38px; height: 38px; }
.money { display: flex; align-items: center; gap: 8px; }
.money .fld__in { width: 150px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-md); text-align: right; font-size: 16px; }
.money span { font-size: 14px; color: var(--ink-2); }
.hkz__res { min-height: 70px; padding: 12px 0 4px; }
.hkz__verdict { display: flex; gap: 12px; align-items: flex-start; }
.hkz__verdict .big { font: 700 clamp(1.6rem, 2.4vw, 2.1rem)/1 var(--serif); color: var(--ok-d); white-space: nowrap; }
.hkz__verdict.is-no .big { color: var(--ink-2); }
.hkz__verdict p { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.hkz__nav { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 10px; }
.hkz__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.hkz__f { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.hkz__f .fld__in { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-md); font-size: 16px; color: var(--ink); }
.hkz__f .fld__in[aria-invalid="true"] { border-color: var(--err); }
.hkz__f--file input { font-size: 14px; padding: 8px 0; }
.hkz__err { color: var(--err); font-size: 13.5px; min-height: 0; margin-top: 6px; }
.hkz__err:empty { display: none; }
.hkz__sum { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 14.5px; margin-bottom: 12px; }
.hkz__sum dt { color: var(--ink-2); }
.hkz__sum dd { margin: 0; font-weight: 500; }
.hkz__done { text-align: left; }
.receipt { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.receipt__k { display: flex; align-items: center; gap: 10px; font: 600 18px/1.3 var(--serif); color: var(--ok-d); }
.receipt__k::before { content: ''; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3l3 3 6-6.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.receipt__az { margin-top: 10px; font: 700 clamp(1.5rem, 2.2vw, 1.9rem)/1.1 var(--serif); letter-spacing: .01em; }
.receipt dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin-top: 10px; font-size: 14px; }
.receipt dt { color: var(--ink-2); }
.receipt dd { margin: 0; }
.receipt__demo { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
/* Heizkostenzuschuss: the two numbers a household needs, set large */
.figs { display: flex; flex-wrap: wrap; gap: 8px clamp(22px, 3vw, 48px); margin-top: clamp(10px, 1.8svh, 18px); }
.fig b { display: block; font: 700 clamp(1.8rem, min(2.9vw, 5svh), 2.75rem)/1 var(--serif); letter-spacing: -.012em; white-space: nowrap; }
.fig span { display: block; margin-top: 5px; font-size: var(--t-small); color: var(--ink-2); }
.fig + .fig { padding-left: clamp(22px, 3vw, 48px); border-left: 1px solid var(--line-2); }
.bs-side .h3 { margin-top: 4px; }
.bs-side__s { font-size: var(--t-small); color: var(--ink-2); margin-top: 6px; }
.forms { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 14px; border-top: 1px solid var(--line-2); }
.forms button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 14px; line-height: 1.3; }
.forms button::after { content: '+'; flex: none; color: var(--accent); font-size: 17px; }
.forms button:hover, .forms button[aria-expanded="true"] { color: var(--accent-d); }
.forms button[aria-expanded="true"]::after { content: '−'; }
.form-pop { margin: 8px 0 10px; padding: 16px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); font-size: 14px; }
.form-pop-li { grid-column: 1 / -1; flex-basis: 100%; }
.form-pop-li:not(:has(.form-pop:not([hidden]))) { display: none; }
.is-miss { animation: miss 1.4s ease-out; }
@keyframes miss { 0%, 40% { box-shadow: 0 0 0 3px rgba(163, 38, 28, .45); } 100% { box-shadow: 0 0 0 3px rgba(163, 38, 28, 0); } }
.nl__row:has(.fld__in[aria-invalid="true"]) { border-color: var(--err); }
.form-pop h4 { font: 600 17px var(--serif); margin-bottom: 6px; }
.form-pop ol { counter-reset: s; display: grid; gap: 4px; margin: 6px 0 8px; }
.form-pop li { counter-increment: s; display: grid; grid-template-columns: 22px 1fr; gap: 6px; }
.form-pop li::before { content: counter(s); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11.5px; }
.form-pop p { color: var(--ink-2); }

/* ---------- Termin ---------- */
.ter-grid { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: clamp(22px, 4vw, 64px); align-items: start; }
.ter { margin-top: clamp(12px, 2.2svh, 24px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(14px, 2.2svh, 22px) clamp(16px, 2vw, 26px); }
.ter__note { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); min-height: 2.8em; }
.ter__k { margin-top: 10px; font: 500 var(--t-cap) var(--sans); color: var(--ink-2); }
.days { display: flex; gap: 6px; overflow-x: auto; padding: 6px 2px 4px; scrollbar-width: thin; }
.day { flex: none; width: 62px; padding: 8px 0; border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff; text-align: center; line-height: 1.1; }
.day small { display: block; font-size: 12px; color: var(--ink-2); }
.day b { display: block; font: 700 20px var(--serif); margin-top: 2px; }
.day:hover { border-color: var(--ink); }
.day[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.day[aria-checked="true"] small { color: rgba(246, 244, 239, .8); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; padding-top: 6px; min-height: 92px; align-content: start; }
.slot { min-height: 40px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff; font-size: 14px; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--ink); }
.slot[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.slot[disabled] { color: #b9b5ab; background: var(--paper); text-decoration: line-through; pointer-events: none; }
.ter__who { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 12px; }
.ter__who .fld__in { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-md); font-size: 16px; }
.ter__msg { margin-top: 8px; font-size: 14px; min-height: 1.4em; }
.ter__msg.is-err { color: var(--err); }
.ticket { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 20px; border: 1px solid var(--ok); border-radius: var(--r-lg); background: var(--ok-t); }
.ticket b { font: 600 17px var(--serif); }
/* Bürgersprechstunde: the Gemeindeamt where it happens, the date large */
.bgm { margin-bottom: clamp(16px, 2.6svh, 26px); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.bgm__photo img { width: 100%; height: clamp(86px, 15svh, 160px); object-fit: cover; object-position: 50% 88%; }
@media (min-width: 900px) {
  .bgm { display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); }
  .bgm__photo { position: relative; min-height: 100%; }
  .bgm__photo img { position: absolute; inset: 0; height: 100%; object-position: 60% 92%; }
}
.bgm__txt { padding: clamp(12px, 1.8svh, 18px) 20px clamp(14px, 2svh, 18px); }
.bgm__k { font-size: var(--t-small); color: var(--ink-2); line-height: 1.4; }
.bgm__d { margin: 4px 0 3px; font: 700 clamp(1.8rem, min(2.9vw, 5svh), 2.75rem)/1 var(--serif); letter-spacing: -.012em; }
.bgm__go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px; font-size: var(--t-small); }
.bgm__go a { font-variant-numeric: tabular-nums; white-space: nowrap; }
.slot.is-hint { animation: hint 1.5s ease-out; }
@keyframes hint { 0%, 45% { box-shadow: 0 0 0 3px rgba(0, 103, 178, .45); } 100% { box-shadow: 0 0 0 3px rgba(0, 103, 178, 0); } }
.deps { margin-top: 12px; border-top: 1px solid var(--line-2); }
.deps li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.deps b { font: 600 16px/1.3 var(--serif); }
.deps span { grid-column: 1; font-size: 13.5px; color: var(--ink-2); }
.deps a { grid-row: 1 / span 2; grid-column: 2; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* desktop: the departments as a two-column directory, so the Sprechstunde card fits above them */
@media (min-width: 900px) {
  .deps { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .deps li { grid-template-columns: minmax(0, 1fr); gap: 1px; padding: 9px 0; align-content: start; }
  .deps a { grid-row: auto; grid-column: 1; justify-self: start; margin-top: 2px; }
}

/* ---------- Gemeindevertretung + Kanäle ---------- */
.gv-grid { display: grid; grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); gap: clamp(22px, 4vw, 64px); align-items: start; }
.sess { margin-top: clamp(12px, 2svh, 22px); border-top: 1px solid var(--line-2); }
.ses { border-bottom: 1px solid var(--line); }
.ses__btn { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 2px 14px; width: 100%; padding: 12px 0; border: 0; background: none; text-align: left; align-items: center; }
.ses__t { font: 600 clamp(1.05rem, 1.3vw, 1.2rem)/1.3 var(--serif); }
.ses__m { grid-column: 1; font-size: 13px; color: var(--ink-2); }
.ses__btn .nitem__pm { grid-row: 1 / span 2; grid-column: 2; }
.ses__btn[aria-expanded="true"] .nitem__pm { transform: rotate(45deg); }
.ses__body { padding: 0 0 14px; }
.ses__body[hidden] { display: none; }
.ses__body ol { display: grid; gap: 7px; }
.ses__body li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 14.5px; line-height: 1.45; }
.ses__body li::before { content: ''; width: 8px; height: 8px; margin: 7px 0 0 6px; border-radius: 50%; background: var(--accent); }
.ses__foot { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.kan { margin-top: 12px; border-top: 1px solid var(--line-2); }
.kan li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kan b { font-weight: 600; font-size: 15px; }
.kan span { font-size: 13px; color: var(--ink-2); }
.kan i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-size: 12.5px; color: var(--ink-2); text-align: right; }
.nl { margin-top: 14px; padding: 16px 20px 14px; background: var(--paper); border-radius: var(--r-lg); }
.nl__k { font: 600 16px var(--serif); }
.nl__topics { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.tchip { position: relative; display: inline-flex; }
.tchip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tchip span { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; background: #fff; transition: background-color .2s, color .2s; }
.tchip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tchip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
/* newsletter: address and button are one capsule, like the street search */
.nl__row { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: #fff; transition: border-color .2s, box-shadow .2s; }
.nl__row:focus-within { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.nl__row .fld__in { flex: 1; min-width: 0; min-height: 42px; padding: 0 8px 0 14px; background: transparent; border: 0; border-radius: var(--r-pill); font-size: 16px; }
.nl__row .fld__in:focus { box-shadow: none; border: 0; background: transparent; }
.nl__row .btn { min-height: 42px; }
.nl__msg { font-size: 13.5px; margin-top: 8px; min-height: 1.4em; }
.nl__msg.is-ok { color: var(--ok-d); }
.nl__msg.is-err { color: var(--err); }

/* ---------- Leben + Kontakt ---------- */
.ko-grid { display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); gap: clamp(22px, 4vw, 64px); align-items: start; }
.kiga { margin-top: clamp(12px, 2svh, 22px); padding: 16px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.kiga__k { font: 500 var(--t-cap) var(--sans); color: var(--ink-2); }
.kiga__big { font: 700 clamp(1.6rem, 2.4vw, 2.2rem)/1.1 var(--serif); margin-top: 2px; }
.kiga__big b { color: var(--accent); font-weight: inherit; }
.kiga__s { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.einr { margin-top: 12px; border-top: 1px solid var(--line-2); }
.einr li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.einr span { color: var(--ink-2); text-align: right; }
.rh-card { margin-top: 12px; padding: 12px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.rh-card__v { font: 600 17px/1.3 var(--serif); margin-top: 2px; }
.rh-card__s { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
/* Leben: the village itself, wide */
.leben__photo { margin-top: clamp(12px, 2svh, 22px); border-radius: var(--r-lg); overflow: hidden; background: #d6dade; }
.leben__photo img { width: 100%; height: clamp(96px, 20svh, 200px); object-fit: cover; object-position: 45% 62%; }
.leben__photo + .kiga { margin-top: 12px; }
/* Kontakt: the map leads at eye level on desktop, the address first on phones */
@media (min-width: 900px) { .ko { display: flex; flex-direction: column; } .ko .map { order: -2; margin-top: 0; } .ko__top { order: -1; margin-top: 18px; } .ko .rh-card { margin-top: 16px; } }
.ko__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; }
.ko__k { font: 700 19px var(--serif); }
.ko__adr { margin-top: 4px; font-size: 15px; }
.ko__links { margin-top: 6px; font-size: 15px; line-height: 1.6; }
.ko__now { display: flex; gap: 8px; align-items: baseline; margin-top: 8px; font-size: 14px; }
.ko__now .dot { transform: translateY(-1px); }
.hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours th { text-align: left; font-weight: 400; color: var(--ink-2); padding: 5px 10px 5px 0; white-space: nowrap; }
.hours .sh { display: none; }
.hours td { padding: 5px 0; text-align: right; font-variant-numeric: tabular-nums; }
.hours tr + tr th, .hours tr + tr td { border-top: 1px solid var(--line); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--ink); font-weight: 600; }
.hours tr.is-today th::after { content: 'heute'; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: #fff; font: 500 11px/1.6 var(--sans); }
.map { position: relative; margin-top: 14px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.map img { width: 100%; height: clamp(150px, 32svh, 330px); object-fit: cover; object-position: 50% 50%; }
.map__pin { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -22px 0 0 -11px; border-radius: 50% 50% 50% 0; background: var(--accent); transform: rotate(-45deg); box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.map__pin::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.map figcaption { position: absolute; left: 8px; bottom: 6px; font-size: 11px; color: var(--ink-2); background: rgba(255, 255, 255, .85); padding: 1px 8px; border-radius: var(--r-pill); }
.map__go { position: absolute; right: 12px; bottom: 12px; background: #fff; }

/* ---------- Footer, dock, toast, dialogs ---------- */
.ftr { background: var(--ink); color: #ebe8e1; padding: clamp(40px, 7svh, 72px) 0 0; }
.ftr a, .ftr .lnk { color: #fff; }
.ftr__in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px 40px; }
.ftr__brand { display: flex; gap: 16px; align-items: flex-start; font-size: 14.5px; line-height: 1.6; }
.ftr__brand b { font: 700 19px var(--serif); }
.ftr__w { width: 44px; height: 54px; flex: none; }
.ftr__links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: flex-start; font-size: 14.5px; }
.ftr__note { grid-column: 1 / -1; font-size: 13px; color: #c9c5bb; max-width: 80ch; }

.dock { display: none; }
@media (max-width: 899px) {
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border-top: 1px solid var(--line-2); padding-bottom: env(safe-area-inset-bottom); transform: translateY(110%); transition: transform .3s ease; }
  .dock.is-on { transform: none; }
  .dock a { display: grid; place-items: center; min-height: 54px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
  .dock a + a { border-left: 1px solid var(--line); }
  .dock a:last-child { color: var(--accent); }
  main > .sec:last-of-type { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .ftr { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}
.toast { position: fixed; z-index: 120; left: 22px; bottom: 22px; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 10px 10px 10px 22px; background: var(--ink); color: var(--paper); border-radius: var(--r-lg); font-size: 14.5px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); }
.toast[hidden] { display: none; }
.toast .btn { min-height: 36px; padding: 0 14px; background: var(--paper); color: var(--ink); }
.toast .btn { flex: none; }
@media (max-width: 899px) { .toast { bottom: calc(66px + env(safe-area-inset-bottom)); left: 16px; right: 16px; transform: none; max-width: none; justify-content: space-between; } }

dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(20, 20, 20, .5); }
.note { width: min(520px, calc(100vw - 32px)); border-radius: var(--r-lg); background: var(--paper); }
.note__in { padding: 26px 28px 22px; }
.note__h { font: 700 24px/1.2 var(--serif); margin-bottom: 10px; }
.note p { font-size: 15px; margin-bottom: 10px; }
.note__s { font-size: 13.5px !important; color: var(--ink-2); }
.note__go { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.big { width: min(1000px, calc(100vw - 24px)); height: calc(100svh - 24px); max-height: none; border-radius: var(--r-lg); overflow: hidden; background: #d9d4c8; display: none; }
.big[open] { display: flex; flex-direction: column; }
.big__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
.big__t { margin-right: auto; font: 600 16px var(--serif); }
.big__body { flex: 1; min-height: 0; overflow: auto; padding: 18px; }
.big__body .fit { margin: 0 auto; }
#print-root { display: none; }

/* ---------- Phone layouts ---------- */
@media (max-width: 899px) {
  .pult-grid, .akt-grid, .bs-grid, .ter-grid, .gv-grid, .ko-grid { grid-template-columns: minmax(0, 1fr); }
  .pult-grid > *, .akt-grid > *, .bs-grid > *, .ter-grid > *, .gv-grid > *, .ko-grid > * { min-width: 0; }
  .akt-ev, .bs-side, .ter-side, .gv-side, .ko { padding-top: 30px; }
  .view { min-height: 0; height: clamp(330px, 56svh, 470px); flex: none; }
  .rail { display: flex; overflow-x: auto; gap: 6px; scroll-snap-type: x mandatory; padding-bottom: 2px; }
  .ch { flex: 0 0 auto; width: 168px; scroll-snap-align: start; }
  .ch__s:empty { display: block; visibility: hidden; } /* the status line is reserved, so the stage does not move when the checks arrive */
}
@media (max-width: 719px) {
  .fld { grid-template-columns: 20px minmax(0, 1fr); }
  .fld__l { grid-column: 2; padding-top: 0; font-size: 12.5px; }
  .fld__ok { grid-row: 1 / span 2; margin-top: 2px; }
  .fld__c { grid-column: 2; }
  .fld__in { font-size: 16px; min-height: 38px; padding: 6px 8px; }
  .fld__in--t { font-size: 16.5px; }
  .fld__in--s { font-size: 16px; }
  .fld__in--d { width: 112px; }
  .nitem__btn { grid-template-columns: minmax(0, 1fr) 24px; }
  .nitem__d { grid-column: 1; grid-row: 2; }
  .nitem__t { grid-column: 1; grid-row: 1; }
  .nitem__pm { grid-column: 2; grid-row: 1 / span 2; }
  .nitem__body { padding-left: 0; }
  .hkz__grid { grid-template-columns: 1fr; }
  .forms { grid-template-columns: 1fr; }
  .ter__who { grid-template-columns: 1fr 1fr; }
  .ter__who .btn { grid-column: 1 / -1; }
  .ko__cols { grid-template-columns: 1fr; }
  .ftr__in { grid-template-columns: 1fr; }
  .out__side { display: none; }
  .pult__top { flex-wrap: nowrap; }
  .pult__top .pult__k { display: none; }
  .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { flex: none; }
  .fld__row .chk { margin-left: 0; }
  .pult__part--2 { padding-top: 0; }
  .forms { display: flex; flex-wrap: wrap; gap: 6px; border-top: 0; }
  .forms li { flex: none; }
  .forms button { min-height: 36px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; }
  .forms button::after { display: none; }
  .forms button[aria-expanded="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .slots { display: flex; overflow-x: auto; min-height: 0; padding-bottom: 4px; scrollbar-width: thin; }
  .slot { flex: none; width: 68px; }
  .ter__note { min-height: 0; }
  .ko__top { display: block; }
  .sess--rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; border-top: 0; margin: 12px calc(var(--gut) * -1) 0; padding: 0 var(--gut) 6px; scrollbar-width: none; }
  .sess--rail::-webkit-scrollbar { display: none; }
  .sess--rail .ses { flex: 0 0 86%; scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0 14px; background: var(--paper); }
  .sess--rail .ses__btn { cursor: default; display: grid; gap: 2px; margin: 0; font-weight: 400; }
  .sess--rail .nitem__pm { display: none; }
  .sess--rail .ses__body li { font-size: 14px; }
  .gv .lead--s { display: none; }
  .deps li { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 0; }
  .deps b { grid-column: 1; grid-row: 1; font-size: 15px; }
  .deps a { grid-column: 2; grid-row: 1; }
  .deps span { grid-column: 1 / -1; grid-row: 2; font-size: 13px; }
  .bs-side__s { display: none; }
  .forms button { padding: 5px 11px; font-size: 13px; min-height: 34px; }
  .ko__cols { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; }
  .ko__links a { overflow-wrap: anywhere; }
  .ko__adr, .ko__links { font-size: 14px; }
  .ko__now { font-size: 13px; }
  .hours { font-size: 13px; }
  .hours .lg { display: none; }
  .hours .sh { display: inline; }
  .hours tr.is-today th::after { display: none; }
  .einr li { font-size: 13.5px; padding: 6px 0; }
  .kiga { padding: 12px 14px; }
  .seg--ter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .seg--ter button { flex: none; }
  .out { padding: 10px; }
  .out--side-phone .out__side { display: flex; max-width: none; }
}
@media (max-width: 719px) {
  .figs { flex-wrap: nowrap; gap: 0 16px; }
  .fig b, .bgm__d { font-size: clamp(1.4rem, 6.4vw, 1.8rem); }
  .fig + .fig { padding-left: 16px; }
  .fig span { font-size: 13px; }
  .leben__photo img { height: clamp(90px, 16svh, 150px); }
}
@media (max-width: 400px) { .money .fld__in { width: 120px; } .day { width: 56px; } .ko__cols { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .crest__svg, .js .crest__mg, .js .crest__line, .js .con { opacity: 0; }
.js .cw-draw { stroke-dashoffset: 1; }
.no-anim .crest__svg, .no-anim .crest__mg, .no-anim .crest__line, .no-anim .con, .is-static .crest__svg, .is-static .crest__mg, .is-static .crest__line, .is-static .con { opacity: 1 !important; transform: none !important; }
.no-anim .cw-draw, .is-static .cw-draw { stroke-dashoffset: 0 !important; }
.no-anim .reveal, .is-static .reveal { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Print: only the chosen sheet ---------- */
@media print {
  @page { size: A4; margin: 0; }
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing #print-root { display: block !important; }
  body.printing #print-root .sheet { transform: none; box-shadow: none; position: static; width: 210mm; height: 297mm; }
  body { background: #fff; }
}

/* ---------- VCSLV credit (templates/credit/credit.css) ---------- */
/* VCSLV credit — one quiet line under the footer. Takes the footer's colour and font; the mark is vector
   (Onest 700 outlines, no font download). Only the dot carries our terracotta. */
.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;
  /* always a full-width line of its own, even inside a footer grid or flex row */
  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: 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; } }

/* ---------- short phones (Safari with toolbars, ≤ 700 px visible) ---------- */
@media (max-width: 899px) and (max-height: 700px) {
  :root { --h2s: clamp(1.65rem, 7vw, 1.95rem); }
  .hkz { padding: 12px 14px; margin-top: 10px; }
  .hkz__row { padding: 6px 0; }
  .hkz__res { min-height: 58px; padding-top: 8px; }
  .ter { padding: 12px 14px; margin-top: 10px; }
  .ter__note { font-size: 12.5px; margin-top: 6px; }
  .ter__k { margin-top: 6px; }
  .sess--rail .ses__body li { font-size: 13.5px; line-height: 1.4; }
  .sess--rail .ses__btn { padding: 10px 0; }
  .sess--rail .ses__foot { margin-top: 6px; }
  .days { padding-top: 4px; }
  .day { padding: 6px 0; }
  .ter__who { margin-top: 8px; }
  .leben__photo img { height: clamp(76px, 13svh, 110px); }
  .figs { margin-top: 6px; }
  .fig b { font-size: clamp(1.3rem, 6vw, 1.55rem); }
  .fig span { margin-top: 2px; font-size: 12.5px; }
}

/* inner screens (form, stage, side columns) land below the fixed header when scrolled into view */
main .sec [data-screen] { scroll-margin-top: calc(var(--hdr-h) + 10px); }

/* short desktops (1280×720, 1440×790): the Termin and Kanäle columns lose a little air, not content */
@media (min-width: 900px) and (max-height: 760px) {
  .deps li { padding: 6px 0; }
  .bgm__txt { padding: 10px 18px 12px; }
  .bgm__go { margin-top: 8px; }
  .kan li { padding: 7px 0; }
  .nl { padding: 12px 18px 10px; }
}
