:root {
  --bg: #fbfbfe;
  --bg-alt: #f2eefc;
  --surface: #ffffff;
  --text: #16131f;
  --text-dim: #635f77;
  --primary: #6d28ff;
  --primary-hover: #5a1de0;
  --primary-soft: #efe8ff;
  --accent: #06d6a0;
  --pink: #ff3d81;
  --warn: #ff6b6b;
  --border: #e7e3f3;
  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1160px;
  --shadow: 0 12px 32px -12px rgba(109, 40, 255, 0.18);
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.cart-open { overflow: hidden; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; }
img { max-width: 100%; display: block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  background: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.05); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--primary); }

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-count.is-visible { display: flex; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 251, 254, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px -8px rgba(22, 19, 31, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--text);
}
.logo span { color: var(--primary); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

@media (max-width: 800px) {
  .main-nav {
    position: fixed;
    top: 71px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
  }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: flex; }
}

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 76px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 680px; }
.eyebrow {
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  margin: 0 0 20px;
  line-height: 1.08;
}
.highlight {
  background: linear-gradient(135deg, var(--primary), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--text-dim);
  font-size: 1.08rem;
  margin: 0 0 32px;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-glow {
  position: absolute;
  top: -140px;
  right: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 40, 255, 0.22), transparent 70%);
  z-index: 1;
  pointer-events: none;
}
.hero-glow-2 {
  top: 80px;
  right: 220px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(6, 214, 160, 0.22), transparent 70%);
}

/* Sections */
.section { padding: 64px 0; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 8px;
}
.section-sub {
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 0 32px;
}

/* Trend Kategorien */
.trends-section { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.category-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  font-family: var(--font-body);
}
.category-tile:hover {
  border-color: var(--tint, var(--primary));
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.category-emoji {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: color-mix(in srgb, var(--tint, var(--primary)) 16%, transparent);
}
.category-title { font-weight: 600; font-size: 0.95rem; color: var(--text); }

/* Shop */
.shop-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.shop-tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all .15s ease;
}
.shop-tab:hover { border-color: var(--primary); color: var(--primary); }
.shop-tab.is-active {
  background: linear-gradient(135deg, var(--primary), var(--pink));
  border-color: transparent;
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.product-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card-link { text-decoration: none; color: inherit; }
.product-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
  display: block;
}
.product-card-media img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: var(--bg-alt);
}
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}
.badge-soldout { background: var(--text-dim); }
.product-card-body { padding: 16px 16px 4px; flex: 1; }
.product-card-title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 6px;
}
.product-card-price { margin: 0; color: var(--primary); font-weight: 700; }
.product-card-add { margin: 12px 16px 16px; }

.product-card-skeleton {
  aspect-ratio: 3 / 4;
  background: linear-gradient(100deg, var(--bg-alt) 30%, var(--surface) 50%, var(--bg-alt) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.shop-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
}
.shop-placeholder code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Request section */
.request-section { background: var(--bg-alt); border-top: 1px solid var(--border); }
.request-inner { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) {
  .request-inner { grid-template-columns: 1fr 1fr; align-items: start; }
}
.request-steps { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 14px; }
.request-steps li { display: flex; align-items: center; gap: 14px; color: var(--text-dim); }
.request-steps span {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  color: #fff; font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.request-note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.request-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.request-form label { font-size: 0.85rem; font-weight: 600; margin-top: 14px; color: var(--text-dim); }
.request-form input[type="text"],
.request-form input[type="email"],
.request-form input[type="tel"],
.request-form textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  width: 100%;
}
.request-form input[type="file"] { color: var(--text-dim); font-size: 0.85rem; }
.request-form input:focus, .request-form textarea:focus { outline: none; border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.form-col { display: flex; flex-direction: column; }
.file-hint { margin: 4px 0 0; font-size: 0.75rem; color: var(--text-dim); }
.request-form button { margin-top: 24px; }
.form-status { font-size: 0.9rem; min-height: 1.2em; }
.form-status.success { color: var(--accent); font-weight: 600; }
.form-status.error { color: var(--warn); font-weight: 600; }

/* Cart drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 19, 31, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 90;
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100vw);
  background: var(--surface);
  box-shadow: -12px 0 40px rgba(22, 19, 31, 0.15);
  transform: translateX(100%);
  transition: transform .25s ease;
  z-index: 91;
  display: flex;
  flex-direction: column;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.cart-drawer-header h2 { margin: 0; font-size: 1.2rem; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-empty { color: var(--text-dim); text-align: center; margin-top: 40px; }
.cart-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: start; }
.cart-line-thumb {
  width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg-alt);
}
.cart-line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-thumb-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.cart-line-title { margin: 0; font-weight: 600; font-size: 0.92rem; }
.cart-line-variant { margin: 2px 0 0; font-size: 0.78rem; color: var(--text-dim); }
.cart-line-controls { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.cart-line-remove { background: none; border: none; color: var(--text-dim); font-size: 0.78rem; cursor: pointer; text-decoration: underline; padding: 0; }
.cart-line-remove:hover { color: var(--warn); }
.cart-line-price { margin: 0; font-weight: 700; font-size: 0.9rem; white-space: nowrap; }

.qty-stepper { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 999px; padding: 4px 6px; }
.qty-btn { width: 24px; height: 24px; border-radius: 50%; border: none; background: var(--bg-alt); cursor: pointer; font-size: 1rem; line-height: 1; }
.qty-btn:hover { background: var(--primary-soft); }
.qty-value { min-width: 16px; text-align: center; font-weight: 600; font-size: 0.9rem; }

.cart-drawer-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-subtotal-row { display: flex; justify-content: space-between; margin-bottom: 14px; font-weight: 700; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-tagline { color: var(--text-dim); font-size: 0.9rem; margin: 8px 0 0; }
.footer-contact { text-align: right; }
.footer-contact a { color: var(--primary); text-decoration: none; font-weight: 600; }
.footer-note { color: var(--text-dim); font-size: 0.8rem; margin: 6px 0 0; }
@media (max-width: 560px) { .footer-contact { text-align: left; } }

.footer-legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.82rem;
}
.footer-legal a:hover { color: var(--primary); }

/* Rechtstexte (Impressum, Datenschutz, Widerruf) */
.legal-section { padding: 48px 0 80px; }
.legal-content { max-width: 760px; }
.legal-content h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 28px; }
.legal-content h2 { font-size: 1.25rem; margin: 40px 0 12px; }
.legal-content h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal-content p { color: var(--text-dim); margin: 0 0 14px; }
.legal-content ul { color: var(--text-dim); margin: 0 0 14px; padding-left: 22px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--primary); text-decoration: underline; }
.legal-content strong { color: var(--text); }
.legal-updated { color: var(--text-dim); font-size: 0.82rem; margin-bottom: 32px; }

/* Product page */
.back-link { display: inline-block; margin-bottom: 24px; color: var(--text-dim); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.back-link:hover { color: var(--primary); }
.product-page { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 860px) { .product-page { grid-template-columns: 1.1fr 1fr; } }

.product-gallery-main {
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb-btn {
  width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--bg-alt);
}
.gallery-thumb-btn.is-active { border-color: var(--primary); }
.gallery-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 10px; }
.product-price { font-size: 1.4rem; font-weight: 700; color: var(--primary); margin: 0 0 24px; }

.option-group { margin-bottom: 20px; }
.option-label { font-size: 0.85rem; font-weight: 600; color: var(--text-dim); margin: 0 0 10px; }
.option-values { display: flex; gap: 8px; flex-wrap: wrap; }
.option-value {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; font-size: 0.88rem; font-weight: 600;
}
.option-value:hover { border-color: var(--primary); }
.option-value.is-selected { background: linear-gradient(135deg, var(--primary), var(--pink)); border-color: transparent; color: #fff; }

.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }

.product-description { margin-top: 28px; color: var(--text-dim); font-size: 0.95rem; line-height: 1.7; }
.product-description :first-child { margin-top: 0; }

.related-section { border-top: 1px solid var(--border); }

@media (max-width: 560px) {
  .footer-contact { text-align: left; }
  .hero { padding: 64px 0 56px; }
}
