/* Ansitzbuch – dunkle Feld-App im Stil von wildlifefotograf.com, für Dämmerung und eine Hand gebaut */
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 300 900; font-display: swap; src: url(../fonts/nunito-sans-latin.woff2) format("woff2"); }
@font-face { font-family: "Shadows Into Light Two"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/shadows-into-light-two-latin-400.woff2) format("woff2"); }

:root {
  --bg: #14191B;
  --card: #1E2528;
  --card2: #273034;
  --ink: #F1F3F4;
  --mute: #9AA3A8;
  --line: #2D363A;
  --amber: #FFCF11;          /* Akzent: Sonnengelb wie auf wildlifefotograf.com */
  --amber-ink: #1E2427;
  --gold: #E89B2F;
  --blue: #7FA6D6;
  --good: #7FBF7A;
  --warn: #F2B544;
  --bad: #E0705A;
  --bar-dim: #4A5560;
  --display: "Shadows Into Light Two", "Segoe Print", "Bradley Hand", cursive;
  --body: "Nunito Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: var(--body);
  --radius: .9rem;
  --shadow: 0 6px 20px rgba(0, 0, 0, .35);
  --glow: 0 6px 20px rgba(255, 207, 17, .32);
  --tabbar-h: 72px;
  --accent: #FFCF11;         /* Gelb als Textfarbe (im hellen Modus dunkler) */
  --tint: rgba(255, 255, 255, .07);
  --hover: rgba(255, 255, 255, .03);
  --cardline: rgba(255, 255, 255, .05);
  --barbg: rgba(20, 25, 27, .92);
  --mapbg: #1A2124;
  --sky: linear-gradient(165deg, #1B2C40 0%, #1E2528 62%);
  --glowbg: rgba(255, 207, 17, .08);
  --winbg: rgba(255, 207, 17, .14);
  --focus: #FFCF11;
  --field: #6E7A80;          /* Rahmen von Eingabefeldern, mind. 3:1 zum Hintergrund */
  color-scheme: dark;
}
/* Helle Ansicht für Tageslicht */
:root[data-theme="light"] {
  --bg: #F3F2EE;
  --card: #FFFFFF;
  --card2: #ECEAE4;
  --ink: #1E2427;
  --mute: #5E686D;
  --line: #DCD9D1;
  --accent: #8A6A00;
  --gold: #D98A1C;
  --blue: #3B6CA6;
  --good: #2F7D2B;
  --warn: #9A6A00;
  --bad: #B83E28;
  --bar-dim: #C3C8CB;
  --shadow: 0 4px 16px rgba(30, 36, 39, .08);
  --glow: 0 6px 18px rgba(230, 180, 0, .35);
  --tint: rgba(30, 36, 39, .06);
  --hover: rgba(30, 36, 39, .03);
  --cardline: rgba(30, 36, 39, .06);
  --barbg: rgba(255, 255, 255, .94);
  --mapbg: #E6E4DE;
  --sky: linear-gradient(165deg, #DCE8F4 0%, #FFFFFF 62%);
  --glowbg: rgba(255, 207, 17, .18);
  --winbg: rgba(255, 207, 17, .32);
  --focus: #6B5200;
  --field: #7F888C;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; color: var(--ink);
  background: radial-gradient(120% 55% at 50% -12%, var(--glowbg), transparent 62%), var(--bg);
  background-attachment: fixed;
  font-family: var(--body); font-size: 16px; line-height: 1.5; font-weight: 400;
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

.app {
  height: 100%; display: flex; flex-direction: column;
  max-width: 720px; margin: 0 auto;
  transition: filter .3s;
}
body.red, html.red-early body { background: #0A0C0D; }
body.red .app, body.red .sheet, body.red .toast { filter: grayscale(1) sepia(1) saturate(9) hue-rotate(-38deg) brightness(.6) contrast(1.15); }

/* ---------- Bewegung ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 8px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes sheet-in { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 5px var(--bg), 0 6px 18px rgba(255, 207, 17, .28); } 50% { box-shadow: 0 0 0 5px var(--bg), 0 8px 28px rgba(255, 207, 17, .5); } }

/* ---------- Kopf ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
}
.brand { font-family: var(--display); font-weight: 600; font-size: 25px; line-height: 1; text-decoration: none; letter-spacing: 1px; white-space: nowrap; min-width: 0; }
.brand { color: var(--ink); }
.brand span { color: var(--accent); }
.brand-mark { width: 26px; height: 26px; vertical-align: -5px; margin-right: 8px; }
@media (max-width: 400px) { .topbar-right { gap: 6px; } }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--mute); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.pill:not(.off) { display: none; }
.pill.off { color: var(--warn); border-color: rgba(242, 181, 68, .45); }
.pill.off .dot { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; color: var(--mute); text-decoration: none; transition: color .2s, border-color .2s, transform .15s; }
.iconbtn:hover { color: var(--ink); }
.iconbtn:active { transform: scale(.94); }
.iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.iconbtn[aria-pressed="true"] { color: var(--bad); border-color: var(--bad); }

/* ---------- Inhalt ---------- */
.view {
  flex: 1; overflow-y: auto; min-height: 0;
  padding: 4px max(16px, env(safe-area-inset-right, 0px)) 28px max(16px, env(safe-area-inset-left, 0px));
  outline: none;
}
.vtitle { font-family: var(--body); font-weight: 900; font-size: 30px; line-height: 1.12; letter-spacing: -.015em; margin: 6px 0 2px; text-wrap: balance; }
.vsub { color: var(--mute); font-size: 14px; margin-bottom: 14px; }
.vhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.vhead .vsub { margin-bottom: 0; }

.card {
  position: relative; background: var(--card); border: 1px solid var(--cardline);
  border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow);
  animation: rise .45s cubic-bezier(.2, .7, .2, 1) both;
}
.card:nth-of-type(2) { animation-delay: .06s; }
.card:nth-of-type(3) { animation-delay: .12s; }
.card:nth-of-type(n+4) { animation-delay: .18s; }
.card h3, .label { margin: 0 0 10px; font-family: var(--body); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 800; }
.card h3::before { content: ""; display: inline-block; width: 16px; height: 3px; border-radius: 2px; background: var(--amber); vertical-align: middle; margin: -2px 8px 0 0; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.big { font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.sm { font-size: 13px; color: var(--mute); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--mute); }
.hint { font-size: 13px; color: var(--mute); margin: 8px 0 0; }
.warnbox { border: 1px dashed rgba(242, 181, 68, .5); background: rgba(242, 181, 68, .06); color: var(--warn); border-radius: var(--radius); padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }

/* Himmel-Karte: Licht am Morgen */
.card.sky {
  overflow: hidden; border-color: rgba(127, 166, 214, .14);
  background:
    radial-gradient(90% 70% at 100% 115%, rgba(255, 207, 17, .30), rgba(232, 155, 47, .12) 45%, transparent 70%),
    var(--sky);
}
.card.sky::after {
  content: ""; position: absolute; right: -46px; bottom: -70px; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 207, 17, .55), rgba(255, 207, 17, 0) 68%); pointer-events: none;
}
.card.sky > * { position: relative; z-index: 1; }
.card.sky .big { font-size: 40px; }
.card.sky .row > div:first-child .big { color: var(--accent); text-shadow: 0 0 28px rgba(255, 207, 17, .35); }

/* Segment-Schalter */
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; cursor: pointer; font-weight: 800; font-size: 14px; color: var(--mute); transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--amber); color: var(--amber-ink); box-shadow: 0 3px 12px rgba(255, 207, 17, .3); }

/* Lichtleiste */
.lightbar { position: relative; height: 36px; border-radius: 10px; background: #0E1214; overflow: hidden; margin: 14px 0 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.lightbar span { position: absolute; top: 0; bottom: 0; }
.lb-night { background: #0E1214; }
.lb-blue { background: linear-gradient(90deg, #1F3556, var(--blue)); }
.lb-gold { background: linear-gradient(90deg, var(--gold), var(--amber) 45%, #FFE58A); }
.lb-day { background: #34434A; }
.lb-gold-eve { background: linear-gradient(90deg, #FFE58A, var(--amber) 55%, var(--gold)); }
.lb-blue-eve { background: linear-gradient(90deg, var(--blue), #1F3556); }
.card.sky.eve { background: radial-gradient(90% 70% at 0% 115%, rgba(255, 207, 17, .28), rgba(232, 155, 47, .12) 45%, transparent 70%), var(--sky); }
.card.sky.eve::after { left: -46px; right: auto; }
.lb-sun { width: 3px; background: #fff; box-shadow: 0 0 10px #fff; }
.lb-scale { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--mute); }
.legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.legend > div { min-width: 0; }
.legend .k { font-size: 12.5px; color: var(--mute); display: flex; align-items: center; gap: 5px; }
.legend .k i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.legend .v { font-size: 15px; font-weight: 800; }

.wx { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; text-align: center; }
.wx > div { background: var(--card2); border-radius: 12px; padding: 10px 2px 8px; }
.wx .v { font-size: 17px; font-weight: 800; }
.wx .k { font-size: 12.5px; color: var(--mute); }
.hours { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(54px, 1fr); gap: 5px; overflow-x: auto; margin-top: 12px; scrollbar-width: none; }
.hours::-webkit-scrollbar { display: none; }
.hours > div { text-align: center; background: var(--card2); border-radius: 12px; padding: 7px 2px; font-size: 12px; }
.hours .h { color: var(--mute); font-size: 12px; font-weight: 700; }
.hours .t { font-size: 15px; font-weight: 800; }
.hours svg { width: 18px; height: 18px; display: block; margin: 3px auto; }

/* Spot-Empfehlung */
.spotrec { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 6px; margin: 0 -6px; border-top: 1px solid var(--line); text-decoration: none; border-radius: 10px; transition: background .2s; }
.spotrec:hover { background: var(--hover); }
.sr-main { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: center; text-decoration: none; min-width: 0; }
.sr-add { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--card2); color: var(--accent); text-decoration: none; transition: transform .12s; }
.sr-add:active { transform: scale(.92); }
.sr-add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.spotrec:first-of-type { border-top: 0; }
.spotrec .nm { font-weight: 800; font-size: 15.5px; line-height: 1.3; }
.spotrec .chip { margin-top: 5px; }
.spotrec .sm { line-height: 1.35; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; font-weight: 800; }
.chip.good { background: rgba(127, 191, 122, .16); color: var(--good); }
.chip.mid { background: rgba(242, 181, 68, .16); color: var(--warn); }
.chip.bad { background: rgba(224, 112, 90, .16); color: var(--bad); }
.chip.none { background: var(--card2); color: var(--mute); }

/* Formulare */
.flabel { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--mute); margin: 18px 0 8px; }
.choices { display: flex; flex-wrap: wrap; gap: 7px; }
.choices.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; min-height: 48px; cursor: pointer; font-size: 15px; font-weight: 700; text-align: center; overflow: hidden; text-overflow: ellipsis; transition: border-color .15s, background .15s, color .15s, transform .12s; }
.opt:active { transform: scale(.96); }
.choices.grid .opt { font-size: 14px; line-height: 1.2; padding: 8px 5px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.choices:not(.grid) .opt { padding: 8px 15px; min-height: 42px; border-radius: 999px; }
.opt[aria-pressed="true"] { border-color: var(--amber); background: rgba(255, 207, 17, .12); color: var(--accent); }
.opt.ghost { border-style: dashed; color: var(--mute); }
.input, select.input, textarea.input {
  width: 100%; background: var(--card); border: 1px solid var(--field); border-radius: 12px;
  padding: 11px 12px; font-size: 16px; color: var(--ink); min-height: 46px; transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 72px; resize: vertical; }
.input:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px rgba(255, 207, 17, .25); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-size: 26px; cursor: pointer; transition: transform .12s; }
.stepper button:active { transform: scale(.92); }
.stepper output { font-size: 34px; font-weight: 800; min-width: 2ch; text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 800; font-size: 15px; letter-spacing: .01em; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); box-shadow: var(--glow); }
.btn.danger { color: var(--bad); border-color: rgba(224, 112, 90, .5); }
.btn.block { width: 100%; }
.btn.big { min-height: 56px; font-size: 17px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; }

.autogrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.autogrid .k { font-size: 12.5px; color: var(--mute); }
.autogrid .v { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }

/* Kompass-Auswahl */
.compass { display: grid; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(3, 56px); gap: 6px; justify-content: start; }
.compass button { border: 1px solid var(--line); background: var(--card); border-radius: 12px; cursor: pointer; font-size: 13.5px; font-weight: 800; transition: transform .12s; }
.compass button:active { transform: scale(.94); }
.compass button[aria-pressed="true"] { border-color: var(--amber); color: var(--accent); background: rgba(255, 207, 17, .12); }
.compass .c { display: grid; place-items: center; font-size: 12px; color: var(--mute); text-align: center; line-height: 1.1; }

/* Karte */
.map { height: 300px; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; background: var(--mapbg); box-shadow: var(--shadow); border: 1px solid var(--cardline); }
.map.tall { height: 52vh; min-height: 300px; }
.map.picker { height: 260px; }
.leaflet-container { background: var(--mapbg); font-family: var(--body); }
.leaflet-control-attribution { font-size: 10px; background: rgba(20, 25, 27, .75) !important; color: var(--mute) !important; }
.leaflet-control-attribution a { color: var(--mute) !important; }
.leaflet-bar a { background: var(--card) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.ab-marker { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--amber); box-shadow: 0 0 0 2px rgba(0, 0, 0, .4), 0 0 12px rgba(255, 207, 17, .45); }
.ab-marker.sel { background: var(--amber); width: 22px; height: 22px; }
.ab-marker.pin { background: var(--amber); }
.ab-label { background: rgba(20, 25, 27, .85); color: #F1F3F4; border: 0; border-radius: 6px; padding: 2px 7px; font-weight: 800; font-size: 12px; box-shadow: none; }
.ab-label::before { display: none; }
.ab-me { width: 14px; height: 14px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; box-shadow: 0 0 10px var(--blue); }

.list a, .list button.li { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; background: none; border: 0; border-top: 1px solid var(--line); padding: 13px 4px; cursor: pointer; text-align: left; text-decoration: none; transition: background .2s; }
.list a:hover, .list button.li:hover { background: var(--hover); }
.list > :first-child { border-top: 0; }
.list .nm { font-weight: 800; }
.list .cnt { flex: none; text-align: right; line-height: 1.1; }
.list .cnt b { display: block; font-size: 18px; font-weight: 900; color: var(--accent); }
.list .cnt span { font-size: 12px; color: var(--mute); }
.windbig { font-size: 24px; font-weight: 800; line-height: 1.15; }
.kv { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 7px 10px; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* Muster */
.insight { font-size: 16px; line-height: 1.55; }
.insight p { margin: 0 0 8px; }
.insight p:last-child { margin-bottom: 0; }
.insight b { color: var(--accent); font-weight: 800; }
.chart { width: 100%; height: auto; display: block; }
.rose-row { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.rose-row svg { width: 100%; max-width: 230px; }
.rose-row > div { min-width: 0; }

/* Muster: Datenbasis, beste Zeit, Bedingungen */
.basehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.basehead .nm { font-size: 18px; font-weight: 900; line-height: 1.2; }
.meter { height: 8px; border-radius: 4px; background: var(--card2); overflow: hidden; margin: 12px 0 8px; }
.meter span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--amber)); }
.best { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.best-t { background: var(--card2); border-radius: 14px; padding: 12px 12px 11px; min-width: 0; }
.best-t .k { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.best-t .t { font-size: 25px; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; margin: 4px 0 6px; color: var(--accent); white-space: nowrap; }
.best-t .sm b { color: var(--ink); }
.best-t .rel { font-size: 12px; margin-top: 2px; line-height: 1.3; }
.best-t.empty-t .t { color: var(--mute); }
.chartkey { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12.5px; color: var(--mute); }
.chartkey span { display: inline-flex; align-items: center; gap: 6px; }
.chartkey i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }
.k-win { background: var(--winbg); border: 1px solid rgba(255, 207, 17, .4); }
.k-sun { width: 0 !important; height: 12px !important; border-left: 2px dashed var(--blue); border-radius: 0 !important; }
.conds { display: grid; gap: 14px; }
.conds > div + div { padding-top: 14px; border-top: 1px solid var(--line); }
.cond-wind { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: center; }
.cond-wind .rose { width: 116px; height: 116px; }
.conds .k { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.conds .v { font-size: 15px; }
.conds .v b { color: var(--accent); font-weight: 900; }
.cond { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.cond .v { text-align: right; white-space: nowrap; }
.range { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--amber)); opacity: .9; }
.range span { position: absolute; top: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; transform: translateY(-50%); background: var(--ink); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line); }
.range-l { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); }
.bar { height: 8px; border-radius: 4px; background: var(--card2); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.moonbars { display: flex; gap: 14px; align-items: flex-end; }
.moonbars > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mb { display: flex; align-items: flex-end; width: 22px; height: 34px; border-radius: 5px; background: var(--card2); overflow: hidden; }
.mb i { display: block; width: 100%; background: var(--bar-dim); border-radius: 5px 5px 0 0; }
.m-hell .mb i { background: #F5C77E; }
.m-mittel .mb i { background: var(--blue); opacity: .7; }
.ml b { color: var(--ink); font-weight: 800; }
.cond .v br + b, .cond .v b { white-space: nowrap; }
.ml { font-size: 11.5px; color: var(--mute); }

/* Tagebuch */
.daygrp { font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 20px 0 4px; }
.entry { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; cursor: pointer; align-items: start; }
.daygrp + .entry { border-top: 0; }
.entry .t { font-size: 14px; font-weight: 800; padding-top: 1px; }
.entry .what { font-weight: 800; }
.entry .leer { color: var(--mute); font-style: italic; }
.entry .flag { font-size: 11.5px; font-weight: 800; color: var(--warn); }

/* Leerer Zustand */
.empty { text-align: center; padding: 34px 12px; animation: rise .5s both; }
.empty .vtitle { font-size: 28px; }
.empty p { color: var(--mute); margin: 6px auto 16px; max-width: 30em; }
.empty .hero-mark { width: 92px; height: 92px; margin: 0 auto 10px; display: block; filter: drop-shadow(0 0 24px rgba(255, 207, 17, .35)); }

/* Tabbar */
.tabbar {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line); background: var(--barbg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 6px max(4px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 8px) max(4px, env(safe-area-inset-left, 0px));
}
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 12.5px; font-weight: 700; color: var(--mute); text-decoration: none; transition: color .2s; }
.tabbar a svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.tabbar a[aria-current="page"] { color: var(--accent); }
.tabbar a[aria-current="page"] svg { transform: translateY(-1px); }
.tabbar a[aria-current="page"]:not(:has(.ring))::after { content: ""; position: absolute; top: 0; width: 18px; height: 3px; border-radius: 0 0 3px 3px; background: var(--amber); box-shadow: 0 0 10px rgba(255, 207, 17, .6); }
.tabbar .ring { width: 50px; height: 50px; margin-top: -20px; border-radius: 50%; background: var(--amber); display: grid; place-items: center; animation: glow 3.2s ease-in-out infinite; transition: transform .15s; }
.tabbar a:active .ring { transform: scale(.93); }
.tabbar .ring svg { stroke: var(--amber-ink); stroke-width: 2.6; }

/* Sheet (Dialog von unten) */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(2px); z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  background: var(--bg); border-top: 1px solid var(--line); border-radius: 24px 24px 0 0;
  width: 100%; max-width: 720px; max-height: 92vh; overflow-y: auto; box-shadow: 0 -12px 40px rgba(0, 0, 0, .45);
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 20px) max(16px, env(safe-area-inset-left, 0px));
  animation: sheet-in .28s cubic-bezier(.2, .8, .2, 1) both;
}
.sheet .grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 10px; }
.sheet h2 { font-family: var(--body); font-weight: 900; letter-spacing: -.01em; font-size: 24px; margin: 0 0 6px; }
.sheet .confirm { margin-top: 16px; padding: 12px; border-radius: 12px; background: rgba(224, 112, 90, .1); border: 1px solid rgba(224, 112, 90, .35); }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--tabbar-h) + 18px);
  background: var(--amber); color: var(--amber-ink); padding: 11px 18px; border-radius: 999px;
  font-size: 14.5px; font-weight: 800; line-height: 1.35; text-align: center;
  width: max-content; max-width: min(calc(100% - 32px), 480px); z-index: 1100;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45); animation: pop .25s ease-out both;
}
.toast.long { border-radius: 16px; width: calc(100% - 32px); text-align: left; padding: 12px 16px; }

/* Live-Hinweis zum Licht */
.phase { display: inline-flex; align-items: center; gap: 8px; margin: -2px 0 12px; padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--tint); font-size: 13px; font-weight: 800; color: var(--ink); }
.phase i { width: 8px; height: 8px; border-radius: 50%; background: var(--mute); flex: none; }
.phase.live { background: rgba(255, 207, 17, .16); color: var(--accent); }
.phase.live i { background: var(--amber); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 207, 17, .6); } 50% { box-shadow: 0 0 0 6px rgba(255, 207, 17, 0); } }

/* Dein Feldbuch */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; text-align: center; }
.stats > div { background: var(--card2); border-radius: 12px; padding: 12px 4px 10px; min-width: 0; }
.stats b { display: block; font-size: 26px; font-weight: 900; line-height: 1.05; color: var(--accent); }
.stats b small { font-size: 15px; font-weight: 800; margin-left: 1px; }
.stats span { display: block; font-size: 12px; color: var(--mute); margin-top: 3px; line-height: 1.25; }
.lastseen { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.lastseen .nm { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Artengruppen-Symbol */
.avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--card2); color: var(--mute); align-self: center; }
.avatar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.avatar.vogel { background: rgba(127, 166, 214, .16); color: var(--blue); }
.avatar.saeuger { background: rgba(255, 207, 17, .14); color: var(--accent); }
.avatar.leer { opacity: .55; }
.avatar.amphibie { background: rgba(126, 196, 120, .15); color: #8FCB86; }
.avatar.insekt { background: rgba(214, 140, 196, .15); color: #DB9BCB; }
/* Wischbare Leiste; Rand blendet aus, solange es weitergeht */
.scrollrow { position: relative; display: flex; gap: 7px; overflow-x: auto; margin: 0 -2px 10px; padding: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scrollrow::-webkit-scrollbar { display: none; }
.scrollrow > * { flex: none; }
.scrollrow .opt { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; min-height: 40px; border-radius: 999px; font-size: 14px; white-space: nowrap; text-decoration: none; }
.scrollrow .opt .muted { font-weight: 600; }
.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent); }
.fade-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 32px); mask-image: linear-gradient(to right, transparent, #000 32px); }
.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 44px), transparent); }
.scrollrow .opt svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.newart { margin-top: 10px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; }
.newart p { margin: 0 0 8px; }
.artrow { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.artrow:first-of-type { border-top: 0; }
.artrow .nm { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artrow select { width: auto; max-width: 48%; flex: none; padding: 6px 8px; min-height: 38px; font-size: 14px; }
.artrow .btn { flex: none; min-height: 38px; padding: 6px 12px; }

/* Erfassen: automatische Werte als Zeile, Speichern-Leiste */
.autostrip { margin: 0 0 4px; border: 1px solid var(--cardline); background: var(--card); border-radius: 12px; box-shadow: var(--shadow); }
.autostrip summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; font-size: 13.5px; font-weight: 700; }
.autostrip summary::-webkit-details-marker { display: none; }
.autostrip .al { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--ink); }
.autostrip .al span { white-space: nowrap; }
.autostrip .al .muted { font-weight: 600; }
.autostrip .tog { flex: none; color: var(--mute); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.autostrip .tog::after { content: " ▾"; }
.autostrip[open] .tog::after { content: " ▴"; }
.autostrip .autogrid { padding: 4px 12px 12px; border-top: 1px solid var(--line); margin-top: 0; padding-top: 10px; }
.gps { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mute); margin-right: 5px; vertical-align: 1px; }
.gps.ok { background: var(--good); box-shadow: 0 0 6px var(--good); }
.gps.wait { background: var(--warn); }
.savebar {
  position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 10px;
  margin: 18px -16px -28px; padding: 14px 16px 16px;
  background: linear-gradient(to top, var(--bg) 72%, transparent);
}
.savebar .btn { min-height: 54px; min-width: 0; padding: 0 12px; white-space: nowrap; }
.savebar .btn:disabled { opacity: 1; color: var(--mute); }
.savebar .btn.primary:disabled { background: var(--card2); border-color: var(--line); }
.savebar .el { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.savebar .btn.primary { font-size: 16.5px; }

/* Tagebuch: Filter als Knöpfe, Einträge */
/* Sichtbarer Text, darüber ein unsichtbares Auswahlfeld (natives Auswahlmenü, Breite passt zum Text) */
.fsel { position: relative; display: inline-flex; align-items: center; gap: 6px; max-width: 220px; min-height: 40px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 700; cursor: pointer; }
.fsel .v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsel::after { content: "▾"; font-size: 12px; color: var(--mute); }
.fsel select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.fsel:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.fsel.on { border-color: var(--amber); background: rgba(255, 207, 17, .12); color: var(--accent); }
.fsel.on::after { color: var(--accent); }
.entry .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--mute); }
.entry .meta span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.entry .meta svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.entry .note { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink); opacity: .85; }

/* Einstellungen: aufklappbarer Bereich */
.fold summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary h3 { margin: 0; }
.fold summary::after { content: "▾"; color: var(--mute); }
.fold[open] summary::after { content: "▴"; }
.fold .sub { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.fold h4 { margin: 0 0 8px; font-size: 15px; font-weight: 800; }

/* Fotos */
.ghostbtn { border-style: dashed; color: var(--mute); }
.ghostbtn svg { flex: none; }
.fotopick { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.fotopick img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.fotopick > div { flex: 1; min-width: 0; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 13.5px; margin-top: 6px; white-space: nowrap; }
.fotobig { margin: 0 0 14px; }
.fotobig img { display: block; width: 100%; max-height: 52vh; object-fit: contain; background: #0E1214; border-radius: 14px; }
.fotobig figcaption { display: flex; gap: 8px; margin-top: 8px; }
.fotobig figcaption .btn { flex: 1; min-height: 40px; }
.entry .thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 10px; align-self: center; flex: none; }
.fotostrip { margin: 0; gap: 8px; }
.fotostrip img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
.artchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.artchip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 8px; border-radius: 999px; background: var(--card2); font-size: 13.5px; font-weight: 700; }
.artchip svg { width: 15px; height: 15px; fill: none; stroke: var(--mute); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.artchip b { color: var(--accent); font-weight: 900; }
.stats b.sm-b { font-size: 17px; line-height: 1.55; }
.search { position: relative; margin-bottom: 10px; }
.search svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--mute); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search .input { padding-left: 40px; }

/* Feedback */
.stars { display: flex; gap: 4px; }
.stars button { width: 44px; height: 44px; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--bar-dim); cursor: pointer; transition: transform .12s, color .12s; }
.stars button.on { color: var(--amber); }
.stars button:active { transform: scale(.88); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .sw { position: relative; flex: none; width: 46px; height: 28px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); transition: background .2s; }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--mute); transition: transform .2s, background .2s; }
.switch input:checked + .sw { background: var(--amber); border-color: var(--amber); }
.switch input:checked + .sw::after { transform: translateX(18px); background: var(--amber-ink); }
.switch input:focus-visible + .sw { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Hinweiskarten (Sicherung, Installation) */
.card.notice { border-color: rgba(255, 207, 17, .45); background: linear-gradient(160deg, rgba(255, 207, 17, .1), transparent 60%), var(--card); }
.card.notice p { margin: 0 0 12px; }
.card.notice b { color: var(--ink); }
.ico-inline { width: 17px; height: 17px; vertical-align: -3px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Update-Leiste */
.updbar { position: fixed; z-index: 1150; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + var(--tabbar-h) + 14px);
  width: min(calc(100% - 24px), 480px); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--amber); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); font-weight: 800; animation: pop .25s ease-out both; }
.updbar .btn { min-height: 42px; flex: none; }

/* Neu in der App */
.news { padding: 12px 0; border-top: 1px solid var(--line); }
.news:first-of-type { border-top: 0; }
.news-h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.news ul { margin: 6px 0 0; padding-left: 20px; }
.news li { margin: 3px 0; }

/* Einführung */
.onb { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 20px; background: radial-gradient(120% 70% at 50% 0%, var(--glowbg), transparent 60%), var(--bg); animation: cel-fade .25s ease-out both; }
.onb-card { position: relative; width: min(100%, 440px); text-align: center; padding: 56px 8px 8px; }
.onb-skip { position: absolute; top: 0; right: 0; border: 0; background: none; color: var(--mute); font-weight: 700; padding: 10px; cursor: pointer; }
.onb-art { height: 128px; display: grid; place-items: center; margin-bottom: 18px; color: var(--ink); }
.onb-mark { width: 120px; height: 120px; filter: drop-shadow(0 0 26px rgba(255, 207, 17, .35)); }
.onb-ico { width: 96px; height: 96px; padding: 20px; border-radius: 50%; background: rgba(255, 207, 17, .14); fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.onb h2 { font-size: 26px; font-weight: 900; letter-spacing: -.01em; margin: 0 0 10px; }
.onb p { color: var(--mute); font-size: 16px; margin: 0 auto 22px; max-width: 26em; }
.onb-dots { display: flex; justify-content: center; gap: 7px; margin-bottom: 24px; }
.onb-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width .2s, background .2s; }
.onb-dots i.on { width: 22px; background: var(--amber); }
.onb-btns { display: grid; gap: 10px; }

/* Mehrere Fotos */
.fotogrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fotogrid.small { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 14px; }
.fg-item { position: relative; aspect-ratio: 1; }
.fg-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; cursor: pointer; }
.fg-item.sel img { outline: 2px solid var(--amber); outline-offset: 1px; }
.fg-del { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--bg); background: var(--card2); color: var(--ink); font-size: 12px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.fg-add { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px dashed var(--line); border-radius: 10px; color: var(--mute); font-size: 12px; font-weight: 700; cursor: pointer; }
.fotogrid.small .fg-add { font-size: 22px; }
.fototime { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.fototime .btn.small { margin-top: 0; }
.thumbwrap { position: relative; align-self: center; }
.thumbwrap b { position: absolute; right: -5px; bottom: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--amber); color: var(--amber-ink); font-size: 11.5px; font-weight: 900; display: grid; place-items: center; border: 2px solid var(--bg); }

/* Karte: Sichtungen */
.maplegend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: -6px 0 14px; font-size: 13px; font-weight: 700; }
.maplegend span { display: inline-flex; align-items: center; gap: 6px; }
.maplegend i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #14191B; }

/* Pro und Über */
.prolist { margin: 0 0 12px; padding-left: 20px; font-size: 14.5px; }
.prolist li { margin: 3px 0; }
.author { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; color: var(--ink); }
.author-mark { width: 56px; height: 56px; flex: none; padding: 8px; border-radius: 14px; background: var(--card2); }
.author .nm { font-weight: 900; font-size: 17px; margin-bottom: 2px; }
.linklist { display: grid; border-top: 1px solid var(--line); }
.linklist a, .linklist button { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; text-decoration: none; font-weight: 700; font-size: 15px; text-align: left; cursor: pointer; }
.linklist > :last-child { border-bottom: 0; }

/* Sicherung: Größe */
.bksize .btn { margin-top: 0; }

/* Bericht drucken */
.printhead { display: none; }
@media print {
  :root, :root[data-theme] { --bg: #fff; --card: #fff; --card2: #f2f2f0; --ink: #111; --mute: #555; --line: #ddd; --accent: #7a5d00; --cardline: #ddd; --shadow: none; --bar-dim: #bbb; --winbg: rgba(255, 207, 17, .3); }
  body { background: #fff !important; }
  .topbar, .tabbar, .noprint, .scrollrow, .vsub, .updbar, .toast, #sheet-root { display: none !important; }
  .app { height: auto; max-width: none; display: block; }
  .view { overflow: visible; padding: 0; }
  .card { break-inside: avoid; box-shadow: none; animation: none; }
  .cols { column-count: 1; }
  .narrow { max-width: none; }
  .best-t .t { font-size: 22px; }
  .printhead { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid #111; padding-bottom: 6px; margin-bottom: 14px; font-size: 13px; }
  .vtitle { display: none; }
}

/* Feier nach dem Speichern */
.celebrate { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; background: rgba(10, 13, 14, .55); backdrop-filter: blur(3px); animation: cel-fade .2s ease-out both; cursor: pointer; }
.celebrate.out { animation: cel-fade .25s ease-in reverse both; }
.cel-card { position: relative; text-align: center; padding: 28px 30px 24px; min-width: 240px; max-width: calc(100% - 48px); border-radius: 22px; background: var(--card); border: 1px solid var(--cardline); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); animation: cel-pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.cel-check { width: 74px; height: 74px; display: block; margin: 0 auto 10px; fill: none; stroke: var(--amber); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 14px rgba(255, 207, 17, .45)); }
.cel-check circle { stroke-dasharray: 145; stroke-dashoffset: 145; animation: cel-draw .5s .1s ease-out forwards; }
.cel-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: cel-draw .3s .5s ease-out forwards; }
.cel-title { font-family: var(--body); font-weight: 900; letter-spacing: -.01em; font-size: 26px; line-height: 1.15; }
.cel-sub { color: var(--mute); font-size: 14px; margin-top: 4px; }
.cel-badge { display: inline-block; margin-bottom: 6px; padding: 3px 12px; border-radius: 999px; background: var(--amber); color: var(--amber-ink); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; box-shadow: var(--glow); animation: cel-pop .5s .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.sparks { position: absolute; left: 50%; top: 62px; width: 0; height: 0; pointer-events: none; }
.sparks i { position: absolute; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--amber); opacity: 0; animation: spark .9s .45s ease-out both; }
.sparks i:nth-child(3n) { background: var(--blue); width: 5px; height: 5px; }
.sparks i:nth-child(4n) { background: #fff; width: 4px; height: 4px; }
@keyframes cel-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cel-pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes cel-draw { to { stroke-dashoffset: 0; } }
@keyframes spark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--d))); } }
body.red .celebrate { filter: grayscale(1) sepia(1) saturate(9) hue-rotate(-38deg) brightness(.6) contrast(1.15); }

@media (min-width: 560px) {
  .choices.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .map { height: 360px; }
}

/* Breite Bildschirme: Tablet und Desktop */
@media (min-width: 960px) {
  .app { max-width: 1120px; }
  .view { padding-left: 28px; padding-right: 28px; }
  .tabbar { max-width: 640px; width: 100%; margin: 0 auto 10px; border: 1px solid var(--line); border-radius: 22px; padding-bottom: 6px; box-shadow: var(--shadow); }
  .cols { column-count: 2; column-gap: 16px; }
  .cols > .card { break-inside: avoid; display: block; }
  .cols > .card, .cols > div { break-inside: avoid; }
  .daycols { column-count: 2; column-gap: 28px; }
  .daycols .day { break-inside: avoid; }
  .spotgrid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
  .spotgrid .map.tall { height: calc(100vh - 230px); margin-bottom: 0; }
  .narrow { max-width: 720px; margin: 0 auto; }
  .savebar { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .toast { bottom: calc(var(--tabbar-h) + 26px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cel-check circle, .cel-check path { stroke-dashoffset: 0; }
}
