body { margin: 0; }
/* Layout: one narrow column like a phone ticket; flight strip on top, day tabs, then the day's suggestions ranked by votes */
:root {
  --bg: #f5f3f1;
  --surface: #ffffff;
  --ink: #1d2230;
  --muted: #5d6474;
  --line: #e2dfdc;
  --accent: #b3263a;        /* Polish red, toned down */
  --accent-soft: #f6e3e6;
  --accent-ink: #ffffff;
  --gold: #a5741c;
  --gold-soft: #f6ecd8;
  --sight: #2f5f8a;
  --map-bg: #eef0f2;
  --river: #bcd3e6;
  --river-ink: #4f7593;
  --park: #d9e6d3;
  --street: #ffffff;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161d; --surface: #1d2029; --ink: #eceaf0; --muted: #a2a7b6; --line: #2e323e;
    --accent: #e0566a; --accent-soft: #3a1f26; --accent-ink: #1a0b0e;
    --gold: #e3b05a; --gold-soft: #33291a; --sight: #6fa3d4; --map-bg: #191c24; --river: #233a52; --river-ink: #7fa6c8; --park: #1f2d22; --street: #2b2f3b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14161d; --surface: #1d2029; --ink: #eceaf0; --muted: #a2a7b6; --line: #2e323e;
  --accent: #e0566a; --accent-soft: #3a1f26; --accent-ink: #1a0b0e;
  --gold: #e3b05a; --gold-soft: #33291a; --sight: #6fa3d4; --map-bg: #191c24; --river: #233a52; --river-ink: #7fa6c8; --park: #1f2d22; --street: #2b2f3b; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.5;
}
.wrap {
  max-width: 640px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 24px 64px;
  display: flex; flex-direction: column; gap: 20px;
}
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
h1 { font-size: 2rem; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
.lede { color: var(--muted); margin: 6px 0 0; }

/* Flights */
.flights { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .flights { grid-template-columns: 1fr; } }
.flight {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.flight .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.flight .route { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.flight .meta strong { color: var(--ink); font-weight: 600; }
.flight .meta { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.flight .changed { color: var(--gold); font-weight: 600; }

/* Name */
.me {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  font-size: .95rem; color: var(--muted);
}
.me strong { color: var(--ink); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Tabs */
.tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tab {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 12px; padding: 8px 4px 7px; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 0;
}
.tab .dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.tab .num { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tab .count { font-size: .72rem; color: var(--muted); }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tab[aria-selected="true"] .dow, .tab[aria-selected="true"] .count { color: var(--accent-ink); opacity: .85; }
.tab:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Day */
.dayhead { display: flex; flex-direction: column; gap: 2px; }
.dayhead h2 { font-size: 1.4rem; font-weight: 700; }
.dayhead p { margin: 0; color: var(--muted); font-size: .95rem; }

.list { display: flex; flex-direction: column; gap: 10px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; min-width: 0;
}
.card.lead { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.card .body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.card h3 { font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
.badge { display: inline-block; font-family: var(--font-body); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); background: var(--gold-soft); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 3px; }
.card .desc { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.card .foot { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.card .foot a { color: var(--accent); font-weight: 600; overflow-wrap: anywhere; }
.vote {
  align-self: start; display: flex; flex-direction: column; align-items: center; gap: 0;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: 12px; padding: 6px 10px; min-width: 56px; cursor: pointer; font: inherit;
}
.vote .n { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.vote .t { font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.vote[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.vote[aria-pressed="true"] .t { color: var(--accent); }
.vote:disabled { cursor: default; opacity: .6; }
.voters { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); }

.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px 16px; color: var(--muted); text-align: center; }

/* Form */
.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.form h3 { font-size: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: .85rem; font-weight: 600; }
.field .hint { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="url"], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
textarea { min-height: 80px; resize: vertical; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn {
  font: inherit; font-weight: 600; border-radius: 10px; padding: 10px 16px; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
}
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.danger { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn:disabled { opacity: .55; cursor: default; }
.msg { font-size: .9rem; color: var(--muted); margin: 0; }
.msg.err { color: var(--accent); font-weight: 600; }
.notice { background: var(--gold-soft); color: var(--ink); border-radius: var(--radius); padding: 12px 14px; font-size: .92rem; }

/* View switch */
.views { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
.views button { font: inherit; font-weight: 600; border: 0; border-radius: 9px; padding: 9px 6px; background: transparent; color: var(--muted); cursor: pointer; }
.views button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.view { display: flex; flex-direction: column; gap: 20px; }

/* City view */
.home { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: .92rem; }
.home-ico { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.home-sub { color: var(--muted); }
.home a { color: var(--accent); font-weight: 600; }
.city-intro { margin: 0; color: var(--muted); font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-size: .85rem; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.chip[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.mapbox { background: var(--map-bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mapbox svg { display: block; width: 100%; height: auto; touch-action: manipulation; }
.map-river { fill: none; stroke: var(--river); stroke-width: 26; stroke-linecap: round; stroke-linejoin: round; }
.map-park { fill: var(--park); }
.map-street { fill: none; stroke: var(--street); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.map-royal { fill: none; stroke: var(--gold); stroke-width: 4; stroke-dasharray: 2 7; stroke-linecap: round; }
.map-label { font-family: var(--font-body); font-size: 18px; fill: var(--muted); }
.map-label.river { font-style: italic; fill: var(--river-ink); font-size: 16px; }
.map-label.royal { fill: var(--gold); font-weight: 600; font-size: 14px; }
.pin { cursor: pointer; }
.pin circle.halo { fill: var(--map-bg); }
.pin text { font-family: var(--font-display); font-weight: 700; font-size: 18px; fill: #fff; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.pin.active circle.halo { fill: var(--ink); }
.pin:focus { outline: none; }
.pin:focus-visible circle.halo { fill: var(--accent); }
.map-note { font-size: .8rem; color: var(--muted); padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.places { display: flex; flex-direction: column; gap: 10px; }
.place { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; scroll-margin-top: 70px; }
.place.active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.place .num { width: 28px; height: 28px; border-radius: 50%; color: #fff; font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; font-size: .9rem; grid-row: span 2; }
.place h3 { font-size: 1.08rem; font-weight: 700; overflow-wrap: anywhere; }
.place .kind { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.place .info { grid-column: 2; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.place p { margin: 0; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: .88rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.place a { color: var(--accent); font-weight: 600; font-size: .88rem; }
.tag-warn { color: var(--gold); font-weight: 600; }
.tips { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.tips h3 { font-size: 1.1rem; }
.tips ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; }
.sources { font-size: .8rem; color: var(--muted); }
.sources a { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .card { transition: border-color .2s; } }

/* ---------- Website-Rahmen ---------- */
html { scroll-padding-top: 80px; }
.wrap { max-width: 1040px; padding-block: 28px 64px; gap: 28px; }
.narrow { max-width: 680px; }
.site-head {
  position: sticky; top: 0; z-index: 1000; background: var(--surface); border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-head .bar {
  max-width: 1040px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 10px;
}
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand .mark { width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: .62rem; letter-spacing: .02em; }
.menu-btn { display: none; font: inherit; font-weight: 600; background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { background: var(--bg); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
@media (max-width: 820px) {
  .menu-btn { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 10px 24px rgba(0,0,0,.12);
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 8px 14px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px; font-size: 1.05rem; }
}
.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.site-foot .in { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 20px 32px; display: flex; flex-direction: column; gap: 6px; }
.site-foot a { color: var(--muted); }

/* Seitenkopf */
.page-head { display: flex; flex-direction: column; gap: 8px; max-width: 720px; }
.eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--accent); }
.page-head h1 { font-size: clamp(2rem, 6vw, 3rem); }
.page-head .lede { font-size: 1.1rem; margin: 0; }

/* Startseite */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: end; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.4rem, 8vw, 4.2rem); line-height: 1; letter-spacing: -0.02em; }
.countdown { background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.countdown .big { font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown .small { opacity: .8; font-size: .92rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile:hover { border-color: var(--ink); }
.tile h2, .tile h3 { font-size: 1.15rem; }
.tile p { margin: 0; color: var(--muted); font-size: .93rem; }
.tile .go { color: var(--accent); font-weight: 600; font-size: .9rem; margin-top: auto; }

/* Fließtext und Abschnitte */
.section { display: flex; flex-direction: column; gap: 14px; }
.section > h2 { font-size: 1.5rem; }
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 12px; }
.prose p { margin: 0; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.box h3 { font-size: 1.12rem; }
.box ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
table.words { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.words th, table.words td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.words th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.box p { margin: 0; }

/* Tagesplan */
.plan { display: flex; flex-direction: column; gap: 12px; }
.plan-day { display: grid; grid-template-columns: 74px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.plan-day .date { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.plan-day .date .dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.plan-day .date .num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1.1; }
.plan-day h3 { font-size: 1.1rem; }
.plan-day ul { margin: 6px 0 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 4px; }
.plan-day .note { color: var(--gold); font-weight: 600; font-size: .9rem; margin: 6px 0 0; }

/* Karte */
.leaflet-map { height: 440px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; z-index: 0; }
@media (max-width: 600px) { .leaflet-map { height: 360px; } }
.map-off { display: grid; place-items: center; color: var(--muted); padding: 20px; text-align: center; background: var(--map-bg); }
.pin-icon span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14px; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); box-sizing: border-box; }
.pin-icon.home span { width: 34px; height: 34px; border-radius: 8px; background: #1d2230; font-size: 20px; }
.place-links { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: .88rem; }
.place-links .linkbtn { font-size: .88rem; }
.places.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.leaflet-container { font-family: var(--font-body); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaflet-tile-pane { filter: brightness(.75) contrast(1.1) saturate(.8); } }
