/* ─────────────────────────────────────────
   aktuelles.css  –  Aktuelles / News page
   Reuses CSS variables from main.css
───────────────────────────────────────── */

/* ── Shared ── */

.aktuelles-page {
    flex: 1;
    width: 100%;
}

/* Section container */
.ak-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 32px;
}

.ak-section + .ak-section {
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    padding-top: 44px;
}

/* Section heading */
.ak-section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--font-headline);
    margin: 0 0 32px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-signal);
    display: inline-block;
    letter-spacing: -0.3px;
}

/* ── Video wrapper (maintains 16:9 on any width) ── */
.ak-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.ak-video-wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ak-video-caption {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--font-light-text);
    text-align: center;
}

/* ── News cards — image + text pairs ── */
.ak-card {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 48px;
    background: var(--background-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: box-shadow 200ms ease;
}

/* Separator between news cards — desktop */
.ak-card-sep {
    width: 60%;
    max-width: 600px;
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0, 0, 0, 0.12) 25%,
        var(--color-signal) 50%,
        rgba(0, 0, 0, 0.12) 75%,
        transparent
    );
}

.ak-card:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
}

.ak-card-img {
    flex: 0 0 420px;
    height: 280px;
    overflow: hidden;
}

.ak-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease;
}

.ak-card:hover .ak-card-img img {
    transform: scale(1.03);
}

.ak-card-text {
    flex: 1;
    padding: 32px;
}

.ak-card-text p {
    color: var(--font-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
    margin: 0;
}

.ak-card-text a {
    color: var(--color-signal);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.ak-card-text a:hover {
    color: var(--color-signal-hover);
}

/* ── "Hinter den Kulissen" section ── */
.ak-behind-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--font-headline);
    margin: 0 0 12px;
}

/* ─────────────────────────────────────────
   DESKTOP  (≥ 1050px)
───────────────────────────────────────── */

@media only screen and (min-width: 1050px) {

    /* Two trailer videos side by side */
    .ak-video-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    /* Card with image on the right: text first, then image */
    .ak-card--image-right {
        flex-direction: row;
    }

    /* Card with image on the left: image first, then text */
    .ak-card--image-left {
        flex-direction: row-reverse;
    }

    /* Behind-the-scenes: 3-column grid */
    .ak-behind-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}


/* ─────────────────────────────────────────
   MOBILE  (< 1050px)
───────────────────────────────────────── */

@media only screen and (max-width: 1049px) {

    .ak-section {
        padding: 32px 16px;
    }

    .ak-section-title {
        font-size: 19px;
        margin-bottom: 24px;
    }

    /* Stacked single-column trailers */
    .ak-video-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    /* All cards: image stacked on top of text */
    .ak-card {
        flex-direction: column;
        gap: 0;
        margin-bottom: 28px;
        border-radius: 12px;
    }

    .ak-card--image-right,
    .ak-card--image-left {
        flex-direction: column;
    }

    .ak-card-img {
        flex: none;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    /* Stronger separator on mobile */
    .ak-card-sep {
        width: 90%;
        height: 3px;
        margin: 8px auto;
        background: linear-gradient(
            to right,
            transparent,
            rgba(0, 0, 0, 0.10) 15%,
            var(--color-signal) 50%,
            rgba(0, 0, 0, 0.10) 85%,
            transparent
        );
        border-radius: 2px;
    }

    .ak-card-text {
        padding: 20px 16px 24px;
    }

    .ak-card-text p {
        font-size: 15px;
    }

    /* Behind-the-scenes: stacked */
    .ak-behind-grid {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }
}
