/* ============================================================
   Shop im neuen Deseining-Design (Apple Liquid Glass)
   Wird NACH css/style.css und liquid-glass.css geladen.
   Nur Aussehen – die Shop-Logik (js/app.js) bleibt unverändert.
   ============================================================ */

/* Farben: aus Türkis wird Apple-Blau, Rundungen größer (konzentrisch) */
:root{
  --teal-900:#0a3d91;--teal-800:#0055d4;--teal-700:#0064e0;--teal-600:#007aff;--teal-500:#0a84ff;
  --teal-400:#409cff;--teal-100:#dbeaff;--teal-50:#f0f6ff;
  --lime-500:#34c759;--lime-400:#30d158;--lime-300:#7ee29a;--lime-100:#e3f9e8;
  --radius:16px;--radius-sm:12px;--radius-lg:28px;
}
body{background:#fff!important;color:var(--label)}
.page-main.d-main{max-width:1280px;padding:8px 16px 24px}

/* Shop-Kopfleiste: Glas-Kapsel unter der Deseining-Leiste (nicht mehr klebend) */
.site-header{position:relative;top:auto;z-index:20;background:transparent;color:var(--label);box-shadow:none;max-width:1280px;margin:0 auto;padding:0 16px}
.header-inner{border-radius:28px;background:rgba(255,255,255,.6);box-shadow:0 8px 28px rgba(0,0,0,.1),inset 0 1px 0 rgba(255,255,255,.8);
  padding:10px 14px;flex-wrap:wrap;gap:10px}
.logo{color:var(--label)!important;font-weight:800}
.logo span{color:var(--blue)!important}
/* Ansichten-Umschalter wie ein Segmented Control */
.header-nav{background:rgba(118,118,128,.14);border-radius:999px;padding:4px;gap:2px}
.nav-btn{border-radius:999px!important;color:var(--label2)!important;background:transparent!important;font-weight:600}
.nav-btn.active{background:#fff!important;color:#000!important;box-shadow:0 3px 8px rgba(0,0,0,.12)}
.nav-btn:hover{transform:none!important}
.balance-chip{background:rgba(118,118,128,.14);color:var(--label);border-radius:999px}
/* Warenkorb / Nachrichten = runde Glas-Knöpfe mit Zahl */
.cart-btn{width:44px;height:44px;border-radius:50%!important;background:rgba(255,255,255,.7)!important;color:var(--label)!important;
  box-shadow:0 4px 14px rgba(0,0,0,.14),inset 0 1px 0 rgba(255,255,255,.75)}
.cart-badge{background:var(--pink)!important;color:#fff!important}
.btn-login,.btn-register,.btn-primary,.btn-secondary,.btn-danger,.btn-cancel,.btn-add-cart{border-radius:999px!important;font-weight:600;border:0!important}
.btn-login,.btn-secondary{background:rgba(255,255,255,.7)!important;color:var(--label)!important;box-shadow:0 4px 14px rgba(0,0,0,.12)}
.btn-register,.btn-primary,.btn-add-cart{background:var(--blue)!important;color:#fff!important}
.btn-add-cart.in-cart{background:var(--green)!important}
.btn-danger,.btn-cancel{background:rgba(255,59,48,.12)!important;color:var(--red)!important}
.user-avatar-btn{background:var(--blue)!important;color:#fff!important}
.user-dropdown{border-radius:24px!important;background:rgba(255,255,255,.92)!important;box-shadow:0 18px 50px rgba(0,0,0,.2)!important;border:0!important;padding:8px}
.dropdown-item{border-radius:16px}

/* Inhalte */
.section-title{font-size:34px!important;letter-spacing:-.02em;color:var(--label)!important;text-shadow:none!important}
.section-sub{color:var(--label3)!important;font-weight:500!important;text-shadow:none!important}
.filter-tab{border-radius:999px!important;background:rgba(118,118,128,.12)!important;color:var(--label2)!important;border:0!important;font-weight:600}
.filter-tab.active{background:var(--blue)!important;color:#fff!important}
.filter-tab:hover{transform:none!important}
.product-card,.profile-card,.order-card{border-radius:28px!important;border:0!important;background:rgba(255,255,255,.6)!important;
  box-shadow:0 8px 28px rgba(0,0,0,.1),inset 0 1px 0 rgba(255,255,255,.8)!important}
.product-card:hover{transform:translateY(-4px)!important}
.product-card-header{flex-direction:column;align-items:flex-start;gap:8px}
.product-badges{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;max-width:100%}
.product-badge{border-radius:999px!important}
.form-input{border-radius:14px!important;border:1px solid rgba(60,60,67,.18)!important;background:rgba(255,255,255,.8)!important}
.form-input:focus{border-color:var(--blue)!important;box-shadow:0 0 0 3px rgba(0,122,255,.2)!important}

/* Fenster (Anmelden, Warenkorb, Kasse, Nachrichten) = Glas-Blatt von unten (wie Apple „Sheet“) */
.modal-overlay{background:rgba(0,0,0,.25)!important;z-index:2000!important;align-items:flex-end!important;padding:8px!important}
.modal{border-radius:30px!important;background:rgba(255,255,255,.92)!important;box-shadow:0 -10px 40px rgba(0,0,0,.18)!important;
  animation:shopSheet .45s cubic-bezier(.32,.72,0,1) both!important;margin:0 auto}
@keyframes shopSheet{from{transform:translateY(100%)}}
@media (min-width:760px){.modal-overlay{align-items:center!important}}
.modal-header{border-bottom:0!important}
.modal-close{border-radius:50%!important;background:rgba(118,118,128,.14)!important;width:36px;height:36px}
.toast{border-radius:999px!important;background:rgba(28,28,30,.85)!important}

/* Handy mit Seitenleiste (Ebene 0): Shop-Kopf mit ausblenden */
body[data-mode="phone"].side-visible:not(.side-deep) .site-header{visibility:hidden}

/* ============================================================
   DUNKELMODUS (Schalter oben rechts / Gerät) – nur Aussehen
   ============================================================ */
html[data-theme="dark"]{
  --white:#1c1c1e;--gray-900:#f2f2f7;--gray-700:#d1d1d6;--gray-500:#98989d;--gray-300:#48484a;--gray-100:#2c2c2e;--gray-50:#1c1c1e;
  --teal-100:#0a2a52;--teal-50:#0c1f3a;--lime-100:#12351d}
html[data-theme="dark"] body{background:var(--bg)!important}
html[data-theme="dark"] .header-inner,
html[data-theme="dark"] .product-card,html[data-theme="dark"] .profile-card,html[data-theme="dark"] .order-card{
  background:rgba(38,40,48,.62)!important;box-shadow:0 8px 28px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.1)!important}
html[data-theme="dark"] .nav-btn.active{background:rgba(255,255,255,.18)!important;color:#fff!important}
html[data-theme="dark"] .header-nav,html[data-theme="dark"] .balance-chip,html[data-theme="dark"] .filter-tab{background:rgba(255,255,255,.1)!important}
html[data-theme="dark"] .cart-btn,html[data-theme="dark"] .btn-login,html[data-theme="dark"] .btn-secondary{background:rgba(255,255,255,.12)!important;color:var(--label)!important}
html[data-theme="dark"] .user-dropdown,html[data-theme="dark"] .modal{background:rgba(30,32,38,.95)!important}
html[data-theme="dark"] .form-input{background:rgba(255,255,255,.07)!important;border-color:rgba(255,255,255,.16)!important;color:var(--label)!important}
html[data-theme="dark"] .modal-close{background:rgba(255,255,255,.14)!important;color:var(--label)!important}
html[data-theme="dark"] .product-card *,html[data-theme="dark"] .modal *,html[data-theme="dark"] .profile-card *,html[data-theme="dark"] .order-card *{border-color:rgba(255,255,255,.1)}
html[data-theme="dark"] .dropdown-item{color:var(--label)}
html[data-theme="dark"] .dropdown-item:hover{background:rgba(255,255,255,.08)}

/* ============================================================
   Apple-Glas-Auswahl (mit Linse) für „Produkte · Meine Bestellungen · Profil“ und die Filter
   – gleiche Technik wie die untere Leiste (liquid-glass.js), die Shop-Logik bleibt gleich
   ============================================================ */
#shop-nav{display:block!important;flex:none;width:min(420px,100%);height:44px;padding:0!important;gap:0;margin:0;background:rgba(118,118,128,.16)!important;border-radius:999px}
#shop-nav .nav-btn,#shop-filter .filter-tab{background:none!important;box-shadow:none!important;border:0!important;padding:0 6px!important;transform:none!important;
  font:600 14px var(--font)!important;color:#3a3a3c!important;border-radius:999px!important;justify-content:center;text-align:center}
#shop-nav .seg-copy .nav-btn,#shop-filter .seg-copy .filter-tab{color:#000!important}
html[data-theme="dark"] #shop-nav .nav-btn,html[data-theme="dark"] #shop-filter .filter-tab{color:#d1d1d6!important}
html[data-theme="dark"] #shop-nav .seg-copy .nav-btn,html[data-theme="dark"] #shop-filter .seg-copy .filter-tab{color:#fff!important}
html[data-theme="dark"] #shop-nav{background:rgba(255,255,255,.1)!important}
@media (max-width:768px){#shop-nav{display:block!important;width:100%;order:5}}
.shop-filter-scroll{overflow-x:auto;scrollbar-width:none;padding:4px 2px;margin:0 0 22px}
.shop-filter-scroll::-webkit-scrollbar{display:none}
#shop-filter{display:block!important;width:calc(6 * 122px + 8px);min-width:100%;height:44px;margin:0!important;gap:0;touch-action:pan-x}
/* „Bestellen“ & Co.: Apple-Knopf mit Druck-Effekt (wächst, Licht am Finger) */
.btn-add-cart.d-btn{width:100%;height:42px;font-size:15px}
/* Kopf darf mitwachsen, wenn die Auswahl auf dem Handy in eine eigene Zeile rutscht */
.header-inner{height:auto!important;min-height:64px}
/* Dunkelmodus: farbige Abzeichen + Preise hell und kräftig, damit man sie lesen kann */
html[data-theme="dark"] .product-badge.rätsel,html[data-theme="dark"] .product-badge.kreuzworträtsel{background:rgba(10,132,255,.22)!important;color:#7ab8ff!important}
html[data-theme="dark"] .product-badge.apo{background:rgba(48,209,88,.2)!important;color:#7ee29a!important}
html[data-theme="dark"] .product-badge.sets{background:rgba(255,214,10,.18)!important;color:#ffe066!important}
html[data-theme="dark"] .product-badge.taschenrätsel{background:rgba(255,55,95,.2)!important;color:#ff8fab!important}
html[data-theme="dark"] .product-badge.neu{background:rgba(191,90,242,.22)!important;color:#d9a6ff!important}
html[data-theme="dark"] .product-badge.sold-out-badge{background:rgba(255,69,58,.2)!important;color:#ff8a80!important}
html[data-theme="dark"] .price-coins{color:#ffd60a!important}
html[data-theme="dark"] .price-bills{color:#7ee29a!important}
html[data-theme="dark"] .sold-out-card .product-name{color:var(--label3)!important}
