/*
Theme Name: Child Theme
Description: Ein Theme für die Allianz Deutscher Produzenten – Film & Fernsehen e.V.
Author: GOLDJUNG und LOOP Media
Template: salient
Version: 1.7.3
*/

/*
Style
================================================== */

/* Schloss-Icon in der mobilen Ansicht in Weiß ändern */
@media only screen and (max-width: 999px) {
    #header-outer li.menu-item-68317 > a .nectar-menu-icon:before,
    #slide-out-widget-area li.menu-item-68317 > a .nectar-menu-icon:before {
        color: #ffffff !important;
    }
}



/* Header secondary outer */
#header-secondary-outer {
    background-color: transparent !important;
    width: 100%;
    display: flex;
    justify-content: center; /* Zentriert den Container */
}

/* Container im Header */
#header-secondary-outer .container {
    max-width: 1550px;
    width: 100%;
    display: flex;
    justify-content: flex-end; /* Rechtsbündig ausrichten */
    margin-left: -9.5vw; /* Verschiebt den Container nach links */
}

/* Navigation */
#header-secondary-outer nav {
    display: flex;
    justify-content: flex-end; /* Rechtsbündig ausrichten */
    width: auto;
}



/* =============================================================================
   Zwischenstrich zwischen zwei Menüpunkten
   ========================================================================== */
.menu-item-separator::before {
    content: "";
    display: block;
    border-top: 1px solid #000; /* Farbe und Dicke des Strichs */
    margin: 10px 0; /* Abstand zum Menüpunkt oben und unten */
    width: 100%; /* Optional: kann angepasst werden */
}

/* =============================================================================
   Zwischenstrich in der mobilen Ansicht ausblenden
   ========================================================================== */
@media (max-width: 768px) {
    .menu-item-separator::before {
        display: none;
    }
}



/*
Personen
================================================== */

.custom-person-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Größerer Abstand zwischen den Elementen */
    justify-content: flex-start; /* Ändere die Standardausrichtung */
}

.custom-person-grid::after {
    content: "";
    flex: auto;
}

.person-item {
    width: calc(33.333% - 20px); /* 3 Spalten mit einem Abstand von 30px */
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.person-thumbnail-container {
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0; /* Fallback Hintergrundfarbe, falls kein Bild vorhanden ist */
}

.person-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.person-item:hover .person-thumbnail {
    transform: scale(1.1); /* Zoom-Effekt bei Hover */
}

.person-item h3 {
    font-size: 1.3em !important;
    margin: 15px 15px 10px;
}

.person-description, .person-content {
    padding: 0 15px 15px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .person-item {
        width: calc(50% - 15px); /* 2 Spalten mit einem Abstand von 30px */
    }

    /* Sicherstellen, dass die letzten beiden Elemente in der letzten Zeile linksbündig sind */
    .custom-person-grid {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .person-item {
        width: 100%; /* 1 Spalte */
        margin-bottom: 30px;
    }
}

/* Ehrenmitglieder Liste
================================================== */

/* Zentrales Layout für den gesamten Abschnitt */
.ehrenmitglied-liste {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Alphabet-Leiste */
.alphabet-filter {
    margin-top: 50px;
    margin-bottom: 50px;
    text-align: center;
    font-size: 31px;
    line-height: 1.5;
    color: #000;
}
.alphabet-filter a {
    margin-right: 10px;
    text-decoration: none;
    color: #000;
}
.alphabet-filter a:hover {
    text-decoration: underline;
}

/* Ehrenmitgliederliste */
.ehrenmitglied-liste {
    width: 100%;
    margin-top: 20px;
}
.ehrenmitglied-item {
    padding: 20px 0;
    border-bottom: 1px solid #000;
    overflow: hidden;
}
.ehrenmitglied-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ehrenmitglied-header:hover {
    text-decoration: underline;
}
.ehrenmitglied-header h2 {
    margin: 0;
    font-size: inherit;
}
.ehrenmitglied-content {
    display: none;
    padding: 10px 0;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
}
.ehrenmitglied-thumbnail-wrapper {
    flex: 0 0 195px;
    max-width: 195px;
    margin-right: 50px;
}
.ehrenmitglied-thumbnail {
    width: 100%;
    height: auto;
}
.ehrenmitglied-thumbnail-wrapper img,
.ehrenmitglied-thumbnail-wrapper svg {
    width: 100%;
    height: auto;
    max-width: 100%;
}
.ehrenmitglied-text {
    flex: 1;
    box-sizing: border-box;
    margin-top: 0 !important;
    padding-top: 10px;
}

/* Responsives Design */
@media (max-width: 1200px) {
    .ehrenmitglied-content {
        flex-direction: column;
    }
    .ehrenmitglied-thumbnail-wrapper {
        margin-right: 0;
        margin-bottom: 5px;
    }
}

@media (max-width: 768px) {
    .alphabet-filter a {
        display: inline-block;
        margin-bottom: 5px;
    }
    .ehrenmitglied-header {
        flex-direction: column;
    }
    .ehrenmitglied-header h2 {
        text-align: center;
        margin-bottom: 10px;
    }
    .ehrenmitglied-content {
        padding: 0;
    }
    .ehrenmitglied-thumbnail-wrapper {
        margin-bottom: 5px;
        margin-top: 20px;
    }
    .ehrenmitglied-text {
        margin-top: 0 !important;
        padding-top: 5px;
    }
}

/* =============================================================================
   Anpassung der Menüelemente basierend auf Login-Status
   ========================================================================== */

.disabled-for-intern {
  cursor: not-allowed;
}
.disabled-for-intern a {
  display: inline-block;
  opacity: 0.3;
  pointer-events: none;
  text-decoration: none;
  margin-left: 2rem;
  width: 280px;
  transition: all 0.25s ease-in-out;
}
.disabled-for-intern a:hover {
  background: #007896;
  color: #fefefe !important;
}
.logged-in .disabled-for-intern {
  cursor: default;
}
.logged-in .disabled-for-intern a {
  display: block;
  opacity: 1;
  pointer-events: all;
}

/* =============================================================================
   Anpassung der secondary_nav
   ========================================================================== */

/* Standard-Schriftgröße und Farbe für Links */
#header-secondary-outer .sf-menu > li > a {
    font-size: var(--wp--preset--font-size--normal) !important;
    color: var(--wp--preset--color--black) !important; /* Standardfarbe Schwarz */
	font-size: 16px!important;
}

/* Weiß bei transparentem Header */
#header-outer.transparent #header-secondary-outer .sf-menu > li > a,
#header-outer[data-transparent-header="true"].transparent #header-secondary-outer .sf-menu > li > a,
#header-outer[data-permanent-transparent="true"] #header-secondary-outer .sf-menu > li > a {
    color: var(--wp--preset--color--white) !important; /* Weiß bei transparentem Header */
}

/* Schwarz bei nicht transparentem Header */
#header-outer:not(.transparent) #header-secondary-outer .sf-menu > li > a,
#header-outer:not([data-transparent-header="true"]) #header-secondary-outer .sf-menu > li > a,
#header-outer:not([data-permanent-transparent="true"]) #header-secondary-outer .sf-menu > li > a {
    color: var(--wp--preset--color--black) !important; /* Schwarz bei regulärem Header */
}

/* Sicherstellen, dass keine anderen Regeln die Farben überschreiben */
#header-outer.transparent[data-transparent-header="true"] #header-secondary-outer .sf-menu > li > a {
    color: var(--wp--preset--color--white) !important;
}

#header-outer:not(.transparent)[data-transparent-header="true"] #header-secondary-outer .sf-menu > li > a {
    color: var(--wp--preset--color--black) !important;
}

/* =============================================================================
   Maximale Inhaltsbreite für Beitragstypen und Beitragsbild
   ============================================================================= */
body.single.single-document .container-wrap .post-content,
body.single.single-document .container-wrap .content-inner {
    max-width: 1045px !important;
    margin: 0 auto !important;
    padding: 0 0px; 
}

body.single.single-document .post-featured-img {
    text-align: left;
    display: block;
    margin: 0 auto;
}

body.single.single-document .post-featured-img img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

/* =============================================================================
   Footer
   ============================================================================= */

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

a.loop-footer-link, a.borlabs-cookie-preference {
    font-size: 0.9375rem;
    color: #ffffff;
    font-weight: 400;
    line-height: 23px;
    text-decoration: none;
    font-style: normal;
    background: none !important;
}

a.loop-footer-link:hover, a.borlabs-cookie-preference:hover {
    color: #ffffff !important;
    background: none !important;
    text-decoration: none;
}

@media (max-width: 999px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }

    .footer-links a {
        margin-bottom: -15px;
    }
}

/* =============================================================================
   Kategorien in Beiträgen ausblenden
   ============================================================================= */

.section-title .topnews,
.section-title .pressemitteilung,
.section-title .bewegtbild,
.section-title .beitrag,
.section-title .ergebnis,
.section-title .morning-update,
.section-title .news,
.section-title .position,
.section-title .publikation,
.section-title .quartalsbericht,
.section-title .rundschreiben,
.section-title .stellenausschreibung,
.section-title .update,
.section-title .vertraulich {
    pointer-events: none;
    cursor: default;
    background-color: #027896;
    color: #fff;
    border: 2px solid #027896 !important;
    border-radius: 5px;
    padding: 10px;
    box-shadow: none; /* Entfernt Schatten */
}



