/* =======================================================
   TOP DEALS SEITEN – WIZZPER
   (24h / 7 Tage / 30 Tage)
======================================================= */

/* Base */
body {
    font-family: "Inter", sans-serif;
    margin: 0;
    background: #fafafa;
    color: #222;
}

/* Zentrale Container */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

/* Headings */
h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

h2 {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
    margin-bottom: 25px;
}

/* =======================================================
   PAGE SWITCHER (24h | 7d | 30d)
======================================================= */

.page-switcher {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.switch-btn {
    padding: 10px 18px;
    border: 2px solid #00b894;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    color: #00b894;
    transition: 0.2s;
}

.switch-btn:hover,
.switch-btn.active {
    background: #00b894;
    color: #fff;
}

/* =======================================================
   GRID / CARD STYLE
======================================================= */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.25s;
    padding-bottom: 10px;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card h3 {
    font-size: 1rem;
    padding: 12px;
    height: 60px;
    overflow: hidden;
    line-height: 1.3;
}

/* Preis / Rabatt */
.price {
    color: #00b894;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 5px 0;
}

.discount {
    color: #e74c3c;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

/* Preisstand */
.priceinfo {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}

/* Button */
.button {
    background: #00b894;
    padding: 10px 16px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    margin: 0 auto;
}

.button:hover {
    background: #009e7d;
}

/* Klick-Zeile */
.clicks {
    font-size: 0.8rem;
    color: #777;
    margin-top: 10px;
}

/* ===============================================
   TOP DEAL BADGE 
   =============================================== */

.card {
    position: relative;
}

.topdeal-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    z-index: 5;
    letter-spacing: 0.5px;
}


/* =======================================================
   RESPONSIVE
======================================================= */

@media (max-width: 700px) {
    h1 {
        font-size: 1.7rem;
    }
    h2 {
        font-size: 1rem;
    }
    .page-switcher {
        flex-wrap: wrap;
    }
}

/* Extra Mobile Fix */
@media (max-width: 450px) {
    .card img {
        height: 180px;
    }
}
