:root {
    --bg-color: #000000;
    --text-color: #f5f5f7;
    --text-muted: #86868b;
    --yellow: #FFD60A;
    --yellow-hover: #E5C009;
    --glass-bg: rgba(0, 0, 0, 0.72);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: #111111;
    --card-border: #222222;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-color); color: var(--text-color); line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.navbar { position: fixed; top: 0; left: 0; width: 100%; height: 60px; display: flex; justify-content: space-between; align-items: center; padding: 0 5vw; background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); z-index: 1000; }
.nav-brand { font-size: 1.25rem; font-weight: 700; cursor: pointer; transition: color 0.3s; }
.nav-brand:hover { color: var(--yellow); }
.nav-actions { display: flex; gap: 15px; align-items: center; }
.icon-btn { background: none; border: none; color: var(--text-color); cursor: pointer; position: relative; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; transition: background 0.3s; border-radius: 50%; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-badge { position: absolute; top: 2px; right: 2px; background-color: var(--yellow); color: #000; font-size: 0.65rem; font-weight: 700; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transform: scale(0); transition: transform 0.2s ease; }
.cart-badge.active { transform: scale(1); }
#app-container { padding-top: 60px; min-height: 100vh; }
.home-view { display: flex; flex-direction: column; padding: 2rem 5vw; gap: 2rem; }
.hero-section { text-align: center; padding: 4rem 0 2rem; }
.hero-title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; margin-bottom: 1rem; }
.hero-subtitle { color: var(--text-muted); font-size: 1.2rem; max-width: 600px; margin: 0 auto; }
.categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; width: 100%; max-width: 1200px; margin: 0 auto; }
.category-card { background-color: var(--yellow); border-radius: 24px; padding: 2.5rem 2rem; position: relative; overflow: hidden; cursor: pointer; color: #000; min-height: 450px; display: flex; flex-direction: column; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.category-card:hover { transform: translateY(-8px) scale(1.02); }
.category-info { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; }
.category-info h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.1; }
.category-info p { font-size: 1.05rem; opacity: 0.8; }
.category-image-wrapper { position: absolute; left: 0; bottom: 0; width: 100%; height: 55%; z-index: 1; transition: transform 0.5s ease; }
.category-image-wrapper::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 80px; background: linear-gradient(to bottom, var(--yellow), transparent); z-index: 1; }
.category-card:hover .category-image-wrapper { transform: scale(1.05) translateY(-5px); }
.category-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.category-view { padding: 2rem 5vw 5rem; max-width: 1200px; margin: 0 auto; animation: fadeIn 0.4s ease forwards; }
.category-header { margin-bottom: 3rem; padding-top: 2rem; }
.back-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--yellow); background: none; border: none; font-size: 1rem; cursor: pointer; margin-bottom: 1rem; }
.back-btn:hover { opacity: 0.8; }
.category-title { font-size: 3rem; color: var(--yellow); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.product-card { background-color: var(--card-bg); border: 1px solid var(--card-border); border-radius: 18px; padding: 2rem 1.5rem; display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.3s; }
.product-card:hover { background-color: #1a1a1a; border-color: #333; transform: translateY(-5px); }
.product-image { width: 100%; height: 200px; object-fit: contain; margin-bottom: 1.5rem; }
.product-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.product-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-grow: 1; }
.product-footer { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 1.25rem; font-weight: 700; color: #fff; }
.add-to-cart-btn { background-color: var(--yellow); color: #000; border: none; border-radius: 30px; padding: 0.5rem 1.2rem; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.add-to-cart-btn:hover { background-color: var(--yellow-hover); transform: scale(1.05); }
.menu-overlay, .cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; visibility: hidden; opacity: 0; transition: visibility 0.4s, opacity 0.4s; }
.menu-overlay.active, .cart-overlay.active { visibility: visible; opacity: 1; }
.menu-content { background-color: var(--bg-color); width: 100%; height: 100%; padding: 0 5vw; display: flex; flex-direction: column; transform: translateY(-20px); transition: transform 0.4s ease; }
.menu-overlay.active .menu-content { transform: translateY(0); }
.menu-header, .cart-header { height: 60px; display: flex; justify-content: flex-end; align-items: center; }
.cart-header { height: 70px; padding: 0 2rem; justify-content: space-between; border-bottom: 1px solid #222; }
.menu-links { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.menu-links a { color: var(--text-color); text-decoration: none; font-size: 2rem; font-weight: 600; transition: color 0.2s; display: inline-block; }
.menu-links a:hover { color: var(--yellow); }
.menu-category-title { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 1rem; }
.submenu-links { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-top: 0.5rem; }
.submenu-links a { font-size: 1.5rem; font-weight: 400; color: #ccc; }
.cart-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(5px); }
.cart-panel { position: absolute; top: 0; right: 0; width: 100%; max-width: 450px; height: 100%; background-color: #111; border-left: 1px solid #222; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.cart-overlay.active .cart-panel { transform: translateX(0); }
.cart-items { flex-grow: 1; overflow-y: auto; padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.empty-cart-msg { color: var(--text-muted); text-align: center; margin-top: 2rem; }
.cart-item { display: flex; gap: 1rem; align-items: center; }
.cart-item-img { width: 60px; height: 60px; background: #000; border-radius: 12px; padding: 5px; object-fit: contain; }
.cart-item-info { flex-grow: 1; }
.cart-item-title { font-weight: 600; font-size: 1rem; }
.cart-item-price { color: var(--yellow); font-size: 0.9rem; }
.cart-item-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 5px; border-radius: 6px; transition: all 0.2s; }
.cart-item-remove:hover { color: #ff4d4f; background: rgba(255, 77, 79, 0.1); }
.cart-footer { padding: 2rem; border-top: 1px solid #222; background: #0a0a0a; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; }
.checkout-btn { width: 100%; background-color: var(--yellow); color: #000; border: none; border-radius: 12px; padding: 1rem; font-size: 1.1rem; font-weight: 600; cursor: pointer; margin-bottom: 1.5rem; transition: transform 0.2s; }
.checkout-btn:hover { background-color: var(--yellow-hover); transform: scale(1.02); }
.payment-methods { display: flex; justify-content: center; align-items: center; gap: 10px; }
.payment-btn { background: #1a1a1a; border: 1px solid #333; border-radius: 8px; padding: 12px 20px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; flex: 1; }
.payment-btn:hover { background: #2a2a2a; border-color: #555; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.product-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 4rem; }
/* ===== TABLET (max 900px) ===== */
@media (max-width: 900px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .category-card {
        min-height: 320px;
        padding: 2rem;
    }
    .hero-title { font-size: 2.5rem; }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MOBILE (max 600px) ===== */
@media (max-width: 600px) {
    /* Navbar */
    .navbar { padding: 0 4vw; }
    .nav-brand { font-size: 1.1rem; }

    /* Hero */
    .hero-section { padding: 2.5rem 0 1.5rem; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }

    /* Kategorie-Karten: untereinander */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .category-card {
        min-height: 260px;
        padding: 1.5rem;
    }
    .category-info h2 { font-size: 1.8rem; }

    /* Produkt-Grid: untereinander auf Mobile */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .product-card {
        padding: 1.5rem 1rem;
    }
    .product-image { height: 160px; }
    .product-title { font-size: 1.1rem; }
    .product-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    .add-to-cart-btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
        text-align: center;
    }

    /* Kategorie- und Produkt-Detail-Ansicht */
    .category-view { padding: 1.5rem 4vw 4rem; }
    .category-title { font-size: 2rem; }

    /* Produkt-Detail-Grid: untereinander statt nebeneinander */
    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Warenkorb: volle Breite auf Mobile */
    .cart-panel {
        max-width: 100%;
        width: 100%;
        border-left: none;
        border-top: 1px solid #222;
    }

    /* Menü */
    .menu-links a { font-size: 1.7rem; }
    .submenu-links a { font-size: 1.2rem; }

    /* Zahlungs-Buttons */
    .payment-methods { gap: 6px; }
    .payment-btn { padding: 10px 12px; }
}

.add-to-cart-btn.success-state {
    background-color: #34c759;
    color: #fff;
    transform: scale(0.95);
    box-shadow: 0 0 15px rgba(52, 199, 89, 0.4);
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.qty-control {
    display: flex;
    align-items: center;
    background: #222;
    border-radius: 6px;
    overflow: hidden;
}
.qty-control button {
    background: none;
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.qty-control button:hover {
    background: #333;
}
.qty-control span {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}
