/* =======================================================
   NICHT IRGENDWANN Vlogs
   Version 1.0.9
   Struktur: Hero / großes Video / Grid
   ======================================================= */

.ni-vlogs {
    --ni-paper: #f3f0e9;
    --ni-paper-light: #fbf7ee;
    --ni-ink: #23201e;
    --ni-muted: #756b60;
    --ni-gold: #b49a7a;
    --ni-gold-dark: #9a866d;
    --ni-red: #d91920;

    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: -78px;
    overflow: hidden;
    background: var(--ni-paper);
    color: var(--ni-ink);
}

.ni-vlogs,
.ni-vlogs * {
    box-sizing: border-box;
}

/* -------------------------------------------------------
   Enfold / Seitenabstand sauberziehen
------------------------------------------------------- */

/* Wichtig: Header und Footer bleiben komplett in Ruhe.
   Enfold packt den Footer gern mit in #main. Wenn wir dort .container_wrap
   oder .main_color anfassen, wird unten plötzlich alles hell. Natürlich.
   Deshalb stylen wir ab jetzt nur noch unser eigenes VLOG-Modul und die
   unmittelbaren Inhaltscontainer der Seite. */
body.ni-vlogs-page .template-page .entry-content-wrapper,
body.ni-vlogs-page .post-entry,
body.ni-vlogs-page .entry-content {
    background: transparent !important;
}

body.ni-vlogs-page .title_container,
body.ni-vlogs-page .breadcrumb,
body.ni-vlogs-page .stretch_full.title_container {
    display: none !important;
}

body.ni-vlogs-page .template-page .entry-content-wrapper,
body.ni-vlogs-page .post-entry,
body.ni-vlogs-page .entry-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* #main bekommt KEIN padding-top: 0 mehr und keine Footer-/Header-Farben.
   Stattdessen ziehen wir nur unser eigenes VLOG-Modul leicht hoch,
   wie bei den Beitragsseiten. */
body.ni-vlogs-page .ni-vlogs {
    margin-top: -78px;
}

body.ni-vlogs-page .ni-vlogs-hero {
    padding-top: 78px;
}

/* -------------------------------------------------------
   Hero
------------------------------------------------------- */

.ni-vlogs-hero {
    position: relative;
    min-height: clamp(480px, 52vw, 690px);
    padding-top: 78px;
    display: flex;
    align-items: flex-end;
    color: #f3eee4;
    background-color: #1f1d1b;
    background-image:
        radial-gradient(circle at 20% 18%, rgba(255,255,255,0.10), transparent 26%),
        linear-gradient(to bottom, rgba(0,0,0,0.10), rgba(0,0,0,0.80)),
        var(--ni-vlogs-hero-image);
    background-size: cover;
    background-position: center center;
}

.ni-vlogs-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(0,0,0,0.58), rgba(0,0,0,0.08)),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 4px);
    pointer-events: none;
}

.ni-vlogs-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 58px clamp(72px, 8vw, 106px);
}

.ni-vlogs-title {
    margin: 0 0 24px;
    font-family: var(--font-headline, "veneer-three", sans-serif);
    font-size: clamp(82px, 13vw, 178px);
    line-height: 0.82;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff4e5 !important;
    text-shadow: 0 6px 28px rgba(0,0,0,0.72);
    opacity: .98;
}

.ni-vlogs-description {
    max-width: 760px;
    margin: 0;
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.48;
    color: #e8ded0;
}

.ni-vlogs-description::after {
    content: "";
    display: block;
    width: 102px;
    height: 5px;
    margin-top: 34px;
    background: var(--ni-gold);
}

/* -------------------------------------------------------
   Inhalt
------------------------------------------------------- */

.ni-vlogs-content {
    position: relative;
    z-index: 4;
    max-width: 1180px;
    margin: -62px auto 0;
    padding: 0 28px clamp(80px, 9vw, 128px);
}

.ni-vlogs-featured {
    margin-bottom: clamp(36px, 5vw, 64px);
}

.ni-vlogs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

/* -------------------------------------------------------
   Papierkarten
------------------------------------------------------- */

.ni-vlog-card {
    position: relative;
    color: var(--ni-ink);
    background-image: var(--ni-vlogs-paper-frame);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    overflow: visible;
    border: none;
    box-shadow: none;
}

.ni-vlog-card::after {
    content: "";
    position: absolute;
    right: 28px;
    top: 24px;
    width: 86px;
    height: 86px;
    background-image: url("https://www.nichtirgendwann.de/wp-content/uploads/2026/06/247.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: rotate(-8deg);
    pointer-events: none;
    opacity: .78;
    z-index: 5;
}

.ni-vlog-card__inner {
    position: relative;
    z-index: 2;
    padding: 34px 36px 40px;
}

.ni-vlog-card.is-featured .ni-vlog-card__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(280px, .72fr);
    gap: clamp(32px, 5vw, 58px);
    align-items: center;
    min-height: clamp(440px, 44vw, 560px);
    padding: clamp(40px, 5vw, 70px) clamp(44px, 6vw, 78px);
}



/* -------------------------------------------------------
   Kleine Bewegung auf Hover
------------------------------------------------------- */

.ni-vlog-card,
.ni-current-card--video {
    transition: transform .22s ease, filter .22s ease;
    will-change: transform;
}

.ni-vlogs-grid .ni-vlog-card:hover {
    transform: translateY(-8px) rotate(-0.35deg);
    filter: drop-shadow(0 18px 22px rgba(35,32,30,0.18));
}

.ni-vlogs-grid .ni-vlog-card:nth-child(3n+2):hover {
    transform: translateY(-8px) rotate(0.28deg);
}

.ni-vlogs-grid .ni-vlog-card:nth-child(3n+3):hover {
    transform: translateY(-8px) rotate(-0.18deg);
}

.ni-vlog-card.is-featured:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 20px 26px rgba(35,32,30,0.16));
}

.ni-current-card--video:hover {
    transform: translateY(-7px) rotate(0.18deg);
}

@media (prefers-reduced-motion: reduce) {
    .ni-vlog-card,
    .ni-current-card--video,
    .ni-vlog-thumb img,
    .ni-vlog-play,
    .ni-vlog-link {
        transition: none !important;
    }

    .ni-vlog-card:hover,
    .ni-vlogs-grid .ni-vlog-card:hover,
    .ni-current-card--video:hover {
        transform: none !important;
        filter: none !important;
    }
}

/* -------------------------------------------------------
   Video / Thumbnail
------------------------------------------------------- */

.ni-vlog-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    overflow: hidden;
    box-shadow: 0 15px 34px rgba(0,0,0,0.18);
}

.ni-vlog-card.is-featured .ni-vlog-media {
    box-shadow: 0 22px 48px rgba(0,0,0,0.22);
}

.ni-vlog-thumb {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: #111;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none !important;
}

.ni-vlog-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform .28s ease, opacity .28s ease, filter .28s ease;
}

.ni-vlog-card:hover .ni-vlog-thumb img {
    transform: scale(1.045);
    opacity: .86;
    filter: contrast(1.05);
}

.ni-vlog-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 74px;
    height: 74px;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255,255,255,.9);
    border-radius: 999px;
    background: rgba(0,0,0,.36);
    backdrop-filter: blur(6px);
    transition: transform .22s ease, background .22s ease;
}

.ni-vlog-card.is-featured .ni-vlog-play {
    width: 98px;
    height: 98px;
}

.ni-vlog-card:hover .ni-vlog-play {
    transform: translate(-50%, -50%) scale(1.06);
    background: rgba(0,0,0,.48);
}

.ni-vlog-play::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 22px;
    width: 0;
    height: 0;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 22px solid #fff;
}

.ni-vlog-card.is-featured .ni-vlog-play::before {
    left: 40px;
    top: 30px;
    border-top-width: 18px;
    border-bottom-width: 18px;
    border-left-width: 29px;
}

.ni-vlog-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* -------------------------------------------------------
   Text
------------------------------------------------------- */

.ni-vlog-content {
    padding-top: 22px;
}

.ni-vlog-card.is-featured .ni-vlog-content {
    padding-top: 0;
}

.ni-vlog-label {
    display: inline-block;
    margin: 0 0 22px;
    padding: 10px 14px 8px;
    background: var(--ni-gold);
    color: #fff;
    font-family: var(--font-headline, "veneer-three", sans-serif);
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: rotate(-1.4deg);
}

.ni-vlog-date {
    margin: 0 0 14px;
    font-family: var(--font-headline, "veneer-three", sans-serif);
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ni-gold-dark);
}

.ni-vlog-heading {
    margin: 0;
    font-family: var(--font-headline, "veneer-three", sans-serif);
    font-size: clamp(30px, 3vw, 45px);
    line-height: 0.96;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ni-ink);
}

.ni-vlog-card.is-featured .ni-vlog-heading {
    font-size: clamp(42px, 4.6vw, 62px);
    line-height: 0.92;
}

.ni-vlog-heading a {
    color: var(--ni-ink) !important;
    text-decoration: none !important;
}

.ni-vlog-heading a:hover {
    color: var(--ni-gold-dark) !important;
}

.ni-vlog-text {
    margin: 22px 0 0;
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: 18px;
    line-height: 1.5;
    color: var(--ni-muted);
}

.ni-vlog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 26px;
}

.ni-vlog-link {
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    margin-top: 0;
    padding: 15px 22px 13px;
    background: var(--ni-gold);
    border: 0;
    cursor: pointer;
    color: #fff !important;
    font-family: var(--font-headline, "veneer-three", sans-serif);
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background .18s ease, transform .18s ease;
}

.ni-vlog-link::after {
    content: " →";
}

.ni-vlog-link:hover {
    background: var(--ni-gold-dark);
    color: #fff !important;
    transform: translateY(-1px);
}

.ni-vlog-link-secondary {
    background: var(--ni-ink);
}

.ni-vlog-link-secondary:hover {
    background: #000;
}

.ni-vlog-card:not(.is-featured) .ni-vlog-link {
    display: none;
}


/* -------------------------------------------------------
   Lightbox
------------------------------------------------------- */

html.ni-vlogs-lightbox-open,
body.ni-vlogs-lightbox-open {
    overflow: hidden !important;
}

.ni-vlogs-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(18px, 4vw, 54px);
    background: rgba(10, 9, 8, .88);
    backdrop-filter: blur(6px);
}

.ni-vlogs-lightbox.is-open {
    display: flex;
}

.ni-vlogs-lightbox__dialog {
    position: relative;
    width: min(1180px, 94vw);
    background: #111;
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
}

.ni-vlogs-lightbox__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
}

.ni-vlogs-lightbox__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ni-vlogs-lightbox__close {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    right: -16px;
    top: -16px;
    z-index: 2;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: #f3eee4;
    color: #23201e;
    cursor: pointer;
    font-family: var(--font-headline, "veneer-three", sans-serif);
    font-size: 34px;
    line-height: 44px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.ni-vlogs-lightbox__close:hover {
    background: var(--ni-gold);
    color: #fff;
}


/* -------------------------------------------------------
   Startseiten-Karte: neuestes Vlog
   Wird durch [ni_neuestes_vlog] ausgegeben
------------------------------------------------------- */

.ni-current-card--video .ni-current-card__image {
    position: relative;
    overflow: hidden;
}

.ni-current-card--video .ni-current-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*
   Die Startseite hat bereits eigene Regeln für .ni-current-card__badge.
   Deshalb hier absichtlich sehr spezifisch und mit !important,
   damit aus dem YouTube-Badge kein Hochhaus im Thumbnail wird.
*/
body .ni-current-card.ni-current-card--video .ni-current-card__image .ni-current-card__badge {
    position: absolute !important;
    right: 18px !important;
    top: 18px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 4 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;

    padding: 9px 12px 7px !important;
    margin: 0 !important;

    background: var(--ni-gold, #b49a7a) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;

    color: #fff !important;
    font-family: var(--font-headline, "veneer-three", sans-serif) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.08em !important;
    text-align: center !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    writing-mode: horizontal-tb !important;

    transform: rotate(1.2deg) !important;
    pointer-events: none !important;
}

/* -------------------------------------------------------
   Leermeldung
------------------------------------------------------- */

.ni-vlogs-empty {
    max-width: 980px;
    margin: 60px auto;
    padding: 28px 32px;
    background: #fbf7ee;
    border: 2px solid #23201e;
    color: #23201e;
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: 18px;
    line-height: 1.5;
}

/* -------------------------------------------------------
   Mobile
------------------------------------------------------- */

@media (max-width: 980px) {
    .ni-vlogs-hero__inner {
        padding-left: 34px;
        padding-right: 34px;
    }

    .ni-vlogs-content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .ni-vlog-card.is-featured .ni-vlog-card__inner {
        display: block;
        min-height: 0;
        padding: 40px 34px 48px;
    }

    .ni-vlog-card.is-featured .ni-vlog-content {
        padding-top: 30px;
    }

    .ni-vlogs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 680px) {

    .ni-vlogs,
    body.ni-vlogs-page .ni-vlogs {
        margin-top: -58px;
    }

    .ni-vlogs-hero,
    body.ni-vlogs-page .ni-vlogs-hero {
        padding-top: 58px;
    }

    .ni-vlog-actions {
        gap: 10px;
    }

    .ni-vlog-link {
        font-size: 18px;
        padding: 14px 18px 12px;
    }

    .ni-vlogs-lightbox__close {
        right: -8px;
        top: -46px;
    }

    .ni-vlogs-hero {
        min-height: 520px;
    }

    .ni-vlogs-hero__inner {
        padding: 0 24px 64px;
    }

    .ni-vlogs-title {
        font-size: clamp(68px, 24vw, 104px);
    }

    .ni-vlogs-description {
        font-size: 18px;
    }

    .ni-vlogs-content {
        margin-top: -40px;
        padding-bottom: 78px;
    }

    .ni-vlogs-grid {
        grid-template-columns: 1fr;
    }

    .ni-vlog-card__inner,
    .ni-vlog-card.is-featured .ni-vlog-card__inner {
        padding: 30px 24px 36px;
    }

    .ni-vlog-card::after {
        right: 18px;
        top: 18px;
        width: 62px;
        height: 62px;
    }

    .ni-vlog-card.is-featured .ni-vlog-heading {
        font-size: clamp(42px, 14vw, 62px);
    }

    .ni-vlog-heading {
        font-size: clamp(30px, 10vw, 42px);
    }

    .ni-vlog-play,
    .ni-vlog-card.is-featured .ni-vlog-play {
        width: 72px;
        height: 72px;
    }

    .ni-vlog-play::before,
    .ni-vlog-card.is-featured .ni-vlog-play::before {
        left: 29px;
        top: 22px;
        border-top-width: 14px;
        border-bottom-width: 14px;
        border-left-width: 22px;
    }
}
