/* cheers – Design-System
   Carbon bei Nacht: dunkles Blau-Anthrazit, Bernstein als einziger Akzent.
   Eine Spalte, wenige Flächen, Abstände im 8er-Raster. */

@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/big-shoulders-display-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/instrument-sans-latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;

  /* Farbe */
  --canvas: #0b0e13;          /* L0 Carbon */
  --surface: #11151c;         /* L1 Listen, Beispiel, Tab-Bar */
  --surface-2: #171c25;       /* L2 Eingaben, Kacheln */
  --surface-3: #1e2430;       /* L3 Dialoge, Menüs */
  --border: rgba(176, 196, 226, 0.09);
  --border-strong: rgba(176, 196, 226, 0.17);
  --border-hover: rgba(176, 196, 226, 0.3);
  --text: #e8ebf0;
  --text-muted: #9ca5b5;
  --text-faint: #808b9e;
  --accent: #f2b33d;          /* Bernstein */
  --accent-hover: #f7c561;
  --accent-ink: #1b1405;
  --accent-tint: rgba(242, 179, 61, 0.1);
  --danger: #f2836f;
  --danger-tint: rgba(242, 131, 111, 0.1);

  /* Typo */
  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-ui: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text-meta: 0.75rem;
  --text-secondary: 0.875rem;
  --text-body: 1rem;
  --text-lead: 1.125rem;

  /* Raum */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4rem;
  --s9: 6rem;

  /* Form */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --hit: 44px;
  --col: 42rem;
  --gutter: 1.25rem;
  --header-h: 64px;
  --tabbar-h: 64px;

  /* Bewegung */
  --dur-fast: 120ms;
  --dur: 200ms;
  --dur-slow: 300ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 2rem; }
}

/* ---------- Basis ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--canvas);
}

body.c {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

:where(.c) :where(h1, h2, h3, h4, p, ul, ol, figure, dl, dd, fieldset, blockquote) { margin: 0; }
:where(.c) :where(ul, ol) { padding: 0; list-style: none; }
:where(.c) :where(fieldset) { border: 0; padding: 0; min-width: 0; }
:where(.c) :where(legend) { padding: 0; }
:where(.c) :where(img, svg) { display: block; max-width: 100%; }
:where(.c) :where(a) { color: inherit; }
:where(.c) :where(button, input, textarea, select) { font: inherit; color: inherit; letter-spacing: inherit; }
:where(.c) :where(button) { cursor: pointer; }

.c :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.c ::selection { background: var(--accent); color: var(--accent-ink); }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 100;
  padding: var(--s2) var(--s4);
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: var(--s2); }

@media (max-width: 767.98px) {
  .desktop-only { display: none !important; }
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: calc(var(--col) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: calc(72rem + 2 * var(--gutter)); }

.page {
  flex: 1 0 auto;
  padding-top: var(--s6);
  padding-bottom: var(--s8);
}
@media (min-width: 768px) {
  .page { padding-top: var(--s8); padding-bottom: var(--s9); }
}

.row { display: flex; align-items: center; gap: var(--s2); }
.row--wrap { flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }

/* ---------- Typo ---------- */

.title-hero, .title-page, .title-section, .title-tour {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.005em;
  text-wrap: balance;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.title-hero { font-size: clamp(2.75rem, 12vw, 4.5rem); line-height: 1.1; }
.title-page { font-size: clamp(2.25rem, 9vw, 3rem); line-height: 1.1; }
.title-section { font-size: clamp(1.75rem, 6.5vw, 2.25rem); line-height: 1.1; }
.title-tour { font-size: clamp(1.875rem, 7.5vw, 2.5rem); line-height: 1.1; }

.h4 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.lead { font-size: var(--text-lead); line-height: 1.5; color: var(--text-muted); max-width: 32em; text-wrap: pretty; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.secondary { font-size: var(--text-secondary); }
.meta { font-size: var(--text-meta); line-height: 1.4; color: var(--text-faint); }
.num { font-variant-numeric: tabular-nums; }
.strong { color: var(--text); font-weight: 600; }

.link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-hover);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-fast);
}
.link:hover { text-decoration-color: var(--accent); }

/* ---------- Header ---------- */

.site-header {
  background: var(--canvas);
  border-bottom: 1px solid var(--border);
}
/* Admin-/Betreiber-Seiten sind für einen fixierten Header gebaut */
.site-header--fixed { position: fixed; inset: 0 0 auto 0; z-index: 40; }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s1);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: var(--hit);
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
}
.brand__mark { width: 26px; height: 26px; flex: none; color: var(--accent); }
.brand__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.625rem;
  line-height: 1;
}
.site-nav { display: flex; gap: var(--s1); margin-right: var(--s2); }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--hit);
  padding-inline: var(--s3);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-size: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: var(--s1); }
.header-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--hit);
  padding-inline: var(--s3);
  border-radius: var(--r-sm);
  color: var(--accent);
  font-size: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.header-link:hover { color: var(--accent-hover); background: var(--accent-tint); }
.header-actions .header-link + .btn--ghost { margin-left: var(--s2); }

/* ---------- Tab-Bar (mobil, angemeldet) ---------- */

.tabbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  font-size: var(--text-meta);
  font-weight: 500;
  color: var(--text-faint);
  text-decoration: none;
}
.tabbar--4 { grid-template-columns: repeat(4, 1fr); }
.tabbar svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--accent); }

body.has-tabbar, body:has(> .tabbar) { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }

@media (min-width: 768px) {
  .tabbar { display: none; }
  body.has-tabbar, body:has(> .tabbar) { padding-bottom: 0; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: var(--s2) var(--s5);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.btn--secondary:hover { background: var(--surface-3); border-color: var(--border-hover); }
.btn--danger { background: var(--danger); color: #2a0c06; font-weight: 600; }
.btn--danger:hover { background: #f59a89; }
.btn--google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.btn--google:hover { background: #f1f3f4; }
.btn--block { width: 100%; }
.btn--sm { min-height: var(--hit); padding-inline: var(--s4); font-size: var(--text-secondary); }
.btn--lg { min-height: 56px; font-size: 1.0625rem; }

/* Text-Buttons: bündig mit der Spaltenkante */
.btn--ghost, .btn--danger-text {
  padding-inline: 0;
  background: transparent;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color var(--dur-fast), text-decoration-color var(--dur-fast);
}
.btn--ghost { color: var(--text-muted); }
.btn--ghost:hover { color: var(--text); text-decoration-color: var(--border-hover); }
.btn--danger-text { color: var(--danger); }
.btn--danger-text:hover { text-decoration-color: currentColor; }

.btn .spinner { display: none; }
.btn[aria-busy="true"] { pointer-events: none; }
.btn[aria-busy="true"] .spinner { display: block; }
.btn[aria-busy="true"] .btn__label { opacity: 0.7; }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--hit);
  height: var(--hit);
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Formulare ---------- */

.form { display: flex; flex-direction: column; gap: var(--s5); }
.field { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
fieldset.field > legend { margin-bottom: var(--s2); }
.field__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.label { font-weight: 500; }
.label .opt { font-weight: 400; color: var(--text-faint); }
.hint { font-size: var(--text-secondary); color: var(--text-faint); }
.error-text { font-size: var(--text-secondary); color: var(--danger); }
.error-text[hidden] { display: none; }

.input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: var(--s3) var(--s4);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.input::placeholder { color: var(--text-faint); opacity: 1; }
.input:hover { border-color: var(--border-hover); }
.input:focus, .input:focus-visible { outline: none; border-color: var(--accent); background: var(--surface-3); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input[readonly] { color: var(--text-muted); }
textarea.input { min-height: 96px; resize: vertical; }
.input--lg { min-height: 56px; font-size: 1.0625rem; }

.input-wrap { position: relative; }
.input-wrap .input { padding-right: calc(var(--hit) + var(--s2)); }
.input-wrap .icon-btn { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); }

.inline-form { display: flex; align-items: flex-start; gap: var(--s2); }
.inline-form .input { flex: 1 1 auto; min-width: 0; }
.inline-form .btn { flex: none; min-height: 52px; }

/* Auswahl-Kacheln */
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.choice { position: relative; display: flex; min-width: 0; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 72px;
  padding: var(--s3) var(--s4);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.choice__title { font-weight: 600; }
.choice__desc { font-size: var(--text-secondary); line-height: 1.35; color: var(--text-muted); }
.choice:hover .choice__body { border-color: var(--border-hover); }
.choice input:checked + .choice__body { border-color: var(--accent); background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + .choice__body { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Segmente (Dauer, Tour-Umschalter) */
.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--s1);
  padding: var(--s1);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
}
.seg { position: relative; display: flex; min-width: 0; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span, .tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: var(--hit);
  padding-inline: var(--s2);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-size: var(--text-secondary);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.seg:hover span, .tab:hover { color: var(--text); }
.seg input:checked + span, .tab[aria-selected="true"] { background: var(--text); color: var(--canvas); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Checkbox */
.check { display: flex; align-items: center; gap: var(--s3); min-height: var(--hit); cursor: pointer; }
.check input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid var(--border-hover);
  border-radius: 6px;
  background: var(--surface-2);
  cursor: pointer;
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.check input::after {
  content: '';
  width: 12px;
  height: 7px;
  border: 2px solid var(--accent-ink);
  border-top: 0;
  border-right: 0;
  opacity: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { opacity: 1; }
.check input[type="radio"] { border-radius: 50%; }
.check input[type="radio"]::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--accent-ink); transform: none; }

/* Schalter */
.toggle { position: relative; display: flex; align-items: center; gap: var(--s3); min-height: 64px; padding-block: var(--s2); cursor: pointer; }
.toggle input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.toggle__icon { width: 24px; height: 24px; flex: none; color: var(--text-muted); transition: color var(--dur-fast); }
.toggle__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.toggle__title { font-weight: 500; }
.toggle__desc { font-size: var(--text-secondary); line-height: 1.35; color: var(--text-faint); }
.toggle__note { margin-top: var(--s1); font-size: var(--text-secondary); line-height: 1.35; color: var(--text-muted); }
.toggle:not(:has(input:checked)) .toggle__note { display: none; }
.tag-beta {
  display: inline-block;
  margin-left: 6px;
  padding: 0 7px;
  border: 1px solid rgba(242, 179, 61, 0.45);
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: var(--text-meta);
  font-weight: 600;
  line-height: 18px;
  vertical-align: 1px;
}
.switch {
  position: relative;
  flex: none;
  width: 46px;
  height: 28px;
  border: 1px solid var(--border-hover);
  border-radius: 14px;
  background: var(--surface-3);
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast);
}
.toggle input:checked ~ .switch { background: var(--accent); border-color: var(--accent); }
.toggle input:checked ~ .switch::after { background: var(--accent-ink); transform: translateX(18px); }
.toggle input:focus-visible ~ .switch { outline: 2px solid var(--accent); outline-offset: 3px; }
.toggle:has(input:checked) .toggle__icon { color: var(--accent); }

/* Aufklapper */
.disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 52px;
  list-style: none;
  font-weight: 500;
  cursor: pointer;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.chev { width: 20px; height: 20px; flex: none; color: var(--text-faint); transition: transform var(--dur); }
.disclosure[open] > summary .chev { transform: rotate(180deg); }

.divider {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--text-secondary);
  color: var(--text-faint);
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Passwortregeln */
.rules { display: flex; flex-direction: column; gap: 2px; font-size: var(--text-secondary); color: var(--text-faint); }
.rules li { display: flex; align-items: center; gap: var(--s2); }
.rules li::before { content: ''; flex: none; width: 6px; height: 6px; margin-inline: 4px; border-radius: 50%; background: currentColor; }
.rules li.ok { color: #8fd3a0; }
.rules li.ok::before {
  width: 10px;
  height: 6px;
  margin-inline: 2px;
  border-radius: 0;
  background: none;
  border: 2px solid currentColor;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translateY(-2px);
}

/* Hinweise */
.notice {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: var(--text-secondary);
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }
.notice--error { background: var(--danger-tint); border-color: rgba(242, 131, 111, 0.4); }
.notice--error svg { color: var(--danger); }
.notice[hidden] { display: none; }

/* Google-Ortsvorschläge */
.pac-container {
  margin-top: 4px;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  font-family: var(--font-ui);
}
.pac-container::after { display: none; }
.pac-item {
  padding: 10px var(--s4);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--text-secondary);
  cursor: pointer;
}
.pac-item:first-child { border-top: 0; }
.pac-item:hover, .pac-item-selected { background: var(--surface-2); }
.pac-item-query { color: var(--text); font-size: 1rem; }
.pac-matched { color: var(--accent); }
.pac-icon { display: none; }

/* ---------- Startseite ---------- */

.hero .lead { margin-top: var(--s3); }
@media (min-width: 768px) {
  .hero .lead { margin-top: var(--s4); }
}
.planner { display: flex; flex-direction: column; gap: var(--s5); margin-top: var(--s6); }
.planner__options { border-bottom: 1px solid var(--border); }
.planner__options > * { border-top: 1px solid var(--border); }
.planner__more-body { padding-bottom: var(--s5); }
.planner__more-body { display: flex; flex-direction: column; gap: var(--s5); }
.planner__hint { font-size: var(--text-secondary); color: var(--text-muted); }

.section { margin-top: var(--s8); }
.section__title { margin-bottom: var(--s5); }
@media (min-width: 768px) {
  .section { margin-top: var(--s9); }
}

.sample {
  padding: var(--s5) var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.sample .stop__dot { background: var(--surface); }
.sample .stop:last-child .stop__dot { background: var(--accent); }
@media (min-width: 768px) {
  .sample { padding: var(--s6); }
}

/* Für Betreiber */
.pitch { display: flex; flex-direction: column; gap: var(--s5); }
.pitch__lead { font-size: var(--text-lead); line-height: 1.5; text-wrap: pretty; }
.pitch__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s2);
}
.pitch__stats .meta { grid-column: 1 / -1; }
.pitch__stat {
  min-width: 0;
  padding: var(--s3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.pitch__value { font-size: 1.75rem; font-weight: 600; line-height: 1.15; color: var(--accent); }
.pitch__label { font-size: var(--text-meta); color: var(--text-muted); }
@media (max-width: 359.98px) {
  .pitch__stats { grid-template-columns: minmax(0, 1fr); }
  .pitch__stat { display: flex; align-items: baseline; gap: var(--s3); }
}
.pitch__list { display: flex; flex-direction: column; gap: var(--s2); color: var(--text-muted); }
.pitch__list li { display: flex; gap: var(--s3); }
.pitch__list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }
.pitch__actions { display: grid; gap: var(--s3); }
@media (min-width: 768px) {
  .pitch__stats { gap: var(--s3); }
  .pitch__stat { padding: var(--s4); }
  .pitch__value { font-size: 2.25rem; }
  .pitch__label { font-size: var(--text-secondary); }
  .pitch__actions { grid-template-columns: 1fr 1fr; }
}

.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { padding-block: var(--s2); }
.faq details > p { max-width: 36em; padding-bottom: var(--s4); color: var(--text-muted); }

/* ---------- Tour ---------- */

.tour-head > * + * { margin-top: var(--s3); }
.tour-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1) var(--s4);
  font-size: var(--text-secondary);
  color: var(--text-muted);
}
.vibe { display: inline-flex; align-items: center; gap: var(--s2); color: var(--text); font-weight: 500; }
.tag-rolli { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 500; }
.tag-rolli svg { width: 16px; height: 16px; color: var(--accent); }
.vibe::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  font-size: var(--text-secondary);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts svg { width: 16px; height: 16px; flex: none; color: var(--text-faint); }
.tour-desc { max-width: 36em; color: var(--text-muted); text-wrap: pretty; }
.tour-route { margin-top: var(--s6); }

/* Stationen-Linie */
.route { counter-reset: stop; }
.stop {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: var(--s4);
}
.stop::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 40px;
  bottom: 8px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--border-hover) 0 4px, transparent 4px 9px);
}
.stop:last-child::before { display: none; }
.stop__dot {
  counter-increment: stop;
  display: grid;
  place-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--canvas);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1;
}
.stop__dot::before { content: counter(stop); }
.stop:last-child .stop__dot { background: var(--accent); color: var(--accent-ink); }
.stop__body { min-width: 0; padding-top: 3px; padding-bottom: var(--s5); }
.stop:last-child .stop__body { padding-bottom: 0; }
.stop.is-flash .stop__name { color: var(--accent); transition: color var(--dur-slow); }
.stop__name { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.stop__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pill {
  display: inline-block;
  padding: 0 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: var(--text-meta);
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}
.pill--open { border-color: rgba(134, 214, 160, 0.4); background: rgba(134, 214, 160, 0.1); color: #95dcab; }
.pill--soon { border-color: rgba(242, 179, 61, 0.45); background: var(--accent-tint); color: var(--accent); }
.pill--closed { color: var(--text-faint); }
.stop__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--s4);
  margin-block: -8px;
  font-size: var(--text-secondary);
  color: var(--text-muted);
}
.stop__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--hit);
  max-width: 100%;
  color: var(--text-muted);
  text-decoration: none;
}
.stop__link span { overflow-wrap: anywhere; }
.stop__link:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.stop__link svg { width: 16px; height: 16px; flex: none; color: var(--text-faint); }
.stop__rating { display: inline-flex; align-items: center; gap: 4px; min-height: var(--hit); }
.stop__rating svg { width: 14px; height: 14px; color: var(--accent); }
.stop__desc { max-width: 36em; margin-top: var(--s2); font-size: var(--text-secondary); color: var(--text-muted); text-wrap: pretty; }
.walk {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-top: calc(var(--s3) * -1);
  padding-bottom: var(--s5);
  font-size: var(--text-meta);
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.walk svg { width: 14px; height: 14px; flex: none; }

/* Aktionsleiste unten */
.actionbar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  gap: var(--s2);
  margin: var(--s4) calc(var(--gutter) * -1) 0;
  padding: var(--s3) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom));
  background: var(--canvas);
  border-top: 1px solid var(--border);
}
.actionbar .btn, .actionbar form { flex: 1 1 0; min-width: 0; }
.actionbar .btn { padding-inline: var(--s3); }
.actionbar form .btn { width: 100%; }
body:has(> .tabbar) .actionbar { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: var(--s3); }

@media (min-width: 768px) {
  .actionbar { margin-inline: 0; padding-inline: 0; }
  .actionbar .btn, .actionbar form { flex: 0 0 auto; min-width: 13rem; }
  .actionbar .btn { padding-inline: var(--s5); }
  body:has(> .tabbar) .actionbar { bottom: 0; padding-bottom: calc(var(--s3) + env(safe-area-inset-bottom)); }
}

/* Ergebnisse */
.results-head > * + * { margin-top: var(--s2); }
.meta-line { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-secondary); color: var(--text-faint); font-variant-numeric: tabular-nums; }
.meta-line svg { width: 16px; height: 16px; flex: none; }
.tabs { margin-top: var(--s5); }
.tab-panel { margin-top: var(--s6); }
.tab-panel[hidden] { display: none; }
.after {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-top: var(--s5);
}
.after form .btn { width: 100%; }
@media (min-width: 768px) {
  .after { flex-direction: row; flex-wrap: wrap; align-items: center; }
}

.tour-foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s2);
}

/* ---------- Karte ---------- */

.tour-map { margin-top: var(--s5); }
.map {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.map__canvas { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
@media (min-width: 768px) {
  .map__canvas { aspect-ratio: 16 / 9; }
}
.map__fallback { padding: var(--s5); font-size: var(--text-secondary); color: var(--text-muted); }
.map.is-failed .map__canvas { display: none; }
.map__bar {
  display: flex;
  justify-content: flex-end;
  padding-inline: var(--s4);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.map__open {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: var(--hit);
  color: var(--text-muted);
  font-size: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur-fast);
}
.map__open:hover { color: var(--text); }
.map__open svg { width: 16px; height: 16px; }
.map .gm-style, .nav .gm-style { font-family: var(--font-ui); }

.map-pin {
  position: absolute;
  display: grid;
  place-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--canvas);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  transition: width var(--dur), height var(--dur), opacity var(--dur);
}
.map-pin::before { content: ''; position: absolute; inset: -8px; }
.map-pin.is-last { background: var(--accent); color: var(--accent-ink); }
.map-pin.is-done { opacity: 0.4; }
.map-pin.is-target {
  z-index: 2;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.25rem;
  opacity: 1;
  box-shadow: 0 0 0 6px rgba(242, 179, 61, 0.25), 0 2px 10px rgba(0, 0, 0, 0.55);
}
.map-me {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #4c9dff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px rgba(76, 157, 255, 0.28);
  pointer-events: none;
}

/* Navigation in cheers */
dialog.nav {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--canvas);
  color: var(--text);
}
dialog.nav::backdrop { background: var(--canvas); }
.nav__map { position: absolute; inset: 0; }
.nav__map .map__canvas { width: 100%; height: 100%; aspect-ratio: auto; }
.nav__nomap { display: none; }
.nav.is-mapless .map__canvas { display: none; }
.nav.is-mapless .nav__nomap { display: grid; place-content: center; height: 60%; color: var(--text-faint); font-size: var(--text-secondary); }
.nav__top {
  position: absolute;
  top: calc(var(--s3) + env(safe-area-inset-top));
  left: var(--s3);
  right: var(--s3);
  display: flex;
  align-items: center;
  gap: var(--s2);
  pointer-events: none;
}
.nav__top > * { pointer-events: auto; }
.nav__btn {
  display: grid;
  place-content: center;
  flex: none;
  width: var(--hit);
  height: var(--hit);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
.nav__btn svg { width: 22px; height: 22px; }
.nav__btn[aria-pressed="true"] { color: #4c9dff; }
.nav__title {
  flex: 0 1 auto;
  max-width: 30rem;
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: var(--hit);
  padding-inline: var(--s4);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: var(--surface-3);
  font-size: var(--text-secondary);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
.nav__title span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav__top [data-nav-locate] { margin-left: auto; }
.nav__card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--s5) var(--gutter) calc(var(--s5) + env(safe-area-inset-bottom));
  background: var(--surface-3);
  border-top: 1px solid var(--border-strong);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}
@media (min-width: 768px) {
  .nav__card {
    left: 50%;
    right: auto;
    bottom: var(--s5);
    width: min(30rem, calc(100vw - 2 * var(--s5)));
    padding: var(--s5);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-xl);
    transform: translateX(-50%);
  }
}
.nav__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.nav__step { font-size: var(--text-secondary); color: var(--text-muted); }
.nav__arrows { display: flex; gap: var(--s1); }
.nav__arrows .icon-btn[aria-disabled="true"] { opacity: 0.35; pointer-events: none; }
.nav__name {
  margin-top: var(--s1);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.nav__meta { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); margin-top: var(--s2); font-size: var(--text-secondary); color: var(--text-muted); }
.nav__meta span:empty { display: none; }
.nav__actions { display: flex; gap: var(--s2); margin-top: var(--s5); }
.nav__actions .btn { flex: 1 1 0; min-width: 0; padding-inline: var(--s3); }

/* ---------- Listen ---------- */

.list-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s6); }
.block + .block { margin-top: var(--s7); }
.block__title { margin-bottom: var(--s3); font-size: var(--text-secondary); font-weight: 600; color: var(--text-muted); }

.list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.list > li + li { border-top: 1px solid var(--border); }
.item { display: flex; align-items: center; gap: var(--s1); min-height: 72px; padding: var(--s2) var(--s2) var(--s2) var(--s4); }
.item__main { flex: 1 1 auto; min-width: 0; padding-block: var(--s2); color: var(--text); text-decoration: none; }
.item__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.item__main:hover .item__title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.item__meta { margin-top: 2px; font-size: var(--text-secondary); color: var(--text-faint); font-variant-numeric: tabular-nums; }
.item__actions { display: flex; align-items: center; flex: none; }
.item__chev { width: 20px; height: 20px; flex: none; margin-right: var(--s3); color: var(--text-faint); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s1); margin-top: var(--s5); }
.pagination a {
  display: inline-grid;
  place-content: center;
  min-width: var(--hit);
  min-height: var(--hit);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.pagination a:hover { background: var(--surface-2); color: var(--text); }
.pagination a[aria-current="page"] { background: var(--text); color: var(--canvas); font-weight: 600; }

.empty { padding: var(--s6) var(--s5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.empty > * + * { margin-top: var(--s2); }
.empty .btn { margin-top: var(--s4); }

/* ---------- Menüs ---------- */

.menu-wrap { position: relative; }
.menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  min-width: 220px;
  max-width: calc(100vw - 2 * var(--gutter));
  padding: var(--s1);
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.menu--up { top: auto; bottom: calc(100% + 6px); }
.menu--wide { width: min(340px, calc(100vw - 2 * var(--gutter))); }
.menu[hidden] { display: none; }
.menu__item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  min-height: var(--hit);
  padding: 0 var(--s3);
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--text);
  font-size: var(--text-secondary);
  font-weight: 500;
  text-align: left;
  text-decoration: none;
}
.menu__item:hover { background: var(--surface-2); }
.menu__item svg { width: 18px; height: 18px; flex: none; color: var(--text-faint); }
.menu__item--danger, .menu__item--danger svg { color: var(--danger); }
.menu__sep { height: 1px; margin: var(--s1) 0; background: var(--border); }
.menu__note { padding: var(--s2) var(--s3); font-size: var(--text-meta); color: var(--text-faint); }

.notif { display: block; padding: var(--s3); border-radius: var(--r-sm); text-decoration: none; }
.notif:hover { background: var(--surface-2); }
.notif + .notif { border-top: 1px solid var(--border); }
.notif__title { font-size: var(--text-secondary); font-weight: 500; }
.notif__body { font-size: var(--text-secondary); color: var(--text-muted); }

.badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--text-meta);
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}
.badge[hidden] { display: none; }

/* ---------- Profil ---------- */

.settings { margin-top: var(--s6); border-top: 1px solid var(--border); }
.setting { padding-block: var(--s5); border-bottom: 1px solid var(--border); }
.setting > * + * { margin-top: var(--s3); }
.setting__title { font-size: 1rem; font-weight: 600; }
.setting .disclosure > summary { min-height: var(--hit); }
.setting .disclosure .form { margin-top: var(--s4); }
.setting-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); padding-top: var(--s5); }

/* ---------- Kauf weiterer Generierungen ---------- */

.offer { padding: var(--s4); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); }
.offer > * + * { margin-top: var(--s1); }
.offer__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); }
.offer__name { font-weight: 600; }
.offer__price { font-size: var(--text-lead); font-weight: 600; color: var(--text); }
.check--top { align-items: flex-start; min-height: 0; }
.check--top input { margin-top: 1px; }
.quota { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); }
.quota dt { font-size: var(--text-meta); color: var(--text-faint); }
.quota dd { margin: 0; font-weight: 600; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Anmeldung ---------- */

.auth { max-width: 26rem; }
.auth__head { margin-bottom: var(--s6); }
.auth__head > * + * { margin-top: var(--s2); }
.auth__alt { margin-top: var(--s5); color: var(--text-muted); }
.auth .notice { margin-bottom: var(--s5); }
.auth .divider { margin-block: var(--s5); }

/* ---------- Dialog & Sheet ---------- */

dialog.dialog {
  width: min(28rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: var(--s5);
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overscroll-behavior: contain;
}
dialog.dialog::backdrop { background: rgba(4, 6, 9, 0.74); }
dialog.dialog[open] { animation: dialog-in var(--dur-slow) var(--ease-out); }
.dialog__head { padding-right: var(--s7); }
.dialog__head > * + * { margin-top: var(--s2); }
.dialog__body { margin-top: var(--s5); }
.dialog__close { position: absolute; top: var(--s3); right: var(--s3); }
.dialog__actions { display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: var(--s2); margin-top: var(--s5); }
.sheet__grip { display: none; }

@media (max-width: 639.98px) {
  dialog.dialog--sheet {
    width: 100vw;
    max-width: 100vw;
    margin: auto 0 0;
    padding-bottom: calc(var(--s5) + env(safe-area-inset-bottom));
    border-bottom: 0;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
  }
  dialog.dialog--sheet[open] { animation: sheet-in var(--dur-slow) var(--ease-out); }
  .sheet__grip { display: block; width: 40px; height: 4px; margin: calc(var(--s2) * -1) auto var(--s4); border-radius: 2px; background: var(--border-hover); }
}

@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Ladebildschirm ---------- */

.loading {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s5) var(--gutter);
  background: var(--canvas);
}
.loading[hidden] { display: none; }
.loading__inner { width: min(24rem, 100%); }
.loading__inner > p { margin-top: var(--s2); }
.loading__steps { margin-top: var(--s6); }
.loading__steps .stop { min-height: 64px; }
.loading__steps .stop:last-child { min-height: 0; }
.loading__steps .stop__body { padding-bottom: var(--s4); color: var(--text-faint); transition: color var(--dur-slow); }
.loading__steps .stop__dot { border-color: var(--border-strong); color: var(--text-faint); transition: border-color var(--dur-slow), color var(--dur-slow), background-color var(--dur-slow); }
.loading__steps .stop.is-active .stop__body,
.loading__steps .stop.is-done .stop__body { color: var(--text); }
.loading__steps .stop.is-active .stop__dot { border-color: var(--accent); color: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.loading__steps .stop.is-done .stop__dot { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.loading__steps .stop:last-child:not(.is-done) .stop__dot { background: var(--canvas); }
.loading__steps .stop:last-child:not(.is-done):not(.is-active) .stop__dot { color: var(--text-faint); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(242, 179, 61, 0.16); } }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  top: calc(var(--header-h) + var(--s2));
  left: 50%;
  z-index: 70;
  width: min(26rem, calc(100vw - 2 * var(--gutter)));
  padding: var(--s3) var(--s4);
  border-radius: var(--r-md);
  background: var(--text);
  color: var(--canvas);
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.toast.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }

/* ---------- Rechtstexte ---------- */

.prose { max-width: 40rem; color: var(--text-muted); -webkit-hyphens: auto; hyphens: auto; }
.prose h1 {
  margin-bottom: var(--s3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 9vw, 3rem);
  line-height: 1.1;
  color: var(--text);
}
.prose h2 { margin-top: var(--s6); margin-bottom: var(--s2); font-size: 1.125rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.prose h3 { margin-top: var(--s5); margin-bottom: var(--s2); font-size: 1rem; font-weight: 600; color: var(--text); }
.prose p, .prose ul, .prose ol { margin-bottom: var(--s3); }
.prose ul { padding-left: 1.25rem; list-style: disc; }
.prose ol { padding-left: 1.25rem; list-style: decimal; }
.prose a { color: var(--text); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { color: var(--text); font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); font-size: var(--text-secondary); color: var(--text-faint); }
.site-footer--fixed { position: fixed; inset: auto 0 0 0; z-index: 40; background: var(--canvas); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: var(--s5);
  padding-block: var(--s2);
}
.site-footer__inner > p { padding-block: var(--s3); }
.site-footer nav { display: flex; flex-wrap: wrap; column-gap: var(--s5); }
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--hit);
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer a:hover { color: var(--text); }
.site-footer p a { color: var(--text-muted); text-underline-offset: 3px; }

/* ---------- Fehlerseiten ---------- */

.error-code {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(5rem, 24vw, 8rem);
  line-height: 1;
  color: var(--accent);
}

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

/* Startseite: Abschnitt „Städte und Anlässe“ */
.home-guide .prose { max-width: 40rem; }
.home-steps { display: flex; flex-direction: column; gap: var(--s3); counter-reset: step; }
.home-steps li {
  position: relative;
  padding-left: 2.5rem;
  color: var(--text-muted);
  counter-increment: step;
}
.home-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: var(--text-secondary);
  font-weight: 600;
}
.home-steps strong { color: var(--text); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--s4);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: var(--text-secondary);
  text-decoration: none;
}
.chips a:hover { border-color: var(--border-hover); background: var(--surface-3); }
.home-guide h3 { margin: var(--s6) 0 var(--s3); font-size: 1.125rem; font-weight: 600; }
