/* ============================================================
   Schwedenreise 2026 — Reiseassistent
   Aesthetik: "Nordic Summer Travel Journal"
   ============================================================ */

:root {
  /* Paper / ink */
  --paper:        #f7f1e4;
  --paper-2:      #fffaf0;
  --card:         #fffdf8;
  --ink:          #21303a;
  --ink-soft:     #4a5b66;
  --ink-faint:    #7d8b93;
  --line:         #e6dcc7;
  --line-soft:    #efe7d6;

  /* Brand */
  --blue:         #1b4965;   /* lake / stockholm */
  --blue-2:       #2a6f97;
  --sun:          #f4c430;   /* sun yellow */
  --sun-deep:     #e0a800;
  --green:        #2e8b57;   /* pine */
  --green-deep:   #1f6e46;
  --sea:          #178a8a;   /* västervik sea */
  --coral:        #e8763a;   /* accent / warm */
  --berry:        #a63d5b;

  /* Etappen */
  --e-stockholm:  #2a6f97;
  --e-kristinehamn: #2e8b57;
  --e-vastervik:  #178a8a;

  --radius:       18px;
  --radius-lg:    26px;
  --shadow:       0 1px 2px rgba(33,48,58,.06), 0 8px 24px -12px rgba(33,48,58,.22);
  --shadow-lg:    0 2px 6px rgba(33,48,58,.08), 0 22px 48px -20px rgba(33,48,58,.35);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --tabbar-h:     66px;
  --topbar-h:     54px;
  --maxw:         720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 100% -10%, rgba(244,196,48,.16), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(46,139,87,.12), transparent 55%);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ============================================================
   Passwort-Gate
   ============================================================ */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
  background:
    radial-gradient(1000px 700px at 80% -10%, rgba(244,196,48,.25), transparent 60%),
    linear-gradient(160deg, #1b4965, #123449 70%);
}
.gate__card {
  width: 100%; max-width: 380px;
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  padding: 38px 30px 30px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: rise .6s cubic-bezier(.2,.8,.2,1) both;
}
.gate__mark { display: inline-flex; margin-bottom: 10px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.15)); }
.gate__title {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.85rem; line-height: 1.05;
  letter-spacing: -.02em; color: var(--blue);
}
.gate__sub { color: var(--ink-faint); font-size: .95rem; margin-top: 4px; margin-bottom: 24px; }
.gate__form { display: grid; gap: 12px; text-align: left; }
.gate__label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.gate__input {
  font-family: inherit; font-size: 1.15rem; letter-spacing: .1em;
  padding: 14px 16px; border: 2px solid var(--line);
  border-radius: 14px; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.gate__input:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(42,111,151,.15); }
.gate__btn {
  margin-top: 4px; padding: 15px; border: none; border-radius: 14px;
  background: var(--blue); color: #fff; font-size: 1.02rem; font-weight: 600;
  letter-spacing: .01em; transition: transform .12s, background .2s;
}
.gate__btn:active { transform: scale(.97); }
.gate__btn:hover { background: var(--blue-2); }
.gate__error { color: var(--berry); font-size: .85rem; font-weight: 500; text-align: center; }
.gate__remember {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin-top: 18px; font-size: .82rem; color: var(--ink-faint);
}
.gate.shake .gate__card { animation: shake .4s; }
@keyframes shake { 10%,90%{transform:translateX(-2px)} 30%,70%{transform:translateX(5px)} 50%{transform:translateX(-7px)} }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }

/* ============================================================
   App shell
   ============================================================ */
.app { max-width: var(--maxw); margin: 0 auto; min-height: 100dvh; position: relative; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px;
  padding-top: env(safe-area-inset-top);
  height: calc(var(--topbar-h) + env(safe-area-inset-top));
  background: rgba(247,241,228,.82);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__back {
  border: none; background: transparent; color: var(--blue);
  font-size: 1.9rem; line-height: 1; width: 38px; height: 38px;
  border-radius: 10px; display: grid; place-items: center;
}
.topbar__back:active { background: var(--line-soft); }
.topbar__title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  letter-spacing: -.01em; flex: 1;
}
.topbar__flag {
  width: 26px; height: 18px; border-radius: 3px; flex: none;
  background:
    linear-gradient(#006aa7,#006aa7) 0 0/100% 100%;
  position: relative; overflow: hidden;
}
.topbar__flag::before { content:""; position:absolute; top:0; bottom:0; left:8px; width:4px; background:#fecc00; }
.topbar__flag::after  { content:""; position:absolute; left:0; right:0; top:7px; height:4px; background:#fecc00; }

.view {
  padding: 18px 16px calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 26px);
  animation: fade .3s ease both;
}
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* ============================================================
   Bottom tab bar
   ============================================================ */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  max-width: var(--maxw); margin: 0 auto;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex; align-items: stretch;
  background: rgba(255,253,248,.9);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-top: 1px solid var(--line);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--ink-faint); font-size: .68rem; font-weight: 600;
  letter-spacing: .01em; position: relative; transition: color .18s;
}
.tab__ico { width: 24px; height: 24px; display: grid; place-items: center; }
.tab__ico svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tab.active { color: var(--blue); }
.tab.active .tab__ico::after {
  content:""; position:absolute; top: 6px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 0 3px rgba(244,196,48,.25);
}
.tab.active svg { fill: rgba(42,111,151,.12); }

/* ============================================================
   Typography helpers
   ============================================================ */
.h-eyebrow {
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-faint);
}
.h-display {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.05;
  color: var(--ink);
}
.section-title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem;
  letter-spacing: -.01em; margin: 30px 2px 14px; display: flex; align-items: center; gap: 9px;
}
.section-title:first-child { margin-top: 6px; }
.section-title .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); flex: none; }

/* ============================================================
   Home / Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 26px 22px 24px;
  color: #fff;
  background: linear-gradient(150deg, #1b4965 0%, #123449 65%);
  box-shadow: var(--shadow-lg);
}
.hero::before {
  content:""; position: absolute; width: 210px; height: 210px; border-radius: 50%;
  right: -50px; top: -70px; background: radial-gradient(circle at 40% 40%, #f4c430, #e0a800);
  opacity: .92; filter: blur(.3px);
}
.hero::after {
  content:""; position: absolute; left: 0; right: 0; bottom: -2px; height: 70px;
  background:
    radial-gradient(60px 40px at 20% 100%, var(--green) 60%, transparent 62%),
    radial-gradient(80px 50px at 55% 100%, var(--green-deep) 60%, transparent 62%),
    radial-gradient(70px 44px at 90% 100%, var(--green) 60%, transparent 62%);
  opacity: .5;
}
.hero > * { position: relative; z-index: 1; }
.hero__eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sun); }
.hero__title { font-family: var(--font-display); font-weight: 600; font-size: 2.15rem; line-height: 1; margin: 8px 0 4px; letter-spacing: -.02em; }
.hero__dates { color: #cfe0ea; font-size: .95rem; }

.countdown { display: flex; gap: 10px; margin-top: 22px; }
.cd { flex: 1; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: 12px 6px; text-align: center; backdrop-filter: blur(4px); }
.cd__n { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; line-height: 1; }
.cd__l { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: #b9cdd8; margin-top: 5px; }
.countdown--done { margin-top: 22px; background: rgba(244,196,48,.16); border:1px solid rgba(244,196,48,.4); border-radius: 14px; padding: 14px; text-align:center; font-weight:600; }

/* Next-up card */
.nextup {
  margin-top: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px;
}
.nextup__badge {
  flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--sun); color: var(--blue); font-size: 1.4rem;
}
.nextup__k { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.nextup__v { font-weight: 600; font-size: 1.02rem; }
.nextup__meta { font-size: .84rem; color: var(--ink-soft); }

/* ============================================================
   Etappen timeline (home) + list
   ============================================================ */
.etappe-list { display: grid; gap: 14px; }
.etappe-card {
  position: relative; display: block; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .2s;
}
.etappe-card:active { transform: scale(.985); }
.etappe-card__band { height: 76px; position: relative; overflow: hidden; }
.etappe-card__band svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.etappe-card__num {
  position: absolute; top: 12px; left: 14px; z-index: 2;
  font-family: var(--font-display); font-weight: 600; color: #fff;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(0,0,0,.22); padding: 3px 10px; border-radius: 20px; backdrop-filter: blur(4px);
}
.etappe-card__nights {
  position: absolute; top: 12px; right: 14px; z-index: 2; color: #fff; font-weight: 600; font-size: .8rem;
  background: rgba(0,0,0,.22); padding: 3px 10px; border-radius: 20px; backdrop-filter: blur(4px);
}
.etappe-card__body { padding: 14px 16px 16px; }
.etappe-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -.01em; }
.etappe-card__sub { color: var(--ink-soft); font-size: .9rem; margin-top: 2px; }
.etappe-card__row { display: flex; align-items: center; gap: 8px; margin-top: 11px; font-size: .84rem; color: var(--ink-soft); }
.etappe-card__row .pin { color: var(--e); }
.etappe-card__go { margin-left: auto; color: var(--e); font-weight: 700; font-size: 1.3rem; }
.etappe-card__planned { display:inline-block; margin-top:10px; font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--coral); background:rgba(232,118,58,.12); padding:3px 9px; border-radius:20px; }

/* ============================================================
   Generic card + detail blocks
   ============================================================ */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.pad { padding: 16px; }

.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.info-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; margin-bottom: 4px; display:flex; align-items:center; gap:8px; }
.info-card h3 .ico { font-size: 1.15rem; }
.info-card p { color: var(--ink-soft); font-size: .92rem; margin-top: 6px; }
.info-card ul { margin: 8px 0 0; padding-left: 2px; list-style: none; display: grid; gap: 7px; }
.info-card li { font-size: .9rem; color: var(--ink-soft); padding-left: 20px; position: relative; }
.info-card li::before { content:"→"; position:absolute; left:0; color: var(--green); font-weight:700; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .92rem; margin-top: 10px; }
.kv dt { color: var(--ink-faint); font-weight: 600; }
.kv dd { color: var(--ink); font-weight: 500; text-align: right; }
.kv dd a { color: var(--blue-2); font-weight: 600; }

.code-chip {
  display:inline-block; font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--paper); border:1px dashed var(--line); color: var(--blue);
  padding: 2px 8px; border-radius: 7px; font-weight: 600; letter-spacing: .04em;
}

/* Accommodation banner in etappe detail */
.stay {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); background: var(--card); margin-bottom: 18px;
}
.stay__top { padding: 16px; color:#fff; position: relative; }
.stay__type { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; opacity: .9; }
.stay__name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-top: 3px; }
.stay__addr { font-size: .88rem; opacity: .92; margin-top: 3px; }
.stay__body { padding: 14px 16px; }

/* ============================================================
   Timetable (Tagesplan)
   ============================================================ */
.day { margin-bottom: 16px; }
.day__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.day__date {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--e, var(--blue));
}
.day__title { color: var(--ink-soft); font-size: .92rem; font-weight: 600; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content:""; position:absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; }
.tl-item { position: relative; padding: 4px 0 12px; }
.tl-item::before {
  content:""; position:absolute; left: -19px; top: 8px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--e, var(--blue));
}
.tl-item.tip::before { border-color: var(--sun); background: var(--sun); }
.tl-time { font-weight: 700; font-size: .82rem; color: var(--e, var(--blue)); font-variant-numeric: tabular-nums; }
.tl-text { font-size: .93rem; color: var(--ink); margin-top: 1px; }
.tl-item.tip .tl-text { color: var(--ink-soft); font-style: italic; }
.tl-item.tip .tl-time { color: var(--sun-deep); }

/* ============================================================
   Filter bar + chips
   ============================================================ */
.filterbar {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px;
  margin: 0 -16px 4px; padding-left: 16px; padding-right: 16px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.filterbar::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1.5px solid var(--line); background: var(--card);
  color: var(--ink-soft); font-weight: 600; font-size: .84rem;
  padding: 8px 14px; border-radius: 30px; white-space: nowrap; transition: all .16s;
}
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip[data-etappe="stockholm"].active { background: var(--e-stockholm); border-color: var(--e-stockholm); }
.chip[data-etappe="kristinehamn"].active { background: var(--e-kristinehamn); border-color: var(--e-kristinehamn); }
.chip[data-etappe="vastervik"].active { background: var(--e-vastervik); border-color: var(--e-vastervik); }
.count-line { font-size: .8rem; color: var(--ink-faint); margin: 2px 2px 12px; }

/* ============================================================
   Sight / Restaurant cards
   ============================================================ */
.cards { display: grid; gap: 15px; }
@media (min-width: 560px) { .cards { grid-template-columns: 1fr 1fr; } }

.poi {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .2s;
}
.poi:active { transform: scale(.99); }
.poi__banner {
  height: 96px; position: relative; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 10px 12px; overflow: hidden;
}
.poi__banner .emoji {
  font-size: 2.6rem; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0,0,0,.22));
}
.poi__rating {
  background: rgba(255,255,255,.92); color: var(--blue); font-weight: 700; font-size: .82rem;
  padding: 4px 9px; border-radius: 20px; box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.poi__rating small { font-weight: 600; color: var(--ink-faint); }
.poi__etappe {
  position: absolute; top: 10px; left: 12px; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: #fff;
  background: rgba(0,0,0,.25); padding: 3px 9px; border-radius: 20px; backdrop-filter: blur(3px);
}
.poi__body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.poi__name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; line-height: 1.1; }
.poi__desc { font-size: .87rem; color: var(--ink-soft); margin-top: 5px; flex: 1; }
.poi__facts { display: grid; gap: 5px; margin-top: 11px; }
.poi__fact { display: flex; gap: 8px; font-size: .82rem; color: var(--ink-soft); align-items: flex-start; }
.poi__fact .fi { flex: none; width: 16px; text-align: center; opacity: .8; }
.poi__fact b { color: var(--ink); font-weight: 600; }
.poi__actions { display: flex; gap: 8px; margin-top: 13px; }
.btn-s {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: .82rem; font-weight: 600; padding: 9px 10px; border-radius: 11px;
  border: 1.5px solid var(--line); background: var(--paper-2); color: var(--blue); transition: all .15s;
}
.btn-s:active { transform: scale(.96); }
.btn-s.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-s.primary[data-e="stockholm"]{ background:var(--e-stockholm); border-color:var(--e-stockholm);}
.btn-s.primary[data-e="kristinehamn"]{ background:var(--e-kristinehamn); border-color:var(--e-kristinehamn);}
.btn-s.primary[data-e="vastervik"]{ background:var(--e-vastervik); border-color:var(--e-vastervik);}

.price {
  display:inline-block; font-weight: 700; letter-spacing: .04em;
}
.price[data-p="1"] { color: var(--green); }
.price[data-p="2"] { color: var(--sea); }
.price[data-p="3"] { color: var(--coral); }
.price[data-p="4"] { color: var(--berry); }

.note-banner {
  background: rgba(244,196,48,.14); border: 1px solid rgba(224,168,0,.3);
  border-radius: var(--radius); padding: 13px 15px; font-size: .88rem; color: #6b5410;
  margin-bottom: 16px; display: flex; gap: 10px;
}
.note-banner .ni { flex: none; font-size: 1.1rem; }

/* ============================================================
   Checklist
   ============================================================ */
.check { list-style: none; display: grid; gap: 8px; }
.check li { }
.check label {
  display: flex; align-items: flex-start; gap: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: 13px; padding: 13px 14px;
  font-size: .92rem; color: var(--ink); box-shadow: var(--shadow); transition: all .15s;
}
.check input { display: none; }
.check .box {
  flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line);
  display: grid; place-items: center; transition: all .18s; margin-top: 1px;
}
.check .box::after { content:"✓"; color:#fff; font-size:.8rem; font-weight:800; opacity:0; transform: scale(.5); transition: all .18s; }
.check input:checked + .box { background: var(--green); border-color: var(--green); }
.check input:checked + .box::after { opacity: 1; transform: scale(1); }
.check input:checked ~ .txt { color: var(--ink-faint); text-decoration: line-through; }

/* ============================================================
   Misc
   ============================================================ */
.lead { color: var(--ink-soft); font-size: .96rem; margin: 2px 2px 4px; }
.tiny { font-size: .78rem; color: var(--ink-faint); }
.divider { height: 1px; background: var(--line-soft); margin: 22px 0; border: none; }
.foot { text-align: center; color: var(--ink-faint); font-size: .76rem; margin-top: 26px; padding: 0 10px; }
.foot a { color: var(--blue-2); text-decoration: underline; }
.pill-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.pill { font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft); }
.group-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.person { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.person b { font-weight: 600; }
.person span { display: block; font-size: .78rem; color: var(--ink-faint); }

@media (min-width: 480px) {
  .hero__title { font-size: 2.5rem; }
}

/* ============================================================
   Karte (Leaflet)
   ============================================================ */
.map-wrap {
  position: relative; z-index: 0; isolation: isolate;   /* hält Leaflets z-index unter der Navi */
  height: 56vh; min-height: 340px;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: #e7ede6;
}
.filter-head { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin: 2px 2px 8px; }
.filter-head .tiny { text-transform: none; letter-spacing: 0; font-weight: 500; }

/* Karte + Ortsliste nebeneinander auf großen Screens */
@media (min-width: 720px) {
  .map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 16px; align-items: start; }
  .map-col { min-width: 0; }
  .map-wrap { height: 66vh; min-height: 420px; }
  .map-layout .poi-list {
    margin-top: 0; align-self: start; position: sticky; top: calc(var(--topbar-h) + 10px);
    max-height: calc(100dvh - var(--topbar-h) - 96px); overflow-y: auto; padding-right: 2px;
  }
  .map-layout .poi-list__h { position: sticky; top: 0; background: var(--paper); padding: 4px 2px 8px; margin: 0 0 4px; }
}
#map { position: absolute; inset: 0; }
.leaflet-container { font-family: var(--font-body); background: #e7ede6; }
.leaflet-control-attribution { font-size: 9px; }
.leaflet-bar a { color: var(--blue); }

/* Custom Pin */
.pin-ico { position: relative; }
.pin-ico .pin-dot {
  width: 26px; height: 26px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.35); display: grid; place-items: center;
}
.pin-ico .pin-emoji { transform: rotate(45deg); font-size: 13px; line-height: 1; }
.pin-ico.sel .pin-dot { outline: 3px solid var(--sun); outline-offset: 1px; }
.pin-ab {
  position: absolute; top: -12px; right: -12px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center;
  border: 2px solid #fff; z-index: 5;
}

/* Legende */
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 2px 0; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-soft); font-weight: 600; }
.map-legend i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }

/* Auswahl-/Routen-Panel */
.route-hint {
  margin-top: 14px; text-align: center; font-size: .86rem; color: var(--ink-faint);
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 13px;
}
.route-panel {
  margin-top: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.route-panel__ab { display: flex; align-items: stretch; }
.route-panel__pt { flex: 1; padding: 12px 14px; min-width: 0; }
.route-panel__pt:first-child { border-right: 1px dashed var(--line); }
.route-panel__tag { font-size: .72rem; font-weight: 800; color: var(--ink-faint); letter-spacing: .06em; }
.route-panel__nm { font-weight: 600; font-size: .95rem; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-panel__body { padding: 13px 14px; border-top: 1px solid var(--line-soft); }
.route-dist { text-align: center; font-size: .82rem; color: var(--ink-faint); margin-bottom: 12px; }
.route-dist b { color: var(--ink); font-weight: 700; }
.route-modes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.rmode {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 11px 6px;
  border: 1.5px solid var(--line); border-radius: 13px; background: var(--paper-2); color: var(--ink);
  transition: all .15s; text-align: center;
}
.rmode:active { transform: scale(.96); }
.rmode .rm-ico { font-size: 1.2rem; }
.rmode .rm-t { font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.rmode .rm-l { font-size: .66rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .04em; }
.rmode.off { opacity: .5; }
.route-links { display: flex; gap: 8px; margin-top: 12px; }
.route-links a { flex: 1; }
.route-reset {
  display: block; width: 100%; margin-top: 10px; padding: 9px; border: none; background: transparent;
  color: var(--ink-faint); font-size: .82rem; font-weight: 600; border-radius: 10px;
}
.route-reset:active { background: var(--line-soft); }

/* Typ-Filter-Chips mit Farbpunkt */
.chip .cdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.chip.active .cdot { box-shadow: 0 0 0 1px rgba(255,255,255,.5); }

/* Cluster-Icons an die Papier-Optik anpassen */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large { background: rgba(27,73,101,.25); }
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div { background: var(--blue); color: #fff; font-family: var(--font-body); font-weight: 700; }
.marker-cluster span { line-height: 30px; }

/* Detail-Popup */
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 12px 14px; font-family: var(--font-body); line-height: 1.4; }
.pp { min-width: 190px; }
.pp-top { font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.pp-name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.1; margin: 2px 0 6px; color: var(--ink); }
.pp-rate { display: inline-block; background: var(--blue); color: #fff; font-weight: 700; font-size: .76rem; padding: 2px 8px; border-radius: 20px; margin-bottom: 6px; }
.pp-facts { display: grid; gap: 3px; font-size: .82rem; color: var(--ink-soft); }
.pp-price { margin-bottom: 4px; }
.pp p { font-size: .84rem; color: var(--ink-soft); margin: 4px 0 0; }
.pp-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.pp-links a { flex: 1; min-width: 84px; text-align: center; font-size: .8rem; font-weight: 600; padding: 7px 8px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper-2); color: var(--blue); }
.pp-ab { display: flex; gap: 6px; margin-top: 9px; border-top: 1px solid var(--line-soft); padding-top: 9px; }
.pp-btn { flex: 1; padding: 8px; border-radius: 10px; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); font-weight: 700; font-size: .82rem; }
.pp-btn:active { transform: scale(.96); }
.pp-btn.on { background: var(--blue); color: #fff; }

/* Ortsliste unter der Karte */
.poi-list { margin-top: 16px; }
.poi-list__h { font-size: .8rem; color: var(--ink-faint); font-weight: 600; margin: 0 2px 9px; }
.poi-row {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 13px;
  padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow); transition: transform .12s, background .15s;
}
.poi-row:active { transform: scale(.985); background: var(--paper-2); }
.poi-row.here { border-color: var(--sun); box-shadow: 0 0 0 2px rgba(244,196,48,.35), var(--shadow); }
.poi-row__dot { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1.05rem; border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.poi-row__tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.poi-row__nm { font-weight: 600; font-size: .94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poi-row__mt { font-size: .76rem; color: var(--ink-faint); font-weight: 600; }
.poi-row__go { flex: none; color: var(--ink-faint); font-size: 1.3rem; font-weight: 700; }
.poi-list__empty { text-align: center; color: var(--ink-faint); font-size: .88rem; padding: 18px; }

/* An- & Abreise */
.anab__row { display: flex; gap: 13px; align-items: flex-start; }
.anab__ico { font-size: 1.5rem; flex: none; margin-top: 1px; }
.anab__k { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-faint); }
.anab__w { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--e, var(--blue)); margin: 1px 0 3px; }
.anab__h { font-size: .88rem; color: var(--ink-soft); }
.anab__sep { height: 1px; background: var(--line-soft); margin: 13px 0; }

/* Karten (Sehen/Essen/Einkauf) klickbar */
.poi[data-detail] { cursor: pointer; -webkit-user-select: none; user-select: none; }
.poi[data-detail]:active { transform: scale(.99); }
.poi__more { flex: none; color: var(--ink-faint); font-size: 1.05rem; line-height: 1; }

/* Detail-Modal */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(20,30,36,.5); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.modal__sheet {
  position: relative; z-index: 1; width: 100%; max-width: var(--maxw); max-height: 88vh; overflow-y: auto;
  background: var(--paper-2); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg);
  animation: sheetUp .32s cubic-bezier(.2,.8,.2,1); -webkit-overflow-scrolling: touch;
}
@keyframes sheetUp { from { transform: translateY(34px); opacity: .5; } }
@media (min-width: 560px) {
  .modal { align-items: center; padding: 20px; }
  .modal__sheet { border-radius: 22px; max-height: 84vh; }
}
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.9); color: var(--ink); font-size: 1.35rem; line-height: 1;
  box-shadow: var(--shadow); display: grid; place-items: center;
}
.modal__close:active { transform: scale(.92); }
.modal__banner { height: 130px; display: flex; align-items: flex-end; justify-content: space-between; padding: 12px 16px; }
.md-emoji { font-size: 3rem; line-height: 1; filter: drop-shadow(0 3px 7px rgba(0,0,0,.28)); }
.modal__pad { padding: 16px 18px 22px; }
.md-eyebrow { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.md-name { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.08; letter-spacing: -.01em; margin: 3px 0 8px; }
.md-desc { color: var(--ink-soft); font-size: .96rem; margin-bottom: 12px; }
.md-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.md-actions .btn-s { flex: 1; min-width: 120px; }

/* Echte-Route-Markierung im Routen-Panel */
.rmode.real .rm-l::after { content: " ✓"; color: var(--green); }
