/* Erlebnis-Planer – Gestaltung nach Klick-Dummy (Grün #0E6656, Gelb #F2B544, Bricolage Grotesque + Figtree) */
:root {
  --bg: #F2F5F3;
  --card: #FFFFFF;
  --ink: #15211C;
  --ink-2: #3D4C45;
  --ink-3: #55635C;
  --line: #DDE4E0;
  --line-2: #CBD5D0;
  --soft: #EEF2F0;
  --accent: #0E6656;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCEDE8;
  --sun: #F2B544;
  --heart: #C2521C;
  --sponsor: #8A3A12;
  --sponsor-bg: #FBEBDD;
  --shadow: 0 1px 2px rgba(21,33,28,.06), 0 4px 16px rgba(21,33,28,.06);
  --r: 20px;
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1714; --card: #18231F; --ink: #E8EFEB; --ink-2: #BCC9C2; --ink-3: #9AA9A1;
    --line: #2A3832; --line-2: #3A4A43; --soft: #1F2C27; --accent: #3FB59B; --accent-ink: #062A22;
    --accent-soft: #173A31; --heart: #F08A5D; --sponsor: #F3B48A; --sponsor-bg: #3A2418;
    --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1714; --card: #18231F; --ink: #E8EFEB; --ink-2: #BCC9C2; --ink-3: #9AA9A1;
  --line: #2A3832; --line-2: #3A4A43; --soft: #1F2C27; --accent: #3FB59B; --accent-ink: #062A22;
  --accent-soft: #173A31; --heart: #F08A5D; --sponsor: #F3B48A; --sponsor-bg: #3A2418;
  --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.screen { flex: 1 1 auto; padding: 16px 16px 112px; display: flex; flex-direction: column; gap: 20px; }
.screen.no-nav { padding-bottom: 32px; }

/* Kopfzeile */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.top-title { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0; flex: 1; }
.icon-btn { min-width: 44px; min-height: 44px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--card); display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; gap: 6px; font-weight: 600; font-size: 14px; }
.icon-btn.plain { border: none; background: none; }

h1.hero { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 9vw, 42px); line-height: 1.05; letter-spacing: -.02em; }
h2.sec { margin: 0; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.lead { margin: 0; color: var(--ink-3); font-size: 16px; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.row { display: flex; align-items: center; gap: 8px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* Buttons */
.btn { min-height: 52px; border: none; border-radius: 16px; padding: 0 20px; font-weight: 700; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-big { min-height: 60px; font-size: 19px; border-radius: 18px; width: 100%; }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line-2); }
.btn-link { background: none; border: none; color: var(--accent); font-weight: 600; min-height: 44px; padding: 0 4px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Segmente */
.seg { display: flex; background: var(--soft); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { flex: 1; min-height: 44px; border: none; background: transparent; border-radius: 10px; font-weight: 600; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(21,33,28,.18); }

/* Karten */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.card-pad { padding: 16px; }
.item { display: flex; flex-direction: column; text-decoration: none; color: inherit; position: relative; }
.item-img { height: 132px; position: relative; display: flex; align-items: center; justify-content: center; color: #fff; background-size: cover; background-position: center; }
.item-img svg.cat { opacity: .9; }
.item-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.item-name { margin: 0; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.15; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--ink-3); }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.price { font-weight: 700; color: var(--ink); }
.price.free { color: var(--accent); }
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.92); color: #15211C; }
.badge.sponsored { background: var(--sponsor-bg); color: var(--sponsor); }
.fav-btn { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 22px; border: none; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; color: #15211C; }
.fav-btn[aria-pressed="true"] { color: var(--heart); }
.fav-btn[aria-pressed="true"] svg path { fill: currentColor; }

.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mini { border-radius: 18px; padding: 14px; color: #fff; min-height: 116px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; border: none; text-align: left; }
.mini b { font-family: var(--display); font-size: 16px; line-height: 1.15; }
.mini small { opacity: .9; font-size: 13px; }
.mini.photo { position: relative; overflow: hidden; background-size: cover; background-position: center; min-height: 140px; }
.mini.photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.72)); }
.mini.photo > * { position: relative; }
.mini.photo span { margin-top: auto; text-shadow: 0 1px 3px rgba(0,0,0,.5); }

/* Formular */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .label { font-weight: 700; font-size: 15px; }
.input { min-height: 52px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); padding: 0 14px; width: 100%; font-size: 16px; }
textarea.input { padding: 12px 14px; min-height: 110px; }
.value-big { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: -.02em; }
input[type=range] { width: 100%; accent-color: var(--accent); height: 36px; }
.range-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); margin-top: -4px; }
.stepper { display: flex; align-items: center; gap: 16px; }
.stepper button { width: 52px; height: 52px; border-radius: 26px; border: 1px solid var(--line-2); background: var(--card); font-size: 24px; font-weight: 700; }
.stepper output { font-family: var(--display); font-weight: 700; font-size: 30px; min-width: 64px; text-align: center; }
.suggest { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.suggest button { min-height: 48px; text-align: left; padding: 0 14px; border: none; border-bottom: 1px solid var(--line); background: none; }
.suggest button:last-child { border-bottom: none; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.switch input { width: 48px; height: 28px; accent-color: var(--accent); }

.progress { display: flex; gap: 6px; }
.progress span { height: 6px; flex: 1; border-radius: 3px; background: var(--line-2); }
.progress span.on { background: var(--accent); }

/* Detail */
.detail-hero { height: 240px; margin: -16px -16px 0; position: relative; display: flex; align-items: center; justify-content: center; color: #fff; background-size: cover; background-position: center; }
.detail-hero .back { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: #15211C; border: none; }
.detail-hero .fav-btn { top: 12px; right: 12px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.fact small { display: block; color: var(--ink-3); font-size: 13px; }
.fact b { font-size: 16px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { display: grid; grid-template-columns: 56px 18px 1fr; gap: 8px; min-height: 44px; }
.timeline .t { font-weight: 700; font-variant-numeric: tabular-nums; padding-top: 1px; }
.timeline .dot { position: relative; }
.timeline .dot::before { content: ''; position: absolute; left: 4px; top: 6px; width: 10px; height: 10px; border-radius: 5px; background: var(--accent); }
.timeline .dot::after { content: ''; position: absolute; left: 8px; top: 18px; bottom: -6px; width: 2px; background: var(--accent-soft); }
.timeline li:last-child .dot::after { display: none; }
.hl { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hl li { display: flex; gap: 10px; align-items: center; }
.hl .n { width: 26px; height: 26px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.map { height: 260px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.map.tall { height: 58vh; min-height: 320px; }
.map-fallback { height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--ink-3); font-size: 14px; }
.note { background: var(--accent-soft); border-radius: 16px; padding: 12px 14px; font-size: 14px; color: var(--ink); }
.note.warn { background: var(--sponsor-bg); color: var(--ink); }
.sticky-cta { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, transparent); display: flex; gap: 10px; }

/* Onboarding */
.ob-art { flex: 1 1 auto; min-height: 280px; border-radius: 28px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; }
.ob-art .ring { width: 168px; height: 168px; border-radius: 84px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; position: relative; }
.dots { display: flex; gap: 6px; }
.dots span { height: 8px; width: 8px; border-radius: 4px; background: var(--line-2); transition: width .2s; }
.dots span.on { width: 24px; background: var(--accent); }

/* Navigation unten */
.nav { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 1000; }
.nav ul { list-style: none; margin: 0 auto; padding: 0; max-width: 560px; display: flex; }
.nav li { flex: 1; }
.nav a { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--ink-3); font-size: 12px; font-weight: 600; }
.nav a[aria-current="page"] { color: var(--accent); }

/* Abo */
.tier { padding: 16px; border-radius: var(--r); border: 2px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 6px; text-align: left; }
.tier[aria-pressed="true"] { border-color: var(--accent); }
.tier ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }

/* Rechtliches */
.legal { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
.legal h1 { font-family: var(--display); font-size: 32px; line-height: 1.1; margin: 16px 0 8px; }
.legal h2 { font-family: var(--display); font-size: 21px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal .todo { background: var(--sponsor-bg); color: var(--ink); padding: 2px 6px; border-radius: 6px; }
.foot { text-align: center; font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; padding: 8px 0; }
.foot a { color: var(--ink-3); }

.toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; z-index: 2000; max-width: calc(100% - 32px); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.leaflet-container { font-family: var(--font); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Ablauf im Tagesplan (Stationen ziehen) */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.step-row { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px; transition: transform .15s ease; }
.step-row.dragging { transition: none; box-shadow: 0 6px 18px rgba(0,0,0,.18); position: relative; z-index: 2; }
.step-handle { touch-action: none; cursor: grab; border: 0; background: none; padding: 6px; color: var(--ink-3); border-radius: 8px; display: flex; }
.step-handle:active { cursor: grabbing; }
.step-handle:focus-visible { outline: 2px solid var(--accent); }
.step-no { width: 22px; height: 22px; border-radius: 11px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.step-name { flex: 1; }
.fav-pick { font: inherit; font-size: 13px; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: inherit; max-width: 220px; }

/* Zur Tour hinzufügen, Tour-Leiste, Auswahl pro Station */
.card.item { position: relative; }
.tour-btn { position: absolute; top: 8px; right: 60px; height: 44px; padding: 0 14px; border-radius: 22px; border: none; background: rgba(255,255,255,.92); color: #15211C; font: inherit; font-size: 13px; font-weight: 700; }
.tour-btn[aria-pressed="true"] { background: var(--accent); color: #fff; }
.tour-bar { position: sticky; bottom: 76px; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.chooser { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; }
.timeline .chooser li { display: block; min-height: 0; flex: none; } /* nicht zusammenstauchen, wenn die Liste scrollt */
.choose-row { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: inherit; font: inherit; }
.choose-row.off { opacity: .55; }
.choose-row[aria-current="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.step-row.locked { opacity: .5; }

/* Anlässe und Einladungen */
ul.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
ul.comments li { background: var(--soft, #F2F5F3); border-radius: 10px; padding: 6px 10px; }
details.ev summary { cursor: pointer; list-style: none; }
details.ev summary::-webkit-details-marker { display: none; }
textarea.input { font: inherit; resize: vertical; }
