/* AlpiCheck – gemeinsames Stylesheet für alle Seiten (Gestaltung nach Entwurf B „Abend vor der Tour“).
   Farben wie in der App (DesignSystem/Theme.swift): Navy #1B3A5C, Akzent #C2410C; EAWS-Farben nur für Gefahrenstufen.
   Immer hell wie die App, kein automatischer Dunkelmodus. */
:root {
  --bg: #F6F8FA;
  --bg2: #ECF0F4;
  --surface: #FFFFFF;
  --text: #1B1E23;
  --muted: #565C65;
  --navy: #1B3A5C;
  --navy-soft: #A9C7E8;   /* Nebentext auf Navy */
  --on-navy: #EBEDF0;
  --accent: #B93C0B;
  --emergency: #B3261E;
  --line: rgba(27, 58, 92, .14);
  --shadow: 0 .25rem .75rem rgba(27, 58, 92, .08), 0 1px 2px rgba(27, 58, 92, .06);
  --eaws1: #CCFF66; --eaws2: #FFFF00; --eaws3: #FF9900; --eaws4: #FF0000; --eaws5: #000000;
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { color: var(--navy); }
h1 { font-size: clamp(2.125rem, 4.6vw, 3.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
h3 { font-size: 1.1875rem; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
p { max-width: 38rem; }
.tnum { font-variant-numeric: tabular-nums; }
.small { font-size: .9375rem; color: var(--muted); }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 30rem) { .wrap { padding: 0 1rem; } }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--surface); color: var(--navy); padding: .5rem .75rem; z-index: 100; }
.skip:focus { left: .5rem; }

/* Kopfzeile: Navy, geht auf der Startseite nahtlos in den Einstieg über */
.site-head { position: relative; z-index: 50; background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-head :focus-visible, .hero :focus-visible, .site-foot :focus-visible { outline-color: #fff; }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -.02em; }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: .55rem; }
.head-nav { display: flex; align-items: center; gap: 1.6rem; }
.head-nav a { color: #fff; text-decoration: none; font-size: .9375rem; font-weight: 500; padding: .5rem 0; }
.head-nav a:hover { text-decoration: underline; }
.head-nav a.head-store { padding: 0; }
.head-store img { height: 2.5rem; width: auto; }
@media (max-width: 48rem) { .head-nav a:not(.head-store) { display: none; } }

/* Unterseiten: kurzer Navy-Abschluss mit Bergkante unter der Kopfzeile */
body:has(main.doc) .site-head { border-bottom: 0; }
body:has(main.doc) .site-head::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 2.5rem;
  background: var(--navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V38L1245 22L1104 40L960 18L823 36L677 10L530 34L390 16L258 38L135 28L0 40Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V38L1245 22L1104 40L960 18L823 36L677 10L530 34L390 16L258 38L135 28L0 40Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}

/* Einstieg */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); padding: 5rem 0 9rem; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3.5rem; align-items: center; }
.hero h1 { color: #fff; }
.hero-kicker { color: var(--navy-soft); font-size: .9375rem; font-weight: 600; margin-bottom: 1rem; }
.hero .intro { font-size: 1.125rem; line-height: 1.65; margin: 1.5rem 0 2rem; max-width: 36rem; }
.badge-link { display: inline-block; border-radius: .5rem; }
.badge-link img { height: 3.25rem; width: auto; }
.hero-meta { margin-top: 1rem; font-size: .9375rem; color: var(--navy-soft); }
.hero-phones { position: relative; min-height: 34rem; }
.hero-phones .phone { position: absolute; width: 15.25rem; box-shadow: 0 0 0 2px #4A515B, 0 1.5rem 3.5rem rgba(0, 0, 0, .35); }
.phone-back { top: 0; left: 4%; transform: rotate(-3deg); }
.phone-front { top: 2.5rem; right: 2%; transform: rotate(2.5deg); }
.ridge { position: absolute; z-index: 1; left: 0; right: 0; bottom: -1px; width: 100%; height: 6.5rem; color: var(--bg); }
@media (max-width: 56rem) {
  .hero { padding: 3.5rem 0 7rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-phones { min-height: 0; display: flex; justify-content: center; gap: 0; padding: .5rem 0 1rem; }
  .hero-phones .phone { position: relative; inset: auto; width: min(46%, 13rem); }
  .phone-back { margin-right: -1.5rem; }
  .phone-front { margin-top: 2rem; }
  .ridge { height: 4rem; }
}

/* Telefon-Bilder */
/* iPhone-Rahmen rein per CSS: schwarzer Rand als Display-Einfassung, feiner Ring als Gehäusekante */
.phone { width: 16rem; border-radius: 2.75rem; border: .55rem solid #121417; background: #121417; box-shadow: 0 0 0 2px #4A515B, 0 1.25rem 2.5rem -1rem rgba(27, 58, 92, .35); }

/* Abschnitte im Wechsel hell/grau, Inhalte auf weißen Karten */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg2); }
.card { background: var(--surface); border-radius: 1.25rem; box-shadow: var(--shadow); }
.card-pad { padding: 3rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; align-items: center; }
.card.split { padding: 3rem 3.5rem; }
.split-text > * + * { margin-top: 1rem; }
.split-text h2 + * { margin-top: 1.25rem; }
.split-text h3 { margin-top: 2rem; }
.split-shot { justify-self: center; }
.card-pad > * + * { margin-top: 1rem; }
@media (max-width: 56rem) {
  .section { padding: 3.5rem 0; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .card.split, .card-pad { padding: 2rem 1.5rem; }
}
@media (max-width: 30rem) { .card.split, .card-pad { padding: 1.75rem 1.25rem; } }

/* Stufen-Abzeichen wie in der App */
.level-badge { display: inline-flex; flex-direction: column; background: var(--eaws3); color: #000; border-radius: .6rem; padding: .55rem .9rem; line-height: 1.25; }
.level-badge small { font-size: .8125rem; font-weight: 600; }
.level-badge strong { font-size: 1.0625rem; }

/* EAWS-Skala als runde Punkte wie auf der Karte der App */
.scale { margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.scale ol { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.scale li { display: inline-flex; align-items: center; gap: .6rem; font-weight: 550; color: var(--text); }
.dot { width: 2.5rem; height: 2.5rem; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(17, 19, 23, .18); color: #000; font-weight: 700; font-variant-numeric: tabular-nums; }
.level-1 { background: var(--eaws1); }
.level-2 { background: var(--eaws2); }
.level-3 { background: var(--eaws3); }
.level-4 { background: var(--eaws4); }
.level-5 { background: var(--eaws5); color: #fff; box-shadow: 0 0 0 2px var(--eaws4); }
.scale figcaption { margin-top: 1.25rem; }

/* Werkzeuge: Raster mit feinen Trennlinien */
#gelaende h2 { margin-bottom: 2rem; }
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border-radius: 1.25rem; box-shadow: var(--shadow); overflow: hidden; }
.tools > div { padding: 1.75rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: 0 0 -1px -1px; }
.tools dt { font-weight: 700; color: var(--navy); }
.tools dd { margin-top: .4rem; font-size: .9375rem; color: var(--muted); }
@media (max-width: 56rem) { .tools { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36rem) { .tools { grid-template-columns: 1fr; } .tools > div { padding: 1.4rem 1.25rem; } }

/* Notrufnummern: 112 hervorgehoben, dann die Bergrettungen */
.numbers { list-style: none; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.25rem 1.75rem; }
.split-text .numbers { margin: 1.75rem 0 2rem; }
.numbers li { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.numbers b { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--navy); font-variant-numeric: tabular-nums; padding: .55rem 0; }
.numbers span { font-size: .8125rem; color: var(--muted); max-width: 8rem; line-height: 1.3; }
.numbers .n112 b { background: var(--emergency); color: #fff; border-radius: 999px; padding: .55rem 1.3rem; }
.numbers .n112 span { padding-left: 1.3rem; }

/* Grenzen */
.section-limits { background: rgba(27, 58, 92, .07); padding: 4rem 0; }
.section-limits h2 { margin-bottom: 1rem; }
.section-limits p { font-size: 1.125rem; max-width: 44rem; }

/* Pro */
#pro h2 { margin-bottom: 2rem; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.plan { padding: 2.25rem; }
.plan h3 { margin-bottom: .6rem; }
.plan:last-child { box-shadow: var(--shadow), inset 0 3px 0 var(--navy); }
.plans-note { margin-top: 1.5rem; }
@media (max-width: 40rem) { .plans { grid-template-columns: 1fr; } .plan { padding: 1.75rem 1.5rem; } }

/* Quellen */
.sources-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; align-items: start; }
.sources { display: grid; gap: 1.5rem; margin: 1.75rem 0; }
.sources dt { font-weight: 700; color: var(--navy); }
.sources dd { margin-top: .3rem; font-size: .9375rem; max-width: 44rem; }
.privacy-card { padding: 2rem; }
@media (max-width: 56rem) { .sources-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Fuß */
.site-foot { background: var(--navy); color: var(--on-navy); padding: 3.5rem 0 4rem; }
.site-foot .brand { flex: none; }
.foot-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .14); margin-bottom: 2rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.foot-links a { display: inline-block; padding: .3rem 0; color: #fff; font-size: .9375rem; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-copy { font-size: .8125rem; color: var(--navy-soft); max-width: 46rem; }
.foot-en { margin-top: 1.25rem; font-size: .9375rem; color: var(--on-navy); max-width: 42rem; }

/* Rechtstexte und Support */
.doc { max-width: 46rem; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.doc h1 { font-size: clamp(1.875rem, 4vw, 2.5rem); margin-bottom: .5rem; }
.doc h2 { font-size: 1.3125rem; margin-top: 2.25rem; margin-bottom: .75rem; }
.doc h3 { margin-top: 1.5rem; margin-bottom: .5rem; }
.doc p, .doc li { margin-bottom: .75rem; }
.doc ul { padding-left: 1.25rem; }
.doc hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.doc .date { font-size: .875rem; color: var(--muted); margin-bottom: 1.5rem; }
.doc .lang { margin-bottom: 1rem; font-size: .9375rem; }
.contact { background: var(--surface); border-radius: 1rem; box-shadow: var(--shadow); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.contact p:last-child { margin-bottom: 0; }
