:root {
  --bg: #fffaf2;
  --ink: #33281f;
  --ink-soft: #4f3f31;
  --muted: #75604c;
  --line: #ecdfcb;
  --sun: #f29a2e;
  --sun-ink: #9a4f08;
  --half-ink: #83560f;
  --shade-ink: #5d5578;
  --sun-fill: #f5a83a;
  --half-fill: #f7d89e;
  --shade-fill: #e8e3ef;
  --sun-soft: #fdebcc;
  --sky-top: #fff1d6;
  --sky-bottom: #fffaf0;
  --hz-h: 132px;
  --sheet-h: 52vh;
  --shadow: 0 18px 44px -20px rgba(80, 52, 24, .38), 0 2px 6px rgba(80, 52, 24, .06);
  --shadow-sm: 0 4px 12px -6px rgba(80, 52, 24, .28);
  --serif: 'Young Serif', Georgia, serif;
  --sans: 'Figtree', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font: 15px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased; overflow: hidden;
  caret-color: var(--sun-ink);
}
::selection { background: #fde0a8; color: var(--ink); }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--sun-ink); outline-offset: 2px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { display: block; flex: none; }

#map { position: fixed; inset: 0; }

/* ---------- Horizont ---------- */
.horizon {
  position: fixed; z-index: 11; top: 16px; left: 436px; width: min(640px, calc(100vw - 452px));
  padding: 12px 18px 8px; border-radius: 26px;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
  border: 1px solid rgba(236, 210, 170, .7);
  box-shadow: var(--shadow);
  transition: background .8s var(--ease);
}
.hz-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.hz-time { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.hz-day { font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.horizon.day-in-seg .hz-day { display: none; } /* „Heute/Morgen“ steht schon im Tagesknopf */
.time { font: 400 32px/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
/* Sonnenstand als eigene Zeile unter Uhrzeit und Knöpfen – neben ihnen blieb nur ein schmaler Streifen */
.hz-meta { order: 3; flex: 1 0 100%; margin: 0; font-size: 13.5px; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hz-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.wx { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.wx:empty { display: none; }

.seg { display: inline-flex; background: rgba(255, 255, 255, .72); border: 1px solid rgba(230, 205, 165, .9); border-radius: 15px; padding: 4px; gap: 3px; flex: none; }
.seg button, .seg .date-btn {
  min-height: 44px; min-width: 44px; border: 0; background: none; padding: 0 12px; border-radius: 11px;
  font-size: 13.5px; font-weight: 700; color: var(--ink-soft); display: grid; place-items: center;
  transition: background .2s, color .2s;
}
.seg button.on, .seg .date-btn.on { background: var(--ink); color: #fff8ee; }
.date-btn { position: relative; cursor: pointer; }
.now-btn { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid #efd2a6; background: #fff; color: var(--sun-ink); font-weight: 700; font-size: 14px; white-space: nowrap; }
body.not-now .hz-right .wx { display: none; }
.date-text { white-space: nowrap; font-size: 13px; }
.icon-btn.play-btn { background: rgba(255, 255, 255, .72); border: 1px solid rgba(230, 205, 165, .9); color: var(--sun-ink); border-radius: 50%; }
.icon-btn.play-btn.on { background: var(--ink); border-color: var(--ink); color: #fff8ee; }
.season { padding: 6px 2px 8px; border-top: 1px dashed rgba(200, 170, 120, .5); margin-top: 4px; }
.season-quick { display: none; gap: 6px; margin-bottom: 6px; }
.season-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); }
.season-head b { color: var(--ink); }
.season input { width: 100%; height: 44px; margin: 0; accent-color: var(--sun-ink); -webkit-appearance: none; appearance: none; background: transparent; }
.season input::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #c9c0dc, #f6c56f 50%, #c9c0dc); }
.season input::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #c9c0dc, #f6c56f 50%, #c9c0dc); }
.season input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #ffe7b0, #f6a234 60%, #e2801a); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(150, 80, 10, .35); }
.season input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #f6a234; border: 3px solid #fff; }
.season-months { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: -6px; }

/* Auf-/Untergang als Schnellsprünge an den Bogen-Enden: Tippfläche 44 px, sichtbar nur die kleine Zeit-Pille */
.arc-wrap { position: relative; max-width: 393px; margin: 0 auto; } /* = Breite des Bogens bei max-height 76 px: Knöpfe sitzen an seinen Enden */
.arc-jump {
  position: absolute; bottom: 0; width: 72px; height: 44px; padding: 0 0 1px; border: 0; background: none;
  display: flex; align-items: flex-end; touch-action: none;
}
.arc-jump.rise { left: 0; justify-content: flex-start; }
.arc-jump.set { right: 0; justify-content: flex-end; }
.arc-jump .jl {
  display: inline-flex; align-items: center; gap: 2px; height: 18px; padding: 0 7px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; line-height: 1; color: var(--ink-soft); font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, .7); border: 1px solid rgba(220, 194, 154, .9);
  transition: background .2s, color .2s, border-color .2s;
}
.arc-jump .ja { font-size: 11px; }
.arc-jump:hover .jl { background: #fff; border-color: #e6b773; }
.arc-jump.on .jl { background: var(--sun-soft); border-color: #e6b773; color: var(--sun-ink); }
.arc-jump:focus-visible { outline: none; }
.arc-jump:focus-visible .jl { outline: 3px solid var(--sun-ink); outline-offset: 1px; }
body.night .arc-jump .jl { border-color: #d3cbe4; color: #4a4364; }
body.night .arc-jump.on .jl { background: #ece8f5; color: var(--shade-ink); }

.arc { width: 100%; height: auto; max-height: 76px; display: block; overflow: visible; margin-top: 4px; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.arc:active { cursor: grabbing; }
.arc:focus { outline: none; }
.arc.kbd:focus .sun-ring { stroke: var(--sun-ink); stroke-width: 2.5; }
.arc .path-future { fill: none; stroke: #e6c58f; stroke-width: 2; stroke-dasharray: 1 6; stroke-linecap: round; }
.arc .path-past { fill: none; stroke: url(#arcGrad); stroke-width: 3.5; stroke-linecap: round; }
.arc .win { fill: none; stroke: rgba(242, 154, 46, .26); stroke-width: 14; stroke-linecap: round; }
.arc .horizon-line { stroke: #dcc29a; stroke-width: 1.2; }
.arc .tick { stroke: #cdb18a; stroke-width: 1; }
.arc .tick-label { font: 700 10px var(--sans); fill: #7f6142; text-anchor: middle; }
.arc .tick-label.end { font-weight: 700; fill: var(--ink-soft); }
.arc .sun-halo { fill: rgba(255, 196, 92, .32); }
.arc .sun-ring { fill: none; stroke: rgba(255, 255, 255, .9); stroke-width: 2.5; }
.arc .sun-dot { fill: url(#sunGrad); }
.arc .moon { fill: #fffdf8; stroke: #b9b0d2; stroke-width: 1.4; }
.arc .sun-cloud path { fill: #fbfaf7; stroke: #8a847d; stroke-width: 1.7; stroke-linejoin: round; }
/* Bis zum ersten Ziehen: Pfeile neben der Sonne als Hinweis „schieb mich“ */
.arc .drag-hint path { fill: none; stroke: var(--sun-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.night .arc .drag-hint path { stroke: var(--shade-ink); }

body.night { --sky-top: #e9e4f2; --sky-bottom: #f6f3fa; }
body.night .horizon { border-color: #ddd6ea; }
body.night .arc .path-future { stroke: #c9c0dc; }
body.night .arc .horizon-line { stroke: #cfc7e0; }
body.night .arc .tick { stroke: #c6bdd9; }
body.night .arc .tick-label { fill: #5d5578; }
body.night .hz-meta { color: #5d5578; }

/* ---------- Panel ---------- */
.panel {
  position: fixed; z-index: 10; top: 16px; left: 16px; bottom: 16px; width: 404px;
  background: var(--bg); border: 1px solid rgba(236, 223, 203, .9); border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 22px 20px 16px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #e6d6bd transparent;
}
.panel::-webkit-scrollbar { width: 8px; }
.panel::-webkit-scrollbar-thumb { background: #e6d6bd; border-radius: 8px; border: 2px solid var(--bg); }
.handle { display: none; }

.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.brand h1 { font: 400 26px/1.05 var(--serif); margin: 0; letter-spacing: -.015em; }
.brand p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.logo {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 32%, #ffe1a0, var(--sun) 58%, #d9761a);
  box-shadow: 0 6px 14px -4px rgba(190, 100, 20, .45), inset 0 -2px 4px rgba(150, 70, 10, .25);
}
body.night .logo { background: radial-gradient(circle at 62% 38%, #fffdf8, #d8d1e8 72%); box-shadow: 0 6px 14px -4px rgba(93, 85, 120, .35); }

/* ---------- Frage ---------- */
.ask { position: relative; z-index: 6; display: flex; gap: 8px; margin-bottom: 18px; }
.ask-box { position: relative; flex: 1; }
.ask-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.ask input {
  width: 100%; height: 52px; padding: 0 54px 0 44px;
  border: 1.5px solid var(--line); border-radius: 16px; background: #fff;
  font: 16px var(--sans); color: var(--ink); outline: none;
  box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s;
}
.ask input::placeholder { color: var(--muted); }
.ask input:focus { border-color: #eebf7c; box-shadow: 0 0 0 4px var(--sun-soft); }
.ask input::-webkit-search-cancel-button { display: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 13px; border: 0; flex: none;
  display: grid; place-items: center; background: transparent; color: var(--ink-soft);
  transition: background .15s, transform .15s var(--ease);
}
.icon-btn:active { transform: scale(.94); }
.mic { position: absolute; right: 4px; top: 4px; background: var(--sun-soft); color: var(--sun-ink); }
.mic.rec { background: var(--sun); color: #fff; animation: rec 1.2s ease-in-out infinite; }
@keyframes rec { 50% { transform: scale(.92); } }
.filter-btn { position: relative; width: 52px; height: 52px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.count-dot { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink); color: #fff8ee; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }

.search-results {
  position: absolute; z-index: 5; left: 0; right: 0; top: 60px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); max-height: 340px; overflow-y: auto; overscroll-behavior: contain; animation: pop .18s var(--ease);
}
/* Passt nicht alles: Liste endet an einer Zeilengrenze, ein Schatten unten zeigt „da kommt noch mehr“ */
.search-results.more {
  background:
    linear-gradient(#fff 30%, rgba(255, 255, 255, 0)) center top / 100% 28px no-repeat local,
    linear-gradient(rgba(255, 255, 255, 0), #fff 70%) center bottom / 100% 28px no-repeat local,
    radial-gradient(farthest-side at 50% 0, rgba(60, 40, 10, .16), transparent) center top / 100% 10px no-repeat scroll,
    radial-gradient(farthest-side at 50% 100%, rgba(60, 40, 10, .16), transparent) center bottom / 100% 10px no-repeat scroll,
    #fff;
}
.search-results li { min-height: 52px; padding: 8px 10px; border-radius: 12px; cursor: pointer; display: flex; gap: 12px; align-items: center; }
.search-results li.active, .search-results li:hover { background: var(--sun-soft); }
.search-results .bubble { width: 36px; height: 36px; border-radius: 11px; }
.search-results .t { font-weight: 700; }
.search-results .s { color: var(--muted); font-size: 13px; }
.search-results .empty { color: var(--muted); cursor: default; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }


.ctx-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.ctx-row:not(:has(> :not([hidden]))) { display: none; }
.ctx-row .intent-chip { flex: 1 1 200px; margin: 0; }
/* Sonne | Schatten: was du suchst. Steht immer da, Frage-Chip und „Zurück zu jetzt“ reihen sich daneben ein */
.want-seg { align-self: center; }
.ctx-row:has(> .want-seg) { margin: 4px 0 12px; }
.want-seg button { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; font-size: 14px; cursor: pointer; }
.want-seg button svg { flex: none; }
.want-seg button:focus-visible { outline: 3px solid var(--sun); outline-offset: 1px; }
.now-inline {
  flex: 0 0 auto; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid #efd2a6; background: #fff;
  color: var(--sun-ink); font-weight: 700; font-size: 14px; white-space: nowrap; cursor: pointer; animation: pop .25s var(--ease);
}
.now-inline:focus-visible, .list-more:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.list-more {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 6px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink-soft); font-weight: 700; font-size: 14px; cursor: pointer;
}
.filter-note { margin: 16px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--sun-soft); color: var(--ink); font-size: 14px; }
.intent-chip {
  display: flex; align-items: center; gap: 6px; margin: 12px 0 18px; padding: 0 0 0 14px; min-height: 48px;
  background: var(--sun-soft); border-radius: 14px; font-size: 14px; font-weight: 700; color: var(--ink);
  animation: pop .25s var(--ease);
}
.intent-chip #intentText { flex: 1; padding: 8px 0; }
.chip-x { flex: none; width: 44px; height: 44px; margin: 2px; border: 0; border-radius: 11px; background: none; display: grid; place-items: center; color: var(--ink-soft); cursor: pointer; }
.chip-x:hover { background: #fff; }

/* ---------- Antwort ---------- */
.hero { padding: 4px 2px 6px; }
.hero.anim { animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -6px 0 6px -8px; padding: 0 10px 0 4px; border: 0; background: none; font-weight: 700; font-size: 14px; color: var(--ink-soft); border-radius: 12px; }
.hero-main { display: flex; gap: 14px; align-items: center; }
.hero h2 { font: 400 27px/1.12 var(--serif); margin: 0; letter-spacing: -.015em; text-wrap: balance; }
.hero .meta { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.status { display: flex; align-items: center; gap: 8px; margin: 18px 0 2px; font: 400 19px/1.25 var(--serif); }
.status .ico { margin-top: -1px; }
.status.sun { color: var(--sun-ink); }
.status.half { color: var(--half-ink); }
.status.shade { color: var(--shade-ink); }
.sub-status { margin: 2px 0 0 30px; color: var(--muted); font-size: 14px; }
.sub-status.conf { display: flex; align-items: center; gap: 6px; margin-left: 30px; font-weight: 600; color: var(--ink-soft); }
.sub-status.conf .ico { flex: none; }
.sub-status.conf-sure .ico { color: var(--sun-ink); }
.hero-actions { display: flex; gap: 8px; margin-top: 18px; }
.why { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: #f6eee2; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.why .ico { margin-top: 1px; color: var(--shade-ink); }
.why small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); margin-top: 2px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.fact { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: #f6eee2; color: var(--ink-soft); }
.loc-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--sun-ink); font-weight: 700; font-size: 14px; }
.hero.calm { text-align: left; }
.hero.calm h2 { font-size: 24px; }
.hero.calm p { color: var(--ink-soft); margin: 8px 0 0; font-size: 15px; }
.hero .art { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 14px; background: var(--shade-fill); color: var(--shade-ink); }
/* Laden: kein Einblenden (blieb in gedrosselten Tabs blass hängen), kleine Sonne wartet am Horizont */
.hero.loading.anim { animation: none; }
.hero.loading h2 { color: var(--ink); }
.hero .dawn { display: block; margin: 2px 0 10px; overflow: visible; }
.dawn-line { stroke: #cdb18a; stroke-width: 1.5; stroke-linecap: round; }
.dawn-sun { fill: var(--sun); transform-box: fill-box; transform-origin: center; animation: dawn 3.2s ease-in-out infinite alternate; }
@keyframes dawn { from { transform: translateY(3px); } to { transform: translateY(-6px); } }
.hero .slow p { margin-top: 12px; }
/* Nacht: Mond neben der Überschrift, damit „planen“ im niedrigen Panel sichtbar bleibt */
.hero.calm .hero-main h2 { font-size: 22px; }
.hero.calm .hero-actions { margin-top: 14px; }

.bubble { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; flex: none; background: var(--shade-fill); color: var(--shade-ink); }
.bubble.s1 { background: linear-gradient(140deg, #ffe3a6, #fbbf5f); color: #7a3e04; }
.bubble.s05 { background: linear-gradient(140deg, #fff1d8, #f7d89e); color: var(--half-ink); }
.bubble.sm { width: 42px; height: 42px; border-radius: 13px; }
.bubble { position: relative; }
.bubble .mono { font-family: var(--serif); font-weight: 400; line-height: 1; transform: translateY(1px); }
.kind-badge {
  position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: #fffaf2; color: var(--ink-soft); box-shadow: 0 0 0 1.5px rgba(80, 60, 30, .14);
}
.search-results .kind-badge { width: 17px; height: 17px; right: -3px; bottom: -3px; }

.btn {
  flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  min-height: 50px; padding: 0 16px; border-radius: 15px; font-weight: 700; font-size: 15px; text-decoration: none;
  border: 1px solid var(--line); background: #fff; color: var(--ink); transition: transform .15s var(--ease), background .15s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff8ee; }
.btn.primary:hover { background: #241b14; }
.btn.ghost:hover { background: #fdf7ee; }

/* ---------- Tagesleiste ---------- */
.tl { position: relative; height: 6px; border-radius: 6px; background: var(--shade-fill); margin-top: 8px; overflow: visible; }
.tl.big { height: 14px; margin-top: 16px; border-radius: 8px; }
/* Wolken: helle + dunkle Streifen, damit sie auf Sonne wie Schatten auch in grellem Licht erkennbar sind */
/* Tagesleisten: kräftigere Sonne gegen hellen Schatten (draußen lesbar, ~2,5:1), nur hier – Karte und Kacheln bleiben */
.tl, .tl-legend { --sun-fill: #d97f10; --half-fill: #f3c063; --shade-fill: #ece7f2; }
.tl { box-shadow: inset 0 0 0 1px rgba(51, 40, 31, .14); }
/* Wolken: Schraffur dunkelt nur ab, Sonne/Schatten darunter bleiben erkennbar (nicht nur Farbe) */
.tl u, .tl-legend i.cloudy { background: repeating-linear-gradient(135deg, rgba(51, 40, 31, .5) 0 1.6px, rgba(255, 250, 242, .38) 1.6px 5px); }
.tl u { position: absolute; top: 0; bottom: 0; text-decoration: none; border-radius: inherit; }
.tl-cloud { position: absolute; left: 50%; bottom: calc(100% + 2px); transform: translateX(-50%); display: flex; color: var(--ink-soft); pointer-events: none; }
.tl-legend i.cloudy { background-color: var(--sun-fill); }
.lg-cloud .ico { color: var(--ink-soft); margin-left: -2px; }
.tl i { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px #fff; }
.tl b { position: absolute; top: -3px; bottom: -3px; border: 1.5px solid rgba(51, 40, 31, .55); border-radius: 7px; }
.tl-hours { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tl-legend i { width: 14px; height: 8px; border-radius: 3px; display: inline-block; }

/* ---------- Listen ---------- */
.list-title { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 4px 6px; }
.list-title h3 { font: 400 17px var(--serif); margin: 0; }
.list-title span { color: var(--muted); font-size: 13px; font-weight: 600; }
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  width: 100%; display: flex; gap: 12px; align-items: center; min-height: 68px; padding: 10px 8px;
  border: 0; background: none; border-radius: 16px; text-align: left; transition: background .15s;
}
.row:hover { background: #fdf3e2; }
.row.sel { background: var(--sun-soft); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--muted); font-size: 13px; }
.row .tl { height: 8px; margin-top: 8px; border-radius: 5px; }
.list-wx { display: flex; align-items: center; gap: 6px; margin: 0 4px 4px; color: var(--ink-soft); font-size: 13.5px; font-weight: 600; }
.list-wx .ico { flex: none; }
details.more .list-wx { margin-top: 8px; }
.row .tl i { top: -3px; bottom: -3px; width: 2px; box-shadow: none; }
.row-status { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.row-status.sun { color: var(--sun-ink); }
.row-status.half { color: var(--half-ink); }
.row-status.shade { color: var(--shade-ink); }
/* Geschlossen oder schließt in ≤ 30 min: grau, aber lesbar (Text sagt es ausdrücklich) */
.row.closed .bubble, .row.closed .tl, .row.closed .row-status { filter: grayscale(1); opacity: .55; }
.row.closed .row-name { color: var(--ink-soft); }
.row.closed .row-sub { color: var(--ink-soft); }
.hours { display: flex; align-items: center; gap: 7px; margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.hours .ico { flex: none; color: var(--muted); }
.hours.closed { color: var(--ink); }
.hours.closed .ico { color: var(--ink-soft); }
.note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: #f6eee2; color: var(--ink-soft); font-size: 14px; }
.note .ico { margin-top: 1px; color: var(--muted); }
details.more { margin-top: 18px; }
details.more summary { list-style: none; cursor: pointer; min-height: 48px; padding: 0 14px; border-radius: 14px; background: #f6eee2; font-weight: 700; font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; justify-content: space-between; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
details.more[open] summary::after { transform: rotate(225deg); }

.skeleton-row { height: 68px; border-radius: 16px; margin-top: 6px; background: linear-gradient(100deg, #f6eee2 30%, #fcf7ef 50%, #f6eee2 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

.foot { margin-top: 28px; padding-top: 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.foot p { margin: 2px 0 0; }
.lang-switch { display: inline-flex; gap: 4px; margin-left: 12px; vertical-align: middle; }
.lang-switch button { min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: 600 14px var(--sans); }
.lang-switch button.on { color: var(--ink); background: var(--line); }
.info-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--sun-ink); font-weight: 700; font-size: 14px; }

/* ---------- Karten-Knöpfe ---------- */
.fab, .dial { position: fixed; z-index: 9; right: 16px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.fab { bottom: 28px; width: 52px; height: 52px; display: grid; place-items: center; color: var(--ink); transition: opacity .25s, bottom .35s var(--ease); }
.fab.active { color: var(--sun-ink); }
.dial { top: calc(16px + var(--hz-h) + 12px); width: 60px; height: 60px; }
.dial::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; border: 1px dashed #dcc6a4; }
.dial-n { position: absolute; left: 50%; top: 50%; font-size: 12px; font-weight: 700; line-height: 1; color: var(--ink-soft); }
.dial-sun { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe2a3, var(--sun)); box-shadow: 0 2px 4px rgba(150, 80, 10, .35); transition: opacity .3s; }
body.night .dial-sun { opacity: .25; }
.cam { position: fixed; z-index: 9; right: 20px; bottom: 96px; display: flex; flex-direction: column; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; transition: opacity .25s, bottom .35s var(--ease); }
.cam button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); font: 700 13px var(--sans); }
.cam button + button { border-top: 1px solid var(--line); }
.cam button:active { background: var(--line); }
/* 2D | 3D: zeigt den aktuellen Zustand, das aktive Feld ist gefüllt */
.cam .tilt { height: 66px; display: flex; flex-direction: column; gap: 3px; padding: 5px; }
.tilt span { flex: 1; width: 100%; display: grid; place-items: center; border-radius: 8px; font: 700 13px var(--sans); color: var(--muted); }
.tilt span.on { background: var(--ink); color: #fff8ee; }
.link-btn { display: flex; align-items: center; min-height: 44px; margin: 2px 0 -10px; padding: 0; border: 0; background: none; color: var(--sun-ink); font: 700 14px var(--sans); text-decoration: underline; text-underline-offset: 3px; }
/* Ebene: ein Knopf, gedrückt (gefüllt) = Luftbild an – gleiche Logik wie das aktive Feld bei 2D | 3D */
.cam .layer-btn[aria-pressed="true"] { background: var(--ink); color: #fff8ee; }
.cam { width: 64px; }
.cam [hidden] { display: none; }
.cam button { width: 100%; }
.cam .probe-btn { color: var(--sun-ink); }
.cam .probe-btn[aria-pressed="true"] { background: var(--ink); color: #fff8ee; }
#northNeedle { display: grid; color: var(--sun-ink); transition: transform .2s; }
/* Prüf-Punkt in der Kartenmitte: Ring mit Lücken, dunkle Kontur + helle Kante, damit er auf Karte und Luftbild trägt */
.probe { position: fixed; z-index: 8; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; pointer-events: none; }
.probe-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--ink); box-shadow: 0 0 0 2px rgba(255, 250, 242, .95), inset 0 0 0 2px rgba(255, 250, 242, .95);
  -webkit-mask: conic-gradient(#000 0 35deg, transparent 35deg 55deg, #000 55deg 125deg, transparent 125deg 145deg, #000 145deg 215deg, transparent 215deg 235deg, #000 235deg 305deg, transparent 305deg 325deg, #000 325deg);
  mask: conic-gradient(#000 0 35deg, transparent 35deg 55deg, #000 55deg 125deg, transparent 125deg 145deg, #000 145deg 215deg, transparent 215deg 235deg, #000 235deg 305deg, transparent 305deg 325deg, #000 325deg); }
.probe-dot { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 2.5px var(--ink), 0 0 0 4.5px rgba(255, 250, 242, .95); }
body.probing .probe-ring { animation: probe-in .35s var(--ease); }
@keyframes probe-in { from { transform: scale(1.5); opacity: 0; } }
.probe-hint { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }

.toast {
  position: fixed; z-index: 20; left: calc(50% + 212px); bottom: 28px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff8ee;
  padding: 11px 18px 11px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); max-width: calc(100vw - 32px); animation: pop .2s var(--ease);
}
.spin { width: 14px; height: 14px; border-radius: 50%; background: var(--sun); flex: none; animation: breathe 1.2s ease-in-out infinite; }
.toast.static .spin { display: none; }
@keyframes breathe { 50% { transform: scale(.6); opacity: .6; } }

.maplibregl-ctrl-attrib { background: rgba(255, 250, 242, .85) !important; border-radius: 10px !important; }

/* ---------- Dialoge ---------- */
.modal { position: fixed; inset: 0; z-index: 30; background: rgba(51, 40, 31, .3); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-card { width: min(440px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--bg); border-radius: 26px; padding: 18px 20px 20px; box-shadow: var(--shadow); animation: rise .3s var(--ease); }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { font: 400 23px var(--serif); margin: 0; }
.close-btn { background: #f3eadd; }
.modal-card h3 { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin: 20px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 44px; border: 1px solid var(--line); background: #fff; padding: 0 15px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: background .15s, color .15s; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff8ee; }
.seg.wide { display: flex; width: 100%; }
.seg.wide button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 4px; white-space: normal; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 12px 14px; border-radius: 16px; background: #f6eee2; cursor: pointer; position: relative; }
.switch-row small { display: block; color: var(--muted); font-size: 13px; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 48px; height: 30px; border-radius: 15px; background: #ddd0bd; position: relative; flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .18); transition: transform .25s var(--ease); }
.switch-row input:checked + .switch { background: var(--sun-ink); }
.switch-row input:checked + .switch::after { transform: translateX(18px); }
.switch-row input:focus-visible + .switch { outline: 3px solid var(--sun); outline-offset: 2px; }
.modal-foot { display: flex; gap: 10px; margin-top: 22px; }
.info-body { font-size: 15px; color: var(--ink-soft); }
.info-body h4 { font: 400 16px var(--serif); color: var(--ink); margin: 18px 0 4px; }
.info-body p { margin: 0 0 6px; max-width: 65ch; }
.info-body .good { color: #4d6b2a; font-weight: 700; }
.info-body .meh { color: var(--half-ink); font-weight: 700; }

/* ---------- Schmal (Handy + Desktop bis 1100 px): ein Tages-Knopf „Heute ▾“ ----------
   Heute/Morgen/Kalender passten neben Uhrzeit und Jetzt nicht mehr in den Horizont,
   und „Morgen“ stand doppelt da (Tageslabel + Knopf). Heute/Morgen gibt es im aufgeklappten Bereich. */
@media (max-width: 1100px) {
  .hz-day { display: none; }
  #daySeg [data-day] { display: none; }
  #daySeg .date-btn { display: inline-flex; align-items: center; gap: 4px; padding: 0 12px; background: none; color: var(--ink); }
  #daySeg .date-btn.on { background: none; color: var(--ink); }
  #daySeg .chev { transform: rotate(-90deg); }
  #calIcon { display: inline-flex; align-items: center; gap: 4px; }
  .season-quick { display: flex; }
}

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .horizon {
    left: 0; right: 0; top: 0; width: auto; border-radius: 0 0 24px 24px; border-width: 0 0 1px;
    padding: calc(8px + env(safe-area-inset-top)) 14px 2px;
  }
  .hz-row { gap: 10px; }
  .hz-meta { display: none; }
  .seg button, .seg .date-btn { padding: 0 10px; }
  .time { font-size: 28px; }
  .wx { font-size: 13px; }
  .arc { max-height: 60px; margin-top: 2px; }
  .arc-wrap { max-width: 310px; }
  .hz-right { gap: 6px; }
  .now-btn { padding: 0 12px; }
  .hero h2 { font-size: 23px; }
  .status { margin-top: 12px; font-size: 18px; }
  .hero-actions { margin-top: 14px; }
  .bubble { width: 44px; height: 44px; }
  .panel {
    top: auto; left: 0; right: 0; bottom: 0; width: auto; height: var(--sheet-h);
    border-radius: 26px 26px 0 0; border-width: 1px 0 0; padding: 0 16px calc(16px + env(safe-area-inset-bottom));
    transition: height .35s var(--ease);
  }
  .panel.dragging { transition: none; }
  /* Tastatur offen: Panel sitzt auf der Tastatur, folgt ihr ohne Verzögerung */
  body.kb .panel { transition: none; padding-bottom: 8px; }
  body.kb .fab, body.kb .dial, body.kb .cam { opacity: 0; pointer-events: none; }
  /* Griff: 44 px Tippfläche, sichtbar bleibt nur der schmale Balken; der untere Teil ragt durchsichtig über die Suche */
  .handle { display: block; position: sticky; top: 0; z-index: 7; height: 44px; margin: 0 -16px -8px; cursor: grab; touch-action: none; background: linear-gradient(var(--bg) 20px, rgba(255, 250, 242, 0) 34px); }
  .ask { margin-bottom: 12px; }
  .panel > :not(.handle, .ask) { transition: opacity .15s; }
  .panel.sugg-open > :not(.handle, .ask) { opacity: 0; pointer-events: none; }
  .handle span { position: absolute; left: 50%; top: 10px; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: #d8c6ab; }
  .brand { display: none; }
  .dial { top: calc(var(--hz-h) + 10px); right: 12px; width: 52px; height: 52px; }
  .fab { bottom: calc(var(--sheet-h) + 14px); right: 12px; }
  .cam { flex-direction: row; bottom: calc(var(--sheet-h) + 18px); right: 76px; }
  .cam button + button { border-top: 0; border-left: 1px solid var(--line); }
  /* Handy: nur Kompass (tippen = Norden, drehen mit zwei Fingern) und 2D | 3D */
  .cam .cam-rot { display: none; }
  .cam #northBtn { border-left: 0; }
  .cam { width: auto; }
  .cam button { width: 44px; }
  .cam .tilt { width: 84px; height: 44px; flex-direction: row; }
  /* Ort prüfen: sichtbar reicht der Tipp auf die Karte; für VoiceOver bleibt der Knopf erreichbar */
  .cam .probe-btn { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cam .probe-btn:focus-visible { position: fixed; width: 44px; height: 44px; clip: auto; right: 12px; bottom: calc(var(--sheet-h) + 76px); border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
  body.sheet-full .cam, body.sheet-up .cam { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s, visibility 0s .25s; }
  body.sheet-full .fab, body.sheet-full .dial { opacity: 0; pointer-events: none; }
  body:not(.has-sel) .dial { display: none; }
  .toast { left: 50%; bottom: auto; top: calc(var(--hz-h) + 12px); }
  .modal { place-items: end center; padding: 0; }
  .modal-card { border-radius: 26px 26px 0 0; width: 100%; max-height: calc(100dvh - 24px); padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

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

/* ---------- Sonnenkonto ---------- */
.game-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 52px; padding: 0 14px 0 12px; border-radius: 16px;
  background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); color: var(--sun-ink); font: 700 15px var(--sans); font-variant-numeric: tabular-nums; cursor: pointer;
}
.game-btn b { color: var(--ink); }
.game-btn.live { background: var(--sun-soft); border-color: #eebf7c; }
.game-btn.live .ico { animation: gamePulse 2.4s ease-in-out infinite; }
@keyframes gamePulse { 50% { transform: scale(1.18); } }

.game-bar { flex: 1 1 100%; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border-radius: 16px; background: var(--sun-soft); border: 1px solid #eebf7c; }
.gb-ico { color: var(--sun-ink); display: grid; }
.gb-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gb-txt b { font-size: 15px; font-variant-numeric: tabular-nums; }
.gb-txt small { color: var(--ink-soft); font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-end { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid #e6b773; background: #fff; color: var(--sun-ink); font: 700 14px var(--sans); }

.checkin {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: 10px; padding: 0 14px;
  border-radius: 15px; border: 1.5px dashed #e6b773; background: #fffdf8; color: var(--sun-ink); font: 700 15px var(--sans); cursor: pointer;
}
.checkin.on { border-style: solid; background: var(--sun-soft); }

.game-body h3 { display: flex; justify-content: space-between; align-items: baseline; }
.g-count { font-weight: 600; color: var(--muted); }
.g-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.g-stats div { padding: 12px 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.g-stats .ico { color: var(--sun-ink); }
.g-stats b { font: 400 24px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.g-stats span { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.25; }
.g-how { font-size: 14px; color: var(--ink-soft); margin: 12px 0 0; }
.g-note { font-size: 13.5px; color: var(--ink-soft); margin: 10px 0 0; }
.g-err { font-size: 14px; font-weight: 700; color: #8a2f12; margin: 8px 0 0; }
.g-invited { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--sun-soft); font-weight: 600; font-size: 14px; }
.g-form { display: flex; gap: 8px; margin-top: 10px; }
.g-form input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border-radius: 15px; border: 1.5px solid var(--line); background: #fff; font: 16px var(--sans); color: var(--ink); }
.g-form input:focus { outline: none; border-color: #eebf7c; box-shadow: 0 0 0 4px var(--sun-soft); }
.g-form .btn { flex: none; }
.g-actions { display: flex; margin-top: 10px; }
.g-code { font-size: 15px; letter-spacing: .08em; color: var(--ink); }
.g-board { list-style: none; margin: 0; padding: 0; }
.g-board li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.g-board li.me { background: #fff; border-radius: 12px; border-bottom-color: transparent; padding: 6px 10px; }
.g-rank { width: 24px; text-align: center; font: 400 18px var(--serif); color: var(--muted); }
.g-board li:first-child .g-rank { color: var(--sun-ink); }
.g-name { flex: 1; font-weight: 700; }
.g-name small { color: var(--muted); font-weight: 600; }
.g-pts { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.g-pts b { font-size: 16px; }
.g-pts small { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.g-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g-badges li { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 14px; background: #f6eee2; color: var(--ink-soft); }
.g-badges li b { display: block; font-size: 14px; }
.g-badges li small { display: block; font-size: 12.5px; line-height: 1.3; margin-top: 2px; }
.g-badges li.got { background: #fff; border: 1px solid #eebf7c; color: var(--ink); }
.g-b-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #ece2d3; color: var(--muted); }
.g-badges li.got .g-b-ico { background: linear-gradient(140deg, #ffe3a6, #fbbf5f); color: #7a3e04; }
.g-recent { list-style: none; margin: 0; padding: 0; }
.g-recent li { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; border-bottom: 1px solid var(--line); }
.g-recent li span { display: flex; flex-direction: column; font-weight: 600; min-width: 0; }
.g-recent small { color: var(--ink-soft); font-weight: 500; font-size: 13px; }
.g-recent b { color: var(--sun-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .game-btn { padding: 0 10px; height: 52px; }
  .g-badges { grid-template-columns: 1fr; }
}

/* Sonnenjagd, Außenplätze melden, Vitamin D */
.game-bar { flex-wrap: wrap; }
.gb-hunt { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; margin: 2px 0 0; padding: 8px 0 2px; border-top: 1px solid #eebf7c; font-size: 14px; color: var(--ink); }
.gb-hunt .ico { flex: none; color: var(--sun-ink); }
.gb-hunt span { flex: 1; }
.gb-go { flex: none; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--ink); color: #fff8ee; font: 700 14px var(--sans); }
.report { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.report p { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.report.on p { flex-direction: row; align-items: center; gap: 8px; color: var(--sun-ink); }
.report small { color: var(--ink-soft); font-size: 13.5px; font-weight: 500; }
.report-btns { display: flex; gap: 8px; }
.report .btn { min-height: 46px; }
.report-done { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.report-done .ico { color: var(--sun-ink); }
.g-vit { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.g-vit.off { background: #f6eee2; border-color: transparent; }
.g-vit p { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }
.g-vit-head { display: flex; justify-content: space-between; align-items: baseline; }
.g-vit-head span { font-weight: 700; color: var(--sun-ink); font-variant-numeric: tabular-nums; }
.g-vit-bar { height: 10px; margin-top: 8px; border-radius: 6px; background: var(--shade-fill); overflow: hidden; }
.g-vit-bar i { display: block; height: 100%; border-radius: inherit; background: var(--sun-fill); }
.g-src { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.g-switch { margin-top: 14px; }

/* Sonnenkonto: Serie, Stufen, Fortschritt, Freunde entfernen, Daten */
.g-streak, .g-helped { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--sun-soft); font-size: 14px; font-weight: 600; color: var(--ink); }
.g-streak .ico, .g-helped .ico { flex: none; color: var(--sun-ink); margin-top: 1px; }
.g-helped { background: #fff; border: 1px solid var(--line); }
.g-tier { font-weight: 600; font-size: 12px; color: var(--sun-ink); white-space: nowrap; }
.g-prog { display: block; height: 6px; margin-top: 6px; border-radius: 4px; background: #e7dccb; overflow: hidden; }
.g-badges li.got .g-prog { background: var(--shade-fill); }
.g-prog i { display: block; height: 100%; border-radius: inherit; background: var(--sun-fill); }
.g-badges small.g-prog-t { margin-top: 3px; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.g-badges li.secret.got { border-style: dashed; }
.g-remove { flex: none; min-width: 44px; height: 44px; margin-right: -6px; padding: 0 8px; border: 0; border-radius: 12px; background: none; color: var(--muted); font: 700 13px var(--sans); display: grid; place-items: center; }
.g-remove.ask { background: #fbe4dc; color: #8a2f12; }
.g-privacy { margin-top: 4px; padding: 10px 12px; border-radius: 14px; background: #f6eee2; font-size: 14px; color: var(--ink-soft); }
.g-privacy summary { min-height: 28px; font-weight: 700; color: var(--ink); cursor: pointer; }
.g-privacy p { margin: 8px 0 0; }
.g-data { gap: 8px; }
.btn.danger { background: #8a2f12; border-color: #8a2f12; color: #fff8ee; }
.g-linkbtn { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--sun-ink); font: 700 14px var(--sans); }
.g-badges li > span:last-child { flex: 1; min-width: 0; }

/* ---------- Handy: mehr Karte, weniger Bedienfläche ----------
   Horizont = eine Zeile (Zeit + Tag | Sonnenbogen | Abspielen), schwebt durchscheinend über der Karte.
   Sonne | Schatten als Icon-Pille unten links auf Höhe der Kartenknöpfe (#mapBar).
   Peek (body.peek) = Suche + eine Zeile Antwort; Hinlaufen / Alle Plätze als runde Knöpfe in der Zeile. */
.map-bar { display: none; }
@media (max-width: 760px) {
  .horizon {
    left: 8px; right: 8px; top: calc(6px + env(safe-area-inset-top));
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "time arc play" "day arc play";
    column-gap: 4px; align-items: center;
    border-radius: 20px; border-width: 1px; padding: 6px 4px 6px 12px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--sky-top) 90%, transparent), color-mix(in srgb, var(--sky-bottom) 84%, transparent));
    -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  }
  .hz-row, .hz-right { display: contents; }
  .hz-time { grid-area: time; align-self: end; }
  .time { font-size: 23px; }
  #playBtn { grid-area: play; }
  /* „Jetzt“ schwebt als Pille unter dem Horizont auf der Karte, statt eine eigene Zeile zu belegen */
  #nowBtn { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 8px; box-shadow: var(--shadow-sm); font-size: 13.5px; }
  #nowInline { display: none; } /* auf dem Handy reicht die „Jetzt“-Pille unter dem Horizont */
  .wx { display: none; } /* Wolken zeigt die Sonne im Bogen und die Antwort */
  #daySeg { grid-area: day; justify-self: start; align-self: start; padding: 0; border: 0; background: none; }
  /* 44 px Tippfläche, aber nur 32 px Zeilenhöhe */
  #daySeg .date-btn { min-height: 44px; margin: -6px 0 -6px -10px; padding: 0 6px 0 10px; font-size: 13px; color: var(--ink-soft); }
  .icon-btn.play-btn { background: none; border-color: transparent; }
  .arc-wrap { grid-area: arc; width: 100%; max-width: none; margin: 0; }
  .arc { max-height: none; margin-top: 0; }
  .arc .tick-label { font-size: 13px; }
  .season { grid-column: 1 / -1; }

  .map-bar { display: flex; position: fixed; z-index: 9; left: 8px; bottom: calc(var(--sheet-h) + 12px); transition: opacity .25s, bottom .35s var(--ease); }
  .map-bar .want-seg { padding: 0; border-radius: 16px; gap: 0; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
  .map-bar .want-seg button { width: 44px; min-width: 44px; padding: 0; border-radius: 0; justify-content: center; }
  .map-bar .want-seg button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* Name bleibt für VoiceOver */
  body.kb .map-bar, body.sheet-full .map-bar { opacity: 0; pointer-events: none; }
  .dial { top: calc(var(--hz-h) + env(safe-area-inset-top) + 12px); right: 8px; width: 48px; height: 48px; }
  .fab { right: 8px; bottom: calc(var(--sheet-h) + 10px); width: 48px; height: 48px; }
  .cam { right: 62px; bottom: calc(var(--sheet-h) + 12px); border-radius: 16px; }

  .panel { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .handle { height: 28px; margin-bottom: 0; background: linear-gradient(var(--bg) 14px, rgba(255, 250, 242, 0) 26px); }
  .handle span { top: 7px; width: 36px; height: 5px; margin-left: -18px; }
  .ask { margin-bottom: 10px; }
  .ask input { height: 46px; border-radius: 14px; }
  .mic { top: 1px; right: 1px; }
  .filter-btn { width: 46px; height: 46px; border-radius: 14px; }
  .game-btn { height: 46px; padding: 0 9px; border-radius: 14px; border-width: 1px; }
  .ctx-row, .ctx-row:has(> .want-seg) { margin: 0 0 10px; }
  .hero h2 { font-size: 20px; }
  .hero-main { gap: 10px; }
  .bubble { width: 40px; height: 40px; border-radius: 13px; }
  .status { margin-top: 8px; font-size: 17px; }
  .hero-actions { margin-top: 10px; }
  .hero-actions .btn { min-height: 46px; border-radius: 14px; }
  .hero .meta { margin-top: 1px; font-size: 13.5px; }

  /* Peek: nur Kopfzeile der Antwort (+ Sonnenstatus bei Orten) */
  body.peek #hero { position: relative; cursor: pointer; padding-bottom: 0; }
  body.peek #hero > :not(.hero-main, .status, .back, .hero-actions) { display: none; }
  body.peek #hero.calm > :not(.hero-main) { display: none; }
  body.peek #hero .status { margin-top: 6px; }
  body.peek #hero h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.peek #hero .hero-main > div:last-child { min-width: 0; }
  body.peek #hero:not(.calm) .hero-main { padding-right: 52px; }
  body.peek #hero:has(.back) .hero-main { padding-right: 104px; }
  body.peek #hero:not(.calm) .hero-actions { position: absolute; right: 0; top: 2px; margin: 0; }
  body.peek #hero .hero-actions > :not(.primary) { display: none; }
  body.peek #hero .hero-actions .btn.primary { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; font-size: 0; gap: 0; }
  body.peek #hero .back { position: absolute; right: 52px; top: 2px; width: 44px; height: 44px; margin: 0; padding: 0; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 0; gap: 0; }
}

/* Eigene Bewertungen */
.rating { display: inline-flex; align-items: center; gap: 3px; margin-right: 6px; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.rating .ico { color: var(--sun-ink); }
.rating > span { font-weight: 500; color: var(--muted); }
.ico.filled { fill: currentColor; }
.rate .stars { display: flex; gap: 2px; margin-left: -8px; }
.star { width: 46px; height: 46px; display: grid; place-items: center; border: 0; background: none; border-radius: 12px; color: var(--muted); cursor: pointer; }
.star.on { color: var(--sun-ink); }
.star:hover { background: var(--sun-soft); }
@media (hover: hover) {
  .stars:hover .star { color: var(--sun-ink); }
  .stars .star:hover ~ .star { color: var(--muted); }
}
