/* glacier.camp / powder.camp – Stylesheet im Kaiserwetter-Look (kaiserwetter.ai).
   Identische Kopie in beiden Ordnern. Statisch, ohne externe Schriften oder
   Dienste. Hell/Dunkel per System. */

:root {
  --bg: #f3f6fb;
  --bg-2: #e8eef7;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --text: #0c1322;
  --muted: #566176;
  --line: rgba(12, 19, 34, .1);
  --blue: #1f6fd6;
  --blue-2: #3b8cf0;
  --deep: #0b3a7a;
  --ice: #6cc4ff;
  --gold: #ffbf2e;
  --link: #1764c8;
  --radius: 22px;
  --shadow: 0 24px 60px -28px rgba(14, 40, 86, .45);
  --shadow-sm: 0 10px 30px -18px rgba(14, 40, 86, .4);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mount-1: rgba(255, 255, 255, .22);
  --mount-2: rgba(255, 255, 255, .38);
  --ok: #157a3c;
  --ok-bg: #dcf5e4;
  --warn-bg: #fff3d6;
  --warn: #7a5200;
  --bad: #b3261e;
  --bad-bg: #fde3e1;
  --neutral-bg: #e9edf4;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05080f;
    --bg-2: #0a101c;
    --surface: #0f1623;
    --surface-2: #141d2d;
    --text: #eef2f9;
    --muted: #9aa6ba;
    --line: rgba(255, 255, 255, .09);
    --blue: #4b9bff;
    --blue-2: #79b6ff;
    --link: #79b6ff;
    --shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
    --shadow-sm: 0 12px 34px -20px rgba(0, 0, 0, .8);
    --mount-1: rgba(120, 160, 220, .14);
    --mount-2: rgba(150, 190, 240, .2);
    --ok: #6fe39a;
    --ok-bg: rgba(52, 199, 89, .16);
    --warn-bg: rgba(255, 191, 46, .14);
    --warn: #ffd27a;
    --bad: #ff8a80;
    --bad-bg: rgba(255, 69, 58, .16);
    --neutral-bg: rgba(255, 255, 255, .08);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  padding: 10px max(16px, calc((100vw - 1120px) / 2));
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-nav .brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: -.02em; font-size: 1.02rem; margin-right: auto; }
.site-nav .brand img { width: 30px; height: 30px; border-radius: 8px; }
.site-nav .brand small { font-weight: 600; color: var(--muted); letter-spacing: 0; }
.site-nav .nav-cta { font-size: .85rem; font-weight: 700; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--text); color: var(--bg); white-space: nowrap; }
@media (max-width: 420px) { .site-nav .brand small { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff;
  padding: 44px 16px 118px;
  background:
    radial-gradient(55% 50% at 15% 5%, rgba(160, 215, 255, .35), transparent 70%),
    linear-gradient(180deg, #071a38 0%, #13427f 55%, #3f86d2 100%);
}
.hero-powder {
  background:
    radial-gradient(55% 55% at 85% 0%, rgba(205, 225, 255, .42), transparent 70%),
    linear-gradient(180deg, #0a1636 0%, #23408a 55%, #6b8fdc 100%);
}
@media (prefers-color-scheme: dark) {
  .hero { background: radial-gradient(55% 50% at 15% 5%, rgba(120, 190, 255, .18), transparent 70%), linear-gradient(180deg, #02060f 0%, #0a1f42 60%, #143a70 100%); }
  .hero-powder { background: radial-gradient(55% 55% at 85% 0%, rgba(150, 180, 255, .18), transparent 70%), linear-gradient(180deg, #03050f 0%, #111d45 60%, #26387a 100%); }
}
.hero::after {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: -2px; height: 122px;
  background: var(--bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath d='M0 140V92l90-40 70 30 110-70 90 58 80-34 120 66 100-52 90 28 120-74 110 62 90-30 100 42 120-54 80 30 80-20v104z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath d='M0 140V92l90-40 70 30 110-70 90 58 80-34 120 66 100-52 90 28 120-74 110 62 90-30 100 42 120-54 80 30 80-20v104z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 190px;
  background: linear-gradient(180deg, var(--mount-2), var(--mount-1));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cpath d='M0 220V150l120-80 90 50 140-120 110 90 90-40 150 110 120-90 130 70 150-130 120 100 100-40 120 60v90z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cpath d='M0 220V150l120-80 90 50 140-120 110 90 90-40 150 110 120-90 130 70 150-130 120 100 100-40 120 60v90z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.hero .inner { max-width: 1088px; margin: 0 auto; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.1rem, 8vw, 3.8rem); line-height: 1.03; margin: 16px 0 10px; letter-spacing: -.04em; font-weight: 800; max-width: 760px; }
.hero .lead { font-size: clamp(1.02rem, 2.6vw, 1.2rem); opacity: .93; max-width: 640px; }
.hero .summary { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero .summary .pill { font-family: var(--font-round); font-weight: 700; font-size: .95rem; padding: 9px 14px; border-radius: 14px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.hero .summary .pill b { font-size: 1.15rem; }
.hero .ctas { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Buttons ---------- */
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 9px 18px 9px 9px; border-radius: 18px;
  background: #0b0f17; color: #fff; text-decoration: none;
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.store-btn:hover { box-shadow: 0 18px 38px -14px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(255, 255, 255, .3); }
.store-btn img { width: 42px; height: 42px; border-radius: 10px; }
.store-btn .t { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn .t small { font-size: .72rem; opacity: .75; font-weight: 600; letter-spacing: .02em; }
.store-btn .t b { font-size: 1rem; letter-spacing: -.01em; }
.store-btn.light { background: #fff; color: #0b0f17; }

/* ---------- Layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 8px 16px 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 30px 0 12px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(1.45rem, 4vw, 2rem); letter-spacing: -.03em; line-height: 1.1; }
.section-head p { color: var(--muted); font-size: .9rem; }
.stand { color: var(--muted); font-size: .85rem; }

.notice { border-radius: 16px; padding: 12px 16px; font-size: .92rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.notice strong { color: var(--text); }
.notice.warn { background: var(--warn-bg); color: var(--warn); box-shadow: none; }
.notice.warn strong { color: inherit; }
.notice + .notice { margin-top: 10px; }
.notice.safety { border-left: 4px solid var(--gold); }
.error-box { text-align: center; padding: 28px 20px; }
.error-box h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--text); }
.error-box button { margin-top: 12px; }
button.btn, .btn { font: inherit; font-weight: 700; font-size: .92rem; border: 0; cursor: pointer; padding: 9px 16px; border-radius: 999px; background: var(--text); color: var(--bg); text-decoration: none; display: inline-block; }

/* ---------- Karten ---------- */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.resort {
  background: var(--surface); border-radius: var(--radius); padding: 18px 18px 14px;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.resort header h3 { font-size: 1.14rem; letter-spacing: -.015em; line-height: 1.2; }
.resort header .meta { color: var(--muted); font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: flex-start; }
.st { display: inline-block; font-weight: 700; font-size: .85rem; padding: 5px 11px; border-radius: 999px; line-height: 1.3; }
.st-open { background: var(--ok-bg); color: var(--ok); }
.st-presumedOpen { background: transparent; color: var(--ok); box-shadow: inset 0 0 0 1.5px currentColor; }
.st-temporarilyClosed { background: var(--bad-bg); color: var(--bad); }
.st-offseason, .st-summer, .st-assumedClosed, .st-unknown { background: var(--neutral-bg); color: var(--muted); }
.lift { font-weight: 600; font-size: .95rem; }
.src { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.src a { color: var(--muted); }

.av { display: inline-block; font-weight: 700; font-size: .85rem; padding: 5px 11px; border-radius: 999px; line-height: 1.3; }
.av-1 { background: #9bd35b; color: #1c2b00; }
.av-2 { background: #f5e64b; color: #2b2500; }
.av-3 { background: #f49b1e; color: #1a1200; }
.av-4 { background: #c81e1e; color: #fff; }
.av-5 { background: #1c1c1c; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.av-none { background: var(--neutral-bg); color: var(--muted); }
.av-wrap { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; max-width: 100%; }
.av-link { text-decoration: none; }
.av-meta { color: var(--muted); font-size: .74rem; line-height: 1.35; }
.av-meta a { color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.facts > div { background: var(--surface-2); border-radius: 14px; padding: 9px 11px; min-width: 0; }
.facts dt { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.facts dd { font-family: var(--font-round); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.facts dd small { display: block; font-family: var(--font); font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: 0; line-height: 1.35; }
.facts .na dd { color: var(--muted); font-size: .95rem; }

.days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.day { border-radius: 14px; padding: 9px 11px; box-shadow: inset 0 0 0 1px var(--line); font-size: .86rem; min-width: 0; }
.day h4 { font-size: .8rem; font-weight: 800; letter-spacing: .02em; }
.day h4 span { font-weight: 600; color: var(--muted); }
.day h4 em { display: block; font-style: normal; font-weight: 500; font-size: .72rem; color: var(--muted); }
.day .big { font-family: var(--font-round); font-weight: 700; font-size: 1.02rem; }
.day p { color: var(--muted); line-height: 1.4; }
.links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86rem; font-weight: 600; padding-top: 4px; border-top: 1px solid var(--line); }
.links a { text-decoration: none; padding: 4px 0; }
.links a:hover { text-decoration: underline; }

/* Kompakte Zeilen („Außerdem schon offen“) */
.rows { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.row { background: var(--surface); border-radius: 16px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 6px; }
.row h3 { font-size: 1rem; }
.row h3 small { font-weight: 500; color: var(--muted); font-size: .82rem; }

/* Platzhalter beim Laden */
.skeleton { background: var(--surface); border-radius: var(--radius); min-height: 280px; box-shadow: inset 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(127, 140, 160, .12) 50%, transparent 70%); animation: shimmer 1.4s infinite; }

.skeleton.short { min-height: 120px; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; } }

/* ---------- Rangliste (powder.camp) ---------- */
.controls { display: grid; gap: 10px; margin: 18px 0 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
.seg legend { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; width: 100%; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-block; padding: 7px 13px; border-radius: 999px; font-weight: 700; font-size: .88rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.seg input:checked + span { background: var(--text); color: var(--bg); box-shadow: none; }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.select-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.select-row label { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.select-row select { font: inherit; font-size: .92rem; font-weight: 600; padding: 7px 12px; border-radius: 12px; border: 0; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

.rank { list-style: none; display: grid; gap: 8px; counter-reset: r; }
.rank li {
  background: var(--surface); border-radius: 18px; padding: 12px 14px;
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start;
}
.rank .pos { font-family: var(--font-round); font-weight: 800; font-size: 1.05rem; color: var(--muted); padding-top: 2px; }
.rank li:nth-child(-n+3) .pos { color: var(--blue); }
.rank h3 { font-size: 1.02rem; line-height: 1.25; }
.rank .meta { color: var(--muted); font-size: .82rem; }
.rank .amount { font-family: var(--font-round); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; text-align: right; white-space: nowrap; }
.rank .amount small { display: block; font-family: var(--font); font-weight: 600; font-size: .72rem; color: var(--muted); letter-spacing: 0; }
.rank .detail { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; }
.rank .peak, .rank .srcline { color: var(--muted); font-size: .8rem; }
.rank .links { grid-column: 2 / -1; border-top: 0; padding-top: 0; }
.bar { grid-column: 2 / -1; height: 6px; border-radius: 6px; background: var(--neutral-bg); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--ice), var(--blue)); }
.counts { color: var(--muted); font-size: .85rem; margin-top: 10px; }

/* ---------- Textblöcke ---------- */
.explain { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: 12px; }
.card { background: var(--surface); border-radius: 20px; padding: 18px 20px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.card h3 { font-size: 1.02rem; margin-bottom: 6px; letter-spacing: -.01em; }
.card p, .card li { color: var(--muted); font-size: .92rem; }
.card ul { padding-left: 18px; }
.card p + p { margin-top: 8px; }
.app-promo { margin-top: 28px; display: grid; gap: 16px; align-items: center; background: linear-gradient(135deg, #0b2a5e, #1c5fbf); color: #fff; border-radius: 26px; padding: 24px; box-shadow: var(--shadow); }
.app-promo img.icon { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .6); }
.app-promo h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 1.9rem); letter-spacing: -.03em; line-height: 1.1; }
.app-promo p { opacity: .9; font-size: .95rem; margin-top: 6px; }
@media (min-width: 760px) { .app-promo { grid-template-columns: auto 1fr auto; } }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 28px 16px 44px; color: var(--muted); font-size: .8rem; line-height: 1.65; }
footer .inner { max-width: 1088px; margin: 0 auto; }
footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 6px; }
footer ul { list-style: none; }
footer a { color: var(--muted); }
footer .foot-links { margin-top: 14px; font-size: .86rem; }
footer .foot-links a { display: inline-block; padding: 2px 4px; }

/* ---------- Rechtstexte ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 40px 20px 56px; }
.page h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 6vw, 2.5rem); letter-spacing: -.035em; line-height: 1.1; margin-bottom: 18px; }
.page h2 { margin: 28px 0 8px; font-size: 1.15rem; letter-spacing: -.01em; }
.page p, .page li { color: var(--muted); }
.page p + p { margin-top: 10px; }
.page ul { padding-left: 22px; margin-top: 6px; }
.page li + li { margin-top: 4px; }
