/* ==========================================================================
   LEISTUNG UNTER DRUCK — Editorial Media Sektion
   Position: Direkt vor Final-CTA
   Background: Beige (paper) — bricht den schwarzen Block am Ende
   Funktion: Featured Media + Placeholder für Wolfgangsee-Video & weitere Medien
   ========================================================================== */

.section-leistung-media {
    background: var(--paper, #f5f1e8);
    color: var(--ink, #111);
    padding: clamp(80px, 10vh, 140px) 0;
    position: relative;
    isolation: isolate;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.leistung-media-inner {
    max-width: var(--max-width, 1280px);
    margin: 0 auto;
    padding: 0 var(--gutter, 32px);
}

/* -------------------------------------------------------------------------
   HEAD — Eyebrow + Headline + Statement
   ------------------------------------------------------------------------- */
.leistung-media-head {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: clamp(50px, 7vh, 80px);
    max-width: 880px;
}

.leistung-media-eyebrow {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink, #111);
    opacity: 0.65;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.leistung-media-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.leistung-media-headline {
    font-family: var(--font-display, 'Archivo Black', sans-serif);
    font-weight: 900;
    font-size: clamp(38px, 6vw, 80px);
    line-height: 1.0;
    letter-spacing: -0.015em;
    text-transform: uppercase;
    color: var(--ink, #111);
    margin: 0;
}

.leistung-media-headline .accent {
    color: var(--accent);
}

.leistung-media-statement {
    font-family: var(--font-display, 'Archivo Black', sans-serif);
    font-weight: 700;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.4;
    color: var(--ink, #111);
    opacity: 0.78;
    margin: 0;
    font-style: italic;
    max-width: 56ch;
}

.leistung-media-statement em {
    font-style: normal;
    font-weight: 900;
    opacity: 1;
}

/* -------------------------------------------------------------------------
   MEDIA GRID — Editorial Asymmetric Layout
   1× Featured (groß, 16:9) + 2× Begleiter (kleiner)
   ------------------------------------------------------------------------- */
.leistung-media-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    grid-template-rows: auto auto;
    gap: clamp(16px, 2vw, 28px);
    align-items: stretch;
}

/* Hauptmedium — über beide Zeilen rechts */
.leistung-media-featured {
    grid-row: 1 / span 2;
    grid-column: 1;
    aspect-ratio: 16 / 10;
    min-height: 360px;
}

.leistung-media-side-1 {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: 4 / 3;
}

.leistung-media-side-2 {
    grid-column: 2;
    grid-row: 2;
    aspect-ratio: 4 / 3;
}

/* -------------------------------------------------------------------------
   MEDIA TILE — gemeinsame Basis
   ------------------------------------------------------------------------- */
.leistung-media-tile {
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.08);
    isolation: isolate;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.leistung-media-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.leistung-media-tile img,
.leistung-media-tile video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* -------------------------------------------------------------------------
   PLACEHOLDER-Variante — bis Media verfügbar
   ------------------------------------------------------------------------- */
.leistung-media-tile.is-placeholder {
    background:
        linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
}

.leistung-media-tile.is-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent 0,
            transparent 24px,
            rgba(255, 255, 255, 0.025) 24px,
            rgba(255, 255, 255, 0.025) 25px
        );
    z-index: 1;
}

/* Crosshair-Ecken — Editorial-Marker */
.leistung-media-tile .crosshair {
    position: absolute;
    width: 14px;
    height: 14px;
    z-index: 3;
    pointer-events: none;
}

.leistung-media-tile .crosshair::before,
.leistung-media-tile .crosshair::after {
    content: '';
    position: absolute;
    background: var(--accent);
}

.leistung-media-tile .crosshair::before {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.leistung-media-tile .crosshair::after {
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.leistung-media-tile .crosshair.ch-tl { top: 12px; left: 12px; }
.leistung-media-tile .crosshair.ch-br { bottom: 12px; right: 12px; }

/* -------------------------------------------------------------------------
   META OVERLAY — Label, Status, Caption
   ------------------------------------------------------------------------- */
.leistung-media-meta {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(20px, 2.5vw, 32px);
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.20) 0%,
            rgba(0, 0, 0, 0.05) 35%,
            rgba(0, 0, 0, 0.05) 65%,
            rgba(0, 0, 0, 0.85) 100%
        );
    color: #fff;
}

/* Bei Placeholder: stärkerer Gradient-Anteil (kein Bild dahinter) */
.leistung-media-tile.is-placeholder .leistung-media-meta {
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.7) 100%
        );
}

.leistung-media-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.leistung-media-num {
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--accent);
    font-weight: 600;
}

.leistung-media-status {
    font-family: var(--font-mono, monospace);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 10px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.leistung-media-status.is-live {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.leistung-media-status.is-soon {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.4);
}

/* Pulsierender Punkt für "Bald verfügbar" */
.leistung-media-status.is-soon::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: 1px;
    animation: leistung-pulse 1.8s ease-in-out infinite;
}

@keyframes leistung-pulse {
    0%, 100% { opacity: 0.4; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.15); }
}

.leistung-media-bottom {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.leistung-media-label {
    font-family: var(--font-display, sans-serif);
    font-weight: 900;
    font-size: clamp(18px, 1.8vw, 26px);
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0;
}

.leistung-media-caption {
    font-family: var(--font-mono, monospace);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.leistung-media-featured .leistung-media-label {
    font-size: clamp(22px, 2.4vw, 38px);
}

/* -------------------------------------------------------------------------
   PLAY-Indikator (für Video-Tiles)
   ------------------------------------------------------------------------- */
.leistung-media-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.leistung-media-tile:hover .leistung-media-play {
    border-color: var(--accent);
    background: rgba(232, 78, 27, 0.25);
    transform: translate(-50%, -50%) scale(1.1);
}

.leistung-media-play::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 14px solid #fff;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    margin-left: 4px;
}

.leistung-media-featured .leistung-media-play {
    width: 84px;
    height: 84px;
}

.leistung-media-featured .leistung-media-play::after {
    border-left-width: 18px;
    border-top-width: 12px;
    border-bottom-width: 12px;
}

/* -------------------------------------------------------------------------
   CLOSER — Statement unter dem Grid
   ------------------------------------------------------------------------- */
.leistung-media-closer {
    margin-top: clamp(40px, 5vh, 64px);
    padding-top: clamp(28px, 3vh, 40px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.leistung-media-closer-text {
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink, #111);
    opacity: 0.6;
    margin: 0;
}

.leistung-media-closer-meta {
    font-family: var(--font-mono, monospace);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink, #111);
    opacity: 0.45;
}

/* -------------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .leistung-media-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .leistung-media-featured {
        grid-row: 1;
        grid-column: 1;
        aspect-ratio: 16 / 10;
        min-height: 280px;
    }

    .leistung-media-side-1 {
        grid-column: 1;
        grid-row: 2;
        aspect-ratio: 4 / 3;
    }

    .leistung-media-side-2 {
        grid-column: 1;
        grid-row: 3;
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 640px) {
    .section-leistung-media {
        padding: clamp(60px, 8vh, 90px) 0;
    }

    .leistung-media-headline {
        font-size: clamp(32px, 9vw, 48px);
    }

    .leistung-media-play {
        width: 52px;
        height: 52px;
    }

    .leistung-media-featured .leistung-media-play {
        width: 64px;
        height: 64px;
    }
}
