* { box-sizing: border-box; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
body { margin: 0; background: #fff; color: #334155; display: flex; flex-direction: column; min-height: 100vh; padding-bottom: 65px; }
@media(min-width: 769px) { body { padding-bottom: 0; } }
a { color: var(--primary); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--primary-hover); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* Top Bar & Header */
.top-bar { background: #f1f5f9; color: #475569; font-size: 13px; padding: 7px 15px; text-align: center; border-bottom: 1px solid #e2e8f0; font-weight: 500; }
.site-header { padding: 16px 0; background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.menu-btn { display: none; background: none; border: none; font-size: 26px; color: #475569; cursor: pointer; padding: 5px; }
.header-left-desktop { font-size: 13px; color: #64748b; min-width: 130px; }
.curr-select { border: 1px solid #cbd5e1; background: #f8fafc; padding: 6px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; color: #0f172a; cursor: pointer; }
.logo-area { text-align: center; flex-grow: 1; }
.logo-text { font-size: 24px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.cart-icon-wrap { position: relative; font-size: 24px; color: #475569; padding: 5px 10px; min-width: 130px; text-align: right; }
.cart-badge { position: absolute; top: -2px; right: 2px; background: var(--primary); color: var(--on-primary, #fff); font-size: 11px; font-weight: bold; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Desktop Navigationsleiste in gewählter Admin-Farbe (ganze Rubrik-Fläche als Button klickbar!) */
.desktop-nav-bar { background: var(--primary); color: var(--on-primary, #fff); position: sticky; top: 0; z-index: 900; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.desktop-nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 50px; gap: 15px; }
.desktop-nav-links { display: flex; align-items: stretch; justify-content: center; flex-grow: 1; gap: 4px; flex-wrap: wrap; }
.nav-item { position: relative; display: flex; align-items: stretch; padding: 0; }
.nav-item > a { display: flex; align-items: center; justify-content: center; padding: 14px 16px; min-height: 50px; color: var(--on-primary, #fff); font-size: 14px; font-weight: 600; text-decoration: none; border-radius: 6px; transition: background-color 0.15s, opacity 0.15s; cursor: pointer; }
.nav-item > a:hover { background-color: rgba(0, 0, 0, 0.08); color: var(--on-primary, #fff); }
.nav-dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 200px; box-shadow: 0 8px 20px rgba(0,0,0,0.15); border-top: 3px solid #0f172a; z-index: 999; border-radius: 0 0 6px 6px; overflow: hidden; }
.nav-dropdown a { display: block; padding: 10px 15px; color: #334155; font-size: 13px; font-weight: 500; border-bottom: 1px solid #f1f5f9; }
.nav-dropdown a:hover { background: #f8fafc; color: var(--primary); }
.nav-item:hover .nav-dropdown { display: block; }

/* Suchfunktion Desktop & Mobile: Immer in Admin-Farbe + reinweisse SVG-Lupe */
.desktop-search-form { display: flex; width: 240px; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid rgba(255,255,255,0.45); box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.desktop-search-form input { flex: 1; padding: 8px 12px; border: none; font-size: 13px; outline: none; background: #fff; color: #0f172a; }
.desktop-search-form button,
.mobile-search-wrap button {
    background-color: var(--primary) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='20' y1='20' x2='16.2' y2='16.2'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 18px 18px !important;
    color: transparent !important;
    font-size: 0 !important;
    border: none;
    min-width: 42px;
    padding: 0 14px;
    cursor: pointer;
    transition: background-color 0.15s;
}
.desktop-search-form button *,
.mobile-search-wrap button * { display: none !important; }
.desktop-search-form button:hover,
.mobile-search-wrap button:hover { background-color: var(--primary-hover) !important; }
.mobile-search-wrap { display: none; margin: 10px 0 0 0; }

@media(max-width: 768px) {
    .menu-btn { display: block; }
    .header-left-desktop, .desktop-nav-bar { display: none; }
    .cart-icon-wrap { min-width: auto; }
    .mobile-search-wrap { display: flex; }
    .mobile-search-wrap input { flex: 1; padding: 10px 12px; border: 1px solid #cbd5e1; border-right: none; border-radius: 6px 0 0 6px; font-size: 14px; outline: none; }
    .mobile-search-wrap button { padding: 0 20px; border-radius: 0 6px 6px 0; }
}

.promo-sub { text-align: center; color: #0f172a; background: var(--primary-light, #f8fafc); font-weight: 600; font-size: 13px; padding: 8px 15px; border-bottom: 1px solid #e2e8f0; }
.section-heading { text-align: center; font-size: 24px; font-weight: 600; color: #1e293b; margin: 24px 0 16px 0; }
.section-heading::after { content: ''; display: block; width: 55px; height: 2px; background: var(--primary); margin: 8px auto 0 auto; }

/* Mobile Category Drawer */
.cat-drawer-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 998; }
.cat-drawer { position: fixed; top: 0; left: -300px; width: 280px; height: 100%; background: #fff; z-index: 999; transition: 0.3s; padding: 22px; box-shadow: 5px 0 25px rgba(0,0,0,0.1); overflow-y: auto; }
.cat-drawer.open { left: 0; }
.cat-drawer-backdrop.open { display: block; }
.cat-list { list-style: none; padding: 0; margin: 15px 0; }
.cat-list li a { display: block; padding: 12px 10px; border-bottom: 1px solid #f1f5f9; color: #334155; font-weight: 600; border-radius: 6px; }
.cat-list li a:hover { background: #f8fafc; color: var(--primary); }
.cat-list .sub-link { padding-left: 22px; font-size: 13px; color: #64748b; font-weight: 500; }

/* Startseiten Touch-Swipe Slider & Produkt-Grid */
.slider-outer-shell { position: relative; margin: 20px 0 40px 0; }
.swipe-wrapper {
    position: relative;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    padding: 4px 2px 12px 2px;
}
.swipe-wrapper.is-dragging { cursor: grabbing; }
.swipe-wrapper::-webkit-scrollbar { display: none; }

.slider-nav-btn {
    position: absolute;
    top: 44%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.15s;
}
.slider-nav-btn:hover { background: var(--primary); color: var(--on-primary, #fff); border-color: var(--primary); }
.slider-nav-btn.prev { left: -10px; }
.slider-nav-btn.next { right: -10px; }
@media(max-width: 768px) {
    .slider-nav-btn { width: 34px; height: 34px; font-size: 15px; }
    .slider-nav-btn.prev { left: -4px; }
    .slider-nav-btn.next { right: -4px; }
}

.product-row-swipe {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 18px;
    width: max-content;
}
.product-row-swipe .product-card {
    flex: 0 0 240px;
    width: 240px;
    max-width: 240px;
}
@media(max-width: 768px) {
    .product-row-swipe { gap: 12px; }
    .product-row-swipe .product-card {
        flex: 0 0 175px;
        width: 175px;
        max-width: 175px;
    }
}

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 250px)); justify-content: center; gap: 20px; margin: 20px 0 40px 0; }
@media(max-width: 768px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.product-card { border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.07); }
.product-card img { width: 100%; height: 220px; aspect-ratio: 1/1; object-fit: cover; background: #f8fafc; display: block; pointer-events: none; }
@media(max-width: 768px) { .product-card img { height: 165px; } }
.product-card-body { padding: 14px; text-align: center; display: flex; flex-direction: column; flex-grow: 1; }
.stars { color: #f59e0b; font-size: 13px; margin-bottom: 6px; letter-spacing: 2px; }
.product-card-title { font-size: 14px; font-weight: 600; color: #1e293b; margin: 0 0 10px 0; line-height: 1.4; }
.product-card-price { font-size: 15px; font-weight: 700; color: var(--primary); margin-top: auto; margin-bottom: 10px; }
.btn-card-black { background: #111827; color: #fff !important; padding: 8px 14px; font-size: 12px; font-weight: 600; border-radius: 6px; display: inline-block; align-self: center; transition: 0.15s; }
.btn-card-black:hover { background: var(--primary); color: var(--on-primary, #fff) !important; }

/* Product Detail Page & Lightbox */
.product-detail { display: flex; gap: 35px; margin: 30px 0; flex-wrap: wrap; }
.product-gallery { flex: 1; min-width: 290px; max-width: 500px; }
.main-img-box { position: relative; border: 1px solid #e2e8f0; border-radius: 10px; padding: 15px; text-align: center; background: #fff; touch-action: pan-y; user-select: none; }
.main-img-box img { max-width: 100%; max-height: 420px; object-fit: contain; cursor: zoom-in; display: block; margin: 0 auto; }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(65px, 1fr)); gap: 10px; margin-top: 12px; }
.thumb-grid img { width: 100%; height: 65px; aspect-ratio: 1/1; object-fit: cover; border: 2px solid #cbd5e1; border-radius: 8px; padding: 2px; cursor: pointer; transition: 0.15s; }
.thumb-grid img:hover, .thumb-grid img.active-thumb { border-color: var(--primary); }
.product-info { flex: 1.1; min-width: 290px; }
.product-title { font-size: 24px; color: #0f172a; font-weight: 700; margin: 0 0 10px 0; line-height: 1.3; }
.product-price-large { font-size: 26px; color: var(--primary); font-weight: 800; padding: 12px 0; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; margin: 12px 0; }
.stock-delivery-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; padding: 6px 12px; border-radius: 6px; margin-bottom: 12px; }
.stock-dot { width: 8px; height: 8px; background: #16a34a; border-radius: 50%; display: inline-block; }
.qty-cart-row { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.qty-box { display: flex; align-items: center; border: 1px solid #cbd5e1; border-radius: 6px; overflow: hidden; background: #fff; }
.qty-box button { background: #f8fafc; border: none; width: 38px; height: 42px; font-size: 18px; font-weight: bold; cursor: pointer; color: #0f172a; }
.qty-box button:hover { background: #e2e8f0; }
.qty-box input { width: 55px; height: 42px; text-align: center; border: none; border-left: 1px solid #cbd5e1; border-right: 1px solid #cbd5e1; font-weight: 700; font-size: 15px; }
.btn-primary { background: var(--primary); color: var(--on-primary, #fff) !important; border: none; padding: 12px 22px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-align: center; transition: 0.15s; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-danger { background: #dc2626; color: #fff !important; border: none; padding: 9px 14px; border-radius: 6px; cursor: pointer; }
.tab-btn { width: 100%; padding: 11px; border: 1px solid #cbd5e1; background: #fff; color: #334155; cursor: pointer; border-radius: 8px; font-weight: 600; transition: 0.2s; text-align: left; }
.tab-btn.active { background: var(--primary); color: var(--on-primary, #fff); border-color: var(--primary); }

/* Trust Badges */
.trust-badges-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-top: 18px; padding: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 12.5px; color: #334155; font-weight: 600; }
.trust-badge-item { display: flex; align-items: center; gap: 6px; }

/* Lightbox Modal */
.lightbox-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 99999; align-items: center; justify-content: center; touch-action: none; }
.lightbox-modal.open { display: flex; }
.lightbox-modal img { max-width: 92%; max-height: 88vh; object-fit: contain; border-radius: 4px; user-select: none; }
.lb-close { position: absolute; top: 20px; right: 28px; color: #fff; font-size: 38px; cursor: pointer; font-weight: bold; z-index: 10; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.18); color: #fff; border: none; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; cursor: pointer; z-index: 10; }
.lb-arrow:hover { background: var(--primary); color: var(--on-primary, #fff); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* Responsive Tables & Sauberer Mobile-Warenkorb */
.shop-table { width: 100%; border-collapse: collapse; margin: 15px 0; border: 1px solid #e2e8f0; font-size: 14px; background: #fff; }
.shop-table th, .shop-table td { border: 1px solid #e2e8f0; padding: 12px; text-align: left; vertical-align: middle; }
.shop-table th { background: #f8fafc; color: #475569; font-weight: 600; }
@media(max-width: 768px) {
    .cart-responsive-table { border: none; background: transparent; }
    .cart-responsive-table thead { display: none; }
    .cart-responsive-table, .cart-responsive-table tbody, .cart-responsive-table tr, .cart-responsive-table td { display: block; width: 100%; }
    .cart-responsive-table tr { border: 1px solid #cbd5e1; border-radius: 10px; margin-bottom: 16px; padding: 14px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.03); }
    .cart-responsive-table td { border: none; border-bottom: 1px solid #f1f5f9; padding: 10px 0; display: flex; justify-content: space-between; align-items: center; text-align: right !important; gap: 12px; }
    .cart-responsive-table td:last-child { border-bottom: none; padding-bottom: 2px; }
    .cart-responsive-table td::before { content: attr(data-label); font-weight: 600; color: #475569; text-align: left; flex-shrink: 0; }
}

/* Checkout */
.checkout-grid { display: flex; gap: 25px; flex-wrap: wrap; margin: 25px 0; }
.checkout-col-left { flex: 1; min-width: 290px; }
.checkout-col-right { flex: 1.2; min-width: 290px; display: flex; flex-direction: column; gap: 20px; }
.checkout-panel { border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 2px 6px rgba(15,23,42,0.02); }
.checkout-panel-head { background: #f8fafc; padding: 12px 18px; border-bottom: 1px solid #e2e8f0; font-size: 16px; color: #0f172a; font-weight: 700; }
.checkout-panel-body { padding: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 14px; }
@media(max-width: 650px) { .form-row-2 { grid-template-columns: 1fr; } }
.form-label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 5px; }
.form-label span { color: #dc2626; }
.form-control { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; background: #fff; transition: border-color 0.15s; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,153,184,0.1); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

/* Preview Grid (92x92px) */
.preview-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.preview-item { position: relative; width: 92px !important; height: 92px !important; border: 2px solid #cbd5e1; border-radius: 8px; overflow: hidden; background: #f8fafc; cursor: grab; flex-shrink: 0; }
.preview-item img { width: 100% !important; height: 100% !important; object-fit: cover !important; pointer-events: none; image-orientation: from-image; }
.preview-item .remove-btn { position: absolute; top: 3px; right: 3px; background: rgba(220,38,38,0.9); color: #fff; border: none; width: 20px; height: 20px; border-radius: 50%; font-size: 12px; cursor: pointer; line-height: 18px; text-align: center; }
.preview-item .main-badge { position: absolute; bottom: 0; left: 0; right: 0; background: var(--primary); color: var(--on-primary, #fff); font-size: 10px; text-align: center; padding: 2px 0; font-weight: bold; }

#backToTopBtn { display: none; position: fixed; bottom: 75px; right: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: var(--on-primary, #fff); border: none; font-size: 20px; font-weight: bold; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 940; }
@media(min-width: 769px) { #backToTopBtn { bottom: 28px; } }

.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #e2e8f0; z-index: 950; padding: 8px 0; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); }
@media(max-width: 768px) { .mobile-bottom-nav { display: flex; justify-content: space-around; align-items: center; } }
.mobile-nav-item { display: flex; flex-direction: column; align-items: center; font-size: 12px; color: #334155; text-decoration: none; position: relative; }
.mobile-nav-item .icon { font-size: 22px; color: var(--primary); margin-bottom: 2px; }

.site-footer { background: #f8fafc; border-top: 1px solid #e2e8f0; margin-top: auto; padding: 35px 0 25px 0; font-size: 14px; color: #64748b; }
.btn-widerruf { display: inline-block; background: #fff; color: #dc2626 !important; border: 1px solid #fecaca; padding: 8px 16px; border-radius: 6px; font-weight: 600; font-size: 13px; margin-top: 8px; }
.pay-pill { display: inline-block; background: #fff; border: 1px solid #cbd5e1; color: #334155; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 5px; margin: 4px 4px 0 0; }