/* ============================================================
   BLOG LAYOUT – DESKTOP + MOBILE (WIZZPER 2025)
=============================================================== */

/* Gesamt-Container */
.blog-container {
    max-width: 1350px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
}

@media(max-width: 950px) {
    .blog-container {
        grid-template-columns: 1fr;
        padding: 0 14px;
    }
}

/* ============================
   HEADER
============================ */
.blog-header {
    text-align: center;
    margin-bottom: 25px;
}

.blog-header h1 {
    color: #0d9488;
    font-size: 2.1rem;
    font-weight: 700;
    margin: 0;
}

.blog-sub {
    color: #6b7280;
    margin-top: 6px;
    font-size: 1rem;
}

/* ============================
   BLOG GRID
============================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

@media (max-width: 680px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* ============================================================
   BLOG-KARTE / CARD
=============================================================== */
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0,0,0,0.06);
    transition: transform .2s ease, box-shadow .2s ease;
    width: 100%;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

/* BILD */
.blog-card img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
}

/* CONTENT */
.blog-card-content {
    padding: 18px;
}

.blog-card .date {
    font-size: 0.85rem;
    color: #6b7280;
}

.blog-card h2 {
    font-size: 1.25rem;
    margin: 8px 0 10px;
    line-height: 1.35;
}

.blog-card p {
    margin: 5px 0 10px;
    color: #4b5563;
}

/* Tags */
.tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 100%;
}

.tags a {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: #eef2f4;
    border-radius: 6px;
    color: #0d9488;
    text-decoration: none;
    white-space: nowrap;
}

/* Mobile Tags Scroll */
@media(max-width: 680px) {
    .tags {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .tags a {
        flex-shrink: 0;
    }
}

/* ============================================================
   BUTTON – Weiterlesen
=============================================================== */
.button {
    display: inline-block;
    padding: 10px 18px;
    background: #0d9488;
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 12px;
    transition: .25s ease;
}

.button:hover {
    background: #0a786c;
}

/* ============================================================
   PAGINATION
=============================================================== */
.pagination {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.pagination a {
    padding: 8px 14px;
    background: #eef2f4;
    color: #0d9488;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.pagination a.active,
.pagination a:hover {
    background: #0d9488;
    color: #fff;
}

/* ============================================================
   SIDEBAR
=============================================================== */
.blog-sidebar .sidebar-box {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 28px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.06);
}

.blog-sidebar h3 {
    font-size: 1.15rem;
    margin: 0 0 10px;
}

.blog-sidebar a {
    display: block;
    padding: 6px 0;
    color: #0d9488;
    font-weight: 600;
    text-decoration: none;
}

.blog-sidebar a:hover {
    text-decoration: underline;
}

.wa-banner img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 25px;
}

/* ============================================================
   VIRAL BOX
=============================================================== */
.highlight-viral {
    background: #fff7ed;
    border-left: 4px solid #ff8a00;
    padding: 16px;
    border-radius: 12px;
}

.highlight-viral h3 {
    margin-top: 0;
    color: #ff8a00;
}

.highlight-viral p {
    font-size: 0.9rem;
    color: #7a5e3a;
}

.viral-btn {
    display: inline-block;
    padding: 10px 14px;
    background: #ff8a00;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.viral-btn:hover {
    background: #ff7400;
}

/* ============================================================
   ABSOLUTER iPHONE / ANDROID OVERFLOW FIX
=============================================================== */

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
}

/* ============================================================
   MOBILE PERFECT MODE – Wizzper 2025
   Kompakte Bilder, kompakte Texte, moderne Optik
=============================================================== */
@media(max-width: 680px) {

    /* Header */
    .blog-header h1 {
        font-size: 1.6rem;
    }

    .blog-sub {
        font-size: 0.9rem;
    }

    /* Cards kompakt */
    .blog-card {
        border-radius: 12px;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Bilder kompakt (Google Discover Style) */
    .blog-card img {
        height: 160px !important;
        aspect-ratio: auto !important;
        object-fit: cover !important;
        border-radius: 12px 12px 0 0 !important;
    }

    /* Content kleiner */
    .blog-card-content {
        padding: 14px;
    }

    .blog-card h2 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .blog-card p {
        font-size: 0.85rem;
        line-height: 1.35;
    }

    .blog-card .date {
        font-size: 0.75rem;
    }

    /* Button */
    .button {
        padding: 8px 14px;
        font-size: 0.85rem;
        border-radius: 6px;
    }

    /* Sidebar kompakt */
    .blog-sidebar .sidebar-box {
        padding: 14px;
    }

    .blog-sidebar h3 {
        font-size: 1rem;
    }

    .blog-sidebar a {
        font-size: 0.9rem;
    }
}


/* ============================================================
   🔥 ABSOLUTE MOBILE FORCE FIX – Bildgröße & Layout
   (Überschreibt ALLE früheren Regeln und iPhone-Fixes)
=============================================================== */

@media(max-width: 680px) {

    /* Container links/rechts richtig einrücken */
    .blog-container,
    .blog-main {
        padding: 0 10px !important;
        margin: 0 !important;
    }

    /* CARD darf niemals breiter oder höher skalieren */
    .blog-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin: 0 !important;
    }

    /* 🔥 DER WICHTIGSTE FIX:
       Bild bekommt feste Höhe, kein aspect-ratio mehr */
    .blog-card img {
        width: 250px !important;
        max-height: 150px !important;
        aspect-ratio: unset !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        border-radius: 12px 12px 0 0 !important;
    }

    /* Titel, Text kleiner */
    .blog-card h2 {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }

    .blog-card p {
        font-size: 0.85rem !important;
        line-height: 1.35 !important;
    }

    /* Sidebar reduzieren */
    .blog-sidebar {
        margin-top: 25px !important;
    }
}

@media(max-width: 700px) {
    .blog-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}


/* ============================================================
   FIX: Sidebar + Banner darf NIE breiter als der Bildschirm sein
=============================================================== */
@media(max-width: 700px) {

    .blog-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: hidden !important;
        box-sizing: border-box;
    }

    .wa-banner img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .sidebar-box {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px !important;
        box-sizing: border-box !important;
    }
}

