@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/source-sans-3-v20-400.ttf) format('truetype'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/source-sans-3-v20-600.ttf) format('truetype'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/source-sans-3-v20-700.ttf) format('truetype'); }
/* Schriften liegen selbst hier (nicht bei Google Fonts): keine IP-Adressen an Google, siehe Datenschutz */

: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: 107px; /* = Desktop-Horizont; measureHorizon() setzt den echten Wert. Mit dem alten 132 rutschte das Panel beim Start um 25 px (CLS 0,05) */
  --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: var(--sans);
  --sans: 'Source Sans 3', 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; }
.start-location { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: linear-gradient(145deg, #fff1d6, #fffaf2 65%); }
.start-location[hidden] { display: none; }
.start-card { width: min(420px, 100%); padding: 32px; border: 1px solid var(--line); border-radius: 28px; background: var(--bg); box-shadow: var(--shadow); }
.start-mark { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 50%; background: var(--sun-soft); color: var(--sun-ink); font-size: 28px; }
.start-card h1 { margin: 0 0 10px; font: 400 29px/1.14 var(--serif); }
.start-card p { margin: 0 0 16px; color: var(--ink-soft); }
#startState { min-height: 22px; font-size: 14px; }
.start-card > .btn { min-height: 46px; width: 100%; }
.start-place-form label { display: block; margin: 18px 0 8px; font-weight: 700; }
.start-place-row { display: flex; gap: 8px; }
.start-place-row input { min-width: 0; flex: 1; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
.start-place-row .btn { min-height: 48px; white-space: nowrap; }
.start-place-row input:focus-visible, .start-place-row .btn:focus-visible, .start-place-results button:focus-visible { outline: 3px solid var(--sun-ink); outline-offset: 2px; }
.start-place-results { display: grid; gap: 6px; margin-top: 8px; }
.start-place-results button { width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
@media (max-width: 480px) {
  .start-place-row { flex-direction: column; }
  .start-place-row input, .start-place-row .btn { width: 100%; }
}
.start-card .start-tip { margin: 12px 0 0; font-size: 13px; }
.coverage-note { margin: 12px 16px 0; padding: 10px 12px; border: 1px solid #e6c78d; border-radius: 12px; background: #fff5df; color: #5d431d; font-size: 12px; line-height: 1.4; }

/* ---------- Horizont ----------
   Desktop: oben im Panel angedockt (eine Karte mit Himmel als Kopf), die Karte bleibt ganz frei.
   Eine Zeile Uhrzeit + Tag | Wetter/Jetzt + Abspielen, darunter der flache Bogen. */
.horizon {
  position: fixed; z-index: 11; top: 16px; left: 16px; width: 404px;
  padding: 6px 14px 2px 20px; border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
  border: 1px solid rgba(236, 210, 170, .7); border-bottom-width: 0;
  transition: background .8s var(--ease);
}
.hz-row { display: flex; align-items: center; gap: 10px; }
.hz-time { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; min-width: 0; }
.time { font: 400 30px/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hz-right { display: flex; align-items: center; gap: 8px; 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 { background: var(--ink); color: #fff8ee; }
/* Tag als kleines Label an der Uhrzeit: sichtbar schmal, Tippfläche 44 px */
.date-btn {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0 -10px -8px; padding: 0 8px;
  border: 0; border-radius: 10px; background: none; color: var(--ink-soft); font-weight: 700; cursor: pointer;
}
.date-btn:hover { background: rgba(255, 255, 255, .6); }
#calIcon { display: inline-flex; align-items: center; gap: 3px; }
#calIcon .chev { transform: rotate(-90deg); }
/* Sichtbar als Knopf: kleine Pille um „Heute ▾“ (Tippfläche bleibt 44 px über den Rand hinaus) */
#calIcon { padding: 0 5px 0 7px; border: 1px solid rgba(220, 190, 145, .95); border-radius: 999px; background: rgba(255, 255, 255, .78); }
.date-btn:hover #calIcon { border-color: #e6b773; }
.date-btn[aria-expanded="true"] #calIcon { background: #fff; border-color: #e6b773; }
.date-text { white-space: nowrap; font-size: 13.5px; }
/* Platz freihalten, bis app.js Uhrzeit und Tages-Label füllt: „–:–“ ist halb so breit wie „18:30“, das leere Label 0 px –
   sonst springen Tages-Knopf und Kopfzeile beim Start (Layout Shift) */
.time { min-width: 2.7em; }
#calIcon:empty { width: 53px; height: 20px; }
#calIcon:empty::before { content: '\200b'; font-size: 13.5px; } /* Grundlinie wie mit Text, sonst rutscht der Knopf 4 px */
#wantBtn:empty { width: 83px; } /* Sonne/Schatten-Chip mit „Sonne“, sonst rückt das Suchfeld beim Start 63 px nach rechts */
.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; }
.now-btn:hover { border-color: #e6b773; }
body.not-now .hz-right .wx { display: none; }
.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: flex; 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: 279px; margin: 0 auto; } /* = Breite des Bogens bei max-height 54 px: Knöpfe sitzen an seinen Enden */
/* Nur so breit wie die Zeit-Pille (min. 44 px), damit zwischen den Knöpfen genug Bogen zum Ziehen bleibt */
.arc-jump {
  position: absolute; bottom: 0; min-width: 44px; 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: 1px; height: 20px; padding: 0 5px; border-radius: 999px;
  font-size: 12px; 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: 12px; }
.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: 54px; display: block; overflow: visible; margin-top: 0; 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 12px var(--sans); fill: var(--ink-soft); text-anchor: middle; } /* Größe setzt renderArc: gerendert 12 px */
.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; }
/* Zeile unter dem Bogen bei Grau/Milchig (renderSkyLine) */
.sky-line { margin: 0 0 6px; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.arc .sun-cloud.big path { fill: #f4f3f0; stroke: #77716a; stroke-width: 1.5; }
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: #4a4364; }

/* ---------- Panel ---------- */
.panel {
  position: fixed; z-index: 10; top: calc(16px + var(--hz-h)); left: 16px; bottom: 16px; width: 404px;
  background: var(--bg); border: 1px solid rgba(236, 223, 203, .9); border-top-width: 0; border-radius: 0 0 28px 28px;
  box-shadow: var(--shadow);
  padding: 18px 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; }
/* Das Feld ist die Box: vorn der Umschalter Sonne | Schatten, dann Eingabe, hinten Mikrofon */
.ask-box {
  position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; height: 52px; padding: 0 3px 0 4px;
  border: 1.5px solid var(--line); border-radius: 16px; background: #fff;
  box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s;
}
.ask-box:focus-within { border-color: #eebf7c; box-shadow: 0 0 0 4px var(--sun-soft); }
.ask input {
  flex: 1; min-width: 0; width: 100%; height: 100%; padding: 0 4px 0 8px; border: 0; background: none;
  font: 16px var(--sans); color: var(--ink); outline: none;
}
.ask input::placeholder { color: var(--muted); }
/* Sonne | Schatten: 44 px Tippfläche, sichtbar ist die Pille darin; Icon + Wort, Farbe nur als Zugabe */
.want-chip {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 5px; height: 44px; padding: 0 11px 0 9px;
  border: 0; border-radius: 12px; background: none; color: var(--sun-ink); font: 700 14px var(--sans); white-space: nowrap; cursor: pointer;
}
.want-chip::before { content: ''; position: absolute; inset: 5px 0; z-index: 0; border-radius: 11px; background: var(--sun-soft); transition: background .2s, transform .15s var(--ease); }
.want-chip > * { position: relative; }
.want-chip.shade { color: var(--shade-ink); }
.want-chip.shade::before { background: var(--shade-fill); }
.want-chip:active::before { transform: scale(.94); }
.want-chip:focus-visible { outline-offset: -1px; }
.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 { 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; }
#nowInline { display: none !important; } /* „Jetzt“ steht im Horizont direkt darüber (Desktop) bzw. im Platz des Abspielknopfs (Handy) */
.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; }
/* „noch 2 h“ direkt am Status: gehört zur Antwort, steht in der Textschrift */
.status-aside { font: 700 .78em var(--sans); color: var(--ink-soft); white-space: nowrap; }
.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); }
.seat-evidence { display: flex; align-items: center; gap: 6px; margin: 7px 0 0 30px; color: var(--ink-soft); font-size: 13px; line-height: 1.35; }
.seat-evidence .ico { flex: none; }
.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; }
/* Ankunft: Sonne ab dem Moment, in dem du da bist */
.arrive { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.arrive .ico { flex: none; margin-top: 1px; color: var(--ink-soft); }
.arrive.warn .ico { color: var(--shade-ink); }
.arrive small { display: block; margin-top: 2px; font-weight: 500; font-size: 13.5px; color: var(--muted); }
.arrive-alt { flex: none; width: 100%; margin-top: 10px; min-height: 48px; padding: 8px 14px; justify-content: flex-start; text-align: left; line-height: 1.3; font-weight: 600; }
.arrive-alt .ico { flex: none; color: var(--sun-ink); }
.arrive-alt b { font-weight: 800; }
/* Sonnenweg: Licht am Fußweg (nicht im Peek) */
.sunwalk { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); }
body.walk-mode .ask { justify-content: flex-end; }
body.walk-mode .ask-box, body.walk-mode #searchResults, body.walk-mode .ctx-row, body.walk-mode #hero, body.walk-mode #lists { display: none !important; }
body.walk-mode #venueFilters { display: none; }
body.walk-mode #walkPanel { display: block; }
#walkPanel h2 { font: 400 27px/1.2 var(--serif); margin: 8px 0; }
#walkPanel > p { color: var(--ink-soft); font-size: 14px; line-height: 1.45; margin: 0 0 12px; }
.loop-entry { margin: 12px 0 0; width: 100%; justify-content: center; }
.loop-result { margin: 10px 0 16px; font-size: 14px; line-height: 1.45; }
.loop-result h3 { margin: 0 0 6px; font-size: 18px; }
.loop-result p { margin: 0 0 10px; }
.loop-result .btn { margin-right: 8px; margin-top: 4px; }
.loop-option { display: block; width: 100%; text-align: left; border: 1px solid var(--line, #d8d2c5); border-radius: 14px; background: var(--surface, #fff); color: var(--ink); padding: 12px 14px; margin: 8px 0; font: inherit; cursor: pointer; }
.loop-option[aria-pressed="true"] { border: 2px solid var(--sun-ink, #a65b00); padding: 11px 13px; }
.loop-option b, .loop-option small { display: block; }
.loop-option small { margin-top: 3px; color: var(--muted); }
.route-choice { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.route-choice button { border: 1px solid var(--line, #d8d2c5); border-radius: 999px; padding: 6px 10px; background: transparent; color: inherit; cursor: pointer; font: inherit; font-size: 13px; }
.route-choice button[aria-pressed="true"] { background: var(--ink); color: white; }
.sunwalk .ico { flex: none; margin-top: 1px; color: var(--ink-soft); }
.sunwalk small { display: block; margin-top: 2px; font-weight: 500; font-size: 13.5px; color: var(--muted); }
/* Foto aus OSM-Verweis (Commons/Panoramax): kleine Vorschau + Namensnennung, fester Rahmen gegen Layoutsprung */
.photo { display: flex; gap: 12px; align-items: center; margin: 14px 0 0; }
.photo-img { flex: none; display: block; width: 132px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--line); }
.photo-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.photo-by { color: var(--ink-soft); font-weight: 600; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.photo-src { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; min-height: 44px; color: var(--sun-ink); font-weight: 700; }
.photo.wait figcaption span { width: 9em; max-width: 100%; margin-bottom: 4px; border-radius: 6px; background: var(--line); }
.photo.wait .photo-src { min-height: 18px; margin-top: 13px; margin-bottom: 13px; width: 7em; }
.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; }
/* „Hier ist's grau“: neutral statt Sonnenfarbe – es geht ja gerade um keine Sonne */
.loc-link.grey-link { color: var(--ink-soft); }
.grey-note { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.4; }
.grey-note .ico { flex: none; margin-top: 1px; }
.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; overflow: visible; }
.hero.loading .bubble { background: var(--sun-soft); }
.hero.loading .hero-main > div:last-child { flex: 1; min-width: 0; }
.hero.calm.loading .hero-main h2 { font-size: 20px; }
/* Desktop: Platzhalter so hoch wie eine typische Antwort, sonst springen die Listen darunter beim Fertigladen (CLS #lists, 22.10.) */
@media (min-width: 761px) { .hero.loading { min-height: 250px; } }
/* Fuß erst nach dem Laden zeigen: die Listen schieben ihn sonst sichtbar aus dem Bild (größter Teil von CLS #lists) */
.hero.loading ~ .foot { visibility: hidden; }
/* Fortschritt in Stufen (Karte → Häuser/Bäume → Lokale); der Schimmer zeigt nur, dass es läuft */
.load-bar { position: relative; height: 4px; margin-top: 8px; border-radius: 4px; background: #eadfcd; overflow: hidden; }
.load-bar i { position: absolute; inset: 0 auto 0 0; width: var(--p, 10%); border-radius: inherit; background: var(--sun-ink); transition: width .6s var(--ease); }
.load-bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: loadShine 1.6s linear infinite; }
@keyframes loadShine { from { background-position: -100% 0; } to { background-position: 200% 0; } }
/* Nur im Handy-Peek: kompakter Status in der Meta-Zeile, Wolken-Antwort mit Ort, runder Hinlaufen-Knopf */
.hero .meta-st, .hero .peek-only, .hero .peek-walk, .hero .peek-retry { display: none; }
.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; }
.hero p { text-wrap: pretty; } /* kein einzelnes Wort allein in der letzten Zeile */
/* 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); }
/* Halbschatten: Punkte wie Licht durch Blätter (die Wolken sind schräg schraffiert) */
.tl s, .tl-legend i.half { background: radial-gradient(circle, rgba(51, 40, 31, .55) 0 .9px, transparent 1.3px) 0 0 / 3px 3px, var(--half-fill); }
.tl.big s, .tl-legend i.half { background-size: 4px 4px, auto; }
.tl s { position: absolute; top: 0; bottom: 0; text-decoration: none; border-radius: inherit; }
.lg-cloud .ico { color: var(--ink-soft); margin-left: -2px; }
.tl i { position: absolute; top: -4px; bottom: -4px; left: var(--tl-now, 0); 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; left: var(--tl-win-l, 0); width: var(--tl-win-w, 0); border: 1.5px solid rgba(51, 40, 31, .55); border-radius: 7px; }
/* Lage von Jetzt-Strich und Zeitfenster setzt syncTlMarks() am Panel (eine Variable statt Inline-Lage in jeder Zeile) */
.tl-no-now .tl i, .tl-no-win .tl b { display: none; }
.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; }
/* Lange Listen (175 Orte): Zeilen außerhalb des Bilds nicht layouten/malen – sonst bleibt das Panel beim Scrollen auf Android weiß */
.rows > li { content-visibility: auto; contain-intrinsic-size: auto 68px; }
.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); }
.foot .legal { margin: 4px 0 0; font-size: 13px; }
.foot .legal a { display: inline-block; min-height: 44px; line-height: 44px; color: var(--muted); }
.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: 16px; width: 60px; height: 60px; } /* Desktop: Horizont liegt im Panel, oben rechts ist frei */
.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: 18px; 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: 4px; }
.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: 48px; }
.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; }
/* Kartenansicht: nur auf dem Handy (Desktop hat die Spalte .cam) */
.layers { display: none; }
.layers-btn { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); box-shadow: var(--shadow-sm); }
.layers-btn.on { background: var(--ink); border-color: var(--ink); color: #fff8ee; }
.layers-btn[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--sun-soft), var(--shadow-sm); }
.lb-mark { position: absolute; left: -5px; top: -5px; padding: 1px 5px; border-radius: 7px; background: var(--ink); color: #fff8ee; font: 700 11px/1.35 var(--sans); border: 1.5px solid var(--bg); }
.layers-menu {
  position: absolute; right: 0; bottom: calc(100% + 8px); width: 218px; padding: 4px; border-radius: 18px;
  background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); transform-origin: 100% 100%; animation: lm-in .2s var(--ease);
}
@keyframes lm-in { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.lm-group + .lm-group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.layers-menu button {
  width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-radius: 13px;
  background: none; color: var(--ink-soft); font: 500 15px var(--sans); text-align: left;
}
.layers-menu button span { flex: 1; }
.layers-menu button.on { background: var(--sun-soft); color: var(--ink); font-weight: 700; }
.layers-menu button .chk { color: var(--sun-ink); }
.layers-menu button:active { background: var(--line); }
.layers-menu button:focus-visible { outline-offset: -3px; }
#northNeedle { display: flex; flex-direction: column; align-items: center; color: var(--sun-ink); transition: transform .2s; }
#northNeedle .nn { font: 800 12px/1 var(--sans); margin-bottom: -1px; }
/* 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; }
/* Terrasse markieren (game-ui.js startMarkSpot): nur Karte + Leiste unten, alles andere weg */
body.marking :is(#horizon, #dial, #camCtl, #layers, #locateBtn, #panel, #gameHint) { display: none !important; }
body.marking .toast { left: 50%; top: 16px; bottom: auto; }
.mark-bar { position: fixed; z-index: 12; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(440px, calc(100vw - 32px)); padding: 14px 16px 10px; border-radius: 24px; background: var(--bg); border: 1px solid var(--line);
  box-shadow: var(--shadow); animation: pop .2s var(--ease); }
.mark-say { margin: 0 0 12px; display: grid; gap: 2px; font-size: 15px; line-height: 1.35; color: var(--ink-soft); }
.mark-say b { font-family: var(--sans); font-weight: 600; font-size: 18px; color: var(--ink); }
.mark-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.mark-row .btn { justify-content: center; }
.mark-add { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--ink);
  border: 2.5px solid var(--ink); box-shadow: var(--shadow-sm); cursor: pointer; }
.mark-add:active { transform: scale(.94); }
.mark-add:disabled { opacity: .4; cursor: default; transform: none; }
.mark-add:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.mark-count { margin: 10px 0 0; min-height: 28px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; color: var(--ink-soft); text-align: center; }
.mark-count .link-btn { display: inline-flex; gap: 4px; margin: 0; }
.mark-pin { position: relative; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff8ee;
  border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); font: 700 14px/1 var(--sans); cursor: grab; touch-action: none; }
.mark-pin::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; } /* Tippfläche 50 px */
@media (prefers-reduced-motion: reduce) { .mark-bar { animation: none; } }
.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; }
/* Desktop: Quellenangabe links vom Standort-Knopf, nicht darunter */
.maplibregl-ctrl-bottom-right { right: 84px; }

/* ---------- 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; }
/* Ankunft: Warnblatt vor dem Absprung zu Google Maps */
#walkSheet .modal-head { gap: 12px; align-items: flex-start; }
#walkSheet .modal-head h2 { text-wrap: balance; line-height: 1.2; }
.walk-body p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--ink-soft); max-width: 60ch; }
.walk-body p b { color: var(--ink); }
.walk-body small { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.walk-go { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.walk-go .btn { flex: none; min-height: 52px; padding: 8px 16px; line-height: 1.25; text-align: left; justify-content: flex-start; }
.walk-go .btn .ico { flex: none; }
.walk-go .btn b { font-weight: 800; }

/* ---------- 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;
  }
  .seg button { 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) + var(--sheet-extra, 0px));
    /* Unter „ganz offen“ ziehen senkrechte Wischer das Panel (app.js bindSheet), waagerecht bleibt nativ */
    touch-action: pan-x;
  }
  .panel.scrolls, body.kb .panel { touch-action: auto; }
  /* Ziehen und Einrasten laufen per transform (app.js setSheet/dragTo), nicht über height: Kompositor statt Layout je Frame */
  .panel.dragging { will-change: transform; }
  /* Während transform ist das Panel Bezugsrahmen für position:fixed – die unsichtbare Griff-Verlängerung säße falsch */
  .panel.moving .handle::before { display: 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 { 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; }
  /* Handy: rechts ein Stapel über dem Standort – Kartenansicht (2D|3D, Luftbild, Ort prüfen) und,
     nur solange die Karte gedreht ist, der Kompass (tippen = Norden). Drehen geht mit zwei Fingern. */
  .cam { right: 8px; bottom: calc(var(--sheet-h) + 122px); width: 48px; border-radius: 50%; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s, visibility 0s .25s, bottom .35s var(--ease); }
  .cam > :not(#northBtn) { display: none; }
  .cam #northBtn { height: 46px; }
  body.rotated .cam { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .25s, bottom .35s var(--ease); }
  .layers { display: block; position: fixed; z-index: 10; right: 8px; bottom: calc(var(--sheet-h) + 66px); transition: opacity .25s, bottom .35s var(--ease); }
  .layers-menu {
    position: fixed; right: 64px; bottom: calc(var(--sheet-h) + 8px);
    width: min(218px, calc(100vw - 80px));
    max-height: calc(100dvh - var(--sheet-h) - var(--hz-h) - 26px);
    overflow-y: auto; overscroll-behavior: contain;
  }
  body.sheet-full .cam, body.sheet-up .cam, body.kb .cam,
  body.sheet-full .layers, body.sheet-up .layers, body.kb .layers { 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 (max-height: 600px) {
    #filterSheet .modal-foot { position: sticky; bottom: 0; z-index: 1; padding-top: 10px; background: var(--bg); }
  }
}

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

/* ---------- Sonnenkonto ---------- */
/* Deine Sonne: Abzeichen-Icon wie der Filter-Knopf, Wochenpunkte als Marke oben rechts */
.game-btn {
  position: relative; width: 52px; height: 52px; border-radius: 16px;
  background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); color: var(--sun-ink); cursor: pointer;
}
.game-btn .count-dot { font-variant-numeric: tabular-nums; }
.game-label { display: none; }
/* Desktop: in der Kopfzeile, mit Wort */
.brand .game-btn { width: auto; height: 46px; margin-left: auto; padding: 0 14px 0 10px; display: inline-flex; align-items: center; gap: 7px; border-radius: 14px; border-width: 1px; }
.brand .game-label { display: inline; color: var(--ink); font: 700 14px var(--sans); white-space: nowrap; }
/* Kopfzeile als Raster: Name + „Deine Sonne“ oben, die Unterzeile darunter über die volle Breite (sonst bricht sie neben dem Knopf um) */
.brand:has(> .game-btn) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo title konto" "logo tag tag"; column-gap: 14px; row-gap: 2px; }
.brand:has(> .game-btn) > .logo { grid-area: logo; }
.brand:has(> .game-btn) > div:not(.logo) { display: contents; }
.brand:has(> .game-btn) h1 { grid-area: title; align-self: center; }
.brand:has(> .game-btn) p { grid-area: tag; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand > .game-btn { grid-area: konto; }
/* Desktop: placeGameBtn() holt „Deine Sonne“ beim Start aus der Suchzeile in die Kopfzeile. Bis dahin dort nicht zeigen und
   die Höhe der Kopfzeile schon freihalten (Knopf 46 + 2 + Unterzeile 20), sonst springen Suche und Liste (Layout Shift) */
@media (min-width: 761px) {
  .ask > .game-btn { display: none; }
  body:has(#gameBtn:not([hidden])) .brand { min-height: 68px; } /* nur mit Sonnenkonto (features.game) */
}
@media (max-width: 760px) {
  #wantBtn:empty { width: 76px; }
  #calIcon:empty { width: 49px; height: 17px; }
  #calIcon:empty::before { font-size: 12px; }
}
.game-btn #gameIcon { display: grid; }
/* Hinweis beim ersten Einchecken: Sprechblase unter dem Knopf */
.game-hint {
  position: fixed; z-index: 25; width: min(300px, calc(100vw - 16px)); padding: 12px 8px 8px 14px;
  border-radius: 16px; background: #fff; border: 1px solid #eebf7c; box-shadow: var(--shadow); animation: pop .25s var(--ease);
}
.game-hint::before { content: ''; position: absolute; right: 18px; top: -7px; width: 12px; height: 12px; background: #fff; border: 1px solid #eebf7c; border-width: 1px 0 0 1px; transform: rotate(45deg); }
.game-hint.above::before { top: auto; bottom: -7px; border-width: 0 1px 1px 0; }
.game-hint p { margin: 0 6px 0 0; font-size: 14px; color: var(--ink-soft); }
.game-hint p b { display: block; color: var(--ink); font-size: 15px; }
.gh-btns { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.gh-btns .btn { min-height: 44px; }
.game-btn.live { background: var(--sun-soft); border-color: #eebf7c; }
/* Besuch läuft: dreimal pulsieren, dann ruhig – ein Dauer-Puls hielt den Kompositor über der Karte wach (Akku) */
.game-btn.live .ico { animation: gamePulse 2.4s ease-in-out 3; }
@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; align-items: flex-start; min-height: 44px; justify-content: center; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; font: inherit; }
.gb-txt small { max-width: 100%; }
.gb-txt u { text-underline-offset: 2px; color: var(--sun-ink); }
.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) {
  .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); }
.report-done .link-btn { margin: 0 0 0 auto; }
.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 sitzt vorn im Suchfeld; über der Karte nur ein Knopfstapel rechts (Standort, Kartenansicht, Kompass bei Drehung).
   Peek (body.peek) = Suche + eine Zeile Antwort; Hinlaufen / Alle Plätze als runde Knöpfe in der Zeile. */
@media (max-width: 760px) {
  /* Eine Zeile, ≈ 54 px: Uhrzeit mit kleinem Tages-Label darunter | Bogen | Abspielen bzw. „Jetzt“ */
  .horizon {
    left: 8px; right: 8px; top: calc(10px + env(safe-area-inset-top)); /* Luft zur Statusleiste, sonst wirkt die Insel in Safari angeschnitten */
    display: grid; grid-template-columns: auto minmax(0, 1fr) 44px; grid-template-areas: "time arc play";
    column-gap: 4px; align-items: center;
    border-radius: 20px; border-width: 1px; padding: 4px 4px 4px 12px;
    /* fast deckend: Bogenzahlen bleiben auch über Luftbild und dunkler Nachtkarte ≥ 4,5:1 */
    background: linear-gradient(180deg, color-mix(in srgb, var(--sky-top) 95%, transparent), color-mix(in srgb, var(--sky-bottom) 92%, transparent));
    /* kein backdrop-filter: über der WebGL-Karte kostet er auf Android jedes Bild und brachte den Horizont zum Flackern */
  }
  .hz-row, .hz-right { display: contents; }
  .hz-time { grid-area: time; flex-direction: column; align-items: flex-start; gap: 0; }
  .time { font-size: 23px; }
  #playBtn, #nowBtn { grid-area: play; }
  .horizon.show-now #playBtn { display: none; }
  .horizon:not(.show-now) #nowBtn { display: none; }
  #nowBtn { min-width: 44px; padding: 0 4px; font-size: 13.5px; }
  .wx { display: none; } /* Wolken zeigt die Sonne im Bogen und die Antwort */
  /* Uhrzeit und Tageswahl bleiben getrennt lesbar; die 44-px-Tippfläche liegt um die Pille. */
  .date-btn { margin: -7px 0 -7px -8px; padding: 0 8px; }
  .date-text { font-size: 12px; line-height: 16px; }
  .icon-btn.play-btn { background: none; border-color: transparent; }
  /* Bogen höchstens 44 px hoch (= Zeilenhöhe), auf breiten Handys mittig statt höher */
  .arc-wrap { grid-area: arc; width: 100%; max-width: 227px; margin: 0 auto; }
  .arc { max-height: 44px; margin-top: 0; }
  .season { grid-column: 1 / -1; }
  .sky-line { grid-column: 1 / -1; margin: -2px 0 2px; font-size: 12.5px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .dial { top: calc(var(--hz-h) + env(safe-area-inset-top) + 28px); right: 8px; width: 48px; height: 48px; } /* 18 px Luft unter „Jetzt“, sonst wirkt der Knopf angeschnitten */
  .fab { right: 8px; bottom: calc(var(--sheet-h) + 10px); width: 48px; height: 48px; }
  .layers { bottom: calc(var(--sheet-h) + 66px); }
  .cam { bottom: calc(var(--sheet-h) + 122px); }

  .panel { padding-bottom: calc(10px + env(safe-area-inset-bottom) + var(--sheet-extra, 0px)); } /* --sheet-extra: Box größer als sichtbar (sheet.js sheetRest) */
  :root { --sheet-h: 132px; } /* vor dem ersten setSheet: gleich niedrig starten, nicht 52vh */
  /* Griff 18 px hoch; die 44-px-Tippfläche reicht unsichtbar 26 px über die Panelkante in die Karte (fixed entkommt dem Scroll-Clipping).
     Seitlich frei gelassen für die Kartenknöpfe links und rechts. */
  .handle { height: 18px; margin-bottom: 0; background: var(--bg); }
  .handle::before { content: ''; position: fixed; left: 64px; right: 64px; bottom: calc(var(--sheet-h) - 18px); height: 44px; }
  body.kb .handle::before, body.sheet-full .handle::before { display: none; }
  .handle span { top: 6px; width: 36px; height: 5px; margin-left: -18px; }
  .ask { margin-bottom: 10px; }
  .ask-box { height: 46px; border-radius: 14px; padding: 0 1px 0 2px; }
  .ask input { padding: 0 2px 0 5px; }
  .mic { margin: -1px 0; }
  .want-chip { padding: 0 8px 0 7px; gap: 4px; font-size: 13.5px; }
  .want-chip::before { inset: 4px 0; border-radius: 10px; }
  .filter-btn, .game-btn { width: 46px; height: 46px; border-radius: 14px; }
  .ctx-row { margin: 0 0 10px; }
  /* #nowInline ist hier nur per CSS weg, nicht [hidden] – sonst bliebe eine leere Zeile mit 10 px Rand */
  .ctx-row:not(:has(> :not([hidden], #nowInline))) { display: none; }
  .hero h2 { font-size: 22px; } /* Stufen 22 → Status 18 → Listenüberschrift 15 px */
  .hero-main { gap: 10px; }
  .bubble { width: 40px; height: 40px; border-radius: 13px; }
  .status { margin-top: 8px; font-size: 18px; }
  .list-title h3 { font-size: 15px; }
  .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; der Sonnenstatus steht kompakt in der Meta-Zeile */
  body.peek #hero { position: relative; cursor: pointer; padding-bottom: 0; }
  body.peek #hero:not(.place-hero) > :not(.hero-main, .back, .hero-actions, .peek-evidence) { display: none; }
  body.peek #hero > .peek-evidence { margin: 5px 0 0; font-size: 13px; }
  body.peek #hero.calm > :not(.hero-main, .slow:not([hidden]), .hero-actions:has(.peek-walk)) { display: none; }
  body.peek #hero .slow:not([hidden]) { display: block; }
  .hero.loading .hero-main h2, body.peek #hero.loading h2 { font-size: 17px; }
  body.peek #hero .slow p { margin-top: 8px; }
  /* Laden hängt: im Peek nur eine Zeile Hinweis + „Nochmal“ rechts (der lange Text steht, wenn man hochzieht) */
  body.peek #hero.loading .slow:not([hidden]) { display: none; }
  body.peek #hero .peek-retry { display: inline-flex; flex: none; align-self: center; min-height: 44px; padding: 0 14px; border-radius: 14px; font-size: 15px; }
  /* Quellenangabe der Karte (Lizenz) sichtbar über dem Panel, links – rechts steht der Knopfstapel */
  .maplibregl-ctrl-bottom-left { bottom: var(--sheet-h); transition: bottom .35s var(--ease); }
  /* aufgeklappt nicht unter den Knopfstapel rechts laufen, lieber zweizeilig */
  .maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib.maplibregl-compact-show { max-width: calc(100vw - 84px); }
  /* mit „Nochmal“ daneben: Ladezeile einzeilig, der Hinweis steht darunter */
  body.peek #hero.loading:has(.peek-retry) h2 { -webkit-line-clamp: 1; }
  body.sheet-full .maplibregl-ctrl-bottom-left, body.kb .maplibregl-ctrl-bottom-left { opacity: 0; pointer-events: none; }
  body.peek #hero .peek-hide { display: none; }
  body.peek #hero h2.peek-only { display: -webkit-box; }
  body.peek #hero .meta.peek-only { display: block; }
  /* Name darf zweizeilig werden (mit Zurück-Knopf bleiben sonst nur ~190 px) */
  body.peek #hero h2 { font-size: 22px; line-height: 1.06; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-wrap: pretty; }
  body.peek #hero .meta { margin: 1px 0 0; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.peek #hero .meta-st { display: inline; font-weight: 700; }
  /* Status-Zeile genau eine Zeile: Teile, die nicht mehr passen, rutschen in die (unsichtbare) zweite Zeile, statt „Restaur…“.
     Nur der Status selbst kürzt notfalls mit „…“. Name bis zwei Zeilen + eine Statuszeile = höchstens 154 px Peek. */
  body.peek #hero p.meta.peek-meta { display: flex; flex-wrap: wrap; margin-top: 0; height: 18px; line-height: 18px; white-space: nowrap; }
  body.peek #hero .peek-meta > span { flex: none; }
  body.peek #hero .peek-meta > .meta-st { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  body.peek #hero h2 span.peek-only { display: inline; }
  body.peek #hero .meta-st .ico { display: inline-block; vertical-align: -3px; margin-right: 3px; }
  body.peek #hero .meta-st.sun { color: var(--sun-ink); }
  body.peek #hero .meta-st.half { color: var(--half-ink); }
  body.peek #hero .meta-st.shade { color: var(--shade-ink); }
  body.peek #hero .meta-arr { color: var(--ink); }
  body.peek #hero .hero-main > div:last-child { flex: 1; min-width: 0; }
  body.peek #hero:is(:not(.calm), .walk) .hero-main { padding-right: 52px; }
  body.peek #hero:has(.back) .hero-main { padding-right: 104px; }
  body.peek #hero:is(:not(.calm), .walk) > .hero-actions { position: absolute; right: 0; top: 2px; margin: 0; }
  body.peek #hero > .hero-actions > :not(.primary), body.peek #hero.walk > .hero-actions > :not(.peek-walk) { display: none; }
  body.peek #hero .peek-walk { display: inline-flex; }
  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); }
}

/* ---------- Himmelszustand (app.js skyState → body.sky-clear | sky-milky | sky-grey | sky-none | sky-night) ----------
   Orange heißt nur noch „jetzt wirklich Sonne“. Die Marke (Logo, Knöpfe, Schrift) bleibt warm – hier ändern sich nur
   Zustandssignale: Statuszeilen, Abzeichen, Tagesleisten. Grau entsättigt, Milchig liegt sichtbar dazwischen. */
@property --sky-top { syntax: '<color>'; inherits: true; initial-value: #fff1d6; }
@property --sky-bottom { syntax: '<color>'; inherits: true; initial-value: #fffaf0; }
/* Himmelsfarben setzt renderHorizon am Horizont selbst (nicht an :root): sonst rechnete jede Änderung – und jedes Bild
   der Überblendung – die Styles des ganzen Dokuments neu */
.horizon { transition: background .8s var(--ease), --sky-top .7s ease, --sky-bottom .7s ease; }
.bubble, .status, .row-status, .meta-st, .sub-status { transition: background-color .7s ease, color .7s ease; }
@media (prefers-reduced-motion: reduce) {
  .horizon, .bubble, .status, .row-status, .meta-st, .sub-status { transition: none; }
}
body.sky-milky .tl, body.sky-milky .tl-legend { --sun-fill: #e2a24c; --half-fill: #f3d6a2; }
body.sky-milky .bubble.s1 { background: linear-gradient(140deg, #fff1d8, #f5d7a3); color: #7a4a0e; }
body.sky-milky :is(.status, .row-status, .meta-st).sun { color: var(--half-ink); }
body.sky-grey .tl, body.sky-grey .tl-legend { --sun-fill: #a87a33; --half-fill: #d6bf95; }
body.sky-grey .bubble.s1 { background: #efe6d6; color: #6b5225; }
body.sky-grey .bubble.s05 { background: #f4efe6; color: #6b5a3e; }
body.sky-grey :is(.status, .row-status, .meta-st).sun, body.sky-grey :is(.status, .row-status, .meta-st).half { color: #5c5348; }
body.sky-grey .sub-status.conf-sure .ico { color: inherit; }
body.sky-none .bubble.s1, body.sky-none .bubble.s05 { background: #ecebe8; color: #5a4f40; }
body.sky-none :is(.status, .row-status, .meta-st).sun { color: var(--ink-soft); }
/* Graue Zeiten in den Leisten: schraffiert und entsättigt */
/* deckend statt backdrop-filter: Bei vielen Zeilen ließ der Filter je Leiste Chrome auf Android Panel und Horizont verlieren (Video 21.10.) */
.tl u.g { background: repeating-linear-gradient(135deg, #8a8079 0 1.6px, #e6e4e0 1.6px 5px); }

/* Antwort bei Grau: nächste echte Sonne, Lokale dann in der Sonne, Quelle der Aussage */
.hero.grey .bubble { background: #ecebe8; color: #5c5348; }
.next-sun { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font: 400 19px/1.25 var(--serif); color: var(--ink); }
.next-sun .ico { flex: none; color: var(--sun-ink); }
.then-title { margin: 22px 4px 2px; font: 400 17px var(--serif); color: var(--ink); }
.then { list-style: none; margin: 0; padding: 0; }
.then-row { cursor: pointer; }
.then-sun { color: var(--sun-ink); }
.sky-src { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.sky-src .ico { flex: none; }
.hero.calm .sky-src { font-size: 13px; color: var(--muted); }

/* Genauigkeit der Häuserhöhen an der Antwort (Wort + Icon, nicht nur Farbe) */
.acc { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; text-align: left; cursor: pointer; }
.acc b { font-weight: 700; color: var(--ink); }
.acc-spot { display: block; }
/* Legende der großen Tagesleiste ist ein Knopf: erklärt Halbschatten und Chance */
.lg-btn { min-height: 44px; width: 100%; align-items: center; margin-top: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--muted); text-align: left; cursor: pointer; }
.lg-btn .lg-more { color: var(--sun-ink); font-weight: 700; gap: 4px; }
.lg-btn:hover .lg-more { text-decoration: underline; }
.acc.good .ico { color: #4d6b2a; }
.acc.meh .ico { color: var(--half-ink); }

/* Merken: Lesezeichen oben rechts in den Details (auf Höhe von „Alle Plätze“), im Peek aus */
#hero:has(> .save-btn) { position: relative; }
.save-btn { position: absolute; top: -6px; right: -6px; color: var(--ink-soft); }
.save-btn.on { color: var(--sun-ink); }
.save-btn:hover { background: var(--sun-soft); }
#hero:has(> .save-btn) .hero-main > div:last-child { padding-right: 8px; }
.search-results li.group { min-height: 0; padding: 12px 10px 2px; cursor: default; color: var(--ink-soft); font-size: 13px; font-weight: 700; gap: 6px; }
.search-results li.group:hover { background: none; }
.rows .row.away .row-status { color: var(--sun-ink); font-weight: 700; }
.saved-hint { display: flex; gap: 8px; align-items: flex-start; margin: 6px 4px 0; color: var(--ink-soft); font-size: 13.5px; }
.saved-hint .ico { flex: none; margin-top: 2px; }
.saved-hint .link-btn { display: inline-flex; margin: 0; font-size: 13.5px; }

/* Keep weather/coverage uncertainty visible beside the compact recommendation. */
@media (max-width: 760px) {
  body.peek #hero .peek-caveat { display: block; margin: 3px 0 0; font-size: 14px; line-height: 1.3; color: var(--ink-soft); white-space: normal; overflow-wrap: anywhere; }
}

/* Tagesverlauf direkt am Café, auch im kompakten mobilen Panel. */
@media (max-width: 760px) {
  body.peek #hero > .place-timeline { display: block; margin-top: 18px; }
  body.peek #hero .place-timeline .tl-legend { display: none; }
}

/* Ortskopf: Name führt, Öffnungszeiten und Ortsangaben bleiben eine ruhige Gruppe. */
.hero-main.place-heading { align-items: flex-start; }
.place-heading > .bubble { margin-top: 3px; }
.place-heading > div:last-child { min-width: 0; flex: 1; }
.place-facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px; margin-top: 6px; }
.hero .place-facts .hours, .hero .place-facts .meta { margin: 0; font-size: 13px; line-height: 1.5; font-weight: 400; }
.hero .place-facts .hours { color: var(--ink-soft); gap: 5px; }
.hero .place-facts .hours.closed { font-weight: 600; }

/* Ortsblatt: eine Antwort, dann Tagesverlauf und Weg. Erklärung erst nach Öffnen. */
.place-hero .place-heading { margin: 3px 0 0; }
.place-hero .place-type { margin: 0 0 3px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.place-hero .place-answer { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0 0; font: 400 19px/1.3 var(--serif); }
.place-hero .place-answer .ico { margin-top: 1px; }
.place-hero .place-answer.sun { color: var(--sun-ink); }
.place-hero .place-answer.half, .place-hero .place-answer.shade { color: var(--shade-ink); }
.place-hero .place-support { margin: 7px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.4; }
.place-hero .place-timeline { margin-top: 17px; }
.place-timeline-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.place-timeline-head span { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.place-daybar { display: flex; position: relative; height: 16px; margin-top: 7px; overflow: hidden; border-radius: 5px; background: var(--shade-fill); }
.place-daybar > span { display: block; height: 100%; flex: none; }
.place-daybar > span.shade { background: var(--shade-fill); }
.place-daybar > span.sun { background: var(--sun-fill); }
.place-daybar > span.half { background: var(--half-fill); }
.place-daybar > span.possible { background: repeating-linear-gradient(135deg, #e8cfaa 0 4px, #eee8ee 4px 8px); }
.place-daybar .place-now { position: absolute; top: -2px; bottom: -2px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px var(--bg); }
.place-timeline .tl-hours { margin-top: 5px; }
.place-timeline-key { margin: 6px 0 0; color: var(--ink-soft); font-size: 12px; }
.place-more { margin-top: 12px; border-top: 1px solid var(--line); }
.place-more > summary { display: flex; align-items: center; min-height: 44px; color: var(--ink-soft); font-size: 14px; font-weight: 700; cursor: pointer; }
.place-more > summary::marker { content: ''; }
.place-more > summary::after { content: ''; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.place-more[open] > summary::after { transform: rotate(180deg); }
.place-more .place-calculation { margin: 7px 0 10px; color: var(--ink-soft); font-size: 14px; }
.place-hero .hero-actions { margin-top: 16px; }
@media (max-width: 760px) {
  body.peek #hero.place-hero > :not(.place-heading, .place-answer, .place-support, .place-timeline, .hero-actions, .back, .geometry-warning, .hours, .arrive) { display: none; }
  body.peek #hero.place-hero > .hero-actions { position: static; display: flex; margin-top: 14px; }
  body.peek #hero.place-hero > .hero-actions .btn.primary { display: inline-flex; width: auto; min-height: 46px; flex: 1; padding: 0 14px; border-radius: 14px; font-size: 15px; gap: 8px; }
  body.peek #hero.place-hero > .hero-actions > .btn.ghost[data-sel] { display: none; }
  body.peek #hero.place-hero .place-answer { margin-top: 10px; font-size: 18px; }
  body.peek #hero.place-hero .place-timeline { margin-top: 13px; }
  body.peek #hero.place-hero .place-timeline-key { display: none; }
}

/* Source Sans 3: klare Hierarchie wie in der gewählten Schriftvorschau. */
.brand h1, .hero h2, .list-title h3, .modal-head h2, .info-body h4, .then-title,
.time, .status, .next-sun, .place-hero .place-answer, .g-stats b { font-weight: 600; }

/* First-visit hints beside the working controls. */
.walk-help { width: 44px; height: 44px; border-radius: 50%; font-weight: 700; color: var(--ink); background: var(--bg); border: 1px solid var(--line); }
.walk-help:focus-visible, .walk-actions button:focus-visible { outline: 3px solid var(--sun-ink); outline-offset: 2px; }
.walk-card { position: fixed; z-index: 30; width: min(300px, calc(100vw - 24px)); padding: 16px; border-radius: 16px; background: var(--bg); color: var(--ink); box-shadow: 0 8px 28px rgba(34, 26, 10, .22); }
.walk-card[hidden] { display: none; }
.walk-progress { display: block; font-size: .75rem; font-weight: 700; margin-bottom: 8px; }
.walk-card strong { display: block; font-size: 1.05rem; line-height: 1.25; }
.walk-card p { margin: 6px 0 14px; line-height: 1.4; }
.walk-actions { display: flex; justify-content: space-between; gap: 8px; }
.walk-actions button { min-height: 44px; padding: 0 12px; border-radius: 10px; font: inherit; }
.walk-actions [data-walk-action] { background: var(--ink); color: var(--bg); font-weight: 700; }
.walkthrough-target { outline: 3px solid var(--sun-ink); outline-offset: 4px; }

@media (max-width: 760px) {
  .walk-help { position: fixed; z-index: 10; left: 8px; top: calc(var(--hz-h) + env(safe-area-inset-top) + 28px); }
}

.start-lang { display: flex; justify-content: flex-end; margin: -12px -12px 8px 0; }
.help-menu { position: fixed; z-index: 31; width: min(264px, calc(100vw - 24px)); padding: 12px; border-radius: 16px; background: var(--bg); color: var(--ink); box-shadow: 0 8px 28px rgba(34, 26, 10, .22); }
.help-menu[hidden] { display: none; }
.help-replay { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px; text-align: left; font: 700 14px var(--sans); color: var(--ink); background: var(--sun-soft); }
.help-language { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.help-language > span { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.help-language .lang-switch { margin-left: 0; }
.help-language .lang-switch button { padding: 0 12px; }
.help-menu :focus-visible, .start-lang button:focus-visible { outline: 3px solid var(--sun-ink); outline-offset: 2px; }
