/* Hünsborner Sidescroll. Alle Regeln sind auf .alpenx begrenzt, damit das Theme nicht eingreift. */
.alpenx {
  --bg: #e9eef0;
  --surface: #f6f9fa;
  --ink: #12242e;
  --muted: #566a74;
  --line: #c5d0d5;
  --ridge-a: #dbe4e8;
  --ridge-b: #cddae0;
  --accent: #1d58a6;
  --peak: #c98400;
  --font-display: "Big Shoulders Display", "Arial Narrow", "Haettenschweiler", Impact, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "IBM Plex Mono", Menlo, Consolas, monospace;

  display: flex;
  flex-direction: column;
  height: min(100vh, 56rem);
  height: min(100dvh, 56rem);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
  text-align: left;
}
@media (prefers-color-scheme: dark) {
  .alpenx {
    --bg: #0e1a21; --surface: #16262f; --ink: #e6edf0; --muted: #93a7b0;
    --line: #2a3d47; --ridge-a: #132630; --ridge-b: #1a303b;
    --accent: #6fa8f0; --peak: #f0b63a;
  }
}
.alpenx--full {
  position: fixed;
  inset: 0;
  z-index: 99999;
  height: auto;
}
body.admin-bar .alpenx--full { top: 32px; }
@media (max-width: 782px) { body.admin-bar .alpenx--full { top: 46px; } }
body.hss-lock { overflow: hidden; }

.alpenx *, .alpenx *::before, .alpenx *::after { box-sizing: border-box; }
.alpenx a, .alpenx a:hover, .alpenx a:focus { color: inherit; text-decoration: none; box-shadow: none; }
.alpenx :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.alpenx button {
  font: inherit; margin: 0; text-transform: none; letter-spacing: normal;
  box-shadow: none; min-height: 0; min-width: 0; line-height: 1.2;
}
.alpenx noscript { display: block; padding: 16px; overflow: auto; }

.alpenx .ax-bar {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 12px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.alpenx .ax-brand {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.alpenx .ax-brand[data-where] { flex: none; }

.alpenx .ax-stage { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.alpenx .ax-ridge {
  position: absolute; left: 0; bottom: 0; height: 58%; width: 300%;
  z-index: 0; pointer-events: none; will-change: transform;
}
.alpenx .ax-ridge .r-a { fill: var(--ridge-a); }
.alpenx .ax-ridge .r-b { fill: var(--ridge-b); }

.alpenx .ax-track {
  position: absolute; inset: 0; z-index: 1;
  display: flex;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.alpenx .ax-track::-webkit-scrollbar { display: none; }

.alpenx .ax-screen {
  flex: 0 0 100%; min-width: 0;
  scroll-snap-align: start; scroll-snap-stop: always;
  overflow-y: auto;
  padding-block: 12px 24px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 24px 48px;
  align-content: start;
}
.alpenx .ax-screen + .ax-screen { border-left: 1px solid var(--line); }
.alpenx .ax-lead { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.alpenx .ax-kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}
.alpenx h1, .alpenx h2 {
  margin: 0; padding: 0; border: 0; color: var(--ink);
  font-family: var(--font-display); font-weight: 800;
  text-transform: uppercase; letter-spacing: .01em; line-height: .95;
  text-wrap: balance; overflow-wrap: break-word; hyphens: auto;
}
.alpenx h1::before, .alpenx h1::after, .alpenx h2::before, .alpenx h2::after { content: none; }
.alpenx h1 { font-size: clamp(2.2rem, 5.5vw, 4.5rem); }
.alpenx h2 { font-size: clamp(2.2rem, 6vw, 5rem); }
.alpenx .ax-blurb { margin: 0; max-width: 46ch; color: var(--muted); font-size: 1.05rem; }
.alpenx .ax-hint { margin: 6px 0 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.alpenx .ax-totals { display: flex; flex-wrap: wrap; gap: 4px 20px; font-family: var(--font-mono); font-size: 13px; }
.alpenx .ax-totals b { font-weight: 500; color: var(--peak); }

.alpenx .ax-profile { display: block; width: 100%; max-width: 440px; height: auto; margin-top: 4px; }
.alpenx .ax-profile .ax-cap { font-family: var(--font-mono); font-size: 11px; fill: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.alpenx .ax-profile .ax-base { stroke: var(--line); stroke-width: 1; }
.alpenx .ax-profile .ax-bar-r { fill: var(--peak); }
.alpenx .ax-profile .ax-val { font-family: var(--font-mono); font-size: 10.5px; fill: var(--ink); text-anchor: middle; }
.alpenx .ax-profile .ax-day { font-family: var(--font-mono); font-size: 10.5px; fill: var(--muted); text-anchor: middle; }

.alpenx .ax-cards {
  min-width: 0; display: grid; gap: 10px; align-content: start;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.alpenx .ax-card {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  padding: 12px 14px 14px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 6px;
  text-align: left; cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.alpenx .ax-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.alpenx .ax-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.alpenx .ax-t { font-weight: 600; font-size: 1.05rem; line-height: 1.25; overflow-wrap: anywhere; }
.alpenx .ax-s { margin-top: auto; padding-top: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.alpenx .ax-wide { grid-column: 1 / -1; }
.alpenx .ax-contents { grid-template-columns: 1fr; }
.alpenx .ax-contents .ax-card { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
.alpenx .ax-contents .ax-t { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; }
.alpenx .ax-contents .ax-s { margin: 0; padding: 0; white-space: nowrap; }

@keyframes ax-rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes ax-slide { from { opacity: 0; transform: translateX(-20px); } }
@keyframes ax-grow { from { transform: scaleY(0); } }
.alpenx .ax-in .ax-card {
  animation: ax-rise .65s cubic-bezier(.2, .7, .2, 1) backwards;
  animation-delay: calc(var(--i, 0) * 60ms + 140ms);
}
.alpenx .ax-in .ax-kicker, .alpenx .ax-in h1, .alpenx .ax-in h2,
.alpenx .ax-in .ax-blurb, .alpenx .ax-in .ax-totals, .alpenx .ax-in .ax-hint {
  animation: ax-slide .75s cubic-bezier(.2, .7, .2, 1) backwards;
}
.alpenx .ax-in h1, .alpenx .ax-in h2 { animation-delay: .08s; }
.alpenx .ax-in .ax-blurb, .alpenx .ax-in .ax-hint { animation-delay: .16s; }
.alpenx .ax-in .ax-totals { animation-delay: .24s; }
.alpenx .ax-in .ax-bar-r {
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: ax-grow .9s cubic-bezier(.2, .7, .2, 1) .3s backwards;
}

.alpenx .ax-nav {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 10px 14px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  border-top: 1px solid var(--line);
}
.alpenx .ax-arrow {
  width: 44px; height: 44px; flex: none; padding: 0;
  display: grid; place-items: center;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 50%;
  font-size: 18px; cursor: pointer;
}
.alpenx .ax-arrow:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.alpenx .ax-arrow:disabled { opacity: .35; cursor: default; }
.alpenx .ax-dots { display: flex; flex-wrap: nowrap; justify-content: center; gap: 2px; min-width: 0; }
.alpenx .ax-dot { width: 28px; height: 28px; display: grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer; }
.alpenx .ax-dot:hover, .alpenx .ax-dot:focus { background: none; }
.alpenx .ax-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: width .2s, background .2s; }
.alpenx .ax-dot[aria-current="true"]::before { width: 22px; border-radius: 4px; background: var(--accent); }

@media (max-width: 760px) {
  .alpenx .ax-screen { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .alpenx .ax-screen + .ax-screen { border-left: 0; }
  .alpenx .ax-cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .alpenx .ax-brand { font-size: 11px; }
  .alpenx .ax-brand:not([data-where]) { display: none; }
  .alpenx .ax-bar { justify-content: flex-end; }
  .alpenx .ax-dot { width: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .alpenx .ax-card { transition: none; }
  .alpenx .ax-card:hover { transform: none; }
  .alpenx .ax-in * { animation: none !important; }
}
