/* Wintersportbericht Oberharz: page styles. Header/menu come from /vendor/menu.css (oberharz-menu prototype). */
:root {
  --ink: #17251c; --ink-2: #4c5a51; --line: #dde2da; --surface: #f3f4f0; --paper: #fff; --moss: #eef1ea;
  --green: #2f5d34; --green-ink: #1d4a26; --open-bg: #e1eedf; --orange: #ec7405; --orange-ink: #a84f00;
  --night: #0e2016; --night-2: #16301f; --on-night: #e3ebe4; --on-night-2: #a9bcae; --ice: #f4fbff;
  --d-blau: #1f5fbf; --d-rot: #c62828; --d-schwarz: #17251c;
  --font: Roboto, Arial, sans-serif;
  --wrap: 1320px; --gut: 40px; --head: 116px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (max-width: 760px) { :root { --gut: 16px; --head: 72px; } }
html { scroll-padding-top: calc(var(--head) + 12px); }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--font); font-variant-numeric: tabular-nums; }
::selection { background: rgba(236, 116, 5, .22); color: var(--ink); }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { text-wrap: balance; letter-spacing: -.015em; margin: 0; }
h2 { font: 700 clamp(26px, 2.6vw, 36px)/1.15 var(--font); }
.h-sm { font-size: 20px; }
svg { flex: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap--narrow { max-width: 880px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--night); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
html { scrollbar-color: #b9c4bb var(--surface); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(86svh, 820px); display: flex; align-items: flex-end; padding: calc(var(--head) + 48px) 0 44px; overflow: hidden; background: var(--night); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; z-index: -3; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(180deg, rgba(14, 32, 22, .55) 0, rgba(14, 32, 22, 0) 24%),
  linear-gradient(0deg, rgba(14, 32, 22, .9) 0, rgba(14, 32, 22, .55) 42%, rgba(14, 32, 22, 0) 72%),
  linear-gradient(90deg, rgba(14, 32, 22, .6) 0, rgba(14, 32, 22, 0) 62%); }
.snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__copy { position: relative; width: 100%; display: grid; gap: 14px; }
.hero h1 { font: 700 clamp(17px, 1.5vw, 20px)/1.2 var(--font); letter-spacing: .01em; color: var(--on-night); }
.answer { display: grid; gap: 10px; }
.answer__h { margin: 0; font: 700 clamp(36px, 5.4vw, 76px)/1.02 var(--font); letter-spacing: -.03em; text-wrap: balance; max-width: 15ch; }
.answer__s { margin: 0; max-width: 58ch; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.5; color: #edf3ee; }
.stamp { margin: 2px 0 0; display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--on-night-2); }
.stamp__dot { width: 9px; height: 9px; border-radius: 50%; background: #7fd18b; box-shadow: 0 0 0 0 rgba(127, 209, 139, .6); animation: ping 2.4s var(--ease) infinite; }
.stamp__dot.is-demo { background: var(--orange); box-shadow: 0 0 0 0 rgba(236, 116, 5, .6); }
.is-demo .stamp { color: #ffd2a8; font-weight: 500; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(127, 209, 139, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(127, 209, 139, 0); } }
.credit { position: absolute; right: 12px; bottom: 8px; margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .78); }

/* track strip: one tick per facility */
.strip { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 14px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); }
.strip__g { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 4px 12px; }
.strip__l { font-size: 14px; color: var(--on-night-2); }
.strip__n { font-size: 14px; color: var(--on-night-2); justify-self: end; }
.strip__n b { font-size: 20px; color: #fff; }
.strip__t { grid-column: 1 / -1; display: flex; gap: 3px; flex-wrap: wrap; max-width: 440px; }
.strip__t i { width: 5px; height: 18px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.strip__t i.on { background: var(--ice); box-shadow: 0 0 8px rgba(190, 228, 255, .75); }
.js .strip__t i { transform-origin: 50% 100%; animation: tick .6s var(--ease) both; animation-delay: calc(var(--k, 0) * 14ms + 300ms); }
@keyframes tick { from { transform: scaleY(.15); opacity: .2; } }

/* ---------- intro ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 18px 0 0; font-size: 14px; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin: 0 9px; color: #a3ada6; }
.crumbs a { color: inherit; }
.lead p { margin: 14px 0 0; max-width: 72ch; font-size: 18px; color: var(--ink-2); }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 15px/1 var(--font); padding: 10px 14px; border-radius: 999px; border: 1px solid #c9d1ca; background: var(--paper); color: var(--ink); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.chip small { font-size: 12.5px; color: var(--ink-2); margin-left: 3px; }
.chip:hover { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.chip[aria-pressed="true"] small { color: #cfe0d1; }
.select select { font: 500 15px var(--font); color: var(--ink); padding: 9px 36px 9px 14px; border-radius: 999px; border: 1px solid #c9d1ca; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2317251c' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; appearance: none; cursor: pointer; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch__ui { width: 40px; height: 24px; border-radius: 12px; background: #c9d1ca; position: relative; transition: background-color .2s; }
.switch__ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--ease); }
.switch input:checked + .switch__ui { background: var(--green); }
.switch input:checked + .switch__ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- tool: map + list ---------- */
.tool { padding: 64px 0 72px; }
.tool__top { display: grid; gap: 18px; margin-bottom: 24px; }
.tool__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: start; }
.tool__map { position: sticky; top: calc(var(--head) + 16px); }
.mapbox { background: radial-gradient(110% 80% at 60% 35%, #183722 0, var(--night) 70%); border-radius: 16px; padding: 10px; color: var(--on-night-2); }
.mapbox .wsb-map { width: 100%; height: auto; max-height: calc(100svh - var(--head) - 90px); display: block; }
.mapbox .legend { padding: 4px 10px 6px; }
.count { margin: 0 0 8px; font-size: 15px; color: var(--ink-2); }
.listbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin-bottom: 6px; }
.listbar .count { margin: 0; }
.seg { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--moss); font-size: 14px; }
.seg__l { padding: 0 8px 0 10px; color: var(--ink-2); }
.seg button { font: 500 14px/1 var(--font); padding: 8px 12px; border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--paper); color: var(--green-ink); box-shadow: 0 1px 3px rgba(23, 37, 28, .18); }
.grp { padding-top: 18px; }
.grp[hidden] { display: none; }
.grp__h { position: sticky; top: var(--head); z-index: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 0 8px; background: var(--paper); border-bottom: 2px solid var(--ink); font: 700 21px/1.2 var(--font); cursor: default; }
.grp__h span { font-weight: 400; font-size: 15px; color: var(--ink-2); }
.grp .rows .row:last-child { border-bottom: 0; }
.rest > summary span { font-weight: 400; color: var(--ink-2); }
.groups[data-mode="art"] .rm-kind, .groups[data-mode="ort"] .rm-place { display: none !important; }
.m-t.is-grp-dim { opacity: .12; }
@media (max-width: 960px) { .grp__h { top: var(--head); } }
.none-open { margin: 0 0 12px; padding: 16px 18px; background: var(--moss); border-radius: 12px; color: var(--ink-2); }
.rest { margin-top: 8px; }
.rest > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 0; font-weight: 600; color: var(--green); }
.rest > summary::-webkit-details-marker { display: none; }
.rest > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .25s var(--ease); }
.rest[open] > summary::before { transform: rotate(45deg); }
.rest[hidden] { display: none; }
.count b { color: var(--ink); }
.empty { padding: 24px; background: var(--moss); border-radius: 12px; }
.link { font: inherit; color: var(--green); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
@media (max-width: 960px) {
  .tool__grid { grid-template-columns: 1fr; }
  .tool__map { position: relative; top: auto; }
  .mapbox .wsb-map { max-height: 72vh; }
}

/* map svg */
.wsb-map { overflow: visible; }
.m-grid { stroke: rgba(227, 235, 228, .055); stroke-width: 1; fill: none; }
.m-t { fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s, stroke-width .25s, opacity .25s; }
.m-t.s-closed { stroke: rgba(232, 238, 234, .62); stroke-width: calc(2px * var(--z, 1)); }
.m-t.s-unknown { stroke: rgba(232, 238, 234, .4); stroke-dasharray: none; stroke-width: calc(1.6px * var(--z, 1)); }
.m-t.s-open { stroke: var(--ice); stroke-width: calc(3.2px * var(--z, 1)); filter: drop-shadow(0 0 3px rgba(170, 220, 255, .85)); }
.m-rodel { stroke-width: calc(4px * var(--z, 1)) !important; }
.m-t.is-dim { opacity: .07; }
.m-t.is-hot { stroke: var(--orange); stroke-width: calc(5.5px * var(--z, 1)); opacity: 1; filter: drop-shadow(0 0 6px rgba(236, 116, 5, .8)); }
.wsb-map.is-drawing .m-t { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: draw 1.8s var(--ease) forwards; animation-delay: calc(var(--i) * 16ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.m-place circle { fill: var(--orange); stroke: var(--night); stroke-width: 3; }
.m-place text { fill: #fff; font: 700 21px var(--font); paint-order: stroke; stroke: var(--night); stroke-width: 5px; stroke-linejoin: round; }
.m-place .m-alt { fill: var(--on-night-2); font-weight: 400; font-size: 17px; }
.m-place.is-dim { opacity: .35; }
@media (max-width: 760px) {
  .m-place text { font-size: 40px; stroke-width: 8px; }
  .m-place .m-alt { display: none; }
  .m-place circle { r: 9; }
  .m-scale text { font-size: 30px; }
  .m-t.s-open { stroke-width: calc(5px * var(--z, 1)); } .m-t.s-closed { stroke-width: calc(3px * var(--z, 1)); } .m-t.s-unknown { stroke-width: calc(2.6px * var(--z, 1)); }
}
.m-ski path { fill: none; stroke: var(--on-night-2); stroke-width: 2.4; stroke-linejoin: round; }
.m-ski.is-open path { stroke: var(--ice); fill: rgba(244, 251, 255, .25); }
.m-scale path { stroke: var(--on-night-2); stroke-width: 2; fill: none; }
.m-scale text { fill: var(--on-night-2); font: 400 16px var(--font); text-anchor: middle; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 22px; height: 0; border-top: 3px solid; border-radius: 2px; }
.lg-open { border-color: var(--ice) !important; box-shadow: 0 0 6px rgba(170, 220, 255, .9); }
.lg-closed { border-color: rgba(190, 210, 197, .55) !important; border-top-width: 2px !important; }
.lg-none { border-color: rgba(190, 210, 197, .3) !important; border-top-width: 2px !important; }
.lg-ski { width: 0 !important; height: 0 !important; border: 6px solid transparent !important; border-bottom: 10px solid var(--on-night-2) !important; border-top: 0 !important; }

/* rows */
.rows { list-style: none; margin: 0; padding: 0; }
.row { padding: 14px 12px; margin: 0 -12px; border-bottom: 1px solid var(--line); border-radius: 10px; transition: background-color .2s; }
.row:hover, .row.is-hot { background: var(--moss); }
.row[hidden] { display: none; }
.row__head { display: flex; align-items: flex-start; gap: 10px; }
.row__name { font: 600 17px/1.35 var(--font); letter-spacing: 0; text-wrap: pretty; }
.row__name a { color: var(--ink); text-decoration: none; }
.row__name a:hover { color: var(--green); text-decoration: underline; }
.row__name svg { width: 13px; height: 13px; margin-left: 6px; vertical-align: -1px; stroke: currentColor; fill: none; stroke-width: 1.6; opacity: .55; }
.row__meta, .row__extra { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14.5px; color: var(--ink-2); }
.row__meta span, .row__extra span { display: inline-flex; align-items: center; gap: 5px; }
.row__meta svg, .row__extra svg, .place__wx svg, .area svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.groomed { color: var(--green-ink); font-weight: 500; }
.vis.v-low { color: var(--green-ink); } .vis.v-medium { color: var(--orange-ink); } .vis.v-high { color: #b3261e; }
.note { color: var(--ink-2); font-style: italic; }
.pill { flex: none; display: inline-flex; align-items: center; gap: 4px; margin-top: 1px; padding: 3px 9px 3px 6px; border-radius: 999px; font: 500 13px/18px var(--font); white-space: nowrap; }
.pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pill.is-open { background: var(--open-bg); color: var(--green-ink); }
.pill.is-closed { background: #eef0ec; color: #57635b; }
.pill.is-none { color: #6b766f; box-shadow: inset 0 0 0 1px #d3d9d4; }
.diff { display: inline-flex; align-items: center; gap: 6px; }
.diff i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.d-blau { --c: var(--d-blau); } .d-rot { --c: var(--d-rot); } .d-schwarz { --c: var(--d-schwarz); }

/* ---------- ski areas ---------- */
.ski { padding: 64px 0; background: var(--surface); }
.ski h2 { margin-bottom: 24px; }
.ski__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.area { background: var(--paper); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.area img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.area:not(.is-open) img { filter: saturate(.55); }
.area__body { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; flex: 1; }
.area h3 { font: 700 19px/1.25 var(--font); }
.area h3 span { display: block; font-weight: 400; font-size: 14.5px; color: var(--ink-2); margin-top: 2px; }
.area__state { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14.5px; color: var(--ink-2); }
.area__state span:not(.pill) { display: inline-flex; gap: 4px; align-items: center; }
.area__state b { color: var(--ink); }
.area__lifts { margin: 0; font-size: 14px; color: var(--ink-2); }
.more { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; font-size: 15px; margin-top: auto; }
.more svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (max-width: 1080px) { .ski__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ski__grid { grid-template-columns: 1fr; } }

/* ---------- weather ---------- */
.wx { padding: 64px 0 24px; }
.wx h2 { margin-bottom: 20px; }
.wx__scroll { overflow-x: auto; }
.wx__t { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 560px; }
.wx__t th, .wx__t td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.wx__t thead th { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.wx__t tbody th { font-weight: 600; }
.fine { font-size: 13.5px; color: var(--ink-2); margin: 10px 0 0; }

/* ---------- know + faq + footer ---------- */
.know { padding: 56px 0; }
.know__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px 48px; }
.know h2 { margin-bottom: 12px; }
.know p { margin: 0 0 10px; }
.know__diff { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-2); }
.know__diff .diff { width: 92px; font-weight: 600; color: var(--ink); }
.know a svg { width: 12px; height: 12px; margin-left: 5px; fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (max-width: 860px) { .know__grid { grid-template-columns: 1fr; } }
.faq { padding: 40px 0 72px; }
.faq h2 { margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 32px 18px 0; font-weight: 600; font-size: 18px; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 24px; width: 9px; height: 9px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq details p { margin: 0 0 20px; max-width: 70ch; color: var(--ink-2); }
.src { background: var(--night); color: var(--on-night-2); padding: 28px 0 96px; font-size: 14px; }
.src a { color: var(--on-night); }
.src a:hover { color: #fff; }

/* ---------- prototype switcher (not part of the design) ---------- */
.proto { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 14px; background: rgba(14, 32, 22, .94); color: var(--on-night-2); font: 500 13.5px var(--font); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .55); max-width: calc(100vw - 20px); overflow-x: auto; white-space: nowrap; }
.proto__t { padding: 0 8px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.proto__g { display: flex; gap: 2px; padding-left: 6px; border-left: 1px solid rgba(255, 255, 255, .14); }
.proto a { color: var(--on-night); text-decoration: none; padding: 7px 10px; border-radius: 9px; }
.proto a:hover { background: rgba(255, 255, 255, .08); }
.proto a[aria-current] { background: var(--orange); color: #241000; }
html.oh-menu-open .proto { display: none; }

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

.m-pin { transform: scale(var(--z, 1)); }
.wsb-map [hidden] { display: none; }

/* relief */
.m-relief { opacity: 1; }
.m-c { fill: none; stroke: rgba(126, 178, 140, .16); stroke-width: calc(1px * var(--z, 1)); }
.m-c--major { stroke: rgba(126, 178, 140, .34); stroke-width: calc(1.4px * var(--z, 1)); }
.m-c-lab text { fill: rgba(150, 196, 162, .8); font: 500 13px var(--font); text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: #11251a; stroke-width: 4px; font-size: calc(13px * var(--z, 1)); stroke-width: calc(4px * var(--z, 1)); }
.m-peak path { fill: rgba(236, 116, 5, .9); stroke: #0e2016; stroke-width: 2.5; }
.m-peak text { fill: #fff; font: 700 19px var(--font); paint-order: stroke; stroke: #0e2016; stroke-width: 5px; stroke-linejoin: round; }
.m-peak .m-alt { fill: var(--on-night-2); font-weight: 400; font-size: 15px; }

.m-hl { fill: none; stroke: var(--orange); stroke-linecap: round; stroke-linejoin: round; stroke-width: calc(5.5px * var(--z, 1)); pointer-events: none; opacity: 0; filter: drop-shadow(0 0 6px rgba(236, 116, 5, .8)); transition: opacity .15s; }
.m-hl.is-on { opacity: 1; }
