/* ============================================================
   Zakynthos 2026 · Design System
   Palette: Ionisches Meer, warmer Sand, Sonnenuntergang
   ============================================================ */

:root {
  /* Farben */
  --sea-deep:   #0b3c5d;   /* tiefes Meer / Text dunkel */
  --sea:        #14a3b8;   /* Türkis, Primärfarbe */
  --sea-soft:   #e2f4f6;   /* Türkis-Hauch */
  --sand:       #faf5ec;   /* Hintergrund, warmer Sand */
  --sand-deep:  #f0e6d4;   /* Sand dunkler */
  --sunset:     #f97e51;   /* Koralle / Akzent */
  --sunset-soft:#feeee6;
  --gold:       #eab540;   /* Highlights / Sterne */
  --ink:        #12303f;   /* Fließtext */
  --ink-soft:   #5b7482;   /* Sekundärtext */
  --card:       #ffffff;
  --line:       #e8dfd0;
  --ok:         #3aa672;

  /* Typografie */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;

  /* Layout */
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 1px 2px rgba(11,60,93,.06), 0 10px 30px -12px rgba(11,60,93,.18);
  --shadow-soft: 0 1px 3px rgba(11,60,93,.08);
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  overscroll-behavior-y: none;
}
#app { max-width: 640px; margin: 0 auto; }
main { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 24px); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--sea-deep); margin: 0; letter-spacing: -.01em; }
h2 { font-size: 1.7rem; font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
button { font-family: var(--font-body); cursor: pointer; }
input, select, textarea { font-family: var(--font-body); font-size: 1rem; color: var(--ink); }

/* ── Tabs & Übergänge ─────────────────────────────────────── */
.tab { display: none; }
.tab.active { display: block; animation: tabIn .38s cubic-bezier(.2,.7,.3,1); }
@keyframes tabIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.section { padding: 18px 18px 8px; }
.overline {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sea); margin: 22px 0 10px;
}
.overline:first-child { margin-top: 0; }
.footnote { text-align: center; color: var(--ink-soft); font-size: .82rem; margin: 26px 0 8px; }

/* ── Hero (Start) ─────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(249,126,81,.55), transparent 55%),
    radial-gradient(140% 100% at 10% -20%, rgba(234,181,64,.35), transparent 50%),
    linear-gradient(168deg, #0e4d74 0%, #0b3c5d 34%, #10689b 68%, #14a3b8 100%);
  color: #fff;
  padding: calc(52px + env(safe-area-inset-top, 0px)) 24px 84px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; }
.hero-kicker {
  font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.75); margin: 0 0 6px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 11vw, 3.6rem);
  font-weight: 700; color: #fff; line-height: 1.02; letter-spacing: -.02em;
}
.hero-dates { margin: 10px 0 18px; color: rgba(255,255,255,.85); font-weight: 500; }
.hero-chip {
  display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem;
}
.hero-waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 1; }
.hero-waves .wave { fill: var(--sand); }
.hero-waves .w1 { opacity: .18; animation: drift 9s ease-in-out infinite alternate; }
.hero-waves .w2 { opacity: .4; animation: drift 7s ease-in-out infinite alternate-reverse; }
.hero-waves .w3 { opacity: 1; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-26px); } }

/* ── Seitenkopf ──────────────────────────────────────────── */
.pagehead {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: calc(26px + env(safe-area-inset-top, 0px)) 18px 4px;
}
.pagehead .overline { margin: 0 0 2px; }
.head-progress { text-align: right; min-width: 90px; padding-bottom: 4px; }
.head-progress span { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.mini-bar { height: 6px; background: var(--sand-deep); border-radius: 99px; margin-top: 5px; overflow: hidden; }
.mini-bar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--sea), var(--gold)); border-radius: 99px; transition: width .6s cubic-bezier(.2,.7,.3,1); }

/* ── Chips ───────────────────────────────────────────────── */
.chips-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 18px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-plain { padding: 4px 0 14px; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink); font-size: .88rem; font-weight: 600;
  transition: all .22s ease; white-space: nowrap;
}
.chip.active { background: var(--sea-deep); border-color: var(--sea-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.chip .cnt { font-size: .74rem; opacity: .65; font-weight: 500; }

/* ── Karte ───────────────────────────────────────────────── */
.map-wrap { position: relative; margin: 0 18px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
#map { height: clamp(320px, 46vh, 460px); z-index: 1; background: #cfe8ec; }
.leaflet-container { font-family: var(--font-body); }

#fab-add {
  position: absolute; right: 14px; bottom: 14px; z-index: 500;
  width: 52px; height: 52px; border-radius: 18px; border: none;
  background: linear-gradient(145deg, var(--sunset), #f95d3a); color: #fff;
  font-size: 1.7rem; line-height: 1; box-shadow: 0 6px 18px -4px rgba(249,126,81,.65);
  transition: transform .2s ease;
}
#fab-add:active { transform: scale(.92); }

#pick-banner {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--sea-deep); color: #fff; padding: 10px 14px; border-radius: var(--radius-s);
  font-size: .88rem; font-weight: 600; box-shadow: var(--shadow);
  animation: tabIn .3s ease;
}
.btn-mini { background: rgba(255,255,255,.18); color: #fff; border: none; border-radius: 8px; padding: 5px 10px; font-size: .8rem; font-weight: 600; }

/* Marker-Pins */
.pin-wrap { background: none; border: none; }
.pin {
  --c: var(--sea);
  width: 34px; height: 34px; border-radius: 50% 50% 50% 4px;
  background: var(--c); transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid #fff; box-shadow: 0 3px 8px rgba(11,60,93,.35);
  transition: transform .15s ease;
}
.pin span { transform: rotate(45deg); font-size: 15px; }
.pin.star { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(234,181,64,.45), 0 3px 8px rgba(11,60,93,.35); }
.pin.custom { border-style: dashed; border-color: #fff; outline: 2px dashed var(--sunset); outline-offset: 1px; }
.pin.visited { filter: grayscale(.55) opacity(.62); }
.pin-badge {
  position: absolute; top: -7px; right: -7px; transform: rotate(45deg);
  background: var(--ok); color: #fff; width: 16px; height: 16px; border-radius: 50%;
  font-size: 10px; line-height: 16px; text-align: center; border: 1.5px solid #fff;
}
.num-pin {
  --c: var(--sea);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--c); color: #fff; font-weight: 700; font-size: .88rem;
  display: flex; align-items: center; justify-content: center;
  border: 2.5px solid #fff; box-shadow: 0 3px 8px rgba(11,60,93,.35);
}
.home-pin { font-size: 22px; filter: drop-shadow(0 2px 3px rgba(11,60,93,.4)); }

/* Leaflet-Popup restylen */
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 14px 16px; font-family: var(--font-body); line-height: 1.45; min-width: 200px; }
.pop-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--sea-deep); }
.pop-cat { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sea); margin: 2px 0 6px; }
.pop-desc { font-size: .86rem; color: var(--ink); margin: 0 0 6px; }
.pop-tip { font-size: .82rem; background: var(--sunset-soft); border-radius: 8px; padding: 7px 9px; margin: 6px 0; color: #a34b28; }
.pop-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pop-actions button, .pop-actions a {
  border: none; border-radius: 8px; padding: 6px 10px; font-size: .78rem; font-weight: 600;
  background: var(--sea-soft); color: var(--sea-deep); text-decoration: none; display: inline-block;
}
.pop-actions .primary { background: var(--sea-deep); color: #fff; }
.pop-actions .danger { background: #fdeaea; color: #b3372f; }

/* ── Spot-Liste ──────────────────────────────────────────── */
.spot-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: var(--radius-s); padding: 11px 13px;
  margin-bottom: 9px; box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--c, var(--sea));
  transition: transform .15s ease;
}
.spot-row:active { transform: scale(.985); }
.spot-emoji { font-size: 1.35rem; flex: 0 0 auto; }
.spot-info { flex: 1; min-width: 0; cursor: pointer; }
.spot-name { font-weight: 600; font-size: .95rem; color: var(--sea-deep); display: flex; align-items: center; gap: 5px; }
.spot-name .star-ico { font-size: .8rem; }
.spot-name .custom-tag { font-size: .64rem; background: var(--sunset-soft); color: var(--sunset); padding: 1px 6px; border-radius: 6px; font-weight: 700; letter-spacing: .04em; }
.spot-desc { font-size: .8rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-row.done .spot-name { text-decoration: line-through; text-decoration-color: rgba(18,48,63,.4); opacity: .6; }
.spot-row.done .spot-desc { opacity: .55; }

/* Checkbox */
.check {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 9px;
  border: 2px solid var(--line); background: #fff; position: relative;
  transition: all .22s cubic-bezier(.2,.7,.3,1); padding: 0;
}
.check::after {
  content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0);
  transition: transform .2s cubic-bezier(.2,.7,.3,1);
}
.check.on { background: var(--ok); border-color: var(--ok); }
.check.on::after { transform: rotate(45deg) scale(1); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: block; width: 100%; border: none; border-radius: var(--radius-s);
  padding: 13px 16px; font-size: .95rem; font-weight: 600; text-align: center;
  transition: transform .15s ease, opacity .2s; text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--sea), #0e8fa3); color: #fff; box-shadow: 0 6px 16px -6px rgba(20,163,184,.5); }
.btn-sea { background: var(--sea-deep); color: #fff; width: auto; padding: 11px 16px; }
.btn-ghost { background: transparent; border: 1.5px dashed var(--line); color: var(--ink-soft); margin-top: 10px; }
.btn-maps { background: var(--card); color: var(--sea-deep); border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ── Segment-Control ─────────────────────────────────────── */
.seg { display: flex; gap: 6px; margin: 12px 18px 0; background: var(--sand-deep); padding: 5px; border-radius: 14px; }
.seg-btn {
  flex: 1; border: none; background: transparent; padding: 9px 8px; border-radius: 10px;
  font-weight: 600; font-size: .9rem; color: var(--ink-soft); transition: all .25s ease;
}
.seg-btn.active { background: var(--card); color: var(--sea-deep); box-shadow: var(--shadow-soft); }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--card); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow-soft); margin-bottom: 14px;
}

/* Guide-Karten */
.guide-card { border-top: 3px solid var(--sea); }
.guide-card h3 { display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px; }
.guide-card ul { margin: 0; padding-left: 18px; }
.guide-card li { font-size: .9rem; margin-bottom: 9px; color: var(--ink); }
.guide-card li::marker { color: var(--sea); }
.guide-card b { color: var(--sea-deep); }

/* Restaurant-Karten */
.resto-card { padding: 16px 18px; }
.resto-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.resto-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--sea-deep); }
.resto-area { font-size: .8rem; color: var(--ink-soft); margin-top: 1px; }
.resto-badges { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.badge { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--sea-soft); color: var(--sea-deep); white-space: nowrap; }
.badge.price { background: var(--sand-deep); color: #8a6d3b; }
.badge.res { background: var(--sunset-soft); color: var(--sunset); }
.resto-line { font-size: .85rem; margin-top: 8px; }
.resto-line b { color: var(--sea-deep); font-weight: 600; }
.resto-note { font-size: .83rem; color: var(--ink-soft); margin-top: 7px; font-style: italic; }
.resto-actions { display: flex; gap: 8px; margin-top: 12px; }
.resto-actions .mini {
  flex: 1; border: 1.5px solid var(--line); background: transparent; border-radius: 9px;
  padding: 8px; font-size: .8rem; font-weight: 600; color: var(--sea-deep); text-align: center; text-decoration: none;
}
.resto-actions .mini.on { background: var(--sea-soft); border-color: var(--sea); }

/* ── Planer ──────────────────────────────────────────────── */
.day-chip { flex-direction: column; gap: 0; padding: 7px 14px; line-height: 1.25; text-align: center; }
.day-chip .dc-day { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.day-chip .dc-date { font-size: .95rem; font-weight: 700; }

.day-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.day-head { padding: 18px 18px 4px; }
.day-date { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sunset); }
.day-title-input {
  width: 100%; border: none; background: transparent; font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 600; color: var(--sea-deep); padding: 2px 0; margin-top: 2px;
  border-bottom: 1.5px dashed transparent; transition: border-color .2s;
}
.day-title-input:focus { outline: none; border-bottom-color: var(--sea); }
.day-note {
  width: 100%; border: none; background: var(--sand); border-radius: 10px; padding: 10px 12px;
  font-size: .85rem; color: var(--ink-soft); resize: none; margin-top: 10px; min-height: 30px; line-height: 1.5;
}
.day-note:focus { outline: 1.5px solid var(--sea); color: var(--ink); }
.day-map { height: 210px; margin: 14px 18px 0; border-radius: var(--radius-s); overflow: hidden; z-index: 1; position: relative; box-shadow: inset 0 0 0 1px var(--line); background: #cfe8ec; }
.day-map-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--ink-soft); font-size: .85rem; }

.day-spots { padding: 12px 18px 4px; }
.day-spot {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  background: var(--sand); border-radius: var(--radius-s); margin-bottom: 8px;
  border-left: 4px solid var(--c, var(--sea));
  transition: transform .18s ease, box-shadow .18s ease;
}
.day-spot.dragging { opacity: .5; transform: scale(.98); }
.ds-num {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  background: var(--c, var(--sea)); color: #fff; font-size: .78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.ds-info { flex: 1; min-width: 0; }
.ds-name { font-weight: 600; font-size: .9rem; color: var(--sea-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-cat { font-size: .72rem; color: var(--ink-soft); }
.ds-btns { display: flex; gap: 3px; flex: 0 0 auto; }
.ds-btns button {
  width: 30px; height: 30px; border: none; border-radius: 8px; background: var(--card);
  color: var(--sea-deep); font-size: .85rem; box-shadow: var(--shadow-soft); font-weight: 700;
}
.ds-btns button:disabled { opacity: .3; }
.ds-btns .rm { color: #b3372f; }
.day-actions { padding: 10px 18px 18px; display: grid; gap: 9px; }
.day-reset { text-align: center; font-size: .78rem; color: var(--ink-soft); background: none; border: none; text-decoration: underline; padding: 4px; }

/* ── Wetter ──────────────────────────────────────────────── */
.weather-card { padding: 16px 18px; }
.weather-loading { color: var(--ink-soft); font-size: .9rem; text-align: center; padding: 12px 0; }
.wx-now { display: flex; align-items: center; gap: 16px; }
.wx-icon { font-size: 3rem; line-height: 1; }
.wx-temp { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--sea-deep); line-height: 1; }
.wx-desc { font-size: .88rem; color: var(--ink-soft); margin-top: 3px; }
.wx-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.wx-chip { font-size: .76rem; font-weight: 600; background: var(--sea-soft); color: var(--sea-deep); border-radius: 999px; padding: 4px 11px; }
.wx-days { display: flex; gap: 6px; overflow-x: auto; margin-top: 14px; padding-bottom: 4px; scrollbar-width: none; }
.wx-days::-webkit-scrollbar { display: none; }
.wx-day {
  flex: 0 0 auto; text-align: center; background: var(--sand); border-radius: 12px;
  padding: 8px 10px; min-width: 62px; border: 1.5px solid transparent;
}
.wx-day.trip { border-color: var(--gold); background: #fdf7e7; }
.wx-day .d { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--ink-soft); }
.wx-day .i { font-size: 1.25rem; margin: 2px 0; }
.wx-day .t { font-size: .78rem; font-weight: 600; color: var(--sea-deep); }
.wx-day .t span { color: var(--ink-soft); font-weight: 500; }
.wx-updated { font-size: .72rem; color: var(--ink-soft); text-align: right; margin-top: 8px; }
.wx-fallback-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 4px; }
.wx-fact { background: var(--sand); border-radius: 12px; padding: 10px 12px; }
.wx-fact .v { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--sea-deep); }
.wx-fact .k { font-size: .74rem; color: var(--ink-soft); }

/* ── Start: Fortschritt & Heute ──────────────────────────── */
.progress-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pg-card {
  background: var(--card); border-radius: var(--radius-s); padding: 13px 12px;
  box-shadow: var(--shadow-soft); border: none; text-align: left; font-family: var(--font-body);
}
.pg-num { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--sea-deep); }
.pg-label { font-size: .74rem; color: var(--ink-soft); margin-top: 1px; }
.pg-card .mini-bar { margin-top: 8px; }

.today-card {
  background: linear-gradient(135deg, var(--sea-deep), #10689b); color: #fff;
  border-radius: var(--radius); padding: 18px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.today-card .tc-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.today-card h3 { color: #fff; margin: 4px 0 2px; font-size: 1.3rem; }
.today-card p { margin: 0; font-size: .85rem; color: rgba(255,255,255,.85); }
.today-card .tc-btn {
  margin-top: 12px; display: inline-block; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 999px;
  padding: 7px 15px; font-size: .82rem; font-weight: 600;
}

/* ── Listen (Packliste & To-dos) ─────────────────────────── */
.list-progress { margin-bottom: 16px; }
.list-progress .lp-row { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; color: var(--sea-deep); margin-bottom: 6px; }
.big-bar { height: 10px; background: var(--sand-deep); border-radius: 99px; overflow: hidden; }
.big-bar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--sea), var(--gold)); border-radius: 99px; transition: width .6s cubic-bezier(.2,.7,.3,1); }

.pack-group { margin-bottom: 18px; }
.pack-group-head {
  display: flex; align-items: center; gap: 9px; margin-bottom: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--sea-deep);
}
.pack-group-head .cnt { font-family: var(--font-body); font-size: .76rem; font-weight: 600; color: var(--ink-soft); margin-left: auto; }
.check-row {
  display: flex; align-items: center; gap: 12px; background: var(--card);
  border-radius: var(--radius-s); padding: 11px 13px; margin-bottom: 7px; box-shadow: var(--shadow-soft);
  cursor: pointer; transition: transform .15s ease;
}
.check-row:active { transform: scale(.985); }
.check-row .lbl { flex: 1; font-size: .9rem; }
.check-row .due { font-size: .72rem; font-weight: 700; color: var(--sunset); background: var(--sunset-soft); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.check-row.imp { border-left: 4px solid var(--sunset); }
.check-row.imp .lbl { font-weight: 600; }
.check-row.done .lbl { text-decoration: line-through; text-decoration-color: rgba(18,48,63,.35); opacity: .55; }
.imp-star { color: var(--sunset); font-size: .8rem; margin-right: 3px; }
.pack-add-btn { margin: 0 0 18px; }
.row-del {
  flex: 0 0 auto; border: none; background: transparent; font-size: .95rem;
  padding: 4px 6px; border-radius: 8px; opacity: .55; transition: opacity .2s;
}
.row-del:active { opacity: 1; background: #fdeaea; }

/* ── Modals ──────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000; background: rgba(11,42,61,.55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--sand); width: 100%; max-width: 640px; max-height: 88dvh;
  border-radius: 24px 24px 0 0; padding: 20px 20px calc(20px + var(--safe-b));
  overflow-y: auto; animation: slideUp .35s cubic-bezier(.2,.7,.3,1);
}
@keyframes slideUp { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-tall { min-height: 70dvh; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--sand-deep); color: var(--ink-soft); font-size: .95rem;
}
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 5px; }
.field input[type=text], .field input[type=search], .field select, #cat-search {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-s);
  padding: 11px 13px; background: var(--card); font-size: 1rem;
}
.field input:focus, .field select:focus, #cat-search:focus { outline: 2px solid var(--sea); border-color: transparent; }
.loc-row { display: flex; gap: 8px; }
.loc-row input { flex: 1; }
#as-results { margin-top: 8px; }
.geo-result {
  display: block; width: 100%; text-align: left; background: var(--card); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 9px 12px; margin-bottom: 6px; font-size: .84rem; color: var(--ink);
}
.geo-result.sel { border-color: var(--sea); background: var(--sea-soft); }
.coords-badge {
  display: inline-block; margin-top: 10px; background: var(--sea-soft); color: var(--sea-deep);
  font-size: .8rem; font-weight: 600; border-radius: 8px; padding: 6px 11px;
}
#as-save { margin-top: 6px; }
#cat-search { margin-bottom: 12px; }

.daypick-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--card); border: none; border-radius: var(--radius-s);
  padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--shadow-soft);
}
.daypick-row .dp-num {
  width: 34px; height: 34px; border-radius: 10px; background: var(--sea-soft);
  color: var(--sea-deep); font-weight: 700; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.daypick-row .dp-title { font-weight: 600; font-size: .9rem; color: var(--sea-deep); }
.daypick-row .dp-date { font-size: .76rem; color: var(--ink-soft); }

.catalog-row {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  background: var(--card); border: none; border-radius: var(--radius-s);
  padding: 10px 13px; margin-bottom: 7px; box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--c, var(--sea));
}
.catalog-row .cr-name { font-weight: 600; font-size: .9rem; color: var(--sea-deep); }
.catalog-row .cr-cat { font-size: .74rem; color: var(--ink-soft); }
.catalog-row .cr-added { margin-left: auto; color: var(--ok); font-weight: 700; font-size: 1rem; }

/* ── Bottom Navigation ───────────────────────────────────── */
#bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  display: flex; justify-content: space-around; align-items: stretch;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(255,253,248,.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  max-width: 640px; margin: 0 auto;
}
.nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: none; border: none; color: var(--ink-soft); font-size: .68rem; font-weight: 600;
  transition: color .2s ease; position: relative;
}
.nav-btn svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; transition: transform .25s cubic-bezier(.2,.7,.3,1); }
.nav-btn.active { color: var(--sea-deep); }
.nav-btn.active svg { fill: rgba(20,163,184,.16); stroke: var(--sea); transform: translateY(-2px); }
.nav-btn.active::before {
  content: ''; position: absolute; top: 0; width: 34px; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--sea), var(--gold));
}

/* ── Toasts ──────────────────────────────────────────────── */
#toasts { position: fixed; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); left: 0; right: 0; z-index: 1200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  background: var(--sea-deep); color: #fff; font-size: .86rem; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow);
  animation: toastIn .3s cubic-bezier(.2,.7,.3,1);
}
@keyframes toastIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.out { transition: opacity .3s, transform .3s; opacity: 0; transform: translateY(8px); }

/* ── Kleinere Screens ────────────────────────────────────── */
@media (min-width: 520px) {
  .progress-grid { gap: 12px; }
  #map { height: 480px; }
}
