:root{--bg:#0f1115;--panel:#171a21;--panel2:#1f2430;--text:#f5f5f5;--muted:#b8beca;--line:#303746;--accent:#e11d2e;--accent2:#ff3045;--ok:#1f8f4d}*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#11141a,#0b0d11);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;line-height:1.55}.page{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:32px 0}.narrow{width:min(820px,calc(100% - 32px))}.shop-header{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:28px}.shop-header h1{margin:0;font-size:clamp(2rem,4vw,4rem);letter-spacing:-.04em}.shop-header p{margin:.4rem 0 0;color:var(--muted)}.cart-button{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:999px;padding:12px 18px;cursor:pointer;font-weight:700}.category-filter{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 24px}.category-filter button{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:999px;padding:10px 16px;font-weight:800;cursor:pointer}.category-filter button.active{background:linear-gradient(135deg,var(--accent),var(--accent2));border-color:transparent}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px}.grid.filtered{grid-template-columns:repeat(auto-fit,minmax(300px,360px))}.product{background:rgba(23,26,33,.92);border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.25)}.slideshow{position:relative;aspect-ratio:4/3;background:#08090c;overflow:hidden}.slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .25s ease}.slide.active{opacity:1}.slide-nav{position:absolute;inset:auto 12px 12px auto;display:flex;gap:8px}.slide-nav button,.qty button{border:0;border-radius:999px;padding:8px 12px;background:rgba(0,0,0,.68);color:white;cursor:pointer}.product-body{padding:22px}.category-badge{display:inline-flex;margin-bottom:10px;border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:4px 10px;color:var(--muted);font-size:.78rem;font-weight:800;letter-spacing:.04em}.product h2{margin:0 0 8px;font-size:1.45rem}.price{font-weight:800;color:white;margin:0 0 16px}.description{color:#e5e7eb}.description ul{padding-left:1.2rem}.product-disclaimer{margin-top:16px;padding:14px;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:rgba(225,29,46,.10);color:#f1f3f7;font-size:.95rem}.product-disclaimer strong{display:block;margin-bottom:4px}.legal-box{display:grid;gap:10px;padding:14px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.035)}.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:18px}.qty{display:flex;align-items:center;gap:10px;background:var(--panel2);border:1px solid var(--line);border-radius:999px;padding:6px 10px}.primary{border:0;background:linear-gradient(135deg,var(--accent),var(--accent2));color:white;border-radius:999px;padding:12px 18px;font-weight:800;cursor:pointer}.secondary{border:1px solid var(--line);background:var(--panel2);color:white;border-radius:999px;padding:10px 14px;cursor:pointer}.drawer{position:fixed;inset:0;background:rgba(0,0,0,.55);display:none;z-index:50}.drawer.open{display:block}.cart{position:absolute;right:0;top:0;min-height:100%;width:min(520px,100%);background:#11141a;border-left:1px solid var(--line);padding:24px;overflow:auto}.cart-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.cart-item{display:grid;grid-template-columns:72px 1fr auto;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:14px 0}.cart-item img{width:72px;height:72px;object-fit:cover;border-radius:14px}.cart-item h3{font-size:1rem;margin:0}.cart-item p{margin:2px 0;color:var(--muted);font-size:.9rem}.form{display:grid;gap:12px;margin-top:20px}.form input,.form textarea{width:100%;border:1px solid var(--line);border-radius:14px;background:#0b0d11;color:white;padding:12px;font:inherit}.form textarea{min-height:110px}.notice{color:var(--muted);font-size:.92rem}.success{color:#78d99a}.error{color:#ff8b95}.footer{margin-top:42px;padding-top:18px;border-top:1px solid var(--line);display:flex;gap:16px;flex-wrap:wrap;color:var(--muted)}a{color:white}.backlink{display:inline-block;margin-bottom:24px;color:var(--muted)}@media(max-width:700px){.shop-header{align-items:flex-start;flex-direction:column}.cart-button{width:100%}.cart{width:100%}}

.legal-box .notice{display:flex;align-items:flex-start;gap:10px;text-align:left;line-height:1.45}
.legal-box .notice input{width:auto;min-width:18px;margin:.22rem 0 0 0;flex:0 0 auto}
.legal-card{background:rgba(23,26,33,.92);border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:0 20px 60px rgba(0,0,0,.25)}
.legal-card h1{margin-top:0;font-size:clamp(2rem,4vw,3.2rem);letter-spacing:-.035em}
.legal-card h2{margin-top:1.6rem;color:#fff}
.legal-card p{color:#e5e7eb}
.form-lines{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--muted);overflow-wrap:anywhere}

.product[hidden]{display:none}

.legal-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.legal-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  text-align: left;
}

.legal-item input {
  margin-top: 4px;
}

.legal-item span {
  line-height: 1.45;
}

.legal-item a {
  white-space: nowrap;
}
.success-message,
.error-message {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
}

.success-message {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.error-message {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
}


.back-home{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 12px;
  color:var(--muted);
  text-decoration:none;
  font-weight:800;
}
.back-home:hover{color:#fff}

.description-preview{
  position:relative;
  max-height:10.5rem;
  overflow:hidden;
}
.description-preview:not(.expanded)::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:3.2rem;
  background:linear-gradient(180deg,rgba(23,26,33,0),rgba(23,26,33,.98));
  pointer-events:none;
}
.description-preview.expanded{
  max-height:none;
}

.text-button{
  border:0;
  background:transparent;
  color:#fff;
  font-weight:800;
  padding:8px 0 0;
  cursor:pointer;
  text-decoration:underline;
}

.slideshow .slide{
  cursor:zoom-in;
}
.lightbox{
  position:fixed;
  inset:0;
  z-index:100;
  background:rgba(0,0,0,.86);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.lightbox[hidden]{
  display:none;
}
.lightbox img{
  max-width:min(1100px,96vw);
  max-height:90vh;
  object-fit:contain;
  border-radius:18px;
  box-shadow:0 24px 80px rgba(0,0,0,.55);
}
.lightbox-close{
  position:fixed;
  top:18px;
  right:18px;
  width:44px;
  height:44px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:999px;
  background:rgba(17,20,26,.9);
  color:#fff;
  font-size:32px;
  line-height:1;
  cursor:pointer;
}

@media(max-width:700px){
  .description-preview{max-height:9rem}
  .lightbox{padding:12px}
  .lightbox-close{top:12px;right:12px}
}

/* Warenkorb-Thumbnails: sichtbar auf Desktop, aber nicht vergrößerbar */
.cart-item img,
.cart-item img:hover,
.cart-item .cart-thumb,
.cart-item .cart-thumb:hover{
  cursor: default !important;
  pointer-events: none;
}

.cart-item img::before,
.cart-item img::after,
.cart-item .cart-thumb::before,
.cart-item .cart-thumb::after{
  display: none !important;
  content: none !important;
}

/* Fix: Warenkorb/Bestellformular im Overlay separat scrollbar machen */
.drawer.open{
  overflow:hidden;
}

.cart{
  height:100vh;
  height:100dvh;
  max-height:100vh;
  max-height:100dvh;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  padding-bottom:calc(24px + env(safe-area-inset-bottom));
}

.cart-head{
  position:sticky;
  top:0;
  z-index:2;
  background:#11141a;
  padding-bottom:12px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

@media(max-width:700px){
  .drawer{
    overflow:hidden;
  }

  .cart{
    position:fixed;
    inset:0;
    width:100%;
    height:100svh;
    max-height:100svh;
    padding:20px 16px calc(28px + env(safe-area-inset-bottom));
    border-left:0;
  }

  .cart-head{
    margin:-20px -16px 12px;
    padding:16px;
  }
}
