/* Streckenzug — Scenic Rail Journeys (self_travel-16) design system.
   REBUILT 2026-09-18 as part of the design-SYSTEM redesign initiative
   (round 4 of 6, Switzerland group) — the original system shared the same
   ink/paper/hairline CSS architecture as nearly every other site in the
   series. New system: "Fahrplan" (timetable) — a cool ice-blue-grey ground
   (not another warm cream/ivory), Fjalla One (condensed, technical/stencil
   personality) + Public Sans body + JetBrains Mono for data/labels, a
   uniform 3px radius (free value, unused elsewhere), a sticky header
   framed by a double Bahnrot-red rule (top+bottom, not a single accent
   bar or hairline), cards with NO full border — only a thick red
   bottom-accent line — rectangular solid-red buttons with a hard offset
   "sticker" shadow instead of a pill, and a dark-charcoal 3-column
   monospace-labelled footer. Compact/dense spacing throughout (technical,
   timetable feel) rather than the airy rhythm used elsewhere. Signature
   element unchanged: der Streckenvergleicher — pick exactly 2 of 4 real
   routes via toggle chips, spec-diff table with per-metric "winner"
   highlight. All class names, IDs, and data-attributes left untouched —
   only property values changed, JS behavior unaffected. */

:root {
  --sz-ink: #1c262c;
  --sz-ink-soft: #4d5b63;
  --sz-snow: #eaf0f2;
  --sz-snow-alt: #d9e3e6;
  --sz-red: #e6001f;
  --sz-red-deep: #a80017;
  --sz-ice: #6f93a0;
  --sz-ice-deep: #3f5a63;
  --sz-white: #ffffff;
  --sz-line: rgba(28, 38, 44, .14);
  --sz-line-strong: rgba(28, 38, 44, .28);
  --sz-shadow-sm: 4px 4px 0 rgba(28, 38, 44, .14);
  --sz-shadow: 6px 6px 0 rgba(28, 38, 44, .18);

  --sz-font-display: 'Fjalla One', 'Arial Narrow', sans-serif;
  --sz-font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sz-font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --sz-radius: 3px;
  --sz-radius-lg: 3px;
  --sz-shell: min(100% - 32px, 1180px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--sz-ink); background: var(--sz-snow);
  font-family: var(--sz-font-body); line-height: 1.52; font-size: 16px;
}
img { max-width: 100%; display: block; }
.sz-wrap { width: var(--sz-shell); margin-inline: auto; }
a { color: var(--sz-ice-deep); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--sz-red-deep); }
h1, h2, h3 { font-family: var(--sz-font-display); font-weight: 400; line-height: 1.12; letter-spacing: .01em; text-transform: uppercase; }

/* ---------- photo component (real <img>, object-fit from first draft) ---------- */
.sz-photo {
  position: relative; border-radius: var(--sz-radius-lg);
  background: var(--sz-snow-alt);
  aspect-ratio: var(--ar, 4/3); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.sz-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- header: double Bahnrot rule (top+bottom), no border/shadow ---------- */
.sz-header { position: sticky; top: 0; z-index: 40; background: var(--sz-white); border-top: 3px solid var(--sz-red); border-bottom: 3px solid var(--sz-red); }
.sz-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; gap: 16px; }
.sz-brand { display: flex; align-items: center; gap: 9px; font-family: var(--sz-font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: 1.1rem; color: var(--sz-ink); text-decoration: none; }
.sz-brand__mark { width: 22px; height: 22px; color: var(--sz-red); flex: none; }
.sz-nav { display: none; gap: 20px; font-size: .82rem; }
.sz-nav a { color: var(--sz-ink); text-decoration: none; font-family: var(--sz-font-mono); text-transform: uppercase; letter-spacing: .03em; font-size: .76rem; }
.sz-nav a:hover { color: var(--sz-red-deep); }
.sz-menu-toggle { background: none; border: none; color: var(--sz-ink); padding: 6px; cursor: pointer; }
.sz-menu-toggle svg { width: 24px; height: 24px; }
.sz-mobile-nav { display: none; flex-direction: column; padding: 6px 0 18px; gap: 4px; }
.sz-mobile-nav.is-open { display: flex; }
.sz-mobile-nav a { padding: 10px 4px; font-size: .95rem; border-top: 1px solid var(--sz-line); color: var(--sz-ink); text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.sz-mobile-nav a:first-child { border-top: none; }
@media (min-width: 860px) { .sz-nav { display: flex; } .sz-menu-toggle { display: none; } }

/* ---------- hero ---------- */
.sz-hero { padding: 28px 0 32px; }
.sz-eyebrow { margin: 0 0 .6rem; color: var(--sz-red-deep); font-family: var(--sz-font-mono); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; display: inline-block; }
.sz-hero h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); margin: 0 0 12px; }
.sz-hero__lede { font-size: 1rem; color: var(--sz-ink-soft); max-width: 56ch; margin: 0; }
.sz-hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }

/* ---------- hero: Fensterrahmen (panorama-window photo mask) ---------- */
.sz-hero--window .sz-window {
  position: relative; overflow: hidden; aspect-ratio: 16/8;
  border-radius: 3px;
  border: 8px solid var(--sz-ink);
  box-shadow: var(--sz-shadow);
  background: var(--sz-snow-alt);
}
.sz-window img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sz-window__sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.32) 0%, rgba(255,255,255,.08) 18%, transparent 38%);
}
.sz-window__frame {
  position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.5), inset 0 0 40px rgba(28,38,44,.18);
}
.sz-window__frame::before, .sz-window__frame::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 8px; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(28,38,44,.15);
}
.sz-window__frame::before { left: 33%; }
.sz-window__frame::after { left: 66%; }
.sz-window__caption {
  position: absolute; left: 16px; bottom: 12px; z-index: 2;
  font-family: var(--sz-font-mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase;
  color: #fff; background: rgba(28,38,44,.6); padding: 5px 10px; border-radius: var(--sz-radius);
}
.sz-hero__below { margin-top: 24px; max-width: 68ch; }
@media (min-width: 860px) { .sz-hero--window .sz-window { aspect-ratio: 21/8; } }
.sz-fact { border: none; border-bottom: 4px solid var(--sz-red); border-radius: var(--sz-radius); padding: 12px 10px; background: var(--sz-white); box-shadow: var(--sz-shadow-sm); }
.sz-fact__num { font-family: var(--sz-font-mono); font-size: 1.05rem; color: var(--sz-ice-deep); display: block; font-weight: 700; }
.sz-fact__label { font-size: .7rem; color: var(--sz-ink-soft); }

/* ---------- generic section chrome ---------- */
.sz-section { padding: 40px 0; }
.sz-section--sunk { background: var(--sz-snow-alt); }
.sz-section--dark { background: var(--sz-ink); color: var(--sz-snow); }
.sz-section--dark .sz-eyebrow { color: var(--sz-red); }
.sz-section--dark h2, .sz-section--dark h3 { color: var(--sz-white); }
.sz-section--dark .sz-section__lead { color: rgba(234,240,242,.8); }
.sz-section__head { max-width: 68ch; margin-bottom: 22px; }
.sz-section__head h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 8px; }
.sz-section__lead { color: var(--sz-ink-soft); font-size: 1rem; margin: 0; }

/* ---------- Streckenvergleicher: pick exactly 2 of 4 routes, spec-diff table (signature) ---------- */
.sz-vergleicher { background: var(--sz-white); border: none; border-bottom: 4px solid var(--sz-red); border-radius: var(--sz-radius-lg); padding: 20px 20px 24px; margin: 24px 0; box-shadow: var(--sz-shadow-sm); }
.sz-vergleicher__routes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 16px; }
@media (min-width: 640px) { .sz-vergleicher__routes { grid-template-columns: repeat(4, 1fr); } }
.sz-vergleicher__chip {
  border: 1.5px solid var(--sz-line-strong); background: var(--sz-snow); color: var(--sz-ink);
  font-family: var(--sz-font-mono); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  border-radius: var(--sz-radius); padding: 10px 8px; min-height: 44px; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease;
  text-align: center;
}
.sz-vergleicher__chip:hover { border-color: var(--sz-ice); }
.sz-vergleicher__chip.is-active { background: var(--sz-red); border-color: var(--sz-red); color: var(--sz-white); }
.sz-vergleicher__chip:disabled { opacity: .4; cursor: not-allowed; }
.sz-vergleicher__chip:focus-visible { outline: 2px solid var(--sz-red-deep); outline-offset: 2px; }
.sz-vergleicher__hint { font-size: .8rem; color: var(--sz-ink-soft); margin: 0 0 16px; }
.sz-vergleicher__empty { padding: 26px 14px; text-align: center; color: var(--sz-ink-soft); font-size: .9rem; }
.sz-vergleicher__table-wrap { overflow-x: auto; }
.sz-vergleicher table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.sz-vergleicher th, .sz-vergleicher td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--sz-line); }
.sz-vergleicher thead th { font-family: var(--sz-font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--sz-ink-soft); background: var(--sz-snow-alt); }
.sz-vergleicher th[scope="row"] { font-weight: 700; white-space: nowrap; color: var(--sz-ink-soft); font-size: .76rem; }
.sz-vergleicher td.sz-win { color: var(--sz-red-deep); font-weight: 700; }
.sz-vergleicher td.sz-win::after { content: " ▲"; font-size: .7em; }
.sz-vergleicher tbody tr:last-child td, .sz-vergleicher tbody tr:last-child th { border-bottom: none; }

/* ---------- route cards ---------- */
.sz-routes { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sz-routes { grid-template-columns: repeat(2, 1fr); } }
.sz-route-card { background: var(--sz-white); border: none; border-bottom: 4px solid var(--sz-ice-deep); border-radius: var(--sz-radius-lg); overflow: hidden; box-shadow: var(--sz-shadow-sm); transition: transform .16s ease; }
.sz-route-card:hover { transform: translate(-2px, -2px); box-shadow: var(--sz-shadow); }
.sz-route-card__body { padding: 16px 18px 20px; }
.sz-route-card h3 { font-size: 1.15rem; margin: 0 0 8px; }
.sz-route-card p { font-size: .88rem; color: var(--sz-ink-soft); margin: 0; }
.sz-route-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.sz-route-tag { display: inline-block; padding: 3px 9px; border-radius: var(--sz-radius); background: var(--sz-snow-alt); color: var(--sz-ice-deep); font-family: var(--sz-font-mono); font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.sz-route-card__link { display: inline-block; font-size: .84rem; font-weight: 700; }

/* ---------- callout ---------- */
.sz-callout { background: var(--sz-red); color: #fff; border-radius: var(--sz-radius-lg); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.sz-callout svg { width: 22px; height: 22px; color: var(--sz-white); flex: none; margin-top: 2px; }
.sz-callout strong { display: block; margin-bottom: 4px; }
.sz-callout p { margin: 0; font-size: .9rem; color: rgba(255,255,255,.92); }

/* ---------- fact strip ---------- */
.sz-facts { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin: 20px 0; }
@media (min-width: 760px) { .sz-facts { grid-template-columns: repeat(4, 1fr); } }
.sz-fact-tile { border: none; border-bottom: 4px solid var(--sz-red); border-radius: var(--sz-radius); padding: 12px 10px; background: var(--sz-white); box-shadow: var(--sz-shadow-sm); }
.sz-fact-tile__num { font-family: var(--sz-font-mono); font-size: 1.05rem; color: var(--sz-red-deep); display: block; font-weight: 700; margin-bottom: 4px; }
.sz-fact-tile__label { font-size: .76rem; color: var(--sz-ink-soft); }

/* ---------- Streckenprofil: schematic elevation profile (route detail signature) ---------- */
.sz-profile { margin: 20px 0 10px; border: none; border-bottom: 4px solid var(--sz-ice-deep); border-radius: var(--sz-radius-lg); padding: 16px 18px 12px; background: var(--sz-white); box-shadow: var(--sz-shadow-sm); }
.sz-profile__svg { width: 100%; height: auto; display: block; }
.sz-profile__path { fill: none; stroke: var(--sz-red); stroke-width: 2.5; stroke-linecap: round; }
.sz-profile__dot { fill: var(--sz-white); stroke: var(--sz-red-deep); stroke-width: 2.5; }
.sz-profile__dot--peak { fill: var(--sz-red-deep); }
.sz-profile__labels { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 4px; }
.sz-profile__label { font-size: .72rem; line-height: 1.3; }
.sz-profile__label--peak { text-align: center; }
.sz-profile__label--end { text-align: right; }
.sz-profile__label strong { display: block; font-family: var(--sz-font-display); text-transform: uppercase; letter-spacing: .01em; font-size: .9rem; color: var(--sz-ink); }
.sz-profile__label span { color: var(--sz-ink-soft); }
.sz-profile__note { margin: 10px 0 0; font-family: var(--sz-font-mono); font-size: .64rem; color: var(--sz-ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.sz-quickfacts { display: flex; flex-wrap: wrap; gap: 16px; margin: 14px 0 20px; font-size: .86rem; color: var(--sz-ink-soft); }
.sz-quickfacts strong { color: var(--sz-ink); font-family: var(--sz-font-mono); }

/* ---------- generic content prose (internal pages) ---------- */
.sz-content { max-width: 74ch; }
.sz-content h2 { font-size: 1.45rem; margin: 34px 0 12px; }
.sz-content h2:first-child { margin-top: 0; }
.sz-content h3 { font-size: 1.1rem; margin: 22px 0 10px; text-transform: none; }
.sz-content p { margin: 0 0 14px; color: var(--sz-ink); }
.sz-content ul { margin: 0 0 14px; padding-left: 22px; }
.sz-content li { margin-bottom: 6px; }
.sz-content code { font-family: var(--sz-font-mono); background: var(--sz-snow-alt); padding: 1px 6px; border-radius: 3px; font-size: .88em; }

.sz-page-hero { padding: 28px 0 8px; }
.sz-breadcrumb { font-size: .8rem; color: var(--sz-ink-soft); margin: 0 0 12px; font-family: var(--sz-font-mono); }
.sz-breadcrumb a { color: var(--sz-ink-soft); }
.sz-page-hero h1 { font-size: clamp(1.7rem, 4.4vw, 2.3rem); margin: 6px 0 10px; }
.sz-page-hero p { color: var(--sz-ink-soft); font-size: 1rem; max-width: 62ch; margin: 0; font-family: var(--sz-font-body); text-transform: none; }

.sz-legal__back { margin: 0 0 16px; font-size: .86rem; }
.sz-legal__updated { color: var(--sz-ink-soft); font-size: .82rem; margin: 0 0 22px; }

/* ---------- form ---------- */
.sz-form { max-width: 560px; }
.sz-field { margin-bottom: 14px; }
.sz-field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; }
.sz-field input, .sz-field textarea {
  width: 100%; border: 1.5px solid var(--sz-line-strong); border-radius: var(--sz-radius); padding: 12px 14px;
  font-family: var(--sz-font-body); font-size: .95rem; background: var(--sz-white); color: var(--sz-ink); min-height: 44px;
}
.sz-field textarea { min-height: 140px; resize: vertical; }
.sz-field input:focus, .sz-field textarea:focus { outline: 2px solid var(--sz-ice); outline-offset: 1px; border-color: var(--sz-ice); }
.sz-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 26px; border-radius: var(--sz-radius); font-weight: 700; font-size: .88rem; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; cursor: pointer; border: none; box-shadow: var(--sz-shadow-sm); transition: transform .14s ease, box-shadow .14s ease; }
.sz-btn--solid { background: var(--sz-red); color: #fff; }
.sz-btn--solid:hover { background: var(--sz-red); color: #fff; transform: translate(-2px, -2px); box-shadow: var(--sz-shadow); }
.sz-form__note { font-size: .8rem; color: var(--sz-ink-soft); margin-top: 4px; }

/* ---------- thanks page ---------- */
.sz-thanks { padding: 70px 0; text-align: center; }
.sz-thanks h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin: 0 0 14px; }
.sz-thanks p { color: var(--sz-ink-soft); max-width: 50ch; margin: 0 auto 24px; text-transform: none; }

/* ---------- footer: 3-column, dark charcoal, monospace data labels ---------- */
.sz-footer { background: #191f23; color: rgba(234,240,242,.82); padding: 40px 0 22px; margin-top: 16px; border-top: 3px solid var(--sz-red); }
.sz-footer__grid { display: grid; gap: 24px; grid-template-columns: 1fr; margin-bottom: 24px; }
@media (min-width: 760px) { .sz-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.sz-footer h4 { font-family: var(--sz-font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(234,240,242,.55); margin: 0 0 12px; }
.sz-footer a { display: block; color: rgba(234,240,242,.85); text-decoration: none; margin-bottom: 8px; font-size: .88rem; min-height: 22px; font-family: var(--sz-font-mono); }
.sz-footer a:hover { color: var(--sz-red); }
.sz-footer__bottom { border-top: 1px solid rgba(234,240,242,.16); padding-top: 16px; font-size: .78rem; color: rgba(234,240,242,.55); font-family: var(--sz-font-mono); }

/* ---------- cookie banner ---------- */
.sz-cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #191f23; color: var(--sz-snow); border-top: 3px solid var(--sz-red); }
.sz-cookie-banner__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; padding: 16px 0; }
.sz-cookie-banner__inner p { margin: 0; font-size: .84rem; max-width: 70ch; color: rgba(234,240,242,.86); }
.sz-cookie-banner__inner a { color: var(--sz-red); }
.sz-cookie-banner__accept { background: var(--sz-red); color: #fff; border: none; border-radius: var(--sz-radius); padding: 10px 22px; min-height: 44px; font-weight: 700; cursor: pointer; font-size: .86rem; text-transform: uppercase; letter-spacing: .03em; }
.sz-cookie-banner__accept:hover { background: var(--sz-red-deep); }
