/* ===================================================================
   AERONA SPACE – POSTS, Teil 2: die einzelnen Beiträge

   Je Kampagne eine Karte: links die Medien (Bild und Video
   nebeneinander), rechts der Text. Das Video lädt erst beim Klick –
   `preload="none"` – damit die Seite nicht drei Megabyte zieht, nur
   weil jemand vorbeiscrollt.
   =================================================================== */

.po-post {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 2.4rem;
    /* Karten brauchen Abstand zueinander – ohne den stoßen sie
       aneinander und die Seite wirkt gedrängt. */
    margin-bottom: 1.6rem;
    padding: 1.7rem;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.32));
    border: 1px solid rgba(148, 163, 184, 0.13);
    transition: border-color 0.25s ease;
}

.po-post:last-child {
    margin-bottom: 0;
}

.po-post:hover {
    border-color: rgba(56, 189, 248, 0.3);
}

/* ---------- Die Medien ---------- */

.po-medien {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
    align-items: stretch;
}

/* Beide Kacheln sind gleich hoch – sonst steht das quadratische Bild
   64 Pixel über dem hochkanten Video und die Karte wirkt schief.
   Maßgeblich ist das höhere Format 4:5; das quadratische Bild sitzt
   darin mittig und wird nicht beschnitten. */
.po-medium {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    border-radius: 11px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.po-medium img,
.po-medium video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Format-Marke in der Ecke: 1:1 oder 4:5 */
.po-format {
    position: absolute;
    inset-block-start: 8px;
    inset-inline-end: 8px;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(4px);
}

/* Der Abspielknopf sitzt als Kreis in der Mitte, nicht über der
   ganzen Fläche: Nur so bleibt der Rest des Vorschaubildes anklickbar
   für die Großansicht. Ein Knopf, der alles verdeckt, nimmt dem Bild
   darunter jede andere Bedienung weg. */
.po-abspielen {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 0;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    z-index: 2;
}

.po-abspielen span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.05rem;
    color: #0f172a;
    background: rgba(224, 242, 254, 0.94);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.55);
    transition: transform 0.2s ease, background 0.2s ease;
}

.po-abspielen:hover span {
    transform: scale(1.1);
    background: #fff;
}

.po-abspielen:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 3px;
}

/* Auch die Video-Vorschau lässt sich vergrößern */
.po-medium[data-video] {
    cursor: zoom-in;
}

.po-medium[data-video] .po-vorschau {
    transition: transform 0.35s ease;
}

.po-medium[data-video]:hover .po-vorschau {
    transform: scale(1.04);
}

/* Das Video steckt nur als Quellenangabe in der Kachel – abgespielt
   wird es in der Großansicht. Sichtbar ist hier das Vorschaubild. */
.po-medium video {
    display: none;
}

/* ---------- Der Text daneben ---------- */

.po-text {
    display: flex;
    flex-direction: column;
}

.po-post__marke {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7dd3fc;
    margin-bottom: 0.6rem;
}

.po-post__titel {
    font-size: 1.3rem;
    font-weight: 780;
    letter-spacing: -0.015em;
    color: #f8fafc;
    margin: 0 0 0.7rem;
}

.po-post__text {
    font-size: 0.94rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin: 0 0 1.2rem;
}

/* Die Angaben darunter: Uhrzeit, Sprache, Ziel */
.po-daten {
    display: grid;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 0.85rem;
}

.po-datum {
    display: flex;
    gap: 0.7rem;
    color: #94a3b8;
}

.po-datum__was {
    flex-shrink: 0;
    min-width: 5.6rem;
    color: #7f8ea3;
}

.po-datum__wert {
    color: #cbd5e1;
}

.po-ziel {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.9rem;
    font-size: 0.9rem;
    font-weight: 650;
    color: #7dd3fc;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.po-ziel:hover {
    gap: 0.8rem;
}

@media (max-width: 860px) {
    .po-post {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }
}

@media (max-width: 480px) {
    .po-medien {
        grid-template-columns: 1fr;
    }

    .po-post {
        padding: 1.1rem;
    }
}
