/**
 * DigitAlb Shop - Neues Theme
 * Version: 1.0.0
 * 
 * Dieses CSS wird NACH style.css geladen und überschreibt nur die nötigen Styles.
 * Aktivieren: ?theme=new oder Admin-Setting
 */

/* =====================================================
   1. GRUNDLEGENDE VARIABLEN & BODY
   ===================================================== */

:root {
    --primary-red: #e63946;
    --primary-red-dark: #c1121f;
    --primary-red-light: #fee2e2;
    --text-dark: #1a1a2e;
    --text-medium: #4a4a68;
    --text-light: #6b7280;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.2s ease;
}

body.theme-new {
    background-color: var(--bg-light);
}

/* =====================================================
   2. PRODUKTKARTEN - KOMPLETTE ÜBERARBEITUNG
   ===================================================== */

/* Karten-Container */
.theme-new .product-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.theme-new .product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Produktbild-Bereich */
.theme-new .product-card .product-image {
    position: relative;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.theme-new .product-card .product-image img {
    max-height: 180px;
    object-fit: contain;
    transition: var(--transition);
}

.theme-new .product-card:hover .product-image img {
    transform: scale(1.03);
}

/* Rabatt-Badge */
.theme-new .product-card .discount-badge,
.theme-new .product-card .badge-discount {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--primary-red);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

/* Wishlist-Herz */
.theme-new .product-card .wishlist-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.theme-new .product-card .wishlist-btn:hover {
    background: var(--primary-red-light);
    border-color: var(--primary-red);
}

/* QUICK-VIEW NUR AUF DESKTOP */
.theme-new .product-card .quick-view-btn,
.theme-new .product-card .schnellansicht-btn {
    display: none;
}

@media (min-width: 769px) {
    .theme-new .product-card .quick-view-btn,
    .theme-new .product-card .schnellansicht-btn {
        display: flex;
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
        background: var(--bg-white);
        border: 1px solid var(--border-color);
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.85rem;
        cursor: pointer;
        transition: var(--transition);
        white-space: nowrap;
    }
    
    .theme-new .product-card:hover .quick-view-btn,
    .theme-new .product-card:hover .schnellansicht-btn {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Produkt-Info Bereich */
.theme-new .product-card .product-info {
    padding: 1rem 1.25rem 1.25rem;
}

/* Kategorie/Abonnement Tag */
.theme-new .product-card .product-category,
.theme-new .product-card .product-type {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--primary-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.theme-new .product-card .product-category span,
.theme-new .product-card .duration-badge {
    background: var(--bg-light);
    color: var(--text-medium);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Produkttitel */
.theme-new .product-card .product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Features Liste */
.theme-new .product-card .product-features {
    margin-bottom: 1rem;
}

.theme-new .product-card .product-features li,
.theme-new .product-card .feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-bottom: 0.35rem;
}

.theme-new .product-card .product-features li::before,
.theme-new .product-card .feature-item::before {
    content: "✓";
    color: #22c55e;
    font-weight: 600;
}

/* Preis-Bereich */
.theme-new .product-card .product-price {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.theme-new .product-card .price-old,
.theme-new .product-card .original-price {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.theme-new .product-card .price-current,
.theme-new .product-card .sale-price,
.theme-new .product-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* IN DEN WARENKORB BUTTON - IMMER SICHTBAR */
.theme-new .product-card .add-to-cart-btn,
.theme-new .product-card .btn-add-cart {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    opacity: 1 !important;
    visibility: visible !important;
}

.theme-new .product-card .add-to-cart-btn:hover,
.theme-new .product-card .btn-add-cart:hover {
    background: var(--primary-red-dark);
    transform: scale(1.02);
}

.theme-new .product-card .add-to-cart-btn svg,
.theme-new .product-card .btn-add-cart svg {
    width: 18px;
    height: 18px;
}

/* =====================================================
   3. PRODUKTLISTE / GRID
   ===================================================== */

.theme-new .products-grid,
.theme-new .product-list {
    display: grid;
    gap: 1.5rem;
    padding: 0.5rem;
}

@media (min-width: 576px) {
    .theme-new .products-grid,
    .theme-new .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .theme-new .products-grid,
    .theme-new .product-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .theme-new .products-grid,
    .theme-new .product-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =====================================================
   4. NEWSLETTER - KOMPAKTER
   ===================================================== */

.theme-new .newsletter-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.theme-new .newsletter-section h3,
.theme-new .newsletter-section .newsletter-title {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-new .newsletter-section p,
.theme-new .newsletter-section .newsletter-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.theme-new .newsletter-section form,
.theme-new .newsletter-section .newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.theme-new .newsletter-section input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.95);
}

.theme-new .newsletter-section input[type="email"]::placeholder {
    color: var(--text-light);
}

.theme-new .newsletter-section button,
.theme-new .newsletter-section .btn-subscribe {
    padding: 0.75rem 1.25rem;
    background: var(--text-dark);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.theme-new .newsletter-section button:hover {
    background: #000;
    transform: scale(1.05);
}

/* Mobile: Stack layout */
@media (max-width: 480px) {
    .theme-new .newsletter-section form,
    .theme-new .newsletter-section .newsletter-form {
        flex-direction: column;
    }
    
    .theme-new .newsletter-section button {
        width: 100%;
    }
}

/* =====================================================
   5. HERO SLIDER - BESSERE LESBARKEIT
   ===================================================== */

.theme-new .hero-slider .slide,
.theme-new .hero-section .slide {
    position: relative;
}

.theme-new .hero-slider .slide::after,
.theme-new .hero-section .slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
    pointer-events: none;
}

.theme-new .hero-slider .slide-content,
.theme-new .hero-section .slide-content {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.theme-new .hero-slider .slide-title {
    font-size: 1.5rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .theme-new .hero-slider .slide-title {
        font-size: 2.5rem;
    }
}

.theme-new .hero-slider .slide-btn,
.theme-new .hero-slider .cta-btn {
    background: var(--primary-red);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.theme-new .hero-slider .slide-btn:hover {
    background: var(--primary-red-dark);
    transform: scale(1.05);
}

/* =====================================================
   6. TRUST BADGES / USP SECTION
   ===================================================== */

.theme-new .trust-badges,
.theme-new .usp-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1rem;
    margin: 1.5rem 0;
}

@media (min-width: 768px) {
    .theme-new .trust-badges,
    .theme-new .usp-section {
        grid-template-columns: repeat(4, 1fr);
    }
}

.theme-new .trust-badge,
.theme-new .usp-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.theme-new .trust-badge:hover,
.theme-new .usp-item:hover {
    border-color: var(--primary-red);
    box-shadow: var(--shadow-sm);
}

.theme-new .trust-badge svg,
.theme-new .usp-item svg,
.theme-new .trust-badge i,
.theme-new .usp-item i {
    color: var(--primary-red);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.theme-new .trust-badge span,
.theme-new .usp-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.3;
}

/* =====================================================
   7. WARENKORB VERBESSERUNGEN
   ===================================================== */

.theme-new .cart-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.theme-new .cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-light);
}

.theme-new .cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.theme-new .cart-item-info {
    flex: 1;
}

.theme-new .cart-item-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.theme-new .cart-item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-red);
}

/* Quantity Buttons */
.theme-new .quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.theme-new .quantity-selector button {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-light);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.theme-new .quantity-selector button:hover {
    background: var(--border-color);
}

.theme-new .quantity-selector input {
    width: 50px;
    height: 44px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

/* Delete Button */
.theme-new .cart-item .delete-btn,
.theme-new .cart-item .remove-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-red-light);
    color: var(--primary-red);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.theme-new .cart-item .delete-btn:hover,
.theme-new .cart-item .remove-btn:hover {
    background: var(--primary-red);
    color: white;
}

/* =====================================================
   8. BESTELLÜBERSICHT
   ===================================================== */

.theme-new .order-summary,
.theme-new .cart-summary {
    background: var(--primary-red);
    color: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.theme-new .order-summary h3 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-new .order-summary .coupon-input {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: white;
    width: 100%;
    margin-bottom: 0.75rem;
}

.theme-new .order-summary .coupon-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.theme-new .order-summary .btn-apply-coupon {
    width: 100%;
    padding: 0.75rem;
    background: white;
    color: var(--primary-red);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.theme-new .order-summary .btn-apply-coupon:hover {
    background: var(--bg-light);
    transform: scale(1.02);
}

.theme-new .order-summary .total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-new .order-summary .total-row.grand-total {
    font-size: 1.25rem;
    font-weight: 700;
}

.theme-new .order-summary .btn-checkout {
    width: 100%;
    padding: 1rem;
    background: white;
    color: var(--primary-red);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.theme-new .order-summary .btn-checkout:hover {
    background: var(--bg-light);
    transform: scale(1.02);
}

/* =====================================================
   9. BUTTONS - ALLGEMEIN
   ===================================================== */

.theme-new .btn-primary {
    background: var(--primary-red);
    color: white;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.theme-new .btn-primary:hover {
    background: var(--primary-red-dark);
    transform: translateY(-1px);
}

.theme-new .btn-secondary {
    background: var(--bg-white);
    color: var(--primary-red);
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--primary-red);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.theme-new .btn-secondary:hover {
    background: var(--primary-red-light);
}

/* =====================================================
   10. FOOTER IMPROVEMENTS
   ===================================================== */

.theme-new footer,
.theme-new .site-footer {
    background: var(--text-dark);
    color: white;
}

.theme-new footer h4,
.theme-new footer h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.theme-new footer h4::after,
.theme-new footer h5::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-red);
}

.theme-new footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.theme-new footer a:hover {
    color: white;
    padding-left: 5px;
}

/* =====================================================
   11. MOBILE TOUCH TARGETS
   ===================================================== */

@media (max-width: 768px) {
    /* Minimum touch target size: 44px */
    .theme-new button,
    .theme-new .btn,
    .theme-new a.btn,
    .theme-new input[type="submit"] {
        min-height: 44px;
    }
    
    .theme-new .product-card {
        margin-bottom: 1rem;
    }
    
    /* Vollbreite Buttons auf Mobile */
    .theme-new .btn-primary,
    .theme-new .btn-secondary {
        width: 100%;
    }
}

/* =====================================================
   12. SOCIAL PROOF BANNER
   ===================================================== */

.theme-new .social-proof-banner {
    background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.theme-new .social-proof-banner svg {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* =====================================================
   13. BREADCRUMB
   ===================================================== */

.theme-new .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.theme-new .breadcrumb a {
    color: var(--text-medium);
    transition: var(--transition);
}

.theme-new .breadcrumb a:hover {
    color: var(--primary-red);
}

.theme-new .breadcrumb .separator {
    color: var(--border-color);
}

/* =====================================================
   14. LOADING STATES
   ===================================================== */

.theme-new .skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-light) 25%,
        var(--border-color) 50%,
        var(--bg-light) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =====================================================
   15. STICKY ELEMENTS SPACING (WhatsApp, Cookie)
   ===================================================== */

.theme-new .whatsapp-float {
    bottom: 90px; /* Platz für Cookie-Banner */
    right: 1rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
}

.theme-new .cookie-banner {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding: 1rem;
}

/* =====================================================
   16. FILTER / TABS
   ===================================================== */

.theme-new .product-tabs,
.theme-new .filter-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.theme-new .product-tabs button,
.theme-new .filter-tabs button {
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.theme-new .product-tabs button.active,
.theme-new .filter-tabs button.active {
    background: var(--primary-red);
    color: white;
}

.theme-new .product-tabs button:hover:not(.active),
.theme-new .filter-tabs button:hover:not(.active) {
    background: var(--bg-light);
}

/* =====================================================
   17. ANIMATIONS
   ===================================================== */

.theme-new .fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theme-new .product-card {
    animation: fadeIn 0.4s ease;
}

/* Staggered animation for grid */
.theme-new .products-grid .product-card:nth-child(1) { animation-delay: 0.05s; }
.theme-new .products-grid .product-card:nth-child(2) { animation-delay: 0.1s; }
.theme-new .products-grid .product-card:nth-child(3) { animation-delay: 0.15s; }
.theme-new .products-grid .product-card:nth-child(4) { animation-delay: 0.2s; }
