/* Apply the dav-fr-hero-teaser-no-overlay class to a hero
   teaser to remove it's dark overlay. */
.dav-fr-hero-teaser-no-overlay::after {
  background-image: none !important;
}

/* This removes the dark overlay on all hero teasers by
   providing a more specific match then the standard css
   class from the Design A css file. */
body .hero-teaser-slider .hero-teaser::after {
  background-image: none;
}

/* ==========================================================================
   KV-MANAGER IFRAMES
   ========================================================================== */

html body iframe[src*="kv-manager.de"] {
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 700px;
  height: auto;
  box-sizing: border-box;
}

html body iframe[src*="kv-manager.de"]:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: #28a745;
}

html body .dav-info-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

html body .dav-info-card > [class*="pimcore_area_"] {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 30px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

html body .dav-info-card:hover > [class*="pimcore_area_"] {
  border-color: #28a745;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

html body .dav-info-card > [class*="pimcore_area_"] > *:last-child {
  margin-bottom: 0;
}


/* ==========================================================================
   GLOBALE TRENNLINIEN (DAV-GRÜN) - VERTIKALER FADE VON UNTEN NACH OBEN
   ========================================================================== */

body .pimcore_area_horizontal-line hr.horizontal-line {
  border: none;
  height: 4px; /* Höhe Fade */
  background: transparent;
  
  background-image: linear-gradient(to top, #28a745, transparent);
  
  width: 100vw; /* Auskommentieren für 'kurze' Divider */
  max-width: none;
  margin-left: calc(-50vw + 50%);
  
  opacity: 1;
  margin-top: 35px;
  margin-bottom: 35px;
}

/* Wir schalten die störenden Standard-Effekte des Themes komplett ab */
body .pimcore_area_horizontal-line hr.horizontal-line::before,
body .pimcore_area_horizontal-line hr.horizontal-line::after {
  display: none;
  content: none;
}

/* ==========================================================================
   UNIVERSAL INFO-CARDS (Für reine Text-Absätze & Listen, 1-3 Spalten)
   ========================================================================== */

/* ACHTUNG: 'dav-info-card' in das CSS-Feld der Spalte/Komponente eintragen! */

body .dav-info-card {
  display: flex;
  flex-direction: column;
}

body .dav-info-card > [class*="pimcore_area_"] {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 30px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

body .dav-info-card:hover > [class*="pimcore_area_"] {
  border-color: #28a745;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

body .dav-info-card > [class*="pimcore_area_"] > *:last-child {
  margin-bottom: 0;
}


/* ==========================================================================
   DOWNLOAD-CARDS (DESKTOP & MOBILE OPTIMIERT)
   ========================================================================== */

/*ACHTUNG: Nur für Cards mit Download! -- Siehe Programm-Seite!
1. 'dav-block-card' in den Absatz schreiben!
2. Download-Renderlet: Anzeigen als: 'Erweitert'
*/

body .dav-block-card {
  background-color: transparent;
  border: none;
  box-shadow: none;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
}

body .dav-block-card .pimcore_area_text {
  background-color: #ffffff;
  border-top: 1px solid #e5e5e5;
  border-left: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5;
  border-bottom: none;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 30px 30px 10px 30px; 
  flex-grow: 1;
  transition: all 0.3s ease;
}

body .dav-block-card .pimcore_area_download {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  border-left: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5;
  border-top: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  /* Zwingt den Download-Button nach innen */
  padding: 0px 30px 30px 30px; 
  margin-top: 0;
  box-shadow: none;
  transition: all 0.3s ease;
}

body .dav-block-card:hover .pimcore_area_text,
body .dav-block-card:hover .pimcore_area_download {
  border-color: #28a745;
}

body .dav-block-card:hover .pimcore_area_text {
  box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.06);
}
body .dav-block-card:hover .pimcore_area_download {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   BILDER VON MEDIENBLÖCKEN MIT RUNDEN ECKEN
   ========================================================================== */
/* Grüne Personenliste für Beirat, muss im HTML-Text-Code klassifiziert werden.*/

.dav-member-list {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.dav-member-row {
  display: flex;
  flex-wrap: wrap;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.dav-member-col {
  flex: 1 1 30%;
  padding: 5px;
}

/* Hier wird der Name automatisch fett, da er immer das erste Element ist */
.dav-member-col:first-child {
  font-weight: 400;
  color: #333;
}

@media (max-width: 768px) {
  .dav-member-row {
    flex-direction: column;
  }
  .dav-member-col {
    flex: 1 1 100%;
  }
}

/* Link-Style */
.dav-member-col a {
  color: #28a745;
  text-decoration: none;
  word-break: break-all; /* Damit lange E-Mails auf dem Handy nicht rauslaufen */
}


/* ==========================================================================
   FÜR RUNDE ECKEN DER BILDER VON MEDIENBLÖCKEN
   ========================================================================== */
/* Stilanpassung*/

html body .img-fluid:not(.object-cover) {
  border-radius: 10px;
  overflow: hidden;
}