/* Heimatfreunde-App. Farben und Schrift wie die Website „Dorfbrett“. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("../../../../themes/heimatfreunde-dorfbrett/assets/fonts/archivo-latin-wdth-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: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("../../../../themes/heimatfreunde-dorfbrett/assets/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2"); 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; }

/* Layout: Handy-Rahmen mit Bildschirm-Übersicht daneben (Computer), auf dem Handy die App selbst in voller Breite.
   Farben und Schrift wie die Website „Dorfbrett“: Feldgrün, Lindgrün, Backs-Rot, Termin-Blau, Archivo breit für Überschriften. */
:root {
  --bg: #e7ede1; --surface: #ffffff; --surface-2: #eef2ea; --ink: #122018; --muted: #3e4b42; --line: #c5cfbf;
  --green: #2f5a1f; --green-mid: #3f7a2a; --green-soft: #e3f0c8; --lime: #c7e27a; --green-ink: #2f5a1f;
  --blue: #0d6f82; --blue-soft: #d4eef2; --blue-ink: #0d6f82; --red: #b0281f; --red-soft: #f8dcd6; --red-ink: #b0281f;
  --amber: #c07f0c; --amber-soft: #fbedd0; --on-accent: #ffffff;
  --stage: #d8e1d1; --frame: #122018;
  --card: 0 0 0 1px rgba(18, 32, 24, .06), 0 10px 24px -16px rgba(18, 32, 24, .45);
  --lift: 0 0 0 1px rgba(18, 32, 24, .08), 0 18px 36px -18px rgba(18, 32, 24, .55);
  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --text: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --r: 18px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f1712; --surface: #17221a; --surface-2: #213025; --ink: #e8f0e3; --muted: #a9bba9; --line: #2f4133;
  --green-soft: #22351f; --green-ink: #b5d66e; --blue-soft: #12323a; --blue-ink: #6fc9da; --red-soft: #3a1e1b; --red-ink: #f29a90;
  --amber-soft: #3a2d12; --stage: #0a100c; --frame: #000000;
  --card: 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 24px -16px rgba(0, 0, 0, .7);
  --lift: 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 36px -18px rgba(0, 0, 0, .85);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0f1712; --surface: #17221a; --surface-2: #213025; --ink: #e8f0e3; --muted: #a9bba9; --line: #2f4133;
  --green-soft: #22351f; --green-ink: #b5d66e; --blue-soft: #12323a; --blue-ink: #6fc9da; --red-soft: #3a1e1b; --red-ink: #f29a90;
  --amber-soft: #3a2d12; --stage: #0a100c; --frame: #000000;
  --card: 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 24px -16px rgba(0, 0, 0, .7);
  --lift: 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 36px -18px rgba(0, 0, 0, .85);
  color-scheme: dark; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--stage); color: var(--ink); font-family: var(--text); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 2px; border-radius: 10px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }

/* Kopf der App */
.apphead { flex: 0 0 auto; background: var(--hdr-bg, var(--green)); color: #fff; padding: 8px 18px 14px; display: flex; align-items: center; gap: 10px; }
.apphead .logo { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.apphead .logo img { width: 32px; height: 32px; object-fit: contain; }
.apphead .t { flex: 1; min-width: 0; }
.apphead .t b { display: block; font-family: var(--display); font-variation-settings: 'wdth' 112; font-size: 18px; line-height: 1.1; }
.apphead .t span { font-size: 12px; color: rgba(255, 255, 255, .78); }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; position: relative; transition: transform 140ms ease-out, background-color 160ms ease; }
.iconbtn:active { transform: scale(.94); }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn .dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--hdr-bg, var(--green)); }
.back { background: none; border: 0; color: #fff; display: inline-flex; align-items: center; gap: 4px; padding: 8px 6px 8px 0; cursor: pointer; font-weight: 600; }
.back svg { width: 22px; height: 22px; }

.view { flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.view::-webkit-scrollbar { display: none; }
.pad { padding: 18px 16px 28px; display: grid; gap: 22px; align-content: start; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sec-h h2 { font-size: 20px; font-variation-settings: 'wdth' 116; font-weight: 800; }
.sec-h button { background: none; border: 0; color: var(--green-ink); font-weight: 600; cursor: pointer; padding: 4px 0; }

/* Kalenderblatt wie auf der Website */
.blatt { flex: 0 0 auto; width: 58px; border-radius: 12px; overflow: hidden; background: #fff; text-align: center; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); color: #122018; }
.blatt i { display: block; font-style: normal; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 0 2px; }
.blatt b { display: block; font-family: var(--display); font-variation-settings: 'wdth' 120; font-weight: 900; font-size: 26px; line-height: 1.05; padding-top: 3px; }
.blatt span { display: block; font-size: 10.5px; color: #4c5a50; padding-bottom: 5px; }
.blatt.big { width: 76px; } .blatt.big b { font-size: 36px; } .blatt.big i { font-size: 12px; }

/* Startkarte */
.hero { position: relative; border-radius: 22px; overflow: hidden; color: #fff; background: #16261a; box-shadow: var(--lift); }
.hero .pic { position: relative; }
.hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.hero .ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 38, 26, 0) 30%, rgba(22, 38, 26, .7) 70%, #16261a 100%); }
.hero .in { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px 6px; display: flex; gap: 12px; align-items: flex-end; }
.hero .k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lime); }
.hero h3 { font-size: 21px; line-height: 1.12; font-variation-settings: 'wdth' 116; font-weight: 800; }
.hero .meta { font-size: 13px; color: rgba(255, 255, 255, .85); margin-top: 3px; }
.hero-cta { display: flex; gap: 8px; padding: 12px 16px 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 99px; padding: 12px 18px; font-weight: 700; cursor: pointer; transition: transform 140ms ease-out, background-color 160ms ease, box-shadow 160ms ease; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-lime { background: var(--lime); color: #1f3f14; }
.btn-green { background: var(--green); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-line { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-wide { width: 100%; }

.ki { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(18, 32, 24, .72); color: #fff; backdrop-filter: blur(4px); }

/* Kacheln */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { border: 0; text-align: left; background: var(--surface); border-radius: 16px; padding: 14px; box-shadow: var(--card); display: grid; gap: 8px; cursor: pointer; transition: transform 140ms ease-out, box-shadow 160ms ease; }
.tile:active { transform: scale(.97); }
.tile .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.tile .ic svg { width: 20px; height: 20px; }
.tile b { font-size: 14.5px; line-height: 1.2; }
.tile small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.t-red .ic { background: var(--red-soft); color: var(--red-ink); }
.t-blue .ic { background: var(--blue-soft); color: var(--blue-ink); }
.t-green .ic { background: var(--green-soft); color: var(--green-ink); }
.t-amber .ic { background: var(--amber-soft); color: var(--amber); }

/* Push-Hinweis */
.pushcard { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--green-soft); }
.pushcard .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--green); color: var(--lime); display: grid; place-items: center; flex: 0 0 auto; }
.pushcard .ic svg { width: 22px; height: 22px; }
.pushcard b { display: block; font-size: 14.5px; }
.pushcard small { color: var(--muted); font-size: 12.5px; }
.pushcard .btn { padding: 9px 14px; font-size: 13px; margin-left: auto; flex: 0 0 auto; }

/* Liste der Neuigkeiten (quer) */
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding-inline: 16px; padding-bottom: 6px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.news { scroll-snap-align: start; border: 0; padding: 0; text-align: left; background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: var(--card); cursor: pointer; display: grid; position: relative; }
.news img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.news .b { padding: 10px 12px 12px; display: grid; gap: 3px; }
.news time { font-size: 12px; color: var(--muted); }
.news b { font-size: 14.5px; line-height: 1.25; }

/* Terminliste */
.chips { display: flex; gap: 8px; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 0; border-radius: 99px; padding: 8px 13px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.chip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.month { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 4px 2px -8px; }
.ev { border: 0; width: 100%; text-align: left; display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--surface); border-radius: 16px; box-shadow: var(--card); cursor: pointer; position: relative; overflow: hidden; transition: transform 140ms ease-out; }
.ev:active { transform: scale(.98); }
.ev::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--green-mid)); }
.ev .m { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ev b { font-size: 15px; line-height: 1.22; }
.ev .meta { font-size: 12.5px; color: var(--muted); }
.ev svg.chev { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; width: fit-content; }
.p-free { background: var(--green-soft); color: var(--green-ink); }
.p-paid { background: var(--blue-soft); color: var(--blue-ink); }
.p-none { background: var(--surface-2); color: var(--muted); }
.p-ki { background: var(--surface-2); color: var(--muted); }
.c-kurs { --c: #0d6f82; } .c-tradition { --c: #c07f0c; } .c-fest { --c: #b0281f; } .c-verein { --c: #5b6b60; } .c-natur { --c: #3f7a2a; }

/* Termin im Detail */
.detail-img { position: relative; }
.detail-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.detail { margin-top: -28px; position: relative; background: var(--bg); border-radius: 26px 26px 0 0; padding: 18px 16px 120px; display: grid; gap: 16px; }
.detail h1 { font-size: 26px; line-height: 1.08; font-variation-settings: 'wdth' 118; font-weight: 800; }
.facts { display: grid; gap: 0; background: var(--surface); border-radius: 16px; box-shadow: var(--card); }
.facts div { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--surface-2); }
.facts div:first-child { border-top: 0; }
.facts svg { width: 20px; height: 20px; color: var(--green-ink); flex: 0 0 auto; }
.facts small { display: block; color: var(--muted); font-size: 12px; }
.bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--green-mid), #6ea84a); }
.detail p { margin: 0; color: var(--ink); }
.dockbar { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px 26px; background: linear-gradient(180deg, transparent, var(--bg) 30%); display: flex; gap: 10px; z-index: 5; }
.dockbar .btn { flex: 1; padding: 14px 18px; }
.dockbar .btn-round { flex: 0 0 52px; width: 52px; height: 52px; padding: 0; border-radius: 50%; }
.dockbar .btn-round svg { width: 22px; height: 22px; }

/* Backs-Kalender */
.cal { background: var(--surface); border-radius: 18px; box-shadow: var(--card); padding: 14px; }
.cal-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cal-h b { font-family: var(--display); font-variation-settings: 'wdth' 114; font-size: 18px; }
.cal-h button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface-2); cursor: pointer; display: grid; place-items: center; }
.cal-h button svg { width: 18px; height: 18px; }
.grid7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-variant-numeric: tabular-nums; }
.grid7 .wd { font-size: 11px; font-weight: 700; color: var(--muted); padding-bottom: 4px; }
.day { aspect-ratio: 1; border: 0; border-radius: 10px; background: none; font-size: 14px; font-weight: 600; cursor: pointer; position: relative; }
.day.free:hover { background: var(--green-soft); }
.day.past { color: var(--line); cursor: default; }
.day.req { background: var(--amber-soft); color: var(--ink); }
.day.busy { background: var(--red); color: #fff; }
.day.sel { background: var(--green); color: #fff; }
.day.today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; translate: -50% 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -2px; margin-right: 5px; }
.note { font-size: 12.5px; color: var(--muted); }
.backs-hero { border-radius: 20px; padding: 18px; color: #fff; background: radial-gradient(120% 120% at 0% 0%, #c7372d 0%, #b0281f 45%, #7e1b15 100%); box-shadow: var(--lift); display: grid; gap: 6px; }
.backs-hero h2 { font-size: 24px; font-variation-settings: 'wdth' 120; font-weight: 900; }
.backs-hero p { margin: 0; color: #fde6e2; font-size: 14px; }

/* Mehr */
.list { background: var(--surface); border-radius: 16px; box-shadow: var(--card); overflow: hidden; }
.row { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border: 0; width: 100%; background: none; text-align: left; border-top: 1px solid var(--surface-2); cursor: pointer; }
.row:first-child { border-top: 0; }
.row .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--green-ink); flex: 0 0 auto; }
.row .ic svg { width: 18px; height: 18px; }
.row .m { flex: 1; min-width: 0; }
.row small { display: block; color: var(--muted); font-size: 12px; }
.row svg.chev { width: 18px; height: 18px; color: var(--muted); }
.lbl { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 4px -12px; }
.switch { appearance: none; width: 50px; height: 30px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; transition: background-color 180ms ease; flex: 0 0 auto; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: transform 200ms cubic-bezier(.23, 1, .32, 1); }
.switch:checked { background: var(--green-mid); }
.switch:checked::after { transform: translateX(20px); }
.switch:disabled { opacity: .45; }
.numbers .row { cursor: default; }
.numbers .num { font-family: var(--display); font-variation-settings: 'wdth' 112; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }

/* Untere Leiste */
.tabbar { flex: 0 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px 22px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.tabbar button { border: 0; background: none; display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabbar button svg { width: 24px; height: 24px; }
.tabbar button[aria-current="page"] { color: var(--green-ink); }
.tabbar button[aria-current="page"] .tb-ic { background: var(--green-soft); }
.tb-ic { width: 54px; height: 30px; border-radius: 99px; display: grid; place-items: center; transition: background-color 200ms ease; }

/* Blätter von unten */
.scrim { position: absolute; inset: 0; background: rgba(10, 18, 13, .45); opacity: 0; pointer-events: none; transition: opacity 240ms ease; z-index: 40; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 26px 26px 0 0; padding: 10px 18px 30px; z-index: 41; transform: translateY(105%); transition: transform 320ms cubic-bezier(.32, .72, 0, 1); max-height: 86%; overflow-y: auto; display: grid; gap: 14px; }
.sheet.on { transform: translateY(0); }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 4px; }
.sheet h2 { font-size: 21px; font-variation-settings: 'wdth' 116; font-weight: 800; }
.field { display: grid; gap: 5px; }
.field label { font-size: 13px; font-weight: 600; }
.field { min-width: 0; }
.field input, .field select { width: 100%; min-width: 0; font: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); }
.field input:focus, .field select:focus { outline: none; border-color: var(--green-mid); box-shadow: 0 0 0 3px var(--green-soft); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.sheet > * { min-width: 0; }
.stepper { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--line); border-radius: 12px; width: fit-content; overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: var(--surface-2); font-size: 20px; cursor: pointer; }
.stepper output { min-width: 44px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.proto-hint { font-size: 12px; color: var(--muted); background: var(--amber-soft); padding: 8px 10px; border-radius: 10px; }
.tabs2 { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.tabs2 button { border: 0; background: none; padding: 9px; border-radius: 9px; font-weight: 700; cursor: pointer; }
.tabs2 button[aria-pressed="true"] { background: var(--surface); box-shadow: var(--card); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.steps li { display: flex; gap: 12px; align-items: flex-start; counter-increment: s; }
.steps li::before { content: counter(s); flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.steps svg { width: 16px; height: 16px; vertical-align: -3px; }
.done { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 10px 0; }
.done .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); display: grid; place-items: center; }
.done .ok svg { width: 32px; height: 32px; }

/* Push-Banner (Simulation) */
.toast { position: absolute; top: 54px; left: 10px; right: 10px; z-index: 60; display: flex; gap: 11px; padding: 11px 12px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 14px 32px -12px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .05); transform: translateY(-140%); transition: transform 420ms cubic-bezier(.32, .72, 0, 1); cursor: pointer; }
.toast.on { transform: translateY(0); }
.toast .ai { width: 38px; height: 38px; border-radius: 10px; background: #fff; display: grid; place-items: center; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.toast .ai img { width: 30px; height: 30px; object-fit: contain; }
.toast .m { min-width: 0; flex: 1; }
.toast .top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.toast b { display: block; font-size: 14px; }
.toast span.txt { font-size: 13.5px; display: block; line-height: 1.3; }

.foot { font-size: 11.5px; color: var(--muted); text-align: center; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 1ms !important; } }

/* Vollbild-App */
html, body { height: 100%; }
body { margin: 0; overflow: hidden; background: var(--bg); }
.app { height: 100%; display: flex; flex-direction: column; background: var(--bg); position: relative; isolation: isolate; overflow: hidden; }
.apphead { padding-top: calc(10px + env(safe-area-inset-top, 0px)); padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
.tabbar { padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
.toast { top: calc(10px + env(safe-area-inset-top, 0px)); }
.sheet { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.dockbar { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.view { -webkit-overflow-scrolling: touch; }
.boot { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); }
/* Ohne Skript sichtbar: erscheint, wenn der Start bei schwachem Netz hängt. */
.boot-slow { margin-top: 10px; color: var(--green-ink); font-weight: 700; visibility: hidden; animation: hfv-boot-slow 0s linear 10s forwards; }
@keyframes hfv-boot-slow { to { visibility: visible; } }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--green-soft); border-top-color: var(--green-mid); animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.offline { position: absolute; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 20; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 12px; font-size: 13px; text-align: center; }
.ico { width: 20px; height: 20px; display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.err { color: var(--red-ink); font-size: 13px; font-weight: 600; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--red-ink); }
.field textarea { width: 100%; min-width: 0; font: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green-mid); flex: 0 0 auto; }
.check a { color: var(--green-ink); }
.areas { display: grid; gap: 8px; }
.area { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1.5px solid var(--line); }
.area input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green-mid); }
.area small { display: block; color: var(--muted); font-size: 12.5px; }
.tickets { display: grid; gap: 8px; }
.ticket { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 8px 10px 8px 14px; border-radius: 12px; background: var(--bg); border: 1.5px solid var(--line); }
.ticket b { font-size: 14px; } .ticket small { display: block; color: var(--muted); }
.sum { display: flex; justify-content: space-between; font-weight: 700; font-variant-numeric: tabular-nums; }
.content { display: grid; gap: 12px; }
.content p, .content ul, .content ol, .content h2, .content h3, .content figure, .content blockquote { margin: 0; }
.content h2, .content h3 { font-size: 19px; font-variation-settings: 'wdth' 112; font-weight: 800; }
.content img { max-width: 100%; height: auto; border-radius: 14px; display: block; }
.content figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.content a { color: var(--green-ink); }
.content ul, .content ol { padding-left: 22px; }
.empty { text-align: center; color: var(--muted); padding: 24px 12px; display: grid; gap: 8px; justify-items: center; }
.empty .ico { width: 34px; height: 34px; color: var(--line); }
.linkrow { color: inherit; text-decoration: none; }
.day:disabled { cursor: default; }
.day.res { background: var(--amber-soft); color: var(--ink); }
.small-print { font-size: 12px; color: var(--muted); }
.stateline { font-size: 13px; color: var(--muted); }
.tel { font-family: var(--display); font-variation-settings: 'wdth' 112; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--ink); text-decoration: none; }

.linkrow { color: inherit; text-decoration: none; }
a.tile, a.ev, a.news, a.row { color: inherit; text-decoration: none; }
.seclink { color: var(--green-ink); font-weight: 600; text-decoration: none; padding: 4px 0; }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--green-ink); }
.tabbar a[aria-current="page"] .tb-ic { background: var(--green-soft); }
a.iconbtn { text-decoration: none; }
.iconbtn .ico, .back .ico { width: 22px; height: 22px; }
.tile .ic .ico, .row .ic .ico, .pushcard .ic .ico { width: 20px; height: 20px; }
.btn .ico { width: 18px; height: 18px; }
.ev .chev, .row .chev { width: 18px; height: 18px; color: var(--muted); }
.facts .ico { color: var(--green-ink); }
button, a { -webkit-tap-highlight-color: transparent; }
.content p, .content li { line-height: 1.55; }
.msg { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; background: var(--surface); border-radius: 16px; box-shadow: var(--card); }
.msg .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--green-ink); flex: 0 0 auto; }
.msg.new .ic { background: var(--green); color: var(--lime); }
.msg .m { flex: 1; min-width: 0; display: grid; gap: 2px; }
.msg .meta { font-size: 12px; color: var(--muted); }
.msg .meta b { color: var(--green-ink); }
.msg b { font-size: 15px; line-height: 1.25; }
.msg .txt { font-size: 14px; color: var(--ink); line-height: 1.4; }
.msg .chev { width: 18px; height: 18px; color: var(--muted); margin-top: 8px; }
a.list.row { display: flex; }
.msg .go { font-size: 13px; font-weight: 700; color: var(--green-ink); margin-top: 4px; }
a.msg { -webkit-user-select: none; user-select: none; cursor: pointer; }
a.msg:active { transform: scale(.98); }
a.msg { transition: transform 140ms ease-out; }

/* Formulare auf dem Handy: 16 px verhindert das automatische Vergrößern in Safari, Datums- und Zeitfelder ohne feste Mindestbreite */
.field input, .field select, .field textarea, .sheet input:not([type=checkbox]):not([type=radio]), .sheet select, .sheet textarea { font-size: 16px; line-height: 1.3; min-height: 48px; }
.field input[type=date], .field input[type=time], .field input[type=number] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; text-align: left; }
.field input::-webkit-date-and-time-value { text-align: left; margin: 0; }
.field select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
.field label { overflow-wrap: break-word; hyphens: auto; }
.sheet { overflow-x: hidden; }
.sheet form, .sheet .field { min-width: 0; max-width: 100%; }
.check span { min-width: 0; overflow-wrap: break-word; }
.ticket { flex-wrap: wrap; }
.ticket > span { min-width: 0; flex: 1 1 140px; }
@media (max-width: 360px) {
	.two { grid-template-columns: minmax(0, 1fr); }
	.pad { padding-left: 12px; padding-right: 12px; }
	.sheet { padding-left: 14px; padding-right: 14px; }
	.tiles { gap: 8px; }
	.detail h1 { font-size: 23px; }
	.hero h3 { font-size: 19px; }
}
/* Lange Wörter in Titeln trennen statt die Seite zu verbreitern */
.detail h1, .hero h3, .ev b, .news b, .msg b, .sheet h2, .backs-hero h2, .tile b { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.detail > div > div, .hero .in > div, .ev .m { min-width: 0; }
@media (max-width: 360px) {
	.hscroll, .chips { margin-inline: -12px; padding-inline: 12px; }
}

/* Beitragstexte: nichts breiter als der Bildschirm */
.content, .content * { max-width: 100%; }
.content { overflow-wrap: break-word; }
.content img { width: auto; height: auto; }
.content figure { margin: 0; }
.content table { display: block; overflow-x: auto; }

/* Großes Bild in Termin und Beitrag: kein fester Zuschnitt mehr */
.detail-img + .detail { margin-top: -18px; }
.content figure img, .content p img { display: block; margin: 0 auto; border-radius: 14px; }
.detail-img + .detail { margin-top: 0; padding-top: 20px; }


/* Kategorien bei den Terminen: alle auf einen Blick, Umbruch statt Wischen */
.chips, .hscroll + .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
@media (max-width: 380px) { .chips { margin-inline: 0; padding-inline: 0; } .chip { padding: 7px 11px; font-size: 12.5px; } }

/* Kontakt: Telefon und E-Mail gleich dargestellt, ganze Zeile antippbar */
.numbers .row.contact { cursor: pointer; color: var(--ink); text-decoration: none; }
.row.contact .m b { display: block; font-size: 15px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.row.contact .m small { margin-bottom: 1px; }

/* Ein Bildformat für alles (4:3), Ausschnitt nach dem in der Mediathek gesetzten Bildpunkt */
.detail-img { overflow: hidden; }
.detail-img img { cursor: zoom-in; }
.zoom { position: fixed; inset: 0; z-index: 90; background: rgba(10, 18, 12, .94); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom)); border: 0; width: 100%; cursor: zoom-out; animation: zoomIn 180ms cubic-bezier(.23, 1, .32, 1); }
.zoom img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.zoom .x { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; }
.zoom .x svg { width: 20px; height: 20px; }
@keyframes zoomIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .zoom { animation: none; } }

/* Nachrichten auf dem Handy löschen */
.msgwrap { position: relative; }
.msgwrap .msg { padding-right: 52px; }
.msgdel { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: transform 140ms ease-out, background-color 160ms ease; }
.msgdel svg { width: 18px; height: 18px; }
.msgdel:active { transform: scale(.92); background: var(--surface-2); }
@media (hover: hover) { .msgdel:hover { background: var(--surface-2); color: var(--ink); } }

/* Pause während der Wartung */
.pause { padding-top: 34px; gap: 14px; justify-items: start; }
.pz-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-ink); }
.pz-ic .ico { width: 28px; height: 28px; }
.pz-k { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); font-weight: 700; font-size: 13px; }
.pause h1 { font-size: 34px; line-height: 1.05; font-weight: 800; font-stretch: 88%; letter-spacing: -.01em; }
.pz-t { margin: 0; color: var(--muted); font-size: 16px; }
.pz-note { margin: 0; width: 100%; padding: 12px 14px; border-left: 4px solid var(--green-ink); border-radius: 0 12px 12px 0; background: var(--surface); box-shadow: var(--card); font-weight: 600; }
.pz-cd { width: 100%; margin-top: 6px; }
.pz-cd-k { margin: 0 0 8px; font-weight: 700; font-size: 14px; color: var(--green-ink); }
.pz-tiles { display: flex; gap: 8px; }
.pz-tile { flex: 1 1 0; min-width: 0; padding: 12px 2px 9px; border-radius: 14px; background: var(--green); color: #fff; text-align: center; box-shadow: var(--lift); }
.pz-tile[hidden] { display: none; }
.pz-tile b { display: block; font-family: var(--display); font-size: 34px; line-height: 1; font-weight: 800; font-stretch: 80%; font-variant-numeric: tabular-nums; }
.pz-tile span { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.pz-when { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.pz-done { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 800; color: var(--green-ink); }
.pause .btn { margin-top: 8px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pz-tile { background: var(--lime); color: #122018; } }
:root[data-theme="dark"] .pz-tile { background: var(--lime); color: #122018; }
.tabbar[hidden] { display: none; }

/* Weitere Fragen bei der Anmeldung */
.qopts { display: flex; flex-wrap: wrap; gap: 8px; }
.qopt { position: relative; }
.qopt input { position: absolute; inset: 0; opacity: 0; margin: 0; }
.qopt span { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border-radius: 99px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; cursor: pointer; }
.qopt input:checked + span { background: var(--green-soft); color: var(--green-ink); box-shadow: inset 0 0 0 2px var(--green-ink); }
.qopt input:focus-visible + span { outline: 3px solid var(--blue-ink); outline-offset: 2px; }
.field.bad .qopt span { box-shadow: inset 0 0 0 1.5px var(--red-ink); }

/* Straßentrödel */
.st-head { display: grid; gap: 8px; }
.st-head .k { font-size: 13px; font-weight: 700; color: var(--green-ink); }
.st-head h1 { font-size: 30px; font-weight: 800; font-stretch: 88%; }
.st-head p { margin: 0; color: var(--muted); }
.st-head .btn { justify-self: start; }
.st-amap { border-radius: 16px; overflow: hidden; background: #e9eee3; box-shadow: var(--card); }
.st-amap svg { display: block; width: 100%; height: auto; }
.st-amap .note { padding: 16px; }
.st-amap .m-bg { fill: #e9eee3; } .st-amap .m-land { fill: #dce6cf; } .st-amap .m-water { fill: none; stroke: #8fc3cf; stroke-width: 3; }
.st-amap .m-r1, .st-amap .m-r2, .st-amap .m-r3 { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; }
.st-amap .m-r1 { stroke-width: 10; } .st-amap .m-r2 { stroke-width: 8; } .st-amap .m-r3 { stroke-width: 6; } .st-amap .m-r4 { fill: none; stroke: #fff; stroke-width: 2.5; }
.st-amap .m-r5 { fill: none; stroke: #c3bba0; stroke-width: 2; stroke-dasharray: 6 4; } .st-amap .m-r6 { fill: none; stroke: #b3bdab; stroke-width: 1.4; stroke-dasharray: 3 3; }
.st-amap .m-lab { font: 600 13px var(--text); fill: #4a574e; text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: #e9eee3; stroke-width: 4px; }
.st-amap .st-pin circle { fill: var(--red); stroke: #fff; stroke-width: 3; }
.st-amap .st-pin.dim circle { fill: #b3bdab; } .st-amap .st-pin.dim text { display: none; }
.st-amap .st-pin.sel circle { fill: var(--green); }
.st-amap .st-pin text { font: 800 11px var(--text); fill: #fff; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.st-asearch { width: 100%; min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 14px; font: inherit; }
.st-ano { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.st-arow.on { background: var(--green-soft); }
