/* --------------------------------------------------------
   Startseite: Hero, Hero-Cards, Zahlen & Fakten, Facebook
---------------------------------------------------------*/

/* HERO -------------------------------------------------- */

.hero-grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
}

.hero--start {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.hero--start .eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: var(--muted);
}

.hero--start .page-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.hero--start .lead {
  margin: 0;
  font-size: 1rem;
}

.hero-photo--start {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
  min-height: 260px;
  background: #000;
}

.hero-photo--start img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 6s ease-out;
}

.hero-photo--start img:hover {
  transform: scale(1.08);
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  }
  .hero-photo--start {
    min-height: 360px;
  }
}

/* HERO-SLIDER STARTSEITE ------------------------------------------ */

.hero-grid--slider {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 0;                /* Card-Rand weg, Bild vollflächig */
  min-height: clamp(360px, 70vh, 560px);
  box-shadow: var(--shadow-2);
  background: #000;
}

/* Hintergrund-Slider-Ebene */
.hero-grid--slider .hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid--slider .hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 3.4s ease-in-out,
    transform 10s ease-out;
}

.hero-grid--slider .hero-slide.is-active {
  opacity: 1;
  transform: scale(1.00);
}

/* Text-Overlay */
.hero-grid--slider .hero--start.hero--start-merged {
  position: relative;
  z-index: 1;
  border: none;
  box-shadow: none;
  background: linear-gradient(
    120deg,
    rgba(0, 0, 0, 0.78),
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.15) 70%,
    rgba(0, 0, 0, 0)
  );
  padding: clamp(28px, 6vw, 54px);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* Typo-Anpassungen auf dem Slider */
.hero-grid--slider .hero--start .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.hero-grid--slider .hero--start .page-title {
  color: #fff;
  font-size: clamp(2.4rem, 4vw, 3rem);
}

.hero-grid--slider .hero--start .lead,
.hero-grid--slider .hero--start .hero-subline {
  color: rgba(255, 255, 255, 0.9);
}

/* Call-to-Actions */
.hero-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Desktop: etwas mehr Breite + Inhalt nicht ganz am Rand */
@media (min-width: 960px) {

  .hero-grid.hero-grid--slider {
    padding-inline: clamp(32px, 5vw, 52px);
  }

  .hero-grid--slider .hero--start.hero--start-merged {
    max-width: 720px;
  }
}

/* HERO-KARTEN ------------------------------------------- */

.hero-card-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .hero-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hero-card-media img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.hero-card .card-body {
  padding: 12px 14px 14px 14px;
}

.hero-card h3 {
  margin: 0 0 4px 0;
  font-size: 1rem;
}

.hero-card p.small {
  margin: 0;
  font-size: 0.9rem;
}

/* ZAHLEN & FAKTEN --------------------------------------- */

.stats-band{
  position:relative;
  border-radius:8px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,0.08);
  background:linear-gradient(135deg,#b5121b,#7a0e14);
  color:#fff;
}

/* Einsatzbild dezent im Hintergrund */
.stats-band::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:url("/public/media/start-einsatz.jpg");
  background-size:cover;
  background-position:center;
  opacity:0.22;
  mix-blend-mode:screen;
  pointer-events:none;
}

.stats-band-inner{
  position:relative;
  z-index:1;
  padding:18px 16px 20px;
}

/* Überschrift + Untertitel */
.stats-header{
  margin-bottom:16px;
}

.stats-subtitle{
  color:rgba(255,255,255,0.92);
}

/* Glas/Shadow Icons + Layout */

.stats-grid{
  display:grid;
  gap:12px;
}

/* Mobile: alles untereinander, Icon links */
.stat{
  display:flex;
  align-items:center;
  gap:10px;
}

.stat-icon{
  width:54px;
  height:54px;
  border-radius:18px;
  background:rgba(255,255,255,0.12);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0;
  border:1px solid rgba(255,255,255,0.65);
  box-shadow:0 6px 18px rgba(0,0,0,0.35);
  backdrop-filter:blur(8px);
}

.stat-icon img{
  width:70%;
  height:70%;
  object-fit:contain;
  filter:invert(1) brightness(1.15);
}

.stat-value{
  font-weight:700;
  font-size:1.35rem;
  line-height:1.2;
}

.stat-label{
  font-size:0.9rem;
  color:rgba(255,255,255,0.9);
}

/* Tablet: zwei Spalten */
@media (min-width:600px){
  .stats-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px 24px;
  }
}

/* Desktop: vier Spalten, alles zentriert */
@media (min-width:960px){
  .stats-band-inner{
    padding:24px 32px 26px;
  }

  .stats-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }

  .stat{
    flex-direction:column;
    align-items:flex-start;
  }

  .stat-icon{
    margin-bottom:6px;
  }
}

/* Darkmode: Subtitle minimal abgedunkelt, Rest bleibt weiß */
html[data-theme="dark"] .stats-subtitle{
  color:rgba(255,255,255,0.88);
}


/* SOCIAL WALL: Facebook + Instagram ------------------------------------ */

.social-wall-card .card-body{
  display:flex;
  flex-direction:column;
  gap:20px;
}

/* Überschrift oben */
.social-wall-header{
  display:flex;
  flex-direction:column;
  gap:6px;
}

/* Grid: mobil untereinander, Desktop 2 Spalten */
.social-wall-grid{
  display:grid;
  gap:24px;
}

.social-column{
  display:flex;
  flex-direction:column;
}

/* Icons + Überschriften in den Spalten */
.social-column-header{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}

.social-column-header h3{
  margin:0;
  font-size:1rem;
}

.social-column-header p{
  margin:2px 0 0;
}

/* Social-Icons */
.social-icon{
  width:36px;
  height:36px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:18px;
  box-shadow:var(--shadow-1);
}

/* Facebook: Rundes F auf blauem Kreis */
.social-icon--facebook{
  background:#1877F2;
  color:#fff;
}

/* Instagram: typischer Farbverlauf */
.social-icon--instagram{
  background:radial-gradient(circle at 30% 30%, #fdf497 0, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  position:relative;
  color:transparent;
}

.social-icon--instagram .social-icon-inner{
  width:18px;
  height:18px;
  border:2px solid #fff;
  border-radius:6px;
  box-sizing:border-box;
  position:relative;
}

.social-icon--instagram .social-icon-inner::before{
  content:"";
  position:absolute;
  inset:4px;
  border-radius:999px;
  border:2px solid #fff;
}

.social-icon--instagram .social-icon-inner::after{
  content:"";
  position:absolute;
  top:4px;
  right:4px;
  width:4px;
  height:4px;
  border-radius:999px;
  background:#fff;
}

/* Iframes allgemein */
.social-feed iframe{
  display:block;
  width:100% !important;
  max-width:100%;
  border-radius:8px;
  box-shadow:var(--shadow-1);
}

/* Desktop: 2-spaltiges Layout */
@media (min-width: 900px){
  .social-wall-card{
    max-width:1100px;
    margin-left:auto;
    margin-right:auto;
  }

  .social-wall-grid{
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    align-items:flex-start;
  }

  .social-feed iframe{
    height:520px;
  }
}


/* DARKMODE-FEINHEITEN ---------------------------------- */

html[data-theme="dark"] .stats-band {
  border-color: #2a313c;
}

html[data-theme="dark"] .stat-icon {
  background: rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .fb-card--preview {
  background: radial-gradient(circle at top left,
    rgba(255, 255, 255, 0.05),
    transparent 55%
  );
}

/* DARKMODE FIX: Hero-Slider sichtbar machen ---------------------- */

/* Der Slider-Container selbst soll im Darkmode transparent bleiben,
   damit die Slides durchscheinen können */
html[data-theme="dark"] .hero-grid.hero-grid--slider{
  background: transparent !important;
}

/* Der Hero-Overlay bekommt wieder einen Verlauf statt einer vollen Fläche,
   damit rechts das Bild deutlich sichtbar bleibt */
html[data-theme="dark"] .hero-grid--slider .hero--start.hero--start-merged{
  background: linear-gradient(
    120deg,
    rgba(0, 0, 0, 0.88),
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.20) 70%,
    rgba(0, 0, 0, 0)
  ) !important;
  border: none;
  box-shadow: none;
}

/* Typo auf dem Slider im Darkmode */
html[data-theme="dark"] .hero-grid--slider .hero--start .eyebrow{
  color: rgba(255, 255, 255, 0.78);
}

html[data-theme="dark"] .hero-grid--slider .hero--start .page-title{
  color: #fff;
}

html[data-theme="dark"] .hero-grid--slider .hero--start .lead,
html[data-theme="dark"] .hero-grid--slider .hero--start .hero-subline{
  color: rgba(255, 255, 255, 0.9);
}
