/* ============================================================
   Radl-Lobby GaPa — Design-System & Styles
   Farben und Schriften aus den Plakaten abgeleitet.
   Alles Zentrale steht in :root — hier ändern, wirkt überall.
   ============================================================ */

/* ---------- Schriften (selbst gehostet, kein Aufruf bei Google) ---------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Sansita";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/sansita-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Sansita";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/sansita-800-latin.woff2") format("woff2");
}

:root {
  /* Markenfarben – direkt aus den Plakaten gesampelt */
  --rl-violett:        #8E85AB;  /* Signaturviolett (Kachel-Bänder) */
  --rl-gelb:           #DBD460;  /* Akzent, Kacheln, Buttons */
  --rl-creme:          #E2D7BC;  /* Display auf dunkel, helle Flächen */
  --rl-plum:           #554469;  /* Text auf hell/gelb, Überschriften */
  --rl-schwarz:        #1C1C1F;  /* Logo-Linien, max. Kontrast */

  /* Für den Web-Einsatz abgeleitet (Kontrast & Flächen) */
  --rl-violett-dunkel: #4B4266;  /* Text-Bänder in Violett (barrierefrei) */
  --rl-creme-hell:     #F3EEE2;  /* helle Section-Fläche mit warmem Ton */
  --rl-weiss:          #FBFAF6;  /* warmes Weiß für Fließtext */

  /* Typografie */
  --rl-font-display: "Sansita", Georgia, serif;
  --rl-font-text:    "Montserrat", system-ui, -apple-system, sans-serif;

  /* Rhythmus */
  --rl-radius: 1.5rem;
  --rl-gap:    1.25rem;
  --rl-maxw:   1080px;
  --rl-topbar-h: 80px; /* Höhe der sticky Topbar, für Sprungmarken-Offset */

  /* Abstands-Skala (für Feinabstände wie im Footer statt Zufallswerten) */
  --rl-space-1: .5rem;   /*  8px */
  --rl-space-2: .75rem;  /* 12px */
  --rl-space-3: 1rem;    /* 16px */
  --rl-space-4: 1.5rem;  /* 24px */
  --rl-space-5: 2rem;    /* 32px */
  --rl-space-6: 3rem;    /* 48px */

  /* Typskala (fluid) */
  --fs-hero:    clamp(2.6rem, 7vw, 4.75rem);
  --fs-section: clamp(1.7rem, 3.6vw, 2.6rem);
  --fs-statement: clamp(1.5rem, 3.4vw, 2.35rem);
  --fs-lead:    clamp(1.1rem, 1.6vw, 1.3rem);
  --fs-body:    1.05rem;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--rl-font-text);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--rl-plum);
  background: var(--rl-weiss);
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.05; }
p { margin: 0 0 1rem; }
a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Layout-Bausteine ---------- */
.container {
  width: 100%;
  max-width: var(--rl-maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.band { padding-block: clamp(3rem, 8vw, 6rem); }
section[id] { scroll-margin-top: var(--rl-topbar-h); }
.measure { max-width: 62ch; }
.center { text-align: center; }
.center.measure { margin-inline: auto; }

/* Band-Hintergründe */
.band--light  { background: var(--rl-weiss);        color: var(--rl-plum); }
.band--cream  { background: var(--rl-creme-hell);    color: var(--rl-plum); }
.band--violet { background: var(--rl-violett);       color: var(--rl-plum); }
.band--dark   { background: var(--rl-violett-dunkel); color: var(--rl-creme); }

/* Helle Bänder bekommen immer eine feine Kante nach oben — so grenzen sich
   auch zwei aufeinanderfolgende helle Abschnitte (z. B. Weiß auf Creme) sichtbar ab. */
.band--light, .band--cream { border-top: 1px solid rgba(85, 68, 105, .12); }

/* ---------- Typo-Elemente ---------- */
.eyebrow {
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rl-plum);
  margin-bottom: .75rem;
}
.eyebrow--light { color: var(--rl-gelb); }

.section-title {
  font-family: var(--rl-font-display);
  font-weight: 800;
  font-size: var(--fs-section);
  color: var(--rl-plum);
}
.section-title--light { color: var(--rl-creme); }

.lead { font-size: var(--fs-lead); }
.lead--light { color: var(--rl-creme); }

.statement {
  font-family: var(--rl-font-display);
  font-weight: 700;
  font-size: var(--fs-statement);
  line-height: 1.15;
  margin-bottom: 1rem;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--rl-violett-dunkel);
}
.topbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .65rem;
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--rl-creme);
}
.topbar__logo {
  display: block;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--rl-creme);
  -webkit-mask: url(/assets/radl-lobby-logo.svg) center / contain no-repeat;
          mask: url(/assets/radl-lobby-logo.svg) center / contain no-repeat;
}
.topbar__wordmark {
  font-family: var(--rl-font-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 4.5vw, 1.3rem);
  line-height: 1.05;
  letter-spacing: -.01em;
}

/* ---------- Hauptnavigation ---------- */
.topbar__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 21;
}
.topbar__burger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rl-creme);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.topbar__burger[aria-expanded="true"] .topbar__burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar__burger[aria-expanded="true"] .topbar__burger-bar:nth-child(2) { opacity: 0; }
.topbar__burger[aria-expanded="true"] .topbar__burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.topbar__nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .1rem;
  background: var(--rl-violett-dunkel);
  padding: .25rem clamp(1.25rem, 5vw, 3rem) 1.5rem;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height .25s ease;
}
.topbar__nav.is-open {
  max-height: 24rem;
  visibility: visible;
}
.topbar__link {
  display: block;
  padding: .85rem 0;
  color: var(--rl-creme);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.topbar__link[aria-current="page"] { color: var(--rl-gelb); }
.topbar__cta {
  margin-top: 1rem;
  align-self: flex-start;
}

@media (min-width: 800px) {
  .topbar__burger { display: none; }
  .topbar__nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    max-height: none;
    overflow: visible;
    visibility: visible;
    background: transparent;
    padding: 0;
  }
  .topbar__link { padding: 0; border-bottom: none; }
  .topbar__link[aria-current="page"] { border-bottom: 2px solid var(--rl-gelb); }
  .topbar__cta { margin-top: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--rl-creme);
  background: var(--rl-violett-dunkel);
  min-height: clamp(30rem, 92vh, 46rem);
  min-height: clamp(30rem, 92dvh, 46rem);
  display: flex;
  align-items: center;
}
.hero__media { position: absolute; inset: 0; z-index: 0; margin: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,28,31,.55) 0%, rgba(28,28,31,.35) 45%, rgba(28,28,31,.75) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero__title {
  font-family: var(--rl-font-display);
  font-weight: 800;
  font-size: var(--fs-hero);
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--rl-creme);
}
.hero .lead { max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.5rem; }

@media (max-width: 640px) {
  .hero {
    min-height: clamp(24rem, 78vh, 32rem);
    min-height: clamp(24rem, 78dvh, 32rem);
  }
  .hero__img { object-position: center 25%; }
}

/* Kurze Viewports (z. B. Smartphone im Querformat): Banner nicht erzwingen */
@media (max-height: 480px) {
  .hero { min-height: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  background: var(--rl-gelb);
  color: var(--rl-plum);
  border: 2px solid var(--rl-gelb);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--rl-creme);
  border-color: var(--rl-creme);
}
.btn--ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: var(--rl-gap);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 2rem;
}
.grid + .center { margin-top: 2.5rem; }

/* Gelbe Kachel */
.tile {
  background: var(--rl-gelb);
  color: var(--rl-plum);
  border-radius: var(--rl-radius);
  padding: 1.6rem;
  transition: transform .15s ease;
}
.tile:hover { transform: translateY(-3px); }
.tile__title {
  font-family: var(--rl-font-display);
  font-weight: 700;
  font-size: 1.2rem;
}
.tile p { margin-bottom: .5rem; }
.tile__link {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  margin-top: .25rem;
  border-bottom: 2px solid currentColor;
}

/* Helle Karte (auf weißem Band) */
.card {
  background: var(--rl-creme-hell);
  color: var(--rl-plum);
  border: 1px solid rgba(85,68,105,.18);
  border-radius: var(--rl-radius);
  padding: 1.6rem;
}
.card__title {
  font-family: var(--rl-font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

/* ---------- Kontakt ---------- */
.mail-big {
  font-family: var(--rl-font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  margin-top: 1rem;
  word-break: break-word;
}
.mail-big a { color: var(--rl-plum); text-underline-offset: .2em; }

/* ---------- Rechtstexte (Impressum/Datenschutz) ---------- */
.legal { max-width: 68ch; }
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 {
  font-family: var(--rl-font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
}
.legal ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal li { margin-bottom: .35rem; }
.legal a { text-decoration: underline; text-underline-offset: .15em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--rl-violett-dunkel);
  color: var(--rl-creme);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand { display: flex; flex-direction: column; gap: .75rem; }
.footer-logo { width: 64px; height: 64px; }
.footer-tagline {
  margin: 0;
  max-width: 32ch;
  color: var(--rl-creme);
  opacity: .85;
  font-size: .95rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-nav a { font-weight: 600; }

.footer-nav h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.75;
}

footer a {
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-wrap: wrap; }
}

/* ---------- Fokus (Tastatur-Bedienung) ---------- */
a:focus-visible, .btn:focus-visible, .topbar__burger:focus-visible {
  outline: 3px solid var(--rl-gelb);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Seite „Unfallkarte" (/unfallkarte/)
   ============================================================ */

/* Hinweis-Kachel im dunklen Einstiegs-Band */
.callout {
  background: var(--rl-gelb);
  color: var(--rl-plum);
  border-radius: var(--rl-radius);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  max-width: 62ch;
}
.callout p { margin: 0; }

/* Kennzahlen: zwei Karten mit je zwei großen Zahlen */
.stat-grid {
  display: grid;
  gap: var(--rl-gap);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
}
.stat-card {
  background: var(--rl-creme-hell);
  border: 1px solid rgba(85,68,105,.18);
  border-radius: var(--rl-radius);
  padding: 1.75rem;
}
.stat-card__period {
  font-family: var(--rl-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}
.stat-item + .stat-item { margin-top: 1.25rem; }
.stat-item dt {
  font-size: .9rem;
  margin-bottom: .25rem;
}
.stat-item dd {
  margin: 0;
  font-family: var(--rl-font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--rl-plum);
}
.stat-note {
  margin-top: 1.5rem;
  font-size: .9rem;
}

/* Zwei-Klick-Lösung für die eingebettete uMap-Karte */
.map-embed {
  margin-top: 2rem;
}
.map-embed__placeholder {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--rl-radius);
  overflow: hidden;
}
.map-embed__img {
  display: block;
  width: 100%;
  height: clamp(420px, 70vh, 720px);
  object-fit: cover;
}
.map-embed__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
  padding: 1.5rem;
  background: rgba(28, 28, 31, .6);
}
.map-embed__notice {
  color: var(--rl-weiss);
  max-width: 46ch;
  margin: 0;
}
.map-embed__notice a {
  color: var(--rl-gelb);
  text-underline-offset: .15em;
}
.map-embed__button {
  background: var(--rl-gelb);
  color: var(--rl-plum);
  border: 2px solid var(--rl-gelb);
}
.map-embed__iframe {
  display: block;
  width: 100%;
  height: clamp(420px, 70vh, 720px);
  border: 0;
  border-radius: var(--rl-radius);
}

/* Legende unter der Karte (die uMap-eigene Legende ist mobil oft nicht sichtbar) */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}
.map-legend__item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .95rem;
}
.map-legend__marker { flex-shrink: 0; }
.map-legend__dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #E8791A;
  flex-shrink: 0;
}
.map-fullscreen-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

/* Unfallschwerpunkte im Detail */
.spot-card__label {
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .75;
}
.spot-card__numbers {
  font-family: var(--rl-font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: .5rem 0 1rem;
}

/* Methode: aufklappbarer Bereich */
.details-methode {
  margin-top: 1.5rem;
  border: 1px solid rgba(85,68,105,.18);
  border-radius: var(--rl-radius);
  padding: 1rem 1.5rem;
}
.details-methode summary {
  cursor: pointer;
  font-weight: 700;
  padding: .5rem 0;
}
.details-methode[open] summary { margin-bottom: .5rem; }
.details-methode p:last-child { margin-bottom: .5rem; }

.source-note {
  margin-top: 2rem;
  font-size: .85rem;
  opacity: .75;
}
