/*
 * Business Units: Farbe je Markt, Submenü, Kontaktlasche, Karten-Platzhalter.
 * Die Farbwerte (--buautomotive usw.) stehen in interactivesliders.css.
 */

/* --- Farbe der aktuellen Unit --------------------------------------------- */

body.bu-automotive     { --tenowo-unit-color: var(--buautomotive); }
body.bu-mobility       { --tenowo-unit-color: var(--bumobiltech); }
body.bu-filtration     { --tenowo-unit-color: var(--bufiltration); }
body.bu-composites     { --tenowo-unit-color: var(--bucomposites); }
body.bu-apparel        { --tenowo-unit-color: var(--buapparel); }
body.bu-consumer-goods { --tenowo-unit-color: var(--bupackaging); }
body.bu-healthcare     { --tenowo-unit-color: var(--buhealthcare); }
body.bu-protection     { --tenowo-unit-color: var(--buprotection); }

/* Kontaktlasche übernimmt die Unit-Farbe, sonst bleibt sie Tenowo-Grün */
body[class*="bu-"] .kontaktlasche {
    --kontaktlasche-current-color: var(--tenowo-unit-color, var(--kontaktlasche-color));
}

/* Gelb (Protection) braucht dunkle Schrift, sonst ist der Text nicht lesbar */
body.bu-protection .kontaktlasche,
body.bu-protection .kontaktlasche a,
body.bu-protection .kontaktlasche a:link,
body.bu-protection .kontaktlasche a:visited,
body.bu-protection .kontaktlasche .kontaktlasche-section-title,
body.bu-protection .kontaktlasche .kontaktlasche-address,
body.bu-protection .kontaktlasche .kontaktlasche-bu-name,
body.bu-protection .kontaktlasche .kontaktlasche-contact-line,
body.bu-protection .kontaktlasche .kontaktlasche-contact-line span,
body.bu-protection .unit-subnav a {
    color: #222222;
}
body.bu-protection .kontaktlasche-icon-wrap img {
    filter: none;
}
body.bu-protection .kontaktlasche-block,
body.bu-protection .kontaktlasche-socialmedia {
    border-top-color: rgba(0, 0, 0, .3);
}

/* Vorausgewählte Unit im Kontaktformular hervorheben */
.wpforms-field-radio li.tenowo-unit-preselected label {
    font-weight: 700;
    color: rgba(var(--tenowo-unit-color, 156,191,42), 1);
}

/* --- Submenü eines Marktes ------------------------------------------------ */

.unit-subnav {
    width: 100%;
    margin-top: 10px;
    background-color: rgba(var(--tenowo-unit-color, 156,191,42), .94);
}

.unit-subnav .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 22px;
    padding-top: 9px;
    padding-bottom: 9px;
}

.unit-subnav a,
.unit-subnav a:link,
.unit-subnav a:visited {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

.unit-subnav-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 7px 16px;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, .18);
}

.unit-subnav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.unit-subnav-list a {
    display: block;
    padding: 7px 12px;
    border-radius: 999px;
    opacity: .82;
    transition: opacity .2s ease, background-color .2s ease;
}

.unit-subnav-list a:hover,
.unit-subnav-list a.is-active,
.unit-subnav-title:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, .18);
}

.unit-subnav-list a.is-active {
    font-weight: 700;
}

/* Mobil steckt die Navigation im Aufklappmenü, dort gibt es keine zweite Leiste */
@media (max-width: 991px) {
    .unit-subnav {
        display: none;
    }
}

/* --- Platzhalter für blockierte Karten / Videos ---------------------------- */

.tenowo-consent-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    height: auto;
    min-height: 240px;
    padding: 20px 16px;
    box-sizing: border-box;
    line-height: 1.4;
    font-size: 15px;
    white-space: normal;
    text-transform: none;
    letter-spacing: normal;
    background-color: #e3e3e3;
    border: 0;
    border-radius: 10px;
    color: #333333;
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s ease;
}

.tenowo-consent-placeholder:hover,
.tenowo-consent-placeholder:focus-visible {
    background-color: #d6d6d6;
}

.tenowo-consent-placeholder .tenowo-consent-icon {
    font-size: 36px;
    line-height: 1;
    color: #848484;
}

.tenowo-consent-placeholder .tenowo-consent-accept {
    display: inline-block;
    max-width: 100%;
    padding: 9px 16px;
    line-height: 1.3;
    border-radius: 6px;
    background-color: #137a31;
    color: #ffffff;
    font-weight: 700;
}

.tenowo-consent-placeholder:hover .tenowo-consent-accept {
    background-color: #0f6327;
}

.tenowo-consent-placeholder .tenowo-consent-note {
    display: block;
    max-width: 520px;
    font-size: 12px;
    line-height: 1.45;
    color: #555555;
}

/* Cookiebot setzt am Platzhalter selbst "display", deshalb die Kinder als Blöcke stapeln */
.tenowo-consent-placeholder > * {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 12px auto;
}
.tenowo-consent-placeholder > *:last-child {
    margin-bottom: 0;
}

/* Beaver Builder setzt für Buttons im Inhalt eigene Zeilenhöhen (0) – hier bewusst überschreiben */
.tenowo-consent-placeholder {
    line-height: 1.4 !important;
    font-size: 15px !important;
}
.tenowo-consent-placeholder > .tenowo-consent-icon {
    line-height: 1 !important;
}
.tenowo-consent-placeholder > .tenowo-consent-accept {
    display: block;
    line-height: 1.3 !important;
}
.tenowo-consent-placeholder > .tenowo-consent-note {
    line-height: 1.45 !important;
}

/* Mit Submenü rückt die Kontaktlasche unter die Leiste, damit sie diese nicht überdeckt */
@media (min-width: 992px) {
    body:has(.unit-subnav) .kontaktlasche {
        top: 170px;
    }
}
