/* ============================================
   WIZZPER.DE – DEAL SEITE (deal.css)
============================================ */

/* ----- GLOBAL ----- */
body {
    font-family: "Inter", sans-serif;
    background: #f5f7fa;
    color: #142028;
    margin: 0;
}

h1, h2, h3 {
    font-weight: 700;
}

.section-title {
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 12px;
    color: #111;
}

/* ============================================
   LAYOUT
============================================ */
.deal-container {
    max-width: 1250px;
    margin: 40px auto 80px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    grid-gap: 40px;
}

@media (max-width: 900px) {
    .deal-container {
        grid-template-columns: 1fr;
        padding: 0 12px;
        margin-top: 20px;
    }
}

/* ============================================
   DEAL CARD
============================================ */
.deal-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

@media (max-width: 700px) {
    .deal-card {
        padding: 18px;
    }
}

/* TITLE */
.deal-title {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 10px;
}

@media (max-width: 700px) {
    .deal-title {
        font-size: 1.35rem;
        line-height: 1.35;
        word-break: break-word;
    }
}

/* META */
.deal-meta {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 25px;
}

/* WRAPPER IMAGE + PRICEBOX */
.deal-flex {
    display: flex;
    gap: 35px;
}

@media (max-width: 900px) {
    .deal-flex {
        flex-direction: column;
        gap: 16px;
    }
}

/* ============================================
   PRODUCT IMAGE
============================================ */
.deal-image {
    position: relative;
    width: 42%;
}

@media (max-width: 900px) {
    .deal-image {
        width: 100%;
    }
}

.deal-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

/* TOP DEAL BADGE */
.topdeal-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e63946;
    color: #fff;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px;
}

/* ============================================
   PRICEBOX
============================================ */
.deal-pricebox {
    background: #e8fff3;
    border: 1px solid #b2f2d6;
    border-radius: 12px;
    padding: 20px 22px;
    width: 58%;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.03);
}

@media (max-width: 900px) {
    .deal-pricebox {
        width: 100%;
        padding: 16px;
    }
}

.price-main {
    font-size: 2rem;
    font-weight: 700;
    color: #0c8f68;
}

@media (max-width: 700px) {
    .price-main {
        font-size: 1.5rem;
    }
}

.price-old {
    font-size: 1rem;
    color: #6b7280;
    text-decoration: line-through;
}

.deal-hinweis {
    font-size: 0.8rem;
    color: #6b7280;
}

/* SCORE */
.score {
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0c684d;
}

@media (max-width: 700px) {
    .score {
        font-size: 1rem;
    }
}

/* AMAZON BUTTON */
.deal-btn {
    margin-top: 18px;
    display: block;
    background: #0d9488;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
}

@media (max-width: 700px) {
    .deal-btn {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

/* ============================================
   LONG TEXT
============================================ */
.longtext {
    font-size: 1rem;
    line-height: 1.6rem;
    color: #334155;
}

@media (max-width: 700px) {
    .longtext {
        font-size: 0.95rem;
        line-height: 1.45rem;
    }
}

/* ============================================
   SIDEBAR
============================================ */
.sidebar {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

@media (max-width: 900px) {
    .sidebar {
        width: 100%;
        padding: 16px;
        border-radius: 12px;
    }
}

/* WHATSAPP BOX */
.wa-box {
    border-radius: 16px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    overflow: hidden;
}

.wa-img {
    width: 100%;
}

/* SHARE BOX */
.share-box {
    background: #ffffff;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 25px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

/* SHARE GRID */
.share-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* ============================================
   SIDEBAR – DESKTOP & GLOBAL STYLE
============================================ */

.sidebar {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

/* Jede Box in der Sidebar */
.sidebar-box {
    background: #ffffff;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    margin-bottom: 24px;
}

/* Überschriften */
.sidebar-box h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0d9488;
}

/* Links */
.sidebar-box a {
    display: block;
    padding: 8px 0;
    color: #0d9488;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-box a:last-child {
    border-bottom: none;
}

.sidebar-box a:hover {
    color: #0a7a71;
    text-decoration: underline;
}

/* WhatsApp Banner */
.sidebar .wa-box {
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 24px;
}

.sidebar .wa-box img {
    width: 100%;
    display: block;
}

/* Share-Box auf Desktop */
.share-box {
    padding: 18px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.share-box h4 {
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 700;
}



/* ============================================================
   FINAL MOBILE FULL-WIDTH FIX – DEAL PAGE
   ============================================================ */
@media (max-width: 700px) {

    /* Container wirklich 100 % breit */
    .deal-container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 10px !important; /* Minimal nötig für Lesbarkeit */
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* Deal-Card fast randlos */
    .deal-card {
        padding: 14px !important;
        border-radius: 12px !important;
    }

    /* Sidebar full-width */
    .sidebar {
        max-width: 100% !important;
        width: 100% !important;
        padding: 14px !important;
    }

    /* Bild + Preis wirklich 100% */
    .deal-image,
    .deal-pricebox,
    .deal-flex {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Bilder flush to edge */
    .deal-image img {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 10px !important;
    }

}

/* ============================================
   SIDEBAR – MOBILE OPTIMIERUNG
============================================ */
@media (max-width: 700px) {

    .sidebar {
        width: 100% !important;
        padding: 14px !important;
        border-radius: 12px !important;
        box-shadow: 0 3px 12px rgba(0,0,0,0.06) !important;
    }

    .sidebar-box {
        width: 100% !important;
        padding: 14px !important;
        margin-bottom: 20px !important;
        border-radius: 12px !important;
    }

    .sidebar-box h3 {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }

    .sidebar-box a {
        font-size: 0.9rem !important;
        padding: 7px 0 !important;
    }

    .share-box {
        padding: 14px !important;
        border-radius: 12px !important;
    }

    .share-grid {
        gap: 10px !important;
    }

    .share-icon {
        width: 46px !important;
        height: 46px !important;
    }

    .share-icon img {
        width: 24px !important;
        height: 24px !important;
    }
}


.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin: 20px 0 40px;
}

.related-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}

.related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.related-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
}

.related-title {
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #475569;
}

.related-meta .price {
    font-weight: 700;
    color: #0f172a;
}


.deal-base-price {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}

.price-alert-btn {
    margin-top: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #f59e0b;
    background: #fff7ed;
    color: #92400e;
    font-weight: 600;
    cursor: pointer;
}

.price-alert-btn:hover {
    background: #ffedd5;
}

.price-alert-hint {
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
}
