/* osna⁺ – Stylesheet
   Gestaltung nach den Prinzipien der Apple Human Interface Guidelines:
   Systemschrift (San Francisco), gruppierte Flächen, Widgets, Haarlinien, Vibrancy, große Titel.
   Keine externen Schriften, keine Inline-Styles (CSP). */

/* ============ Design-Tokens ============ */
:root {
  --bg: #f2f2f7;
  --surface: #ffffff;
  --surface-2: #f2f2f7;
  --elev: #ffffff;
  --text: #000000;
  --text-2: rgba(60, 60, 67, .78);
  --text-3: rgba(60, 60, 67, .55);
  --sep: rgba(60, 60, 67, .2);
  --fill: rgba(118, 118, 128, .12);
  --fill-2: rgba(118, 118, 128, .2);
  --bar: rgba(249, 249, 251, .78);
  --accent: #087a6e;
  --accent-on: #ffffff;
  --accent-soft: rgba(8, 122, 110, .12);
  --plus: #0e9f8e;
  --focus: #0a84ff;
  --green: #248a3d; --orange: #c93400; --red: #d70015;
  --dot-green: #34c759; --dot-orange: #ff9500; --dot-red: #ff3b30;
  --tint-wetter: #0a84ff; --tint-umwelt: #30b350; --tint-mobil: #ff9500; --tint-stadt: #af52de; --tint-warn: #ff3b30;
  --l0: #d8f5df; --l1: #e9f7cf; --l2: #fff1bf; --l3: #ffdcb8; --l4: #ffc9c6;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .05);
  --shadow-pop: 0 10px 40px rgba(0, 0, 0, .18), 0 2px 8px rgba(0, 0, 0, .08);
  --r-lg: 22px; --r-md: 14px; --r-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-num: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #1c1c1e; --surface-2: #2c2c2e; --elev: #2c2c2e;
    --text: #ffffff; --text-2: rgba(235, 235, 245, .7); --text-3: rgba(235, 235, 245, .45);
    --sep: rgba(84, 84, 88, .55); --fill: rgba(118, 118, 128, .24); --fill-2: rgba(118, 118, 128, .36);
    --bar: rgba(22, 22, 24, .72);
    --accent: #40dccb; --accent-on: #002b26; --accent-soft: rgba(64, 220, 203, .16); --plus: #40dccb; --focus: #409cff;
    --green: #30d158; --orange: #ff9f0a; --red: #ff6961;
    --dot-green: #30d158; --dot-orange: #ff9f0a; --dot-red: #ff453a;
    --tint-wetter: #0a84ff; --tint-umwelt: #30d158; --tint-mobil: #ff9f0a; --tint-stadt: #bf5af2; --tint-warn: #ff453a;
    --l0: #133d1f; --l1: #2b3a12; --l2: #3d3410; --l3: #4a2a12; --l4: #4f1b1b;
    --shadow-card: none; --shadow-pop: 0 10px 40px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #1c1c1e; --surface-2: #2c2c2e; --elev: #2c2c2e;
  --text: #ffffff; --text-2: rgba(235, 235, 245, .7); --text-3: rgba(235, 235, 245, .45);
  --sep: rgba(84, 84, 88, .55); --fill: rgba(118, 118, 128, .24); --fill-2: rgba(118, 118, 128, .36);
  --bar: rgba(22, 22, 24, .72);
  --accent: #40dccb; --accent-on: #002b26; --accent-soft: rgba(64, 220, 203, .16); --plus: #40dccb; --focus: #409cff;
  --green: #30d158; --orange: #ff9f0a; --red: #ff6961;
  --dot-green: #30d158; --dot-orange: #ff9f0a; --dot-red: #ff453a;
  --tint-wetter: #0a84ff; --tint-umwelt: #30d158; --tint-mobil: #ff9f0a; --tint-stadt: #bf5af2; --tint-warn: #ff453a;
  --l0: #133d1f; --l1: #2b3a12; --l2: #3d3410; --l3: #4a2a12; --l4: #4f1b1b;
  --shadow-card: none; --shadow-pop: 0 10px 40px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ============ Basis ============ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.47 var(--font); letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .15em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); margin: 1.4em 0 .45em; line-height: 1.15; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(1.9rem, 6vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; margin-top: .2em; }
h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.025em; }
h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -.02em; }
p { margin: .45em 0 .9em; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: .5px solid var(--sep); vertical-align: top; overflow-wrap: normal; word-break: normal; hyphens: manual; }
thead th { font-size: .78rem; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
tbody tr:last-child > * { border-bottom: 0; }
td.num, th.num { text-align: right; }
code { font-family: var(--mono); font-size: .9em; }
input, select, textarea, button { font: inherit; letter-spacing: inherit; }
main p, main li, main dd, main dt, main figcaption, main summary { overflow-wrap: anywhere; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -5rem; background: var(--surface); padding: .75rem 1rem; z-index: 100; border-radius: var(--r-sm); box-shadow: var(--shadow-pop); }
.skip-link:focus { top: calc(1rem + env(safe-area-inset-top, 0px)); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
.muted { color: var(--text-2); }
.small { font-size: .84rem; letter-spacing: -.01em; }
.plain { list-style: none; padding: 0; margin: 0; }
.inline { display: inline; }
.i { width: 1.3em; height: 1.3em; flex: none; vertical-align: -.28em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.i.inline { width: 1em; height: 1em; vertical-align: -.12em; }

/* ============ Kopfleiste (Vibrancy) ============ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--sep);
}
.header-row { display: flex; align-items: center; gap: .5rem; min-height: 52px; }
.brand { display: inline-flex; align-items: center; color: var(--text); min-height: 44px; }
.brand:hover { text-decoration: none; }
.wordmark { height: 26px; width: 80px; color: var(--text); overflow: visible; display: block; }
.wordmark.small { height: 22px; width: 68px; }
.tagline { margin: 0 0 0 .4rem; color: var(--text-2); font-size: .84rem; flex: 1 1 auto; display: none; }
@media (min-width: 760px) { .tagline { display: block; } }
.header-actions { display: flex; gap: .15rem; margin-left: auto; align-items: center; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 44px; min-width: 44px; padding: 0 .55rem;
  border-radius: 999px; border: 0; background: transparent; color: var(--accent); cursor: pointer; font-size: .95rem; font-weight: 500;
}
.btn-icon:hover { background: var(--fill); text-decoration: none; }
.btn-icon .i { width: 1.4em; height: 1.4em; }
.place-name { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.label-sm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.admin-nav { flex-wrap: wrap; }
.admin-nav a { padding: .5rem .55rem; min-height: 44px; display: inline-flex; align-items: center; font-size: .92rem; }

/* Menü als Popover */
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: var(--fill); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 15.5rem; padding: 6px;
  background: color-mix(in srgb, var(--elev) 90%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  border-radius: var(--r-md); box-shadow: var(--shadow-pop); border: .5px solid var(--sep);
  max-height: calc(100vh - 90px - env(safe-area-inset-top, 0px)); overflow-y: auto;
  transform-origin: top right; animation: pop .18s var(--ease);
}
.menu-panel a { display: flex; align-items: center; gap: .7rem; min-height: 44px; padding: 0 .75rem; border-radius: var(--r-sm); color: var(--text); font-size: 1rem; }
.menu-panel a .i { color: var(--accent); }
.menu-panel a:hover, .menu-panel a:focus-visible { background: var(--fill); text-decoration: none; }
.menu-panel .sep { border-top: .5px solid var(--sep); margin-top: 6px; padding-top: 6px; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* Hinweise oben */
.warnbar { padding: .6rem 0 0; }
.warnbar-link {
  display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; padding: .75rem 1rem; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--tint-warn) 14%, var(--surface)); color: var(--text); font-size: .95rem;
}
.warnbar-link .i { color: var(--tint-warn); }
.warnbar-link:hover { text-decoration: none; }
.warnbar-src { margin-left: auto; font-size: .78rem; color: var(--text-2); }
.app-banner { text-align: center; font-size: .92rem; padding: .7rem max(16px, env(safe-area-inset-left, 0px)); background: var(--accent-soft); }
.app-banner .btn { margin-left: .5rem; }
.push-prompt { padding-top: .75rem; }
.push-prompt-row {
  display: flex; gap: .7rem 1rem; align-items: center; flex-wrap: wrap;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: .9rem 1rem;
}
.push-prompt-row > .i { width: 34px; height: 34px; padding: 7px; border-radius: 9px; background: var(--tint-warn); color: #fff; }
.push-prompt-row p { margin: 0; flex: 1 1 14rem; font-size: .92rem; color: var(--text); }
.push-prompt-actions { display: flex; gap: .45rem; }
.breadcrumbs ol { list-style: none; padding: .9rem 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .84rem; color: var(--text-2); }
.breadcrumbs li + li::before { content: "›"; margin-right: .3rem; color: var(--text-3); }

/* ============ Buttons, Chips ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .5rem 1.1rem;
  border-radius: 999px; border: 0; background: var(--fill); color: var(--accent); font-weight: 600; font-size: .97rem; cursor: pointer;
  transition: transform .12s var(--ease), background .15s;
}
.btn:hover { background: var(--fill-2); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-on); }
.btn.primary:hover { filter: brightness(1.06); background: var(--accent); }
.btn.danger { color: var(--red); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-sm { min-height: 36px; padding: .25rem .85rem; font-size: .9rem; }
@media (pointer: coarse) { .btn-sm { min-height: 44px; } }
.file-btn { position: relative; }
.actions-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.actions-row.tight { margin: .25rem 0 .5rem; }
.link-row { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .4rem 0 1rem; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 0 .9rem; padding-bottom: 2px; scroll-snap-type: x proximity; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 36px; padding: .3rem .95rem; border-radius: 999px; border: 0; background: var(--fill); color: var(--text);
  font-size: .9rem; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; scroll-snap-align: start; transition: background .15s;
}
.chip:hover { background: var(--fill-2); text-decoration: none; }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--text); color: var(--bg); }
@media (pointer: coarse) { .chip { min-height: 44px; } }

/* ============ Startseite ============ */
.home-section { padding-top: .4rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.home-section .section-head h2 { font-size: clamp(1.75rem, 6vw, 2.1rem); letter-spacing: -.03em; margin: .9rem 0 .7rem; }
@media (max-width: 640px) { .section-head [data-action="customize"] { display: none; } }
.view-note { margin: -.3rem 0 .8rem; }
.about-box { margin: 2.5rem auto 1rem; color: var(--text-2); font-size: .95rem; }
.about-box h2 { color: var(--text); font-size: 1.1rem; }

.card-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 1.5rem; }
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

/* Widget-Kacheln */
.card {
  --tint: var(--accent);
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 16px 18px 14px; position: relative; display: flex; flex-direction: column; overflow-wrap: break-word;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 10px 28px rgba(0, 0, 0, .09); }
.card:active { transform: scale(.985); }
.card[data-category="wetter"] { --tint: var(--tint-wetter); }
.card[data-category="umwelt"] { --tint: var(--tint-umwelt); }
.card[data-category="mobil"] { --tint: var(--tint-mobil); }
.card[data-category="stadt"] { --tint: var(--tint-stadt); }
.card[data-topic="warnungen"] { --tint: var(--tint-warn); }
.card-head { display: flex; align-items: center; gap: .55rem; }
.card-title { margin: 0; font-size: .95rem; font-weight: 600; letter-spacing: -.01em; flex: 1; color: var(--text); }
.card-title a { color: inherit; }
.card-title a:hover { text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); z-index: 1; }
.topic-icon { color: var(--accent); }
.card .topic-icon { width: 30px; height: 30px; padding: 6px; border-radius: 8px; background: var(--tint); color: #fff; stroke-width: 2.2; vertical-align: middle; }
.card-body { flex: 1; }
.big-value { font-family: var(--font-num); font-size: 2.3rem; font-weight: 600; line-height: 1.05; margin: .55rem 0 .15rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.big-value .u { font-family: var(--font); font-size: 1rem; font-weight: 500; color: var(--text-2); letter-spacing: -.01em; }
[class*="lqi-"] .v, [class*="uv-"] .v, .big-value[class*="fire-"] .v { padding: 0 .35rem; border-radius: 10px; }
.card-label { margin: 0; color: var(--text-2); font-size: .88rem; line-height: 1.35; }
.card-note { margin: .45rem 0 0; font-size: .86rem; color: var(--text-2); line-height: 1.35; }
.spark { width: 100%; height: 38px; margin-top: .55rem; display: block; }
.spark path { fill: none; stroke: var(--tint); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.card-foot { display: flex; flex-wrap: wrap; gap: .2rem .7rem; align-items: center; margin-top: .85rem; padding-top: .65rem; border-top: .5px solid var(--sep); font-size: .76rem; color: var(--text-2); }
.card .card-foot .src { flex-basis: 100%; color: var(--text-3); }
.kind { display: inline-block; font-size: .74rem; font-weight: 500; color: var(--text-2); background: var(--fill); border-radius: 6px; padding: .05rem .4rem; vertical-align: middle; letter-spacing: 0; }
h2 .kind { margin-left: .4rem; }
.new-badge { display: inline-block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--tint-warn); color: #fff; border-radius: 999px; padding: .1rem .45rem; margin-left: .35rem; vertical-align: .15em; }
@media (max-width: 599px) {
  .card { padding: 14px 16px 12px; }
  .card .big-value { font-size: 2.05rem; }
  .card-grid { gap: 12px; }
}

/* Aktualität: Punkt + Text (nie nur Farbe) */
.fresh { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .76rem; color: var(--text-2); letter-spacing: 0; }
.fresh::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--text-3); flex: none; }
.fresh-aktuell::before { background: var(--dot-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot-green) 22%, transparent); }
.fresh-verzoegert::before { background: var(--dot-orange); }
.fresh-veraltet::before { background: var(--dot-red); border-radius: 2px; }
.fresh-nicht_verfuegbar::before { background: transparent; border: 1.5px solid var(--text-3); }

/* Stufenfarben (immer zusätzlich zur Textangabe) */
.lqi-0 .v, .lvl-chip.pollen-0, .lvl-chip.fire-1, .big-value.fire-1 .v, .uv-niedrig .v { background: var(--l0); }
.lqi-1 .v, .lvl-chip.pollen-0_1, .lvl-chip.pollen-1, .lvl-chip.fire-2, .big-value.fire-2 .v, .uv-maessig .v { background: var(--l1); }
.lqi-2 .v, .lvl-chip.pollen-1_2, .lvl-chip.pollen-2, .lvl-chip.fire-3, .big-value.fire-3 .v, .uv-hoch .v { background: var(--l2); }
.lqi-3 .v, .lvl-chip.pollen-2_3, .lvl-chip.fire-4, .big-value.fire-4 .v, .uv-sehrhoch .v { background: var(--l3); }
.lqi-4 .v, .lvl-chip.pollen-3, .lvl-chip.fire-5, .big-value.fire-5 .v, .uv-extrem .v { background: var(--l4); }
.lvl-chip { display: inline-block; padding: .12rem .5rem; border-radius: 8px; font-size: .86rem; }
.lvl-num { font-family: var(--font-num); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ============ Inhaltsseiten ============ */
.topic-page { --tint: var(--accent); padding-bottom: 2.5rem; }
.topic-page[data-category="wetter"] { --tint: var(--tint-wetter); }
.topic-page[data-category="umwelt"] { --tint: var(--tint-umwelt); }
.topic-page[data-category="mobil"] { --tint: var(--tint-mobil); }
.topic-page[data-category="stadt"] { --tint: var(--tint-stadt); }
.topic-page[data-topic-page="warnungen"] { --tint: var(--tint-warn); }
.page-head { margin-bottom: 1.1rem; }
.title-row { display: flex; align-items: center; gap: .75rem; }
.title-row h1 { margin: .55rem 0 .35rem; flex: 1 1 auto; min-width: 0; }
.topic-page .title-row .topic-icon { width: 40px; height: 40px; padding: 8px; border-radius: 11px; background: var(--tint); color: #fff; stroke-width: 2.2; }
.lead { font-size: 1.06rem; color: var(--text-2); line-height: 1.45; margin-top: .2rem; }
.status-line { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; font-size: .86rem; color: var(--text-2); }
.panel { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 18px 20px; margin: 1.1rem 0; overflow-wrap: break-word; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
@media (max-width: 599px) { .panel { padding: 16px; border-radius: 18px; } }
.notice { background: var(--surface); border-radius: var(--r-md); padding: .9rem 1.1rem; box-shadow: var(--shadow-card); }
.notice.ok { background: color-mix(in srgb, var(--dot-green) 13%, var(--surface)); }
.notice.warn { background: color-mix(in srgb, var(--dot-orange) 14%, var(--surface)); }
.notice.error { background: color-mix(in srgb, var(--dot-red) 13%, var(--surface)); color: var(--text); }
.notice > :first-child { margin-top: 0; } .notice > :last-child { margin-bottom: 0; }
.todo { background: color-mix(in srgb, var(--dot-orange) 20%, transparent); padding: 0 .35rem; border-radius: 5px; font-weight: 600; }
.explain { margin-top: 2.2rem; }
.explain p { color: var(--text-2); }
.sources { color: var(--text-2); font-size: .92rem; }
.sources li { margin: .4rem 0; }
.prose { max-width: 44rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -2px; padding: 0 2px; }
.table-scroll > table { min-width: 100%; }
.vals { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .55rem 1.1rem; margin: .5rem 0; }
.vals div { min-width: 0; }
.vals dt { font-size: .74rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .02em; font-weight: 600; }
.vals dd { margin: .1rem 0 0; font-variant-numeric: tabular-nums; }
.vals dd strong { font-family: var(--font-num); font-weight: 600; font-size: 1.12rem; }
.now-grid { display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; align-items: center; }
.now-grid .big-value { font-size: 3.6rem; font-weight: 500; }

/* Gruppierte Listen (inset grouped) */
.station-group h2 { margin-bottom: .3rem; }
.station-list { list-style: none; padding: 0; margin: .4rem 0 1.2rem; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-card); overflow: hidden; }
.station-item { position: relative; padding: .8rem 1rem; overflow-wrap: break-word; }
.station-item + .station-item::before { content: ""; position: absolute; top: 0; left: 1rem; right: 0; border-top: .5px solid var(--sep); }
.station-name { font-weight: 600; color: var(--text); }
a.station-name { color: var(--text); }
a.station-name::after { content: " ›"; color: var(--text-3); font-weight: 400; }
.station-item .vals { margin: .35rem 0 .2rem; }
.station-item .fresh { margin-right: .6rem; }
.station-list.compact .station-item { padding: .65rem 1rem; }
.station-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.station-card h2 { margin-top: 0; font-size: 1.12rem; }
.avail { margin: .3rem 0; }
.avail.unknown { color: var(--text-2); }
.pill { display: inline-block; font-size: .76rem; font-weight: 500; padding: .1rem .55rem; border-radius: 999px; background: var(--fill); color: var(--text-2); margin: .1rem .25rem .1rem 0; }
.status-implementiert { background: color-mix(in srgb, var(--dot-green) 18%, transparent); color: var(--green); }
.status-gestoert { background: color-mix(in srgb, var(--dot-orange) 18%, transparent); color: var(--orange); }
.status-blockiert { background: color-mix(in srgb, var(--dot-red) 16%, transparent); color: var(--red); }
.link-list { padding: 0; list-style: none; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-card); overflow: hidden; }
.link-list li { position: relative; margin: 0; }
.link-list li + li::before { content: ""; position: absolute; top: 0; left: 1rem; right: 0; border-top: .5px solid var(--sep); }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 48px; padding: .6rem 1rem; color: var(--text); }
.link-list a .i { color: var(--text-3); }
.link-list a:hover { background: var(--fill); text-decoration: none; }
.inline-list { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.fire-days, .uv-days { margin: 0; }
.fire-days li, .uv-days li { display: flex; gap: .8rem; align-items: center; padding: .55rem 0; border-bottom: .5px solid var(--sep); }
.fire-days li:last-child, .uv-days li:last-child { border-bottom: 0; }
.fire-days .day, .uv-days .day { min-width: 5.5rem; color: var(--text-2); }
.uv-days .big-value { font-size: 1.6rem; margin: 0; }
.warning { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 1rem 1.2rem; margin: 1rem 0; border-left: 5px solid var(--dot-orange); }
.warning h3 { margin: .2rem 0; }
.warn-level { font-weight: 700; margin: 0; font-size: .85rem; color: var(--orange); text-transform: uppercase; letter-spacing: .02em; }
.warning.warn-3, .warning.warn-4 { border-left-color: var(--dot-red); }
.warning.warn-3 .warn-level, .warning.warn-4 .warn-level { color: var(--red); }
.past-warnings li { padding: .4rem 0; border-bottom: .5px solid var(--sep); }
details.more { margin: .75rem 0; }
details.more > summary, .chart-table summary, .hourly summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--accent); font-weight: 500; list-style: none; }
details.more > summary::-webkit-details-marker, .chart-table summary::-webkit-details-marker, .hourly summary::-webkit-details-marker { display: none; }
details.more > summary::after, .chart-table summary::after, .hourly summary::after { content: "›"; margin-left: .4rem; transition: transform .2s var(--ease); display: inline-block; }
details[open].more > summary::after, .chart-table[open] summary::after, .hourly[open] summary::after { transform: rotate(90deg); }

/* Formulare */
.settings fieldset, .push-form fieldset { border: 0; margin: 1rem 0; padding: 0 1rem .6rem; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-card); min-width: 0; }
.settings legend, .push-form legend { font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--text-2); padding: .9rem 0 .2rem; float: left; width: 100%; }
.settings label, .push-form label { display: flex; align-items: center; gap: .6rem; min-height: 46px; flex-wrap: wrap; clear: both; }
.settings label + label, .push-form label + label { border-top: .5px solid var(--sep); }
.push-form .panel, .push-form { overflow: visible; }
fieldset { min-width: 0; }
input, select, textarea { color: var(--text); background: var(--fill); border: 0; border-radius: var(--r-sm); min-height: 44px; padding: .45rem .75rem; max-width: 100%; font-size: 1rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
input[type="radio"] { width: 1.3rem; height: 1.3rem; min-height: auto; padding: 0; accent-color: var(--accent); }
/* iOS-Schalter für Kontrollkästchen */
input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: none; width: 51px; height: 31px; min-height: 31px; padding: 0; margin: 0;
  border-radius: 999px; background: var(--fill-2); position: relative; cursor: pointer; transition: background .2s var(--ease);
}
input[type="checkbox"]::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16); transition: transform .2s var(--ease);
}
input[type="checkbox"]:checked { background: var(--dot-green); }
input[type="checkbox"]:checked::before { transform: translateX(20px); }
.push-form label input[type="checkbox"], .settings label input[type="checkbox"] { order: 2; margin-left: auto; }
.search-form .row { display: flex; gap: .5rem; flex-wrap: wrap; }
.search-form input { flex: 1 1 14rem; }
.result-list li { padding: .7rem 0; border-bottom: .5px solid var(--sep); }
form.stack, div.stack { display: grid; gap: .5rem; max-width: 26rem; }
.narrow { max-width: 30rem; margin: 2rem auto; }
.grid-form { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: end; }
.grid-form label { display: grid; font-size: .84rem; color: var(--text-2); }
.grid-form input[type="number"] { width: 9rem; }
.admin-table { font-size: .88rem; }
tr.topic-hidden th { color: var(--text-2); }

/* Gestapelte Tabellen auf schmalen Bildschirmen */
@media (max-width: 640px) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: 100%; }
  table.stack tr { background: var(--surface); border-radius: var(--r-md); padding: .35rem .9rem; margin: 0 0 .6rem; box-shadow: var(--shadow-card); }
  .panel table.stack tr { background: var(--fill); box-shadow: none; }
  table.stack th[scope="row"] { border: 0; padding: .45rem 0 .35rem; font-size: 1rem; }
  table.stack td { display: flex; justify-content: space-between; gap: 1rem; border: 0; border-top: .5px solid var(--sep); padding: .45rem 0; text-align: right; }
  table.stack td::before { content: attr(data-label); color: var(--text-2); text-align: left; font-size: .88rem; }
  table.stack td.empty { display: none; }
}
table.traffic th[scope="row"] { min-width: 12rem; }

/* ============ Diagramme ============ */
.chart-wrap { margin: .4rem 0 1.6rem; }
.chart { width: 100%; height: auto; aspect-ratio: 640 / 220; display: block; background: var(--surface); border-radius: var(--r-md); }
.panel .chart { background: transparent; }
.chart .grid { stroke: var(--sep); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .grid.v { stroke-dasharray: 2 4; }
.chart .axis { fill: var(--text-2); font-size: 11px; font-family: var(--font); }
.chart .line { fill: none; stroke: var(--tint, var(--accent)); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--tint, var(--accent)); opacity: .13; stroke: none; }
.chart .dot { fill: var(--tint, var(--accent)); }
.chart .bar { fill: var(--tint, var(--accent)); opacity: .85; }
.chart .gap { fill: var(--fill); }
.chart-caption { font-size: .82rem; color: var(--text-2); margin-top: .4rem; }
.chart-table table { font-size: .86rem; }
.chart-table .table-scroll { max-height: 20rem; overflow-y: auto; }
.chart-empty { color: var(--text-2); font-style: italic; }

/* ============ Karte ============ */
.map { height: min(70vh, 560px); border-radius: var(--r-lg); margin: 1rem 0; overflow: hidden; box-shadow: var(--shadow-card); }
.layer-list { display: flex; flex-wrap: wrap; gap: .1rem 1.2rem; background: var(--surface); border: 0; border-radius: var(--r-md); padding: 0 1rem .4rem; box-shadow: var(--shadow-card); }
.layer-list legend { font-size: .76rem; font-weight: 600; text-transform: uppercase; color: var(--text-2); padding-top: .8rem; float: left; width: 100%; }
.layer-list label { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.legend-dot { width: .85rem; height: .85rem; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .3); }
.l-luft { background: #8250df; } .l-odl { background: #bf8700; } .l-pegel { background: #0969da; } .l-grundwasser { background: #1b7c83; }
.l-verkehr { background: #cf222e; } .l-wetter { background: #e16f24; } .l-boden { background: #7d4e24; } .l-trinkwasser { background: #54aeff; }
.l-toiletten { background: #57606a; } .l-spielplaetze { background: #bf3989; }
.map-marker { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); display: block; }
.map-list ul { columns: 18rem; }
.leaflet-container { font: inherit; }
.leaflet-popup-content-wrapper { border-radius: var(--r-md); }
.leaflet-popup-content a { color: #087a6e; }

/* ============ Dialoge (Sheet auf dem Handy) ============ */
.dialog {
  border: 0; padding: 0; max-width: min(32rem, calc(100vw - 32px)); width: 100%;
  background: var(--elev); color: var(--text); border-radius: var(--r-lg); box-shadow: var(--shadow-pop);
}
.dialog::backdrop { background: rgba(0, 0, 0, .35); }
.dialog[open] { animation: pop .22s var(--ease); }
.dialog-body { padding: 1.3rem 1.3rem 1.2rem; display: grid; gap: .55rem; position: relative; }
.dialog-body h2 { margin: 0; font-size: 1.3rem; }
.dialog-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: .5rem; }
@media (max-width: 640px) {
  .dialog { margin: auto 0 0; max-width: 100%; border-radius: 16px 16px 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .dialog[open] { animation: sheet .32s var(--ease); }
  .dialog-body { padding-top: 1.7rem; }
  .dialog-body::before { content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--fill-2); }
  .dialog-actions .btn { flex: 1; }
}
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
.view-list { border: 0; padding: 0; margin: .3rem 0; display: grid; grid-template-columns: 1fr; max-height: 52vh; overflow-y: auto; background: var(--fill); border-radius: var(--r-md); }
.view-list label { display: flex; align-items: center; gap: .75rem; min-height: 52px; padding: .3rem .9rem; position: relative; font-size: 1rem; }
.view-list label + label::before { content: ""; position: absolute; top: 0; left: 3.4rem; right: 0; border-top: .5px solid var(--sep); }
.view-list label .i { width: 29px; height: 29px; padding: 5px; border-radius: 7px; background: var(--tint, var(--accent)); color: #fff; }
.view-list label[data-category="wetter"] { --tint: var(--tint-wetter); }
.view-list label[data-category="umwelt"] { --tint: var(--tint-umwelt); }
.view-list label[data-category="mobil"] { --tint: var(--tint-mobil); }
.view-list label[data-category="stadt"] { --tint: var(--tint-stadt); }
.view-list label[data-topic="warnungen"] { --tint: var(--tint-warn); }
.view-list label input { order: 2; margin-left: auto; }

/* ============ Fuß ============ */
.site-footer { margin-top: 2.5rem; padding: 1.8rem 0 calc(2.2rem + env(safe-area-inset-bottom, 0px)); color: var(--text-2); font-size: .88rem; border-top: .5px solid var(--sep); }
.footer-grid { display: grid; gap: 1rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer li { margin: .15rem 0; }
.site-footer a { display: inline-flex; min-height: 32px; align-items: center; }
.site-footer .wordmark { color: var(--text-2); }

/* ============ Bewegung, Druck ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .card:hover { transform: none; }
}
@media print { .site-header, .site-footer, .actions-row, .chips, .push-prompt { display: none !important; } .card, .panel { box-shadow: none; border: 1px solid #ccc; } }

/* ============ Orte (Trinkwasser, Toiletten, Spielplätze) ============ */
.poi-overview .section-head h2 { margin: 0 0 .6rem; }
.poi-map { width: 100%; height: auto; aspect-ratio: 3 / 2; max-height: 380px; display: block; border-radius: var(--r-md);
  background: linear-gradient(160deg, color-mix(in srgb, var(--tint) 6%, var(--surface-2)), var(--surface-2)); }
.poi-map .ov-pl { font-size: 6.5px; fill: var(--text-3); font-family: var(--font); font-weight: 500; }
.poi-map .ov-pt { fill: var(--tint); stroke: var(--surface); stroke-width: .9; }
.poi-list { list-style: none; padding: 0; margin: .5rem 0 1.5rem; display: grid; gap: 12px; }
@media (min-width: 760px) { .poi-list { grid-template-columns: 1fr 1fr; } }
.poi-item { display: flex; gap: .9rem; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 12px; align-items: flex-start; }
.poi-mini { flex: none; width: 104px; height: 70px; border-radius: 12px; overflow: hidden; }
/* Per <use> eingebundene Ebenen: Farbe über currentColor (CSS-Selektoren greifen nicht in den Klon) */
.poi-mini .bg { fill: var(--surface-2); }
.poi-mini use.lbl { color: var(--text-3); }
.poi-mini use.dots { color: var(--tint); }
.poi-mini .me-halo { fill: color-mix(in srgb, var(--tint) 25%, transparent); }
.poi-mini .me { fill: var(--tint); stroke: #fff; stroke-width: .9; }
.poi-body { min-width: 0; flex: 1; }
.poi-title { margin: .1rem 0 .15rem; font-size: 1.02rem; }
.poi-title .muted { font-weight: 500; }
.poi-loc { margin: 0 0 .35rem; font-size: .9rem; color: var(--text-2); }
.poi-loc .dist { display: block; }
.poi-tags { margin: .2rem 0; }
.poi-unknown { margin: .15rem 0 .3rem; }
.poi-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 0; }
@media (max-width: 560px) {
  .poi-item { flex-direction: column; gap: .7rem; padding: 0 0 14px; overflow: hidden; }
  .poi-mini { width: 100%; height: 120px; border-radius: 0; }
  .poi-body { padding: 0 16px; }
}

/* ============ Einstellungslisten (iOS-Einstellungen) ============ */
.settings-page { max-width: 44rem; }
.set-head { font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; color: var(--text-2); margin: 1.6rem 16px .4rem; font-family: var(--font); }
.set-group { list-style: none; margin: .4rem 0 0; padding: 0; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-card); overflow: hidden; }
.set-row { position: relative; display: flex; align-items: center; gap: .8rem; min-height: 50px; padding: .45rem 16px; }
.set-row + .set-row::before { content: ""; position: absolute; top: 0; left: 58px; right: 0; border-top: .5px solid var(--sep); }
.set-row-compact { min-height: 44px; }
.set-row-compact + .set-row::before, .set-row + .set-row-compact::before { left: 16px; }
.set-icon { width: 29px; height: 29px; padding: 5.5px; border-radius: 7px; background: var(--tint, var(--accent)); color: #fff; stroke-width: 2.2; flex: none; }
.set-row[data-category="wetter"] { --tint: var(--tint-wetter); }
.set-row[data-category="umwelt"] { --tint: var(--tint-umwelt); }
.set-row[data-category="mobil"] { --tint: var(--tint-mobil); }
.set-row[data-category="stadt"] { --tint: var(--tint-stadt); }
.tint-warn { --tint: var(--tint-warn); }
.tint-gray { --tint: #8e8e93; }
.tint-indigo { --tint: #5856d6; }
.tint-orange { --tint: #ff9500; }
.set-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .05rem; cursor: pointer; }
.set-title { font-size: 1rem; color: var(--text); }
.set-sub { font-size: .8rem; color: var(--text-2); line-height: 1.3; }
.set-sub:empty { display: none; }
.set-label { flex: 1; color: var(--text); }
.set-value { color: var(--text-2); font-size: .95rem; text-align: right; }
.set-row .hidden-note { color: var(--orange); }
.set-select {
  -webkit-appearance: none; appearance: none; background: transparent; color: var(--text-2); border: 0; min-height: 44px;
  padding: 0 1.2rem 0 .4rem; text-align: right; font-size: .97rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%);
  background-size: 5px 5px; background-position: right 7px center, right 2px center; background-repeat: no-repeat;
}
.set-select:focus-visible { outline: 2px solid var(--focus); border-radius: 8px; }
.set-row input[type="time"] { background: var(--fill); border-radius: 8px; min-height: 36px; padding: .2rem .5rem; font-variant-numeric: tabular-nums; }
.set-times { display: inline-flex; align-items: center; gap: .3rem; color: var(--text-2); }
.set-foot { font-size: .8rem; color: var(--text-2); margin: .45rem 16px 0; line-height: 1.4; }
.notice-ios { color: var(--orange); }
.btn-block { width: 100%; margin-top: 1.6rem; min-height: 50px; font-size: 1.05rem; border-radius: 14px; }
.set-msg { font-size: .88rem; color: var(--text-2); text-align: center; margin: .6rem 0 0; min-height: 1.2em; }
.set-actions { margin-top: 1.2rem; }
.set-actions li { position: relative; }
.set-actions li + li::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--sep); }
.set-actions:not(:has(button:not([hidden]))) { display: none; }
.set-action { width: 100%; min-height: 48px; border: 0; background: transparent; color: var(--accent); font-size: 1rem; text-align: left; padding: 0 16px; cursor: pointer; }
.set-action:hover { background: var(--fill); }
.set-action.destructive { color: var(--red); }
.settings-page .push-form label input[type="checkbox"] { order: initial; margin: 0; }
.settings-page .push-form label + label { border-top: 0; }
@media (max-width: 420px) { .set-select { max-width: 7.5rem; } }
/* Einstellungszeilen: ältere Formularregeln neutralisieren */
.settings-page .push-form .set-text { display: flex; flex-direction: column; align-items: flex-start; flex-wrap: nowrap; min-height: 0; gap: .05rem; text-align: left; }
.set-row, .set-row * { overflow-wrap: normal; }
.set-row input[type="time"] { width: auto; min-width: 0; font-size: .95rem; padding: .2rem .45rem; }
.set-row input[type="time"]::-webkit-calendar-picker-indicator { margin-left: .15rem; opacity: .5; }
.set-times { flex: none; }
@media (max-width: 400px) { .set-times input[type="time"]::-webkit-calendar-picker-indicator { display: none; } }
/* Admin: Mitteilung */
.wide-stack { max-width: 34rem; }
.wide-stack textarea { min-height: 5rem; resize: vertical; }
.check-row { display: flex; align-items: center; gap: .6rem; min-height: 44px; }
.push-preview { display: flex; gap: .7rem; align-items: flex-start; background: var(--surface); border-radius: var(--r-md); padding: .8rem 1rem; margin: .6rem 0; box-shadow: var(--shadow-card); max-width: 26rem; }
.push-preview .i { width: 30px; height: 30px; padding: 6px; border-radius: 7px; background: var(--tint-warn); color: #fff; flex: none; }

/* ============ Startbildschirm (App-Symbole) ============ */
.launcher { padding-top: 1.4rem; }
/* Wie der iPhone-Home-Bildschirm: 4 Spalten, Symbol mit Namen darunter */
.app-grid { list-style: none; margin: 0 auto; padding: 0 4px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem 0; max-width: 26rem; }
@media (min-width: 720px) { .app-grid { grid-template-columns: repeat(6, 1fr); max-width: 44rem; gap: 2rem 0; } }
.app-icon-link { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text); text-align: center; -webkit-tap-highlight-color: transparent; }
.app-icon-link:hover { text-decoration: none; }
.app-icon-link:active .app-icon { transform: scale(.92); filter: brightness(.9); }
.app-icon {
  width: 62px; height: 62px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 4px 10px rgba(0, 0, 0, .1); transition: transform .15s var(--ease), filter .15s var(--ease);
  background: linear-gradient(180deg, var(--g1), var(--g2));
}
@media (min-width: 720px) { .app-icon { width: 76px; height: 76px; border-radius: 17px; } }
.app-umwelt { --g1: #5fe07a; --g2: #1f9d3a; }
.app-parken { --g1: #4aa6ff; --g2: #0055d4; }
.app-muell { --g1: #ffb84d; --g2: #f26b00; }
.app-links { --g1: #5ac8fa; --g2: #007aff; }
.app-wc { --g1: #64b5f6; --g2: #3564bd; }
.app-agenda { --g1: #ff6482; --g2: #e0004d; }
.app-warn { --g1: #ff7a59; --g2: #d70015; }
.app-laden { --g1: #32d5ba; --g2: #087f72; }
.app-sprit { --g1: #8e8cf5; --g2: #4b3fd8; }
/* Spritpreise */
.fuel-best .big-value { margin: .2rem 0; }
.fuel-price sup { font-size: .55em; vertical-align: .6em; margin-left: 1px; }
.fuel-prices { margin-left: auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.fuel-list .fuel-price, .fuel-list .fuel-changed { display: none; }
.fuel-list[data-fuel="e10"] .p-e10, .fuel-list[data-fuel="e5"] .p-e5, .fuel-list[data-fuel="diesel"] .p-diesel { display: block; }
.fuel-list .fuel-price { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.fuel-list .fuel-changed { font-size: .75rem; color: var(--text-2); }
.fuel-item.is-closed .set-title, .fuel-item.is-closed .fuel-price { color: var(--text-2); }
.fuel-none { color: var(--text-2); font-weight: 400; }
.fuel-alarm { margin-top: 2rem; }
.fuel-input { display: inline-flex; align-items: center; gap: .3rem; }
.fuel-input input { width: 6.5rem; text-align: right; font-variant-numeric: tabular-nums; }
.app-icon { position: relative; }
.app-badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #ff3b30; color: #fff;
  font-size: 13px; font-weight: 700; line-height: 22px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }

/* ============ Installations-Hinweis ============ */
.install-card { max-width: 40rem; margin: .9rem auto 0; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 16px; }
@media (max-width: 719px) { .install-card { margin-left: 16px; margin-right: 16px; width: auto; } }
.install-head { display: flex; gap: 12px; align-items: flex-start; }
.install-icon { width: 52px; height: 52px; border-radius: 12px; flex: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.install-intro { flex: 1; min-width: 0; }
.install-intro h2 { font-size: 1.05rem; margin: 0 0 .15rem; }
.install-intro p { margin: 0; font-size: .86rem; color: var(--text-2); line-height: 1.35; }
.install-close { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--fill); color: var(--text-2); font-size: 1.2rem; line-height: 1; cursor: pointer; }
@media (pointer: coarse) { .install-close { width: 36px; height: 36px; } }
.seg { display: flex; background: var(--fill); border-radius: 9px; padding: 2px; margin: 14px 0 6px; }
.seg-btn { flex: 1; border: 0; background: transparent; color: var(--text); font: inherit; font-size: .88rem; font-weight: 500; min-height: 32px; border-radius: 7px; cursor: pointer; }
.seg-btn[aria-selected="true"], .seg-btn[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg-btn[aria-selected="true"], :root:not([data-theme="light"]) .seg-btn[aria-pressed="true"] { background: #636366; } }
:root[data-theme="dark"] .seg-btn[aria-selected="true"], :root[data-theme="dark"] .seg-btn[aria-pressed="true"] { background: #636366; }
.install-steps { list-style: none; margin: 0; padding: 0; }
.install-steps li { display: flex; gap: 12px; align-items: center; padding: 9px 0; font-size: .93rem; line-height: 1.35; }
.install-steps li + li { border-top: .5px solid var(--sep); }
.step-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 700; }
.kbd { display: inline-flex; align-items: center; gap: .3rem; background: var(--fill); border-radius: 7px; padding: .05rem .45rem; font-weight: 500; white-space: nowrap; }
.kbd .i { width: 15px; height: 15px; color: var(--accent); }
.install-now { margin-top: .8rem; }

/* ============ Veranstaltungen ============ */
.agenda-page .chips-scroll { margin-bottom: .5rem; }
.agenda-day { margin-top: 1.4rem; }
.agenda-list { list-style: none; margin: .4rem 0 0; padding: 0; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-card); overflow: hidden; }
.agenda-list li { position: relative; }
.agenda-list li + li::before { content: ""; position: absolute; top: 0; left: 100px; right: 0; border-top: .5px solid var(--sep); }
.agenda-item { display: flex; gap: 14px; align-items: center; padding: 12px 16px; color: var(--text); min-height: 96px; }
.agenda-item:hover { text-decoration: none; }
.agenda-item:active { background: var(--fill); }
.agenda-thumb { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; background: var(--fill); }
.agenda-thumb-empty { display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #ff6482, #e0004d); }
.agenda-thumb-empty .i { width: 30px; height: 30px; }
.agenda-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.agenda-time { font-size: .8rem; font-weight: 600; color: #e0004d; font-variant-numeric: tabular-nums; }
.agenda-title { font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.agenda-meta { font-size: .82rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-body .dist:empty { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .agenda-time { color: #ff6482; } }
:root[data-theme="dark"] .agenda-time { color: #ff6482; }
.agenda-hero { margin: 0 -16px 1rem; }
@media (min-width: 720px) { .agenda-hero { margin: 0 0 1rem; } .agenda-hero img { border-radius: var(--r-lg); } }
.agenda-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--fill); }
.agenda-hero figcaption { font-size: .72rem; color: var(--text-2); padding: .35rem 16px 0; }
.agenda-cats { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #e0004d; margin: 0 0 .3rem; }
.agenda-detail .page-head h1 { font-size: 1.7rem; line-height: 1.15; }
.agenda-facts { margin-top: .8rem; }
.agenda-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.agenda-actions .btn { display: inline-flex; align-items: center; gap: .4rem; }
.agenda-text { max-width: 40rem; }
.agenda-text p { line-height: 1.55; }
.agenda-source { margin-top: 1.4rem; }
.app-icon-sm { width: 40px; height: 40px; border-radius: 10px; }
.app-icon-sm .i { width: 24px !important; height: 24px !important; }

/* ============ Links & Notrufe ============ */
.link-group .set-row { padding: 0; }
.link-row { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 54px; padding: .45rem 16px; color: var(--text); }
.link-row:hover { text-decoration: none; }
.link-row:active { background: var(--fill); }
.link-num { flex: none; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.link-ext { width: 18px; height: 18px; color: var(--text-2); flex: none; }
.link-sos .set-title { font-weight: 600; }
.link-sos .link-num { font-size: 1.35rem; font-family: var(--font-num); color: var(--tint-warn); }
.lt-red { --tint: #ff3b30; } .lt-blue { --tint: #007aff; } .lt-green { --tint: #34c759; } .lt-orange { --tint: #ff9500; }
.lt-teal { --tint: #30b0c7; } .lt-indigo { --tint: #5856d6; } .lt-gray { --tint: #8e8e93; }
.app-label { font-size: 12px; font-weight: 500; line-height: 1.2; max-width: 76px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 720px) { .app-label { font-size: 13px; max-width: 96px; } }
.app-muell-tint { --tint: #f26b00; }

/* ============ Parken ============ */
.park-summary .big-value { margin: 0; }
.park-summary { padding-top: 14px; padding-bottom: 12px; }
.park-locate { margin: .8rem 0 .4rem; }
.park-locate .btn { margin-top: 0; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.park-locate .set-foot { text-align: center; margin-top: .45rem; }
.park-list { list-style: none; padding: 0; margin: .6rem 0 1.4rem; display: grid; gap: 12px; }
@media (min-width: 760px) { .park-list { grid-template-columns: 1fr 1fr; } }
.park-item { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 14px 16px; }
.park-head { display: flex; gap: .75rem; align-items: center; }
.park-badge { flex: none; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: #fff; background: #0a84ff; font-family: var(--font-display); }
.park-badge.busy { background: #ff9500; } .park-badge.full { background: #ff3b30; } .park-badge.unknown { background: #8e8e93; }
.park-title { flex: 1; min-width: 0; }
.park-title h2 { margin: 0; font-size: 1.05rem; }
.park-title h2 a { color: var(--text); }
.park-title p { margin: .1rem 0 0; }
.park-title .dist { display: inline; }
.park-free { text-align: right; flex: none; }
.park-num { display: block; font-family: var(--font-num); font-size: 1.9rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.park-num-label { font-size: .76rem; color: var(--text-2); }
.occ { height: 6px; border-radius: 3px; background: var(--fill); margin: .75rem 0 .35rem; overflow: hidden; }
.occ-bar { display: block; height: 100%; border-radius: 3px; background: var(--dot-green); }
.occ-bar.busy { background: var(--dot-orange); } .occ-bar.full { background: var(--dot-red); }
.park-meta { margin: 0 0 .35rem; }
.trend-fuellt { color: var(--orange); } .trend-leert { color: var(--green); }
.park-tags { margin: .2rem 0; }
.park-details summary { cursor: pointer; color: var(--accent); min-height: 40px; display: flex; align-items: center; list-style: none; font-weight: 500; }
.park-details summary::-webkit-details-marker { display: none; }
.park-details summary::after { content: "›"; margin-left: .4rem; transition: transform .2s var(--ease); }
.park-details[open] summary::after { transform: rotate(90deg); }
.vals.one { grid-template-columns: 1fr; }
.o0 { width: 0%; } .o1 { width: 5%; } .o2 { width: 10%; } .o3 { width: 15%; } .o4 { width: 20%; } .o5 { width: 25%; } .o6 { width: 30%; } .o7 { width: 35%; } .o8 { width: 40%; } .o9 { width: 45%; } .o10 { width: 50%; } .o11 { width: 55%; } .o12 { width: 60%; } .o13 { width: 65%; } .o14 { width: 70%; } .o15 { width: 75%; } .o16 { width: 80%; } .o17 { width: 85%; } .o18 { width: 90%; } .o19 { width: 95%; } .o20 { width: 100%; } 

/* ============ Müllabfuhr ============ */
.muell-search .search-row { display: flex; gap: .5rem; }
.muell-search input { flex: 1; min-width: 0; background: var(--surface); box-shadow: var(--shadow-card); }
.muell-search .set-head { display: block; margin-left: 4px; }
.muell-suggest { margin-top: 6px; }
.muell-suggest button { all: unset; box-sizing: border-box; display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 16px; cursor: pointer; color: var(--text); }
.muell-suggest li + li button { border-top: .5px solid var(--sep); }
.muell-suggest button:active, .muell-suggest button:focus-visible { background: var(--fill); }
.muell-suggest mark { background: none; color: inherit; font-weight: 600; }
.muell-next { text-align: left; }
.muell-next .set-head { margin: 0 0 .2rem; }
.muell-when { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -.03em; margin: .1rem 0 .5rem; }
.bins-big { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: 1.05rem; font-weight: 500; }
.bins-big li { display: inline-flex; align-items: center; gap: .5rem; }
.bin { display: inline-block; width: 14px; height: 18px; border-radius: 3px 3px 4px 4px; position: relative; flex: none; background: #8e8e93; }
.bin::before { content: ""; position: absolute; left: -2px; right: -2px; top: -3px; height: 3px; border-radius: 2px; background: inherit; filter: brightness(.8); }
.bins-big .bin { width: 20px; height: 26px; }
.w-rest { background: #4a4a4f; } .w-bio { background: #8a5a2b; } .w-papier { background: #0a6cff; } .w-gelb { background: #ffcc00; }
.set-row > .bin { margin: 0 7px; }
.muell-cats { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; }
.bin-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; background: var(--fill); border-radius: 999px; padding: .15rem .55rem .15rem .45rem; }
.bin-pill .bin { width: 9px; height: 12px; }
.bin-pill .bin::before { top: -2px; height: 2px; }
.muell-list .set-row { align-items: center; }
/* App-Symbole: feste Piktogrammgröße (Prozentwerte greifen im Grid nicht) */
.app-icon .i { width: 32px; height: 32px; vertical-align: 0; stroke-width: 2; }
@media (min-width: 720px) { .app-icon .i { width: 38px; height: 38px; } }
.topic-page[data-topic-page="parken"] { --tint: #0a84ff; }

/* ============ Große Bildschirme: Webseiten-Layout ============ */
.main-nav, .dash { display: none; }
@media (max-width: 999px) { .dash-slot { display: none; } }
.tile {
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 16px 18px; color: var(--text);
  display: flex; flex-direction: column; gap: .35rem; min-width: 0; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
a.tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 10px 28px rgba(0, 0, 0, .09); }
.tile-head { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.tile-head .app-icon-sm { width: 30px; height: 30px; border-radius: 8px; box-shadow: none; }
.tile-head .app-icon-sm .i { width: 18px !important; height: 18px !important; }
.tile-value { font-family: var(--font-num); font-size: 2rem; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile-value small { font-family: var(--font); font-size: .95rem; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.tile-value-sm { font-size: 1.25rem; letter-spacing: -.01em; }
.tile-text { color: var(--text-2); font-size: .9rem; line-height: 1.35; }
.tile-foot { margin-top: auto; padding-top: .6rem; font-size: .76rem; color: var(--text-2); }
.tile-more { margin-top: auto; padding-top: .6rem; font-size: .88rem; font-weight: 500; color: var(--accent); }
.tile-rows { display: flex; flex-direction: column; }
.tile-row { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; padding: .45rem 0; color: var(--text); }
.tile-row + .tile-row { border-top: .5px solid var(--sep); }
.tile-row small { display: block; color: var(--text-2); font-size: .76rem; }
.tile-row strong { font-family: var(--font-num); font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
a.tile-row:hover { text-decoration: none; color: var(--accent); }
.tile-warn.is-active { box-shadow: inset 0 0 0 2px var(--red), var(--shadow-card); }
.tile-warn.is-active .tile-value { color: var(--red); }
.tile-sos .tile-row strong { color: var(--red); }
.dash-events li + li { border-top: .5px solid var(--sep); }
.dash-events a { display: flex; gap: 1rem; padding: .55rem 0; color: var(--text); align-items: baseline; }
.dash-events a:hover { text-decoration: none; color: var(--accent); }
.dash-events time { flex: none; width: 5.2rem; font-variant-numeric: tabular-nums; color: var(--text-2); font-size: .9rem; }
.dash-events small { display: block; color: var(--text-2); font-size: .8rem; }

@media (min-width: 1000px) {
  .main-nav { display: flex; gap: .15rem; margin-left: 1rem; }
  .main-nav a { padding: .4rem .7rem; border-radius: 999px; color: var(--text); font-size: .92rem; font-weight: 500; white-space: nowrap; }
  .main-nav a:hover { background: var(--fill); text-decoration: none; }
  .main-nav a[aria-current="page"] { background: var(--fill-2); }
  .tagline { display: none; }
  .header-row { min-height: 60px; }

  /* Startseite: Kacheln statt App-Symbole */
  /* Kopfnavigation ersetzt die App-Symbole; bei Ladefehler der Kacheln erscheinen sie wieder */
  html:not(.dash-failed) .launcher, .install-card { display: none !important; }
  .dash-slot { min-height: 60vh; }
  .has-dash .dash-slot, .dash-failed .dash-slot { min-height: 0; }
  .dash { display: block; padding-top: 1.6rem; }
  .dash-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
  .dash-head h2 { font-size: 1.9rem; letter-spacing: -.02em; margin: 0; }
  .dash-head p { margin: 0; }
  .dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; grid-auto-flow: row dense; }
  .dash-tall { grid-row: span 2; }
  .dash-span2 { grid-column: span 2; display: flex; }
  .dash-span2 > .card { flex: 1; }
  .dash-section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 2.2rem 0 .9rem; }
  .dash-section-head h2 { font-size: 1.35rem; margin: 0; }
  .dash-grid-env { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Themenseiten: Inhalt links, Hintergrund und Quellen rechts */
  .topic-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
  .topic-aside { position: sticky; top: 84px; font-size: .92rem; }
  .topic-aside .explain { margin-top: 0; }
  .topic-aside h2 { font-size: 1.1rem; }
  .topic-aside h3 { font-size: .95rem; }
  .topic-aside .actions-row { flex-direction: column; align-items: stretch; }
  .topic-main > :first-child { margin-top: 0; }
}
@media (min-width: 1200px) {
  .wrap { max-width: 1280px; }
  .dash-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dash-grid-env { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .topic-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; }
}

.l-ladesaeulen { background: #2da44e; }

.poi-item.is-nearest-charger { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-lg); }

.app-vfl { --g1: #a66ce0; --g2: #59268b; }
.vfl-match { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--sep); }
.vfl-match p { margin: .25rem 0; }
.vfl-score { white-space: nowrap; font-size: 1.4rem; }

/* Einheitliche, ruhige Oberflächen für alle öffentlichen Seiten. */
.page-head { margin-bottom: 1.8rem; }
.page-head .lead { max-width: 64ch; line-height: 1.55; }
.title-row h1 { letter-spacing: -.04em; }
.topic-main, .topic-aside { min-width: 0; }
.panel, .tile, .card, .park-item, .poi-item { box-shadow: 0 2px 12px rgba(0,0,0,.035); }
.panel { padding: 24px; }
.btn { font-weight: 600; letter-spacing: -.015em; }
.pill { border-radius: 8px; line-height: 1.4; padding: .2rem .55rem; }
.status-line { font-size: .78rem; gap: .35rem .8rem; }
.topic-aside { font-size: .88rem; line-height: 1.55; }
.topic-aside > section { padding: 20px; background: var(--surface); border-radius: 18px; margin: 0 0 14px; }
.topic-aside h2 { font-size: 1rem; margin-top: 0; }
.topic-aside h3 { font-size: .88rem; }
.topic-aside .sources { font-size: .8rem; overflow-wrap: anywhere; }
.table-scroll { background: var(--surface); border-radius: 18px; padding: 8px; margin: 1rem 0; }
.table-scroll th, .table-scroll td { padding: .9rem; }
.set-group { box-shadow: none; }
.set-row { min-height: 58px; }
.set-sub { line-height: 1.45; }
.poi-item { padding: 20px; gap: 16px; }
.poi-mini { width: 68px; height: 68px; }
.poi-title { line-height: 1.3; overflow-wrap: anywhere; }
.poi-tags { line-height: 1.6; }
.poi-unknown { font-size: .75rem; }
.poi-list { grid-template-columns: minmax(0,1fr); gap: 14px; }
.topic-main { container-type: inline-size; }
@container (min-width: 780px) { .poi-list { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 599px) {
  .panel { padding: 20px; }
  .poi-item { flex-direction: row; padding: 18px; overflow: visible; }
  .poi-mini { width: 52px; height: 60px; border-radius: 12px; }
  .poi-body { padding: 0; }
  .topic-aside { margin-top: 28px; }
  .title-row h1 { font-size: 2rem; }
  .table-scroll { padding: 4px; }
}
@media (min-width: 1000px) {
  .header-row { flex-wrap: wrap; row-gap: 8px; }
  .main-nav { min-width: 0; flex-wrap: wrap; }
  .main-nav a { font-size: .84rem; padding: .45rem .55rem; }
  .tile { padding: 24px; }
  .dash-grid { gap: 18px; }
}

/* Laden: kompakte Karten mit Leistungswerten und aufklappbaren Registerdetails. */
.topic-page[data-topic-page="ladesaeulen"] { --tint: var(--accent); }
.charging-locate { margin-bottom: 20px; }
.charging-locate .actions-row { margin: 0 0 8px; }
.charging-locate .btn { padding: .8rem 1.25rem; border-radius: 14px; }
.charging-locate .small { font-size: .76rem; }
.charging-locate [role="status"]:empty { display: none; }
.charging-info { color: var(--text-2); font-size: .88rem; }
.charging-info strong { font-weight: 500; }
.charging-map-disclosure { margin: 22px 0; padding: 0 18px; border: 1px solid var(--sep); border-radius: 16px; }
.charging-map-disclosure > summary { padding: 16px 0; cursor: pointer; color: var(--accent); font-size: .88rem; font-weight: 600; }
.charging-map-disclosure .poi-overview { box-shadow: none; padding: 0 0 18px; margin: 0; }
.charging-map-disclosure .section-head { display: none; }
.charging-map-disclosure .poi-map { max-height: 220px; }
.poi-source-note { font-size: .73rem; line-height: 1.5; max-width: 85ch; }
.charging-list { align-items: start; }
.charging-item { display: flex; flex-direction: column; gap: 0; padding: 24px; border: 1px solid transparent; border-radius: 22px; }
.charging-heading { display: flex; align-items: flex-start; gap: 14px; width: 100%; }
.charging-heading > div { min-width: 0; }
.charging-symbol { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; color: var(--accent); background: var(--accent-soft); }
.charging-symbol .i { width: 24px; height: 24px; }
.charging-item .poi-title { margin: 0 0 5px; font-size: 1.05rem; font-weight: 650; letter-spacing: -.02em; }
.charging-address { color: var(--text-2); font-size: .82rem; margin: 0; line-height: 1.45; overflow-wrap: anywhere; }
.charging-distance { font-size: .75rem; color: var(--text-2); margin: 14px 0 0; }
.charging-distance:empty { display: none; }
.charging-connectors { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; margin: 18px 0 12px; }
.charging-connector { display: flex; flex-direction: column; gap: 5px; padding: 12px 15px; border-radius: 12px; background: var(--surface-2); flex: 1 1 110px; min-width: 0; }
.charging-connector > span { font-size: .73rem; color: var(--text-2); overflow-wrap: anywhere; }
.charging-connector strong { font-size: 1.15rem; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.charging-meta { color: var(--text-2); font-size: .76rem; margin: 0 0 16px; }
.charging-meta span { display: inline; }
.charging-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; width: 100%; border-top: 1px solid var(--sep); padding-top: 14px; }
.charging-details { min-width: 0; flex: 1; font-size: .78rem; }
.charging-details summary { cursor: pointer; padding: 10px 0; color: var(--text-2); }
.charging-details dl { margin: 8px 0 0; }
.charging-details dt { color: var(--text-2); margin-top: 12px; }
.charging-details dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.charging-route { flex: none; border-radius: 11px; gap: 6px; display: inline-flex; align-items: center; }
.charging-nearest { display: none; color: var(--accent); font-size: .7rem; font-weight: 600; margin-bottom: 4px; }
.charging-item.is-nearest-charger { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.charging-item.is-nearest-charger .charging-nearest { display: block; }
@media (max-width: 599px) {
  .charging-item { padding: 20px; }
  .charging-locate .btn { width: 100%; justify-content: center; }
}
.charging-list-head { margin: 24px 0 0; }
.charging-list-head h2 { font-size: 1.15rem; margin: 0; }
.charging-list-head + p { font-size: .76rem; margin: 6px 0 14px; }
h1, h2, h3 { hyphens: none; text-wrap: balance; }
[data-settings-page] { max-width: 860px; }
[data-settings-page] > p { max-width: 70ch; }
.topic-main > section > h2 { font-size: 1.2rem; }
@media (max-width: 599px) { .panel h2 { font-size: 1.15rem; } }

/* Lesbare Diagramme mit eigener Geometrie für schmale Bildschirme. */
.chart-wrap { padding: clamp(12px, 2vw, 24px); background: var(--surface); border: 1px solid var(--sep); border-radius: 22px; overflow: hidden; }
.chart { aspect-ratio: 640 / 280; border-radius: 0; }
.chart .axis { font-size: 12px; font-variant-numeric: tabular-nums; }
.chart .area { opacity: .07; }
.chart .line { stroke-width: 3; }
.chart .grid.v { opacity: .45; }
.chart-mobile { display: none; }
.chart-stats { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0 0 12px; }
.chart-stats dt { font-size: .78rem; color: var(--text-2); }
.chart-stats dd { margin: 3px 0 0; font-size: 1.35rem; font-weight: 600; letter-spacing: -.04em; }
.chart-inspector { border-top: 1px solid var(--sep); padding-top: 14px; }
.chart-inspector[hidden], .chart-cursor[hidden] { display: none; }
.chart-readout { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; font-variant-numeric: tabular-nums; }
.chart-readout strong { font-size: 1rem; }
.chart-inspector label { display: block; font-size: .75rem; color: var(--text-2); margin-top: 12px; }
.chart-inspector input[type="range"] { width: 100%; min-height: 44px; margin: 0; padding: 0; accent-color: var(--tint, var(--accent)); cursor: pointer; }
.chart-cursor { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.chart-caption { font-size: .75rem; line-height: 1.6; margin-top: 12px; }
.chart-wrap { container-type: inline-size; }
@container (max-width: 480px) {
  .chart-desktop { display: none; }
  .chart-mobile { display: block; }
  .chart { aspect-ratio: 360 / 280; }
}

.app-ferien { --g1: #ff927b; --g2: #d94264; }
.calendar-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-bottom: 24px; }
.calendar-highlight { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--sep); color: var(--text); text-decoration: none; }
.calendar-highlight strong { font-size: 1.45rem; letter-spacing: -.04em; }
.calendar-highlight > span:last-child { font-size: .85rem; line-height: 1.5; }
.calendar-list > li { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--sep); }
.calendar-list > li:last-child { border-bottom: 0; }
.calendar-date { flex: 0 0 62px; text-align: center; background: var(--fill); border-radius: 14px; padding: 8px 4px; }
.calendar-date span { display: block; font-size: .68rem; color: var(--text-2); }
.calendar-date strong { font-size: 1.75rem; font-weight: 600; }
.calendar-list h3 { margin: 0 0 5px; font-size: 1rem; }
.calendar-list p { margin: 0; color: var(--text-2); font-size: .85rem; line-height: 1.5; }
.calendar-list .pill { margin-top: 8px; }
.holiday-waste p { margin: 8px 0; }

.app-atlas { --g1: #62b7d9; --g2: #3968c4; }
.atlas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.atlas-card { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--sep); border-radius: 20px; background: var(--surface); color: var(--text); text-decoration: none; }
.atlas-card[hidden] { display: none; }
.atlas-card > span:nth-child(2) { flex: 1; min-width: 0; }
.atlas-card strong { display: block; font-size: .95rem; }
.atlas-card small { display: block; margin-top: 6px; color: var(--text-2); }
.atlas-card .i { flex: 0 0 24px; color: var(--accent); }
.atlas-group { margin: 28px 0; }
.atlas-shortcuts { margin: 20px 0; flex-wrap: wrap; }
.atlas-map { height: min(65vh, 620px); min-height: 350px; margin: 20px 0; }
.atlas-legend { background: var(--surface); border-radius: 16px; padding: 18px; margin: 16px 0; }
.atlas-legend img { background: white; max-width: 100%; height: auto; }
.atlas-object { padding: 16px; border: 1px solid var(--sep); border-radius: 16px; margin: 10px 0; overflow-wrap: anywhere; }
.atlas-object summary { cursor: pointer; min-height: 32px; font-weight: 600; }
.atlas-object .vals { margin-top: 16px; }
