/* ===============================
   Headerimage Shortcode + Template
================================== */

.headerimage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5em 2.5em;
  position: relative;
  overflow: hidden;
  height: 480px; /* ❌ nur wenn keine Promo */
}

.headerimage.has-promos {
  height: 480px;
  padding: 5em 2.5em;
  overflow: hidden;
 
}
.headerimage.has-promos .headerimage-content h1 {
  font-size: 55px;
}
.headerimage-kategorie {
  font-size: 1.8em;
  color: #fff;
  margin-top: 0.4em;
  font-weight: 400;
}

.headerimage-inner {
  max-width: 1250px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.headerimage-content {
  max-width: 100%; /* oder 100% für volle Breite */
  text-align: left;
}

.headerimage-content h1 {
  font-size: 65px;
  color: #fff;
  margin: 0;
  font-weight: 800;
 letter-spacing: -0.5px;
}


/* Hintergrundbild via CSS-Variable */
.headerimage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--headerimage-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(8px);
  transform: scale(1.05);
  z-index: 0;
}

/* Vordergrundbild (z. B. Badge) */
.vordergrund-featured {
  max-width: 350px;
  max-height: 350px;
  margin-top: 1em;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 3;
}
@media (max-width: 768px) {
  .headerimage {
    height: 200px;
    padding: 2em 1em;
  }

  .headerimage h1 {
    font-size: 32px;
    line-height: 1.1;
  }

  .headerimage-kategorie {
    font-size: 1.2em;
  }
  .headerimage.has-promos .headerimage-content h1 {
    font-size: 36px;
  }

  .vordergrund-featured {
    max-width: 150px;
    max-height: 150px;
  }
  }

.astra-advanced-hook-9629 p {
  margin-bottom: 0 !important;
}
.headerimage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* 40% schwarzer Overlay */
  z-index: 1;
}
.headerimage-subtitle {
  font-size: 1.3em;
  font-weight: 400;
  margin-top: 0.5em;
  color: #fff;

}.header-promo-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.header-promo-tile {
  background: rgba(255, 255, 255, 0.95);
  border-left: 6px solid #0073aa; /* Corporate-Blau als Eyecatcher */
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 280px;
  min-width: 240px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top:30px;
}
.header-promo-tile {
  position: relative; /* wichtig, damit ::after relativ zu diesem Block sitzt */
  overflow: hidden;   /* verhindert, dass das Icon rausläuft */
}

.header-promo-tile::after {
  content: "";
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  width: 40px;   /* Größe des Icons */
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") no-repeat center center;
  background-size: contain;
  opacity: 0.08; /* sehr transparent */
  pointer-events: none; /* Icon blockiert keine Klicks */
}
.header-promo-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.header-promo-tile h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
}

.header-promo-tile p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  color: #444;
}

.header-promo-tile p strong {
  display: inline-block;
  background: #fbe9e9;
  color: #c00;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.header-promo-tile .promo-date {
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
  margin-top: 0.5rem;
}
.header-promo-tile .button {
  display: inline-block;
  margin-top: 0.8rem;
  background: #0073aa;
  color: #fff;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}
.header-promo-tile .button:hover {
  background: #005e8a;
}
/* ========== VIDEO HEADER ========== */
.headerimage-video {
  position: relative;
  overflow: hidden;
  height: 480px;
}
.headerimage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.483); /* ⬅️ Jetzt dunkler */
  z-index: 1;
}
.video-bg-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.video-bg-wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.77vh; /* 16:9 Format für volle Höhe */
  height: 100vh;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.video-bg-wrapper video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* ========== MOBILE ========== */
@media (max-width: 950px) {
  .headerimage,
  .headerimage.has-promos,
  .headerimage-video {
    height: 190px !important;
    padding: 2em 1em;
  }

  .headerimage h1 {
    font-size: 32px;
    line-height: 1.1;
  }

  .headerimage-kategorie {
    font-size: 1.2em;
  }

  .vordergrund-featured {
    max-width: 150px;
    max-height: 150px;
  }
    .headerimage,
  .headerimage-video {
    height: 190px;
}}