/* Radar – App-Design: Plattformschrift, gruppierte Karten, Tab-Leiste, Blätter von unten.
   Akzent = Orange aus dem App-Icon. */

:root {
  color-scheme: light;
  --bg: #F2F2F4;
  --surface: #FFFFFF;
  --surface-2: #F7F7F9;
  --fill: rgba(118, 118, 128, .12);
  --fill-strong: rgba(118, 118, 128, .2);
  --sep: rgba(60, 60, 67, .14);
  --text: #111114;
  --text-2: rgba(60, 60, 67, .72);
  --text-3: rgba(60, 60, 67, .5);
  --accent: #F2552C;
  --accent-soft: rgba(242, 85, 44, .12);
  --accent-text: #C8401C;
  --on-accent: #FFFFFF;
  --gold: #B8860B;
  --blue: #3A63B8;
  --blue-soft: rgba(58, 99, 184, .12);
  --warn: #B25B00;
  --bar: rgba(242, 242, 244, .82);
  --tab: rgba(250, 250, 252, .86);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .04);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000; --surface: #1C1C1E; --surface-2: #2C2C2E; --fill: rgba(118, 118, 128, .24); --fill-strong: rgba(118, 118, 128, .36);
    --sep: rgba(84, 84, 88, .6); --text: #F5F5F7; --text-2: rgba(235, 235, 245, .66); --text-3: rgba(235, 235, 245, .42);
    --accent: #FF6A42; --accent-soft: rgba(255, 106, 66, .18); --accent-text: #FF8A6A; --gold: #E0B040; --blue: #7FA2F0; --blue-soft: rgba(127, 162, 240, .18); --warn: #FFB35C;
    --bar: rgba(0, 0, 0, .78); --tab: rgba(22, 22, 24, .86); --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000; --surface: #1C1C1E; --surface-2: #2C2C2E; --fill: rgba(118, 118, 128, .24); --fill-strong: rgba(118, 118, 128, .36);
  --sep: rgba(84, 84, 88, .6); --text: #F5F5F7; --text-2: rgba(235, 235, 245, .66); --text-3: rgba(235, 235, 245, .42);
  --accent: #FF6A42; --accent-soft: rgba(255, 106, 66, .18); --accent-text: #FF8A6A; --gold: #E0B040; --blue: #7FA2F0; --blue-soft: rgba(127, 162, 240, .18); --warn: #FFB35C;
  --bar: rgba(0, 0, 0, .78); --tab: rgba(22, 22, 24, .86); --shadow: none;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-text); }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
svg { flex: none; }

/* Grundraster: auf dem Handy volle Breite, am Rechner eine ruhige Spalte */
.view { width: min(720px, 100%); margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom)); }

/* Kopf */
.page-head { padding: 22px 4px 14px; }
.kicker { font-size: 15px; color: var(--text-2); font-weight: 500; }
h1 { font-family: var(--font-display); font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.page-head.with-tools { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.page-head.with-tools > div:first-child { min-width: 0; }
.segmented.mini { flex: none; margin: 0 0 4px; }
.segmented.mini button { padding: 5px 12px; font-size: 13px; }
.newbar {
  display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 14px; padding: 11px 12px 11px 14px; border: 0; border-radius: 12px;
  background: var(--blue-soft); color: var(--blue); font-size: 15px; font-weight: 600; text-align: left;
}
.newbar span { flex: 1; min-width: 0; }
.newbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: calc(44px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top);
  display: grid; place-items: center; font-weight: 600; font-size: 17px;
  background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--sep); opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.bar.show { opacity: 1; transform: none; }
.notice { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); font-size: 15px; }

/* Segment-Umschalter (Pillenform) */
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 2px; border-radius: 10px; background: var(--fill); margin-bottom: 14px; }
.segmented button { border: 0; background: transparent; border-radius: 8px; padding: 7px 8px; font-size: 14px; font-weight: 500; color: var(--text); }
.segmented button[aria-pressed="true"] { background: var(--surface); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }
:root[data-theme="dark"] .segmented button[aria-pressed="true"] { background: #636366; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .segmented button[aria-pressed="true"] { background: #636366; } }
.segmented.inset { margin: 0; }
.segmented.mode button span { color: var(--text-2); font-weight: 500; margin-left: 4px; font-variant-numeric: tabular-nums; }

/* Tagesleiste mit Pfeilen: ein Tag vor oder zurück */
.days-nav { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; align-items: center; gap: 4px; margin: 0 -10px 12px; }
.day-step { width: 32px; height: 32px; border: 0; border-radius: 50%; padding: 0; display: grid; place-items: center; background: var(--fill); color: var(--text); }
.day-step svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.day-step:disabled { opacity: .3; cursor: default; }
.days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px 2px 4px; }
.days::-webkit-scrollbar { display: none; }
.day-chip {
  flex: 0 0 auto; width: 52px; border: 0; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow);
  display: grid; justify-items: center; gap: 1px; padding: 8px 0 7px; scroll-snap-align: center;
}
.day-chip .wd { font-size: 12px; color: var(--text-2); font-weight: 500; }
.day-chip .dn { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.day-chip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.day-chip .dot.none { background: transparent; }
.day-chip.today .wd, .day-chip.today .dn { color: var(--accent-text); }
.day-chip[aria-pressed="true"] { background: var(--accent); box-shadow: none; }
.day-chip[aria-pressed="true"] .wd, .day-chip[aria-pressed="true"] .dn { color: var(--on-accent); }
.day-chip[aria-pressed="true"] .dot { background: var(--on-accent); }
.day-chip .month { font-size: 10px; color: var(--text-3); height: 12px; line-height: 12px; }
.day-chip[aria-pressed="true"] .month { color: rgba(255, 255, 255, .85); }

/* Filter-Chips */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 16px; padding: 2px 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 7px 13px;
  background: var(--fill); font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap;
}
.chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.chip.accent[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.chip-sep { flex: 0 0 1px; background: var(--sep); margin: 4px 2px; }

/* Karten allgemein */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Lichtkarte */
.light { padding: 12px 16px; margin-bottom: 22px; display: grid; gap: 12px; }
.light-city { display: grid; gap: 8px; }
.light-city + .light-city { padding-top: 12px; border-top: .5px solid var(--sep); }
.light-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.light-head strong { font-size: 15px; font-weight: 600; }
.light-head span { font-size: 14px; color: var(--text-2); }
.light-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.light-item { display: grid; gap: 1px; align-content: start; }
.light-item::before { content: ""; width: 26px; height: 4px; border-radius: 2px; background: var(--gold); margin-bottom: 5px; }
.light-item.blue::before { background: var(--blue); }
.light-item .v { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.light-item .l { font-size: 12px; color: var(--text-2); line-height: 1.25; }
.light-item .x { display: flex; align-items: flex-start; gap: 4px; margin-top: 3px; font-size: 12px; line-height: 1.25; color: var(--text-2); }
.light-item .x svg { width: 13px; height: 13px; flex: none; margin-top: 1px; }
/* Mond wie am Himmel: dunkle Scheibe, beleuchteter Teil hell */
.light-item .moon circle { fill: #3A3A3F; }
.light-item .moon path { fill: #F3E6BF; }

/* Abschnitte */
.section { margin-bottom: 22px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px 8px; }
.section-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.section-head span { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.route-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.route-link { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.route-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.stack { display: grid; gap: 10px; }

/* Termin-Karte */
.event { display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 6px; padding: 13px 10px 14px 16px; cursor: pointer; transition: transform .12s; }
.event:active { transform: scale(.985); }
.event-body { min-width: 0; }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px; }
.event-when { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; margin-right: 2px; }
.event-when small { font-size: inherit; font-weight: 500; color: var(--text-2); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--fill); color: var(--text-2); }
.badge.top { background: var(--accent); color: var(--on-accent); }
.badge.tip { background: var(--accent-soft); color: var(--accent-text); }
.badge.new { background: var(--blue-soft); color: var(--blue); }
.badge svg { width: 12px; height: 12px; fill: currentColor; }
.event h3 { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.event-place { display: flex; gap: 5px; font-size: 14px; color: var(--text-2); margin-top: 3px; }
.event .event-place span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-place svg { width: 14px; height: 14px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; }
.event-note { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.event-tip { display: flex; gap: 8px; margin-top: 9px; padding: 9px 11px; border-radius: 12px; background: var(--surface-2); font-size: 14px; line-height: 1.4; }
.event-tip svg { width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: var(--accent-text); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.event-tip span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.event-desc { font-size: 14px; color: var(--text-2); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bookmark { width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; color: var(--text-3); padding: 0; }
.bookmark svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.bookmark[aria-pressed="true"] { color: var(--accent); }
.bookmark[aria-pressed="true"] svg { fill: currentColor; }

.empty { text-align: center; padding: 40px 20px; color: var(--text-2); }
.empty strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }
.empty button { margin-top: 14px; border: 0; border-radius: 999px; padding: 10px 18px; background: var(--accent); color: var(--on-accent); font-weight: 600; }

/* Suche */
.searchfield { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--fill); margin-bottom: 10px; }
.searchfield svg { width: 18px; height: 18px; fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; }
.searchfield input { flex: 1; border: 0; background: transparent; outline: none; font-size: 17px; min-width: 0; }
.hint { font-size: 14px; color: var(--text-2); padding: 0 4px 14px; }

/* Mehr */
.group { margin-bottom: 26px; }
.group h2 { font-size: 13px; font-weight: 500; color: var(--text-2); padding: 0 16px 7px; }
.group .card.rows > * { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 16px; }
.group .card.rows > * + * { border-top: .5px solid var(--sep); }
.group .card:has(.segmented) { padding: 8px; }
.row-sub { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.row-state { font-size: 14px; color: var(--text-2); white-space: nowrap; }
.group .card.rows > .row-switch { align-items: center; cursor: pointer; }
.row-button { border: 0; background: none; width: 100%; text-align: left; font: inherit; color: var(--accent-text); cursor: pointer; }
.hint.below { padding: 8px 16px 0; }
.switch {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 51px; height: 31px; margin: 0; border-radius: 16px;
  background: var(--fill-strong); cursor: pointer; transition: background .2s;
}
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #FFF; box-shadow: 0 2px 4px rgba(0, 0, 0, .22); transition: transform .2s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(20px); }
.switch:disabled { opacity: .45; cursor: default; }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.row-state.off { color: var(--warn); }
.row-link { text-decoration: none; color: var(--accent-text); }
.row-link.danger { color: #E5383B; justify-content: center !important; }

/* Tab-Leiste */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px max(8px, env(safe-area-inset-bottom)); background: var(--tab);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: .5px solid var(--sep);
}
@media (min-width: 760px) {
  .tabbar { left: 50%; right: auto; bottom: 18px; width: 420px; transform: translateX(-50%); border-radius: 22px; border: .5px solid var(--sep); padding: 6px; box-shadow: 0 8px 30px rgba(0, 0, 0, .12); }
}
.tabbar button { position: relative; border: 0; background: none; display: grid; justify-items: center; gap: 2px; padding: 4px 0; color: var(--text-3); font-size: 11px; font-weight: 500; }
.tabbar svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button[aria-current="page"] { color: var(--accent); }
.tabbar button[data-tab="saved"][aria-current="page"] svg { fill: currentColor; }
.tabbar .count { position: absolute; top: 0; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; }

/* Blatt von unten */
.sheet {
  width: 100%; max-width: 640px; max-height: 92vh; margin: auto auto 0; padding: 10px 20px max(22px, env(safe-area-inset-bottom));
  border: 0; border-radius: 14px 14px 0 0; background: var(--surface); color: var(--text); overflow: auto;
}
.sheet[open] { animation: up .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet[open] { animation: none; } .event:active { transform: none; } }
@media (min-width: 760px) { .sheet { margin: auto; border-radius: 16px; padding: 18px 28px 26px; } }
.sheet::backdrop { background: rgba(0, 0, 0, .38); }
.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--fill-strong); margin: 0 auto 14px; }
.sheet-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--fill); display: grid; place-items: center; color: var(--text-2); padding: 0; }
.sheet-close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.sheet h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; margin: 4px 40px 6px 0; }
.sheet .event-meta { margin-bottom: 8px; }
.facts { margin: 14px 0; border-radius: 12px; background: var(--surface-2); }
.fact { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 11px 12px; font-size: 15px; }
.fact + .fact { border-top: .5px solid var(--sep); }
.fact svg { width: 19px; height: 19px; fill: none; stroke: var(--text-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.fact small { display: block; color: var(--text-2); font-size: 13px; }
.sheet-tip { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px; border-radius: 12px; background: var(--accent-soft); margin: 12px 0; font-size: 15px; }
.sheet-tip svg { width: 19px; height: 19px; fill: none; stroke: var(--accent-text); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sheet-tip small { display: block; color: var(--text-2); font-size: 13px; margin-top: 4px; }
.sheet-desc { color: var(--text-2); font-size: 15px; margin: 10px 0; }
.sheet-source { color: var(--text-3); font-size: 13px; margin-top: 10px; }
.actions { display: grid; gap: 8px; margin-top: 16px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 13px; font-size: 16px; font-weight: 600; text-decoration: none; background: var(--fill); color: var(--accent-text); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary[aria-pressed="true"] { background: var(--fill); color: var(--accent-text); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn { font-family: inherit; cursor: pointer; }
.sheet-back {
  position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 2px; height: 30px; padding: 0 12px 0 6px;
  border: 0; border-radius: 15px; background: var(--fill); color: var(--accent-text); font-size: 14px; font-weight: 600;
}
.sheet-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
#sheetContent.has-back { padding-top: 26px; }
.list { display: grid; margin-top: 12px; border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.list-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) 16px; align-items: center; gap: 10px; padding: 11px 12px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.list-row + .list-row { border-top: .5px solid var(--sep); }
.list-when { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.list-title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.list-when small, .list-title small { display: block; margin-top: 1px; font-size: 13px; font-weight: 400; color: var(--text-2); }
.list-row > svg { width: 16px; height: 16px; fill: none; stroke: var(--text-3); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Karte */
.mapwrap { position: relative; margin-bottom: 18px; }
#map { height: min(64vh, 560px); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); z-index: 0; }
.leaflet-container { font: inherit; }
.map-btn {
  position: absolute; z-index: 1; top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border: 0;
  border-radius: 19px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.map-locate { right: 10px; width: 38px; color: #2F7CF6; }
.map-locate svg { width: 19px; height: 19px; fill: currentColor; }
.map-other { left: 10px; padding: 0 14px; }
.map-note { font-size: 13px; color: var(--text-2); padding: 8px 4px 0; }
.map-note:empty { display: none; }
.radar-pin { background: none; border: 0; }
.pin {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid #FFF; background: #6E6E73;
  color: #FFF; font: 700 12px/1 var(--font); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); cursor: pointer;
}
.pin.tip { background: var(--accent); }
.pin.top { width: 34px; height: 34px; margin: -3px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 2px 8px rgba(0, 0, 0, .35); }
.pin:empty::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #FFF; }
.leaflet-control-attribution { font-size: 10px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.6); }
}
:root[data-theme="dark"] #map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.6); }

/* Kurzmeldung */
.toast {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 8px); width: max-content;
  max-width: min(92vw, 420px); padding: 10px 16px; border-radius: 14px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 500;
  text-align: center; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Anmeldung */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login { width: min(360px, 100%); text-align: center; }
.login-icon { width: 84px; height: 84px; border-radius: 20px; display: block; margin: 0 auto 18px; box-shadow: 0 6px 20px rgba(0, 0, 0, .15); }
.login .wordmark { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.login-sub { color: var(--text-2); margin: 4px 0 28px; }
.login-form { display: grid; gap: 12px; text-align: left; }
.login-form label { font-size: 13px; color: var(--text-2); padding-left: 4px; }
.login-form input { font-size: 24px; letter-spacing: .4em; text-align: center; padding: 13px; border: 0; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); outline: none; font-variant-numeric: tabular-nums; }
.login-form input:focus { box-shadow: 0 0 0 2px var(--accent); }
.login-form button { padding: 14px; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-size: 17px; font-weight: 600; }
.login-error { color: #E5383B; font-size: 14px; text-align: center; }
.login-hint { color: var(--text-3); font-size: 13px; margin-top: 22px; }
