/* 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;
}



/* ==========================================================================
   GEMEINSAME BASIS für kv-manager & DAV-Kalender iframes
   ========================================================================== */
html body iframe[src*="kv-manager.de"],
html body iframe[src*="dav-freiburg.de/de/Kalender"] {
  display: block;
  box-sizing: border-box;
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
}

html body iframe[src*="kv-manager.de"]:hover,
html body iframe[src*="dav-freiburg.de/de/Kalender"]:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border-color: #28a745;
}

/* ==========================================================================
   KV-MANAGER: flexible Höhe
   ========================================================================== */
html body iframe[src*="kv-manager.de"] {
  min-height: 700px;
  height: auto;
}

/* ==========================================================================
   DAV-KALENDER (Desktop): zentriert, feste Maße für starren Inhalt
   ========================================================================== */
html body iframe[src*="dav-freiburg.de/de/Kalender"] {
  margin: 0 auto;
  max-width: 720px;
  height: 920px;
}

/* ==========================================================================
   DAV-KALENDER (Mobile): horizontaler Slider-Wrapper
   ========================================================================== */

.content-container.d-flex,
.content-container.d-flex > .w-100,
.dav-kalender-wrapper {
  min-width: 0;
}

.dav-kalender-wrapper {
  width: 100%;
  max-width: 100vw;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  margin-bottom: 20px;
  display: block;
}

/* Der Holzhammer für das iFrame */
.dav-kalender-wrapper iframe[src*="Kalender"] {
  width: 720px !important;
  min-width: 720px !important;
  max-width: none !important;
  height: 920px !important;
  margin: 0 auto;
}

/* ==========================================================================
   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;
}

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! */

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;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  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.5);
}

html 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;
}

/* ==========================================================================
   FARBIGER HINTERGRUND FÜR BEREICHE
   ========================================================================== */

.dav-fr-bg-lightgreen {
  background-color: #d9f2d9;
  border-radius: 10px;
}

/* ==========================================================================
   Personenliste mit kleineren Elementen (class dav-person-list-small zum Renderlet hinzufuegen)
   ========================================================================== */

.renderlet.dav-person-list-small .d-flex.col-12.col-md-6.col-lg-4 {
    /* col-12: default / < 768px */
    flex: 0 0 100%;
    max-width: 100%;
}

/* col-sm-4: >= 576px */
@media (min-width: 576px) {
    .renderlet.dav-person-list-small .d-flex.col-12.col-md-6.col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* col-md-3: >= 768px */
@media (min-width: 768px) {
    .renderlet.dav-person-list-small .d-flex.col-12.col-md-6.col-lg-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* col-lg-2: >= 992px */
@media (min-width: 992px) {
    .renderlet.dav-person-list-small .d-flex.col-12.col-md-6.col-lg-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

.renderlet.dav-person-list-small .person-list__title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.renderlet.dav-person-list-small .person-mail {
    min-width: 0;
    overflow-wrap: anywhere;
}