/* Eigene Anpassungen nach der CMS-Ablösung.
 *
 * Wird nach main.css geladen und überschreibt sie. Alles, was hier steht,
 * ist bewusst NICHT in main.css eingetragen: die Datei ist ein 350 KB
 * großes CMS-Generat, und Änderungen darin machen jeden späteren Abgleich
 * mit der Vorlage wertlos.
 *
 * Änderungen bitte mit Datum und Anlass dokumentieren.
 */


/* --- Bildrahmen ------------------------------------------------------
 * 12.08.2026, Wunsch TEHAG: Das Messestand-Bild auf der News-Seite soll
 * denselben Rahmen bekommen wie das Zeitungsbild darüber.
 *
 * Der Rahmen des Zeitungsbildes ist kein CSS - er ist in die JPEG-Datei
 * eingebrannt (1 px, reines Schwarz, nachgemessen). Statt das zweite Bild
 * ebenfalls zu bearbeiten, wird der Rahmen hier gesetzt: verlustfrei,
 * umkehrbar und unabhängig von der Bilddatei.
 *
 * Gezielt über eine eigene Klasse, nicht über .link-node - die sitzt an
 * mehreren hundert Icons der Website, die keinen Rahmen bekommen sollen.
 */
.jonnitto-image--framed img {
    border: 1px solid #000;
}


/* --- Einwilligung für externe Videos ---------------------------------
 * 12.08.2026, Wunsch TEHAG: Cookie-Abfrage.
 *
 * Farben und Schrift aus dem Bestand: #2457a0 ist das Blau der
 * Schaltflächen (.htc__btn), #1f2d30 der Grund der Fußzeile, Dosis 700
 * die Schrift der Schaltflächen. Der Hinweis soll wie ein Teil der
 * Seite aussehen, nicht wie ein aufgesetztes Fremdwerkzeug.
 */

/* Platzhalter anstelle des gesperrten Players.
 * padding-top: 56.25% hält das 16:9-Format frei, bevor das Bild geladen
 * ist - sonst springt das Layout beim Nachladen. */
.video-consent {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #1f2d30;
    overflow: hidden;
}

.video-consent__preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Etwas abgedunkelt, damit die weiße Schaltfläche auf jedem
     * Vorschaubild lesbar bleibt. */
    filter: brightness(0.62);
}

.video-consent__button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-family: Dosis, sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
}

/* Dreieck aus Rahmenkanten - spart eine Bilddatei und einen Request. */
.video-consent__play {
    display: block;
    width: 78px;
    height: 78px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: rgba(36, 87, 160, .78);
    position: relative;
    transition: background .3s ease, transform .3s ease;
}

.video-consent__play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 13px 0 13px 21px;
    border-color: transparent transparent transparent #fff;
}

.video-consent__button:hover .video-consent__play,
.video-consent__button:focus-visible .video-consent__play {
    background: #2457a0;
    transform: scale(1.06);
}

.video-consent__button:focus-visible {
    outline: 3px solid #fcc236;
    outline-offset: 6px;
}

.video-consent__note {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 10px 16px;
    background: rgba(31, 45, 48, .82);
    color: #fff;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.video-consent__note a { color: #fcc236; }

@media (max-width: 575px) {
    .video-consent__play { width: 58px; height: 58px; }
    .video-consent__play::after { border-width: 10px 0 10px 16px; }
    .video-consent__button { font-size: 15px; }
    .video-consent__note { font-size: 11px; padding: 7px 10px; }
}


/* Hinweisleiste. Unten angeheftet, damit sie den Inhalt nicht verdeckt. */
.consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #1f2d30;
    color: #fff;
    box-shadow: 0 -2px 18px rgba(0, 0, 0, .35);
}

.consent-banner__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
}

/* color hier ausdrücklich, nicht geerbt: main.css setzt p { color:#4b4b4a }
 * und träfe damit dunkelgrauen Text auf dunklen Grund - gemessen 1,6:1.
 * Mit Weiß sind es 13,9:1. */
.consent-banner__title {
    width: 100%;
    margin: 0;
    color: #fff;
    font-family: Dosis, sans-serif;
    font-size: 21px;
    font-weight: 700;
}

.consent-banner__body {
    flex: 1 1 380px;
    margin: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
}

.consent-banner__body a {
    color: #fcc236;
    text-decoration: underline;
}

.consent-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Beide Schaltflächen gleich groß und gleich auffällig. Eine Gestaltung,
 * die zum Zustimmen drängt, wäre keine freie Einwilligung. */
.consent-banner__btn {
    min-width: 165px;
    padding: 11px 22px;
    border: 2px solid #fff;
    font-family: Dosis, sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .3s ease, color .3s ease;
}

.consent-banner__btn--decline {
    background: transparent;
    color: #fff;
}

.consent-banner__btn--decline:hover {
    background: #fff;
    color: #1f2d30;
}

.consent-banner__btn--accept {
    background: #2457a0;
    border-color: #2457a0;
    color: #fff;
}

.consent-banner__btn--accept:hover {
    background: #1c4680;
    border-color: #1c4680;
}

.consent-banner__btn:focus-visible {
    outline: 3px solid #fcc236;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .consent-banner__inner { padding: 16px 15px; }
    .consent-banner__actions { width: 100%; }
    .consent-banner__btn { flex: 1 1 auto; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .video-consent__play,
    .consent-banner__btn { transition: none; }
    .video-consent__button:hover .video-consent__play { transform: none; }
}
