/* hop2spot – Farben und Schrift (verbindlich ab 5.11.2026, siehe Worksheet «Farben und Schrift hop2spot»): Pink als Hauptfarbe, Limette als Akzent, Dunkelgrau #2B2F36; Titel Poppins, Text Figtree */
:root {
  --bg: #F5F6F8;
  --card: #FFFFFF;
  --ink: #2B2F36;
  --ink-2: #4A505A;
  --ink-3: #626873;
  --line: #E2E5EA;
  --line-2: #CDD1D8;
  --soft: #EEF0F3;
  --accent: #E0107A;
  --accent-ink: #FFFFFF;
  --accent-soft: #FCE3EF;
  --sun: #86B800;
  --heart: #E0107A;
  --sponsor: #4F6B00;
  --sponsor-bg: #EEF6D6;
  --lime: #86B800;
  --pink: #F0127F;
  --ring: #2B2F36;
  --glow: none;
  --shadow: 0 1px 2px rgba(43,47,54,.06), 0 4px 16px rgba(43,47,54,.07);
  --r: 20px;
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Poppins', 'Figtree', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #22252B; --card: #2B2F36; --ink: #F2F3F5; --ink-2: #C6CAD1; --ink-3: #9CA2AB;
    --line: #3A3F48; --line-2: #4A505A; --soft: #33373F; --accent: #F0127F; --accent-ink: #FFFFFF;
    --accent-soft: #4A2238; --sun: #DFFF1A; --heart: #FF1F8E; --sponsor: #DFFF1A; --sponsor-bg: #3A4214;
    --lime: #DFFF1A; --pink: #FF1F8E; --ring: #FFFFFF; --glow: drop-shadow(0 0 2px rgba(223,255,26,.9)) drop-shadow(0 0 5px rgba(223,255,26,.55));
    --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #22252B; --card: #2B2F36; --ink: #F2F3F5; --ink-2: #C6CAD1; --ink-3: #9CA2AB;
  --line: #3A3F48; --line-2: #4A505A; --soft: #33373F; --accent: #F0127F; --accent-ink: #FFFFFF;
  --accent-soft: #4A2238; --sun: #DFFF1A; --heart: #FF1F8E; --sponsor: #DFFF1A; --sponsor-bg: #3A4214;
  --lime: #DFFF1A; --pink: #FF1F8E; --ring: #FFFFFF; --glow: drop-shadow(0 0 2px rgba(223,255,26,.9)) drop-shadow(0 0 5px rgba(223,255,26,.55));
  --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
}
/* Logo: Pin-Symbol (nur der äussere Limetten-Pin leuchtet im dunklen Modus) und Schriftzug hop2spot */
.mk { flex: none; display: block; }
.mk .mk-o { filter: var(--glow); }
.wm { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; color: var(--lime); }
.wm b { font-weight: inherit; color: var(--ink); }
.wm i { font-style: normal; color: var(--pink); }

* { 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: #2B2F36; }
.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: #2B2F36; }
.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: #2B2F36; 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: #2B2F36; 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; }

.stepper .persons-num { width: 72px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 26px; border: none; background: transparent; color: inherit; -moz-appearance: textfield; }
.stepper .persons-num::-webkit-outer-spin-button, .stepper .persons-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Karten-Raster, Handy (Standard) ---------- */
.cards { display: flex; flex-direction: column; gap: 12px; }
.nav-brand, .hero-art { display: none; }
.map.side { height: 260px; }
.hl-card { outline: 3px solid var(--accent); outline-offset: 2px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 8px; }
.sum-row b { text-align: right; }

/* ---------- Breites Layout (Computer, ab 900 px) ---------- */
@media (min-width: 900px) {
  .app { max-width: 1200px; }
  .screen { padding: 88px 32px 48px; gap: 24px; }
  .screen.no-nav { padding: 32px 32px 48px; }
  .app[data-page="detail"] .screen { padding-top: 32px; }

  /* Navigation als Leiste oben, mit Logo links */
  .nav { top: 0; bottom: auto; border-top: none; border-bottom: 1px solid var(--line); padding-bottom: 0; }
  .nav ul { max-width: 1200px; padding: 0 32px; gap: 4px; align-items: center; }
  .nav li { flex: none; }
  .nav li.nav-brand { display: block; margin-right: auto; }
  .nav a { min-height: 64px; flex-direction: row; gap: 8px; font-size: 15px; padding: 0 14px; }
  .nav .brand { font-size: 21px; padding: 0; color: var(--ink); }
  .app[data-page="start"] .top { display: none; }
  .toast { bottom: 24px; }
  .tour-bar { bottom: 24px; max-width: 420px; align-self: center; width: 100%; }

  /* Startseite: Text links, Bild rechts; Karten im Raster */
  .hero-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .hero-text { gap: 18px; }
  h1.hero { font-size: 52px; }
  .lead { font-size: 18px; }
  .hero-art { display: block; height: 340px; border-radius: 24px; overflow: hidden; }
  .hero-art svg { width: 100%; height: 100%; display: block; }
  .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .mini-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }

  /* Zweispaltig: Inhalt links, Karte/ÖV/Buchen rechts (bleibt beim Scrollen stehen) */
  .split { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; align-items: start; }
  .split-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
  .split-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 104px); overflow-y: auto; }
  .split .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-side .map, .split-side .map.side { height: min(70vh, 640px); }
  .app[data-page="detail"] .split-side .map { height: 320px; }
  .split-side .sticky-cta { position: static; background: none; padding: 0; }
  .app[data-page="vorschlaege"] .seg { display: none; }
  .detail-hero { height: 380px; margin: 0; border-radius: 20px; }

  /* Eingabe: Formular schmal, Zusammenfassung daneben */
  .app[data-page="eingabe"] .screen { max-width: 1040px; width: 100%; margin: 0 auto; }
  .app[data-page="eingabe"] .split { grid-template-columns: minmax(0, 640px) 320px; justify-content: center; }
  .app[data-page="eingabe"] .split-side { max-height: none; }

  /* Formulare und Konto schmal und zentriert */
  .app[data-page="konto"] .screen, .app[data-page="willkommen"] .screen, .app[data-page="admin"] .screen, .app[data-page="anlass"] .screen { max-width: 760px; width: 100%; margin: 0 auto; }
  .app[data-page="willkommen"] .screen { padding-top: 32px; }
}
@media (min-width: 1200px) {
  .split { grid-template-columns: minmax(0, 1fr) 480px; }
}
