/**
 * Image Banner CSS - Bild-Banner (CTA)
 *
 * Vollflächiger Bild-Banner mit Farbverlauf-Layer, Script-Überschrift,
 * USP-Balken (weiß, Textfarbe folgt dem Farbverlauf) und Ghost-Button.
 * Inhalt rechts (Standard) oder links; der Verlauf spiegelt mit.
 *
 * Volle Breite über die native Row-Einstellung "Stretch row and
 * content (no paddings)" — das Element füllt nur seinen Container.
 *
 * Konsumiert Theme-Tokens (--aktd-*) mit Fallbacks.
 */

.akt-image-banner {
    --akt-banner-usp-color: #d83c45;
    --akt-banner-overlay-rgb: 226, 64, 58;

    position: relative;
    width: 100%;
    min-height: clamp(420px, 44vw, 620px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--aktd-color-petrol-dark, #00745f);
    background-size: cover;
    background-position: center;
}

/* Farbfamilien */
.akt-image-banner--overlay-gruen {
    --akt-banner-usp-color: var(--aktd-color-script-heading, #2b957e);
    --akt-banner-overlay-rgb: 0, 143, 125;
}

.akt-image-banner--overlay-blau {
    --akt-banner-usp-color: var(--aktd-color-blue-dark, #3062a6);
    --akt-banner-overlay-rgb: 48, 98, 166;
}

.akt-image-banner--overlay-kein {
    --akt-banner-usp-color: var(--aktd-color-font, #1b1b1b);
    --akt-banner-overlay-rgb: 0, 0, 0;
}

/* Verlaufs-Layer (zur Inhaltsseite hin dichter) */
.akt-image-banner__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to right,
        rgba(var(--akt-banner-overlay-rgb), 0.08) 0%,
        rgba(var(--akt-banner-overlay-rgb), 0.35) 45%,
        rgba(var(--akt-banner-overlay-rgb), 0.82) 100%
    );
}

.akt-image-banner--content-left .akt-image-banner__overlay {
    background: linear-gradient(
        to left,
        rgba(var(--akt-banner-overlay-rgb), 0.08) 0%,
        rgba(var(--akt-banner-overlay-rgb), 0.35) 45%,
        rgba(var(--akt-banner-overlay-rgb), 0.82) 100%
    );
}

.akt-image-banner--overlay-kein .akt-image-banner__overlay {
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.45) 100%
    );
}

.akt-image-banner--overlay-kein.akt-image-banner--content-left .akt-image-banner__overlay {
    background: linear-gradient(
        to left,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.45) 100%
    );
}

/* Innencontainer im Seitenraster */
.akt-image-banner__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--aktd-max-width, 1200px);
    margin: 0 auto;
    padding: 56px 20px;
    display: flex;
}

.akt-image-banner--content-right .akt-image-banner__inner {
    justify-content: flex-end;
}

.akt-image-banner--content-left .akt-image-banner__inner {
    justify-content: flex-start;
}

.akt-image-banner__content {
    max-width: 520px;
}

/* Script-Überschrift */
.akt-image-banner__title {
    margin: 0 0 26px;
    font-family: var(--aktd-font-script, cursive);
    font-weight: 400;
    font-size: clamp(28px, 4.2vw, 54px); /* Design 50px @1200 */
    line-height: 1.4;
    color: var(--aktd-color-white, #ffffff);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* USP-Balken
   Doppelte Klasse im Selektor: Astra setzt per Inline-CSS
   `.entry-content ul { padding-left: 20px }` — das schlägt eine
   einzelne Klasse in der Spezifität. */
.akt-image-banner .akt-image-banner__usps {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.akt-image-banner__usp {
    display: inline-block;
    padding: 8px 18px;
    background: var(--aktd-color-white, #ffffff);
    color: var(--akt-banner-usp-color);
    font-family: var(--aktd-font-accent, sans-serif);
    font-weight: 400;
    font-size: clamp(20px, 2.7vw, 34px); /* Design 32px @1200 */
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Ghost-Button */
.akt-image-banner__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 28px;
    border: 1.5px solid var(--aktd-color-white, #ffffff);
    border-radius: 999px;
    background: transparent;
    color: var(--aktd-color-white, #ffffff);
    font-family: var(--aktd-font-base, sans-serif);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important; /* Astra unterstreicht Content-Links */
    transition: background 0.2s ease, color 0.2s ease;
}

.akt-image-banner__button:hover,
.akt-image-banner__button:focus {
    background: var(--aktd-color-white, #ffffff);
    color: var(--akt-banner-usp-color);
}

/* Leerzustand (nur für Redakteure sichtbar) */
.akt-image-banner__no-content {
    padding: 16px;
    border: 2px dashed #c3c4c7;
    border-radius: 3px;
    color: #646970;
    font-size: 14px;
    text-align: center;
}

/* Responsive */
@media (max-width: 921px) {

    .akt-image-banner {
        min-height: 420px;
    }

    .akt-image-banner__inner {
        padding: 40px 20px;
    }

    .akt-image-banner__content {
        max-width: 460px;
    }
}

@media (max-width: 544px) {

    .akt-image-banner {
        min-height: 0;
    }

    .akt-image-banner__inner {
        padding: 36px 16px;
    }

    .akt-image-banner__content {
        max-width: none;
    }

    .akt-image-banner__usp {
        font-size: 16px;
        padding: 7px 14px;
    }
}

/* Barrierefreiheit / Print */
@media (prefers-contrast: high) {

    .akt-image-banner__title {
        text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
    }
}

@media (prefers-reduced-motion: reduce) {

    .akt-image-banner__button {
        transition: none;
    }
}

@media print {

    .akt-image-banner {
        background: none;
        border: 1px solid #000;
        min-height: 0;
    }

    .akt-image-banner__title {
        color: #000;
        text-shadow: none;
    }

    .akt-image-banner__button {
        border-color: #000;
        color: #000;
    }
}
