/*
 * ebu.css — Projektspezifische Anpassungen
 *
 * Diese Datei wird als letzte Stylesheet-Ressource geladen und überschreibt
 * alle vorherigen Regeln. Sie wird nicht durch Updates überschrieben.
 */

/* ============================================================
   Body-Hintergrund (Kachelmuster)
   ============================================================ */
body {
  background-image: url(/media/Template/background.png);
  background-repeat: repeat;
}

/* ============================================================
   Hero-Bereich: Hintergrund erstreckt sich über Header + Quicklinks
   ============================================================

   .page-hero-wrapper umschließt Header und den kompletten Seiteninhalt.
   Das ::before-Pseudo-Element erzeugt eine Hintergrundschicht fester Höhe,
   die hinter Header und Quicklinks liegt, aber nicht über den restlichen
   Seiteninhalt hinausgeht.

   ANPASSEN: Ändere "500px" auf die tatsächliche Höhe von
   Header + Quicklinks-Bereich (Standardwert: ~64px Header + 400px Quicklinks).
   ============================================================ */

.page-hero-wrapper {
  position: relative;
  isolation: isolate; /* eigener Stacking-Context: schützt interne z-index */
}

.page-hero-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 500px; /* ← ANPASSEN: Gesamthöhe des Hero-Bereichs */
  background-image: url(/media/Template/Header_Background_light.png);
  background-repeat: no-repeat;
  background-position: top right;
  background-size: contain;
  z-index: -1;
  pointer-events: none;
}

/* Header: eigenen Hintergrund entfernt – wird jetzt vom Wrapper übernommen */
header {
  background-image: none;
  margin-bottom:80px;
}

/* Quicklinks: transparent – Hintergrund vom Hero-Wrapper scheint durch */
.quicklinks {
  background: transparent !important;
  /* min-height: 300px; */
}

/* Quicklinks – Karten */
.quicklink-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  text-align: center;
  text-decoration: none;
  transition: box-shadow 200ms ease-in-out, transform 200ms ease-in-out;
}

.quicklink-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.quicklink-card:focus-visible {
  outline: 2px solid var(--color-primary-blue);
  outline-offset: 2px;
}

/* Hex-Badge */
.quicklink-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 64px;
  height: 56px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  /* background-color wird inline gesetzt (kommt aus dem CMS) */
}

.quicklink-badge-icon {
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

/* Label */
.quicklink-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.375;
  transition: color 200ms ease-in-out;
}

.quicklink-card:hover .quicklink-label {
  color: #111827;
}

/* ============================================================
   HTML-Block mit Abschnitts-Badge
   ============================================================ */
.html-block {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

/* Badge-Spalte: Icon + Label, schmal, zentriert */
.section-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  width: 72px;
}

/* Hex-Badge (identischer Stil wie Quicklinks) */
.section-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 56px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.section-badge-icon {
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.section-badge-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.section-badge-link:hover .section-badge {
  filter: brightness(1.1);
}

.section-badge-link:hover .section-badge-label {
  text-decoration: underline;
}

.section-badge-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
  line-height: 1.3;
}

/* Inhalts-Spalte füllt den restlichen Platz */
.section-badge-content {
  flex: 1;
  min-width: 0;
}

/* Ohne Badge: einziges Kind füllt die volle Breite */
.html-block > div:only-child {
  width: 100%;
}

/* ============================================================
   Footer
   ============================================================ */
footer.footer {
  position: relative;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -2px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  background-image: url(/media/Template/Footer_Background_light.png);
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: cover;
  color:#000;
}

footer.footer h2 {
  color: #000;
}

footer.footer a:hover {
  color: #c00000;
}

/* ============================================================
   Logo
   ============================================================
   Das Logo wird als Hintergrundbild gerendert. Pfad und Größe
   hier anpassen. Die Datei liegt unter
   public/media/Template/logo.png (URL ab Root: /media/Template/...).
   ============================================================ */
.site-logo {
  display: block;
  width: 200px;  /* ← ANPASSEN: Breite */
  height: 135px;  /* ← ANPASSEN: Höhe */
  background-image: url(/media/Template/logo.png); /* ← ANPASSEN: Logo-Pfad */
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  /* Logo nach unten verschieben – darf über den Header hinausragen (Header hat margin-bottom).
     Höherer Wert = weiter unten. Verändert nur die Optik, nicht die Header-Höhe. */
  transform: translateY(40px); /* ← ANPASSEN: vertikaler Versatz nach unten */
  transition: width 200ms ease-in-out, height 200ms ease-in-out, transform 200ms ease-in-out;
}

/* Gescrollter Header: Logo verkleinern und in den Header zurückholen
   (ragt nicht mehr nach unten über). Werte nach Bedarf anpassen. */
.site-header.is-scrolled .site-logo {
  width: 120px;  /* ← ANPASSEN: Breite beim Scrollen */
  height: 48px;  /* ← ANPASSEN: Höhe beim Scrollen (≤ Header-Höhe 64px) */
  transform: translateY(0);
}
