/* ==================================================
   BLOGPOST LAYOUT - EDITORIAL STANDARD (DESKTOP FIRST)
================================================== */

/* --------------------------------------------------
   BLOGPOST HEADER
-------------------------------------------------- */

.blogpost-header {
    max-width: 1200px;
    margin: 220px auto 70px;

    padding-left: calc(48px + 52px + 20px);
    padding-right: 48px;
}

.category {
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 600;
    opacity: 0.6;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-align: left;
}

/* 🔥 HAUPTTITEL (JETZT EINZIG GÜLTIG) */
.blog-title {
    font-family: "Playfair Display", serif;
    font-size: 64px;
    font-weight: 600;
    line-height: 1.05;
    margin: 0;
    text-align: left;

    /* 🔥 für lange Titel */
    word-break: break-word;
    max-width: 900px;

    /* 🔥 Premium Look */
    letter-spacing: -0.5px;
}

.meta {
    font-size: 13px;
    opacity: 0.6;
    margin-top: 14px;
    text-align: left;
}

/* --------------------------------------------------
   HERO IMAGE (FULL BLEED)
-------------------------------------------------- */

.blogpost-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 90px;
}

.blogpost-hero img {
    width: 100%;
    height: 100vh;
    max-height: 720px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* --------------------------------------------------
   CONTENT COLUMN
-------------------------------------------------- */

.blogpost-content {
    max-width: 600px;
    margin: 0 auto 140px;
    padding: 0 24px;
    font-family: "Playfair Display", serif;
    font-size: 20px;
    line-height: 1.85;
}

/* --------------------------------------------------
   PARAGRAPHS
-------------------------------------------------- */

.blogpost-content p {
    margin-bottom: 34px;
}

/* --------------------------------------------------
   FIGURES & IMAGES
-------------------------------------------------- */

.blogpost-content figure {
    margin: 80px auto;
    max-width: 820px;
}

.blogpost-content figure img {
    width: 100%;
    height: auto;
    display: block;
}

/* --------------------------------------------------
   CAPTIONS
-------------------------------------------------- */

.blogpost-content figcaption {
    font-size: 13px;
    opacity: 0.6;
    margin-top: 12px;
    line-height: 1.4;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------------------------------
   Editorial Hinweis
---------------------------------- */
.editorial-note {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #777;
    max-width: 720px;
}

/* =====================================================
   RELATED POSTS
===================================================== */

#related-posts {
    padding: 0 3rem 6rem;
    margin-top: 6rem;
}

#related-posts h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.related-grid {
    display: flex;
    flex-direction: column;
}

.related-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
    text-decoration: none;
    color: #000;
    border-top: 1px solid #000;
}

.related-card:last-child {
    border-bottom: 1px solid #000;
}

.related-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.related-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    line-height: 1.2;
}

/* ==================================================
   IMAGE SLIDER
================================================== */

.image-slider {
    position: relative;
    overflow: hidden;
}

.slides {
    position: relative;
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
}

.prev,
.next {
    position: absolute;
    top: var(--slider-arrow-top, 50%);
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.48);
    color: transparent;
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    font-size: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.prev:hover,
.next:hover {
    background: rgba(0, 0, 0, 0.68);
    transform: translateY(-50%) scale(1.04);
}

.prev::before,
.next::before {
    content: "";
    width: 14px;
    height: 14px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.prev::before {
    transform: rotate(-135deg);
    margin-left: 5px;
}

.next::before {
    transform: rotate(45deg);
    margin-right: 5px;
}

.prev { left: 24px; }
.next { right: 24px; }

.dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 8px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: lightgray;
}

.dots span.active {
    background: darkgray;
}

@media (max-width: 1024px) {
    .prev, .next {
        display: none;
    }
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 1099px) {

    .blogpost-header {
        max-width: 1100px;
    }

    .blog-title {
        font-size: 80px;
    }

    .blogpost-content {
        max-width: 620px;
    }

    .blogpost-content figure {
        max-width: 760px;
    }
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 767px) {

    .blogpost-header {
        margin: 180px auto 40px;
        padding-left: 28px;
        padding-right: 28px;
    }

    .blog-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .blogpost-content {
        font-size: 19px;
        margin-bottom: 0;
    }

    .blogpost-hero {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        margin-bottom: 40px;   /* 🔥 kleiner Abstand */
        margin-top: 10px;
    }
    
    .blogpost-hero img {
        max-height: 260px;
    }

    #related-posts {
        margin-top: 12px;
    }

    .product-card img {
        width: 100%;
        max-height: 220px;      /* 🔥 HIER PASSIERT DIE MAGIE */
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }
}

/* =========================================
   PRODUCT SHOWCASE
========================================= */

.product-showcase {
    margin: 120px auto;
    max-width: 1100px;
}

.product-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.product-card {
    text-align: center;
}

.product-card img {
    width: 100%;
}

.product-info {
    margin-top: 20px;
}

.product-bridge {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.product-info h3 {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-info .price {
    font-size: 18px;
    margin: 10px 0 18px;
}

.shop-btn {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 12px 26px;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
}

.shop-btn:hover {
    opacity: 0.8;
}

.affiliate-note {
    margin-top: 40px;
    font-size: 12px;
    color: #777;
    text-align: right;
}

@media (max-width: 1024px) {
    .product-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .product-row {
        grid-template-columns: 1fr;
    }
}

.related-posts {

    margin-top: 100px;
}

.related-posts h2 {

    font-size: 18px;

    font-weight: 500;

    text-align: left;

    margin-bottom: 30px;

    letter-spacing: 0.5px;
}

#relatedPosts {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px, 1fr)
        );

    gap: 30px;
}

.related-card {

    text-decoration: none;

    color: inherit;

    background: #fff;

    transition: .25s ease;
}

.related-card:hover {

    transform:
        translateY(-4px);
}

.related-card img {

    width: 100%;

    aspect-ratio: 4/3;

    object-fit: cover;

    display: block;
}

.related-content {

    padding: 15px;
}

.related-category {

    font-size: 12px;

    letter-spacing: 1px;

    text-transform: uppercase;

    opacity: .7;
}

.related-content h3 {

    margin-top: 10px;

    margin-bottom: 10px;

    line-height: 1.3;
}

.related-content p {

    opacity: .8;
}
