/* =====================================================
   DEALS ARCHIVE
   ===================================================== */

.deals-page {
    --accent: var(--accent-color, #0669ff);
    --dark: #1d1d1d;
}

/* ===== HERO ===== */
.deals-hero {
    background: linear-gradient(135deg, #1d1d1d 0%, #0d0d0d 60%, #1a1a1a 100%);
    overflow: hidden;
    position: relative;
}

.deals-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at right, rgba(6, 105, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.deals-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 260px;
    position: relative;
}

.deals-hero-content {
    flex: 1;
    padding: 40px;
    position: relative;
    z-index: 2;
}

.deals-hero-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    margin-bottom: 16px;
}

.deals-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.2;
}

.deals-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.deals-hero-graphic {
    flex: 0 0 300px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.deals-hero-cart {
    width: 180px;
    height: 180px;
    transform: rotate(-10deg);
    filter: drop-shadow(0 0 30px rgba(6, 105, 255, 0.4));
    animation: cartFloat 4s ease-in-out infinite;
}

@keyframes cartFloat {
    0%, 100% { transform: rotate(-10deg) translateY(0); }
    50% { transform: rotate(-10deg) translateY(-10px); }
}

@media (max-width: 900px) {
    .deals-hero-inner {
        flex-direction: column;
        min-height: auto;
    }
    
    .deals-hero-content {
        padding: 32px 24px;
        text-align: center;
    }
    
    .deals-hero-graphic {
        flex: none;
        height: 150px;
        width: 100%;
    }
    
    .deals-hero-cart {
        width: 120px;
        height: 120px;
    }
}

/* ===== CONTAINER ===== */
.deals-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* ===== LAYOUT ===== */
.deals-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1000px) {
    .deals-layout {
        grid-template-columns: 1fr;
    }
}

/* ===== MAIN CONTENT ===== */
.deals-main {
    min-width: 0;
}

.deals-section-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dark);
    margin: 0 0 24px;
}

/* ===== DEALS LIST ===== */
.deals-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: opacity 0.2s ease;
}

/* Day Group */
.deals-day-group {
    margin-bottom: 32px;
}

.deals-day-group:last-child {
    margin-bottom: 0;
}

.deals-day-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.deals-day-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.deals-day-line {
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

/* Deal Item */
.deal-item {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.deal-item:last-child {
    border-bottom: none;
}

.deal-item-image {
    flex: 0 0 160px;
    aspect-ratio: 4 / 3;
    background: #f5f5f5;
    overflow: hidden;
    position: relative;
    display: block;
}

.deal-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.deal-item-image:hover img {
    transform: scale(1.05);
}

.deal-item-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
}

.deal-item-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #666;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
}

.deal-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.deal-item-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
}

.deal-item-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
}

.deal-item-title a:hover {
    color: var(--accent);
}

.deal-item-excerpt {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 12px;
    flex: 1;
}

.deal-btn {
    display: inline-block;
    align-self: flex-start;
    padding: 10px 24px;
    background: var(--accent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.deal-btn:hover {
    background: #0557d4;
}

@media (max-width: 600px) {
    .deal-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .deal-item-image {
        flex: none;
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}

/* ===== LOAD MORE ===== */
.deals-loadmore {
    margin-top: 32px;
}

.deals-loadmore button {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.deals-loadmore button:hover {
    background: #0557d4;
}

.deals-loadmore button.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* No Results */
.deals-no-results {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
}

.deals-no-results p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

/* ===== SIDEBAR ===== */
.deals-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 20px;
}

.sidebar-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--dark);
    margin: 0 0 16px;
}

/* Filter Tags - Trend Style */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-tag {
    display: inline-block;
    padding: 8px 14px;
    background: #f5f5f5;
    color: #333;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-tag:hover {
    background: var(--accent);
    color: #fff;
}

.sidebar-tag.active {
    background: var(--accent);
    color: #fff;
}

/* ===== NEWSLETTER BOX ===== */
.sidebar-newsletter {
    background: var(--accent);
    padding: 28px 24px;
    text-align: center;
}

.sidebar-newsletter-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-newsletter-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.sidebar-newsletter-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
}

.sidebar-newsletter-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin: 0 0 20px;
}

/* ===== MAILPOET FORM KOMPLETT-RESET ===== */

/* Basis Reset */
.sidebar-newsletter-form #mailpoet_form_7,
.sidebar-newsletter-form .mailpoet_form {
    margin: 0 !important;
    padding: 0 !important;
}

/* VERSTECKE: Alle Überschriften */
.sidebar-newsletter-form #mailpoet_form_7 h1,
.sidebar-newsletter-form #mailpoet_form_7 h2,
.sidebar-newsletter-form #mailpoet_form_7 h3,
.sidebar-newsletter-form #mailpoet_form_7 h4,
.sidebar-newsletter-form .mailpoet_form h1,
.sidebar-newsletter-form .mailpoet_form h2,
.sidebar-newsletter-form .mailpoet_form h3,
.sidebar-newsletter-form .mailpoet_form h4 {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

/* VERSTECKE: Spacer und Divider */
.sidebar-newsletter-form #mailpoet_form_7 .mailpoet_spacer,
.sidebar-newsletter-form #mailpoet_form_7 .mailpoet_has_divider,
.sidebar-newsletter-form #mailpoet_form_7 [class*="mailpoet_spacer"],
.sidebar-newsletter-form .mailpoet_spacer,
.sidebar-newsletter-form .mailpoet_has_divider {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* VERSTECKE: Paragraphen mit h2 oder einleitendem Text */
.sidebar-newsletter-form #mailpoet_form_7 .mailpoet_paragraph:has(h2),
.sidebar-newsletter-form #mailpoet_form_7 .mailpoet_paragraph:has(h1),
.sidebar-newsletter-form .mailpoet_paragraph:has(h2),
.sidebar-newsletter-form .mailpoet_paragraph:has(h1) {
    display: none !important;
}

/* VERSTECKE: Honeypot */
.sidebar-newsletter-form .mailpoet_hp_email_label {
    display: none !important;
}

/* Paragraphen mit Inputs - sichtbar und gestylt */
.sidebar-newsletter-form #mailpoet_form_7 .mailpoet_paragraph,
.sidebar-newsletter-form .mailpoet_paragraph {
    margin: 0 0 12px !important;
    padding: 0 !important;
    text-align: left !important;
}

/* Labels */
.sidebar-newsletter-form #mailpoet_form_7 label:not(.mailpoet_hp_email_label),
.sidebar-newsletter-form label:not(.mailpoet_hp_email_label) {
    display: block !important;
    text-align: left !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,0.9) !important;
    margin-bottom: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

/* Input Fields */
.sidebar-newsletter-form #mailpoet_form_7 input[type="text"],
.sidebar-newsletter-form #mailpoet_form_7 input[type="email"],
.sidebar-newsletter-form #mailpoet_form_7 .mailpoet_text,
.sidebar-newsletter-form input[type="text"],
.sidebar-newsletter-form input[type="email"],
.sidebar-newsletter-form .mailpoet_text {
    width: 100% !important;
    padding: 12px 14px !important;
    border: none !important;
    background: rgba(255,255,255,0.95) !important;
    font-size: 0.9rem !important;
    color: #333 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.sidebar-newsletter-form input::placeholder {
    color: #999 !important;
}

/* Submit Button */
.sidebar-newsletter-form #mailpoet_form_7 input[type="submit"],
.sidebar-newsletter-form #mailpoet_form_7 .mailpoet_submit,
.sidebar-newsletter-form #mailpoet_form_7 button[type="submit"],
.sidebar-newsletter-form input[type="submit"],
.sidebar-newsletter-form .mailpoet_submit,
.sidebar-newsletter-form button[type="submit"] {
    width: 100% !important;
    padding: 14px !important;
    background: var(--dark) !important;
    color: #fff !important;
    border: none !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    border-radius: 0 !important;
    margin-top: 4px !important;
}

.sidebar-newsletter-form input[type="submit"]:hover,
.sidebar-newsletter-form .mailpoet_submit:hover,
.sidebar-newsletter-form button[type="submit"]:hover {
    background: #333 !important;
}

/* Messages */
.sidebar-newsletter-form .mailpoet_message {
    margin-top: 12px !important;
    font-size: 0.8rem !important;
    color: #fff !important;
    text-align: center !important;
}

/* Datenschutz-Hinweis */
.sidebar-newsletter-form #mailpoet_form_7 .mailpoet_paragraph.last,
.sidebar-newsletter-form .mailpoet_paragraph.last {
    font-size: 0.7rem !important;
    color: rgba(255,255,255,0.6) !important;
    margin-top: 14px !important;
    text-align: center !important;
    line-height: 1.4 !important;
}

.sidebar-newsletter-form .mailpoet_paragraph.last a,
.sidebar-newsletter-form .mailpoet_paragraph a {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: underline !important;
}

/* Popup Overlay verstecken */
.sidebar-newsletter-form .mailpoet_form_popup_overlay {
    display: none !important;
}

/* Top Deals */
.sidebar-top-deals {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-deal {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.sidebar-deal:hover .sidebar-deal-title {
    color: var(--accent);
}

.sidebar-deal-image {
    flex: 0 0 60px;
    aspect-ratio: 1;
    background: #f5f5f5;
    overflow: hidden;
}

.sidebar-deal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-deal-content {
    flex: 1;
    min-width: 0;
}

.sidebar-deal-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.sidebar-deal-date {
    font-size: 0.7rem;
    color: #999;
}

/* ===== MOBILE SIDEBAR ===== */
@media (max-width: 1000px) {
    .deals-sidebar {
        order: -1;
    }
    
    .sidebar-box,
    .sidebar-newsletter {
        padding: 16px;
    }
    
    .sidebar-newsletter {
        padding: 24px 16px;
    }
}