/* ==========================================================================
   INHALTSVERZEICHNIS
   1.  Variablen (:root)
   2.  Reset, Basis-Layout & Animationen
   3.  Buttons & Typografie (Global)
   4.  Header, Navigation & Sidebar
   5.  Homepage Sektionen (Hero, Slider, Lookbook, Promo)
   6.  Shop: Produkt-Grid & Cards
   7.  Shop: Header, Filter & Sortierung
   8.  Shop: Produktdetailseite (Split Layout, Varianten, Related)
   9.  Konto-Seite (Account & Orders)
   10. Minigames (Design & Cards)
   11. Komponenten (Modals, Alerts, Badges)
   12. Footer
   13. DARK MODE (Games Page Overrides)
   ========================================================================== */

/* ==========================================================================
   1. VARIABLEN & GLOBAL SETUP
   ========================================================================== */
:root {
    --background-color: #FFFFFF;
    --text-color: #333333;
    --accent-pink: #F4ACB7;
    --soft-pink-bg: #FADADD;
    --header-bg: rgba(255, 255, 255, 0.9);
    --border-color: #e5e7eb;
    --dark-accent-color: #06b6d4;
    --base-font-size: 16px;
    --small-radius: 6px;
    --card-radius: 10px;
    --header-height: 92px; /* Standardwert definiert */
}

/* ==========================================================================
   2. RESET, BASIS-LAYOUT & ANIMATIONEN
   ========================================================================== */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    font-weight: 300;
    font-size: var(--base-font-size);
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    padding-top: var(--header-height); 
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
    overflow: hidden !important;
    /* height: 100vh !important;  <-- DIESE ZEILE LÖSCHEN! */
    touch-action: none;
    padding-right: 0 !important; /* Verhindert Layout-Verschiebung wenn Scrollbar wegfällt */
}

/* Container & Layout Helper */
.container, main.page-container, main.game-content-wrapper {
    flex-grow: 1;
    padding-bottom: 80px; 
}

/* Container Randlos Override */
.container, main.page-container {
    max-width: 100% !important; 
    padding: 0 !important; 
    margin: 0 !important;
    width: 100% !important;
    transition: transform 0.28s cubic-bezier(.2,.9,.2,1);
}

.section { padding: 72px 20px; box-sizing: border-box; overflow: hidden; }

/* Statische Seiten (Impressum etc.) */
.static-page-container {
    max-width: 850px;
    margin: 40px auto;
    padding: 30px 40px;
    background-color: var(--background-color);
    border-radius: var(--card-radius);
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    border: 1px solid var(--border-color);
}
.static-page-container .page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.static-page-container .content-block { font-size: 1rem; line-height: 1.8; color: #4a4a4a; }
.static-page-container .content-block h3 { font-family: 'Poppins', sans-serif; font-size: 1.3rem; font-weight: 600; margin-top: 30px; margin-bottom: 10px; }
.static-page-container .content-block a { color: var(--accent-pink); font-weight: 500; text-decoration: none; }
.static-page-container .content-block a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .static-page-container { margin: 20px 10px; padding: 20px; }
    .static-page-container .page-title { font-size: 2rem; }
}

/* Animationen (Keyframes) */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fadeIn { animation: fadeIn 0.8s ease-out forwards; }

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

@keyframes wobble {
    0%, 100% { transform: translateX(0%); }
    15% { transform: translateX(-15%) rotate(-5deg); }
    30% { transform: translateX(10%) rotate(3deg); }
    45% { transform: translateX(-8%) rotate(-3deg); }
    60% { transform: translateX(5%) rotate(2deg); }
    75% { transform: translateX(-3%) rotate(-1deg); }
}
.wobble-animation { animation: wobble 1.5s ease-in-out infinite; }

/* ==========================================================================
   3. BUTTONS & TYPOGRAPHIE (MODERN & ECKIG)
   ========================================================================== */

/* Hero Buttons (Standard) */
.hero-button { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    margin: 25px 10px 0 0; 
    padding: 16px 45px; 
    background-color: #FFFFFF; 
    color: #000000 !important; 
    border: 1px solid #FFFFFF; 
    border-radius: 0; /* Strikt Eckig */
    text-decoration: none; 
    font-weight: 800; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    position: relative;
    z-index: 100; 
    opacity: 1;
    transition: all 0.2s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
}
.hero-button:hover { 
    background-color: #000000; 
    color: #FFFFFF !important; 
    border-color: #000000; 
    transform: translateY(-2px);
}
.hero-button i { margin-right: 8px; font-size: 1.1em; }

/* Second Hero Button (Minigames) - Jetzt gleicher Look wie der Hauptbutton */
.hero-button.discount-button {
    background-color: #FFFFFF; /* Weiß gefüllt */
    color: #000000 !important; 
    border: 1px solid #FFFFFF; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.hero-button.discount-button:hover {
    background-color: #000000; 
    color: #FFFFFF !important; 
    border-color: #000000;
}

/* General Buttons */
.all-products-btn { 
    display: block; 
    width: fit-content; 
    margin: 40px auto; 
    padding: 14px 40px; 
    background-color: #000; 
    color: #fff; 
    border: 1px solid #000;
    border-radius: 0; 
    font-weight: 700; 
    text-align: center; 
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    text-decoration: none; 
    cursor: pointer; 
    transition: all 0.2s ease; 
}
.all-products-btn:hover { background-color: #333; color: #fff; }

/* Buy & Checkout Buttons (Shared Base) */
.buy-button, 
.fast-checkout-btn {
    width: 100%;
    padding: 15px 0; 
    font-size: 0.85rem; 
    font-weight: 600; 
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 0; /* Eckig (Peso Style) */
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* 1. "In den Warenkorb" (Schwarz) */
.buy-button {
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
    margin-top: 30px; 
    margin-bottom: 10px; 
    /* Falls verwendet als Block-Element außerhalb Detailseite */
    display: block; 
    width: fit-content;
    margin: 40px auto; /* Default center if not on detail page */
}
/* Überschreibung für Detailseite */
.product-detail-info .buy-button { width: 100%; margin: 30px 0 10px 0; display: flex; }

.buy-button:hover { background-color: #333; color: #fff; border-color: #333; }

/* 2. "Sofort Kaufen" (Weiß/Outline) */
.fast-checkout-btn {
    background-color: #fff;
    color: #000;
    border: 1px solid #000; 
}
.fast-checkout-btn:hover { background-color: #000; color: #fff; }

/* ==========================================================================
   4. HEADER, NAVIGATION & SIDEBAR
   ========================================================================== */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.28s cubic-bezier(.2,.9,.2,1);
}

.status-banner {
    background-color: var(--accent-pink);
    color: white;
    text-align: center;
    padding: 6px 0;
    font-weight: 800;
    height: 36px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
}
.status-banner-link { color: inherit; text-decoration: none; transition: opacity 0.25s ease-in-out; position: relative; display: inline-block; overflow: hidden; }
.status-banner-link .char { display: inline-block; }

.main-header {
    height: 56px;
    background: var(--header-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    box-sizing: border-box;
}

.header-left, .header-right { flex: 1; }
.header-left { display: flex; justify-content: flex-start; align-items: center; }
.header-right { display: flex; justify-content: flex-end; align-items: center; position: relative; }

.logo-placeholder { position: absolute; left: 50%; transform: translateX(-50%); }
.logo-placeholder img { 
    max-width: 100px; 
    height: auto; 
    display: block;
    /* IOS RENDER FIX */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform; /* Sagt dem Browser: Pass auf, hier passiert was */
}

/* Desktop Navigation */
.main-nav-desktop { display: none; }
@media (min-width: 938px) {
    .nav-toggle-btn, .nav-sidebar, .overlay-backdrop { display: none !important; }
    .main-nav-desktop { display: block; }
    .main-nav-desktop ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: row; gap: 20px; }
    .main-nav-desktop a { color: var(--text-color); text-decoration: none; font-weight: 400; font-size: 0.95rem; }
    #user-status .user-name { display: block; }
}

/* Mobile Toggle & Icons */
.nav-toggle-btn { background: none; border: none; cursor: pointer; font-size: 1.25rem; color: var(--text-color); padding: 0; z-index: 1001; }

.user-controls { display: flex; align-items: center; gap: 4px; }
.user-icon-link { color: var(--text-color); font-size: 1.45rem; text-decoration: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; transition: background-color 0.18s ease; }
.user-icon-link:hover { background-color: #f7f7f8; }

#user-status .user-status-container { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 999px; font-weight: 400; text-decoration: none; transition: background-color 0.18s ease; cursor: pointer; }
#user-status .user-status-container:hover { background-color: #f7f7f8; }
.user-avatar { background-color: var(--soft-pink-bg); color: var(--accent-pink); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 400; }
#user-status .user-name { display: none; font-size: 0.92rem; }

/* Notfall-Fix für die Sichtbarkeit */
.user-dropdown {
    display: none; /* Erstmal ganz ausblenden */
    z-index: 9999 !important; /* Ganz nach vorne holen */
}

/* Wenn Active, dann Block und sichtbar */
.user-dropdown.active {
    display: block !important; 
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}
.user-dropdown-link { display: block; padding: 9px 14px; color: var(--text-color); text-decoration: none; font-size: 0.95rem; font-weight: 300; }
.user-dropdown-link:hover { background-color: #f7f7f8; }
.user-dropdown-divider { height: 1px; background-color: var(--border-color); margin: 6px 0; }
.logout-link { color: #ef4444; }

.cart-icon a { position: relative; display: flex; align-items: center; justify-content: center; color: var(--text-color); text-decoration: none; font-size: 1.05rem; width: 40px; height: 40px; border-radius: 50%; transition: background-color 0.18s ease; }
.cart-icon a:hover { background-color: #f7f7f8; }
#cart-count { position: absolute !important; top: 4px !important; right: 4px !important; width: 18px !important; height: 18px !important; font-size: 10px !important; font-weight: 600 !important; color: white !important; background-color: var(--accent-pink) !important; border: 2px solid white !important; border-radius: 50% !important; display: none; align-items: center; justify-content: center; box-sizing: border-box; }

/* SIDEBAR & OVERLAY */
.overlay-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(4px); 
    z-index: 9998 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

body.sidebar-is-open .overlay-backdrop { opacity: 1; visibility: visible; pointer-events: auto; }

.nav-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 320px; 
    max-width: 85vw;
    background: #ffffff;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    z-index: 9999 !important;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

body.sidebar-is-open { overflow: hidden !important; }
body.sidebar-is-open .nav-sidebar { transform: translateX(0) !important; }

.sidebar-header {
    padding: 20px 20px; 
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}
.sidebar-logo img {
    max-width: 140px; 
    height: auto;
    display: block; 
    opacity: 1 !important; 
    /* IOS RENDER FIX */
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    will-change: opacity, transform;
}
.sidebar-content { flex-grow: 1; padding: 30px 0; overflow-y: auto; }
.sidebar-nav-group { margin-bottom: 30px; }
.group-title {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    color: #999; padding: 0 30px; margin-bottom: 15px; display: block;
}
.nav-sidebar ul { list-style: none; padding: 0; margin: 0; }

.sidebar-link {
    display: flex; align-items: center; padding: 15px 30px; font-size: 0.95rem; font-weight: 500;
    color: #111; text-decoration: none; text-transform: uppercase; letter-spacing: 1px;
    transition: all 0.2s ease; border-left: 3px solid transparent;
}
.sidebar-link .icon {
    width: 25px; margin-right: 15px; font-size: 1.1rem; color: #ccc; 
    transition: color 0.2s; text-align: center;
}
.sidebar-link:hover { background-color: #fafafa; padding-left: 35px; border-left-color: #000; }
.sidebar-link:hover .icon { color: #000; }

.sidebar-footer {
    padding: 30px; border-top: 1px solid #f0f0f0; display: flex; justify-content: center; gap: 25px;
}
.sidebar-footer a { color: #111; font-size: 1.5rem; transition: transform 0.2s; }
.sidebar-footer a:hover { transform: scale(1.2); }
/* ==========================================================================
   FIX: PARALLAX LOGIK (MOBILE AKTIV)
   ========================================================================== */

.hero, .lookbook {
    position: relative;
    overflow: hidden; 
    z-index: 1;
    background: none !important;
    background-image: none !important;
}

.hero {
    /* WICHTIG: svh hilft gegen das Springen der Adressleiste auf Handys */
    height: 100vh;
    height: 100svh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.lookbook {
    min-height: 76vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
}

/* 1. Der Wrapper (wird von JS bewegt) */
.parallax-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Standard Desktop: Genug Platz zum Scrollen */
    height: 130% !important; 
    top: -15% !important; 
    z-index: 0;
    will-change: transform;
    pointer-events: none;
}

/* 2. SWIPER FIX */
.parallax-bg-wrapper .swiper,
.parallax-bg-wrapper .swiper-wrapper,
.parallax-bg-wrapper .swiper-slide {
    height: 100% !important;
    width: 100% !important;
    position: relative; 
}

/* 3. Das Bild */
.parallax-img, .single-hero-bg, .slide-bg, .lookbook-bg {
    width: 100%;
    height: 100% !important; 
    object-fit: cover !important; 
    object-position: center center;
    display: block;
}

/* --- MOBILE PARALLAX ANPASSUNG --- */
@media (max-width: 768px) {
    .parallax-bg-wrapper {
        /* WICHTIG: Wir lassen den Wrapper auch mobil GRÖSSER als den Screen, 
           damit Parallax Platz zum Bewegen hat. 
           Vorher stand hier 100%, was den Effekt getötet hat. */
        height: 120% !important; 
        top: -10% !important;
        
        /* Optional: Falls es zu stark ruckelt, kann man hier 'transform: translate3d(0,0,0)' probieren */
    }
}

/* Overlay (unverändert) */
.hero-overlay, .hero::before, .lookbook::before { 
    content: ''; 
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%; 
    background: rgba(0,0,0,0.3); 
    z-index: 1; 
    pointer-events: none;
}
.hero::before { background-color: rgba(0, 0, 0, 0.4); }

/* Content (unverändert) */
.hero-content, .lookbook h2, .lookbook-title { 
    position: relative; 
    z-index: 2; 
    perspective: 800px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-content h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.9rem, 6.5vw, 4.2rem); font-weight: 400; margin: 0; letter-spacing: 1.2px; }
.hero-content p { font-size: clamp(0.9rem, 2.6vw, 1.15rem); margin-top: 16px; color: #f0f0f0; font-weight: 300; }
.main-headline .char { display: inline-block; }

.lookbook h2 { font-size: clamp(2rem, 5.5vw, 4.2rem); font-weight: 400; }
.lookbook-title { color: #fff !important; }

/* COLLECTION SLIDER */
.collection { padding-bottom: 90px !important; background: #fff; }
.collection-content { width: 100%; margin: 0 auto; position: relative; }

.bestseller-slider { 
    width: 100%; 
    padding: 20px 0 40px 0; 
    overflow: hidden; 
}
.bestseller-slider .swiper-wrapper { transition-timing-function: linear !important; }

.bestseller-slider .swiper-slide { 
    width: 45vw !important; /* Mobile */
    height: auto; 
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) { .bestseller-slider .swiper-slide { width: 30vw !important; } }
@media (min-width: 1024px) { .bestseller-slider .swiper-slide { width: 22vw !important; } }

.bestseller-slider .product-card {
    width: 100%; margin: 0; border: none; background: transparent;
}
.bestseller-slider .product-card img {
    width: 100%; aspect-ratio: 3/4 !important; object-fit: cover; display: block; background-color: #f0f0f0;
}

/* ==========================================================================
   GAMES PROMO SEKTION (MODERN & ECKIG)
   ========================================================================== */
.games-promo { 
    background-color: #111827; 
    color: #fff; 
    text-align: center; 
    position: relative;
    z-index: 5;
    /* HIER GEÄNDERT: Unten (3. Wert) auf 0 gesetzt */
    padding: 60px 20px -10px 20px; 
}

.games-promo-container { 
    display: grid;
    grid-template-columns: 1fr; /* Mobile: Untereinander */
    gap: 20px; 
    max-width: 1000px; /* Damit sie nicht zu breit werden */
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .games-promo-container { 
        grid-template-columns: 1fr 1fr; /* Desktop: Exakt 50/50 */
    } 
}

.promo-game-card { 
    position: relative;
    background-color: #1f2937; 
    border: 1px solid #333; 
    border-radius: 0; /* WICHTIG: Eckig */
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; /* Text unten */
    align-items: center; /* Text zentriert */
    text-align: center;
    min-height: 450px; /* Feste Mindesthöhe für beide */
    transition: border-color 0.3s ease; 
    text-decoration: none;
}

.promo-game-card:hover { 
    border-color: #fff; 
}

/* Hintergrundbild Logik */
.promo-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6; /* Bild etwas abdunkeln damit Text lesbar ist */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s;
}

.promo-game-card:hover .promo-bg-img {
    transform: scale(1.05); /* Leichter Zoom bei Hover */
    opacity: 0.4; /* Noch dunkler bei Hover für Fokus auf Text */
}

/* Inhalt Overlay */
.promo-card-inner {
    position: relative;
    z-index: 2;
    padding: 40px 30px;
    width: 100%;
    box-sizing: border-box;
    /* Verlauf von Schwarz nach Transparent für bessere Lesbarkeit unten */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.promo-game-card .card-icon { 
    font-size: 3rem; 
    margin-bottom: 20px; 
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.promo-game-card h3 { 
    font-size: 1.8rem; 
    font-weight: 800; 
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px 0; 
    color: #fff;
}

.promo-game-card p { 
    color: #e5e7eb; 
    font-size: 1rem;
    margin-bottom: 25px; 
    font-weight: 300;
}

/* Button Modern & Eckig */
.promo-cta-button { 
    display: inline-block; 
    background-color: #ffffff; 
    color: #000000;            
    font-weight: 700;          
    padding: 14px 40px; 
    border-radius: 0;       /* WICHTIG: Eckig */
    text-decoration: none; 
    text-transform: uppercase; 
    letter-spacing: 1.5px;
    transition: all 0.2s ease; 
    border: 1px solid #fff;
    font-size: 0.85rem;
}

.promo-cta-button:hover { 
    background-color: #000000; 
    color: #fff; 
    border-color: #fff;
}

/* About Sektion */
.about { background-color: var(--soft-pink-bg); }
.about-container { display: flex !important; align-items: center; justify-content: space-between; gap: 42px; flex-wrap: wrap; width: 100%; }
.about-text, .about-image { flex: 1; min-width: 280px; }
.about-image img { width: 100%; border-radius: 10px; }
.about-text h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: 18px; font-weight: 400; }
.about-text p { line-height: 1.7; font-weight: 300; }

/* ==========================================================================
   6. SHOP: PRODUKT-GRID & CARDS (MODERN & ECKIG)
   ========================================================================== */
.product-grid {
    display: grid;
    width: 100%;
    margin: 0;
    grid-template-columns: repeat(2, 1fr); /* Mobile: 2 Spalten */
    gap: 1px; 
    padding: 0; 
    padding-bottom: 60px;
}
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 2px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 4px; } }

.product-card { 
    background: transparent; 
    border: none; 
    box-shadow: none; 
    border-radius: 0; 
    overflow: hidden; 
    text-align: left; 
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    position: relative;
    cursor: pointer;
    margin: 0;
} 

/* Slider Container im Card */
.card-image-slider {
    width: 100%;
    aspect-ratio: 3 / 4; 
    position: relative;
    overflow: hidden;
    margin-bottom: 8px; 
    background-color: #f0f0f0;
}
.swiper-wrapper { height: 100%; width: 100%; display: flex; }
.card-image-slider .swiper-slide {
    width: 100%; height: 100%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.card-image-link { display: block; width: 100%; height: 100%; }

.card-image-slider img { 
    width: 100%; height: 100%; object-fit: cover; display: block; 
    border-radius: 0; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
} 
@media (hover: hover) and (pointer: fine) {
    .card-image-slider:hover img { transform: scale(1.03); }
}

/* Pagination (unten & dünn) */
.card-pagination {
    position: absolute; bottom: 0 !important; left: 0; width: 100%; height: 2px; 
    display: flex; align-items: flex-end; justify-content: center; gap: 2px;
    z-index: 10; pointer-events: none; padding: 0; opacity: 0; transition: opacity 0.3s ease;
}
.product-card:hover .card-pagination,
.card-image-slider.swiper-initialized .card-pagination { opacity: 1; }
.card-pagination .swiper-pagination-bullet {
    flex: 1; height: 100%; background: rgba(0, 0, 0, 0.08); opacity: 1; border-radius: 0; margin: 0 !important; display: block; transition: background-color 0.2s ease;
}
.card-pagination .swiper-pagination-bullet-active { background: #000000; }
@media (hover: none) { .card-pagination { opacity: 1 !important; } }

/* Text Content */
.product-card h3 { 
    font-size: 0.8rem; font-weight: 700; margin: 0 0 2px 0; line-height: 1.3; 
    color: #111; text-transform: uppercase; letter-spacing: 0.5px; padding: 0 8px; 
    padding-right: 50px; /* Platz für den Button schaffen, damit Text nicht überlappt */
} 
.product-card p { 
    font-size: 0.75rem; color: #666; font-weight: 400; margin: 0;
    padding: 0 8px; padding-bottom: 10px; 
}

/* --- Card Buy Button (FIX: UNTEN RECHTS) --- */
.card-buy-btn { 
    position: absolute; 
    bottom: 10px;  /* Kleiner Abstand von unten */
    right: 10px;   /* Kleiner Abstand von rechts */
    
    width: 40px; 
    height: 40px; 
    
    /* Design Update */
    border-radius: 0 !important; /* WICHTIG: Eckig */
    background-color: #ffffff;   /* Weißer Hintergrund */
    color: #000000;              /* Schwarzes Icon */
    border: 1px solid #000000;   /* Schwarzer feiner Rahmen */
    
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    z-index: 20; 
    opacity: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
} 

.card-buy-btn::before { 
    content: "\f217"; /* Warenkorb Icon */
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900; 
    font-size: 14px; 
}

/* Hover Effekt */
.card-buy-btn:hover { 
    background-color: #000000; 
    color: #ffffff; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Mobile Anpassung */
@media (max-width: 768px) {
    .card-buy-btn { 
        width: 36px; 
        height: 36px;
        bottom: 8px; /* Auch mobil ganz unten */
        right: 8px; 
        background-color: #ffffff;
    }
}
/* ==========================================================================
   7. SHOP HEADER & FILTER (BLACK BTN + SEPARATOR)
   ========================================================================== */

.shop-header-wrapper {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 auto;
    padding: 25px 20px 10px 20px;
    background: #fff;
    position: relative;
    z-index: 50;
    display: flex;
    flex-direction: column; 
    align-items: flex-start !important; 
    text-align: left !important;
    box-sizing: border-box !important;
}

/* Titel Styling */
.mini-page-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.5rem; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: #111;
    margin: 0 0 15px 0 !important;
    width: 100%; 
    display: block;
    line-height: 1.2;
}

/* Container für Filter (links) & Sortierung (rechts) */
.controls-row {
    display: flex !important; 
    align-items: center !important; 
    justify-content: space-between !important; 
    width: 100% !important; 
    gap: 0; /* Gap auf 0, wir regeln Abstand über Padding im Wrapper */
    position: relative; 
    z-index: 60;
}

/* --- SCROLL CONTAINER (LINKS) --- */
.category-scroll-container { 
    flex: 1 1 auto !important; 
    width: 0 !important;      
    min-width: 0 !important;  
    
    overflow-x: auto !important; 
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; 
    white-space: nowrap;      
    display: block;
    padding-bottom: 0; 
    margin-right: 10px; /* Abstand zur Trennlinie */
}

/* Scrollbar verstecken */
.category-scroll-container::-webkit-scrollbar { display: none; width: 0; height: 0; }
.category-scroll-container { -ms-overflow-style: none; scrollbar-width: none; }

/* --- FILTER BUTTONS (INNEN) --- */
#filter-container { 
    display: flex !important;       
    flex-wrap: nowrap !important;   
    gap: 8px; 
    width: max-content !important;  
    padding-right: 5px; 
}

.filter-btn { 
    padding: 8px 16px; 
    font-size: 0.85rem; 
    border-radius: 4px; 
    border: 1px solid #e5e7eb; 
    background: #fff; 
    color: #555; 
    white-space: nowrap !important; 
    flex-shrink: 0; 
    cursor: pointer; 
    transition: all 0.2s ease;
}

.filter-btn.active { 
    background-color: #000 !important; 
    color: white !important; 
    border-color: #000 !important; 
}

/* --- SORTIER WRAPPER (RECHTS MIT TRENNLINIE) --- */
.sort-wrapper { 
    flex: 0 0 auto !important; 
    width: auto !important;
    position: relative; 
    z-index: 1000;
    
    /* HIER IST DIE NEUE TRENNUNG */
    padding-left: 15px;          /* Abstand links vom Strich */
    border-left: 1px solid #ddd; /* Der graue Trennstrich */
}

/* --- SORTIER BUTTON (SCHWARZ) --- */
.sort-btn { 
    background-color: #000;      /* Schwarz Hintergrund */
    color: #fff;                 /* Weißer Text/Icon */
    border: 1px solid #000;      /* Schwarzer Rand */
    
    border-radius: 4px;
    padding: 0 14px; 
    height: 35px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer;
    white-space: nowrap;
    gap: 8px;
    transition: background-color 0.2s ease;
}

/* Hover Effekt */
.sort-btn:hover {
    background-color: #333; /* Dunkelgrau beim Hover */
    border-color: #333;
}

/* Dropdown Menü Positionierung */
.sort-dropdown {
    position: absolute; 
    top: 110%; 
    right: 0; 
    width: 180px;
    background: #ffffff; 
    border: 1px solid #e5e7eb; 
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); 
    padding: 8px 0;
    
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 99999; 
    pointer-events: none;
}

.sort-dropdown.active { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
    pointer-events: auto; 
}

.sort-option {
    padding: 10px 16px; 
    font-size: 0.85rem; 
    color: #4b5563; 
    cursor: pointer;
    transition: background-color 0.1s; 
    text-align: left; 
    display: block;
    width: 100%;
    box-sizing: border-box;
}
.sort-option:hover { background-color: #f3f4f6; color: #111; }
.sort-option.active { background-color: #f9fafb; font-weight: 700; color: #000; }

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .shop-header-wrapper { 
        padding: 20px 15px 10px 15px !important; 
    }
    .mini-page-title { 
        font-size: 1.3rem; 
        margin-bottom: 12px !important;
    }
    
    /* Text "Neueste" mobil ausblenden */
    #current-sort-label { display: none !important; } 
    
    .sort-wrapper {
        padding-left: 10px; /* Etwas enger mobil */
    }
    
    .sort-btn {
        padding: 0 10px; 
    }
    .sort-btn i { margin: 0; }
}
/* ==========================================================================
   8. SHOP: PRODUKTDETAILSEITE (NO CIRCLES, NO GAP, ANIMATED)
   ========================================================================== */

/* Wrapper & Layout */
.product-detail-wrapper {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    background-color: #ffffff;
    /* Reset Padding oben */
    padding-top: 0; 
}

/* Zurück Button */
.back-link-floating {
    position: absolute;
    top: 15px;
    left: 20px;
    z-index: 50;
    text-decoration: none;
    color: #111;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.back-link-floating:hover {
    background: #000;
    color: #fff;
}

.product-detail-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* --- GALERIE --- */
.product-detail-gallery {
    width: 100%;
    position: relative;
    background-color: #ffffff;
    height: auto;
    max-height: 85vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-main-swiper {
    width: 100%;
    height: 100%;
    aspect-ratio: 3/4; 
}

.product-main-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #fff;
}

.product-main-swiper img {
    object-fit: contain; 
    width: 100%;
    height: 100%;
    display: block;
}

/* --- NAVIGATION PFEILE (GEOMETRISCH & SYMMETRISCH) --- */
.custom-arrow {
    color: #000 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    
    /* Große Klickfläche, damit man es leicht trifft */
    width: 60px !important;
    height: 100% !important;
    
    top: 0 !important;
    margin-top: 0 !important;
    position: absolute !important;
    z-index: 100 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    opacity: 0; /* Desktop: Unsichtbar bis Hover */
}

/* Desktop Hover Effekt */
.product-detail-gallery:hover .custom-arrow { opacity: 1; }

/* HIER IST DER FIX: PFEIL GEZEICHNET STATT TEXT */
.custom-arrow::after { 
    content: '' !important; /* Kein Text mehr */
    display: block;
    width: 14px;  /* Größe des Pfeils */
    height: 14px;
    
    /* Die Linien des Pfeils (dünn und schwarz) */
    border-top: 1.5px solid #000; 
    border-right: 1.5px solid #000;
    
    /* Standardmäßig nach rechts gedreht */
    transform: rotate(45deg); 
    
    /* Wichtig: Schriftgröße resetten, damit nichts stört */
    font-size: 0 !important; 
    font-weight: normal !important;
    margin-left: -4px; /* Optisch zentrieren */
}

/* Linker Pfeil: Einfach umdrehen */
.swiper-button-prev.custom-arrow::after { 
    transform: rotate(-135deg); 
    margin-left: 4px; /* Optisch zentrieren */
}

/* Positionierung ganz am Rand */
.swiper-button-next { right: 0 !important; left: auto !important; }
.swiper-button-prev { left: 0 !important; right: auto !important; }

@media (hover: none) {
    .custom-arrow { display: none !important; } /* Mobil ausblenden */
}

/* Dots Mobile */
.swiper-pagination-custom .swiper-pagination-bullet {
    background: #000 !important; opacity: 0.2; width: 6px; height: 6px; margin: 0 4px !important;
}
.swiper-pagination-custom .swiper-pagination-bullet-active { opacity: 1; }

/* --- INFO BEREICH --- */
.product-detail-info {
    width: 100%;
    padding: 20px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.product-detail-info h1 {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    line-height: 1.1;
}
.product-detail-info .price {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #111;
}

/* Menge */
.quantity-container { 
    margin-top: 10px;
    margin-bottom: 25px; 
}
.quantity-container label {
    display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; color: #666;
}
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.qty-input-wrapper input {
    width: 100%; max-width: 60px; padding: 12px 5px; font-size: 1rem; font-weight: 600; text-align: center;
    color: #000; background: #fff; border: 1px solid #e5e5e5; border-radius: 0 !important; outline: none; appearance: none;
}
.qty-input-wrapper input:focus { border-color: #000; }

/* Buttons */
.actions-wrapper {
    margin-bottom: 40px;
    display: flex; flex-direction: column; gap: 12px;
}
.btn-action {
    width: 100%; padding: 18px 0; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
    border-radius: 0; cursor: pointer; text-align: center; display: flex; align-items: center; justify-content: center;
    gap: 10px; transition: all 0.2s ease; text-decoration: none; border: 1px solid #000;
}
.btn-cart { background-color: #000; color: #fff; border-color: #000; }
.btn-cart:hover { background-color: #333; border-color: #333; }
.btn-buy-now { background-color: #fff; color: #000; border-color: #000; }
.btn-buy-now:hover { background-color: #000; color: #fff; }

/* Varianten */
.variant-swatch-group { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
.variant-swatch {
    background: transparent; border: 1px solid #e5e5e5; color: #333; padding: 10px 0; width: 50px; text-align: center;
    font-size: 0.9rem; font-weight: 500; cursor: pointer; border-radius: 0 !important;
}
.variant-swatch:hover { border-color: #000; }
.variant-swatch.swatch-active { background: #000; color: #fff; border-color: #000; }
.variant-swatch.swatch-disabled { color: #ccc; background: #f9f9f9; text-decoration: line-through; cursor: not-allowed; }

/* --- ACCORDIONS MIT ANIMATION --- */
.product-info-dropdowns {
    border-top: 1px solid #e5e5e5;
    margin-top: 10px;
}
.modern-details {
    border-bottom: 1px solid #e5e5e5;
    /* WICHTIG für Animation */
    overflow: hidden; 
}
.modern-summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 0;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    display: flex; justify-content: space-between; align-items: center;
    transition: color 0.2s;
}
.modern-summary:hover { color: #555; }
.modern-summary::-webkit-details-marker { display: none; }
.modern-summary::after {
    content: '+'; font-weight: 300; font-size: 1.4rem; transition: transform 0.3s ease;
}
.modern-details[open] .modern-summary::after {
    transform: rotate(45deg); /* Plus dreht sich zum X */
}

/* ANIMATION KEYFRAMES */
@keyframes accordionOpen {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.details-content {
    padding-bottom: 25px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
    display: block;
}

/* Animation triggern wenn offen */
.modern-details[open] .details-content {
    animation: accordionOpen 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- DESKTOP LAYOUT (ABSTAND FIX) --- */
@media (min-width: 900px) {
    .product-detail-container {
        flex-direction: row;
        align-items: flex-start;
        min-height: calc(100vh - 92px);
    }

    .product-detail-gallery {
        width: 60%;
        height: calc(100vh - 92px);
        max-height: none;
        
        position: sticky;
        /* Startet direkt unter Header */
        top: 92px; 
        
        /* KEIN PADDING OBEN */
        padding-top: 0; 
        
        background: #fcfcfc;
    }

    .product-main-swiper {
        height: 100%; 
        width: 100%;
        padding: 40px; 
        box-sizing: border-box;
    }

    .product-detail-info {
        width: 40%;
        /* Oben weniger Padding (40px statt 120px) */
        padding: 40px 50px; 
        
        min-height: 100vh;
        /* Text startet oben */
        justify-content: flex-start; 
    }
}
/* ==========================================================================
   9. KONTO-SEITE (Account)
   ========================================================================== */
.account-container { display: flex; gap: 30px; align-items: flex-start; width: 100%; justify-content: flex-start; }
.account-nav { flex-basis: 260px; flex-shrink: 0; position: sticky; top: 112px; }
.account-content { flex-grow: 1; min-width: 0; width: 100%; text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
.account-content .card { width: 100%; box-sizing: border-box; text-align: left; }
.account-content h2, .account-content h3 { text-align: left; width: 100%; }
.orders-list, #active-orders-container, #past-orders-container { width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
.order-card { width: 100% !important; text-align: left !important; margin-bottom: 20px; }

#coupons-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; width: 100%; }
#coupons-container.placeholder { justify-content: center !important; text-align: center; }
.coupon-card { display: flex; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #eee; transition: transform 0.2s ease, box-shadow 0.2s ease; min-height: 100px; }
.coupon-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.coupon-left { background: linear-gradient(135deg, var(--accent-pink), #e890a0); color: white; width: 90px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 10px; text-align: center; border-right: 2px dashed #fff; position: relative; }
.coupon-percent { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.coupon-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; opacity: 0.9; }
.coupon-right { flex: 1; padding: 15px; display: flex; flex-direction: column; justify-content: center; }
.coupon-code-box { background: #f4f4f5; border: 2px dashed #ccc; border-radius: 6px; padding: 8px; font-family: 'Courier New', monospace; font-weight: 700; font-size: 1.1rem; text-align: center; color: #333; margin-bottom: 8px; letter-spacing: 1px; user-select: all; }
.coupon-desc { font-size: 0.85rem; color: #666; margin: 0; line-height: 1.4; }
.coupon-status { font-size: 0.75rem; margin-top: 8px; font-weight: 600; text-transform: uppercase; }
.coupon-card.active .coupon-status { color: #10b981; }
.coupon-card.used { opacity: 0.6; filter: grayscale(1); }
.coupon-card.used .coupon-left { background: #555; }
.coupon-card.used .coupon-status { color: #555; }

@media (max-width: 820px) {
    .account-container { flex-direction: column; gap: 20px; }
    .account-nav { flex-basis: auto; width: 100%; position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; }
    .account-nav-link { flex-grow: 1; text-align: center; border: 1px solid var(--border-color); border-radius: var(--small-radius); padding: 8px 12px; }
    .account-nav .nav-divider { display: none; }
    .account-content { width: 100%; }
}

/* ==========================================================================
   10. MINIGAMES ÜBERSICHT & CARDS
   ========================================================================== */
.minigames-wrapper {
    max-width: 1200px; margin: 0 auto; padding: 40px 20px; padding-bottom: 100px !important; 
    text-align: center; animation: fadeInUp 0.8s ease-out forwards;
}
.minigames-title { font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; margin-bottom: 0.5rem; background: linear-gradient(to right, #22d3ee, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.minigames-subtitle { font-size: 1.1rem; color: #9ca3af; margin-bottom: 2.5rem; }

.filter-container { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.modern-filter-btn { padding: 8px 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; cursor: pointer; transition: all 0.2s ease; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
.modern-filter-btn.secondary { background-color: #1f2937; color: #9ca3af; border-color: #374151; }
.modern-filter-btn.secondary:hover { background-color: #374151; color: white; }
.modern-filter-btn.primary { background-color: #06b6d4; color: white; box-shadow: 0 0 15px rgba(6, 182, 212, 0.3); }
.modern-filter-btn.success { background-color: #10b981; color: white; box-shadow: 0 0 15px rgba(16, 185, 129, 0.3); }

.modern-games-grid { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 0 5px; }
@media (min-width: 600px) { .modern-games-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; } }

.modern-game-card {
    background-color: #1f2937; border: 1px solid #374151; border-radius: 16px; padding: 1rem; position: relative;
    display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%; text-decoration: none; box-sizing: border-box;
}
.modern-game-card:hover { transform: translateY(-5px); border-color: #06b6d4; box-shadow: 0 15px 30px -10px rgba(6, 182, 212, 0.15); }
.modern-game-card.disabled { opacity: 0.5; cursor: not-allowed; filter: grayscale(1); }

.mg-badge { position: absolute; top: 12px; padding: 4px 8px; border-radius: 99px; font-size: 0.65rem; font-weight: 800; display: flex; align-items: center; gap: 4px; z-index: 10; }
.mg-badge-coupon { right: 12px; background-color: #10b981; color: #022c22; }
.mg-badge-score { left: 12px; background-color: rgba(234, 179, 8, 0.15); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.3); }

.mg-icon { font-size: 3rem; margin-bottom: 0.8rem; margin-top: 0.5rem; transition: transform 0.3s ease; }
.modern-game-card:hover .mg-icon { transform: scale(1.1) rotate(5deg); }
.mg-title { font-size: 1.3rem; font-weight: 700; color: white; margin-bottom: 0.5rem; }
.mg-desc { color: #9ca3af; font-size: 0.85rem; line-height: 1.5; flex-grow: 1; margin-bottom: 1rem; }
.mg-tags { display: flex; gap: 6px; margin-bottom: 15px; justify-content: center; }
.mg-tag { font-size: 0.65rem; text-transform: uppercase; font-weight: 800; padding: 3px 8px; border-radius: 6px; color: white; }
.mg-play-btn { width: 90%; margin: 0 auto; padding: 10px; border-radius: 8px; background-color: #374151; color: #d1d5db; font-weight: 700; font-size: 0.9rem; transition: all 0.2s ease; }
.modern-game-card:hover .mg-play-btn { background-color: #06b6d4; color: #111827; }

/* ==========================================================================
   10b. HOME PROMO SEKTION (ZARA STYLE - DEZENT & EDEL)
   ========================================================================== */
.games-promo { 
    background-color: #111827; 
    color: #fff; 
    text-align: center; 
    position: relative;
    z-index: 5;
    padding: 60px 20px; /* Weniger Abstand oben/unten */
}

.promo-content {
    max-width: 1200px;
    margin: 0 auto;
}

.promo-subtitle {
    font-size: 0.95rem;
    color: #9ca3af;
    margin-bottom: 40px; /* Kleinerer Abstand */
    font-weight: 300;
}

.games-promo-container { 
    display: grid;
    grid-template-columns: 1fr; 
    gap: 15px; /* Lücke verkleinert */
    width: 100%;
}

@media (min-width: 768px) {
    .games-promo-container { 
        grid-template-columns: 1fr 1fr; 
    } 
}

/* Die Karte selbst - DEZENTER */
.promo-game-card { 
    position: relative;
    background-color: #000; 
    border: 1px solid #333; 
    border-radius: 0; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    align-items: center; 
    text-align: center;
    
    /* HIER IST DIE ÄNDERUNG: */
    min-height: 380px; /* Vorher 500px -> Jetzt kompakter */
    
    transition: border-color 0.3s ease; 
    text-decoration: none;
}

/* Mobile noch etwas kompakter */
@media (max-width: 768px) {
    .promo-game-card {
        min-height: 320px;
    }
}

.promo-game-card:hover { 
    border-color: #fff; 
}

/* Hintergrundbild */
.promo-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.75; /* Etwas heller als vorher (0.7) */
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s;
}

.promo-game-card:hover .promo-bg-img {
    transform: scale(1.03); /* Dezenterer Zoom (vorher 1.05) */
    opacity: 0.6; 
}

/* Inhalt Overlay */
.promo-card-inner {
    position: relative;
    z-index: 2;
    /* Weniger Padding innen */
    padding: 30px 20px; 
    width: 100%;
    box-sizing: border-box;
    /* Verlauf erst später starten lassen für mehr Bildsichtbarkeit */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

/* Icon (Fallback) */
.promo-game-card .card-icon { 
    font-size: 2.5rem; /* Kleiner */
    margin-bottom: 15px; 
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    margin-top: auto; 
}

/* Titel - Kleiner & Feiner */
.promo-game-card h3 { 
    font-size: 1.4rem; /* Vorher 1.8rem */
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 8px 0; 
    color: #fff;
    line-height: 1.1;
}

/* Text - Dezenter */
.promo-game-card p { 
    color: #e5e7eb; 
    font-size: 0.85rem; /* Kleiner */
    margin-bottom: 20px; 
    font-weight: 300;
    max-width: 90%;
    line-height: 1.4;
}

/* Button - Kompakter */
.promo-cta-button { 
    display: inline-block; 
    background-color: #ffffff; 
    color: #000000;             
    font-weight: 700;           
    
    /* Kleinerer Button */
    padding: 12px 30px; 
    font-size: 0.75rem;
    
    border-radius: 0;      
    text-decoration: none; 
    text-transform: uppercase; 
    letter-spacing: 1.5px;
    transition: all 0.2s ease; 
    border: 1px solid #fff;
}

.promo-cta-button:hover { 
    background-color: #000000; 
    color: #fff; 
    border-color: #fff;
}

/* ==========================================================================
   11. KOMPONENTEN (Modals, Badges, High-Fashion Forms)
   ========================================================================== */

/* Overlay */
.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(5px); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 2000; 
}

/* UPDATE in Sektion 11: Modal Content */
.modal-content {
    background: #ffffff;
    padding: 3rem 2.5rem;
    border-radius: 0;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    
    /* HIER GEÄNDERT: */
    width: 90%;          /* Fallback */
    max-width: 450px;    /* Maximale Breite Desktop */
    margin: 0 auto;      /* Zentrierung */
    
    text-align: center;
    position: relative;
    border: 1px solid #f0f0f0;
    box-sizing: border-box; /* Wichtig, damit Padding nicht die Breite sprengt */
}

/* Neuer Mobile Override für sicheren Rand */
@media (max-width: 600px) {
    .modal-content {
        /* Berechnet 100% Breite minus 40px (20px links + 20px rechts) */
        width: calc(100% - 40px) !important; 
        padding: 2rem 1.5rem; /* Etwas weniger Innenabstand auf Handy */
    }
}

/* Schließen Button */
.close-button { 
    position: absolute; 
    top: 15px; 
    right: 15px; 
    font-size: 2rem; 
    font-weight: 200; 
    line-height: 0.7;
    cursor: pointer; 
    color: #999; 
    transition: color 0.2s ease; 
}
.close-button:hover { color: #000; }

/* Überschrift */
.modal-content h2 { 
    margin-top: 0; 
    margin-bottom: 25px; 
    color: #000; 
    font-family: 'Playfair Display', serif; 
    font-size: 2rem;
    font-weight: 400; 
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Inputs - Clean & Minimal */
.modal-content input { 
    width: 100%; 
    padding: 14px 0; 
    padding-left: 15px;
    margin-bottom: 15px; 
    border: 1px solid #e5e5e5; 
    border-radius: 0; 
    background: #fff;
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
    font-size: 0.9rem; 
    color: #000;
    transition: border-color 0.3s;
}

.modal-content input::placeholder {
    color: #aaa;
    font-weight: 300;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.modal-content input:focus { 
    outline: none; 
    border-color: #000; 
    background: #fafafa;
    box-shadow: none; 
}

/* Haupt-Button (Anmelden/Registrieren) */
.modal-content button { 
    width: 100%; 
    padding: 16px; 
    border: 1px solid #000; 
    border-radius: 0; 
    color: white; 
    background-color: #000; 
    cursor: pointer; 
    font-family: 'Inter', sans-serif; 
    font-size: 0.85rem; 
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease; 
    margin-top: 10px;
}

.modal-content button:hover { 
    background-color: #fff; 
    color: #000; 
}

/* UPDATE in Sektion 11: Google Button Fix */
.google-btn { 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; /* Zentriert den Inhalt horizontal */
    width: 100% !important; 
    
    box-sizing: border-box !important; 
    padding: 14px 0 !important; 
    margin-bottom: 25px !important; 
    
    background-color: #ffffff !important; 
    color: #000000 !important; 
    border: 1px solid #e5e5e5 !important; 
    border-radius: 0 !important; 
    box-shadow: none !important; 
    
    font-family: 'Inter', sans-serif !important; 
    font-size: 0.9rem !important; 
    font-weight: 500 !important; 
    text-decoration: none !important; 
    transition: all 0.2s ease !important; 
    cursor: pointer !important;
    
    /* NEU: Gap statt Margin für perfekte Zentrierung */
    gap: 10px; 
}

/* Das Icon-Margin entfernen, da wir jetzt 'gap' nutzen */
.google-btn .fa-google, 
.google-btn img { 
    margin-right: 0 !important; 
    display: block; /* Verhindert seltsame Zeilenhöhen-Verschiebungen */
}

.google-btn:hover { 
    border-color: #000000 !important; 
    background-color: #ffffff !important; 
}
/* Wrapper für Auth Buttons */
#login-form #auth, #register-form #auth-register { 
    margin-bottom: 20px; 
    display: block; 
    width: 100%;
}

/* Trennlinie */
.divider { 
    display: flex; 
    align-items: center; 
    text-align: center; 
    color: #999; 
    margin: 25px 0; 
    font-size: 0.75rem; 
    text-transform: uppercase;
    letter-spacing: 1px;
}
.divider::before, .divider::after { 
    content: ''; 
    flex: 1; 
    border-bottom: 1px solid #eee; 
}
.divider:not(:empty)::before { margin-right: 1em; }
.divider:not(:empty)::after { margin-left: 1em; }

/* Link Texte */
.modal-content p { 
    margin-top: 20px; 
    font-size: 0.8rem; 
    color: #666;
}
.modal-content a { 
    color: #000; 
    text-decoration: none; 
    font-weight: 600; 
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.modal-content a:hover { 
    text-decoration: none; 
    border-bottom-color: #000; 
}

.hidden { display: none; }

/* Popups von SweetAlert (Global) */
.swal2-popup { border-radius: 0 !important; }
.swal2-styled.swal2-confirm {
    background-color: #000 !important;
    border-radius: 0 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Badges etc. */
.cooldown-badge { 
    position: absolute; top: -5px; right: -10px; 
    background-color: #000; 
    color: white; 
    font-size: 9px; font-weight: bold; 
    padding: 3px 5px; 
    border-radius: 0; 
    display: none; pointer-events: none; 
}

.contact-info .whatsapp-link { display: inline-flex; align-items: center; gap: 8px; color: #25D366; font-weight: 600; text-decoration: none; transition: color 0.2s ease, text-decoration 0.2s ease; }
.contact-info .whatsapp-link:hover { color: #1DA851; text-decoration: underline; }

/* Container für den JS-generierten Google Button */
#auth, #auth-register {
    display: flex !important;
    justify-content: center !important; /* Zentriert den Inhalt horizontal */
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 25px; /* Abstand nach unten */
}

/* Erzwingt, dass der Google-Button selbst keine eigenen Ränder hat */
#auth > div, 
#auth iframe,
#auth-register > div,
#auth-register iframe {
    margin: 0 auto !important;
    display: block !important;
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.site-footer {
    background-color: #f9fafb;
    border-top: 1px solid var(--border-color);
    color: #6b7280;
    padding: 60px 20px;
    font-size: 0.95rem;
    transition: opacity 0.5s ease-in-out;
    margin-top: 0 !important;
    z-index: 10;
    position: relative;
}
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; text-align: left; }
@media (min-width: 768px) { .footer-container { grid-template-columns: repeat(4, 1fr); gap: 60px; } }
.footer-column h4 { font-size: 1.1rem; font-weight: 600; color: var(--text-color); margin-top: 0; margin-bottom: 20px; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul a { color: #6b7280; text-decoration: none; transition: color 0.2s ease; }
.footer-column ul a:hover { color: var(--accent-pink); text-decoration: underline; }
.footer-socials { display: flex; gap: 15px; margin-top: 20px; }
.footer-socials a { color: #6b7280; font-size: 1.5rem; transition: all 0.2s ease; }
.footer-socials a:hover { color: var(--text-color); transform: scale(1.1); }
.footer-bottom { border-top: 1px solid var(--border-color); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 0.9rem; color: #9ca3af; }

.footer-payments { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; padding-bottom: 20px; flex-wrap: wrap; }
.payment-card, .payment-badge { width: 38px; height: 24px; background-color: #fff; border: 1px solid #e5e7eb; border-radius: 3px; box-sizing: border-box; background-position: center; background-repeat: no-repeat; transition: all 0.2s ease; cursor: default; }
.payment-card:hover, .payment-badge:hover { border-color: #9ca3af; transform: translateY(-1px); }

.payment-card.visa { background-image: url('https://upload.wikimedia.org/wikipedia/commons/5/5e/Visa_Inc._logo.svg'); background-size: 80%; }
.payment-card.mastercard { background-image: url('https://upload.wikimedia.org/wikipedia/commons/2/2a/Mastercard-logo.svg'); background-size: 75%; }
.payment-card.amex { background-image: url('https://upload.wikimedia.org/wikipedia/commons/f/fa/American_Express_logo_%282018%29.svg'); background-size: 100%; border: none; }
.payment-card.paypal { background-image: url('https://upload.wikimedia.org/wikipedia/commons/b/b5/PayPal.svg'); background-size: 80%; }
.payment-card.apple { background-image: url('https://upload.wikimedia.org/wikipedia/commons/b/b0/Apple_Pay_logo.svg'); background-size: 75%; }
.payment-card.google { background-image: url('https://upload.wikimedia.org/wikipedia/commons/f/f2/Google_Pay_Logo.svg'); background-size: 75%; }
.payment-card.amazon { background-image: url('https://upload.wikimedia.org/wikipedia/commons/2/29/Amazon_Pay_logo.svg'); background-size: 80%; }

.payment-badge { display: flex; align-items: center; justify-content: center; font-family: sans-serif; font-weight: 900; font-size: 9px; letter-spacing: -0.3px; padding: 0; }
.payment-badge.klarna { background-color: #FFB3C7; color: #000; border-color: #FFB3C7; }
.payment-badge.sofort { background-color: #F05040; color: #fff; font-style: italic; border-color: #F05040; }

/* ==========================================================================
   13. DARK MODE (Games Page Overrides)
   ========================================================================== */
body.games-page { background-color: #111827; }
body.games-page .status-banner { background-color: #111827; color: #d1d5db; }
body.games-page .main-header { background: rgba(17, 24, 39, 0.9); border-bottom-color: rgba(255, 255, 255, 0.06); }
body.games-page .nav-toggle-btn,
body.games-page .main-nav-desktop a,
body.games-page .cart-icon a,
body.games-page .user-icon-link { color: white; }
body.games-page .user-icon-link:hover,
body.games-page .main-header .user-status-container:hover,
body.games-page .main-header .cart-icon a:hover { background-color: rgba(255, 255, 255, 0.06); }
body.games-page #user-status .user-status-container { color: white; }

body.games-page .modal-content { background: #0f1724; border: 1px solid #1f2937; }
body.games-page .modal-content h2 { color: #ffffff; }
body.games-page .modal-content .close-button { color: #9ca3af; }
body.games-page .modal-content input { background-color: #111827; border-color: #24303b; color: #e5eef7; }
body.games-page .modal-content input::placeholder { color: #9ca3af; }
body.games-page .modal-content input:focus { border-color: var(--dark-accent-color); box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12); }
body.games-page .modal-content button[type="submit"] { background-color: var(--dark-accent-color); color: #0b1220; font-weight: 700; }
body.games-page .modal-content button[type="submit"]:hover { background-color: #0891b2; transform: translateY(-2px); }
body.games-page .modal-content .google-btn { background-color: #4285F4; }
body.games-page .modal-content .divider { color: #9aa3af; }
body.games-page .modal-content .divider::before, body.games-page .modal-content .divider::after { border-color: #24303b; }
body.games-page .modal-content p { color: #d1d5db; }
body.games-page .modal-content a { color: var(--dark-accent-color); }

body.games-page .nav-sidebar { background: #1f2937; border-right: 1px solid #374151; box-shadow: 4px 0 18px rgba(0,0,0,0.2); }
body.games-page .sidebar-header { border-bottom-color: #374151; }
body.games-page .sidebar-link { color: #d1d5db; }
body.games-page .sidebar-link:hover { background-color: #374151; }
body.games-page .sidebar-link .icon { color: #9ca3af; }
body.games-page .sidebar-nav-group .group-title { color: #6b7280; }
body.games-page .sidebar-footer { border-top-color: #374151; }
body.games-page .sidebar-footer a { color: #9ca3af; }
body.games-page .sidebar-footer a:hover { color: white; }
body.games-page .sidebar-logo #logo-dark-mode { display: block; }
body.games-page .sidebar-logo #logo-light-mode { display: none; }

.site-footer.games-footer { background-color: #111827; border-top-color: #374151; color: #9ca3af; opacity: 1 !important; }
.site-footer.games-footer .footer-column h4 { color: #ffffff; }
.site-footer.games-footer .footer-column ul a { color: #9ca3af; }
.site-footer.games-footer .footer-column ul a:hover { color: var(--dark-accent-color); }
.site-footer.games-footer .footer-socials a { color: #9ca3af; }
.site-footer.games-footer .footer-socials a:hover { color: #ffffff; }
.site-footer.games-footer .footer-bottom { border-top-color: #374151; color: #6b7280; }

body.games-page .payment-card, body.games-page .payment-badge { opacity: 0.9; border-color: #4b5563; }
body.games-page .payment-card:hover, body.games-page .payment-badge:hover { opacity: 1; border-color: #fff; }

/* ==========================================================================
   14. EDLES VARIANTEN POPUP (SweetAlert2 Overrides)
   ========================================================================== */
/* Popup Container - Eckig & Edel */
.swal2-popup {
    border-radius: 0 !important; /* Strikt Eckig */
    font-family: 'Poppins', sans-serif; /* Ihre Schriftart */
    padding: 20px 25px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    max-width: 450px !important;
}

/* Titel */
.swal2-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111 !important;
    margin-bottom: 15px !important;
}

/* Inhalt & Text */
.swal2-html-container, .swal2-content {
    font-size: 0.9rem !important;
    font-weight: 300 !important;
    color: #555 !important;
    margin: 0 !important;
    text-align: left !important; /* Inhalt linksbündig */
}

/* Labels im Popup */
.swal-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

/* Varianten Buttons im Popup */
#swal-variants-container .variant-swatch {
    padding: 8px 12px;
    font-size: 0.85rem;
    border: 1px solid #e5e7eb; /* Feiner Rahmen */
    background: #fff;
    color: #333;
    margin: 0 5px 5px 0;
    transition: all 0.2s ease;
    min-width: 45px; /* Einheitliche Mindestbreite */
}
#swal-variants-container .variant-swatch:hover:not(:disabled) {
    border-color: #000;
}
#swal-variants-container .variant-swatch.swatch-active {
    background: #000;
    color: #fff;
    border-color: #000;
    font-weight: 500;
}
#swal-variants-container .variant-swatch.swatch-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f9fafb;
}

/* Mengeneingabe im Popup */
#swal-quantity {
    border: 1px solid #e5e7eb !important;
    border-radius: 0 !important;
    padding: 8px !important;
    font-size: 0.9rem !important;
    width: 60px !important;
    text-align: center;
    margin-left: 0 !important; /* Linksbündig */
    box-shadow: none !important;
}
#swal-quantity:focus {
    border-color: #000 !important;
}

/* Buttons unten (Bestätigen / Abbrechen) */
.swal2-actions {
    margin-top: 25px !important;
    justify-content: space-between !important; /* Buttons verteilen */
    width: 100%;
    gap: 15px;
}
.swal2-confirm, .swal2-cancel {
    border-radius: 0 !important; /* Eckig */
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 20px !important;
    box-shadow: none !important;
    flex: 1; /* Beide Buttons gleich breit */
    margin: 0 !important;
}
/* Bestätigen Button (Schwarz) */
.swal2-confirm {
    background-color: #000 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
}
/* Abbrechen Button (Weiß/Outline) */
.swal2-cancel {
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
}
.swal2-cancel:hover {
    background-color: #f5f5f5 !important;
}
/* ==========================================================================
   15. WARENKORB (MODERN & MINIMALISTISCH)
   ========================================================================== */

/* Layout Wrapper */
.cart-wrapper {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    /* Standard: Zwei Spalten (Produkte links, Summary rechts) */
    grid-template-columns: 1fr 400px; 
    gap: 60px;
    align-items: start;
    min-height: 50vh; /* Damit der Footer nicht hochrutscht */
    transition: all 0.3s ease;
}

.cart-header-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 2rem;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
    grid-column: 1 / -1; /* Überschrift immer über die volle Breite */
    text-align: center;  /* Überschrift zentriert */
}

/* WICHTIG: Wenn der Warenkorb leer ist -> Einspaltiges Layout erzwingen */
.cart-wrapper:has(.cart-empty), 
.cart-wrapper.is-empty { 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    grid-template-columns: 1fr; /* Grid überschreiben */
}

/* Linke Spalte: Produktliste */
.cart-items-list {
    width: 100%;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto; /* Bild | Info | Preis/Löschen */
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid #e5e7eb;
    align-items: flex-start;
}

/* Bild im 3:4 Format */
.cart-item img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    background-color: #f5f5f5;
}

/* Info Bereich */
.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.cart-variant-info {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Quantity Input Modern */
.cart-quantity-controls {
    margin-top: 15px;
    display: flex;
    align-items: center;
}
.cart-quantity-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-right: 10px;
    color: #999;
}
.cart-quantity-input {
    width: 50px;
    padding: 5px 0;
    border: 1px solid #e5e7eb;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0; /* Eckig */
    outline: none;
    transition: border-color 0.2s;
    appearance: textfield;
}
.cart-quantity-input:focus {
    border-color: #000;
}
/* Spinner verstecken */
.cart-quantity-input::-webkit-outer-spin-button,
.cart-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Rechte Seite: Preis & Delete */
.cart-item-controls {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.cart-item-price {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
}

.remove-item-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}
.remove-item-btn:hover {
    color: #ef4444;
    border-bottom-color: #ef4444;
}

/* Rechte Spalte: Summary (Sticky) */
.cart-summary-box {
    background: #f9fafb;
    padding: 30px;
    position: sticky;
    top: 120px; /* Unter Header */
    border: 1px solid #e5e7eb;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between; /* Zwingt Elemente nach links und rechts außen */
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #555;
    width: 100%; /* WICHTIG */
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 1.2rem;
    font-weight: 800;
    color: #000;
}

/* Checkout Button */
.checkout-button {
    display: block;
    width: 100%;
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 16px 0;
    margin-top: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    border: 1px solid #000;
    border-radius: 0; /* Strikt Eckig */
    cursor: pointer;
    transition: all 0.2s ease;
}
.checkout-button:hover:not(:disabled) {
    background-color: #333;
    border-color: #333;
}
.checkout-button:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

.secure-label {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: #999;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Empty State - SUPER WICHTIG */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    width: 100%;
    /* Grid Override sicherstellen */
    grid-column: 1 / -1 !important; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cart-empty p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
}

/* Responsive Anpassungen */
@media (max-width: 900px) {
    .cart-wrapper {
        grid-template-columns: 1fr; /* Alles untereinander auf Mobile */
        gap: 40px;
        margin-top: 20px;
        display: flex; /* Flexbox ist auf Mobile oft sicherer */
        flex-direction: column;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr; /* Preis rutscht unter Info */
        gap: 15px;
    }
    
    .cart-item-controls {
        grid-column: 2;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 10px;
    }
    
    .cart-item-price {
        order: 2;
    }
    
    .remove-item-btn {
        order: 1;
    }
    
    .cart-summary-box {
        position: static;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 20px 0;
        width: 100%; /* Volle Breite sicherstellen */
    }
}

/* ==========================================================================
   16. SIDEBAR CART (MODERN / ZARA / PESO STYLE)
   ========================================================================== */

/* 1. Das Overlay (Hintergrund abdunkeln + Blur) */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Leichter, eleganter */
    backdrop-filter: blur(4px);      /* Moderner Milchglas-Effekt */
    z-index: 9998; 
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* 2. Die Sidebar selbst */
.cart-sidebar {
    position: fixed;
    top: 0; right: 0;
    width: 420px;            /* Desktop Breite */
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Sehr smoothe Animation */
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1); /* Tiefer Schatten */
}

.cart-sidebar.open {
    transform: translateX(0);
}

/* --- MOBILE GAP LOGIK (WICHTIG!) --- */
/* --- MOBILE GAP LOGIK (WICHTIG!) --- */
@media (max-width: 600px) {
    .cart-sidebar {
        /* Hier entsteht die Lücke links! */
        width: 88vw;          /* Nimmt nur 88% der Breite ein */
        max-width: 380px;     /* Aber nicht zu breit werden */
        
        /* HIER WAR DIE RUNDUNG - JETZT AUF 0 SETZEN */
        border-radius: 0 !important; 
    }
}

/* 3. Header */
.cart-sidebar-header {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
}
.cart-sidebar-header h2 {
    margin: 0;
    font-size: 1rem;       /* Kleiner, eleganter */
    font-weight: 800;      /* Fett */
    text-transform: uppercase;
    letter-spacing: 1px;
}
.close-cart-btn {
    background: none; border: none; 
    font-size: 1.5rem; cursor: pointer; 
    color: #111; 
    transition: transform 0.2s;
    padding: 5px;
}
.close-cart-btn:hover { transform: rotate(90deg); }

/* 4. Content Area */
.cart-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0; /* Padding in den Items regeln */
}
/* Scrollbar verstecken für cleanen Look */
.cart-sidebar-content::-webkit-scrollbar { width: 4px; }
.cart-sidebar-content::-webkit-scrollbar-track { background: transparent; }
.cart-sidebar-content::-webkit-scrollbar-thumb { background: #eee; border-radius: 4px; }

/* 5. Items (Das Herzstück) */
.sidebar-item {
    display: flex;
    gap: 15px;
    padding: 20px 30px;
    border-bottom: 1px solid #f9f9f9;
    transition: background-color 0.2s;
}
.sidebar-item:hover { background-color: #fafafa; }

.sidebar-item img {
    width: 80px; 
    aspect-ratio: 3/4; /* Hochformat wie bei Mode üblich */
    object-fit: cover; 
    display: block;
    background-color: #f0f0f0;
}

.sidebar-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.sidebar-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.sidebar-item-variant {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 8px;
}

.sidebar-item-price {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Controls unten im Item */
.sidebar-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* Quantity Selector: Minimalistisch */
.qty-selector-minimal {
    display: flex;
    align-items: center;
    border: 1px solid #e5e5e5;
    background: #fff;
    height: 28px;
}
.qty-btn {
    width: 28px;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    color: #333;
    transition: background 0.2s;
}
.qty-btn:hover { background: #f5f5f5; }
.qty-val {
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.sidebar-remove {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #999;
    background: none; border: none; cursor: pointer;
    letter-spacing: 0.5px;
    border-bottom: 1px solid transparent;
    padding: 0;
}
.sidebar-remove:hover { color: #000; border-bottom-color: #000; }

/* 6. Footer */
.cart-sidebar-footer {
    padding: 25px 30px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.cart-summary-row {
    display: flex; justify-content: space-between;
    font-size: 0.9rem; color: #666; margin-bottom: 8px;
}

.cart-total-row {
    display: flex; justify-content: space-between;
    font-size: 1.1rem; font-weight: 800; color: #000;
    margin-top: 15px; margin-bottom: 20px;
    padding-top: 15px; border-top: 1px solid #eee;
}

/* Checkout Button: ZARA Style (Schwarz, Eckig, Breit) */
.checkout-button-sidebar {
    width: 100%;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 0; /* Eckig! */
}
.checkout-button-sidebar:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-1px);
}
.checkout-button-sidebar:disabled {
    background: #ccc; border-color: #ccc; cursor: not-allowed;
}

.sidebar-secure-note {
    text-align: center;
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 12px;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}

/* ==========================================================================
   17. SWEETALERT OVERRIDES (MODERN / ECKIG)
   ========================================================================== */

/* Popup Container */
.swal2-popup {
    border-radius: 0 !important; /* Eckig bleiben (Zara Style) */
    font-family: 'Helvetica', 'Arial', sans-serif !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important;
    
    /* Desktop Standard */
    width: 32em !important; 
    max-width: 100% !important;
}

.swal2-container {
    z-index: 20000 !important;
    padding: 0 20px !important; /* WICHTIG: Erzwingt Abstand zum Rand */
}

/* Titel */
.swal2-title {
    font-size: 1.1rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000 !important;
}

/* Inhaltstext */
.swal2-html-container {
    font-size: 0.9rem !important;
    color: #555 !important;
}

/* --- BUTTONS STYLING --- */

/* "Ja, Löschen" Button (Schwarz) */
.swal2-confirm-btn-modern {
    background-color: #000 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
    border-radius: 0 !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: none !important;
}
.swal2-confirm-btn-modern:hover {
    background-color: #333 !important;
}

/* "Abbrechen" Button (Weiß mit Rand) */
.swal2-cancel-btn-modern {
    background-color: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    border-radius: 0 !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: none !important;
}
.swal2-cancel-btn-modern:hover {
    background-color: #f0f0f0 !important;
}

/* Icons (Ausrufezeichen etc.) anpassen */
.swal2-icon.swal2-warning {
    border-color: #000 !important;
    color: #000 !important;
}

/* Mobile Spezifisch: Lücke links und rechts erzwingen */
@media (max-width: 600px) {
    .swal2-popup {
        width: auto !important;       /* Breite automatisch */
        margin: 0 15px !important;    /* 15px Abstand links und rechts */
        left: 0; right: 0;
        
        /* Optional: Falls es zu weit oben klebt */
        align-self: center !important; 
    }
    
    /* Buttons untereinander am Handy für mehr Platz? */
    .swal2-actions {
        flex-direction: column;
        gap: 10px;
    }
    .swal2-actions button {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* ==========================================================================
   19. INLINE ERROR MESSAGES (EDLER LOOK)
   ========================================================================== */

.sidebar-error-msg {
    color: #ef4444;       /* Elegantes Warn-Rot */
    font-size: 0.7rem;    /* Klein und fein */
    font-weight: 600;
    margin-top: 6px;
    opacity: 0;           /* Standardmäßig unsichtbar */
    max-height: 0;        /* Nimmt keinen Platz weg */
    overflow: hidden;
    transition: all 0.3s ease; /* Weiches Einblenden */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-error-msg.visible {
    opacity: 1;
    max-height: 20px;     /* Platz freigeben */
}

/* Wackel-Animation für das Eingabefeld (Feedback) */
@keyframes shake-limit {
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

.limit-reached-shake {
    animation: shake-limit 0.3s ease-in-out;
    border-color: #ef4444 !important; /* Rahmen kurz rot */
    color: #ef4444 !important;
}

/* ==========================================================================
   USER DROPDOWN - MODERN & CLEAN
   ========================================================================== */
.user-dropdown {
    /* Positionierung */
    position: absolute;
    top: 100%; 
    right: 0;
    margin-top: 15px; /* Kleiner Abstand zum Icon */
    
    /* Größe & Form */
    width: 220px;
    background-color: #ffffff;
    border-radius: 0; /* WICHTIG: Eckig für den modernen Look */
    
    /* Design & Schatten (Edel) */
    border: 1px solid #f0f0f0; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); /* Sanfter, großer Schatten */
    
    /* Innenabstand */
    padding: 10px 0;
    
    /* Sicherstellen, dass es oben liegt */
    z-index: 9999;
    
    /* Standardmäßig unsichtbar (wird von JS überschrieben, aber für Fallback) */
    display: none; 
}

/* Der kleine "Pfeil" nach oben (Optional, sieht aber gut aus) */
.user-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 6px; /* Unter dem Icon zentriert */
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 1px solid #f0f0f0;
    border-top: 1px solid #f0f0f0;
}

/* Die Links im Dropdown */
.user-dropdown-link {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

/* Hover Effekt für Links */
.user-dropdown-link:hover {
    background-color: #f9f9f9;
    color: #000;
    padding-left: 25px; /* Kleine Animation nach rechts */
}

/* Trennlinie */
.user-dropdown-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 8px 0;
}

/* Logout Button (Rot oder Schwarz, je nach Geschmack) */
.logout-link {
    color: #ef4444; /* Dezentes Rot */
}
.logout-link:hover {
    background-color: #fef2f2; /* Ganz helles Rot beim Hover */
    color: #dc2626;
}

/* ==========================================================================
   18. FEATURES TICKER (HIGH FASHION MARQUEE)
   ========================================================================== */
.features-slider {
    padding: 15px 0;
    background-color: #ffffff;
    border-top: 1px solid #f4f4f4;
    border-bottom: 1px solid #f4f4f4;
    overflow: hidden;
    white-space: nowrap;
}

/* Wichtig für ruckelfreien Ticker */
.features-swiper .swiper-wrapper {
    transition-timing-function: linear;
}

.feature-item {
    display: inline-flex;
    align-items: center;
}

.feature-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000000;
}

.feature-separator {
    margin: 0 40px;
    color: #cccccc;
    font-size: 0.6rem;
}

/* Mobile Anpassung */
@media(max-width: 768px) {
    .feature-separator { 
        margin: 0 25px; 
    }
    .feature-text { 
        font-size: 0.65rem; 
        letter-spacing: 1.5px; 
    }
}
/* ==========================================================================
   WINNER TICKER (ZARA STYLE - FIXED)
   ========================================================================== */
.winner-ticker-wrapper {
    background-color: #000000;
    border-top: 1px solid #222;
    padding: 18px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 10;
    user-select: none; /* Text nicht markierbar */
    pointer-events: none; /* WICHTIG: Verhindert jegliches Klicken/Stoppen! */
}

/* Das "LIVE" Label */
.ticker-label {
    color: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 30px;
    border-right: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 20;
    white-space: nowrap;
    background-color: #000;
    height: 100%;
    /* Label soll sichtbar sein, also pointer-events resetten falls nötig, 
       aber hier egal da wrapper eh alles blockt */
}

.pulse-dot {
    width: 6px; height: 6px;
    background-color: #ff0000;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(255, 0, 0, 0.4);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.winner-swiper .swiper-wrapper {
    transition-timing-function: linear !important; 
    -webkit-transition-timing-function: linear !important;
}

.ticker-slide {
    width: auto !important;
}

/* Die Gewinner-Anzeige - Jetzt heller */
.winner-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.85rem; /* Ticken kleiner für mehr Eleganz */
    color: #ccc; /* HELLERES Grau (vorher #888) */
    letter-spacing: 0.5px;
}

.win-user {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}

.win-text {
    font-weight: 300;
    font-size: 0.8rem;
    color: #999; /* Mittelgrau, gut lesbar */
}

.win-amount {
    color: #fff;
    font-weight: 700;
    border-bottom: 1px solid #fff;
    padding-bottom: 2px;
}

.win-time {
    font-size: 0.75rem; 
    color: #666; /* Heller als vorher (#444 war zu dunkel) */
    margin-left: 8px; 
    font-weight: 400;
}

/* LEADERBOARD STYLES */
.scoreboard-container {
    max-width: 600px;
    margin: 0 auto 50px auto;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.sb-header {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #374151;
    padding-bottom: 15px;
}

.sb-tab {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.sb-tab.active {
    background: #374151;
    color: #fff;
}

.sb-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sb-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.sb-rank {
    width: 30px;
    font-weight: 800;
    color: #6b7280;
}

.rank-1 { color: #facc15; text-shadow: 0 0 10px rgba(250, 204, 21, 0.4); } /* Gold */
.rank-2 { color: #e5e7eb; text-shadow: 0 0 10px rgba(229, 231, 235, 0.4); } /* Silber */
.rank-3 { color: #d97706; text-shadow: 0 0 10px rgba(217, 119, 6, 0.4); } /* Bronze */

.sb-user {
    flex-grow: 1;
    color: #fff;
    font-weight: 500;
    padding-left: 10px;
}

.sb-score {
    color: #06b6d4; /* Neon Cyan */
    font-weight: 700;
    font-family: monospace;
    font-size: 1.1rem;
}

/* Update für style.css */
.sb-item {
    display: flex;
    align-items: center;
    padding: 14px 10px; /* Etwas mehr Platz */
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.95rem;
}
.sb-rank {
    font-size: 0.9rem;
    font-weight: 700;
}
.rank-1 { font-size: 1.2rem; } /* Medaille etwas größer */

.sb-filter-row {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-bottom: 15px;
        flex-wrap: wrap;
    }
    .sb-filter-btn {
        background: transparent;
        border: 1px solid #374151;
        color: #9ca3af;
        padding: 8px 16px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 0.85rem;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .sb-filter-btn:hover { background: rgba(255,255,255,0.05); color: #fff; }
    .sb-filter-btn.active {
        background: #374151;
        color: #fff;
        border-color: #4b5563;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        font-weight: 600;
    }
    .sb-section-title {
        text-align: center;
        margin-bottom: 15px;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: #e5e7eb;
        border-bottom: 1px solid #374151;
        padding-bottom: 10px;
    }

    /* ==========================================================================
   20. WARENKORB PROGRESS BAR (ZARA STYLE)
   ========================================================================== */
.cart-progress-container {
    width: 100%;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0; /* Feine Trennlinie zur Zwischensumme */
}

.cart-progress-text {
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 400;
}

.cart-progress-text strong {
    font-weight: 700;
    color: #000;
}

.cart-progress-bar-bg {
    width: 100%;
    height: 2px; /* Sehr dünn und edel */
    background-color: #e5e5e5;
    position: relative;
    overflow: hidden;
}

.cart-progress-bar-fill {
    height: 100%;
    background-color: #000; /* ZARA Schwarz */
    width: 0%;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Success State (Wenn voll) */
.cart-progress-success {
    color: #10b981; /* Dezentes Grün oder Schwarz lassen */
    font-weight: 600;
}

