/* ── home.css: Startseite Redesign v2 ──────────────────────────────────── */

/* === HERO ================================================================ */

.home-hero {
    background: linear-gradient(150deg, #f0f4f8 0%, #eaeff6 100%);
    padding: 72px 0 80px;
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: 'XP';
    position: absolute;
    right: -2vw;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(10rem, 22vw, 18rem);
    font-weight: 900;
    color: rgba(51, 153, 255, 0.07);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    font-family: "Gentleman600", Georgia, serif;
    letter-spacing: -0.04em;
}

.home-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 72ch;
}

.home-hero__eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #3399ff;
    margin: 0 0 12px;
}

.home-hero__brand {
    font-family: "Gentleman600", Georgia, serif;
    font-size: clamp(3.2rem, 8vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1;
    color: #1a1f2e;
    margin: 0 0 28px;
}

.home-hero__brand em {
    color: #3399ff;
    font-style: normal;
}

.home-hero__text {
    font-size: 0.95rem;
    line-height: 1.82;
    color: #4a5568;
    border-left: 3px solid rgba(51, 153, 255, 0.45);
    padding-left: 1.1rem;
}

.home-hero__text p { margin-top: 0; margin-bottom: 0.6em; }
.home-hero__text p:last-child { margin-bottom: 0; }


/* === STATS STRIP ========================================================= */

.home-stats-strip--v2 {
    background: #1a1f2e;
    padding: 52px 0 44px;
}

.home-stats-strip--v2 .home-stats-strip__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    align-items: center;
    justify-content: flex-end;
    margin-right: 3rem;
}

.home-stats-strip--v2 .home-stats-strip__item {
    background: #fff;
    border-radius: 10px;
    padding: 16px 28px;
    min-width: 100px;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.05),
        0 8px 24px rgba(0,0,0,0.16),
        0 20px 48px rgba(0,0,0,0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-stats-strip--v2 .home-stats-strip__item:hover {
    transform: translateY(-5px);
    box-shadow:
        0 4px 8px rgba(0,0,0,0.07),
        0 16px 40px rgba(0,0,0,0.20),
        0 32px 64px rgba(0,0,0,0.13);
}

.home-stats-strip--v2 .home-stats-strip__value {
    font-family: "Gentleman600", Georgia, serif;
    font-size: 1.65rem;
    color: #1a1f2e;
    line-height: 1.1;
    transition: color 0.15s;
}

.home-stats-strip--v2 .home-stats-strip__label {
    font-size: 0.65rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
    white-space: nowrap;
}

.home-stats-strip--v2 .home-stats-strip__item--link:hover .home-stats-strip__value {
    color: #3399ff;
}


/* === NAV: staggered grid ================================================= */

.home-nav-section {
    background: #fff;
    padding: 60px 0 72px;
}

.home-nav-stagger {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 22px;
    align-items: start;
    padding-bottom: 28px;
}

.home-nav-stagger > *:nth-child(1) { margin-top: 0;    }
.home-nav-stagger > *:nth-child(2) { margin-top: 28px; }
.home-nav-stagger > *:nth-child(3) { margin-top: 12px; }
.home-nav-stagger > *:nth-child(4) { margin-top: 40px; }
.home-nav-stagger > *:nth-child(5) { margin-top: 20px; }
.home-nav-stagger > *:nth-child(6) { margin-top: 48px; }

.home-nav-stagger a { display: block; height: 100%; }

.home-nav-card--v2 {
    border-radius: 12px;
    border: none;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.04),
        0 8px 20px rgba(0,0,0,0.09),
        0 16px 40px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-nav-card--v2:hover {
    transform: translateY(-6px);
    box-shadow:
        0 4px 8px rgba(0,0,0,0.06),
        0 16px 36px rgba(0,0,0,0.14),
        0 28px 60px rgba(0,0,0,0.09);
}


/* === REVIEWS SECTION ===================================================== */

.home-reviews-section {
    background: #f2f5f8;
    padding: 64px 0 80px;
    position: relative;
    overflow: visible;
}

/* Weißes Dreieck oben: wie eine Ecke die von der Nav-Sektion hereinragt */
.home-reviews-section::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    border-top: 40px solid #fff;
    border-right: 100vw solid transparent;
    pointer-events: none;
    z-index: 1;
}

/* Featured Review: saubere große floating Card, kein Bleed */
/* Höhere Spezifität um style.css overflow:hidden zu übertrumpfen */
.home-featured-review.home-featured-review--v2 {
    overflow: hidden;
    border: none;
    border-top: 5px solid #3399ff;
    border-radius: 5px 5px 14px 14px;
    margin-bottom: 0;
    box-shadow:
        0 8px 24px rgba(0,0,0,0.10),
        0 24px 64px rgba(0,0,0,0.12),
        0 48px 96px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-featured-review.home-featured-review--v2:hover {
    transform: translateY(-5px);
    box-shadow:
        0 12px 32px rgba(0,0,0,0.13),
        0 32px 80px rgba(0,0,0,0.15),
        0 56px 112px rgba(0,0,0,0.10);
}

.home-featured-review.home-featured-review--v2 .home-featured-review__inner {
    grid-template-columns: 1fr;
}

.home-featured-review.home-featured-review--v2 .home-featured-review__image {
    position: relative;
    overflow: hidden;
    background: #1a2233;
    aspect-ratio: 4/3;
}

.home-featured-review.home-featured-review--v2 .home-featured-review__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-featured-review.home-featured-review--v2 .home-featured-review__body {
    padding: 1.5rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-featured-review.home-featured-review--v2 .home-featured-review__title {
    font-size: 1.25rem;
    line-height: 1.2;
}

/* Review-Layout: Goldener Schnitt (38.2% Featured links / 61.8% Stack rechts) */
.home-reviews-layout {
    display: grid;
    grid-template-columns: 1fr 1.618fr;
    gap: 24px;
    align-items: start;
}

.home-reviews-layout__stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Stack-Karten: horizontal (Bild links, Text rechts) */
.home-reviews-layout__stack .home-review-card--v2 {
    display: flex;
    flex-direction: row;
}

.home-reviews-layout__stack .home-review-card--v2 .home-review-card__img {
    flex: 0 0 36%;
    overflow: hidden;
}

.home-reviews-layout__stack .home-review-card--v2 .home-review-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1.25rem;
}

.home-review-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Floating Review-Karten */
.home-review-card.home-review-card--v2 {
    border-radius: 10px;
    border: none;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.04),
        0 8px 20px rgba(0,0,0,0.09),
        0 16px 40px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-review-card.home-review-card--v2:hover {
    transform: translateY(-5px);
    box-shadow:
        0 4px 8px rgba(0,0,0,0.06),
        0 16px 36px rgba(0,0,0,0.14),
        0 28px 56px rgba(0,0,0,0.08);
}


/* === GAMES: dunkler Hintergrund, schwebende Cards ======================== */

.home-games-section {
    background: #1a1f2e;
    padding: 64px 0 56px;
    position: relative;
}

/* Dekorativer Hintergrund-Text */
.home-games-section::before {
    content: '↻';
    position: absolute;
    right: 4vw;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(12rem, 24vw, 20rem);
    color: rgba(255,255,255,0.025);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.home-games-section h3 {
    color: #fff;
}

.home-games-section > .uk-container > .uk-flex > a.uk-text-small {
    color: rgba(255,255,255,0.55);
    transition: color 0.15s;
}

.home-games-section > .uk-container > .uk-flex > a.uk-text-small:hover {
    color: #6cc4d5;
}

/* Game-Cards auf dunklem Grund: Schatten verstärken */
.home-games-section .uk-card {
    box-shadow:
        0 2px 6px rgba(0,0,0,0.20),
        0 10px 28px rgba(0,0,0,0.28),
        0 20px 48px rgba(0,0,0,0.18) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.home-games-section .game-card:hover .uk-card {
    transform: translateY(-5px);
    box-shadow:
        0 6px 12px rgba(0,0,0,0.28),
        0 20px 48px rgba(0,0,0,0.36),
        0 36px 72px rgba(0,0,0,0.24) !important;
}


/* === POSTS: kompakte Zeilen ============================================== */

.home-posts-section {
    background: #fff;
    padding: 56px 0 64px;
    border-top: 1px solid #edf0f4;
}

.home-posts-list {
    margin-top: 4px;
}

.home-post-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #e8ecf0;
    text-decoration: none;
    color: inherit;
    border-left: 3px solid transparent;
    padding-left: 12px;
    transition: border-left-color 0.15s, background 0.15s;
}

.home-posts-list .home-post-row:first-child {
    border-top: 1px solid #e8ecf0;
}

.home-post-row:hover {
    background: #f6f8fb;
    border-left-color: #3399ff;
}

.home-post-row__thumb {
    width: 76px;
    height: 54px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #e8ecf0;
}

.home-post-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-post-row__body {
    flex: 1;
    min-width: 0;
}

.home-post-row__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.home-post-row__date {
    font-size: 0.7rem;
    color: #9ca3af;
    white-space: nowrap;
}

.home-post-row__title {
    display: block;
    font-family: "Gentleman600", Georgia, serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1f2e;
    line-height: 1.35;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    transition: color 0.12s;
}

.home-post-row:hover .home-post-row__title { color: #3399ff; }

.home-post-row__teaser {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.55;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-post-row__more {
    font-size: 0.78rem;
    color: #3399ff;
    font-weight: 700;
    text-decoration: none;
}

.home-post-row:hover .home-post-row__more { text-decoration: underline; }


/* === CTA: diagonale obere Kante (gespiegelt zur Reviews-Sektion) ========= */

.uk-section-secondary {
    position: relative;
    padding-top: calc(2rem + 44px); /* Puffer für das Dreieck */
    overflow: visible;
    margin-top: 0;
}

/* Weißes Dreieck von rechts oben — entgegengesetzte Richtung zur Reviews-Sektion */
.uk-section-secondary::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    border-top: 40px solid #fff;
    border-left: 100vw solid transparent;
    pointer-events: none;
    z-index: 1;
}


/* === Responsive ========================================================== */

@media (max-width: 639px) {
    .home-hero { padding: 48px 0 56px; }
    .home-hero::before { display: none; }
    .home-hero__brand { font-size: 2.8rem; }

    .home-stats-strip--v2 .home-stats-strip__grid { justify-content: space-around; }

    .home-nav-stagger {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding-bottom: 0;
    }
    .home-nav-stagger > * { margin-top: 0 !important; }

    .home-reviews-layout {
        grid-template-columns: 1fr;
    }
    .home-featured-review.home-featured-review--v2 .home-featured-review__body {
        padding: 1.25rem;
    }
    .home-featured-review.home-featured-review--v2 .home-featured-review__title {
        font-size: 1.2rem;
    }

    .home-games-section::before { display: none; }

    .home-post-row { padding-left: 0; border-left: none; }
    .home-post-row:hover { border-left: none; }
}
