/* =========================================================
   CORENODA FEED CARDS
   Nur Startseiten-/Feed-Kacheln
========================================================= */


/* =========================================================
   01) FEED VARIABLES
========================================================= */

:root {
    --badge-top-desktop: 120px;
    --badge-top-mobile: 90px;
}


/* =========================================================
   02) FEED CARD BASE
========================================================= */

.v2-snap-section.no-image {
    background-color: #111;
}

.v2-snap-section {
    position: relative;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    min-height: 100svh;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;

    padding: calc(var(--header-height) + 32px) 24px 32px;
    box-sizing: border-box;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    overflow: hidden;
}

.v2-background-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;

    filter: brightness(0.82) contrast(1.06) saturate(0.95);
    transform: scale(1.015);
}

/* Overlay 1 */
.v2-snap-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(
            to top,
            rgba(0,0,0,0.92) 0%,   /* etwas dunkler unten */
            rgba(0,0,0,0.65) 30%,  /* stärker im Mittelbereich */
            rgba(0,0,0,0.22) 65%,
            rgba(0,0,0,0.04) 100%
),
        linear-gradient(
            135deg,
            rgba(0,167,216,0.18) 0%,
            rgba(0,167,216,0.05) 28%,
            rgba(0,0,0,0) 55%
        );
    z-index: 1;
}

/* Overlay 2 */
.v2-snap-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 78% 18%,
            rgba(255,255,255,0.10) 0%,
            rgba(255,255,255,0.04) 14%,
            rgba(255,255,255,0) 34%
        );
    z-index: 1;
    pointer-events: none;
}


/* =========================================================
   03) FEED BADGE
========================================================= */

.v2-badge {
    position: absolute;
    top: var(--badge-top-desktop);
    left: 20px;
    z-index: 5;

    display: inline-block;
    padding: 8px 14px;

    background: #1893c0;
    color: #fff;

    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;

    border-radius: 2px;
}


/* =========================================================
   04) FEED CONTENT
========================================================= */

.v2-content-wrap {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 650px;

    margin-left: 0;
    margin-right: auto;

    align-self: flex-start;
    text-align: left;
}

/* HEADLINE */
.v2-headline {
    display: block;
    width: 100%;
    max-width: 100%;

    color: #fff;
    text-decoration: none;
    margin: 0;

    white-space: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    text-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

.v2-headline-kicker {
    display: block;

    width: 92%;
    max-width: none;

    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: clamp(3.9rem, 20vw, 5.8rem);
    line-height: 0.9;
    font-weight: 800;
    letter-spacing: -0.04em;

    color: #fff;

    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
}

.v2-headline-rest {
    display: block;
    margin-top: 8px;

    width: 88%;
    max-width: 28ch;   /* vorher viel zu klein */

    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 4.6vw, 2.7rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.015em;

    color: rgba(255,255,255,0.96);
}

/* TEASER */
.v2-teaser {
    margin-top: 18px;
    display: inline-block;
    max-width: 34rem;

    padding: 10px 14px 11px 14px;
    border-radius: 10px;

    background: #e7504f;
    color: #fff;

    font-size: 0.96rem;
    line-height: 1.35;
    font-weight: 700;

    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
    backdrop-filter: blur(3px);
}

/* IMPACT */
.v2-impact {
    position: relative;
    margin-top: 24px;
    max-width: 33rem;

    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;

    color: rgba(255,255,255,0.98);
    font-size: 1rem;
    line-height: 1.38;
    font-weight: 700;
}

.v2-impact::before {
    content: "FÜR DICH WICHTIG";
    display: block;

    margin-bottom: 12px;
    padding: 4px 8px 4px 10px;

    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.1em;

    text-transform: uppercase;
    line-height: 1.1;
    width: fit-content;

    color: rgba(255,255,255,0.85);

    background: linear-gradient(
    to right,
    rgba(0,0,0,0.32) 0%,
    rgba(0,0,0,0.22) 55%,
    rgba(0,0,0,0.08) 75%,
    rgba(0,0,0,0) 100%
);
    border-left: 2px solid #00A7D8; /* dein Blau */
}


/* =========================================================
   05) FEED AUTHOR
========================================================= */

.v2-author-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
}

/* AUTHOR ROW */
.v2-tile-author {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
    color: #fff;

    margin-top: 0;
}

.v2-author-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.v2-author-name {
    font-size: 1.02rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

/* META ROW (Datum + Lesezeit) */
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;

    padding: 4px 8px;

    background: rgba(0,0,0,0.22);
    color: rgba(255,255,255,0.9);

    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    border-radius: 8px;
}

.meta-dot {
    opacity: 0.5;
    margin: 0 4px;
}

.time-icon {
    width: 14px;
    height: 14px;
    min-width: 14px;

    display: block;
    fill: currentColor;

    flex-shrink: 0;
}


/* =========================================================
   05) FEED Mobile
========================================================= */

@media (max-width: 768px) {

    .v2-snap-section {
        padding: 108px 20px 28px;
}

    .v2-badge {
        top: var(--badge-top-mobile);
 }

    .v2-content-wrap {
    max-width: 100%;
    transform: translateY(24px);
}

    .v2-headline-kicker {
    display: block;

    width: 92%;
    max-width: none;

    font-size: clamp(3.3rem, 16vw, 5rem);
    line-height: 0.92;
    letter-spacing: -0.04em;

    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
}

.v2-headline-rest {
    margin-top: 7px;

    width: 92%;
    max-width: none;   /* ← wichtig: killt die harte Begrenzung */

    font-size: clamp(2rem, 6.7vw, 2.4rem);
    line-height: 1.08;
}

.v2-teaser {
    max-width: 100%;
    margin-top: 16px;
    padding: 9px 12px 10px 12px;
    font-size: 1.1rem;
    line-height: 1.32;
}

.v2-impact {
    max-width: 100%;
    margin-top: 24px;
    font-size: 0.96rem;
    line-height: 1.34;
}

    .v2-author-img {
        width: 52px;
        height: 52px;
    }

    .meta-pill {
        font-size: 0.72rem;
        padding: 9px 12px;
    }
}

/* =========================================================
   06) LOAD MORE
========================================================= */

.load-more-floating {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 999;

    display: none;

    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;

    background: rgba(255,255,255,0.96);
    color: #111;

    font-size: 15px;
    font-weight: 800;
    line-height: 1;

    box-shadow: 0 12px 30px rgba(0,0,0,0.28);
    backdrop-filter: blur(8px);

    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease;

    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .load-more-floating:hover {
        transform: translateX(-50%) translateY(-1px);
    }
}

.load-more-floating:disabled {
    opacity: 0.7;
    cursor: default;
}

@media (max-width: 768px) {
    .load-more-floating {
        bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
        left: 50%;
        transform: translateX(-50%);
        max-width: calc(100vw - 32px);
        padding: 13px 20px;
        font-size: 14px;
        z-index: 9999;
    }
}