/* Minimal CSS-Modul: Willkommen-Seite (grauer Hintergrund) */
/* Zweck: Neutrale, leere Startfläche für den neuen Willkommen-Flow */

html, body {
  height: 100%;
}

body {
  margin: 0;
  font: 400 15px/1.55 "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial; 
  color: #e9edf2; 
  -webkit-font-smoothing: antialiased;
  background: transparent;
}
/* Vollflächiger Hintergrund-Container für Video */
.welcome-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1; /* liegt unter dem Seiteninhalt */
  background: #5b5c5d; /* Fallback-Farbe */
}

/* Hintergrundvideo: unscharf, abgedeckt, ohne Interaktion */
.welcome-background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  /* leichter Weichzeichner für dezente Unschärfe */
  filter: blur(8px);
  -webkit-filter: blur(8px);
  will-change: filter;
  pointer-events: none; /* keine Klicks abfangen */
  z-index: 0;
}

/* Optionaler Overlay: dezente Grundabdunklung fürs Video */
.welcome-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.06);
  z-index: 1;
}

/* Viewport-Vignette: oben dunkel → Mitte hell; unten via ::after bei Sichtbarkeit */
.welcome-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  /* Deutlich dunklere, lange Vignette nach unten (härtere Kante oben) */
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,1.000) 0%,
    rgba(0,0,0,1.000) 1%,
    rgba(0,0,0,0.960) 3%,
    rgba(0,0,0,0.900) 6%,
    rgba(0,0,0,0.820) 10%,
    rgba(0,0,0,0.700) 16%,
    rgba(0,0,0,0.520) 24%,
    rgba(0,0,0,0.360) 34%,
    rgba(0,0,0,0.220) 46%,
    rgba(0,0,0,0.120) 58%,
    rgba(0,0,0,0.070) 66%,
    rgba(0,0,0,0.035) 76%,
    rgba(0,0,0,0.015) 86%,
    rgba(0,0,0,0.000) 96%
  );
}

/* Untere Vignette als Overlay mit sanfter Opacity-Transition */
.welcome-vignette::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0; /* standard: ausgeblendet */
  will-change: opacity;
  transition: opacity 900ms ease; /* längeres, weicheres Ein-/Ausblenden */
  /* Deutlich dunklere, lange Vignette nach oben (härtere Kante unten) */
  background: linear-gradient(
    to top,
    rgba(0,0,0,1.000) 0%,
    rgba(0,0,0,1.000) 1%,
    rgba(0,0,0,0.960) 3%,
    rgba(0,0,0,0.900) 6%,
    rgba(0,0,0,0.820) 10%,
    rgba(0,0,0,0.700) 16%,
    rgba(0,0,0,0.520) 24%,
    rgba(0,0,0,0.360) 34%,
    rgba(0,0,0,0.220) 46%,
    rgba(0,0,0,0.120) 58%,
    rgba(0,0,0,0.070) 66%,
    rgba(0,0,0,0.035) 76%,
    rgba(0,0,0,0.015) 86%,
    rgba(0,0,0,0.000) 96%
  );
}
.welcome-vignette.bottom-on::after { opacity: 1; }

/* Inhaltsebene über dem Hintergrund */
.welcome-page {
  position: relative;
  min-height: 100%;
  display: block; /* natürlicher Dokumentenfluss */
  padding-bottom: 16vh; /* Luft am Ende */
  background: none; /* Vignette wandert in ::before Overlay */
}

/* Content-gebundene, sehr weiche Vignette: oben/unten dunkel, Mitte hell */
.welcome-page::before { content: none; }

/* Solo-Headline (ohne Card) oben auf der Seite */
.welcome-headline {
  width: min(1100px, 92vw);
  margin: 11vh auto 11vh; /* symmetrischer Abstand: oben = unten */
  text-align: center;
}

/* Verhindere doppelten Abstand: Wenn direkt nach der Headline ein Block kommt,
   der selbst einen oberen Rand hat, setze diesen auf 0. So entspricht der
   Abstand nach unten exakt dem oberen Abstand zur Topbar. */
.welcome-headline + .welcome-hero,
.welcome-headline + .welcome-grid,
.welcome-headline + .welcome-duo {
  margin-top: 0;
}

@media (max-width: 640px) {
  /* Auf kleineren Displays etwas kompakter, aber weiterhin symmetrisch */
  .welcome-headline { margin: 8vh auto 8vh; }
}

/* Intro-Block als gläserne Pille unter der Headline */
/* Intro-Grid (2 Spalten → 1 Spalte responsiv) */
.welcome-grid {
  width: min(1100px, 94vw);
  margin: 8px auto 5.5vh; /* größerer Abstand zum nächsten Block */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.welcome-grid .welcome-card {
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(20, 23, 28, 0.68); /* weniger transparent */
  border: 1px solid rgba(255,255,255,0.28);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
  /* leichter, subtiler Schatten */
  box-shadow: 0 8px 24px -16px rgba(0,0,0,0.45), 0 2px 8px -6px rgba(0,0,0,0.35);
}
.card-intro .welcome-subtext {
  margin: 0;
  font-size: 15px;
}

/* Dekoratives Game-Icon in der Karte (oben rechts, leicht verschwommen) */
.welcome-card { position: relative; }
.welcome-card .card-deco.game-icon {
  position: absolute;
  top: 16px;
  right: -8px;
  width: 96px;
  height: 96px;
  object-fit: contain;
  opacity: 0.28;
  filter: blur(5px) saturate(110%);
  -webkit-filter: blur(5px) saturate(110%);
  transform: rotate(18deg);
  transform-origin: top right;
  pointer-events: none;
}

/* Dekoratives Howto-Icon (gleiches Styling wie Game-Icon) */
.welcome-card .card-deco.howto-icon {
  position: absolute;
  top: 16px;
  right: -8px;
  width: 96px;
  height: 96px;
  object-fit: contain;
  opacity: 0.28;
  filter: blur(5px) saturate(110%);
  -webkit-filter: blur(5px) saturate(110%);
  transform: rotate(18deg);
  transform-origin: top right;
  pointer-events: none;
}

/* Dekoratives Icon für die Erkundungs-Karte */
.welcome-card .card-deco.explore-icon {
  position: absolute;
  top: 16px;
  right: -8px;
  width: 96px;
  height: 96px;
  object-fit: contain;
  opacity: 0.28;
  filter: blur(5px) saturate(110%);
  -webkit-filter: blur(5px) saturate(110%);
  transform: rotate(18deg);
  transform-origin: top right;
  pointer-events: none;
}

/* Moderner Welcome-Hero unter der Topbar */
.welcome-hero {
  width: min(940px, 92vw);
  margin: 2vh auto 9vh; /* etwas mehr Abstand nach unten */
}

/* Grid in der Hero-Card: Features links, Howto rechts */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  align-items: start;
}
.hero-grid .hero-col { text-align: left; }
.hero-grid .welcome-features {
  margin-top: 2px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
}
.hero-grid .welcome-features li,
.welcome-section .welcome-features li {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: start;
  gap: 10px;
  padding: 2px 0;
}
.hero-grid .welcome-features li::before,
.welcome-section .welcome-features li::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-block;
  background: url('../assets/ui/häkchen.png') center/18px 18px no-repeat,
              linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 6px 16px -8px rgba(0,0,0,0.55), 0 0 12px rgba(207,231,255,0.35);
}
.welcome-hero .howto-title {
  display: inline-block;
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(20,23,28,0.45);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.20);
  font-size: 18px;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Zweiter Intro-Block als gläserne Card */
/* (entfallen) frühere Einzelblöcke .welcome-intro / .welcome-block ersetzt durch Grid */

@media (max-width: 860px) {
  .welcome-grid {
    grid-template-columns: 1fr;
  }
}

.welcome-card {
  padding: 28px 28px 24px;
  border-radius: 18px;
  background: rgba(20, 23, 28, 0.70); /* weniger transparent */
  border: 1px solid rgba(255,255,255,0.30); /* etwas klarer */
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  backdrop-filter: blur(22px) saturate(120%);
  color: #eef1f5;
  /* leichter, subtiler Schatten */
  box-shadow: 0 10px 26px -18px rgba(0,0,0,0.45), 0 2px 10px -6px rgba(0,0,0,0.35);
  /* Standard: sichtbar ohne JS/Observer */
  opacity: 1;
  transform: none;
  filter: none;
  will-change: auto;
  transition: none;
}

/* Nur für die große Feature-Karte im Duo-Block: Inhalt strecken, Buttons unten */
.welcome-duo > .welcome-card {
  display: flex;
  flex-direction: column;
}
.welcome-duo > .welcome-card .section-subtext,
.welcome-duo > .welcome-card .welcome-features,
.welcome-duo > .welcome-card .welcome-note {
  margin-bottom: 16px;
}
.welcome-duo > .welcome-card .welcome-actions {
  margin-top: auto; /* schiebt die Button-Gruppe nach unten */
}

/* Zusätzliche Sektionen für Scroll-Flow */
.welcome-section {
  width: min(980px, 94vw);
  margin: 0 auto 10vh; /* Blöcke weiter auseinander */
}

/* Duo-Block: zwei Cards nebeneinander */
.welcome-duo {
  width: min(1100px, 94vw);
  margin: 0 auto 10vh; /* mehr Abstand nach unten */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.welcome-stack {
  display: grid;
  grid-template-rows: auto auto;
  gap: 18px;
  align-content: start;
}
.welcome-duo .welcome-card { padding: 24px; }
/* Kompatibilität: falls .is-visible gesetzt wird, bleibt alles sichtbar */
.welcome-card.is-visible { opacity: 1; transform: none; filter: none; }
.welcome-duo .section-title.howto-title {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(20,23,28,0.45);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.20);
}
.welcome-duo .welcome-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
}
.welcome-duo .welcome-features li {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: start;
  gap: 10px;
  padding: 2px 0;
}
.welcome-duo .welcome-features li::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-block;
  background: url('../assets/ui/häkchen.png') center/18px 18px no-repeat,
              linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 6px 16px -8px rgba(0,0,0,0.55), 0 0 12px rgba(207,231,255,0.35);
}

@media (max-width: 980px) {
  .welcome-duo { grid-template-columns: 1fr; }
}

.section-icon {
  width: 20px;
  height: 20px;
  opacity: 0.9;
  vertical-align: -3px;
  margin-right: 6px;
}

.section-subtext {
  margin: 0 0 12px;
  font: 500 15px/1.6 "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  color: #dbe0e6;
}

/* Step-Liste */
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 700ms cubic-bezier(.22,.61,.36,1) var(--step-delay, 0ms),
              transform 700ms cubic-bezier(.22,.61,.36,1) var(--step-delay, 0ms);
}
.step-num {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 800 15px/1 "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  color: #f5f7fa;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24), 0 8px 18px -12px rgba(0,0,0,0.6);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
  transform: scale(0.85);
}
.step-text {
  color: #dee3e9;
  font: 500 15px/1.6 "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
}

.step.is-visible { opacity: 1; transform: translateY(0); }
/* Deutliche, sequentielle Glow-Animation: 1 → 2 → 3 → 4 → 5 (wiederkehrend) */
.step.is-visible .step-num {
  animation:
    stepPop 700ms cubic-bezier(.22,.61,.36,1) var(--step-delay, 0ms) both,
    /* Dauer = Anzahl Schritte * Gap (Fallback 5s bei fehlender Var-Auswertung) */
    cascadeGlow calc(var(--cascade-gap, 1s) * var(--steps-total, 5)) linear var(--cascade-delay, 0s) infinite;
}

/* Offsets für die Kaskade (sichtbar von oben nach unten) */
#howto-steps { --cascade-gap: 1s; --steps-total: 5; }
#howto-steps .step:nth-child(1) .step-num { --cascade-delay: calc(0 * var(--cascade-gap)); }
#howto-steps .step:nth-child(2) .step-num { --cascade-delay: calc(1 * var(--cascade-gap)); }
#howto-steps .step:nth-child(3) .step-num { --cascade-delay: calc(2 * var(--cascade-gap)); }
#howto-steps .step:nth-child(4) .step-num { --cascade-delay: calc(3 * var(--cascade-gap)); }
#howto-steps .step:nth-child(5) .step-num { --cascade-delay: calc(4 * var(--cascade-gap)); }

@keyframes stepPop {
  0% { transform: scale(0.8); opacity: 0.6; }
  60% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes cascadeGlow {
  /* Grundzustand */
  0%, 4% {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.24), 0 8px 18px -12px rgba(0,0,0,0.6);
    background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
    border-color: rgba(255,255,255,0.22);
    transform: scale(1);
  }
  /* Anlaufen des Glows */
  8% {
    box-shadow: 0 0 16px 6px rgba(207,231,255,0.40), inset 0 1px 0 rgba(255,255,255,0.28);
    background: linear-gradient(180deg, rgba(255,255,255,0.20), rgba(255,255,255,0.10));
    border-color: rgba(255,255,255,0.30);
    transform: scale(1.04);
  }
  /* Peak des Glows */
  12% {
    box-shadow: 0 0 28px 12px rgba(207,231,255,0.55), inset 0 1px 0 rgba(255,255,255,0.30);
    background: linear-gradient(180deg, rgba(255,255,255,0.26), rgba(255,255,255,0.14));
    border-color: rgba(255,255,255,0.38);
    transform: scale(1.08);
  }
  /* Nachleuchten (sanftes Abklingen) */
  18% {
    box-shadow: 0 0 20px 9px rgba(207,231,255,0.42), inset 0 1px 0 rgba(255,255,255,0.28);
    background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.12));
    border-color: rgba(255,255,255,0.30);
    transform: scale(1.03);
  }
  24% {
    box-shadow: 0 0 12px 4px rgba(207,231,255,0.32), inset 0 1px 0 rgba(255,255,255,0.26);
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.09));
    border-color: rgba(255,255,255,0.26);
    transform: scale(1.01);
  }
  28%, 100% {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.24), 0 8px 18px -12px rgba(0,0,0,0.6);
    background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
    border-color: rgba(255,255,255,0.22);
    transform: scale(1);
  }
}

/* Kompaktere „So funktioniert’s“-Sektion und verschwommener Titel-Hintergrund */
.welcome-section[aria-labelledby="howto-title"] .welcome-card {
  padding: 20px 20px 16px;
  border-radius: 16px;
}
.welcome-section[aria-labelledby="howto-title"] .section-title {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(20,23,28,0.45);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.20);
}

/* Reduced Motion: Animationen abschalten */
@media (prefers-reduced-motion: reduce) {
  .step { opacity: 1; transform: none; transition: none; }
  .welcome-card { opacity: 1; transform: none; filter: none; transition: none; }
  .step-num { animation: none !important; }
}

.section-title {
  margin: 0 0 14px;
  font: 700 22px/1.3 "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  color: #eef1f5;
}
.section-title.section-title--sm {
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 18px;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 860px) {
  .section-grid { grid-template-columns: 1fr; }
}

.welcome-title-lg {
  margin: 0 auto 12px;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  font-weight: 300; /* leichter Look wie im Beispiel */
  font-size: 56px;
  line-height: 1.12;
  letter-spacing: 0.3px;
  color: #f5f7fa;
  text-align: center;
  /* Zurück zu reinem Text ohne Box */
  display: inline;
  position: static;
  text-shadow:
    /* Entfernte Kante, nur weiche Hintergrundschatten */
    0 4px 10px rgba(0,0,0,0.72),
    0 14px 32px rgba(0,0,0,0.65),
    0 34px 80px rgba(0,0,0,0.58);
}

.welcome-title-caps { text-transform: uppercase; letter-spacing: 1.6px; font-weight: 700; }
.welcome-headline .welcome-title-caps { display: inline; white-space: normal; overflow: visible; border-right: 0; }
.welcome-title-sub {
  margin: 2px 0 18px;
  font: 600 18px/1.35 "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: #e7ebf1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.55);
 }.welcome-subtext {
  margin: 0 0 16px;
  font: 500 16px/1.6 "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  color: #dbe0e6;
}

.welcome-note {
  margin: 0;
  font: 500 15px/1.6 "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  color: #cdd3db;
}

/* Feature-Liste (dezent, modern) */
.welcome-features {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
.welcome-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #dee3e9;
  font: 500 15px/1.6 "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
}
.welcome-features li::before {
  content: "";
  display: inline-block;
  margin-top: 2px;
  width: 18px;
  height: 18px;
  background-size: 18px 18px;
  background-repeat: no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}

/* Spezifische Icons in der Feature-Liste der Welcome-Seite */
.welcome-features li.feature-3d::before { background-image: url('../assets/ui/3D.png'); }
.welcome-features li.feature-game::before { background-image: url('../assets/ui/game.png'); }
.welcome-features li.feature-win::before { background-image: url('../assets/ui/win.png'); }

/* Button-Gruppe unter dem Text */
.welcome-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  text-decoration: none;
  font: 600 14px/1 "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  letter-spacing: 0.2px;
  transition: 160ms ease;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  color: #eef1f5;
  box-shadow: 0 10px 26px -14px rgba(0,0,0,0.55);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
}
.btn .btn-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.28);
}
.btn-secondary {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
}

@media (max-width: 640px) {
  .welcome-card { padding: 22px 18px; border-radius: 14px; }
  .welcome-title-lg { font-size: 30px; }
  .welcome-subtext { font-size: 15px; }
  .welcome-note { font-size: 14px; }
  .welcome-features { grid-template-columns: 1fr; }
  .btn { height: 36px; border-radius: 10px; }
}

/* Zentrierung nur im Hero-Block */
.welcome-hero .welcome-card { text-align: center; }
.welcome-hero .welcome-subtext,
.welcome-hero .welcome-note { text-align: center; }

@media (max-width: 1024px) {
  .welcome-title-lg { font-size: 44px; }
}

@media (min-width: 1360px) {
  .welcome-title-lg { font-size: 64px; }
}

/* ===================== Footer ===================== */
.site-footer {
  margin-top: 8vh; /* Platz zwischen Inhalt und Footer */
  background: transparent; /* kein eigener Hintergrund */
  color: #dbe0e6; /* wie oben im Content */
}
.footer-wrap {
  width: min(1100px, 94vw);
  margin: 0 auto;
  padding: 36px 0 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr; /* Brand | Links | Rechtliches | Besucher */
  gap: 24px 30px;
  align-items: start;
}
.footer-brand-row { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 72px; height: 72px; border-radius: 0; box-shadow: none; object-fit: contain; background: transparent; }
.footer-logo--feuerwehr { width: 160px; height: 160px; }
.footer-logo.alt { margin-left: 8px; }
.footer-brand-name { font: 700 18px/1 "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial; color: #eef1f5; }
.footer-headline { margin:0; font:800 22px/1.2 "Inter",system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial; color:#eef1f5; display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.footer-headline .brand-word{display:inline-flex;white-space:nowrap;}
.footer-headline .footer-tagline{font:600 20px/1.15 "Inter";white-space:nowrap;}
@media (max-width:760px){
  .footer-headline{flex-direction:column;align-items:flex-start;gap:4px;}
  .footer-headline .footer-tagline{font-size:16px;}
}
.footer-headline-icon { width: 48px; height: 48px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35)); }
.footer-social { display: flex; align-items: center; gap: 12px; }
.social-link { color: #e9edf2; text-decoration: none; font-weight: 600; opacity: 0.9; display: inline-flex; align-items: center; gap: 8px; }
.social-icon { width: 18px; height: 18px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35)); }
.social-link:hover { opacity: 1; text-decoration: underline; }

.footer-title { margin: 0 0 10px; color: #eef1f5; font: 700 16px/1.3 "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial; display: flex; align-items: center; gap: 8px; }
.footer-title-icon { width: 16px; height: 16px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35)); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-list a { color: #dbe0e6; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.footer-list a:hover { color: #ffffff; text-decoration: underline; }
.footer-link-icon { width: 16px; height: 16px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35)); opacity: 0.95; }

.footer-divider { margin: 28px 0 12px; border: none; border-top: 1px solid rgba(255,255,255,0.10); }
.footer-bottom { color: #dbe0e6; font: 600 13px/1.8 "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial; }
.footer-credits { color: #aab2bb; font: 500 12px/1.8 "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial; }
.footer-credits a { color: #cfd3d8; text-decoration: none; }
.footer-credits a:hover { color: #ffffff; text-decoration: underline; }

/* Links/Rechtliches weiter nach unten schieben */
.footer-col { margin-top: 80px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col { margin-top: 48px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-wrap { padding: 28px 0 18px; }
  .footer-logo { width: 48px; height: 48px; }
  .footer-logo--feuerwehr { width: 112px; height: 112px; }
  .footer-col { margin-top: 26px; }
}

/* Besucherzähler (Downbar) */
#visitor-counter li {
  color: #dbe0e6;
  font: 600 13px/1.6 "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
}
  /* Kompaktere Variante (Abstände REDUZIERT) */
  .site-footer .footer-headline { display:inline-flex; align-items:center; gap:4px; flex-wrap:wrap; }
  .site-footer .footer-headline .footer-headline-icon { margin-right:2px; }
  .site-footer .footer-headline .brand-colon { padding:0 0.08ch; }
  .site-footer .footer-headline .brand-resq, .site-footer .footer-headline .brand-view { letter-spacing:0; font-size:1.02em; }
  .site-footer .footer-headline .brand-word { white-space: nowrap; display:inline-flex; align-items:center; }
