/* Skipass-Radar
   Gestaltung: Schnee, Tinte und die drei Pistenfarben.
   Blau = günstig, Rot = mittel, Schwarz = teuer. Wie auf der Piste. */

/* ------------------------------------------------------------------ Grundlagen */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
:root {
  --paper: #F5F6F3;
  --paper-2: #E9ECE7;
  --card: #FFFFFF;
  --ink: #111820;
  --ink-2: #38414A;
  --muted: #5C646C;
  --line: #D9DDD7;
  --line-2: #868D87;

  --blue: #1E5BD7;
  --blue-soft: #DCE6FA;
  --red: #C8372A;
  --red-soft: #F6E0DC;
  --black: #121A21;
  --black-soft: #D9D7D1;
  --on-pill: #FFFFFF;
  --on-black: #F4F2EC;
  --neutral: #6A7178;

  --focus: #1E5BD7;
  --radius: 6px;
  --radius-lg: 10px;
  --gutter: 16px;
  --maxw: 1120px;
  --nav-h: 60px;

  --f-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F1418;
    --paper-2: #171D22;
    --card: #141A1F;
    --ink: #ECE8DF;
    --ink-2: #BDC0C1;
    --muted: #8D949A;
    --line: #262E35;
    --line-2: #66717A;

    --blue: #5B8CFF;
    --blue-soft: #18264A;
    --red: #FF6B5D;
    --red-soft: #3A1E1B;
    --black: #E9E5DB;
    --black-soft: #2B3238;
    --on-pill: #0F1418;
    --on-black: #0F1418;
    --neutral: #8E969C;
    --focus: #8DB0FF;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-sans); font-size: 16px; line-height: 1.5;
  font-stretch: 100%; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100vh; display: flex;
  flex-direction: column; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
/* #view bekommt nach jedem Seitenwechsel den Fokus (Screenreader), aber keinen Rahmen um die ganze Seite */
#view:focus, #view:focus-visible { outline: none; }
::selection { background: var(--blue); color: #fff; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius); text-decoration: none; }
.skip:focus { top: 12px; }
.noscript { padding: 24px; text-align: center; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ Typografie */

.display { font-stretch: 125%; letter-spacing: -0.012em; line-height: 1.08; margin: 0; overflow-wrap: anywhere; hyphens: manual; }
h1 { font-stretch: 125%; letter-spacing: -0.012em; line-height: 1.08; margin: 0; overflow-wrap: anywhere; hyphens: manual; font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.3rem); font-weight: 800; }
.h1--q { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); max-width: 20ch; }
h2 { font-stretch: 125%; letter-spacing: -0.012em; line-height: 1.08; margin: 0; overflow-wrap: anywhere; hyphens: manual; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); font-weight: 750; }
h3 { font-stretch: 125%; line-height: 1.08; margin: 0; overflow-wrap: anywhere; hyphens: manual; font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
.lede { font-size: clamp(1.02rem, .98rem + .3vw, 1.18rem); color: var(--ink-2); max-width: 46ch; }
.eyebrow { font-size: .74rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-stretch: 112%; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.num { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }
.price { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; font-stretch: 112%; font-weight: 750; white-space: nowrap; }
/* Namen mit Klammerzusatz: Zusatz als kleine Unterzeile */
.name-extra {
  display: block; margin-top: 2px; font-size: .84rem; font-weight: 450; font-stretch: 100%;
  letter-spacing: 0; line-height: 1.3; color: var(--muted);
}
.price small { font-size: .62em; font-weight: 600; letter-spacing: .02em; margin-right: .25em; color: var(--muted); }

/* ------------------------------------------------------------------ Kopf und Navigation */

.masthead { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.masthead__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__mark .m-card { fill: #121A21; }
.brand__mark .m-ridge { fill: none; stroke: #F4F2EC; stroke-width: 4.6; stroke-linecap: round; stroke-linejoin: round; }
.brand__mark .m-slot { fill: #F4F2EC; }
.brand__mark .m-dot { fill: #3B74F0; stroke: #121A21; stroke-width: 2.6; }
@media (prefers-color-scheme: dark) {
  .brand__mark .m-card { fill: #ECE8DF; }
  .brand__mark .m-ridge { stroke: #0F1418; }
  .brand__mark .m-slot { fill: #0F1418; }
  .brand__mark .m-dot { stroke: #ECE8DF; fill: #3B74F0; }
}
.brand__word { font-stretch: 125%; font-size: 1.12rem; font-weight: 400; letter-spacing: -.01em; }
.brand__word b { font-weight: 800; }
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--paper);
  border-top: 1px solid var(--line);
}
.nav a { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; font-stretch: 108%; min-height: 44px; }
.nav a::before { content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: transparent; transition: background .15s; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::before { background: var(--ink); }
.nav__count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 900px) {
  /* backdrop-filter erst hier: auf dem Handy würde es die fixierte Navigation an den Kopf binden */
  .masthead { background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
  .nav { position: static; display: flex; gap: 4px; height: auto; padding: 0; background: none; border: 0; }
  .nav a { padding: 8px 14px; border-radius: var(--radius); font-size: .95rem; }
  .nav a::before { top: auto; bottom: -11px; left: 14px; right: 14px; border-radius: 3px 3px 0 0; }
  .nav a:hover { color: var(--ink); }
}
@media (prefers-color-scheme: dark) {
  .nav__count { color: var(--on-pill); }
}

/* ------------------------------------------------------------------ Seitenrahmen */

main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 28px var(--gutter) 56px; outline: none; }
.page-head { display: grid; gap: 14px; margin-bottom: 28px; }
.page-head--split { gap: 18px; }
.page-head__text { display: grid; gap: 14px; }
.page-head + .empty { padding-top: 0; }
@media (min-width: 900px) {
  main { padding-top: 44px; }
  .page-head--split { grid-template-columns: 1.25fr 1fr; align-items: end; }
  .page-head__actions { justify-content: flex-end; }
}
.section { margin-top: 44px; }
.section-sm { margin-top: 18px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section__head > a { display: inline-flex; align-items: center; min-height: 44px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.back { gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; margin-bottom: 18px; min-height: 44px; display: inline-flex; align-items: center; }
.back:hover { color: var(--ink); }
.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.site-foot__inner { max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gutter) 28px; display: grid; gap: 10px; }
.site-foot__links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.site-foot__links a { color: var(--ink-2); display: inline-flex; align-items: center; min-height: 44px; }

/* ------------------------------------------------------------------ Bedienelemente */

.btn {
  -webkit-appearance: none; appearance: none; font: inherit; font-weight: 650; font-stretch: 105%; font-size: .96rem; line-height: 1.2;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 18px;
  border-radius: var(--radius); border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer;
  text-decoration: none; text-align: center; transition: transform .06s, background .15s, color .15s;
}
.btn:hover { text-decoration: none; background: color-mix(in srgb, var(--ink) 86%, var(--blue)); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--paper-2); border-color: var(--ink); }
.btn--blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--blue:hover { background: color-mix(in srgb, var(--blue) 85%, #000); }
.btn--danger { background: transparent; color: var(--red); border-color: var(--red); }
.btn--danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn--small { padding: 6px 12px; font-size: .88rem; min-height: 44px; }
.btn--block { width: 100%; }
@media (prefers-color-scheme: dark) {
  .btn--blue, .btn--danger:hover { color: var(--on-pill); }
  .btn--blue:disabled { color: var(--ink-2); }
}
.linkbtn {
  -webkit-appearance: none; appearance: none; background: none; border: 0; padding: 4px 0; font: inherit; color: var(--ink-2);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 550; min-height: 44px; display: inline-flex;
  align-items: center; min-width: 44px;
}
.linkbtn:hover { color: var(--ink); text-decoration-thickness: 2px; }
.linkbtn--danger { color: var(--red); }
@media (pointer: coarse) {
  .linkbtn { padding: 10px 0; }
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 16px; }
.grid2 > .field + .field { margin-top: 0; }
.label { font-weight: 650; font-size: .92rem; }
.hint { color: var(--muted); font-size: .86rem; }
.input {
  -webkit-appearance: none; appearance: none; font: inherit; font-size: 1rem; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line-2); border-radius: var(--radius); min-height: 46px; padding: 10px 12px; width: 100%;
}
.select {
  -webkit-appearance: none; appearance: none; font: inherit; font-size: 1rem; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line-2); border-radius: var(--radius); min-height: 46px; padding: 10px 12px; width: 100%; padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.select--small { padding: 6px 34px 6px 10px; font-size: .9rem; width: auto; min-height: 44px; }
.input:hover, .select:hover { border-color: var(--ink-2); }
.input:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 28%, transparent); }
.input--search { padding-left: 14px; }
input[type="date"].input { min-height: 46px; }

/* Eigene Zeichen */
.ic { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic .fill { fill: currentColor; }
.btn .ic { margin-left: 2px; }
.back .ic { width: 1.05em; height: 1.05em; }

/* Segmentierte Auswahl */
.seg { display: inline-flex; flex-wrap: wrap; border: 1.5px solid var(--line-2); border-radius: var(--radius); padding: 3px; gap: 3px; background: var(--card); }
.seg button {
  white-space: nowrap; -webkit-appearance: none; appearance: none; font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink-2);
  background: transparent; border: 0; border-radius: 4px; padding: 7px 12px; cursor: pointer; display: inline-flex; align-items: center;
  min-height: 44px; min-width: 44px;
}
.seg label {
  white-space: nowrap; -webkit-appearance: none; appearance: none; font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink-2);
  background: transparent; border: 0; border-radius: 4px; cursor: pointer; min-height: 36px; display: inline-flex; align-items: center;
  padding: 0;
}
.seg button:hover, .seg label:hover { color: var(--ink); background: var(--paper-2); }
.seg button[aria-pressed="true"], .seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg label span { padding: 7px 12px; border-radius: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
.seg__a { font-size: .9rem; font-weight: 600; color: var(--ink-2); text-decoration: none; border-radius: 4px; padding: 7px 12px; display: inline-flex; align-items: center; white-space: nowrap; min-height: 44px; min-width: 44px; }
.seg__a:hover { background: var(--paper-2); color: var(--ink); }
.seg__a[aria-current="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 520px) {
  .seg button, .seg label span { padding: 7px 8px; font-size: .84rem; }
  .controls > .seg, .controls > .actions, .controls .actions > .seg { display: flex; width: 100%; }
  .controls > .seg > *, .controls .actions > .seg > * { flex: 1 1 auto; justify-content: center; }
  .controls .actions > .seg { flex-wrap: nowrap; }
}
@media (max-width: 400px) {
  .controls .seg button, .controls .seg__a, .toolbar--top .seg button { padding-inline: 6px; font-size: .8rem; }
}

/* Schalter */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: .92rem; min-height: 44px; padding-block: 9px; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 1; cursor: inherit; }
.switch__track { width: 44px; height: 26px; border-radius: 13px; background: var(--line-2); position: relative; flex: none; transition: background .15s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--card); transition: transform .15s; }
.switch input:checked + .switch__track { background: var(--blue); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Ankreuzfelder als Karten */
.choice { display: grid; gap: 8px; }
.choice__item {
  position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); cursor: pointer;
}
.choice__item:hover { border-color: var(--line-2); }
.choice__item:has(input:checked) { border-color: var(--ink); }
.choice__item input {
  -webkit-appearance: none; appearance: none; margin: 1px 0 0; width: 22px; height: 22px; border: 1.5px solid var(--line-2);
  border-radius: 4px; background: var(--card); display: grid; place-content: center; cursor: pointer;
}
.choice__item input[type="radio"] { border-radius: 50%; }
.choice__item input:checked { background: var(--ink); border-color: var(--ink); }
.choice__item input[type="checkbox"]:checked::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid var(--paper); border-bottom: 2.5px solid var(--paper); transform: translateY(-2px) rotate(-45deg); }
.choice__item input[type="radio"]:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); }
.choice__item input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice__item input:disabled { opacity: .5; }
.choice__item:has(input:disabled) { cursor: not-allowed; color: var(--muted); }
.choice__title { font-weight: 650; display: block; }
.choice__text { color: var(--muted); font-size: .88rem; display: block; margin-top: 2px; }
.choice--cols { display: grid; gap: 8px; }
@media (min-width: 640px) {
  .choice--cols { grid-template-columns: 1fr 1fr; }
}

/* Wochentags-Knöpfe */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.days label { position: relative; }
.days input { position: absolute; opacity: 0; }
.days span {
  display: flex; align-items: center; justify-content: center; height: 44px; border-radius: var(--radius);
  border: 1.5px solid var(--line-2); font-weight: 650; cursor: pointer; background: var(--card); font-size: .92rem;
}
.days input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.days input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Zähler (Familie) */
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--radius); background: var(--card); }
.stepper button {
  -webkit-appearance: none; appearance: none; border: 0; background: none; font: inherit; font-size: 1.25rem; font-weight: 500;
  color: var(--ink); cursor: pointer; border-radius: 4px; width: 44px; height: 44px; min-width: 44px;
}
.stepper button:hover { background: var(--paper-2); }
.stepper button:disabled { color: var(--line-2); cursor: default; background: none; }
.stepper output { min-width: 30px; text-align: center; font-weight: 750; font-variant-numeric: tabular-nums; }

/* Ortssuche */
.place { position: relative; max-width: 420px; }
.place__list {
  position: absolute; z-index: 20; left: 0; right: 0; margin: 0; padding: 4px; list-style: none; background: var(--card);
  border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: auto; top: calc(100% + 4px); max-height: min(280px, 35vh);
}
.place__list li { padding: 10px 10px; border-radius: 4px; cursor: pointer; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.place__list li[aria-selected="true"], .place__list li:hover { background: var(--paper-2); }
.place__list .place__none { cursor: default; color: var(--muted); }
.place__search { position: relative; }
.place__list [role="option"] { min-height: 44px; }
.place [role="status"]:empty { display: none; }
summary { min-height: 44px; cursor: pointer; }

/* ------------------------------------------------------------------ Flächen */

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.panel + .panel { margin-top: 14px; }
.panel h2 { font-size: 1.12rem; }
.panel h2 + p { margin-top: 6px; }
.dateform { display: flex; gap: 8px; align-items: center; }
.dateform .input { width: auto; min-width: 150px; }
@media (min-width: 700px) {
  .panel { padding: 24px; }
}
.note { border-left: 3px solid var(--ink); padding: 4px 0 4px 14px; color: var(--ink-2); }
.note--blue { border-color: var(--blue); }
.note--red { border-color: var(--red); }
.notice { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; background: var(--paper-2); border-radius: var(--radius-lg); padding: 16px 18px; }
.notice p { max-width: 62ch; }
.actions + .note { margin-top: 24px; }

/* ------------------------------------------------------------------ Legende und Pisten-Täfelchen */

.tag {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 3px; padding: 1px 5px; margin-left: 6px; vertical-align: 2px; color: var(--muted);
}
.tag--warn { color: var(--red); border-color: var(--red); }
.tag--link { color: var(--ink); text-decoration: none; margin-left: 0; }
.tag--link:hover { background: var(--ink); color: var(--paper); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: .86rem; color: var(--ink-2); }
.legend__item { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; flex: none; }
.sw--lo { background: var(--blue); }
.sw--mid { background: var(--red); }
.sw--hi { background: var(--black); }
.sw--flat { background: var(--neutral); }
.sw--fav { height: 3px; border-radius: 0; background: var(--ink); align-self: flex-end; margin-bottom: 3px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; padding: 2px 6px;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; font-weight: 750; font-stretch: 108%; background: var(--neutral);
  color: #fff; line-height: 1.25; white-space: nowrap;
}
.pill--lo { background: var(--blue); color: var(--on-pill); }
.pill--mid { background: var(--red); color: var(--on-pill); }

/* Zusätzliches Merkmal ohne Farbe: teure Tage mit heller Oberkante */
.pill--hi { background: var(--black); color: var(--on-black); box-shadow: inset 0 2px 0 color-mix(in srgb, var(--on-black) 70%, transparent); }
.pill--flat { background: var(--neutral); color: #fff; }
@media (prefers-color-scheme: dark) {
  .pill--flat { color: var(--on-pill); }
}
@media (prefers-color-scheme: light) {
  .pill--lo, .pill--mid { color: #fff; }
}

/* ------------------------------------------------------------------ Startseite */

/* Einstieg: Text und Tagesfinder. Handy: untereinander, ab 960 px nebeneinander */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "finder" "more"; gap: 18px; align-items: start; }
.hero > * { min-width: 0; }
.hero__text { grid-area: text; display: grid; gap: 12px; align-content: start; }
.hero__text h1 { font-size: clamp(1.85rem, 1.2rem + 3vw, 3.3rem); }
.finder { grid-area: finder; }
.hero__more { grid-area: more; display: grid; gap: 18px; align-content: start; }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(400px, 460px); grid-template-areas: "text finder" "more finder"; grid-template-rows: auto 1fr; gap: 26px 56px; padding-top: 18px; }
  .hero__text { padding-top: 28px; }
}
.hero__search { display: grid; gap: 6px; max-width: 520px; }
.hero__searchrow { display: flex; gap: 8px; }
.hero__searchrow .input { flex: 1 1 auto; min-width: 0; }
.hero__searchrow .btn { flex: none; }
.hero__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); font-size: .95rem; max-width: 520px; }
.hero__points li { position: relative; padding-left: 26px; }
.hero__points li::before { content: ""; position: absolute; left: 3px; top: .28em; width: 11px; height: 6px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }

.finder { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 16px 16px; box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px color-mix(in srgb, var(--ink) 40%, transparent); min-height: 430px; }
@media (min-width: 700px) { .finder { padding: 22px 22px 20px; } }
.finder__h { font-size: 1.15rem; margin-bottom: 10px; }
.finder__days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.finder__days::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .finder__days { margin: 0; padding: 0 0 2px; flex-wrap: wrap; overflow: visible; } }
.finder__day {
  -webkit-appearance: none; appearance: none; font: inherit; flex: none; min-width: 58px; min-height: 52px; padding: 6px 8px;
  display: grid; justify-items: center; align-content: center; gap: 1px; cursor: pointer;
  border: 1.5px solid var(--line-2); border-radius: var(--radius); background: var(--card); color: var(--ink-2);
}
.finder__day span { font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.finder__day b { font-stretch: 118%; font-size: 1.02rem; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.finder__day:hover { border-color: var(--ink); }
.finder__day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.finder__day[aria-pressed="true"] * { color: var(--paper); }
.finder__other { flex: none; display: grid; align-content: center; gap: 2px; font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.finder__other .input { min-height: 34px; padding: 4px 8px; font-size: .9rem; width: auto; text-transform: none; letter-spacing: 0; }
@media (min-width: 700px) {
  .finder__other { flex-basis: 100%; display: flex; align-items: center; gap: 10px; margin-top: 4px; }
}
.finder__ctx { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 10px 0 6px; }
.finder__size { padding: 2px; gap: 2px; }
.finder__size button { min-height: 44px; padding: 4px 10px; font-size: .84rem; }
.finder__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.finder__list li { border-bottom: 1px solid var(--line); }
.finder__row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 0; min-height: 60px; text-decoration: none; color: inherit; }
.finder__row:hover .finder__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.finder__rank { font-stretch: 118%; font-weight: 750; color: var(--muted); font-variant-numeric: tabular-nums; }
.finder__list li:first-child .finder__rank { color: var(--blue); }
.finder__name { font-weight: 700; min-width: 0; overflow-wrap: anywhere; line-height: 1.2; }
.finder__name small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.finder__price { font-size: 1.35rem; }
.finder__list li:first-child .finder__price { color: var(--blue); }
.finder__sum { margin-top: 12px; font-size: .92rem; color: var(--ink-2); }
.finder__sum b { color: var(--ink); font-weight: 700; white-space: nowrap; }
.finder__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 14px; }
.finder__actions .btn { flex: 1 1 100%; }
.finder__actions .linkbtn { min-height: 44px; }
@media (min-width: 700px) { .finder__actions .btn { flex: 0 1 auto; } }

/* Gleicher Skipass, anderer Preis */
.spread { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .spread { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.spread__card { display: grid; gap: 6px; height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); text-decoration: none; color: inherit; }
.spread__card:hover { border-color: var(--ink); }
.spread__name { font-weight: 750; font-stretch: 112%; overflow-wrap: anywhere; }
.spread__range { font-size: 1.15rem; color: var(--ink-2); }
.spread__range .price { color: var(--ink); }
.spread__spark .spark { width: 100%; height: 40px; display: block; }
.spread__foot { font-size: .86rem; color: var(--ink-2); }
.spread__foot b { color: var(--ink); white-space: nowrap; }
.spread__alarm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; }

/* So funktioniert es (nur beim ersten Besuch) */
.steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.steps li { counter-increment: step; display: grid; gap: 4px; padding-top: 12px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); font-stretch: 118%; font-weight: 800; font-size: 1.4rem; color: var(--blue); line-height: 1; }
.steps b { font-stretch: 112%; font-size: 1.05rem; }
.steps span { color: var(--ink-2); font-size: .94rem; }

/* Wochenende als Tafel, wie eine Abfahrtsanzeige */
.board { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.board li { border-bottom: 1px solid var(--line); }
.board__row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 2px; text-decoration: none; color: inherit; }
.board__row:hover .board__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.board__day { font-stretch: 118%; font-weight: 750; font-variant-numeric: tabular-nums; }
.board__name { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.board__name small { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; }
.board__price { font-size: 1.3rem; }
@media (min-width: 760px) {
  .board__row { grid-template-columns: 140px minmax(0, 1fr) auto; }
}
.spark-hint { display: grid; gap: 6px; margin-bottom: 10px; }
@media (min-width: 900px) {
  .spark-hint { margin: 0 0 4px; }
  .spark-hint > p { display: none; }
}
.resorts__axis { display: none; }
@media (min-width: 900px) {
  .resorts__axis { display: grid; grid-template-columns: minmax(200px, 1.1fr) minmax(220px, 1.6fr) 150px 110px; gap: 10px 20px; padding: 8px 0 0; border-bottom: 1px solid var(--line); }
  .axis { grid-column: 2; position: relative; height: 18px; }
  .axis span { position: absolute; top: 0; font-size: .72rem; font-weight: 600; color: var(--muted); padding-left: 4px; border-left: 1px solid var(--line-2); line-height: 1.1; }
}
.toolbar { display: grid; gap: 10px; margin-bottom: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.toolbar > .input, .toolbar > .select:last-child { grid-column: 1 / -1; }
.toolbar .seg { display: flex; }
.toolbar .seg > * { flex: 1; justify-content: center; }
.toolbar--top { display: flex; flex-wrap: wrap; gap: 10px; }
.toolbar--top .seg { flex: 0 1 auto; }
@media (max-width: 759px) {
  .toolbar--top .seg { width: 100%; }
  .toolbar--top .seg > * { flex: 1; justify-content: center; }
}
@media (min-width: 760px) {
  .toolbar { align-items: center; grid-template-columns: minmax(200px, 1fr) auto auto auto; }
  .toolbar > .input, .toolbar > .select:last-child { grid-column: auto; }
  .toolbar .seg > * { flex: none; }
  .toolbar .select { width: auto; }
}
.resorts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.resort { position: relative; display: grid; gap: 10px 20px; padding: 18px 0; border-bottom: 1px solid var(--line); grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name fav" "spark spark" "meta price"; }
.resort:hover .resort__name a { text-decoration: underline; text-decoration-thickness: 2px; }
.resort__name { grid-area: name; min-width: 0; overflow-wrap: anywhere; }
.resort__name a { text-decoration: none; font-stretch: 118%; font-weight: 750; font-size: 1.18rem; letter-spacing: -.01em; }
.resort__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.resort__region { display: block; color: var(--muted); font-size: .86rem; margin-top: 2px; }
.resort__dist { display: block; font-size: .82rem; color: var(--ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.resort__spark { grid-area: spark; height: 44px; }
@media (max-width: 899px) {
  /* Fester Preis: auf schmalen Bildschirmen kein Band, die Zeile sagt «an allen Tagen» */
  .resort--flat { grid-template-areas: "name fav" "meta price"; }
  .resort--flat .resort__spark { display: none; }
}
.resort__meta { grid-area: meta; align-self: center; font-size: .86rem; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.resort__meta .tag { margin-left: 0; }
.resort__price { grid-area: price; text-align: right; align-self: end; }
.resort__price .price { font-size: 1.35rem; display: block; line-height: 1.1; }
.resort__price span { color: var(--muted); font-size: .82rem; }
.resort__fav { grid-area: fav; position: relative; z-index: 2; align-self: start; }
@media (min-width: 900px) {
  .resort { grid-template-columns: minmax(200px, 1.1fr) minmax(220px, 1.6fr) 150px 110px; grid-template-areas: "name spark price fav" "meta spark price fav"; align-items: center; padding: 20px 0; }
  .resort__meta { align-self: start; }
  .resort__spark { height: 52px; }
  .resort__fav { align-self: center; justify-self: end; }
}
.fav-btn {
  -webkit-appearance: none; appearance: none; font: inherit; font-size: .84rem; font-weight: 650; cursor: pointer;
  border: 1.5px solid var(--line-2); background: transparent; color: var(--ink-2); border-radius: 999px; padding: 6px 12px;
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px;
}
.fav-btn:hover { border-color: var(--ink); color: var(--ink); }
.fav-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.fav-btn[aria-pressed="true"] .ic .fill { fill: var(--blue); stroke: var(--blue); }
.model { display: inline-flex; align-items: center; gap: 8px; }
.mg { width: 24px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }

/* Mini-Preisgebirge */
.spark { width: 100%; height: 100%; }
.spark rect { shape-rendering: crispEdges; }
.spark .b-flat { opacity: .32; }
.spark .s-base { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.b-lo { fill: var(--blue); }
.b-mid { fill: var(--red); }
.b-hi { fill: var(--black); }
.b-flat { fill: var(--neutral); }
.compact { list-style: none; margin: 10px 0 0; padding: 0; columns: 1; column-gap: 32px; }
@media (min-width: 700px) {
  .compact { columns: 2; }
}
@media (min-width: 1000px) {
  .compact { columns: 3; }
}
.compact li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.compact a { font-weight: 650; text-decoration: none; }
.compact a:hover { text-decoration: underline; }
.compact .muted { font-size: .84rem; }
.compact .tag { margin-left: 0; }
.compact li .fav-btn { margin-left: auto; }
.install { margin: 18px 0 8px; }
.ios-steps { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); font-size: .92rem; }
.ios-steps li { margin-bottom: 4px; }
.homeline { margin: 4px 0 14px; }
.homeline__row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.results-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 10px; }
.unpriced { border-top: 1px solid var(--line); padding-top: 8px; }
.unpriced > summary { font-weight: 700; padding-block: 8px; }
/* Deine Gebiete */
.mine { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.mine__item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "delta alarm";
  gap: 0 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line);
}
.mine__name {
  grid-area: name; min-height: 44px; display: flex; flex-direction: column; justify-content: center;
  font-weight: 700; text-decoration: none; overflow-wrap: anywhere;
}
.mine__name:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.mine__price { grid-area: price; text-align: right; white-space: nowrap; }
.mine__price .price, .nearby__price .price { font-size: 1.15rem; }
.mine__ab { font-size: .82rem; color: var(--muted); }
.mine .delta { grid-area: delta; }
.mine__alarm {
  grid-area: alarm; justify-self: end; min-height: 44px; display: inline-flex; align-items: center;
  font-size: .88rem; color: var(--ink-2);
}
.delta { font-size: .86rem; font-weight: 650; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.delta--down { color: var(--blue); }
.delta--up { color: var(--red); }
@media (min-width: 760px) {
  .mine__item { grid-template-columns: minmax(0, 1fr) 150px 130px 130px; grid-template-areas: "name price delta alarm"; }
  .mine .delta { justify-self: end; }
}

/* Zuletzt angesehen: eine Zeile, auf dem Handy seitlich wischbar */
.recent { display: flex; align-items: center; gap: 12px; margin-top: 28px; min-width: 0; }
.section + .recent { margin-top: 20px; }
.recent__label {
  flex: none; font-size: .74rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
  font-stretch: 112%; line-height: 1.2; color: var(--muted);
}
.recent__list {
  list-style: none; margin: 0; padding: 2px; display: flex; gap: 8px; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
}
.recent__list::-webkit-scrollbar { display: none; }
@media (min-width: 521px) {
  .recent__list { flex-wrap: wrap; overflow: visible; }
}
@media (max-width: 520px) {
  .recent { flex-wrap: wrap; gap: 6px; }
  .recent__list { flex: 1 1 100%; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
}
.chip--link { min-height: 44px; padding: 0 12px; gap: 6px; font-size: .86rem; white-space: nowrap; text-decoration: none; color: var(--ink); }
.chip--link:hover { border-color: var(--ink); }
.chip__price { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .intro__actions > * { width: 100%; }
  .intro .lede { max-width: 36ch; }
  .toolbar--top .seg:first-child button { white-space: normal; }
}

/* ------------------------------------------------------------------ Gebietsseite */

.resort-head { display: grid; gap: 14px; margin-bottom: 26px; }
.resort-head__sub { margin-top: -6px; color: var(--ink-2); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }
.resort-head__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-2); font-size: .94rem; }
.resort-head__meta .tag { margin-left: 0; vertical-align: 0; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.fact { padding: 14px 14px 16px 0; }
.fact + .fact { padding-left: 14px; border-left: 1px solid var(--line); }
.fact:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
.fact:nth-child(4) { border-top: 1px solid var(--line); }
.fact__label { font-size: .78rem; color: var(--muted); font-weight: 600; display: block; margin-bottom: 4px; }
.fact__value { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); line-height: 1.05; }
.fact__sub { font-size: .84rem; color: var(--ink-2); display: block; margin-top: 4px; }
.fact__value--text { font-size: 1.05rem; font-weight: 700; font-stretch: 112%; display: block; padding-top: 6px; }
.facts__foot { margin-bottom: 26px; }
@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .fact:nth-child(3) { border-left: 1px solid var(--line); padding-left: 14px; border-top: 0; }
  .fact:nth-child(4) { border-top: 0; }
}
.resort-grid { display: grid; gap: 28px; grid-template-areas: "chart" "day" "cal"; }
.chart-block { grid-area: chart; min-width: 0; }
.daypanel { grid-area: day; display: grid; gap: 18px; }
.cal-block { grid-area: cal; min-width: 0; }
@media (min-width: 980px) {
  .resort-grid { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "chart day" "cal day"; align-items: start; }
  .daypanel { position: sticky; top: 84px; }
}
.actions--stack { display: grid; gap: 10px; }
.actions--stack .btn { width: 100%; }
.controls { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mountain { position: relative; margin-bottom: 26px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.mountain svg { width: 100%; height: 150px; overflow: visible; cursor: crosshair; }
.mountain .m-base { stroke: var(--ink); stroke-width: 1; }
.mountain .m-month { fill: var(--muted); font-size: 11px; font-weight: 600; font-family: var(--f-sans); }
.mountain .m-tick { stroke: var(--line-2); stroke-width: 1; }
.mountain .m-sel { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.mountain .m-cursor { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; }
.mountain__caption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
@media (min-width: 900px) {
  .mountain svg { height: 180px; }
}
/* Wochentag-Muster auf der Gebietsseite */
.wdp { margin: 22px 0 30px; max-width: 460px; }
.wdp__h { font-size: 1rem; margin-bottom: 10px; }
.wdp__bars { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.wdp__col { display: grid; grid-template-rows: auto 56px auto; align-items: end; text-align: center; }
.wdp__val { font-size: .74rem; font-weight: 650; color: var(--ink-2); margin-bottom: 4px; }
.wdp__col.is-lo .wdp__val { color: var(--blue); font-weight: 800; }
.wdp__bar { height: 56px; display: flex; align-items: flex-end; justify-content: center; padding: 0 4px; border-bottom: 1px solid var(--ink); }
.wdp__bar i { display: block; width: 100%; max-width: 34px; border-radius: 3px 3px 0 0; background: var(--neutral); opacity: .55; }
.wdp__col.is-lo .wdp__bar i { background: var(--blue); opacity: 1; }
.wdp__wd { font-size: .78rem; font-weight: 650; color: var(--muted); padding-top: 6px; }
.wdp__bars + .small { margin-top: 0; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal-head h3 { font-size: 1.25rem; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav .btn { min-width: 46px; padding: 8px 12px; font-size: 1.1rem; }
.cal-nav .btn .ic { margin: 0; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__wd { font-size: .74rem; font-weight: 650; color: var(--muted); text-align: center; padding: 4px 0 6px; text-transform: uppercase; letter-spacing: .05em; }
.cal__wd--we { color: var(--ink); }
.day {
  -webkit-appearance: none; appearance: none; font: inherit; color: var(--ink); cursor: pointer; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); min-height: 60px; padding: 5px 3px; display: flex; flex-direction: column;
  justify-content: space-between; align-items: stretch; position: relative; text-align: left;
}
.day:hover { border-color: var(--ink-2); }
.day__n { font-size: .8rem; font-weight: 600; color: var(--ink-2); padding-left: 3px; line-height: 1; display: inline-flex; align-self: flex-start; }
.day--we .day__n { color: var(--ink); font-weight: 800; }
.day--fav .day__n { box-shadow: 0 3px 0 var(--ink); padding-bottom: 1px; }
.day .pill { font-size: .76rem; padding: 2px 0; align-self: stretch; letter-spacing: 0; font-stretch: 92%; }
.day__none { font-size: .8rem; color: var(--muted); text-align: center; }
.day--past { opacity: .35; cursor: default; }
.day--empty { background: transparent; border-color: transparent; cursor: default; }
.day[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.day__today { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
@media (min-width: 700px) {
  .cal { gap: 6px; }
  .day { min-height: 76px; padding: 8px 6px; }
  .day .pill { font-size: .88rem; padding: 3px 4px; letter-spacing: 0; font-stretch: 108%; }
}
.daypanel__date { font-stretch: 118%; font-weight: 750; font-size: 1.15rem; }
.daypanel__price { font-size: clamp(2.4rem, 2rem + 2vw, 3.2rem); line-height: 1; }
.verdict { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.history { width: 100%; height: 90px; }
.history .h-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.history .h-dot { fill: var(--ink); }
.history .h-axis { stroke: var(--line); stroke-width: 1; }
.history .h-lbl { fill: var(--muted); font-size: 10px; font-family: var(--f-sans); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: .92rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
/* Mehr in der Region */
.nearby { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.nearby__item {
  display: grid; align-content: space-between; gap: 8px; height: 100%; min-height: 64px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); text-decoration: none;
}
.nearby__item:hover { border-color: var(--ink-2); }
.nearby__item:hover .nearby__name { text-decoration: underline; }
.nearby__name { min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.nearby__price { white-space: nowrap; }
@media (max-width: 520px) {
  .nearby__item { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .nearby__price { text-align: right; }
}

/* ------------------------------------------------------------------ Vergleich */

.daystrip { display: flex; gap: 6px; overflow-x: auto; padding: 2px var(--gutter) 10px; margin: 0 calc(var(--gutter) * -1) 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
@media (min-width: 900px) {
  .daystrip { margin: 0 0 6px; padding: 2px 2px 10px; }
}
.daystrip a {
  flex: none; scroll-snap-align: start; width: 58px; padding: 8px 0 9px; text-align: center; text-decoration: none;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink-2);
}
.daystrip a span { display: block; font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.daystrip a b { display: block; font-stretch: 118%; font-size: 1.2rem; font-weight: 750; color: var(--ink); line-height: 1.1; }
.daystrip a small { display: block; font-size: .7rem; color: var(--muted); }
.daystrip a.is-we { border-color: var(--line-2); }
.daystrip a[aria-current="date"] { background: var(--ink); border-color: var(--ink); }
.daystrip a[aria-current="date"] * { color: var(--paper); }
.daystrip a:hover { border-color: var(--ink); }
@media (max-width: 520px) {
  .daystrip a { min-width: 48px; }
}
.rank { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.rank li { position: relative; display: grid; grid-template-columns: 34px 1fr auto; gap: 4px 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rank__pos { font-stretch: 125%; font-weight: 800; font-size: 1.3rem; color: var(--muted); grid-row: span 2; }
.rank li:first-child .rank__pos { color: var(--blue); }
.rank__name { font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.rank__name::after { content: ""; position: absolute; inset: 0; }
.rank li:hover .rank__name { text-decoration: underline; }
.rank__bar { grid-column: 2; height: 8px; background: var(--paper-2); border-radius: 2px; overflow: hidden; }
.rank__bar i { display: block; height: 100%; border-radius: 2px; }
.rank__price { grid-column: 3; grid-row: 1 / span 2; text-align: right; }
.rank__price .price { font-size: 1.25rem; display: block; }
.rank__extra { grid-column: 2 / span 2; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .84rem; color: var(--ink-2); }
.bar-lo { background: var(--blue); }
.bar-mid { background: var(--red); }
.bar-hi { background: var(--black); }
.bar-flat { background: var(--neutral); }
.compare-grid { display: grid; gap: 28px; }
@media (min-width: 980px) {
  .compare-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
}
.pass { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pass:last-child { border-bottom: 0; }
.pass b { font-weight: 700; }
.pass .price { text-align: right; }
.pass__verdict { grid-column: 1 / -1; font-size: .86rem; color: var(--ink-2); }
.pass__more summary { cursor: pointer; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.pass__more[open] summary { margin-bottom: 4px; }
.range { width: 100%; accent-color: var(--ink); min-height: 44px; margin: 0; cursor: pointer; }

/* ------------------------------------------------------------------ Alarme */

.alerts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.alert { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); padding: 16px 18px; display: grid; gap: 12px; }
.alert--off { background: transparent; }
.alert--off .alert__sentence { color: var(--muted); }
.alert__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.alert__top .switch { flex-shrink: 0; }
.alert__resort { font-stretch: 118%; font-weight: 750; font-size: 1.1rem; text-decoration: none; }
.alert__sentence { color: var(--ink-2); max-width: 64ch; }
.alert__foot { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
.confirm { display: inline-flex; gap: 10px; align-items: center; font-size: .9rem; flex-wrap: wrap; }
.form-grid { display: grid; gap: 28px; }
@media (min-width: 980px) {
  .form-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .form-aside { position: sticky; top: 84px; }
}
.fs { border: 0; margin: 0; padding: 0; min-width: 0; display: flow-root; }
.fs + .fs { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.fs > :not(legend) { clear: both; }
.field > .seg { justify-self: start; }
.fs__legend { float: left; width: 100%; display: flex; gap: 12px; align-items: baseline; padding: 0; margin-bottom: 14px; font-stretch: 118%; font-weight: 750; font-size: 1.12rem; }
.fs__legend i { font-style: normal; color: var(--blue); font-stretch: 125%; font-weight: 800; }
.sub { margin-top: 14px; display: grid; gap: 14px; }
.grid2 { display: grid; gap: 14px; }
@media (min-width: 560px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
}
.form-aside h2 { font-size: 1.05rem; }
.form-aside > * + * { margin-top: 14px; }
.form-aside > #err:empty { margin-top: 0; }
.more { margin-top: 12px; }
.more summary { list-style: none; display: inline-block; }
.more summary::-webkit-details-marker { display: none; }
.more[open] summary { margin-bottom: 4px; }
.field-err { color: var(--red); font-size: .88rem; font-weight: 600; margin-top: 6px; }
[aria-invalid="true"] { border-color: var(--red) !important; }
.form-aside .note--red { margin: 0; }
#up-note { margin-bottom: 12px; }
.preview { border-left: 3px solid var(--blue); padding: 6px 0 6px 16px; font-size: 1.02rem; color: var(--ink); }
.preview b { font-weight: 700; }
.inbox { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.inbox li { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.inbox time { color: var(--muted); font-size: .8rem; }
.multi { border: 1.5px solid var(--line-2); border-radius: var(--radius); background: var(--card); max-height: 340px; overflow: auto; padding: 4px 12px 10px; }
.multi__group { margin: 12px 0 4px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.multi__item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; min-height: 44px; }
.multi__item:last-child { border-bottom: 0; }
.multi__item input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.multi__item span:first-of-type { flex: 1; }
.multi__item:has(input:disabled) { color: var(--muted); cursor: not-allowed; }
.multi__item:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.multi-selected { margin-block: 10px; }
.multi-selected .chip { gap: 3px; }
/* Beispiel-Alarme */
.examples { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .examples { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.example {
  display: grid; gap: 6px; align-content: start; height: 100%; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); text-decoration: none;
}
.example:hover { border-color: var(--ink-2); }
.example__title { font-weight: 750; font-stretch: 112%; }
.example__text { color: var(--ink-2); font-size: .9rem; }
.example__cta { margin-top: 4px; font-size: .88rem; font-weight: 650; color: var(--blue); }
.example:hover .example__cta { text-decoration: underline; }
@media (max-width: 520px) {
  .form-aside { margin-bottom: 8px; }
  .alert__top { flex-wrap: wrap; }
}

/* ------------------------------------------------------------------ Konto */

.settings { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.setting { display: grid; gap: 14px; padding: 24px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) {
  .setting { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; }
}
.setting__head h2 { font-size: 1.15rem; }
.setting__head p { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.setting__body { display: grid; gap: 14px; max-width: 560px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--neutral); }
.status--on::before { background: var(--blue); }
.family { display: grid; gap: 10px; }
.family__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.family-status { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: .9rem; font-weight: 600; background: var(--card); }
.chip button {
  -webkit-appearance: none; appearance: none; border: 0; background: var(--paper-2); color: var(--ink-2); border-radius: 50%;
  cursor: pointer; display: inline-grid; place-items: center; padding: 0; width: 44px; height: 44px; min-width: 44px;
}
.chip button .ic { width: 15px; height: 15px; }
.chip button:hover { background: var(--ink); color: var(--paper); }
.devices { list-style: none; margin: 0; padding: 0; }
.devices li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.devices li:last-child { border-bottom: 0; }

/* ------------------------------------------------------------------ Textseiten */

.prose { max-width: 68ch; }
.prose h2 { margin: 34px 0 10px; font-size: 1.3rem; }
.prose h3 { margin: 22px 0 6px; }
.prose p { margin: 0 0 12px; color: var(--ink-2); }
.prose ul { margin: 0 0 12px; color: var(--ink-2); padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose .placeholder { background: var(--red-soft); color: var(--ink); padding: 0 4px; border-radius: 3px; }
.faq { border-top: 1px solid var(--ink); margin-top: 10px; }
.faq details { border-bottom: 1px solid var(--line); padding: 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding-block: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 8px; color: var(--ink-2); max-width: 64ch; }
.faq details > p, .faq details > .prose { padding-bottom: 12px; }

/* ------------------------------------------------------------------ Zustände */

.empty { padding: 34px 0; display: grid; gap: 12px; justify-items: start; }
.empty p { max-width: 52ch; color: var(--ink-2); }
.empty + .section { margin-top: 16px; }
/* Platzhalter hält die Seitenhöhe, damit der Footer beim Laden nicht in den Bildschirm springt */
.loading { display: grid; gap: 12px; padding-top: 8px; align-content: start; min-height: 80vh; }
.loading i { display: block; height: 18px; border-radius: 4px; background: var(--paper-2); animation: pulse 1.2s ease-in-out infinite; }
.loading i:nth-child(1) { width: 40%; height: 34px; }
.loading i:nth-child(2) { width: 70%; }
.loading i:nth-child(3) { width: 55%; }
@keyframes pulse {
  50% { opacity: .45; }
}
.error { border-left: 3px solid var(--red); padding: 8px 0 8px 16px; display: grid; gap: 12px; justify-items: start; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper); padding: 12px 18px;
  border-radius: var(--radius); font-weight: 600; font-size: .94rem; width: max-content; max-width: min(92vw, 440px); transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast--action { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; padding-block: 6px; }
.toast--action.is-on { pointer-events: auto; }
.toast__link { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-weight: 750; text-decoration: underline; }
@media (min-width: 900px) {
  .toast { bottom: 28px; }
}
.netnote {
  position: sticky; top: calc(61px + env(safe-area-inset-top)); z-index: 25; display: flex; gap: 14px; justify-content: center;
  align-items: center; flex-wrap: wrap; background: var(--ink); color: var(--paper); padding: 9px 16px; font-size: .9rem;
  font-weight: 600;
}
.netnote .linkbtn { color: var(--paper); }

/* ------------------------------------------------------------------ Server-Seiten (SEO) */

.seo-table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: .95rem; display: block; max-width: 100%; overflow-x: auto; }
.seo-table th { text-align: left; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 650; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.seo-table td { text-align: left; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.seo-table td.num, .seo-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.seo-crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.seo-crumbs a { color: var(--ink-2); }
.seo-cta { margin: 26px 0; }
.seo-cta + .note { margin-top: 24px; }
.seo-list { list-style: none; padding: 0; margin: 10px 0 0; border-top: 1px solid var(--ink); }
.seo-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 5px; }
.seo-list h3 a { display: inline-block; min-height: 44px; padding-block: 7px; text-decoration: none; }
.seo-list h3 a:hover { text-decoration: underline; }
.seo-list__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.seo-crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }
.seo-table td .small { display: block; margin-top: 2px; }
.section > h3 { margin-top: 22px; }
.section > h3:first-child { margin-top: 0; }
.section .actions .btn--small { margin-bottom: 4px; }
/* Serverseitige Startseite: Intro steht direkt vor dem Board, ohne Install-Hinweis dazwischen */
.intro + .section { margin-top: 36px; }
/* Ranglisten (günstigste Tage, Gebiete in der Nähe) */
ol.compact { counter-reset: rank; }
ol.compact li { counter-increment: rank; }
ol.compact li::before { content: counter(rank) "."; min-width: 1.6em; font-weight: 750; font-stretch: 118%; color: var(--muted); font-variant-numeric: tabular-nums; }
ol.compact li:first-child::before { color: var(--blue); }
.compact li .price { margin-left: auto; }
.compact--rows { columns: 1; max-width: 560px; }
.compact--rows + .small { margin-top: 12px; }
.compact li .pill { min-width: 6.5em; justify-content: center; }

/* ------------------------------------------------------------------ Druck und Reduced Motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .masthead, .nav, .site-foot, .toast, .btn, .fav-btn { display: none !important; }
  body { background: #fff; padding: 0; }
}

/* Empfang und Sicherung (Codex) */
.backup-hint { display: grid; gap: 12px; margin-top: 28px; }
.resort > .backup-hint { grid-column: 1 / -1; width: 100%; }
.backup-hint form { display: grid; gap: 12px; min-width: 0; }
.backup-hint .field { margin: 0; }
.backup-hint .input { width: 100%; min-width: 0; }
.backup-hint .actions, .receipt { overflow-wrap: anywhere; }
.alert__reception { color: var(--ink-2); overflow-wrap: anywhere; }
