/* einfach-skiurlaub.de — Alpine-Bluebird Design System */

/* Bricolage Grotesque LOKAL ausgeliefert (nicht mehr von Google-Servern), um
   keine Nutzer-IP ungefragt an Google zu senden (DSGVO, LG Muenchen 2022).
   Variable Font, deckt Gewicht 500-700 ab. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/bricolage-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/bricolage-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #12243B;          /* Alpennavy, Text */
  --ink-soft: #51637A;     /* sekundärer Text */
  --ink-faint: #8598AE;    /* Hinweise */
  --snow: #F1F6FC;         /* Seitenhintergrund */
  --surface: #FFFFFF;      /* Karten/Panels */
  --line: #E1E9F2;         /* Haarlinien */
  --line-strong: #CDDAE8;
  --blue: #1668C4;         /* Gletscherblau, Aktion */
  --blue-deep: #0F4C97;
  --sky: #E9F2FC;          /* blaue Tönung */
  --sun: #F5A524;          /* Sonne/Sterne */
  --green: #16a34a;        /* Treffer */
  --gray-miss: #9CA8B8;    /* Ausgefiltert */
  --iso: #6D5AE0;          /* Reisezeit-Fläche */
  /* Favoriten: warmes Korall statt Signalrot. Rot wirkt auf der Karte wie eine
     Warnung, gemerkte Gebiete sollen aber einladend aussehen. */
  --fav: #F2643C;
  --fav-deep: #B8431C;
  --fav-soft: #FFF1EB;     /* Hover-Fläche */
  --fav-line: #F9CDBB;
  --radius: 10px;
  --header-h: 62px;
  --mtabs-h: 46px;
  --font-brand: "Bricolage Grotesque", system-ui, sans-serif;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
}

/* Auf der Kartenseite soll man nicht ausversehen in den Textbereich unter der
   Karte rutschen. Die Sperre haengt bewusst NICHT an overflow:hidden (das
   macht bei height:100% aus html/body einen eigenen Scroll-Container und der
   Textbereich waere danach gar nicht mehr erreichbar), sondern an zwei
   Bausteinen: overscroll-behavior verhindert, dass das Scrollen am Ende einer
   Liste auf die Seite ueberspringt, und nav.js haelt die Seite bei 0, solange
   .about-open nicht gesetzt ist. Der i-Knopf setzt die Klasse und gibt frei. */
.sidebar, .map-wrap, .results-list { overscroll-behavior: contain; }

/* ---------- Kopfzeile ---------- */
.app-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex: none; display: block; }
/* Marke ist zweizeilig: Wortmarke oben, Slogan direkt darunter. */
.brand-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand-word {
  font-family: var(--font-brand);
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.brand-a { font-weight: 500; color: var(--ink-soft); }
.brand-dash { font-weight: 500; color: var(--line-strong); margin: 0 .04em; }
.brand-b { font-weight: 700; color: var(--ink); }
.brand-tld { font-weight: 500; color: var(--blue); }
.brand-slogan {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1;
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 300px 1fr 328px; /* links Start+Filter | Karte | rechts Treffer */
  height: calc(100vh - var(--header-h));
}

/* Mobiler Ansichts-Umschalter: auf Desktop ausgeblendet (display:none nimmt ihn
   auch aus dem Grid), auf Mobil per Media Query eingeblendet. */
.mtabs { display: none; height: var(--mtabs-h); background: var(--surface); border-bottom: 1px solid var(--line); }
.mtab {
  flex: 1; border: none; background: none; font-family: var(--font); font-size: 14px; font-weight: 600;
  color: var(--ink-soft); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; border-bottom: 2px solid transparent;
}
.mtab.is-active { color: var(--blue-deep); border-bottom-color: var(--blue); }

/* ---------- Sidebar ---------- */
.sidebar {
  background: var(--snow);
  border-right: 1px solid var(--line);
  padding: 16px 16px 28px;
  overflow: auto;
}
/* Linke Spalte als Flex-Spalte: Startpunkt oben, Filter ans untere Ende
   des Bildschirms geschoben (margin-top:auto). Auf Mobil (height:auto)
   greift das nicht, dann bleibt der Filter direkt unter dem Startpunkt. */
#sidebar { display: flex; flex-direction: column; }
#sidebar #tourFilter { margin-top: auto; margin-bottom: 0; }
/* Rechte Spalte (Treffer): spiegelbildlich, Kante links statt rechts. */
.sidebar-right { border-right: none; border-left: 1px solid var(--line); }

/* Einklappbare Zusatzfilter (Après-Ski, Hüttendorf), damit die Filter nicht
   erschlagen. Standard zu, per Klick auf. */
.more-filters { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.more-filters > summary {
  cursor: pointer; list-style: none; user-select: none;
  font-size: 13px; font-weight: 600; color: var(--blue);
  padding: 8px 2px; display: flex; align-items: center; gap: 7px;
}
.more-filters > summary::-webkit-details-marker { display: none; }
.more-filters > summary::before { content: '▸'; font-size: 11px; transition: transform .15s; }
.more-filters[open] > summary::before { transform: rotate(90deg); }
.more-filters > summary:hover { color: var(--blue-deep); }
.more-filters .field { margin-top: 8px; }
.more-filters .field-last { margin-bottom: 0; }
.intro {
  margin: 2px 2px 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 15px 16px;
  margin-bottom: 14px;
}
.panel-primary {
  background: linear-gradient(180deg, var(--sky), var(--surface) 62%);
  border-color: var(--line-strong);
}
.panel-title {
  margin: 0 0 12px;
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Panel-Kopf mit Zaehler und Zuruecksetzen (Filter-Panel) */
.panel-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.panel-head .panel-title { margin: 0; }
.filter-count {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue);
  background: var(--sky);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
.filter-reset {
  font-family: var(--font);
  font-size: 11.5px;
  color: var(--ink-soft);
  background: none;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.filter-reset:hover { color: var(--ink); }

/* Waehrungsumschalter (Euro/Franken) unter dem Preisregler. Segment-Band wie
   die Hauptnavigation: ein Rahmen, darin die zwei Pillen. */
.waehrung-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.waehrung-label {
  font-size: 12px;
  color: var(--ink-soft);
}
.waehrung-toggle {
  display: inline-flex;
  margin-left: auto;
  padding: 2px;
  background: var(--sky);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.waehrung-btn {
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.waehrung-btn.is-on {
  color: var(--blue);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(18,36,59,.10);
}
.waehrung-btn:not(.is-on):hover { color: var(--ink); }
/* Auf der Gebietsseite steht der Umschalter ueber den Faktenkacheln, dort
   ohne den Regler darueber. */
.gs-waehrung { max-width: 320px; margin: 18px 0 -4px; }

/* Felder */
.field { margin: 14px 0 0; }
.field:first-of-type { margin-top: 0; }
.field-tight { margin-top: 16px; }
.field > label,
.field-head label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 7px;
}
.field-head label { margin-bottom: 0; }
.field-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hint {
  font-size: 11.5px;
  color: var(--ink-faint);
  min-height: 15px;
  margin-top: 6px;
  line-height: 1.4;
}

/* PLZ-Eingabe */
.zip-row { display: flex; gap: 8px; }
#zipInput {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 11px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: none;
}
#zipInput::placeholder { color: var(--ink-faint); }
#zipInput:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,104,196,.15); }
/* Fehlerzustand: eine falsche PLZ war vorher nur an einem blassen Text unter
   dem Feld zu erkennen und wurde regelmaessig uebersehen. */
#zipInput.is-error { border-color: #b91c1c; background: #fef4f4; }
#zipInput.is-error:focus { box-shadow: 0 0 0 3px rgba(185,28,28,.15); }
/* Länder-Umschalter vor der PLZ-Eingabe (DE/AT/CH/IT) */
.zip-country {
  flex: none; height: 42px; padding: 0 6px; font-size: 18px; line-height: 1;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); cursor: pointer;
  -webkit-appearance: none; appearance: none; text-align: center;
}
.zip-country:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,104,196,.15); }
.ref-line { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.ref-line span { font-weight: 600; color: var(--ink); }
.ref-line.is-error, .ref-line.is-error span { color: #b91c1c; }

/* Buttons */
.btn {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .12s, border-color .12s, transform .05s;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  height: 42px;
  padding: 0 18px;
  color: #fff;
  background: var(--blue);
}
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 38px;
  margin-top: 8px;
  color: var(--blue);
  background: transparent;
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--sky); border-color: var(--blue); }
.btn-ghost svg { flex: none; }

/* Select */
#countrySelect {
  width: 100%;
  height: 40px;
  padding: 0 34px 0 12px;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2351637A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}
#countrySelect:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,104,196,.15); }

/* Slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 5px; border-radius: 3px;
  background: var(--line-strong);
}
input[type="range"]::-moz-range-track {
  height: 5px; border-radius: 3px; background: var(--line-strong);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px; margin-top: -6.5px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 1px 3px rgba(18,36,59,.28);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue); border: 3px solid #fff;
  box-shadow: 0 1px 3px rgba(18,36,59,.28);
}
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(22,104,196,.28); }
input[type="range"]:disabled { cursor: not-allowed; }
input[type="range"]:disabled::-webkit-slider-thumb { background: var(--ink-faint); }
input[type="range"]:disabled::-moz-range-thumb { background: var(--ink-faint); }

/* Sterne (Après-Ski) */
.stars { display: flex; gap: 3px; }
.star {
  font-size: 22px; line-height: 1;
  color: var(--line-strong);
  background: none; border: none; padding: 0 2px;
  cursor: pointer; transition: color .1s;
}
.star:hover { color: #f2c069; }
.star.on { color: var(--sun); }
.star:focus-visible { outline: 2px solid var(--blue); border-radius: 4px; }

/* ---------- Ergebnisse ---------- */
.results { padding-bottom: 10px; }
.results-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}
.results-head .count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--snow);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1px 9px;
  font-variant-numeric: tabular-nums;
}
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-hit { background: var(--green); }
.dot-miss { background: var(--gray-miss); }

/* Sortierleiste der Trefferliste */
.sort-row { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.sort-label { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.sort-select { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 13px; padding: 5px 8px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; }
.sort-select:focus { outline: none; border-color: var(--blue); }
.sort-dir { flex: none; width: 32px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--blue);
  font-size: 12px; line-height: 1; cursor: pointer; }
.sort-dir:hover { border-color: var(--blue); background: var(--sky); }

.results-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.result-item {
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .12s, background-color .12s;
}
.result-item:hover { border-color: var(--blue); background: var(--sky); }
.result-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.result-row { display: flex; align-items: center; gap: 8px; }
.result-row .result-title { flex: 1 1 auto; min-width: 0; }

/* Runde Zeichen-Knoepfe (Herz, Vollbild) in Trefferliste und Info-Karte.
   Bewusst gleich gross, damit sie als Paar sauber nebeneinander sitzen. */
.icon-btn {
  flex: none; box-sizing: border-box;
  width: 30px; height: 30px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 9px;
  background: none; cursor: pointer; text-decoration: none;
  color: var(--ink-faint);
  transition: color .12s, background-color .12s, border-color .12s, transform .08s;
}
.icon-btn:hover { color: var(--blue-deep); background: var(--sky); border-color: var(--line-strong); }
.icon-btn:active { transform: scale(.9); }
.icon-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.icon-btn svg { width: 17px; height: 17px; display: block; }

/* Merkliste / Favoriten */
.dot-fav { background: var(--fav); }
.fav-btn {
  flex: none; border: none; background: none; cursor: pointer;
  font-size: 20px; line-height: 1; padding: 2px 4px; border-radius: 9px;
  color: var(--line-strong); transition: color .12s, background-color .12s, border-color .12s, transform .08s;
}
.fav-btn:hover { color: var(--fav); }
.fav-btn:active { transform: scale(.88); }
.fav-btn.is-fav { color: var(--fav); }
.fav-btn.icon-btn { font-size: 19px; }
.fav-btn.icon-btn:hover { color: var(--fav); background: var(--fav-soft); border-color: var(--fav-line); }
.fav-btn.icon-btn.is-fav { color: var(--fav); }
.fav-btn-sm { font-size: 16px; }
.favs-empty { font-size: 12px; color: var(--ink-faint); line-height: 1.45; padding: 2px 2px 4px; }
.ski-card-head { display: flex; align-items: flex-start; gap: 2px; }
.ski-card-head .ski-card-title { flex: 1 1 auto; min-width: 0; margin-right: 6px; }
/* Vollbild + Herz sitzen oben rechts in der Kachel, buendig zur Titelzeile. */
.ski-card-head .icon-btn { margin-top: -4px; }
.ski-card-head .fav-btn:not(.icon-btn) { margin: -2px -2px 0 0; }
/* Untereinander, nicht nebeneinander: sonst rutschen kurze Zeilen (z.B. nur
   Preis) neben die Faktenzeile und der Preis landet rechts statt unten links. */
.result-meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  margin-top: 5px;
  font-size: 12px;
  color: var(--ink-soft);
}
.result-meta .rm-stars { color: var(--sun); letter-spacing: 1px; }
.result-meta .rm-time {
  margin-left: auto;
  font-weight: 600;
  color: var(--blue-deep);
  background: var(--sky);
  border-radius: 6px;
  padding: 1px 7px;
  font-variant-numeric: tabular-nums;
}
.result-meta .rm-snow {
  font-weight: 600;
  color: var(--blue-deep);
  background: #E8F4FF;
  border-radius: 6px;
  padding: 1px 7px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.result-meta .rm-price {
  font-weight: 700;
  color: #256d3a;
  background: #E9F7EE;
  border-radius: 6px;
  padding: 1px 7px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.result-meta .rm-huette {
  font-weight: 600;
  color: var(--blue-deep);
  background: var(--sky);
  border-radius: 6px;
  padding: 1px 7px;
  white-space: nowrap;
}
.result-meta .rm-reason { color: var(--ink-faint); }
.no-results {
  padding: 14px 12px;
  color: var(--ink-faint);
  font-size: 13px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
/* Wege aus der leeren Trefferliste: welcher Filter blockiert wie viele
   Gebiete, und ein Klick, der genau den lockert. */
.no-hits-tipps { margin-top: 10px; text-align: left; }
.no-hits-tipps p {
  margin: 0 0 7px;
  font-size: 12px;
  color: var(--ink-soft);
}
.lockern-btn {
  display: block;
  width: 100%;
  margin-bottom: 6px;
  padding: 8px 10px;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  color: var(--blue);
  background: var(--sky);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.lockern-btn:hover { border-color: var(--blue); }
.lockern-btn:last-child { margin-bottom: 0; }

/* Ausgefiltert-Aufklapper */
.miss-wrap { margin-top: 14px; }
.miss-wrap > summary { list-style: none; cursor: pointer; }
.miss-wrap > summary::-webkit-details-marker { display: none; }
.miss-wrap > summary::before {
  content: "";
  width: 6px; height: 6px; flex: none;
  border-right: 1.6px solid var(--ink-soft);
  border-bottom: 1.6px solid var(--ink-soft);
  transform: rotate(-45deg);
  transition: transform .15s;
  margin-right: 1px;
}
.miss-wrap[open] > summary::before { transform: rotate(45deg); }

/* ---------- Karte ---------- */
.map-wrap { position: relative; }
#map { height: 100%; width: 100%; background: var(--sky); }
/* Ecke unten links: Legende + separate Credit-Box, gestapelt. */
.map-corner {
  position: absolute;
  bottom: 16px; left: 16px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.legend {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(2px);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(18,36,59,.12);
  font-size: 12.5px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* Attribution als eigene, flache Box (einzeilig), damit die Legende klein bleibt. */
.map-credit {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(2px);
  padding: 5px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 3px 12px rgba(18,36,59,.1);
  font-size: 10.5px; line-height: 1.2; color: var(--ink-faint);
  white-space: nowrap;
}
.map-credit a { color: var(--ink-soft); }
.legend > div { display: flex; align-items: center; }
.swatch {
  display: inline-block;
  width: 13px; height: 13px;
  margin-right: 8px;
  border-radius: 3px;
  border: 1px solid transparent;
}
.swatch-hit { background: rgba(22,163,74,.4); border-color: #0f6c33; }
.swatch-miss { background: rgba(156,168,184,.4); border-color: var(--gray-miss); }
.swatch-iso { background: rgba(109,90,224,.25); border-color: var(--iso); }
/* Gemerktes Gebiet in Korall (entspricht areaStyle in map.js). */
.swatch-fav { background: rgba(242,100,60,.28); border-color: var(--fav-deep); }
/* Bernsteinfarbene laufbare Dorf-/Ortsflaeche (entspricht TAL_FILL in map.js).
   Bewusst nicht orange, sonst kaum vom gemerkten Gebiet zu unterscheiden. */
.swatch-walk { background: rgba(234,179,8,.3); border-color: #A16207; }
/* Auf Satellit faerbt map.js die Skigebiete hellblau statt gruen. */
.karte-satellit .swatch-hit { background: rgba(56,189,248,.38); border-color: #bae6fd; }
/* Bus-Piktogram in der Legende: gleiche Groesse wie ein Swatch, mittig. */
.lg-bus { display: inline-flex; width: 15px; height: 15px; margin-right: 8px; align-items: center; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {

  /* Unter 1024px kein 3-Spalten-Platz: Karte und Panel (Filter links + Treffer
     rechts, gestapelt) teilen sich den Platz, umgeschaltet per Tab. Standard:
     Panel sichtbar, Karte versteckt. body.m-map dreht es um. */
  .mtabs { display: flex; }
  .layout { display: block; height: auto; }

  .sidebar { border: none; height: auto; overflow: visible; }
  .map-wrap {
    display: none;
    height: calc(100vh - var(--header-h) - var(--mtabs-h));
    height: calc(100dvh - var(--header-h) - var(--mtabs-h));
  }
  /* #sidebar wird oben per ID auf display:flex gesetzt (Filter ans untere Ende).
     Eine ID schlaegt jede Klasse, deshalb muss die ID hier mitgenannt werden,
     sonst bleibt die linke Spalte im Karten-Tab stehen und schiebt die Karte
     aus dem Bild. */
  body.m-map .sidebar,
  body.m-map #sidebar { display: none; }
  body.m-map .map-wrap { display: block; }

  /* Groessere Touch-Ziele */
  .flag-btn { padding: 9px 13px; font-size: 14px; }
  .star { font-size: 26px; padding: 0 5px; }
  .sort-select { height: 40px; }
  .sort-dir { width: 40px; height: 40px; }
  .result-item { padding: 12px; }
  .fav-btn { font-size: 20px; padding: 6px 8px; }
  .btn { min-height: 44px; }
  .map-corner { bottom: 12px; left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Info-Karte (Klick auf Skigebiet) ---------- */
.ski-card { font-family: var(--font); min-width: 186px; max-width: 268px; padding: 2px 2px 4px; }
.ski-card-title { font-family: var(--font-brand); font-weight: 700; font-size: 15px; color: var(--ink); line-height: 1.25; }
.ski-card-region { font-size: 12px; color: var(--ink-faint); margin-top: 1px; }
.ski-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ski-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--ink-soft);
  background: var(--snow); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.ski-chip b { color: var(--ink); font-weight: 700; }
.ski-stars { color: var(--sun); letter-spacing: 1px; }
.ski-price { color: #256d3a; background: #E9F7EE; border-color: #C6EAD2; font-weight: 700; }
.ski-huette { display: flex; align-items: center; gap: 6px; margin-top: 8px;
  padding: 6px 10px; border-radius: 8px; background: var(--sky); border: 1px solid #CDE6FB;
  font-size: 13px; color: var(--blue-deep); }
.ski-huette b { font-weight: 800; }
.ski-huette a { color: var(--blue); font-weight: 700; text-decoration: none; }
.ski-huette a:hover { text-decoration: underline; }
/* Lift-Name klein ueber der Liftlinie, mit weissem Halo fuer Lesbarkeit */
.lift-label,
.station-label,
.bus-label { text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 3px #fff; }


/* Einwilligungs-Overlay ueber der Karte (Google Maps erst nach Klick). */
.map-consent { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: linear-gradient(180deg, #F4F9FF 0%, var(--sky) 100%); overflow: hidden; }
/* Vorschaukarte hinter dem Dialog: zeigt vorab, was einen erwartet. Leicht
   abgeblendet, damit der Dialog lesbar bleibt. */
.consent-vorschau {
  position: absolute; inset: 0; width: 100%; height: 100%;
  /* Fuellt die Flaeche. Die Leinwand ist fast quadratisch, deshalb bleibt der
     Alpenbogen auch dann im Bild, wenn breit oder hoch zugeschnitten wird. */
  object-fit: cover; object-position: center;
}
/* WICHTIG: display:flex ueberschreibt sonst das [hidden]-Attribut, dann liesse
   sich das Overlay per hidden=true nicht ausblenden. Diese Regel stellt das her. */
.map-consent[hidden] { display: none; }
.consent-card { max-width: 420px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; padding: 22px 22px 20px; box-shadow: 0 10px 30px rgba(18,36,59,.14); text-align: center; }
.consent-card h2 { margin: 0 0 8px; font-family: var(--font-brand); font-size: 18px; color: var(--ink); }
.consent-card p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.consent-card { position: relative; }
.consent-lead { font-size: 15px !important; color: var(--ink) !important; }
/* Der rechtlich noetige Hinweis gehoert dazu, aber nicht als Schlagzeile. */
.consent-klein { margin: 14px 0 0 !important; font-size: 11.5px !important; line-height: 1.45 !important; color: var(--ink-faint) !important; }
.consent-card a { color: var(--blue); }
.consent-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.consent-remember { font-size: 12.5px; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

/* Footer mit Rechtslinks + Quellen. */
.site-footer { padding: 22px 20px 30px; border-top: 1px solid var(--line); background: var(--snow); text-align: center; }
.footer-links { display: flex; gap: 18px; justify-content: center; margin-bottom: 10px; }
.footer-links a { color: var(--blue); font-weight: 600; font-size: 14px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-credit { margin: 4px 0; font-size: 12px; color: var(--ink-faint); }
.footer-credit a { color: var(--ink-soft); }

/* Rechtsseiten (Impressum/Datenschutz). */
.legal-page { max-width: 780px; margin: 0 auto; padding: 30px 20px 60px; color: var(--ink); }
.legal-page h1 { font-family: var(--font-brand); font-size: 28px; margin: 0 0 6px; }
.legal-page h2 { font-family: var(--font-brand); font-size: 18px; margin: 28px 0 8px; }
.legal-page p, .legal-page li { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.legal-page a { color: var(--blue); }
.legal-page .todo { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; padding: 2px 6px; border-radius: 5px; font-size: 13px; }
.legal-back { display: inline-block; margin-bottom: 18px; font-size: 14px; color: var(--blue); text-decoration: none; }
.legal-updated { margin-top: 30px; font-size: 12.5px; color: var(--ink-faint); }
.ski-snow { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 8px;
  padding: 6px 9px; border-radius: 8px; background: #E8F4FF; border: 1px solid #CDE6FB;
  font-size: 13px; color: var(--blue-deep); }
.ski-snow-flake { font-size: 14px; }
.ski-snow-vals { font-weight: 600; }
.ski-snow-vals b { font-weight: 800; }
.ski-snow-sub { flex-basis: 100%; font-size: 11px; font-weight: 500; color: var(--ink-soft); }
.ski-time { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--blue-deep); }
.ski-card-link { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600;
  color: var(--blue); text-decoration: none; }
.ski-card-link:hover { text-decoration: underline; }
/* Googles Default-InfoWindow etwas entschlacken */
.gm-style .gm-style-iw-c { padding: 10px 12px !important; border-radius: 12px !important;
  box-shadow: 0 6px 24px rgba(18,36,59,.16) !important; }
.gm-style .gm-style-iw-d { overflow: hidden !important; }

/* ---------- Namens-Label an Skigebiets-Markern ---------- */
.ski-label {
  font-family: var(--font-brand), var(--font);
  white-space: nowrap;
  letter-spacing: .1px;
  /* weisser Halo, damit der Name auf der hellen Karte lesbar bleibt */
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 1px 2px rgba(255,255,255,.95);
  paint-order: stroke fill;
}

/* ---------- Fahrzeit-Slider mit +/- Buttons ---------- */
.slider-row { display: flex; align-items: center; gap: 8px; }
.slider-row input[type="range"] { flex: 1 1 auto; min-width: 0; }
.step-btn {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-size: 19px; line-height: 1; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .12s, color .12s;
}
.step-btn:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.step-btn:active:not(:disabled) { background: var(--snow); }
.step-btn:disabled { opacity: .4; cursor: default; }

/* ---------- Länder-Flaggen-Umschalter ---------- */
.country-toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.flag-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  transition: border-color .12s, background .12s, color .12s;
}
.flag-btn .flag { font-size: 15px; line-height: 1; transition: filter .12s, opacity .12s; }
.flag-btn[aria-pressed="true"] { border-color: var(--blue); background: var(--sky); color: var(--blue-deep); }
.flag-btn[aria-pressed="false"] { color: var(--ink-faint); background: var(--snow); }
.flag-btn[aria-pressed="false"] .flag { filter: grayscale(1); opacity: .5; }
.flag-btn:hover { border-color: var(--blue); }

/* Hüttendorf-Umschalter (an/aus wie eine Flagge) */
.huette-toggle-row { display: flex; }
.toggle-btn {
  display: inline-flex; align-items: center; gap: 6px; width: 100%;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  padding: 8px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--snow); color: var(--ink-faint);
  transition: border-color .12s, background .12s, color .12s;
}
.toggle-btn[aria-pressed="true"] { border-color: var(--blue); background: var(--sky); color: var(--blue-deep); }
.toggle-btn:hover { border-color: var(--blue); }

/* Ausgefilterte Gebiete: kleiner grauer Name (Farbe kommt inline), dezenterer Halo */
.ski-label-miss { text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 2px #fff; }

/* Kurz-Charakterisierung in der Info-Karte */
.ski-card-desc { font-size: 12px; color: var(--ink-soft); line-height: 1.35; margin-top: 4px; }

/* ---------- Lade-Overlay ---------- */
.map-loader {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  background: var(--snow);
  transition: opacity .45s ease;
}
.map-loader.hidden { opacity: 0; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-mark { width: 84px; height: 84px; }
.loader-inner p { margin-top: 10px; font-family: var(--font-brand), var(--font);
  font-weight: 600; color: var(--ink-soft); font-size: 14px; }
.loader-mark .lr { fill: none; stroke: var(--blue); stroke-width: 2; opacity: 0;
  animation: loaderPulse 1.9s ease-out infinite; }
.loader-mark .lr2 { animation-delay: .63s; }
.loader-mark .lr3 { animation-delay: 1.26s; }
@keyframes loaderPulse { 0% { r: 8px; opacity: .5; } 100% { r: 33px; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .loader-mark .lr { animation: none; opacity: .3; } }

/* ---------- Inline-Tutorial (Coach, schwebt über der Karte, zeigt aufs Element) ---------- */
.coach {
  position: fixed; top: 66px; left: 16px; z-index: 30; width: 300px; max-width: calc(100vw - 16px);
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--blue);
  border-radius: 10px; padding: 12px 14px;
  box-shadow: 0 8px 28px rgba(18, 36, 59, .18);
  animation: coachIn .25s ease;
}
/* Pfeil nach links, zeigt auf das hervorgehobene Bedienelement (Box rechts daneben) */
.coach::before {
  content: ''; position: absolute; left: -10px; top: var(--arrow-y, 22px);
  transform: translateY(-50%);
  border: 10px solid transparent; border-right-color: var(--surface);
  filter: drop-shadow(-2px 0 1px rgba(18, 36, 59, .06));
}
/* Box unter dem Element (schmale Screens): Pfeil weg, sonst zeigt er ins Leere */
.coach[data-side="top"]::before { display: none; }
/* Hervorhebung des betroffenen Elements in der Sidebar */
.tour-highlight { position: relative; z-index: 3; border-radius: 10px;
  outline: 2px solid var(--blue); outline-offset: 3px; animation: tourPulse 1.6s ease-in-out infinite; }
@keyframes tourPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22, 102, 196, .12); }
  50% { box-shadow: 0 0 0 7px rgba(22, 102, 196, .22); }
}
@media (prefers-reduced-motion: reduce) { .tour-highlight { animation: none; } }
.coach[hidden] { display: none; }
@keyframes coachIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.coach-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.coach-step { font-size: 11px; font-weight: 700; color: var(--blue-deep); letter-spacing: .4px; text-transform: uppercase; }
.coach-skip { border: 0; background: none; color: var(--ink-faint); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0; }
.coach-skip:hover { color: var(--ink-soft); }
.coach-text { margin: 0 0 10px; font-size: 13px; line-height: 1.42; color: var(--ink); }
.coach-next { width: 100%; padding: 7px 12px; font-size: 14px; }

/* ---------- Hilfe-Button (in der Kopfzeile, rechts) ---------- */
.help-btn {
  margin-left: auto; flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--blue);
  font-size: 18px; font-weight: 700; cursor: pointer; line-height: 1;
}
.help-btn:hover { border-color: var(--blue); background: var(--sky); }

/* ---------- Info-/SEO-Bereich unter der Karte ---------- */
html { scroll-behavior: smooth; }

/* Info-Knopf auf der Karte: rundes "i" am rechten Rand, fuehrt zum Textbereich. */
.info-fab {
  /* Links neben dem Google-Bedienknopf unten rechts (der sitzt auf right:10px,
     bottom:24px und ist 40px breit), damit sich beide nicht ueberlappen. */
  position: absolute; right: 60px; bottom: 24px;
  display: inline-flex; align-items: center; justify-content: center; z-index: 5;
  width: 40px; height: 40px;
  background: var(--surface); color: var(--blue-deep);
  border: 1px solid var(--line-strong); border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 700; font-style: italic; line-height: 1;
  text-decoration: none; box-shadow: 0 3px 12px rgba(18,36,59,.16);
  transition: border-color .12s, background .12s, transform .12s;
}
.info-fab:hover { border-color: var(--blue); background: var(--sky); transform: translateY(-1px) scale(1.06); }

.about { background: var(--snow); border-top: 1px solid var(--line); padding: 40px 20px 64px; }
.about-inner { max-width: 760px; margin: 0 auto; color: var(--ink); }
.about-back {
  display: inline-block; margin-bottom: 18px; font-size: 13px; font-weight: 600;
  color: var(--blue); text-decoration: none;
}
.about-back:hover { text-decoration: underline; }
.about h1 { font-size: 30px; line-height: 1.2; margin: 0 0 12px; color: var(--ink); }
.about h2 { font-size: 20px; line-height: 1.25; margin: 30px 0 10px; color: var(--ink); }
.about h3 { font-size: 15px; font-weight: 700; line-height: 1.3; margin: 0 0 4px; color: var(--ink); }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 10px; }
.about-cols > div { min-width: 0; }
.about-note { margin-top: 22px; font-size: 12.5px; color: var(--ink-faint); }
/* Gründer-Abschnitt: Foto neben Text */
.founder { display: flex; gap: 20px; align-items: flex-start; margin-top: 8px; }
.founder-photo {
  flex: none; width: 210px; height: 280px; object-fit: cover; border-radius: 14px;
  box-shadow: 0 4px 16px rgba(18,36,59,.16); background: var(--sky);
}
.founder-text p { margin: 0 0 10px; }
.founder-by { margin: 0 !important; font-weight: 600; color: var(--ink); }
@media (max-width: 640px) {
  .founder { flex-direction: column; align-items: center; }
  .founder-photo { width: 100%; max-width: 300px; height: 320px; }
}
@media (max-width: 640px) { .about-cols { grid-template-columns: 1fr; } .about h1 { font-size: 26px; } }
.about-lead { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.about p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.about-steps, .about-benefits { margin: 8px 0; padding-left: 22px; }
.about-steps li, .about-benefits li { font-size: 15px; line-height: 1.55; margin: 7px 0; color: var(--ink-soft); }
.about-steps b, .about-benefits b, .about-faq b { color: var(--ink); }
.about-faq { margin: 8px 0 0; }
.about-faq dt { font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 16px; }
.about-faq dd { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.about-cta { margin-top: 30px; text-decoration: none; }

/* Ein display in der Autoren-CSS schlaegt sonst das [hidden]-Attribut, dann
   liessen sich Flex-/Grid-Bausteine nicht per hidden=true ausblenden. */
[hidden] { display: none !important; }

/* ---------- Menueleiste im Kopf ---------- */
/* Segment-Band: ein gemeinsamer Rahmen, darin die beiden Pillen. Die aktive
   Seite steht weiss auf dem hellen Band, damit klar ist, wo man gerade ist. */
.main-nav {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px; border-radius: 999px;
  background: var(--snow); border: 1px solid var(--line);
}
.app-header .help-btn { margin-left: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft); text-decoration: none;
  border: 1px solid transparent;
  transition: color .12s, background-color .12s, border-color .12s, box-shadow .12s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--blue-deep); background: rgba(255,255,255,.7); }
.nav-link.is-active {
  color: var(--ink); background: var(--surface); border-color: var(--line);
  box-shadow: 0 1px 2px rgba(18,36,59,.08);
}
.nav-ico { font-size: 14px; line-height: 1; }
.nav-heart { color: var(--fav); font-size: 15px; line-height: 1; }
.nav-count {
  min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 700;
}
.nav-count.is-zero { background: var(--line); color: var(--ink-faint); }
/* Weg von der Merkliste in der Karte zur Vergleichsseite. */
.favs-compare { font-size: 12.5px; font-weight: 700; color: var(--blue); text-decoration: none; white-space: nowrap; }
.favs-compare:hover { text-decoration: underline; }

/* ---------- Vergleichsseite (favoriten.html) ---------- */
.page-cmp { background: var(--snow); }
.cmp-page { max-width: 1440px; margin: 0 auto; padding: 22px 20px 50px; }
.cmp-head h1 {
  font-family: var(--font-brand); font-size: 28px; margin: 0 0 4px;
  display: flex; align-items: center; gap: 10px;
}
.cmp-count {
  font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--blue-deep);
  background: var(--sky); border-radius: 999px; padding: 3px 11px;
}
.cmp-lead { margin: 0 0 18px; font-size: 14.5px; color: var(--ink-soft); }

.cmp-controls {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 14px;
}
.cmp-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.cmp-start .zip-row { max-width: 340px; }
.cmp-zip-note { margin: 7px 0 0; font-size: 12.5px; color: var(--ink-faint); }
.cmp-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-sm { width: auto; height: 36px; padding: 0 14px; }
.cmp-view { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.cmp-view-btn {
  border: none; background: var(--surface); font-family: var(--font); font-size: 13.5px; font-weight: 600;
  color: var(--ink-soft); padding: 0 14px; height: 36px; cursor: pointer;
}
.cmp-view-btn + .cmp-view-btn { border-left: 1px solid var(--line-strong); }
.cmp-view-btn.is-active { background: var(--sky); color: var(--blue-deep); }

/* Gewichtung */
.cmp-weights {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; margin-bottom: 16px;
}
.cmp-weights > summary {
  cursor: pointer; list-style: none; user-select: none;
  font-size: 14px; font-weight: 700; color: var(--blue);
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.cmp-weights > summary::-webkit-details-marker { display: none; }
.cmp-weights > summary::before { content: "\25B8"; font-size: 11px; transition: transform .15s; }
.cmp-weights[open] > summary::before { transform: rotate(90deg); }
.cmp-weights-hint { font-weight: 500; font-size: 12.5px; color: var(--ink-faint); }
.cmp-weight-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 22px; margin: 14px 0 4px;
}
.cmp-weight { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.cmp-weight-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.cmp-weight-val { font-size: 12px; color: var(--ink-faint); text-align: right; }
.cmp-weight input[type=range] { grid-column: 1 / -1; width: 100%; }
.cmp-weights-note { margin: 10px 0 2px; font-size: 12px; line-height: 1.5; color: var(--ink-faint); }

/* Banner fuer geteilte Listen */
.cmp-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  background: var(--sky); border: 1px solid #CDE6FB; border-radius: 12px;
  padding: 11px 14px; margin-bottom: 16px; font-size: 14px; color: var(--blue-deep);
}
.cmp-banner-actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }

/* Tabelle */
.cmp-table-wrap {
  overflow-x: auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px;
}
table.cmp { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; }
.cmp th, .cmp td {
  text-align: left; vertical-align: middle; font-size: 14px; color: var(--ink);
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.cmp td, .cmp thead th:not(:first-child) { min-width: 200px; }
.cmp thead th { position: sticky; top: 0; z-index: 3; background: var(--surface); vertical-align: top;
  border-bottom: 1px solid var(--line-strong); }
.cmp tbody th, .cmp thead th:first-child {
  position: sticky; left: 0; z-index: 2; background: var(--surface);
  min-width: 210px; border-right: 1px solid var(--line);
}
.cmp thead th:first-child { z-index: 4; }
.cmp-corner { font-size: 12.5px; font-weight: 600; color: var(--ink-faint); }
.cmp tbody tr:hover th, .cmp tbody tr:hover td { background: #FAFCFF; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: none; }
.cmp-row-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cmp-row-hint { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; color: var(--ink-faint); }
.cmp-group th {
  background: var(--sky); color: var(--blue-deep);
  font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 7px 14px; border-bottom: 1px solid #CDE6FB;
}
.cmp-na { color: var(--ink-faint); font-size: 13px; }
.cmp-best {
  display: inline-block; font-weight: 700; color: #256d3a;
  background: #E9F7EE; border: 1px solid #C6EAD2; border-radius: 999px; padding: 2px 10px;
}
.cmp-stars { color: var(--sun); letter-spacing: 1px; }
.cmp-links { display: flex; flex-wrap: wrap; gap: 5px 10px; }
.cmp-links a { font-size: 12.5px; font-weight: 600; color: var(--blue); text-decoration: none; white-space: nowrap; }
.cmp-links a:hover { text-decoration: underline; }
.cmp a { color: var(--blue); }

/* Spaltenkopf */
.cmp-col-head { display: flex; flex-direction: column; gap: 7px; }
.cmp-col-title { font-family: var(--font-brand); font-size: 16px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.cmp-score {
  display: inline-flex; align-items: baseline; gap: 3px; flex-wrap: wrap;
  font-size: 19px; font-weight: 800; color: var(--ink-soft);
}
.cmp-score-max { font-size: 11px; font-weight: 600; color: var(--ink-faint); }
.cmp-score.is-winner { color: #256d3a; }
.cmp-winner {
  margin-left: 6px; padding: 2px 9px; border-radius: 999px;
  background: #E9F7EE; border: 1px solid #C6EAD2;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; color: #256d3a;
}
/* Mini-Karte im Spaltenkopf: lokal gezeichneter Umriss, keine Kartenkacheln. */
.cmp-mini {
  position: relative; display: block; width: 208px; max-width: 100%;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: linear-gradient(#F6FAFF, #E9F2FC);
  text-decoration: none;
}
.cmp-mini:hover { border-color: var(--blue); }
.cmp-mini svg { display: block; width: 100%; height: auto; }
.cmp-mini-scale {
  position: absolute; left: 6px; bottom: 5px;
  font-size: 10px; font-weight: 600; color: var(--ink-soft);
  background: rgba(255,255,255,.78); border-radius: 4px; padding: 0 4px;
}
.cmp-card .cmp-mini { width: 100%; }

.cmp-col-tools { display: flex; gap: 4px; }
.cmp-tool {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  color: var(--ink-soft); font-size: 12px; line-height: 1; cursor: pointer; text-decoration: none;
}
.cmp-tool:hover { border-color: var(--blue); color: var(--blue); background: var(--sky); }
.cmp-tool[disabled] { opacity: .35; cursor: default; }
.cmp-tool-remove:hover { border-color: var(--fav); color: var(--fav); background: var(--fav-soft); }

/* Kartenansicht */
.cmp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cmp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.cmp-card .cmp-col-head { margin-bottom: 10px; }
.cmp-card-group {
  margin: 12px 0 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--blue-deep);
}
.cmp-card-row { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.cmp-card-row:last-child { border-bottom: none; }
.cmp-card-label { font-size: 13px; color: var(--ink-soft); }
.cmp-card-val { font-size: 13.5px; font-weight: 600; text-align: right; }
.cmp-card-val a { color: var(--blue); }

/* Leerzustand, Fussnote, Toast */
.cmp-empty {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 28px 24px; text-align: center; color: var(--ink-soft); font-size: 14.5px;
}
.cmp-empty-title { font-family: var(--font-brand); font-size: 19px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.cmp-empty .btn { display: inline-flex; align-items: center; margin-top: 14px; text-decoration: none; }
.cmp-note { margin: 16px 2px 0; font-size: 12px; color: var(--ink-faint); }
.cmp-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40;
  background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 10px 16px; border-radius: 999px; box-shadow: 0 6px 20px rgba(18,36,59,.24);
}

@media (max-width: 640px) {
  /* Im Handy-Kopf ist kein Platz fuer alles: die Marke fuehrt ohnehin zur
     Karte, also bleibt in der Nav nur der Favoriten-Punkt stehen. */
  .app-header { gap: 10px; padding: 0 14px; }
  .brand-word { font-size: 19px; }
  /* Im Handy-Kopf ist fuer den Slogan kein Platz. */
  .brand-slogan { display: none; }
  .main-nav .nav-link:not(.nav-favs) { display: none; }
  .help-btn { width: 32px; height: 32px; font-size: 16px; }
}

@media (max-width: 1023px) {
  .nav-favs-text { display: none; }
  .nav-link { padding: 8px 10px; }
  .cmp-page { padding: 16px 14px 40px; }
  .cmp-head h1 { font-size: 23px; }
  .cmp-controls { flex-direction: column; align-items: stretch; }
  .cmp-start .zip-row { max-width: none; }
}

/* Druck: nur der Vergleich, ohne Bedienelemente. */
@media print {
  .app-header, .site-footer, .cmp-controls, .cmp-weights, .cmp-banner,
  .cmp-col-tools, .cmp-toast, .cmp-links { display: none !important; }
  .page-cmp { background: #fff; }
  .cmp-page { max-width: none; padding: 0; }
  .cmp-table-wrap { overflow: visible; border: none; border-radius: 0; }
  .cmp, .cmp-cards { width: 100%; }
  .cmp th, .cmp td { min-width: 0; font-size: 11px; padding: 5px 7px; }
  .cmp thead th, .cmp tbody th { position: static; }
  .cmp-card { break-inside: avoid; }
}

/* ---------- Gebietsseite (Einzelansicht der Favoriten) ---------- */
.cmp-modes { display: inline-flex; margin-bottom: 14px; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--surface); }
.cmp-mode-btn {
  border: none; background: none; font-family: var(--font); font-size: 14px; font-weight: 700;
  color: var(--ink-soft); padding: 0 20px; height: 40px; cursor: pointer;
}
.cmp-mode-btn + .cmp-mode-btn { border-left: 1px solid var(--line-strong); }
.cmp-mode-btn.is-active { background: var(--blue); color: #fff; }

.ga-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
}
.ga-title { font-family: var(--font-brand); font-size: 24px; margin: 0; line-height: 1.15; }
.ga-sub { font-size: 13px; color: var(--ink-faint); margin-top: 2px; }
.ga-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ga-nav { margin-left: auto; text-align: right; }
.ga-nav-label { font-size: 12px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.ga-nav-pos { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-faint); }
.ga-nav-row { display: flex; gap: 6px; margin-top: 7px; justify-content: flex-end; }
.ga-nav-btn {
  height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); font-family: var(--font); font-size: 13.5px; font-weight: 700;
  color: var(--blue); cursor: pointer;
}
.ga-nav-btn:hover:not([disabled]) { background: var(--sky); border-color: var(--blue); }
.ga-nav-btn[disabled] { opacity: .4; cursor: default; }
.ga-select {
  height: 38px; max-width: 220px; padding: 0 10px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); background: var(--surface); font-family: var(--font); font-size: 14px; color: var(--ink);
}
.ga-nav-links { margin-top: 8px; display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }
.ga-nav-links a { font-size: 12.5px; font-weight: 600; color: var(--blue); text-decoration: none; }
.ga-nav-links a:hover { text-decoration: underline; }

.ga-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr) 290px; gap: 14px; margin-top: 14px; }
.ga-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.ga-grid .ga-panel { max-height: 580px; overflow: auto; }
.ga-panel-hotels { margin-top: 14px; }
.ga-panel-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 8px; }
.ga-panel-head h3 { font-family: var(--font-brand); font-size: 16px; margin: 0; }
.ga-count { font-size: 12px; font-weight: 700; color: var(--ink-soft); background: var(--snow); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.ga-book { margin-left: auto; text-decoration: none; }

.ga-map-box { position: relative; min-height: 580px; background: var(--sky); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ga-map { position: absolute; inset: 0; }
.ga-consent { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ga-legende {
  position: absolute; left: 10px; bottom: 10px; z-index: 3; display: flex; gap: 5px; flex-wrap: wrap;
  background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 999px; padding: 4px 5px;
}
.ga-leg {
  display: inline-flex; align-items: center; gap: 6px; border: none; background: none; cursor: pointer;
  font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--ink-soft);
  padding: 3px 9px; border-radius: 999px;
}
.ga-leg[aria-pressed="true"] { background: var(--snow); color: var(--ink); }
.ga-leg[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }

.ga-list { list-style: none; margin: 0; padding: 0; }
.ga-panel-hotels .ga-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 20px; }
.ga-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.ga-item:last-child { border-bottom: none; }
.ga-item-main { display: flex; align-items: flex-start; gap: 8px; border: none; background: none; padding: 0; cursor: pointer; text-align: left; font: inherit; min-width: 0; }
.ga-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: 5px; }
.ga-item-name { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ga-item-main:hover .ga-item-name { color: var(--blue); }
.ga-badge { display: inline-block; margin-top: 3px; font-size: 10.5px; font-weight: 700; color: #256d3a; background: #E9F7EE; border: 1px solid #C6EAD2; border-radius: 999px; padding: 0 7px; }
.ga-dist { display: block; font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; }
.ga-item-links { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.ga-item-links a { font-size: 11.5px; font-weight: 600; color: var(--blue); text-decoration: none; white-space: nowrap; }
.ga-item-links a:hover { text-decoration: underline; }
.ga-empty { font-size: 13.5px; color: var(--ink-soft); margin: 6px 0; }
.ga-empty a { color: var(--blue); font-weight: 600; }

@media (max-width: 1023px) {
  .ga-grid { grid-template-columns: 1fr; }
  .ga-map-box { min-height: 380px; }
  .ga-grid .ga-panel { max-height: 340px; }
  /* 30 Unterkuenfte am Stueck waeren am Handy eine endlose Wand. */
  .ga-panel-hotels { max-height: 420px; overflow: auto; }
  .ga-nav { margin-left: 0; text-align: left; width: 100%; }
  .ga-nav-row, .ga-nav-links { justify-content: flex-start; }
  .ga-select { flex: 1; max-width: none; }
}

@media print {
  .cmp-modes, .ga-nav-row, .ga-legende, .ga-book { display: none !important; }
  .ga-map-box { min-height: 0; height: 320px; }
  .ga-grid { grid-template-columns: 1fr 1fr; }
  .ga-grid .ga-panel { max-height: none; overflow: visible; }
}

/* ---------- Suche in der Kopfzeile ---------- */
.search { position: relative; flex: 0 1 300px; min-width: 0; }
.search-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--ink-faint); pointer-events: none;
}
.search-input {
  width: 100%; height: 38px; padding: 0 12px 0 34px;
  font-family: var(--font); font-size: 14px; color: var(--ink);
  background: var(--snow); border: 1px solid var(--line-strong); border-radius: 999px;
  outline: none; -webkit-appearance: none; appearance: none;
}
.search-input::placeholder { color: var(--ink-faint); }
.search-input:focus { background: var(--surface); border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,104,196,.15); }
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(18,36,59,.16);
  max-height: min(60vh, 420px); overflow: auto; padding: 5px;
}
.sr-item {
  display: block; width: 100%; text-align: left; border: none; background: none;
  font-family: var(--font); cursor: pointer; padding: 8px 10px; border-radius: 8px;
}
.sr-item:hover, .sr-item.is-active { background: var(--sky); }
.sr-name { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.sr-name mark { background: #FDF0C8; color: inherit; border-radius: 3px; padding: 0 1px; }
.sr-meta { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 1px; }
.sr-leer { margin: 0; padding: 10px; font-size: 13.5px; color: var(--ink-faint); }

/* Lupenknopf: nur auf schmalen Schirmen sichtbar (siehe Media Query unten). */
.search-toggle {
  display: none; flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--blue);
  cursor: pointer; align-items: center; justify-content: center; padding: 0;
}
.search-toggle svg { width: 17px; height: 17px; }
.search-toggle:hover { border-color: var(--blue); background: var(--sky); }

/* Hinweis-Wolke auch ausserhalb der Vergleichsseite nutzbar. */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40;
  background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 10px 16px; border-radius: 999px; box-shadow: 0 6px 20px rgba(18,36,59,.24); }

@media (max-width: 900px) {
  /* Kein Platz mehr in der Zeile: Suche klappt unter die Kopfzeile. */
  .search-toggle { display: inline-flex; }
  .search {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 25;
    padding: 8px 14px; background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 16px rgba(18,36,59,.08);
    display: none;
  }
  body.search-open .search { display: block; }
  .search-input { height: 42px; border-radius: var(--radius); }
  .search-results { left: 14px; right: 14px; }
}

/* ---------- Oeffentliche Gebietsseite (skigebiet/<slug>/) ---------- */
.page-gs { background: var(--snow); }
.gs { max-width: 940px; margin: 0 auto; padding: 22px 20px 60px; }
.gs-brot { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 14px; }
.gs-brot a { color: var(--blue); text-decoration: none; }
.gs-brot a:hover { text-decoration: underline; }
.gs h1 { font-family: var(--font-brand); font-size: 32px; line-height: 1.15; margin: 0 0 10px; }
.gs h2 { font-family: var(--font-brand); font-size: 22px; margin: 34px 0 10px; }
.gs h3 { font-family: var(--font-brand); font-size: 16px; margin: 18px 0 8px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gs p { font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); }
.gs .gs-lead { font-size: 17px; line-height: 1.6; }
.gs-lead b { color: var(--ink); }
.gs a { color: var(--blue); }

.gs-fakten {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px;
  margin: 20px 0 24px;
}
.gs-fakt {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; text-align: center;
}
.gs-fakt-wert { display: block; font-family: var(--font-brand); font-size: 19px; font-weight: 700; color: var(--ink); }
.gs-fakt-label { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 3px; }

.gs-karte { margin: 0 0 18px; }
.gs-umriss { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--sky); }
.gs-karte figcaption { font-size: 12.5px; color: var(--ink-faint); margin-top: 8px; line-height: 1.5; }
.gs-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 18px 0 6px; }
.gs-cta .btn { display: inline-flex; align-items: center; text-decoration: none; }
.gs-link { font-size: 14px; font-weight: 600; text-decoration: none; }
.gs-link:hover { text-decoration: underline; }

.gs-tabelle-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.gs-tabelle { width: 100%; border-collapse: collapse; }
.gs-tabelle th, .gs-tabelle td { text-align: left; padding: 9px 14px; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.gs-tabelle thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); }
.gs-tabelle tbody th { font-weight: 600; color: var(--ink); }
.gs-tabelle td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.gs-tabelle tbody tr:last-child th, .gs-tabelle tbody tr:last-child td { border-bottom: none; }
.gs-tabelle tbody tr:hover th, .gs-tabelle tbody tr:hover td { background: #FAFCFF; }

.gs-poi-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 26px; }
.gs-poi { list-style: none; margin: 0 0 14px; padding: 0; }
.gs-poi li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.gs-poi li:last-child { border-bottom: none; }
.gs-poi-name { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.gs-badge { display: inline-block; margin-top: 3px; font-size: 10.5px; font-weight: 700; color: #256d3a;
  background: #E9F7EE; border: 1px solid #C6EAD2; border-radius: 999px; padding: 0 7px; }
.gs-poi-dist { display: block; font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; }
.gs-poi-links { display: block; font-size: 12px; margin-top: 3px; }
.gs-poi-links a { font-weight: 600; text-decoration: none; }
.gs-poi-links a:hover { text-decoration: underline; }
.gs-mehr { font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--ink-faint); }
.gs-book { font-size: 13px; font-weight: 700; text-decoration: none; }
.gs-book:hover { text-decoration: underline; }

.gs-nah { list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2px 22px; }
.gs-nah li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.gs-nah a { font-size: 14.5px; font-weight: 600; text-decoration: none; }
.gs-nah a:hover { text-decoration: underline; }
.gs-nah-meta { display: block; font-size: 12px; color: var(--ink-faint); }

.gs-faq dt { font-size: 15.5px; font-weight: 700; color: var(--ink); margin-top: 16px; }
.gs-faq dd { margin: 4px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.gs-stand { margin-top: 30px; font-size: 12.5px; color: var(--ink-faint); }

@media (max-width: 640px) {
  .gs h1 { font-size: 25px; }
  .gs { padding: 16px 14px 40px; }
}

/* Zusatzinfos unter der Gebietsseite (Steckbrief, Fahrzeiten, Nachbarn, FAQ) */
.ga-mehr { margin-top: 14px; }
.ga-mehr h3 { font-family: var(--font-brand); font-size: 17px; margin: 22px 0 8px; }
.ga-mehr h3:first-child { margin-top: 4px; }
.ga-mehr .ga-lead { font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin: 0; }
.ga-mehr .ga-lead b { color: var(--ink); }
.ga-mehr .ga-hinweis { font-size: 12.5px; color: var(--ink-faint); margin: 0 0 8px; }
.ga-mehr .gs-tabelle-wrap { max-height: 320px; overflow: auto; }
.ga-mehr .gs-nah { margin-bottom: 4px; }
.ga-oeffentlich { margin: 18px 0 0; font-size: 13.5px; }
.ga-oeffentlich a { color: var(--blue); font-weight: 700; text-decoration: none; }
.ga-oeffentlich a:hover { text-decoration: underline; }

/* Herz direkt am Gebietstitel (Merkliste ein/aus auf der Gebietsseite) */
.ga-fav {
  border: none; background: none; cursor: pointer; padding: 0 0 0 10px;
  font-size: 20px; line-height: 1; color: var(--line-strong); vertical-align: middle;
}
.ga-fav:hover { color: #f19bb4; }
.ga-fav.is-fav { color: var(--fav); }

/* Quellenangaben auf der Gebietsseite */
.gs-quellen { list-style: none; margin: 8px 0 0; padding: 0; }
.gs-quellen li { font-size: 13.5px; color: var(--ink-soft); padding: 4px 0; }
.gs-quellen a { font-weight: 600; text-decoration: none; }
.gs-quellen a:hover { text-decoration: underline; }

/* Hinweis nach dem Widerruf auf der Datenschutzseite */
.widerruf-hinweis { display: inline-block; margin-left: 10px; font-size: 13px; font-weight: 600; color: #256d3a; }
.legal-page .btn { display: inline-flex; align-items: center; margin: 6px 0; }

/* Trefferliste: zwei feste Zeilen, damit alle Eintraege gleich aussehen */
.rm-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; }
.rm-leer { color: var(--ink-faint); }
/* Letzte Zeile: links Preis + Huettendorf, rechts Fahrzeit + Schnee. */
.rm-zeile-preis { justify-content: space-between; }
.rm-links, .rm-rechts { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; }
.rm-rechts { justify-content: flex-end; }
.rm-zeile-preis .rm-time { margin-left: 0; }

/* --- Knoepfe, die Links sind --------------------------------------------
   Mehrere Bereiche faerben ihre Links pauschal blau (.gs a, .legal-page a,
   .cmp a ...). Diese Regeln sind spezifischer als .btn-primary und haben
   dessen weisse Schrift ueberschrieben: der Knopf "Auf der Karte ansehen"
   stand blau auf blau und war damit unsichtbar. Deshalb hier am Ende der
   Datei die Knopf-Farben zurueckholen, das deckt auch kuenftige
   Bereichsregeln ab. */
a.btn-primary { color: #fff; }
a.btn-ghost { color: var(--blue); }
