:root {
  --bg: #0a0a0a;
  --card: #141414;
  --border: #262626;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --accent: #39ff14;
  --danger: #ff3b30;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 4%;
  border-bottom: 1px solid var(--border);
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 1;
}

.header-logo {
  height: 100px;
  width: auto;
  max-width: 100%;
  display: block;
  mix-blend-mode: lighten;
}

.badge-top {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Hauptbereich */
.container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 32px 4%;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.media-box {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.main-media {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.thumb-row {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: #0f0f0f;
}

.thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border);
  opacity: 0.75;
}

.thumb:hover {
  opacity: 1;
  border-color: var(--accent);
}

.soldout-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  background: var(--danger);
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 5px;
  letter-spacing: 1px;
}

.edition-tag {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1.2px;
  display: block;
}

h1 {
  font-size: 2rem;
  font-weight: 900;
  margin: 6px 0 12px;
  line-height: 1.15;
}

h2 {
  font-size: 1.35rem;
  font-weight: 800;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.stock-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 18px;
}

.stock-bar.empty {
  background: rgba(255, 59, 48, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.price-box {
  margin-bottom: 18px;
}

.price {
  font-size: 1.7rem;
  font-weight: 900;
  display: block;
}

.shipping {
  font-size: 0.78rem;
  color: var(--muted);
}

.btn-buy {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: #000;
  font-weight: 900;
  font-size: 1rem;
  padding: 15px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn-buy:hover {
  transform: translateY(-2px);
}

.btn-buy.sold-out {
  background: #262626;
  color: #777;
  cursor: not-allowed;
  transform: none;
}

.btn-buy.coming-soon {
  background: #1f1f1f;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.tiktok-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Archiv */
.archive-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: 1.05rem;
  letter-spacing: 1px;
  margin-bottom: 18px;
  color: var(--muted);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.archive-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.archive-img-wrap {
  position: relative;
}

.archive-img-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.badge-soldout, .badge-rest {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 7px;
  border-radius: 4px;
}

.badge-soldout {
  background: var(--danger);
  color: #fff;
}

.badge-rest {
  background: var(--accent);
  color: #000;
}

.archive-info {
  padding: 12px;
}

.edition-small {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
}

.archive-info h3 {
  font-size: 0.98rem;
  margin: 4px 0 10px;
}

.archive-status-out {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}

.btn-small {
  display: inline-block;
  background: var(--text);
  color: #000;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 7px 12px;
  border-radius: 6px;
  text-decoration: none;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 4%;
  text-align: center;
  margin-top: 44px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
}

.footer-links a:hover {
  color: var(--text);
}

.copyright {
  font-size: 0.75rem;
  color: #555;
}

/* =========================================
   HANDY-OPTIMIERUNG (SMARTPHONES BIS 768PX)
   ========================================= */
@media (max-width: 768px) {
  .header {
    padding: 10px 4%;
  }

  .header-logo {
    height: 36px;
    max-width: 54vw;
    object-fit: contain;
    object-position: left;
  }

  .badge-top {
    font-size: 0.65rem;
    padding: 4px 7px;
  }

  .container {
    padding: 18px 4%;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .edition-tag {
    font-size: 0.72rem;
  }

  h1 {
    font-size: 1.45rem;
    margin: 4px 0 8px;
  }

  .subtitle {
    font-size: 0.86rem;
    margin-bottom: 14px;
  }

  .stock-bar {
    font-size: 0.75rem;
    padding: 7px 10px;
    margin-bottom: 14px;
    width: 100%;
  }

  .price-box {
    margin-bottom: 14px;
  }

  .price {
    font-size: 1.45rem;
  }

  .btn-buy {
    font-size: 0.92rem;
    padding: 13px;
  }

  .tiktok-note {
    font-size: 0.76rem;
  }

  .archive-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
