/* Rodenkirchen.de – Design-System „Rheinufer“ (Variante A) auf Bootstrap 5.3 */

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

:root {
  --rk-bg: #FFFFFF;
  --rk-surface: #F3F6F1;
  --rk-surface-2: #EAF2FB;
  --rk-border: #E2E6E1;
  --rk-border-strong: #C9D0C7;
  --rk-text: #18232E;
  --rk-text-muted: #4D5964;
  --rk-primary: #155EA8;
  --rk-primary-dark: #0E4377;
  --rk-on-primary: #FFFFFF;
  --rk-accent: #F4B740;
  --rk-success: #2F7A4F;
  --rk-warning: #7A4E00;
  --rk-danger: #A33A1C;
  --rk-ink: #18232E;

  --rk-blue-soft: #EAF2FB;  --rk-green-soft: #EAF5EE;
  --rk-yellow-soft: #FFF4DC; --rk-red-soft: #FCECE6;
  --rk-teal-soft: #E3F3F6;  --rk-teal: #0E6E8C;
  --rk-purple-soft: #F1ECFA; --rk-purple: #5B3FA0;

  --rk-radius-sm: 8px; --rk-radius: 12px; --rk-radius-lg: 20px; --rk-radius-xl: 24px;
  --rk-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rk-font-scale: 1;
  --rk-tabbar-h: 72px;

  /* Bootstrap-Mapping */
  --bs-body-font-family: var(--rk-font);
  --bs-body-color: var(--rk-text);
  --bs-body-bg: var(--rk-bg);
  --bs-primary: var(--rk-primary);
  --bs-primary-rgb: 21, 94, 168;
  --bs-link-color: var(--rk-primary);
  --bs-link-color-rgb: 21, 94, 168;
  --bs-link-hover-color: var(--rk-primary-dark);
  --bs-link-hover-color-rgb: 14, 67, 119;
  --bs-border-color: var(--rk-border);
  --bs-border-radius: var(--rk-radius);
  --bs-secondary-color: var(--rk-text-muted);
  --bs-emphasis-color: var(--rk-text);
}

[data-theme="dark"] {
  --rk-bg: #10171E; --rk-surface: #18222C; --rk-surface-2: #1E2D3B;
  --rk-border: #2B3742; --rk-border-strong: #3A4856;
  --rk-text: #E8EDF1; --rk-text-muted: #A9B5BF;
  --rk-primary: #6FA8E8; --rk-primary-dark: #9CC4F0; --rk-on-primary: #0B1620;
  --rk-success: #6CC08F; --rk-warning: #F2C46B; --rk-danger: #F08A6E;
  --rk-blue-soft: #1B2D40; --rk-green-soft: #18302A; --rk-yellow-soft: #33290F; --rk-red-soft: #3A221B;
  --rk-teal-soft: #15313A; --rk-teal: #6CC3DE; --rk-purple-soft: #2A2340; --rk-purple: #C2B2F0;
  --bs-primary-rgb: 111, 168, 232; --bs-link-color-rgb: 111, 168, 232; --bs-link-hover-color-rgb: 156, 196, 240;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --rk-bg: #10171E; --rk-surface: #18222C; --rk-surface-2: #1E2D3B;
    --rk-border: #2B3742; --rk-border-strong: #3A4856;
    --rk-text: #E8EDF1; --rk-text-muted: #A9B5BF;
    --rk-primary: #6FA8E8; --rk-primary-dark: #9CC4F0; --rk-on-primary: #0B1620;
    --rk-success: #6CC08F; --rk-warning: #F2C46B; --rk-danger: #F08A6E;
    --rk-blue-soft: #1B2D40; --rk-green-soft: #18302A; --rk-yellow-soft: #33290F; --rk-red-soft: #3A221B;
    --rk-teal-soft: #15313A; --rk-teal: #6CC3DE; --rk-purple-soft: #2A2340; --rk-purple: #C2B2F0;
    --bs-primary-rgb: 111, 168, 232; --bs-link-color-rgb: 111, 168, 232; --bs-link-hover-color-rgb: 156, 196, 240;
    color-scheme: dark;
  }
}

html { font-size: calc(100% * var(--rk-font-scale)); }
html[data-font="115"] { --rk-font-scale: 1.15; }
html[data-font="130"] { --rk-font-scale: 1.3; }
body { font-size: 1.0625rem; line-height: 1.55; background: var(--rk-bg); color: var(--rk-text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .h1, .h2, .h3 { font-weight: 800; letter-spacing: -0.015em; color: var(--rk-text); }
h1, .h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); line-height: 1.1; }
h2, .h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3, .h3 { font-size: 1.15rem; font-weight: 700; }
.text-muted, .text-secondary { color: var(--rk-text-muted) !important; }
a { text-underline-offset: 2px; }
.container-rk { max-width: 1280px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container-rk { padding-inline: 24px; } }
.bg-surface { background: var(--rk-surface); }
.small-label { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* Fokus gut sichtbar */
:focus-visible { outline: 3px solid var(--rk-primary); outline-offset: 2px; border-radius: 6px; }
.btn:focus-visible { box-shadow: 0 0 0 3px var(--rk-bg), 0 0 0 6px var(--rk-primary); outline: none; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 2000; background: var(--rk-ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 8px; color: #fff; }

/* ---------- Buttons ---------- */
.btn { --bs-btn-font-weight: 700; --bs-btn-padding-y: .65rem; --bs-btn-padding-x: 1.1rem; --bs-btn-border-radius: var(--rk-radius); min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn-primary { --bs-btn-bg: var(--rk-primary); --bs-btn-border-color: var(--rk-primary); --bs-btn-color: var(--rk-on-primary); --bs-btn-hover-bg: var(--rk-primary-dark); --bs-btn-hover-border-color: var(--rk-primary-dark); --bs-btn-hover-color: var(--rk-on-primary); --bs-btn-active-bg: var(--rk-primary-dark); --bs-btn-active-color: var(--rk-on-primary); }
.btn-outline-primary { --bs-btn-color: var(--rk-primary); --bs-btn-border-color: var(--rk-primary); --bs-btn-hover-bg: var(--rk-primary); --bs-btn-hover-border-color: var(--rk-primary); --bs-btn-hover-color: var(--rk-on-primary); --bs-btn-active-bg: var(--rk-primary); --bs-btn-active-color: var(--rk-on-primary); border-width: 1.5px; }
.btn-accent { --bs-btn-bg: var(--rk-accent); --bs-btn-border-color: var(--rk-accent); --bs-btn-color: #18232E; --bs-btn-hover-bg: #E8A82A; --bs-btn-hover-border-color: #E8A82A; --bs-btn-hover-color: #18232E; --bs-btn-font-weight: 800; }
.btn-soft { --bs-btn-bg: var(--rk-surface); --bs-btn-border-color: var(--rk-surface); --bs-btn-color: var(--rk-text); --bs-btn-hover-bg: var(--rk-border); --bs-btn-hover-border-color: var(--rk-border); --bs-btn-hover-color: var(--rk-text); }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 12px; }
.btn-dashed { border: 2px dashed var(--rk-border-strong); color: var(--rk-success); font-weight: 700; width: 100%; }
.btn-dashed:hover { border-color: var(--rk-success); color: var(--rk-success); background: var(--rk-green-soft); }

/* ---------- Kopf ---------- */
.servicebar { background: var(--rk-surface); border-bottom: 1px solid var(--rk-border); font-size: .875rem; }
.servicebar a { color: var(--rk-text-muted); text-decoration: none; }
.servicebar a:hover { color: var(--rk-text); text-decoration: underline; }
.servicebar .emergency { color: var(--rk-danger); font-weight: 600; }
.fontsize-btn { min-width: 40px; min-height: 34px; border: 1px solid var(--rk-border-strong); background: var(--rk-bg); color: var(--rk-text); border-radius: 8px; font-weight: 700; }
.fontsize-btn[aria-pressed="true"] { background: var(--rk-ink); color: #fff; border-color: var(--rk-ink); }

.site-header { position: sticky; top: 0; z-index: 1030; background: color-mix(in srgb, var(--rk-bg) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rk-border); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--rk-text); text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--rk-text); }
.brand img { width: 40px; height: 40px; }
.brand .tld { color: var(--rk-primary); }
.mainnav a { padding: .55rem .85rem; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--rk-text); white-space: nowrap; }
.mainnav a:hover { background: var(--rk-surface); }
.mainnav a[aria-current="page"] { color: var(--rk-primary); background: var(--rk-blue-soft); font-weight: 800; }
.veedel-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .9rem 0 .5rem; border-radius: 999px; border: 1px solid var(--rk-border-strong); background: var(--rk-surface); color: var(--rk-text); font-size: .9rem; font-weight: 600; }
.veedel-btn img { width: 24px; height: 24px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--rk-primary); color: var(--rk-on-primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; text-decoration: none; }
.avatar:hover { color: var(--rk-on-primary); }

/* ---------- Karten & Kacheln ---------- */
.rk-card { background: var(--rk-bg); border: 1px solid var(--rk-border); border-radius: var(--rk-radius-lg); padding: 1.1rem; height: 100%; }
.rk-card-soft { background: var(--rk-surface); border-radius: var(--rk-radius-xl); padding: 1.25rem; }
a.rk-card, a.rk-link-card { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.rk-card:hover, a.rk-link-card:hover { border-color: var(--rk-primary); }
.tile { border-radius: var(--rk-radius-lg); padding: 1rem 1.1rem; height: 100%; display: flex; flex-direction: column; gap: .2rem; text-decoration: none; }
.tile .small-label { display: flex; align-items: center; gap: .45rem; }
.tile strong { font-size: 1.35rem; font-weight: 800; color: var(--rk-text); line-height: 1.2; }
.tile span.meta { font-size: .875rem; color: var(--rk-text-muted); }
.tile-blue { background: var(--rk-blue-soft); } .tile-blue .small-label { color: var(--rk-primary); }
.tile-yellow { background: var(--rk-yellow-soft); } .tile-yellow .small-label { color: var(--rk-warning); }
.tile-green { background: var(--rk-green-soft); } .tile-green .small-label { color: var(--rk-success); }
.tile-red { background: var(--rk-red-soft); } .tile-red .small-label { color: var(--rk-danger); }
a.tile:hover strong { text-decoration: underline; }

.quick-action { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; min-height: 58px; border-radius: 16px; border: 1px solid var(--rk-border); color: var(--rk-text); text-decoration: none; font-weight: 700; background: var(--rk-bg); }
.quick-action:hover { border-color: var(--rk-primary); color: var(--rk-text); }
.quick-action i { width: 36px; height: 36px; border-radius: 10px; background: var(--rk-blue-soft); color: var(--rk-primary); display: inline-flex; align-items: center; justify-content: center; flex: none; }

.chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--rk-border-strong); background: var(--rk-bg); color: var(--rk-text); font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--rk-primary); color: var(--rk-text); }
.chip.active, .chip[aria-current="true"] { background: var(--rk-primary); border-color: var(--rk-primary); color: var(--rk-on-primary); font-weight: 700; }
.chip-row { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }

.badge-cat { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.cat-lokales, .cat-markt { background: var(--rk-yellow-soft); color: var(--rk-warning); }
.cat-vereine, .cat-verein, .cat-umwelt, .cat-sport { background: var(--rk-green-soft); color: var(--rk-success); }
.cat-politik, .cat-buergerschaft { background: var(--rk-blue-soft); color: var(--rk-primary); }
.cat-verkehr, .cat-fest, .cat-karneval { background: var(--rk-red-soft); color: var(--rk-danger); }
.cat-rhein { background: var(--rk-teal-soft); color: var(--rk-teal); }
.cat-kultur, .cat-soziales { background: var(--rk-purple-soft); color: var(--rk-purple); }
.cat-kinder { background: var(--rk-yellow-soft); color: var(--rk-warning); }
.cat-kunst { background: var(--rk-purple-soft); color: var(--rk-purple); }
.cat-beratung { background: var(--rk-teal-soft); color: var(--rk-teal); }
.type-biete, .type-verschenke { color: var(--rk-success); }
.type-suche, .type-hilfe { color: var(--rk-primary); }
.type-verloren { color: var(--rk-danger); }
.type-gefunden { color: var(--rk-warning); }
.badge-open { background: var(--rk-green-soft); color: var(--rk-success); font-weight: 800; }
.badge-closed { background: var(--rk-surface); color: var(--rk-text-muted); }
.verified { color: var(--rk-primary); }

.date-badge { width: 56px; height: 62px; flex: none; border-radius: 14px; background: var(--rk-yellow-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; color: var(--rk-text); }
.date-badge .wd { font-size: .72rem; font-weight: 800; color: var(--rk-warning); text-transform: uppercase; }
.date-badge .d { font-size: 1.45rem; font-weight: 800; }
.date-badge .m { font-size: .68rem; font-weight: 700; color: var(--rk-warning); }

.event-row { display: flex; gap: .9rem; align-items: center; padding: .8rem; border: 1px solid var(--rk-border); border-radius: 18px; background: var(--rk-bg); }
.event-row .body { flex: 1; min-width: 0; }
.event-row .title { font-weight: 700; color: var(--rk-text); text-decoration: none; display: block; line-height: 1.3; }
.event-row .title:hover { text-decoration: underline; }
.fav-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--rk-blue-soft); color: var(--rk-primary); flex: none; display: inline-flex; align-items: center; justify-content: center; }
.fav-btn[aria-pressed="true"] { background: var(--rk-primary); color: var(--rk-on-primary); }

.news-lead { display: flex; flex-wrap: wrap; gap: 1.25rem; padding: 1.25rem; border-radius: var(--rk-radius-xl); background: var(--rk-surface); text-decoration: none; color: inherit; }
.news-lead img { flex: 1 1 260px; width: 260px; max-width: 100%; height: 200px; object-fit: cover; border-radius: 16px; }
.news-lead .txt { flex: 999 1 280px; display: flex; flex-direction: column; gap: .5rem; }
.news-lead:hover h3 { text-decoration: underline; }
.news-card { display: flex; flex-direction: column; gap: .45rem; }
.news-card h3 { font-size: 1.08rem; line-height: 1.3; margin: 0; }
.news-card:hover h3 { text-decoration: underline; }

.board-item { display: flex; flex-direction: column; gap: .2rem; padding: .8rem 1rem; border-radius: 14px; background: var(--rk-bg); color: var(--rk-text); text-decoration: none; }
.board-item:hover strong { text-decoration: underline; }

.club-logo { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; flex: none; background: var(--rk-blue-soft); color: var(--rk-primary); }
.club-logo.c-sport, .club-logo.c-umwelt { background: var(--rk-green-soft); color: var(--rk-success); }
.club-logo.c-karneval { background: var(--rk-red-soft); color: var(--rk-danger); }
.club-logo.c-kultur, .club-logo.c-soziales { background: var(--rk-purple-soft); color: var(--rk-purple); }
.club-logo.c-buergerschaft { background: var(--rk-yellow-soft); color: var(--rk-warning); }
.club-logo.lg { width: 76px; height: 76px; border-radius: 22px; font-size: 1.5rem; border: 4px solid var(--rk-bg); }

.alert-banner { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: 16px; background: var(--rk-red-soft); color: var(--rk-text); }
.alert-banner i { color: var(--rk-danger); margin-top: .2rem; }
.alert { border-radius: 14px; border: 0; }

.hero-photo { position: relative; border-radius: var(--rk-radius-xl); overflow: hidden; min-height: 300px; margin: 0; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(255,255,255,.95); color: #18232E; border-radius: 14px; padding: .75rem .9rem; display: flex; justify-content: space-between; align-items: center; gap: .75rem; font-size: .9rem; }

.app-banner { border-radius: 28px; background: var(--rk-ink); color: #fff; padding: 2rem; }
.app-banner p { color: #C8D2DB; }
.newsletter-box { border-radius: var(--rk-radius-xl); background: #155EA8; color: #fff; padding: 1.4rem; }
.newsletter-box p { color: #DCE9F7; }
.newsletter-box .form-control { min-height: 48px; border: 0; }

.form-control, .form-select { min-height: 48px; border-radius: var(--rk-radius); border: 1.5px solid var(--rk-border-strong); background-color: var(--rk-bg); color: var(--rk-text); }
.form-control:focus, .form-select:focus { border-color: var(--rk-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rk-primary) 25%, transparent); background-color: var(--rk-bg); color: var(--rk-text); }
textarea.form-control { min-height: 140px; }
.form-label { font-weight: 700; }
.form-check-input { width: 1.3em; height: 1.3em; }
.form-switch { padding-left: 3.3em; }
.form-switch .form-check-input { width: 2.6em; margin-left: -3.3em; }
.invalid-feedback { font-weight: 700; color: var(--rk-danger); }

.prose { max-width: 70ch; font-size: 1.1rem; }
.prose p { margin-bottom: 1.1em; }

.empty-state { text-align: center; padding: 2rem 1rem; border: 2px dashed var(--rk-border-strong); border-radius: var(--rk-radius-lg); }

.site-footer { background: var(--rk-surface); border-top: 1px solid var(--rk-border); color: var(--rk-text-muted); font-size: .95rem; }
.site-footer a { color: var(--rk-text-muted); }

/* ---------- Mobile App-Navigation ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; height: calc(var(--rk-tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--rk-bg); border-top: 1px solid var(--rk-border); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.tabbar a, .tabbar button.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; font-weight: 600; color: var(--rk-text-muted); text-decoration: none; background: none; border: 0; min-height: 52px; justify-content: center; }
.tabbar a i { font-size: 1.25rem; }
.tabbar a[aria-current="page"] { color: var(--rk-primary); font-weight: 800; }
.tabbar .plus { justify-self: center; width: 56px; height: 56px; border-radius: 18px; background: var(--rk-primary); color: var(--rk-on-primary); font-size: 1.5rem; margin-top: -20px; box-shadow: 0 6px 16px rgba(21,94,168,.35); display: flex; align-items: center; justify-content: center; border: 0; }
@media (max-width: 1199.98px) { body { padding-bottom: calc(var(--rk-tabbar-h) + env(safe-area-inset-bottom)); } }
@media (min-width: 1200px) { .tabbar { display: none; } }
.sheet .offcanvas-bottom { height: auto; border-radius: 24px 24px 0 0; }
.sheet-option { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; min-height: 60px; border-radius: 16px; background: var(--rk-surface); color: var(--rk-text); text-decoration: none; font-weight: 700; }
.sheet-option i { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--rk-bg); color: var(--rk-primary); }
.sheet-option small { display: block; font-weight: 500; color: var(--rk-text-muted); }
.offcanvas { --bs-offcanvas-bg: var(--rk-bg); --bs-offcanvas-color: var(--rk-text); }

/* Standalone-App (installiert): kein Service-Balken */
@media (display-mode: standalone) { .servicebar { display: none; } .hide-in-app { display: none !important; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.visually-hidden-focusable:not(:focus) { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; }

/* Auswahl-Chips und -Kacheln in Formularen */
.btn-check:checked + .chip { background: var(--rk-primary); border-color: var(--rk-primary); color: var(--rk-on-primary); }
.btn-check:checked + .quick-action { border-color: var(--rk-primary); background: var(--rk-blue-soft); box-shadow: inset 0 0 0 1px var(--rk-primary); }
.btn-check:focus-visible + .chip, .btn-check:focus-visible + .quick-action { outline: 3px solid var(--rk-primary); outline-offset: 2px; }
label.quick-action { cursor: pointer; }

/* Feinschliff nach Test */
.veedel-btn, .site-header .btn { white-space: nowrap; }
.fontsize-btn[aria-pressed="true"] { background: var(--rk-primary); color: var(--rk-on-primary); border-color: var(--rk-primary); }
@media (max-width: 575.98px) { .servicebar .container-rk { flex-wrap: nowrap !important; } .servicebar a:not(.emergency) { display: none; } }
@media (min-width: 1200px) and (max-width: 1559.98px) { .veedel-btn-hdr { display: none !important; } }
.event-row .title, .rk-card strong, h1, h2, h3 { overflow-wrap: anywhere; hyphens: auto; }
.event-row .badge-cat { white-space: normal; }

/* Verkehr im Veedel (Startseite) */
.traffic-box { background: var(--rk-surface); border-radius: var(--rk-radius-lg); padding: 1rem 1.1rem; }
.traffic-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .35rem; }
.traffic-item { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem .7rem; border-radius: 12px; background: var(--rk-bg); border-left: 4px solid var(--rk-warning); }
.traffic-item.is-sperrung { border-left-color: var(--rk-danger); }
.traffic-item > i { margin-top: .2rem; color: var(--rk-warning); }
.traffic-item.is-sperrung > i { color: var(--rk-danger); }
.traffic-item a { color: var(--rk-text); text-decoration: none; min-width: 0; display: flex; flex-direction: column; }
.traffic-item a:hover strong { text-decoration: underline; }
.traffic-item small { color: var(--rk-text-muted); }

/* Wetterleiste (Startseite) */
.weather-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding: .75rem 1rem; border-radius: var(--rk-radius-lg); background: var(--rk-blue-soft); color: var(--rk-text); text-decoration: none; }
.weather-strip:hover { color: var(--rk-text); box-shadow: inset 0 0 0 2px var(--rk-primary); }
.weather-now { display: inline-flex; align-items: baseline; gap: .5rem; }
.weather-now i { font-size: 1.4rem; color: var(--rk-primary); align-self: center; }
.weather-now strong { font-size: 1.5rem; line-height: 1; }
.weather-now span { color: var(--rk-text-muted); font-weight: 600; }
.weather-meta { display: inline-flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--rk-text-muted); font-size: .9rem; }
.weather-meta i { margin-right: .3rem; }
.weather-ok { margin-left: auto; font-size: .85rem; color: var(--rk-text-muted); font-weight: 600; }
.weather-alert { flex-basis: 100%; display: flex; gap: .5rem; align-items: flex-start; font-weight: 700; color: var(--rk-warning); }
.weather-strip.is-minor { background: var(--rk-yellow-soft); }
.weather-strip.is-moderate, .weather-strip.is-severe, .weather-strip.is-extreme { background: var(--rk-red-soft); }
.weather-strip.is-severe .weather-alert, .weather-strip.is-extreme .weather-alert { color: var(--rk-danger); }
@media (min-width: 768px) { .weather-alert { flex-basis: auto; margin-left: auto; } }

/* Kartenvorschau (Startseite) */
.minimap-card { position: relative; border-radius: var(--rk-radius-lg); overflow: hidden; border: 1px solid var(--rk-border); background: var(--rk-surface); }
.minimap { height: 420px; z-index: 0; }
@media (max-width: 767.98px) { .minimap { height: 300px; } }
.minimap-legend { position: absolute; z-index: 500; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: .4rem; pointer-events: none; }
.minimap-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; background: var(--rk-bg); color: var(--rk-text); font-size: .82rem; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.minimap-chip i { color: var(--c); }
.minimap-chip.is-quiet i { color: var(--rk-success); }
.minimap-open { position: absolute; z-index: 500; right: 12px; bottom: 26px; border-radius: 999px; font-weight: 700; display: inline-flex; gap: .4rem; align-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.minimap .leaflet-control-zoom { margin-bottom: 26px; }

/* Startseite: Newsletter quer unter der Kartenvorschau */
.newsletter-wide { display: grid; gap: 1rem; align-items: center; }
.newsletter-wide .nl-form { display: grid; gap: .4rem; }
@media (min-width: 992px) { .newsletter-wide { grid-template-columns: 1fr 1.3fr; } }
.row > .col.d-flex > .board-item { width: 100%; }
@media (min-width: 992px) { .minimap { height: 460px; } }

/* Startseite: Karte + Woche + Brett/Newsletter – auf großen Bildschirmen zwei Spalten ohne Lücke */
.home-grid { display: grid; gap: 1.5rem; }
@media (min-width: 992px) {
  .home-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-areas: "map week" "more week"; column-gap: 2rem; row-gap: 1.75rem; align-items: start; }
  .home-map { grid-area: map; } .home-week { grid-area: week; } .home-more { grid-area: more; }
}
@media (min-width: 1200px) { .home-grid { column-gap: 3rem; } }
@media (min-width: 992px) { .home-week { position: sticky; top: 88px; } }
@media (min-width: 768px) { .dep-card .dep-list.is-compact .dep { grid-template-columns: 3rem minmax(0, 1fr) auto; } }


/* ==========================================================================
   Verwaltung (/admin)
   ========================================================================== */
.adm-shell { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
.adm-shell > * { min-width: 0; }
@media (min-width: 992px) { .adm-shell { grid-template-columns: 230px minmax(0, 1fr); gap: 2rem; align-items: start; } }
.adm-nav { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .25rem; }
.adm-nav::-webkit-scrollbar { display: none; }
.adm-nav a { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .8rem; border-radius: 12px; color: var(--rk-text); text-decoration: none; font-weight: 600; white-space: nowrap; background: var(--rk-surface); min-height: 44px; }
.adm-nav a i { width: 1.1rem; text-align: center; color: var(--rk-text-muted); }
.adm-nav a:hover { background: var(--rk-surface-2); }
.adm-nav a[aria-current="page"] { background: var(--rk-primary); color: var(--rk-on-primary); }
.adm-nav a[aria-current="page"] i { color: inherit; }
.adm-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--rk-accent); color: #18232E; font-size: .75rem; display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 992px) {
  .adm-nav { flex-direction: column; position: sticky; top: 88px; overflow: visible; }
  .adm-nav a { background: none; }
}

.adm-search { display: flex; gap: .5rem; margin-bottom: .75rem; max-width: 640px; }
.adm-filter { background: var(--rk-yellow-soft); padding: .5rem .8rem; border-radius: 10px; }
.adm-tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .75rem; }
.adm-tabs a { padding: .35rem .75rem; border-radius: 999px; border: 1.5px solid var(--rk-border-strong); color: var(--rk-text); text-decoration: none; font-weight: 600; font-size: .9rem; }
.adm-tabs a span { color: var(--rk-text-muted); font-weight: 700; margin-left: .2rem; }
.adm-tabs a[aria-current="true"] { background: var(--rk-text); color: var(--rk-bg); border-color: var(--rk-text); }
.adm-tabs a[aria-current="true"] span { color: inherit; opacity: .75; }

.adm-bulk { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .5rem .75rem; background: var(--rk-surface); border-radius: 12px; margin-bottom: .5rem; }
.adm-bulk .form-select { width: auto; min-height: 38px; }
.adm-check { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; font-size: .9rem; margin-right: .5rem; }
.adm-bulk__count { font-size: .85rem; color: var(--rk-text-muted); }

.adm-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.adm-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: .75rem; align-items: start; padding: .8rem; border: 1px solid var(--rk-border); border-radius: 14px; background: var(--rk-bg); }
.adm-row:not(:has(.adm-row__thumb)) { grid-template-columns: auto minmax(0, 1fr); }
.adm-row.is-selected { border-color: var(--rk-primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--rk-primary) 25%, transparent); }
.adm-row.status-pending { border-left: 4px solid var(--rk-accent); }
.adm-row.status-hidden, .adm-row.status-rejected { opacity: .8; }
.adm-row__check { padding-top: .2rem; }
.adm-row__check input { width: 1.3rem; height: 1.3rem; }
.adm-row__thumb { width: 64px; height: 64px; border-radius: 10px; background: var(--rk-surface); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--rk-text-muted); }
.adm-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-row__top { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .15rem; }
.adm-row__badge { font-size: .75rem; font-weight: 700; color: var(--rk-text-muted); text-transform: uppercase; letter-spacing: .03em; }
.adm-row__id { font-size: .75rem; color: var(--rk-text-muted); }
.adm-row__title { font-weight: 800; font-size: 1.02rem; color: var(--rk-text); text-decoration: none; display: block; }
.adm-row__title:hover { text-decoration: underline; }
.adm-row__meta { font-size: .85rem; color: var(--rk-text-muted); }
.adm-row__excerpt { font-size: .88rem; margin-top: .25rem; }
.adm-row__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .35rem; }
.adm-row__actions .btn { display: inline-flex; gap: .35rem; align-items: center; }
@media (min-width: 1200px) {
  .adm-row { grid-template-columns: auto auto minmax(0, 1fr) auto; }
  .adm-row:not(:has(.adm-row__thumb)) { grid-template-columns: auto minmax(0, 1fr) auto; }
  .adm-row__actions { grid-column: auto; justify-content: flex-end; max-width: 340px; }
}
/* Bilder als Raster */
.adm-rows.is-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.adm-rows.is-grid .adm-row { grid-template-columns: 1fr; position: relative; }
.adm-rows.is-grid .adm-row__check { position: absolute; top: 1.2rem; left: 1.2rem; z-index: 1; background: var(--rk-bg); border-radius: 6px; padding: 2px; }
.adm-rows.is-grid .adm-row__thumb { width: 100%; height: 160px; }
.adm-rows.is-grid .adm-row__actions { grid-column: auto; justify-content: flex-start; max-width: none; }

.adm-status { display: inline-block; font-size: .72rem; font-weight: 800; padding: .12rem .55rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.adm-status.is-ok { background: var(--rk-green-soft); color: var(--rk-success); }
.adm-status.is-warn { background: var(--rk-yellow-soft); color: var(--rk-warning); }
.adm-status.is-bad { background: var(--rk-red-soft); color: var(--rk-danger); }
.adm-status.is-muted { background: var(--rk-surface); color: var(--rk-text-muted); }

.adm-empty { display: flex; gap: .6rem; align-items: center; padding: 1rem; background: var(--rk-surface); border-radius: 12px; color: var(--rk-text-muted); }
.adm-empty i { color: var(--rk-success); }
.adm-queue { display: flex; flex-wrap: wrap; gap: .6rem; }
.adm-queue__item { display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.1rem; border-radius: 14px; background: var(--rk-yellow-soft); color: var(--rk-text); text-decoration: none; font-weight: 600; }
.adm-queue__item strong { font-size: 1.4rem; }
.adm-queue__item:hover { box-shadow: inset 0 0 0 2px var(--rk-warning); }
.adm-log { list-style: none; padding: 0; margin: 0; display: grid; }
.adm-log li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .5rem 0; border-top: 1px solid var(--rk-border); }
.adm-log small { color: var(--rk-text-muted); }
.adm-pages { display: flex; gap: .75rem; align-items: center; justify-content: center; margin-top: 1rem; font-size: .9rem; }

.adm-form .form-label { margin-bottom: .25rem; }
.adm-form__buttons { position: sticky; bottom: calc(var(--rk-tabbar-h) + 8px); background: var(--rk-bg); padding: .5rem 0; }
@media (min-width: 1200px) { .adm-form__buttons { bottom: 0; } }
.adm-hours { display: grid; grid-template-columns: auto 1fr; gap: .35rem .75rem; align-items: center; max-width: 460px; }
.adm-hours label { font-weight: 600; font-size: .9rem; }
.adm-image { display: grid; gap: .5rem; }
.adm-image__img { max-width: 220px; max-height: 160px; object-fit: cover; border-radius: 10px; border: 1px solid var(--rk-border); }
.adm-preview { margin: 0; }
.adm-preview img { max-width: 100%; max-height: 420px; border-radius: 12px; display: block; }
.adm-preview figcaption { font-size: .85rem; color: var(--rk-text-muted); margin-top: .35rem; }
.adm-danger { border-color: color-mix(in srgb, var(--rk-danger) 35%, var(--rk-border)) !important; }
.adm-replies { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.adm-replies li { padding: .7rem; border-radius: 12px; background: var(--rk-surface); }
.adm-replies li.is-hidden { opacity: .6; }
.adm-replies__text { margin-top: .2rem; }
.adm-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--rk-text-muted); }
.adm-table td, .adm-table th { background: transparent; color: var(--rk-text); border-color: var(--rk-border); }

/* ==========================================================================
   Abfahrten (KVB) – Startseite, /abfahrten, Karten-Popup
   ========================================================================== */
.dep-list { list-style: none; margin: 0; padding: 0; }
.dep { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--rk-border); }
.dep:first-child { border-top: 0; }
.dep-line { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 1.9rem; padding: 0 .35rem; border-radius: 6px; font-weight: 800; font-size: .95rem; color: #fff; background: #2B3742; }
.dep-line.is-bahn { background: #B3122E; }
.dep-line.is-bus { background: #155EA8; border-radius: 999px; }
.dep-line.is-zug { background: #3D4A55; }
.dep-line.is-schiff { background: #0E6E8C; }
.dep-dest { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.dep-dest strong { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dep-dest small { color: var(--rk-text-muted); font-size: .82rem; }
.dep-note { font-size: .82rem; color: var(--rk-warning); margin-top: .15rem; }
.dep-note i { margin-right: .3rem; }
.dep-time { display: flex; flex-direction: column; align-items: flex-end; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dep-time.is-soon > span:first-child { color: var(--rk-success); }
.dep-delay { font-size: .78rem; font-weight: 700; color: var(--rk-warning); }
.dep-delay.is-bad { color: var(--rk-danger); }
.dep-delay.is-ok { color: var(--rk-text-muted); font-weight: 600; }
.dep.is-cancelled .dep-dest strong, .dep.is-cancelled .dep-time > span:first-child { text-decoration: line-through; color: var(--rk-text-muted); }
.dep-list.is-compact .dep { padding: .45rem 0; gap: .6rem; grid-template-columns: 2.6rem minmax(0, 1fr) auto; }
.dep-list.is-compact .dep-delay.is-ok { display: none; }
.dep-empty { margin: .5rem 0; color: var(--rk-text-muted); }
.dep-empty i { margin-right: .4rem; color: var(--rk-warning); }
.dep-stamp { margin: .5rem 0 0; font-size: .78rem; color: var(--rk-text-muted); }
.dep-live { color: var(--rk-success); font-weight: 700; }
.dep-live .dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; margin-right: .3rem; vertical-align: middle; animation: dep-pulse 2s ease-in-out infinite; }
@keyframes dep-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dep-live .dot { animation: none; } }
[aria-busy="true"] .dep-list { opacity: .6; transition: opacity .2s; }

.dep-card__stop { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border-radius: var(--rk-radius); background: var(--rk-surface); }
.dep-card__stop > i { color: #B3122E; }
.dep-card__stop > span { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.dep-card__stop small { color: var(--rk-text-muted); font-size: .8rem; }
.dep-card__stop small:empty { display: none; }

.dep-search { position: relative; }
.dep-suggest { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: .25rem 0 0; padding: .25rem; list-style: none; background: var(--rk-bg); border: 1px solid var(--rk-border-strong); border-radius: var(--rk-radius); box-shadow: 0 10px 30px rgba(0,0,0,.12); max-height: 18rem; overflow: auto; }
.dep-suggest li { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem .7rem; border-radius: var(--rk-radius-sm); cursor: pointer; }
.dep-suggest li small { color: var(--rk-text-muted); }
.dep-suggest li:hover, .dep-suggest li:focus { background: var(--rk-blue-soft); outline: none; }
.dep-near { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.dep-near .chip small { color: var(--rk-text-muted); margin-left: .25rem; }
.dep-near button.chip { background: var(--rk-bg); }
[data-dep-save][aria-pressed="true"] i { color: var(--rk-accent); }
.rk-pop__dep { margin: .25rem 0 .5rem; }
.rk-pop__dep .dep-line { min-width: 2.3rem; height: 1.7rem; font-size: .85rem; }

/* ==========================================================================
   Abfuhrtermine (/abfuhr)
   ========================================================================== */
.bin-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem .3rem .55rem; border-radius: 999px; font-weight: 700; font-size: .9rem;
  background: color-mix(in srgb, var(--bin) 14%, var(--rk-bg)); color: var(--rk-text); border: 1px solid color-mix(in srgb, var(--bin) 45%, transparent); }
.bin-chip i { color: var(--bin); }
.waste-next { padding: 1.25rem 1.4rem; border-radius: var(--rk-radius-lg); background: var(--rk-yellow-soft); }
.waste-next h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.waste-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rk-border); border-radius: var(--rk-radius-lg); overflow: hidden; }
.waste-list li { display: flex; align-items: center; gap: 1rem; padding: .7rem 1rem; border-top: 1px solid var(--rk-border); }
.waste-list li:first-child { border-top: 0; }
.waste-list li.is-today { background: var(--rk-yellow-soft); }
.waste-date { display: flex; flex-direction: column; align-items: center; min-width: 2.6rem; line-height: 1.1; }
.waste-date strong { font-size: 1.3rem; }
.waste-date span { font-size: .8rem; color: var(--rk-text-muted); text-transform: uppercase; font-weight: 700; }
.waste-tag { margin-left: auto; font-size: .8rem; font-weight: 800; color: var(--rk-warning); text-transform: uppercase; }
.waste-steps { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; font-size: .85rem; font-weight: 700; color: var(--rk-text-muted); flex-wrap: wrap; }
.waste-steps li { display: flex; align-items: center; gap: .35rem; }
.waste-steps li + li::before { content: "›"; margin-right: .2rem; }
.waste-steps span { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--rk-blue-soft); color: var(--rk-primary); }
.waste-street { position: relative; }
.waste-choice { display: flex; gap: .75rem; align-items: center; padding: .75rem 1rem; border: 1px solid var(--rk-border-strong); border-radius: var(--rk-radius); cursor: pointer; }
.waste-choice:has(input:checked) { border-color: var(--rk-primary); background: var(--rk-blue-soft); }
.waste-choice span { display: flex; flex-direction: column; }
.waste-choice small { color: var(--rk-text-muted); }

/* ==========================================================================
   Gefahrenwarnungen (Banner, Liste, Detail)
   ========================================================================== */
.alert-top { color: #fff; background: #B42318; }
.alert-top.is-red { background: #B42318; }
.alert-top.is-orange { background: #FDE7D2; color: #5A2A00; border-bottom: 1px solid #F3B37C; }
.alert-top.is-green { background: #E3F4E8; color: #14472A; border-bottom: 1px solid #A7D7B6; }
.alert-top + .alert-top.is-red { border-top: 1px solid rgba(255,255,255,.35); }
.alert-top__inner { display: flex; align-items: center; gap: .75rem; padding-top: .6rem; padding-bottom: .6rem; }
.alert-top__icon { font-size: 1.4rem; flex: none; }
.alert-top.is-red .alert-top__icon { animation: alert-blink 1.6s ease-in-out infinite; }
@keyframes alert-blink { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .alert-top.is-red .alert-top__icon { animation: none; } }
.alert-top__text { display: flex; flex-direction: column; flex: 1; min-width: 0; color: inherit; text-decoration: none; line-height: 1.3; }
.alert-top__text strong { font-size: 1.02rem; }
.alert-top__text span { font-size: .92rem; }
.alert-top__todo { font-weight: 700; margin-top: .1rem; }
.alert-top__text:hover strong { text-decoration: underline; }
.alert-top__more { flex: none; color: inherit; font-weight: 800; text-decoration: none; white-space: nowrap; padding: .4rem .8rem; border-radius: 999px; border: 2px solid currentColor; }
.alert-top__more:hover { background: rgba(255,255,255,.15); color: inherit; }
.alert-top__close { flex: none; border: 0; background: transparent; color: inherit; width: 2.5rem; height: 2.5rem; border-radius: 50%; font-size: 1.1rem; }
.alert-top__close:hover { background: rgba(0,0,0,.08); }
.alert-top a:focus-visible, .alert-top button:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
@media (max-width: 575.98px) { .alert-top__more { display: none; } .alert-top__text span:not(.alert-top__todo) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }

.alert-card { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.2rem; border-radius: var(--rk-radius-lg); border: 1px solid var(--rk-border); border-left: 6px solid #C2410C; background: var(--rk-bg); color: var(--rk-text); text-decoration: none; }
.alert-card:hover { border-color: var(--rk-border-strong); color: var(--rk-text); }
.alert-card.is-red { border-left-color: #B42318; }
.alert-card.is-green { border-left-color: #2F7A4F; }
.alert-card__badge { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: #B42318; }
.alert-card.is-orange .alert-card__badge { color: #9A3412; }
.alert-card.is-green .alert-card__badge { color: var(--rk-success); }
.alert-card__title { font-size: 1.1rem; }
.alert-card__meta { font-size: .88rem; color: var(--rk-text-muted); }
.alert-hero { padding: 1.25rem 1.4rem; border-radius: var(--rk-radius-lg); background: #B42318; color: #fff; }
.alert-hero .alert-card__badge { color: inherit; }
.alert-hero.is-orange { background: #FDE7D2; color: #5A2A00; }
.alert-hero.is-green { background: #E3F4E8; color: #14472A; }
.alert-todo { padding: 1rem 1.25rem; border-radius: var(--rk-radius-lg); background: var(--rk-yellow-soft); border: 2px solid #E8B400; font-size: 1.08rem; }
.alert-todo p:last-child { margin-bottom: 0; }
.alert-map { height: 340px; border-radius: var(--rk-radius-lg); border: 1px solid var(--rk-border); }
.alert-hero h1, .alert-hero h2 { color: inherit; }

/* ==========================================================================
   Schwarzes Brett: Bilder (Upload, Vorschau, Galerie, Großansicht)
   ========================================================================== */
.board-upload { border: 1px dashed var(--rk-border-strong); border-radius: var(--rk-radius-lg); padding: 1rem; }
.board-upload__drop { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: var(--rk-radius); background: var(--rk-surface); cursor: pointer; }
.board-upload__drop i { font-size: 1.6rem; color: var(--rk-primary); }
.board-upload__drop span { display: flex; flex-direction: column; }
.board-upload__drop small { color: var(--rk-text-muted); }
.board-upload__drop:hover { background: var(--rk-blue-soft); }
.board-upload:has(input[type=file]:focus-visible) .board-upload__drop { outline: 3px solid color-mix(in srgb, var(--rk-primary) 40%, transparent); outline-offset: 2px; }
.board-upload__list { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; }
.board-upload__list:empty { display: none; }
.board-upload__item { position: relative; border-radius: var(--rk-radius); overflow: hidden; border: 2px solid var(--rk-border); background: var(--rk-surface); }
.board-upload__item.is-cover { border-color: var(--rk-primary); }
.board-upload__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.board-upload__cover { display: flex; align-items: center; gap: .35rem; padding: .35rem .5rem; font-size: .82rem; font-weight: 700; cursor: pointer; }
.board-upload__item.is-cover .board-upload__cover { color: var(--rk-primary); }
.board-upload__remove { position: absolute; top: .3rem; right: .3rem; width: 2rem; height: 2rem; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; }
.board-card__img { position: relative; display: block; margin: -.2rem -.2rem .35rem; border-radius: var(--rk-radius); overflow: hidden; background: var(--rk-surface); }
.board-card__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.board-card__count { position: absolute; right: .5rem; bottom: .5rem; padding: .15rem .5rem; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font-size: .8rem; font-weight: 700; display: inline-flex; gap: .3rem; align-items: center; }
.board-item.has-img .board-card__img { margin: 0 0 .35rem; }
.board-cover { margin: 0; }
.board-cover img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; border-radius: var(--rk-radius-lg); background: var(--rk-surface); }
.board-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.board-gallery li { position: relative; }
.board-gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--rk-radius); }
.board-gallery a:focus-visible img { outline: 3px solid var(--rk-primary); outline-offset: 2px; }
.board-gallery__pending { position: absolute; left: .4rem; top: .4rem; padding: .1rem .45rem; border-radius: 999px; background: var(--rk-yellow-soft); font-size: .75rem; font-weight: 700; }
.lightbox { width: min(96vw, 1200px); max-height: 94vh; padding: 0; border: 0; border-radius: var(--rk-radius-lg); background: #0b0f14; color: #fff; }
.lightbox::backdrop { background: rgba(0,0,0,.8); }
.lightbox img { display: block; max-width: 100%; max-height: 86vh; margin: 0 auto; object-fit: contain; }
.lightbox__close, .lightbox__nav { position: absolute; z-index: 2; border: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 1.2rem; }
.lightbox__close { top: .6rem; right: .6rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav.is-prev { left: .6rem; } .lightbox__nav.is-next { right: .6rem; }
.lightbox__count { text-align: center; margin: .4rem 0 .6rem; font-size: .9rem; opacity: .8; }
.adm-board-imgs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.adm-board-imgs li { display: flex; flex-direction: column; gap: .35rem; padding: .5rem; border: 1px solid var(--rk-border); border-radius: var(--rk-radius); }
.adm-board-imgs li.is-cover { border-color: var(--rk-primary); }
.adm-board-imgs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rk-radius-sm); }

/* Terminserien */
.event-repeat { border: 1px solid var(--rk-border); border-radius: var(--rk-radius-lg); padding: .9rem 1rem; }
.chip-day { min-width: 3rem; justify-content: center; padding: 0 .7rem; }
.btn-check:checked + .chip-day { background: var(--rk-primary); border-color: var(--rk-primary); color: var(--rk-on-primary); }
.btn-check:focus-visible + .chip { outline: 3px solid color-mix(in srgb, var(--rk-primary) 40%, transparent); outline-offset: 2px; }
.event-series summary { cursor: pointer; font-weight: 600; color: var(--rk-primary); }
.event-series__list { margin: .4rem 0 0; padding-left: 1.6rem; display: grid; gap: .2rem; }
.adm-series li { display: flex; gap: .5rem; align-items: center; padding: .15rem 0; }
.adm-main .rk-card { height: auto; }
.event-repeat legend { font-size: 1rem; font-weight: 700; }

/* ---------------------------------------------------------------- Stellenmarkt */
.job-filter { display: grid; grid-template-columns: 1fr; gap: .6rem; background: var(--rk-surface); border-radius: var(--rk-radius-xl); padding: .9rem; }
.job-filter__q { position: relative; }
.job-filter__q > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--rk-text-muted); pointer-events: none; }
.job-filter__q .form-control { padding-left: 2.6rem; background: var(--rk-bg); }
.job-filter__more > summary { list-style: none; width: 100%; }
.job-filter__more > summary::-webkit-details-marker { display: none; }
.job-filter__grid { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-top: .6rem; }
@media (min-width: 576px) { .job-filter__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) {
  .job-filter { grid-template-columns: 1fr auto auto; align-items: start; }
  .job-filter__more > summary { width: auto; }
  .job-filter__more[open] { grid-column: 1 / -1; grid-row: 2; }
  .job-filter__more[open] > summary { display: none; }
  .job-filter__grid { grid-template-columns: repeat(5, 1fr); margin-top: 0; }
}
.chip small { font-weight: 600; opacity: .7; margin-left: .15rem; }

.job-list { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 768px) { .job-list { grid-template-columns: 1fr 1fr; } }
.job-card { position: relative; display: flex; gap: .9rem; align-items: flex-start; padding: 1rem; background: var(--rk-bg); border: 1px solid var(--rk-border); border-radius: var(--rk-radius-lg); transition: border-color .15s, box-shadow .15s; }
.job-card:hover, .job-card:focus-within { border-color: var(--rk-primary); box-shadow: 0 4px 16px rgba(21, 94, 168, .08); }
.job-card.is-top { border-color: var(--rk-accent); box-shadow: inset 4px 0 0 var(--rk-accent); }
.job-card__body { min-width: 0; flex: 1; }
.job-card__tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .3rem; }
.job-card__title { font-size: 1.05rem; font-weight: 800; margin: 0 0 .15rem; line-height: 1.3; }
.job-card__title a { color: var(--rk-text); text-decoration: none; }
.job-card__title a:hover { color: var(--rk-primary); }
.job-card__employer { margin: 0 0 .35rem; font-weight: 600; color: var(--rk-text-muted); }
.job-card__meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin: 0; font-size: .85rem; color: var(--rk-text-muted); }
.job-card__meta i { margin-right: .3rem; width: 1em; text-align: center; }
.job-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--rk-blue-soft); color: var(--rk-primary-dark); }
.job-tag.is-new { background: var(--rk-green-soft); color: var(--rk-success); }
.job-tag.is-top { background: var(--rk-yellow-soft); color: var(--rk-warning); }
.job-logo { flex: none; width: 52px; height: 52px; border-radius: var(--rk-radius); background: var(--rk-surface-2); color: var(--rk-primary-dark); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--rk-border); text-decoration: none; }
.job-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.job-logo--lg { width: 76px; height: 76px; font-size: 1.4rem; border-radius: var(--rk-radius-lg); }

.job-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.25rem; }
.job-head h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
.job-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 0 0 1.5rem; }
@media (min-width: 768px) { .job-facts { grid-template-columns: repeat(3, 1fr); } }
.job-facts > div { background: var(--rk-surface); border-radius: var(--rk-radius); padding: .7rem .85rem; }
.job-facts dt { font-size: .78rem; font-weight: 600; color: var(--rk-text-muted); }
.job-facts dt i { margin-right: .35rem; color: var(--rk-primary); }
.job-facts dd { margin: 0; font-weight: 700; }
.job-text h2 { margin-top: 1.5rem; }
.job-text ul { padding-left: 1.2rem; }
.job-apply { background: var(--rk-bg); border: 1px solid var(--rk-border); border-radius: var(--rk-radius-lg); padding: 1.2rem; }
@media (min-width: 992px) { .job-apply { position: sticky; top: 96px; } }
.job-apply-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--rk-tabbar-h) + env(safe-area-inset-bottom)); z-index: 1030; padding: .6rem 16px; background: var(--rk-bg); border-top: 1px solid var(--rk-border); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); }
body:has(.job-apply-bar) main { padding-bottom: 72px; }
@media (min-width: 992px) { body:has(.job-apply-bar) main { padding-bottom: 0; } }
.home-jobs .job-list { grid-template-columns: 1fr; }
@media (min-width: 992px) { .home-jobs .job-list { grid-template-columns: repeat(3, 1fr); } }
.adm-form__heading { border-top: 1px solid var(--rk-border); padding-top: 1rem; }

/* ---------------------------------------------------------------- Mein Verein / Mein Betrieb */
.org-list { grid-template-columns: minmax(0, 1fr); }
.org-list li { min-width: 0; display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border: 1px solid var(--rk-border); border-radius: var(--rk-radius); }
.org-list__date { flex: none; width: 6.2rem; font-weight: 700; font-size: .9rem; line-height: 1.2; }
.org-list__date small { display: block; font-weight: 500; color: var(--rk-text-muted); }
.min-w-0 { min-width: 0; }
.org-plan { border: 1px solid var(--rk-border); border-radius: var(--rk-radius); padding: .75rem .9rem; margin-bottom: .5rem; }
.org-plan.is-current { border-color: var(--rk-success); background: var(--rk-green-soft); }
.org-cta { display: flex; flex-direction: column; gap: .5rem; height: 100%; }
@media (max-width: 575.98px) { .org-list li { flex-wrap: wrap; } .org-list li > .flex-grow-1 { flex-basis: 100%; } .org-list__date { width: auto; } }

/* ---------------------------------------------------------------- Startseite: Kacheln auf dem Smartphone */
.home-tiles { display: grid; gap: .6rem; }
.home-tile { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; background: var(--rk-bg); border: 1px solid var(--rk-border); border-radius: var(--rk-radius-lg); color: var(--rk-text); text-decoration: none; min-height: 72px; }
.home-tile:hover, .home-tile:focus-visible { border-color: var(--rk-primary); color: var(--rk-text); }
.home-tile__icon { flex: none; width: 48px; height: 48px; border-radius: var(--rk-radius); display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; padding: 0; }
.home-tile__icon.tile-green { color: var(--rk-success); } .home-tile__icon.tile-blue { color: var(--rk-primary); background: var(--rk-blue-soft); } .home-tile__icon.tile-yellow { color: var(--rk-warning); }
.home-tile__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.home-tile__text strong { font-size: 1.05rem; font-weight: 800; }
.home-tile__text span { font-size: .875rem; color: var(--rk-text-muted); }
.home-tile__arrow { color: var(--rk-text-muted); }

/* ---------------------------------------------------------------- Cookie-Hinweis */
.consent { position: fixed; left: 0; right: 0; bottom: calc(var(--rk-tabbar-h) + env(safe-area-inset-bottom)); z-index: 1060; padding: 0 12px 12px; pointer-events: none; }
@media (min-width: 992px) { .consent { bottom: 0; padding: 0 24px 24px; } }
.consent[hidden] { display: none; }
.consent__box { pointer-events: auto; max-width: 720px; margin: 0 auto; background: var(--rk-bg); color: var(--rk-text); border: 1px solid var(--rk-border-strong); border-radius: var(--rk-radius-lg); box-shadow: 0 8px 32px rgba(0, 0, 0, .18); padding: 1rem 1.1rem; max-height: calc(100vh - var(--rk-tabbar-h) - 40px); overflow-y: auto; }
.consent__details { margin-bottom: .75rem; }
.consent__details summary { cursor: pointer; font-weight: 700; color: var(--rk-primary); }
.consent__cats { display: grid; gap: .6rem; margin-top: .6rem; }
.consent__cats .form-check { padding: .6rem .6rem .6rem 3rem; background: var(--rk-surface); border-radius: var(--rk-radius); }
.consent__cats code { font-size: .8em; }
.consent__buttons { display: grid; grid-template-columns: 1fr; gap: .5rem; }
@media (min-width: 576px) { .consent__buttons { grid-auto-flow: column; grid-auto-columns: 1fr; } }
.btn-link-plain { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; font: inherit; }
.site-footer .btn-link-plain { color: var(--rk-text-muted); }
.badge-ad { background: var(--rk-surface); color: var(--rk-text-muted); border: 1px solid var(--rk-border-strong); font-weight: 700; }

/* ---------------------------------------------------------------- Kalender: Kopfbereich */
.cal-title { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.75rem); margin-bottom: .25rem; }
.cal-bar { display: flex; gap: .5rem; margin: .9rem 0 .75rem; }
.cal-search { position: relative; flex: 1; min-width: 0; }
.cal-search > i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--rk-text-muted); pointer-events: none; }
.cal-search .form-control { padding-left: 2.5rem; min-height: 48px; border-radius: 999px; background: var(--rk-surface); border-color: transparent; }
.cal-search .form-control:focus { background: var(--rk-bg); border-color: var(--rk-primary); }
.cal-add { flex: none; min-width: 48px; min-height: 48px; padding-inline: .9rem; border-radius: 999px; }
@media (max-width: 767.98px) { .cal-add { width: 48px; padding: 0; } .cal-add i { font-size: 1.15rem; } }
.cal-when { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; background: var(--rk-surface); border-radius: 999px; margin-bottom: .6rem; max-width: 520px; }
.cal-when a { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--rk-text); text-decoration: none; white-space: nowrap; }
.cal-when a:hover { background: var(--rk-bg); }
.cal-when a.active { background: var(--rk-bg); color: var(--rk-primary); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.cal-filters { display: flex; gap: .5rem; align-items: center; }
.cal-cats { flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 1.5rem; }
.cal-more-toggle { flex: none; background: var(--rk-bg); }
.cal-more { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .5rem; }
.cal-more__veedel .form-select { min-width: 200px; min-height: 40px; border-radius: 999px; }
@media (max-width: 767.98px) {
  .js .cal-more:not(.is-open) { display: none; }
  .cal-more { padding: .75rem; background: var(--rk-surface); border-radius: var(--rk-radius-lg); }
  .cal-more__veedel { flex: 1 1 100%; }
  .cal-more__veedel .form-select { width: 100%; }
}
@media (min-width: 768px) { .cal-cats { -webkit-mask-image: none; mask-image: none; padding-right: 0; } }
.cal-result { margin: .75rem 0 0; font-weight: 600; }
.cal > .empty-state { margin-top: 1.25rem; }
.club-logo.has-img { background: #FFFFFF; overflow: hidden; box-shadow: inset 0 0 0 1px var(--rk-border); }
.club-logo.has-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.club-logo.lg.has-img img { padding: 6px; }
@media (min-width: 768px) { .club-logo.lg { width: 96px; height: 96px; border-radius: 26px; font-size: 1.8rem; } }
.club-head__top { position: relative; margin-top: -40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
@media (min-width: 768px) { .club-head__top { margin-top: -52px; } }

/* Startseite: Schnellzugriffe – alle gleich hoch, ab Desktop Symbol über dem Text */
.home-quick .col { display: flex; }
.home-quick .quick-action { flex: 1; }
@media (min-width: 1200px) {
  .home-quick .quick-action { flex-direction: column; justify-content: center; text-align: center; gap: .5rem; padding: 1rem .75rem; min-height: 112px; line-height: 1.25; }
  .home-quick .quick-action i { width: 44px; height: 44px; border-radius: 12px; font-size: 1.15rem; }
}

/* ---------- Veranstaltungsorte ---------- */
.venue-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.venue-card { display: flex; gap: .85rem; align-items: center; padding: .75rem; text-decoration: none; color: inherit; min-width: 0; }
.venue-card:hover { border-color: var(--rk-primary); }
.venue-card img, .venue-card__icon { flex: none; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.venue-card__icon { display: grid; place-items: center; background: var(--rk-blue-soft); color: var(--rk-primary); font-size: 1.5rem; }
.venue-card__body { display: grid; gap: .1rem; min-width: 0; }
.venue-card__body strong { overflow-wrap: anywhere; }
.venue-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }

/* ---------- Verlaufsgrafik (app/lib/charts.php) ---------- */
.chart { --chart-line: var(--rk-primary); --chart-fill: color-mix(in srgb, var(--rk-primary) 14%, transparent); --chart-bar: color-mix(in srgb, var(--rk-teal) 45%, transparent);
  position: relative; padding: 0 0 1.6rem 2.6rem; outline-offset: 4px; }
.chart:focus-visible { outline: 2px solid var(--rk-primary); border-radius: var(--rk-radius-sm); }
.chart__plot { position: relative; height: 220px; touch-action: pan-y; cursor: crosshair; }
@media (min-width: 768px) { .chart__plot { height: 260px; } }
.chart__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart__svg * { vector-effect: non-scaling-stroke; }
.chart__grid { stroke: var(--rk-border); stroke-width: 1; }
.chart__grid--x { stroke-dasharray: 2 4; }
.chart__line { fill: none; stroke: var(--chart-line); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart__area { fill: var(--chart-fill); stroke: none; }
.chart__bar { fill: var(--chart-bar); }
.chart__mark { stroke-width: 1.5; stroke-dasharray: 6 5; stroke: var(--rk-warning); }
.chart__mark.is-ii { stroke: var(--rk-danger); }
.chart__y { position: absolute; left: -2.6rem; width: 2.2rem; text-align: right; transform: translateY(-50%); font-size: .75rem; color: var(--rk-text-muted); font-variant-numeric: tabular-nums; }
.chart__marklabel { position: absolute; left: .4rem; transform: translateY(-115%); font-size: .72rem; font-weight: 700; color: var(--rk-warning); background: var(--rk-bg); padding: 0 .3rem; border-radius: 4px; pointer-events: none; white-space: nowrap; }
.chart__marklabel.is-ii { color: var(--rk-danger); }
.chart__dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--chart-line); box-shadow: 0 0 0 3px var(--rk-bg); pointer-events: none; }
.chart__cursor { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--rk-text-muted); pointer-events: none; }
.chart__tip { position: absolute; top: .25rem; display: grid; gap: .05rem; padding: .4rem .6rem; border-radius: var(--rk-radius-sm); background: var(--rk-text); color: var(--rk-bg); font-size: .8rem; line-height: 1.3; white-space: nowrap; pointer-events: none; z-index: 2; }
.chart__tip strong { font-size: .95rem; }
.chart__xaxis { position: absolute; left: 2.6rem; right: 0; bottom: 0; height: 1.3rem; }
.chart__xaxis span { position: absolute; transform: translateX(-50%); font-size: .75rem; color: var(--rk-text-muted); white-space: nowrap; }
.chart--empty { padding: 2rem 1rem; text-align: center; color: var(--rk-text-muted); }
.chart--wx { --chart-line: var(--rk-danger); }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--rk-surface); gap: 2px; }
.seg a { padding: .3rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--rk-text-muted); text-decoration: none; white-space: nowrap; }
.seg a.active { background: var(--rk-bg); color: var(--rk-text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* ---------- Rheinpegel ---------- */
.pegel-now, .pegel-chartcard, .wx-now, .wx-chartcard { padding: 1.1rem 1.2rem; }
.pegel-now { display: grid; gap: .35rem; height: 100%; align-content: start; }
.pegel-now .small-label { color: var(--rk-primary); display: flex; gap: .45rem; align-items: center; }
.pegel-now__value { font-size: 3.2rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pegel-now__value small { font-size: 1.4rem; font-weight: 700; }
.pegel-now__trend { font-weight: 700; display: flex; gap: .45rem; align-items: center; }
.pegel-now__note { margin: .5rem 0 0; padding: .6rem .75rem; border-radius: var(--rk-radius-sm); background: var(--rk-blue-soft); font-size: .9rem; }
.pegel-now.is-i { border-color: var(--rk-warning); } .pegel-now.is-i .pegel-now__note { background: var(--rk-yellow-soft); }
.pegel-now.is-ii { border-color: var(--rk-danger); } .pegel-now.is-ii .pegel-now__note { background: var(--rk-red-soft); }
.pegel-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: .75rem 0 0; padding-top: .75rem; border-top: 1px solid var(--rk-border); }
.pegel-stats dt { font-size: .78rem; font-weight: 600; color: var(--rk-text-muted); }
.pegel-stats dd { margin: 0; font-weight: 800; }
.pegel-stats dd .small { display: block; font-weight: 400; }
@media (max-width: 420px) { .pegel-stats { grid-template-columns: 1fr 1fr; } }
.pegel-scale { display: grid; gap: .6rem; }
.pegel-scale li { display: grid; gap: .1rem; padding-left: .8rem; border-left: 4px solid var(--rk-primary); }
.pegel-scale li.is-i { border-color: var(--rk-warning); } .pegel-scale li.is-ii { border-color: var(--rk-danger); }
.pegel-scale span { font-size: .9rem; color: var(--rk-text-muted); }

/* ---------- Wetter ---------- */
.wx-alert { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; margin-bottom: .75rem; border-radius: var(--rk-radius); background: var(--rk-yellow-soft); color: var(--rk-text); text-decoration: none; }
.wx-alert i { color: var(--rk-warning); margin-top: .2rem; }
.wx-alert.is-severe, .wx-alert.is-extreme { background: var(--rk-red-soft); } .wx-alert.is-severe i, .wx-alert.is-extreme i { color: var(--rk-danger); }
.wx-now { height: 100%; display: grid; gap: 1rem; align-content: start; }
.wx-now__main { display: flex; gap: 1rem; align-items: center; }
.wx-now__icon { font-size: 3.4rem; color: var(--rk-accent); width: 4.2rem; text-align: center; flex: none; }
.wx-now__temp { display: block; font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.wx-now__label { display: block; font-weight: 700; }
.wx-now__range { display: block; font-size: .9rem; color: var(--rk-text-muted); }
.wx-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; }
.wx-facts dt { font-size: .78rem; font-weight: 600; color: var(--rk-text-muted); display: flex; gap: .4rem; align-items: center; }
.wx-facts dd { margin: 0; font-weight: 700; }
.wx-legend { display: inline-flex; align-items: center; gap: .4rem; color: var(--rk-text-muted); }
.wx-legend__line { width: 16px; height: 3px; border-radius: 2px; background: var(--rk-danger); }
.wx-legend__bar { width: 8px; height: 12px; border-radius: 2px; background: color-mix(in srgb, var(--rk-teal) 45%, transparent); margin-left: .5rem; }
.wx-hours { position: relative; display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x proximity; }
.wx-hour { position: relative; flex: none; width: 4.4rem; display: grid; justify-items: center; gap: .3rem; padding: .7rem .3rem; border-radius: var(--rk-radius); background: var(--rk-surface); scroll-snap-align: start; }
.wx-hour i { font-size: 1.3rem; color: var(--rk-primary); }
.wx-hour__rain { color: var(--rk-teal); white-space: nowrap; } .wx-hour__rain i { font-size: .75rem; } .wx-hour__rain.is-dry { color: var(--rk-text-muted); opacity: .7; }
.wx-days { display: grid; gap: .4rem; margin: 0; }
.wx-day { position: relative; display: grid; grid-template-columns: 5.2rem 2rem minmax(0, 1fr); grid-template-areas: "name icon temps" "name icon rain"; align-items: center; column-gap: .75rem; row-gap: .15rem; padding: .7rem .9rem; border-radius: var(--rk-radius); background: var(--rk-surface); }
.wx-day__name { grid-area: name; display: grid; line-height: 1.25; }
.wx-day__icon { grid-area: icon; font-size: 1.4rem; color: var(--rk-primary); text-align: center; }
.wx-day__temps { grid-area: temps; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) 2.4rem; align-items: center; gap: .5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.wx-day__min { color: var(--rk-text-muted); text-align: right; }
.wx-day__bar { position: relative; height: 6px; border-radius: 3px; background: var(--rk-border); }
.wx-day__bar span { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, var(--rk-teal), var(--rk-accent), var(--rk-danger)); min-width: 6px; }
.wx-day__rain { grid-area: rain; color: var(--rk-teal); }
.wx-day__extra { display: none; }
@media (min-width: 768px) {
  .wx-day { grid-template-columns: 7rem 2.2rem 9rem minmax(0, 1fr) 10rem; grid-template-areas: "name icon rain temps extra"; }
  .wx-day__extra { display: block; grid-area: extra; text-align: right; }
}
@media (max-width: 575.98px) { .chart__xaxis span.is-minor { display: none; } }

/* ---------- Branchen: Unterrubriken ---------- */
.adm-subcats__group { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; margin: 0; padding: 0; }
.adm-subcats .btn-check:disabled + .chip { opacity: .45; }
.biz-subs { margin-top: -.25rem; }
.biz-subs .chip small, .chip small { font-weight: 400; opacity: .75; }
.biz-cats { display: grid; gap: .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .biz-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.biz-cats a { display: flex; flex-direction: column; gap: .2rem; min-width: 0; text-decoration: none; color: inherit; }
.biz-cats a:hover strong { text-decoration: underline; }
.biz-cats a.active { border-color: var(--rk-primary); background: var(--rk-blue-soft); }

/* ---------- Footer: Social Media ---------- */
.footer-social { display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-social a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--rk-border-strong); color: var(--rk-text); text-decoration: none; font-weight: 600; font-size: .9rem; }
.footer-social a:hover { border-color: var(--rk-primary); color: var(--rk-primary); }
.footer-social i { font-size: 1.15rem; }
