/* ======================================================================
   Bad-Reiseführer – Gestaltung
   Leitidee: das gelbe Ortsschild. Jeder Kurort begrüßt mit seinem Schild,
   „Weiter“ ist ein Ortsende-Schild. Farben wie auf der Straße: Verkehrsgelb,
   Tintenschwarz, kühles Mineralweiß, ein Hauch Thermalwasser; Rot nur für
   Ortsende und Stempel.
   ====================================================================== */
:root {
  --grund: #edf2f0;        /* Mineralweiß */
  --flaeche: #f8faf9;
  --flaeche-2: #dfe8e5;
  --tinte: #14202b;        /* Text, Knöpfe */
  --tinte-2: #4a5963;      /* Nebentext */
  --linie: #c9d5d1;
  --gelb: #f2c500;         /* Ortsschild (Verkehrsgelb) */
  --schild-schwarz: #16181a;
  --rot: #c8102e;          /* Ortsende, Stempel */
  --wasser: #d3e8e4;       /* Thermalwasser */
  --wasser-tief: #2d6e66;
  --auf-voll: #f8faf9;     /* Text auf Tinte */
  --boden: #14202b;        /* Fußzeile */
  --boden-text: #d6e0dd;
  --anzeige: "Barlow Condensed", "Arial Narrow", sans-serif-condensed, sans-serif;
  --text: "Atkinson Hyperlegible Next", system-ui, -apple-system, sans-serif;
  --kopf: 64px;
  --r: 8px;
  --r-gross: 14px;
  --schatten: 0 24px 48px -28px rgba(10, 20, 25, .45);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #0e161d;
    --flaeche: #151f28;
    --flaeche-2: #1f2c37;
    --tinte: #e6edef;
    --tinte-2: #9eafb7;
    --linie: #2c3b46;
    --rot: #e5484d;
    --wasser: #16322f;
    --wasser-tief: #8fd1c7;
    --auf-voll: #0e161d;
    --boden: #0a1015;
    --boden-text: #b9c6c9;
    --schatten: 0 24px 48px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

/* ============ Grundlagen ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf) + 64px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--tinte); font: 18px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--anzeige); font-weight: 600; line-height: 1.04; margin: 0 0 .4em; letter-spacing: 0; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.icon { width: 1.1em; height: 1.1em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 2px; }
.start-hero :focus-visible, .ortskopf :focus-visible, .footer :focus-visible, .lightbox :focus-visible, .premium-band :focus-visible { outline-color: var(--gelb); }
main:focus { outline: none; }
kbd { font: 700 .78rem/1 var(--text); border: 1px solid var(--linie); border-bottom-width: 2px; border-radius: 4px; padding: 3px 6px; color: var(--tinte-2); background: var(--grund); }
.sprungmarke { position: absolute; left: 12px; top: -80px; z-index: 5000; background: var(--gelb); color: var(--schild-schwarz); padding: 10px 14px; border-radius: var(--r); font-weight: 700; }
.sprungmarke:focus { top: 12px; }

/* ============ Knöpfe ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1.5px solid var(--tinte); border-radius: var(--r); background: transparent; color: var(--tinte);
  font: 600 1.1rem/1 var(--anzeige); letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--tinte); color: var(--auf-voll); }
.btn--voll { background: var(--tinte); color: var(--auf-voll); }
.btn--voll:hover { background: color-mix(in srgb, var(--tinte) 82%, var(--gelb)); }
.btn--gelb { background: var(--gelb); border-color: var(--schild-schwarz); color: var(--schild-schwarz); }
.btn--gelb:hover { background: #ffd92e; color: var(--schild-schwarz); }
.btn--hell { color: #fff; border-color: rgba(255, 255, 255, .75); background: rgba(8, 14, 18, .3); backdrop-filter: blur(6px); }
.btn--hell:hover, .btn--hell[aria-pressed="true"] { background: #fff; border-color: #fff; color: #14202b; }
.btn--hell[aria-pressed="true"][data-aktion="merken"] .icon { fill: #c8102e; stroke: #c8102e; }
.btn--hell[aria-pressed="true"][data-aktion="besucht"] { background: #f2c500; border-color: #16181a; color: #16181a; }
.btn--klein { min-height: 36px; padding: 0 12px; font-size: 1rem; }
.btn--leise { border-color: var(--linie); }
.btn--leise:hover { border-color: var(--tinte); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--linie); background: var(--flaeche); color: var(--tinte);
  display: inline-grid; place-items: center; cursor: pointer; flex: none; transition: border-color .15s;
}
.icon-btn:hover { border-color: var(--tinte); }
.icon-btn--klein { width: 36px; height: 36px; }
.linkknopf { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer;
  text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.linkknopf:hover { text-decoration-color: currentColor; }

/* ============ Ortsschild (Zeichen 310) ============ */
.schild {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: .6em 1.2em .65em; min-width: 9em; max-width: 100%;
  background: var(--gelb); color: var(--schild-schwarz); border-radius: .42em; text-decoration: none; line-height: 1;
  box-shadow: inset 0 0 0 .17em var(--gelb), inset 0 0 0 .31em var(--schild-schwarz), 0 1px 0 rgba(0, 0, 0, .3), 0 18px 34px -16px rgba(0, 0, 0, .6);
  font-family: var(--anzeige);
}
.schild__name { font-weight: 600; font-size: 1.95em; letter-spacing: .005em; text-wrap: balance; }
.schild__zusatz { font-weight: 500; font-size: .82em; margin-top: .4em; }
.schild--gross { font-size: clamp(1.05rem, 2.4vw, 1.9rem); }
a.schild { transition: transform .2s ease; }
a.schild:hover { transform: translateY(-2px) rotate(-.4deg); }
/* Roter Balken für den Schildwechsel (wie beim Ortsende) */
.schild::after {
  content: ""; position: absolute; left: 7%; right: 7%; top: 50%; height: .3em; border-radius: 2px;
  background: var(--rot); transform: rotate(-9deg) scaleX(0); transform-origin: left center; transition: transform .3s ease-out;
}
.schild--geht::after { transform: rotate(-9deg) scaleX(1); }
.schild--geht { animation: schildWeg .22s .3s ease-in forwards; }
.schild--kommt { animation: schildHer .4s cubic-bezier(.2, .8, .3, 1.15) both; }
@keyframes schildWeg { to { transform: perspective(700px) rotateX(85deg); opacity: 0; } }
@keyframes schildHer { from { transform: perspective(700px) rotateX(-85deg); opacity: 0; } }

/* Stempel „Besucht“ */
.stempel {
  position: relative; display: grid; place-content: center; gap: 2px; text-align: center; border-radius: 50%;
  border: .16em solid var(--rot); color: var(--rot); font-family: var(--anzeige); line-height: 1;
}
/* feiner innerer Ring wie bei einem Gummistempel */
.stempel::before { content: ""; position: absolute; inset: .28em; border: .07em solid currentColor; border-radius: 50%; }
.stempel b { font-weight: 700; font-size: 1.15em; letter-spacing: .02em; }
.stempel small { font-weight: 600; font-size: .78em; }
.schild .stempel {
  position: absolute; right: -3.1em; top: -3.4em; width: 6.2em; height: 6.2em; font-size: .62em;
  transform: rotate(-14deg); opacity: 0; visibility: hidden; mix-blend-mode: multiply; background: rgba(242, 197, 0, .15);
}
.schild.ist-besucht .stempel { opacity: .92; visibility: visible; }
.schild.stempel-neu .stempel { animation: stempeln .45s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes stempeln {
  0% { opacity: 0; transform: rotate(-14deg) scale(1.9); }
  60% { opacity: .95; transform: rotate(-14deg) scale(.93); }
  100% { opacity: .92; transform: rotate(-14deg) scale(1); }
}

/* Ortsende (Zeichen 311) */
.ortsende {
  display: inline-grid; min-width: 15em; max-width: 100%; font-size: clamp(1rem, 1.8vw, 1.3rem); font-family: var(--anzeige); line-height: 1;
  background: var(--gelb); color: var(--schild-schwarz); border-radius: .42em; text-decoration: none; overflow: hidden;
  box-shadow: inset 0 0 0 .17em var(--gelb), inset 0 0 0 .31em var(--schild-schwarz), 0 18px 34px -16px rgba(0, 0, 0, .5);
  transition: transform .2s ease;
}
.ortsende__ziel { display: flex; justify-content: space-between; align-items: baseline; gap: 1.2em; margin: .31em .31em 0; padding: .55em .85em .45em; border-bottom: .14em solid var(--schild-schwarz); font-weight: 600; font-size: 1.3em; }
.ortsende__km { font-weight: 500; white-space: nowrap; }
.ortsende__hier { position: relative; padding: .45em 1em .6em; text-align: center; font-weight: 600; font-size: 1.65em; }
.ortsende__hier::after { content: ""; position: absolute; left: 5%; right: 5%; top: 52%; height: .22em; background: var(--rot); border-radius: 2px; transform: rotate(-10deg); }
.ortsende:hover { transform: translateY(-3px) rotate(-.6deg); }
.ortsende--fahrt { animation: vorbei .42s ease-in forwards; }
@keyframes vorbei { to { transform: translateX(-70vw) rotate(-5deg); opacity: 0; } }

/* ============ Kopfzeile ============ */
.kopf {
  position: sticky; top: 0; z-index: 1000; height: var(--kopf);
  background: color-mix(in srgb, var(--grund) 88%, transparent); backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: 1px solid var(--linie);
}
.kopf__inner { display: flex; align-items: center; gap: 18px; height: 100%; }
.marke { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--tinte); font-family: var(--anzeige); white-space: nowrap; }
.marke__schild {
  background: var(--gelb); color: var(--schild-schwarz); font-weight: 600; font-size: 1.15rem; line-height: 1; padding: .34em .55em .3em; border-radius: 5px;
  box-shadow: inset 0 0 0 2px var(--gelb), inset 0 0 0 3.5px var(--schild-schwarz);
}
.marke__wort { font-weight: 600; font-size: 1.4rem; }
.nav { display: flex; gap: 2px; margin-left: 10px; }
.nav a, .nav__suche {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--r);
  color: var(--tinte-2); text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap;
}
.nav a:hover { color: var(--tinte); background: var(--flaeche-2); }
.nav a.active { color: var(--tinte); }
.nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -12px; height: 3px; background: var(--tinte); border-radius: 2px 2px 0 0; }
.nav__icon, .nav__suche { display: none; }
.nav__suche { border: 0; background: none; cursor: pointer; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--rot); color: #fff; font: 700 .72rem/20px var(--text); text-align: center; }
.badge[hidden] { display: none; }
.kopf__suche {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 40px; min-width: 210px; padding: 0 8px 0 12px;
  border: 1.5px solid var(--linie); border-radius: var(--r); background: var(--flaeche); color: var(--tinte-2); cursor: pointer; font-size: .95rem;
}
.kopf__suche:hover { border-color: var(--tinte); color: var(--tinte); }
.kopf__suche kbd { margin-left: auto; }
.kopf__suche [data-icon] { display: inline-flex; }
.konto { position: relative; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--schild-schwarz); cursor: pointer;
  background: var(--gelb); color: var(--schild-schwarz); font: 600 1.05rem var(--anzeige);
}
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; padding: 8px; z-index: 10;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); box-shadow: var(--schatten);
}
.menu a, .menu button {
  display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 6px; border: 0; background: none;
  text-align: left; color: var(--tinte); text-decoration: none; cursor: pointer; font-size: .98rem;
}
.menu a:hover, .menu button:hover { background: var(--flaeche-2); }
.menu__kopf { padding: 8px 12px 10px; border-bottom: 1px solid var(--linie); margin-bottom: 6px; font-size: .95rem; }
.menu__kopf small { display: block; color: var(--tinte-2); }
.menu__abo { font-weight: 700; }

/* ============ Startseite: Porträt oben ============ */
.start-hero { position: relative; min-height: min(80vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; isolation: isolate; background: #1b2730; }
.start-hero__bilder, .start-hero__bild { position: absolute; inset: 0; }
.start-hero__bild { background-size: cover; background-position: center; transition: opacity 1.1s ease; }
.start-hero__bild.ist-neu { opacity: 0; }
.start-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8, 14, 18, .66) 0%, rgba(8, 14, 18, .28) 55%, rgba(8, 14, 18, .06) 100%), linear-gradient(0deg, rgba(8, 14, 18, .45), transparent 45%);
}
.start-hero__inhalt { position: relative; z-index: 2; width: 100%; padding-top: 56px; padding-bottom: 128px; }
.start-hero__ort { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 620px; }
#hero-schild { max-width: 100%; }
.start-hero__kurz { font-size: 1.3rem; line-height: 1.45; margin: 0; max-width: 32ch; text-shadow: 0 1px 14px rgba(0, 0, 0, .45); }
.start-hero__knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.bildnachweis { position: absolute; right: 16px; bottom: 10px; z-index: 2; max-width: 60%; font-size: .75rem; text-align: right; color: rgba(255, 255, 255, .85); }
.bildnachweis a { color: #fff; }
.start-hero .bildnachweis { top: 14px; bottom: auto; }

.start-leiste { position: relative; z-index: 3; margin-top: -76px; }
.start-leiste__inhalt {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 28px 40px; align-items: center;
  padding: 28px 32px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-gross); box-shadow: var(--schatten);
}
.start-leiste h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); margin: 0 0 .25em; }
.start-leiste p { margin: 0; color: var(--tinte-2); max-width: 52ch; }

/* Suche mit Vorschlägen */
.suche { position: relative; }
.suche__feld { display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 14px; border: 1.5px solid var(--tinte); border-radius: var(--r); background: var(--grund); }
.suche__feld:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gelb) 70%, transparent); }
.suche__feld input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--tinte); font: inherit; padding: 8px 0; }
.suche__feld input:focus { outline: none; }
.vorschlaege {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; list-style: none; margin: 0; padding: 6px; max-height: 380px; overflow: auto;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); box-shadow: var(--schatten);
}
.vorschlaege a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 6px; color: inherit; text-decoration: none; }
.vorschlaege img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; background: var(--flaeche-2); }
.vorschlaege strong { font: 600 1.2rem/1.1 var(--anzeige); display: block; }
.vorschlaege small { display: block; color: var(--tinte-2); font-size: .85rem; }
.vorschlaege a:hover, .vorschlaege a.markiert { background: var(--flaeche-2); }
.vorschlaege__leer { padding: 12px; color: var(--tinte-2); }

/* ============ Abschnitte ============ */
.abschnitt { padding-top: 80px; }
.abschnitt__kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.abschnitt__kopf h2, .teil__kopf h2, .weiter h2, .pass__kopf h2, .ueberblick__text h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 0; }
.abschnitt__kopf p, .teil__kopf p { margin: 8px 0 0; color: var(--tinte-2); max-width: 62ch; }
.pfeile { display: flex; gap: 8px; }

/* Top-Kurorte zum Blättern */
.kurorte {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 290px); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; cursor: grab;
}
.kurorte.ist-gezogen { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.kurort { scroll-snap-align: start; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.kurort__bild { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--flaeche-2); }
.kurort__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.kurort:hover .kurort__bild img { transform: scale(1.04); }
.kurort__schild {
  align-self: flex-start; position: relative; margin: -24px 0 0 14px; padding: .34em .6em .3em; border-radius: 5px;
  background: var(--gelb); color: var(--schild-schwarz); font: 600 1.35rem/1 var(--anzeige);
  box-shadow: inset 0 0 0 2px var(--gelb), inset 0 0 0 3.5px var(--schild-schwarz), 0 8px 16px -8px rgba(0, 0, 0, .5);
}
.kurort__text { margin-top: 10px; color: var(--tinte-2); font-size: .95rem; line-height: 1.45; }

/* Kurmittel */
.kurmittel { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--linie); border-left: 1px solid var(--linie); }
.kurmittel__eintrag {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-content: start; padding: 22px 20px 24px;
  border: 0; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); background: none; text-align: left; cursor: pointer;
}
.kurmittel__eintrag::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--k); transform: scaleX(.2); transform-origin: left; transition: transform .25s ease; }
.kurmittel__eintrag:hover { background: var(--flaeche); }
.kurmittel__eintrag:hover::before, .kurmittel__eintrag:focus-visible::before { transform: scaleX(1); }
.kurmittel__name { font: 600 1.75rem/1 var(--anzeige); }
.kurmittel__zahl { align-self: end; color: var(--tinte-2); font-size: .9rem; }
.kurmittel__text { grid-column: 1 / -1; margin-top: 6px; color: var(--tinte-2); font-size: .95rem; line-height: 1.45; }

/* ============ Alle Orte: Liste + Punktkarte ============ */
.filter {
  position: sticky; top: var(--kopf); z-index: 50; padding: 12px 0 10px; margin-bottom: 8px;
  background: color-mix(in srgb, var(--grund) 92%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie);
}
.filter__reihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter__suche { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.filter__suche .icon { position: absolute; left: 12px; color: var(--tinte-2); pointer-events: none; }
.filter__suche .eingabe { width: 100%; padding-left: 38px; }
.eingabe { height: 44px; padding: 0 14px; border: 1.5px solid var(--linie); border-radius: var(--r); background: var(--flaeche); color: var(--tinte); font: inherit; font-size: 1rem; }
.eingabe:focus { outline: none; border-color: var(--tinte); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gelb) 70%, transparent); }
select.eingabe {
  appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5963' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.umschalter { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; cursor: pointer; }
.umschalter input { width: 20px; height: 20px; accent-color: var(--tinte); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; cursor: pointer;
  border: 1.5px solid var(--linie); border-radius: var(--r); background: var(--flaeche); color: var(--tinte); font: 600 1.05rem/1 var(--anzeige);
}
.chip[data-kurart]::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--chip); }
.chip:hover { border-color: var(--tinte); }
.chip[aria-pressed="true"] { background: var(--tinte); border-color: var(--tinte); color: var(--auf-voll); }
.ergebnis { color: var(--tinte-2); font-size: .95rem; margin: 16px 0 18px; }
.ergebnis strong { color: var(--tinte); }
.ergebnis .linkknopf { margin-left: 8px; color: var(--tinte); }

.entdecken__raster { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 44px; align-items: start; }
.entdecken__karte { position: sticky; top: calc(var(--kopf) + 128px); padding-top: 12px; }

.orte { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 30px 20px; }
.orte--breit { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ort { position: relative; }
.ort__link { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.ort__bild { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--flaeche-2); outline: 3px solid transparent; outline-offset: 2px; transition: outline-color .15s; }
.ort__bild img { width: 100%; height: 100%; object-fit: cover; }
.ort.ist-hervor .ort__bild, .ort:hover .ort__bild { outline-color: var(--gelb); }
.ort:hover .ort__name { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 2px; }
.ort__top {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 7px 4px; border-radius: 4px;
  background: var(--gelb); color: var(--schild-schwarz); font: 600 .95rem/1 var(--anzeige);
  box-shadow: inset 0 0 0 1.5px var(--gelb), inset 0 0 0 2.6px var(--schild-schwarz);
}
.ort__name { margin-top: 12px; font: 600 1.5rem/1.05 var(--anzeige); }
.ort__land { margin-top: 3px; color: var(--tinte-2); font-size: .92rem; }
.ort__kurz { margin-top: 6px; font-size: .95rem; line-height: 1.45; }
.ort__kurmittel { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; }
.marke-kurmittel { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--tinte-2); }
.marke-kurmittel::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--k); }
.ort__aktionen { position: absolute; right: 8px; top: 8px; display: flex; gap: 6px; }
.rund {
  width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(248, 250, 249, .94); color: #14202b; box-shadow: 0 1px 5px rgba(0, 0, 0, .25);
}
.rund:hover { background: #fff; }
.rund[aria-pressed="true"][data-aktion="merken"] { background: #c8102e; color: #fff; }
.rund[aria-pressed="true"][data-aktion="merken"] .icon { fill: currentColor; }
.rund[aria-pressed="true"][data-aktion="besucht"] { background: #f2c500; color: #16181a; box-shadow: 0 0 0 1.5px #16181a, 0 1px 5px rgba(0, 0, 0, .25); }
.mehr { display: flex; justify-content: center; padding-top: 36px; }
.leer { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--tinte-2); }
.leer .icon { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--tinte); display: block; }
.leer p { max-width: 46ch; margin: 0 auto 18px; }
.leer--seite { padding: 110px 16px 80px; }
.leer--seite h1 { color: var(--tinte); font-size: clamp(2.2rem, 5vw, 3.2rem); }

/* Punktkarte */
.punktkarte { position: relative; }
.punktkarte svg { display: block; width: 100%; height: auto; overflow: visible; }
.pk-land { fill: var(--flaeche); stroke: var(--linie); stroke-width: 2; stroke-linejoin: round; }
.pk-punkt { fill: var(--tinte); stroke: var(--grund); stroke-width: 1.5; cursor: pointer; transition: opacity .25s, fill .2s; transform-box: fill-box; transform-origin: center; }
.pk-punkt.ist-top { fill: var(--gelb); stroke: var(--schild-schwarz); stroke-width: 1.8; }
.pk-punkt.ist-aus { opacity: .12; }
.pk-ring { fill: none; stroke: var(--tinte); stroke-width: 3; pointer-events: none; }
.pk-wartet .pk-punkt { opacity: 0; }
.pk-blubbert .pk-punkt { animation: blubbern .8s cubic-bezier(.2, .75, .3, 1.25) backwards; animation-delay: var(--v); }
@keyframes blubbern { from { opacity: 0; transform: translateY(30px) scale(.3); } }
.pk-tipp {
  position: absolute; z-index: 5; width: 180px; padding: 6px 6px 9px; pointer-events: none; transform: translate(-50%, calc(-100% - 16px));
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); box-shadow: var(--schatten); font-size: .85rem;
}
.pk-tipp--unten { transform: translate(-50%, 26px); }
.pk-tipp img { width: 100%; height: 92px; object-fit: cover; border-radius: 4px; margin-bottom: 6px; background: var(--flaeche-2); }
.pk-tipp strong { display: block; font: 600 1.2rem/1.1 var(--anzeige); }
.pk-tipp span { color: var(--tinte-2); }
.punktkarte--pass .pk-punkt { fill: var(--flaeche); stroke: var(--tinte-2); stroke-width: 1.4; }
.punktkarte--pass .pk-punkt.ist-besucht { fill: var(--gelb); stroke: var(--schild-schwarz); stroke-width: 2.2; }
.punktkarte--plan .pk-punkt { opacity: .28; }
.punktkarte--plan .pk-punkt.ist-gemerkt { opacity: 1; }
.pk-route { fill: none; stroke: var(--tinte); stroke-width: 3; stroke-dasharray: 1 8; stroke-linecap: round; pointer-events: none; }
.pk-stopp { pointer-events: none; }
.pk-stopp circle { fill: var(--tinte); stroke: var(--grund); stroke-width: 2.5; }
.pk-stopp text { fill: var(--auf-voll); font: 700 15px var(--text); text-anchor: middle; }

.premium-band { margin-top: 96px; background: var(--tinte); color: var(--auf-voll); }
.premium-band__inhalt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-top: 36px; padding-bottom: 36px; }
.premium-band p { margin: 0; max-width: 62ch; font-size: 1.1rem; }
.premium-band strong { display: block; margin-bottom: 4px; font: 600 1.7rem/1.1 var(--anzeige); }

/* ============ Ortsseite ============ */
.ortskopf { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; background: #1b2730; }
.ortskopf__bild { position: absolute; inset: -40px 0 0; background-size: cover; background-position: center; will-change: transform; }
.ortskopf::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(8, 14, 18, .78) 0%, rgba(8, 14, 18, .2) 55%, rgba(8, 14, 18, .35) 100%), linear-gradient(90deg, rgba(8, 14, 18, .35), transparent 60%);
}
.ortskopf__inhalt { position: relative; z-index: 2; width: 100%; padding-top: 96px; padding-bottom: 44px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.brotkrumen { position: absolute; top: 26px; display: flex; gap: 8px; font-size: .95rem; }
.brotkrumen a { color: #fff; }
.brotkrumen span { opacity: .6; }
.ortskopf__kurz { max-width: 40ch; margin: 0; font-size: 1.3rem; line-height: 1.45; text-shadow: 0 1px 14px rgba(0, 0, 0, .5); }
.ortskopf__aktionen { display: flex; flex-wrap: wrap; gap: 10px; }

.sprungnav { position: sticky; top: var(--kopf); z-index: 60; background: color-mix(in srgb, var(--grund) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linie); }
.sprungnav__liste { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.sprungnav__liste::-webkit-scrollbar { display: none; }
.sprungnav a {
  flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 17px 10px 14px; margin-right: 8px;
  color: var(--tinte-2); text-decoration: none; font: 600 1.2rem/1 var(--anzeige); border-bottom: 3px solid transparent;
}
.sprungnav a:hover { color: var(--tinte); }
.sprungnav a.ist-aktiv { color: var(--tinte); border-bottom-color: var(--tinte); }
.sprungnav .icon { width: .85em; height: .85em; opacity: .7; }
.zahl { font: 700 .75rem/1 var(--text); background: var(--flaeche-2); color: var(--tinte-2); padding: 3px 7px; border-radius: 10px; }
.zahl:empty { display: none; }

.teil { padding-top: 64px; scroll-margin-top: calc(var(--kopf) + 56px); }
.teil + .teil { margin-top: 56px; border-top: 1px solid var(--linie); }
.teil__kopf { margin-bottom: 24px; }

.ueberblick { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.ueberblick__text h2 { margin-bottom: 18px; }
.prosa { font-size: 1.12rem; line-height: 1.68; max-width: 64ch; }
.prosa p { margin: 0 0 1em; }
.quelle { font-size: .85rem; color: var(--tinte-2); }
.untertitel { font-size: 1.65rem; margin: 36px 0 12px; }
.untertitel--eng { margin-top: 0; }
.highlights { list-style: none; margin: 0 0 30px; padding: 0; max-width: 64ch; border-top: 1px solid var(--linie); }
.highlights li { display: grid; grid-template-columns: 190px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.highlights strong { font: 600 1.3rem/1.15 var(--anzeige); }
.highlights span { color: var(--tinte-2); }
.tipp { max-width: 64ch; padding: 18px 22px; background: var(--wasser); border-radius: var(--r); }
.tipp strong { font: 600 1.35rem/1 var(--anzeige); }
.tipp p { margin: 6px 0 0; }

.analyse { position: sticky; top: calc(var(--kopf) + 78px); padding: 20px 22px 22px; background: var(--flaeche); border: 1.5px solid var(--tinte); border-radius: var(--r); }
.analyse__titel { font-size: 1.55rem; margin: 0 0 6px; padding-bottom: 10px; border-bottom: 3px double var(--tinte); }
.analyse dl { margin: 0; }
.analyse dl div { display: flex; align-items: baseline; gap: 0; padding: 7px 0; font-size: .98rem; }
.analyse dt { display: flex; flex: 1 0 auto; color: var(--tinte-2); }
.analyse dt::after { content: ""; flex: 1; min-width: 12px; margin: 0 8px .3em; border-bottom: 1.5px dotted var(--linie); }
.analyse dd { margin: 0; max-width: 60%; text-align: right; font-weight: 700; }
.analyse__knoepfe { display: grid; gap: 8px; margin-top: 16px; }
.minivorschau { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 16px; }
.minivorschau > * { position: relative; display: block; aspect-ratio: 1; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: var(--flaeche-2); cursor: zoom-in; }
.minivorschau img { width: 100%; height: 100%; object-fit: cover; }
.minivorschau .skelett { margin: 0; }

/* Aktivitäten */
.plan { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.plan__eintrag { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--linie); }
.plan__eintrag[hidden] { display: none; }
.plan__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--wasser); color: var(--wasser-tief); }
.plan__icon .icon { width: 22px; height: 22px; }
.plan__text h4 { margin: 0 0 3px; font-size: 1.4rem; line-height: 1.1; }
.plan__text p { margin: 0; color: var(--tinte-2); }
.plan__text small { color: var(--tinte-2); font-size: .85rem; }
.plan__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.gesperrt-liste { border-top: 1px solid var(--linie); filter: blur(3px); opacity: .7; }
.gesperrt-liste__zeile { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--linie); }
.gesperrt-liste__zeile span:first-child { width: 48px; height: 48px; border-radius: 50%; background: var(--wasser); }
.gesperrt-liste__zeile span:last-child { width: 70%; height: 14px; border-radius: 7px; background: var(--flaeche-2); box-shadow: 0 24px 0 var(--flaeche-2); margin-top: -20px; }
.gesperrt-liste + .paywall { position: relative; margin-top: -120px; }

/* Premium-Hinweis */
.paywall {
  display: flex; gap: 18px; align-items: flex-start; max-width: 700px; margin: 28px 0; padding: 24px 26px;
  background: var(--flaeche); border: 1.5px solid var(--tinte); border-radius: var(--r); box-shadow: var(--schatten);
}
.paywall > .icon { width: 30px; height: 30px; margin-top: 3px; }
.paywall h3 { font-size: 1.7rem; margin: 0 0 4px; }
.paywall p { margin: 0 0 14px; color: var(--tinte-2); }
.paywall .paywall__knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.paywall__mehr { color: var(--tinte); font-size: .95rem; }

/* Galerie */
.galerie { columns: 3 260px; column-gap: 12px; }
.galerie > * { position: relative; display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--flaeche-2); cursor: zoom-in; break-inside: avoid; }
.galerie img { width: 100%; transition: filter .2s; }
.galerie button:hover img { filter: brightness(1.07); }
.galerie .leer { break-inside: avoid; }
.gesperrt { cursor: pointer !important; }
.gesperrt img { filter: blur(14px) saturate(.8); transform: scale(1.1); }
.gesperrt span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; background: rgba(10, 18, 24, .38); color: #fff; font: 600 1.25rem var(--anzeige); }
.minivorschau .gesperrt img { height: 100%; object-fit: cover; }

/* Umgebung */
.umgebung { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; }
.map { height: 70vh; min-height: 420px; border-radius: var(--r); border: 1px solid var(--linie); z-index: 0; }
.map--klein { height: 480px; min-height: 0; }
.nahliste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); align-self: start; }
.nahort { display: flex; gap: 14px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--linie); color: inherit; text-decoration: none; }
.nahort:hover { background: var(--flaeche); }
.nahort img { width: 64px; height: 48px; border-radius: 4px; object-fit: cover; background: var(--flaeche-2); flex: none; }
.nahort strong { display: block; font: 600 1.25rem/1.1 var(--anzeige); }
.nahort small { color: var(--tinte-2); }

/* Weiter zum nächsten Ort */
.weiter { margin-top: 88px; padding: 64px 0 84px; background: var(--flaeche); border-top: 1px solid var(--linie); }
.weiter__inhalt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 56px; align-items: center; }
.weiter p { margin: 12px 0 0; color: var(--tinte-2); max-width: 50ch; }
.weiter__abc a { color: var(--tinte); }

/* Leaflet */
.pin { width: 16px; height: 16px; border-radius: 50%; background: #14202b; border: 2.5px solid #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .45); }
.pin--top { width: 22px; height: 22px; background: #f2c500; border-color: #16181a; }
.pin--aktiv { width: 28px; height: 28px; background: #c8102e; }
.leaflet-container { font-family: var(--text); }
.leaflet-popup-content-wrapper { border-radius: var(--r); }
.popup { width: 220px; color: #14202b; }
.popup img { width: 100%; height: 110px; object-fit: cover; border-radius: 4px; margin-bottom: 8px; background: #eee; }
.popup__schild {
  display: inline-block; margin-bottom: 4px; padding: 5px 8px 4px; border-radius: 4px; background: #f2c500; color: #16181a; font: 600 1.2rem/1 var(--anzeige);
  box-shadow: inset 0 0 0 1.5px #f2c500, inset 0 0 0 2.6px #16181a;
}
.popup > span:not(.popup__schild) { display: block; margin-bottom: 8px; color: #4a5963; font-size: .85rem; }
.popup .btn { background: #14202b; border-color: #14202b; color: #fff !important; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(242, 197, 0, .38) !important; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background: #f2c500 !important; color: #16181a; font: 700 12px var(--text); box-shadow: inset 0 0 0 1.5px #16181a; }

/* ============ Seiten: Karte, Merkliste, Bäderpass ============ */
.seite { padding-bottom: 88px; }
.seitenkopf { padding: 48px 0 26px; }
.seitenkopf h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0 0 10px; }
.seitenkopf p { margin: 0; max-width: 62ch; color: var(--tinte-2); font-size: 1.1rem; }
.karte__filter { margin-bottom: 16px; }
.karte__filter .chips { padding: 0; }
.karte__filter .ergebnis { margin: 0; }
.seite__ende { margin-top: 40px; }

.hinweisbox { margin-bottom: 24px; padding: 14px 18px; background: var(--wasser); border-radius: var(--r); font-size: .98rem; }
.hinweisbox:has(> .icon) { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.hinweisbox > span { flex: 1 1 220px; }
.hinweisbox code { font-size: .9em; }

.reiseplan { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 52px; align-items: start; }
.stationen { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--linie); }
.station { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.station__nr { position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--tinte); color: var(--auf-voll); font: 700 .95rem var(--text); }
.station:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: calc(50% + 18px); bottom: calc(-50% + 18px); border-left: 2px dotted var(--tinte-2); }
.station__ort { display: flex; gap: 12px; align-items: center; min-width: 0; color: inherit; text-decoration: none; }
.station__ort img { width: 64px; height: 48px; border-radius: 4px; object-fit: cover; background: var(--flaeche-2); flex: none; }
.station__ort strong { display: block; font: 600 1.3rem/1.1 var(--anzeige); }
.station__ort small { color: var(--tinte-2); font-size: .88rem; }
.reiseplan__summe { margin: 0 0 16px; color: var(--tinte-2); }
.reiseplan__summe strong { color: var(--tinte); }

.pass { margin-top: 36px; }
.pass__zahl { margin: 10px 0 14px; font-size: 1.15rem; }
.pass__zahl strong { font: 600 2.6rem/1 var(--anzeige); margin-right: 4px; }
.pass__zahl span { color: var(--tinte-2); }
.fortschritt { max-width: 640px; height: 12px; border-radius: 6px; background: var(--flaeche-2); overflow: hidden; }
.fortschritt span { display: block; height: 100%; border-radius: 6px; background: var(--gelb); box-shadow: inset 0 0 0 1.5px var(--schild-schwarz); transition: width .9s ease; }
.pass__raster { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 52px; margin-top: 36px; align-items: start; }
.laender { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.laender li { display: grid; grid-template-columns: minmax(0, 210px) 1fr 52px; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--linie); font-size: .98rem; }
.laender__balken { height: 8px; border-radius: 4px; background: var(--flaeche-2); overflow: hidden; }
.laender__balken span { display: block; height: 100%; border-radius: 4px; background: var(--tinte); }
.laender li.ist-voll .laender__balken span { background: var(--gelb); box-shadow: inset 0 0 0 1px var(--schild-schwarz); }
.laender__zahl { text-align: right; color: var(--tinte-2); font-variant-numeric: tabular-nums; }
.stempelbuch { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 22px 18px; padding: 8px 0; }
.stempel--buch { justify-self: center; width: 128px; height: 128px; font-size: 1.1rem; text-decoration: none; transform: rotate(var(--dreh)); transition: transform .2s ease; }
.stempel--buch:hover { transform: rotate(0deg) scale(1.05); }
.stempel--buch b { max-width: 96px; font-size: 1.2rem; line-height: 1.05; text-wrap: balance; }

/* ============ Premium, Bestellung, Kündigung, Support ============ */
.abobox { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 20px; margin-bottom: 8px; background: var(--flaeche); border: 1.5px solid var(--linie); border-radius: var(--r); }
.abobox > .icon { width: 24px; height: 24px; }
.abobox p { flex: 1 1 260px; margin: 0; }
.abobox--abo, .abobox--test { border-color: var(--tinte); }
.abobox--abo > .icon, .abobox--test > .icon { fill: var(--gelb); stroke: var(--schild-schwarz); }
.abobox--abgelaufen { border-color: var(--rot); }
.abobox__knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.abo-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 28px; align-items: start; max-width: 1000px; }
.abo-layout:has(> :only-child) { grid-template-columns: minmax(0, 560px); }
.preiskarte { padding: 28px; background: var(--flaeche); border: 1.5px solid var(--tinte); border-radius: var(--r); }
.preiskarte__preis strong { font: 600 4.2rem/1 var(--anzeige); }
.preiskarte__preis span { margin-left: 8px; color: var(--tinte-2); }
.preiskarte__test { display: flex; align-items: center; gap: 8px; margin: 14px 0 20px; font-weight: 700; }
.preiskarte__liste { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--linie); }
.preiskarte__liste li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.preiskarte__liste .icon { margin-top: 5px; }
.preiskarte__liste span { color: var(--tinte-2); font-size: .95rem; }
.preiskarte__liste strong { color: var(--tinte); font: 600 1.3rem/1.2 var(--anzeige); }
.preiskarte > .btn { width: 100%; }
.abo-fuss { margin: 28px 0 0; max-width: 1000px; }
.bestellung, .erklaerung { display: grid; gap: 16px; padding: 26px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); }
.bestellung h2 { font-size: 1.9rem; margin: 0; }
.bestellung dl { margin: 0; border-top: 1px solid var(--linie); }
.bestellung dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.bestellung dt { color: var(--tinte-2); font-size: .92rem; }
.bestellung dd { margin: 0; font-size: .98rem; }
.bestellung dd small { color: var(--tinte-2); }
.bestellung__zahlung { display: flex; gap: 8px; margin: 0; color: var(--tinte-2); font-size: .95rem; }
.bestellung__zahlung .icon { margin-top: 4px; }
.haken { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; font-weight: 400; cursor: pointer; }
.haken input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--tinte); }
.feld { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.feld[hidden] { display: none; }
.feld > span { color: var(--tinte-2); font-weight: 400; }
.feld input, .feld textarea { padding: 12px 14px; border: 1.5px solid var(--linie); border-radius: var(--r); background: var(--grund); color: var(--tinte); font: inherit; font-weight: 400; resize: vertical; }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--tinte); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gelb) 70%, transparent); }
.erklaerung { margin-top: 24px; }
.erklaerung fieldset { margin: 0; padding: 0; border: 0; }
.erklaerung legend { padding: 0; margin-bottom: 8px; }
.erklaerung .quelle { margin: -6px 0 0; }
#erklaerung-ok { margin-top: 24px; }
.auth-fehler { min-height: 1.2em; margin: 0; color: var(--rot); font-size: .95rem; }

.textseite { max-width: 780px; padding: 48px 0 88px; }
.textseite h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.textseite h2 { font-size: 1.85rem; margin-top: 1.6em; }
.textseite p, .textseite li { line-height: 1.65; }
.textseite ul { padding-left: 22px; }
.textseite mark { padding: 0 3px; border-radius: 3px; background: color-mix(in srgb, var(--gelb) 45%, transparent); color: inherit; }
.formular-muster { padding: 4px 18px; border: 1.5px dashed var(--linie); border-radius: var(--r); }
.support-kontakt { display: flex; gap: 14px; margin: 24px 0 14px; padding: 18px 20px; background: var(--wasser); border-radius: var(--r); }
.support-kontakt > .icon { width: 24px; height: 24px; margin-top: 2px; }
.support-links { display: flex; flex-wrap: wrap; gap: 8px; }
.faq { border-top: 1px solid var(--linie); }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; font: 600 1.35rem/1.2 var(--anzeige); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.7rem; line-height: .8; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 64ch; margin: 0 0 18px; color: var(--tinte-2); }
.support-recht { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; }

.skelett { background: linear-gradient(90deg, var(--flaeche-2), var(--flaeche), var(--flaeche-2)); background-size: 200% 100%; animation: schimmer 1.3s infinite linear; border-radius: 4px; margin: 0 0 12px; }
@keyframes schimmer { to { background-position: -200% 0; } }

/* ============ Dialoge ============ */
.dialog { width: min(440px, calc(100% - 32px)); padding: 32px; border: 0; border-radius: var(--r-gross); background: var(--flaeche); color: var(--tinte); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); }
.dialog::backdrop, .palette::backdrop { background: rgba(8, 14, 18, .5); backdrop-filter: blur(3px); }
.dialog[open], .palette[open] { animation: auf .2s ease-out; }
@keyframes auf { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.dialog__close-form { position: absolute; right: 14px; top: 14px; margin: 0; }
.dialog__close { width: 38px; height: 38px; }
.auth-tabs { display: inline-flex; margin-bottom: 20px; border: 1.5px solid var(--tinte); border-radius: var(--r); overflow: hidden; }
.auth-tabs button { padding: 8px 16px; border: 0; background: none; color: var(--tinte); font: 600 1.1rem var(--anzeige); cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: var(--tinte); color: var(--auf-voll); }
.dialog h2 { font-size: 2.1rem; margin: 0 0 4px; }
.auth-sub { margin: 0 0 20px; color: var(--tinte-2); }
.auth-form { display: grid; gap: 14px; }
.auth-hinweis { margin: 14px 0 0; color: var(--tinte-2); font-size: .85rem; }

.palette { width: min(620px, calc(100% - 24px)); margin-top: 12vh; padding: 0; border: 0; border-radius: var(--r-gross); overflow: hidden; background: var(--flaeche); color: var(--tinte); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); }
.palette__feld { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--linie); }
.palette__feld [data-icon] { display: inline-flex; color: var(--tinte-2); }
.palette__feld input { flex: 1; min-width: 0; border: 0; background: none; color: var(--tinte); font: inherit; font-size: 1.15rem; }
.palette__feld input:focus { outline: none; }
.palette__liste { list-style: none; margin: 0; padding: 8px; max-height: min(60vh, 470px); overflow: auto; }
.palette__gruppe { padding: 10px 10px 4px; color: var(--tinte-2); font-size: .85rem; }
.palette__liste a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 6px; color: inherit; text-decoration: none; }
.palette__liste img, .palette__icon { flex: none; width: 44px; height: 44px; border-radius: 4px; object-fit: cover; background: var(--flaeche-2); }
.palette__icon { display: grid; place-items: center; }
.palette__liste strong { display: block; font: 600 1.2rem/1.1 var(--anzeige); }
.palette__liste small { color: var(--tinte-2); font-size: .85rem; }
.palette__liste a:hover, .palette__liste [aria-selected="true"] a { background: var(--flaeche-2); }
.palette__liste [aria-selected="true"] a { box-shadow: inset 3px 0 0 var(--tinte); }
.palette__leer { padding: 18px 10px; color: var(--tinte-2); }

/* ============ Bildbetrachter ============ */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; grid-template-columns: 72px 1fr 72px; grid-template-rows: 1fr auto; align-items: center; background: rgba(8, 12, 14, .96); color: #fff; animation: auf .2s ease both; }
.lightbox[hidden] { display: none; }
.lightbox__figure { grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 0; max-height: 100%; margin: 0; padding: 56px 0 8px; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 230px); object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); transition: opacity .25s; }
.lightbox__figure figcaption { max-width: 80ch; font-size: .88rem; text-align: center; opacity: .88; }
.lightbox__figure figcaption strong { font: 600 1.2rem var(--anzeige); }
.lb-zahl { margin-left: 8px; opacity: .7; }
.lightbox__figure figcaption a { color: #fff; }
.lightbox .icon-btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.lightbox .icon-btn:hover { border-color: #fff; }
.lightbox__close { position: absolute; right: 16px; top: 16px; }
.lightbox__nav { justify-self: center; width: 52px; height: 52px; }
.lightbox__thumbs { grid-column: 1 / -1; display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 18px; justify-content: safe center; }
.lightbox__thumbs button { flex: none; width: 72px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: #222; opacity: .5; cursor: pointer; }
.lightbox__thumbs button.aktiv { border-color: #f2c500; opacity: 1; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Toast & Fußzeile ============ */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 3000; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--r);
  background: var(--tinte); color: var(--auf-voll); font-weight: 700; box-shadow: var(--schatten);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.sichtbar { opacity: 1; transform: translate(-50%, 0); }
.footer { padding: 52px 0 40px; background: var(--boden); color: var(--boden-text); font-size: .95rem; }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px 48px; }
.footer__marke p { max-width: 42ch; margin: 14px 0 0; opacity: .85; }
.marke--fuss .marke__wort { color: #f0f4f3; }
.footer__links { display: flex; flex-wrap: wrap; align-content: start; gap: 10px 22px; }
.footer__links a { color: var(--boden-text); }
.footer__vertrag { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.footer .btn { color: #f0f4f3; border-color: rgba(255, 255, 255, .5); }
.footer .btn:hover { background: #fff; border-color: #fff; color: #14202b; }

/* ============ Einwilligung: Banner, Einstellungen, Platzhalter (js/einwilligung.js) ============ */
.einwilligung {
  position: fixed; left: 50%; bottom: 16px; z-index: 2500; transform: translateX(-50%);
  width: min(1040px, calc(100% - 32px)); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
  padding: 20px 24px; background: var(--flaeche); color: var(--tinte); border: 1.5px solid var(--tinte); border-left: 8px solid var(--gelb);
  border-radius: var(--r-gross); box-shadow: var(--schatten);
}
.einwilligung[hidden] { display: none; }
.einwilligung__text { flex: 1 1 440px; }
.einwilligung h2 { font-size: 1.6rem; margin: 0 0 4px; }
.einwilligung p { margin: 0; font-size: .92rem; color: var(--tinte-2); }
.einwilligung p a { color: var(--tinte); }
/* „Ablehnen“ und „Alle akzeptieren“ bewusst gleich groß und gleich auffällig (gleich breite Spalten) */
.einwilligung__knoepfe { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }

.dialog--breit { width: min(580px, calc(100% - 32px)); }
.ew-liste { display: grid; }
.ew-zeile { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--linie); cursor: pointer; }
.ew-zeile:has(input:disabled) { cursor: default; }
.ew-zeile strong { display: block; font: 600 1.3rem/1.1 var(--anzeige); }
.ew-zeile small { display: block; margin-top: 4px; color: var(--tinte-2); font-size: .86rem; line-height: 1.45; }
/* Schalter: an = gelb wie das Ortsschild */
.ew-zeile input {
  appearance: none; flex: none; position: relative; width: 46px; height: 26px; margin: 2px 0 0;
  border: 1.5px solid var(--tinte); border-radius: 13px; background: var(--flaeche-2); cursor: pointer; transition: background .15s;
}
.ew-zeile input::before { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--tinte); transition: transform .15s; }
.ew-zeile input:checked { background: var(--gelb); border-color: var(--schild-schwarz); }
.ew-zeile input:checked::before { transform: translateX(20px); background: var(--schild-schwarz); }
.ew-zeile input:disabled { opacity: .6; cursor: default; }
.ew-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* Platzhalter für Fotos, Texte und Karten, solange keine Einwilligung vorliegt */
.extern-aus {
  display: grid; justify-items: center; gap: 10px; padding: 28px 20px; text-align: center; color: var(--tinte-2);
  background: var(--flaeche); border: 1.5px dashed var(--linie); border-radius: var(--r);
}
.extern-aus > .icon { width: 32px; height: 32px; color: var(--tinte); }
.extern-aus p { max-width: 50ch; margin: 0; }
.extern-aus small { font-size: .82rem; }
.map--aus { display: grid; place-items: center; background: var(--flaeche); }
.map--aus .extern-aus { border: 0; background: none; }
.prosa .extern-aus { margin-top: 12px; }
/* „Fotos laden“ im Titelbild immer oben rechts (der Banner unten würde ihn sonst verdecken) */
.bildnachweis:has(> [data-einwilligung-erlauben]) { top: 14px; bottom: auto; }
/* Ohne Fotos: ruhige Thermalwasser-Flächen statt leerer Kästen */
img[src=""] { visibility: hidden; }
.ohne-fotos .start-hero, .ohne-fotos .ortskopf { background: linear-gradient(150deg, #2d6e66, #1b2730 72%); }
.ohne-fotos .ort__bild, .ohne-fotos .kurort__bild { background: linear-gradient(160deg, var(--wasser), var(--flaeche-2)); }
/* ============ E-Book (PDF) ============ */
.ebook-band { margin-top: 96px; background: var(--wasser); }
.ebook-band__inhalt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.ebook-band__cover img { width: 180px; height: auto; border-radius: 4px; box-shadow: var(--schatten), 0 2px 6px rgba(0, 0, 0, .25); transform: rotate(-2.5deg); transition: transform .3s ease; }
.ebook-band__cover:hover img { transform: rotate(0); }
.ebook-band__marke { display: inline-block; margin: 0 0 10px; padding: 4px 10px; border: 1.5px solid var(--schild-schwarz); border-radius: 6px; background: var(--gelb); color: var(--schild-schwarz); font: 600 .95rem/1 var(--anzeige); letter-spacing: .08em; text-transform: uppercase; }
.ebook-band h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.ebook-band p { max-width: 62ch; }
.ebook-band__knoepfe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ebook-band .btn--hell { color: var(--tinte); border-color: var(--tinte); background: transparent; backdrop-filter: none; }
.ebook-band .btn--hell:hover { background: var(--tinte); color: var(--auf-voll); }
.ebook-band + .premium-band { margin-top: 0; }
.ebook-hinweis { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 12px; border: 1.5px solid var(--linie); border-radius: var(--r); background: var(--flaeche); text-decoration: none; font-size: .9rem; line-height: 1.35; color: var(--tinte-2); }
.ebook-hinweis:hover { border-color: var(--tinte); }
.ebook-hinweis img { width: 40px; height: auto; border-radius: 2px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.ebook-hinweis strong { display: block; color: var(--tinte); font: 600 1.15rem/1.1 var(--anzeige); }
.ebook-kopf { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 48px; }
.ebook-kopf__cover img { width: 100%; height: auto; border-radius: 6px; box-shadow: var(--schatten), 0 3px 10px rgba(0, 0, 0, .25); }
.ebook-kopf h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.ebook-kopf__lead { font-size: 1.15rem; color: var(--tinte-2); max-width: 56ch; }
.ebook-preis { max-width: 460px; margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ebook-preis .btn { white-space: normal; text-align: center; line-height: 1.15; padding-top: 8px; padding-bottom: 8px; }
.ebook-preis .preiskarte__preis { margin-bottom: 2px; }
.ebook-preis__daten { margin: 0 0 8px; color: var(--tinte-2); font-size: .95rem; }
.ebook-preis .quelle { margin: 6px 0 0; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }
.ebook-inhalt { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.ebook-inhalt li { display: flex; gap: 14px; padding: 18px; border: 1.5px solid var(--linie); border-radius: var(--r); background: var(--flaeche); color: var(--tinte-2); line-height: 1.45; }
.ebook-inhalt .icon { width: 26px; height: 26px; margin-top: 2px; }
.ebook-inhalt strong { display: block; color: var(--tinte); font: 600 1.3rem/1.15 var(--anzeige); margin-bottom: 4px; }
.ebook-seiten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ebook-seiten figure { margin: 0; }
.ebook-seiten img { width: 100%; height: auto; border: 1px solid var(--linie); border-radius: 4px; box-shadow: 0 10px 24px -14px rgba(10, 20, 25, .5); background: #fff; }
.ebook-seiten figcaption { margin-top: 8px; font-size: .9rem; color: var(--tinte-2); }
.ebook-verbunden > div { max-width: 70ch; }
@media (max-width: 960px) {
  .ebook-kopf { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ebook-kopf__cover { max-width: 240px; }
  .ebook-seiten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ebook-band__inhalt { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ebook-band__cover img { width: 130px; }
}

@media (max-width: 760px) {
  .einwilligung { bottom: calc(76px + env(safe-area-inset-bottom)); padding: 16px 18px; max-height: calc(100dvh - 150px); overflow: auto; }
  .einwilligung h2 { font-size: 1.4rem; }
  /* Ablehnen | Alle akzeptieren gleich breit nebeneinander, Auswählen darunter */
  .einwilligung__knoepfe { width: 100%; grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .einwilligung__knoepfe [data-einwilligung-oeffnen] { grid-column: 1 / -1; grid-row: 2; }
}

/* ============ Kleinere Bildschirme ============ */
@media (max-width: 1080px) {
  .entdecken__raster { grid-template-columns: 1fr; gap: 8px; }
  .entdecken__karte { position: static; order: -1; width: min(100%, 340px); margin: 8px auto 0; }
}
@media (max-width: 960px) {
  .ueberblick { grid-template-columns: 1fr; gap: 40px; }
  .analyse { position: static; max-width: 520px; }
  .umgebung, .reiseplan, .pass__raster { grid-template-columns: 1fr; }
  .reiseplan__karte, .pass__raster > .punktkarte { width: min(100%, 340px); margin: 0 auto; }
  .start-leiste__inhalt { grid-template-columns: 1fr; }
  .kurmittel { grid-template-columns: repeat(2, 1fr); }
  .kopf__suche { min-width: 0; }
  .kopf__suche > span:not([data-icon]), .kopf__suche kbd { display: none; }
}
@media (max-width: 760px) {
  :root { --kopf: 56px; }
  body { font-size: 17px; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 16px; }
  /* backdrop-filter würde die fixierte Leiste an die Kopfzeile binden */
  .kopf { backdrop-filter: none; background: var(--grund); }
  .kopf__suche { display: none; }
  .konto { margin-left: auto; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--flaeche); border-top: 1px solid var(--linie);
  }
  .nav a, .nav__suche { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 6px 2px; font-size: .72rem; }
  .nav__icon { display: inline-flex; }
  .nav__icon .icon { width: 22px; height: 22px; }
  .nav a.active { background: var(--flaeche-2); }
  .nav a.active::after { display: none; }
  .nav .badge { position: absolute; top: 2px; left: calc(50% + 6px); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .start-hero { min-height: 74vh; }
  .start-hero__inhalt { padding-top: 48px; padding-bottom: 104px; }
  .start-hero__kurz, .ortskopf__kurz { font-size: 1.12rem; }
  .start-leiste__inhalt { padding: 20px; }
  .abschnitt { padding-top: 60px; }
  .ortskopf { min-height: 70vh; }
  .ortskopf .bildnachweis { top: 10px; bottom: auto; max-width: 55%; }
  .ortskopf__aktionen .btn { min-height: 40px; padding: 0 12px; font-size: 1rem; }
  .highlights li { grid-template-columns: 1fr; gap: 4px; }
  .plan__eintrag { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .plan__icon { width: 40px; height: 40px; }
  .plan__links { grid-column: 2; justify-content: flex-start; }
  .weiter__inhalt { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 0 1fr 0; }
  .lightbox__nav { position: absolute; bottom: 96px; }
  .lightbox__nav--prev { left: 16px; }
  .lightbox__nav--next { right: 16px; }
  .laender li { grid-template-columns: minmax(0, 1fr) 80px 44px; }
  .stempel--buch { width: 112px; height: 112px; }
}
@media (max-width: 520px) {
  .kurmittel { grid-template-columns: 1fr; }
  .orte { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .ort__name { font-size: 1.3rem; }
  .ort__kurz { display: none; }
  .schild .stempel { right: -2.2em; top: -3.6em; }
}

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
}

/* ============ Screenshot-Schutz (js/schutz.js) ============ */
.geschuetzt body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.geschuetzt input, .geschuetzt textarea { -webkit-user-select: text; user-select: text; }
.geschuetzt img { -webkit-user-drag: none; }
.geschuetzt #app, .geschuetzt .lightbox, .geschuetzt .footer { transition: filter .08s; }
.verborgen #app, .verborgen .lightbox, .verborgen .footer { filter: blur(28px); }
@media print {
  body > * { display: none !important; }
  body::after { content: "Der Bad-Reiseführer kann nicht gedruckt werden."; display: block; padding: 40px; font: 18px sans-serif; }
}
