/* =========================================================
   BenToy – Horror Film Edition
   ---------------------------------------------------------
   Strukturierte & kommentierte Version
   → Original CSS bleibt erhalten
   → Zusätzlich ausführlich erklärt
========================================================= */


/* =========================================================
   1. ROOT VARIABLEN
   ---------------------------------------------------------
   Globale Farben & Werte für das komplette Design

   Vorteil:
   Farben müssen nur EINMAL geändert werden.
========================================================= */
:root {

  /* Hintergrundfarben */
  --bg: #0b0b0f;
  --surface: #14141a;

  /* Hauptfarbe */
  --primary: #ffffff;

  /* Textfarben */
  --text: #e8e8ec;
  --muted: #9a9aa3;

  /* Horror-Akzentfarben */
  --accent: #ff3c00;
  --accent-hover: #ff1f00;

  /* Rahmen */
  --border: rgba(255, 60, 0, 0.2);

  /* Standard Rundungen */
  --radius: 18px;
}


/* =========================================================
   2. RESET
   ---------------------------------------------------------
   Entfernt Standard-Abstände vom Browser

   Browser haben eigene Default-Abstände.
   Dieser Reset macht alles sauber & kontrollierbar.
========================================================= */
* {
  margin: 0;
  padding: 0;

  /* Macht Größenberechnung einfacher */
  box-sizing: border-box;
}


/* Seite mindestens volle Höhe */
html,
body {
  min-height: 100%;
}


/* =========================================================
   3. BODY / HAUPTLAYOUT
   ---------------------------------------------------------
   Grunddesign der gesamten Seite
========================================================= */
body {

  /* System-Schrift */
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  /* =====================================================
     HORROR BACKGROUND

     radial-gradient erzeugt kreisförmige Lichtflächen.

     Dadurch entsteht:
     → düstere Horror-Stimmung
     → Tiefeneffekt
     → leichtes rotes Glühen
  ===================================================== */
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(255,60,0,0.08),
      transparent 60%
    ),

    radial-gradient(
      circle at 80% 80%,
      rgba(120,0,0,0.15),
      transparent 60%
    ),

    var(--bg);

  color: var(--text);

  /* Zeilenhöhe verbessert Lesbarkeit */
  line-height: 1.65;
}


/* =========================================================
   4. HEADER
========================================================= */

/* Sticky Header */
.site-header {

  background: rgba(10, 10, 10, 0.95);

  /* Hintergrund wird unscharf */
  backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--border);

  /* =====================================================
     position: sticky

     Header bleibt oben kleben,
     wenn man scrollt.
  ===================================================== */
  position: sticky;

  top: 0;

  z-index: 1000;
}


/* Innerer Header Bereich */
.header-inner {

  max-width: 1200px;

  margin: 0 auto;

  padding: 1.2rem 1.4rem;

  /* =====================================================
     FLEXBOX

     Flexbox ordnet Elemente in einer Reihe an.

     Gut für:
     → Navigation
     → Header
     → Buttons
  ===================================================== */
  display: flex;

  align-items: center;

  gap: 1.2rem;

  /* Elemente umbrechen falls nötig */
  flex-wrap: wrap;
}


/* =========================================================
   5. LOGO
========================================================= */

.logo {

  position: relative;

  z-index: 1100;
}


/* Logo-Link */
.logo a {

  font-size: 1.9rem;

  font-weight: 900;

  color: var(--primary);

  text-decoration: none;

  letter-spacing: 0.05em;
}


/* Bildlogo */
.logo img.header-logo {

  height: 120px;

  border-radius: 50%;

  display: block;

  /* Horror Glow */
  box-shadow:
    0 12px 30px rgba(0,0,0,0.7),
    0 0 25px rgba(255,0,0,0.25);
}


/* =========================================================
   6. NAVIGATION
========================================================= */

/* Navigationsliste */
.main-nav ul {

  list-style: none;

  /* =====================================================
     FLEXBOX

     Navigation wird horizontal angeordnet.
  ===================================================== */
  display: flex;

  gap: 0.6rem;
}


/* Navigation Links */
.main-nav a {

  text-decoration: none;

  color: var(--text);

  padding: 0.45rem 0.8rem;

  border-radius: 999px;

  font-size: 0.9rem;
}


/* Hover Effekt */
.main-nav a:hover {

  background: rgba(255,60,0,0.2);

  color: var(--accent);
}


/* =========================================================
   7. USER NAVIGATION
   ---------------------------------------------------------
   Login / Account / Cart usw.
========================================================= */
.user-nav {

  /* Schiebt Bereich ganz nach rechts */
  margin-left: auto;

  display: flex;

  gap: 0.9rem;

  align-items: center;
}


.user-nav a,
.user-nav span {

  color: var(--text);

  font-size: 0.9rem;

  text-decoration: none;
}


.user-nav a:hover {
  text-decoration: underline;
}


/* =========================================================
   8. MAIN CONTENT
========================================================= */
main {

  max-width: 1200px;

  margin: 0 auto;

  padding: 4rem 1.2rem;

  min-height: 800px;
}


/* =========================================================
   9. HERO SECTION
========================================================= */
.hero {

  max-width: 820px;

  margin: 0 auto;

  padding: 3.5rem 2.5rem;

  text-align: center;

  background:
    linear-gradient(
      180deg,
      rgba(20,0,0,0.9),
      rgba(10,0,0,0.95)
    );

  border-radius: var(--radius);

  border: 1px solid var(--border);

  /* Horror Glow */
  box-shadow:
    0 0 80px rgba(255,0,0,0.15),
    inset 0 0 40px rgba(255,0,0,0.1);
}


/* Hero Überschrift */
.hero h1 {

  font-size: 2.6rem;

  font-weight: 900;

  margin-bottom: 1rem;

  text-shadow:
    0 0 10px rgba(255,0,0,0.6),
    0 0 20px rgba(255,0,0,0.3);
}


/* Hero Untertitel */
.hero-tagline {

  font-size: 1.1rem;

  font-weight: 600;

  color: var(--accent);

  letter-spacing: 0.12em;

  text-transform: uppercase;

  margin-bottom: 1.8rem;
}


/* Hero Button */
.hero-button {

  font-size: 1.1rem;

  font-weight: 600;

  color: var(--accent);

  letter-spacing: 0.12em;

  text-transform: uppercase;

  text-decoration: none;
}


/* Hero Text */
.hero p {

  margin-bottom: 1.3rem;

  color: var(--muted);
}


/* =========================================================
   10. PRODUKT GRID / SHOP
   ---------------------------------------------------------
   CSS GRID = modernes Layout-System

   Grid arbeitet mit:
   → Reihen
   → Spalten

   Perfekt für:
   - Shops
   - Karten
   - Galerien
   - responsive Layouts

   Vorteil:
   Die Produkte ordnen sich automatisch neu an.
========================================================= */


/* Produktliste */
#product-list {

  /* Aktiviert CSS Grid */
  display: grid;


  /* =====================================================
     SPALTEN-DEFINITION

     repeat(...)
     → Wiederholt automatisch Spalten

     auto-fit
     → Browser entscheidet selbst,
       wie viele Spalten hineinpassen

     minmax(240px, 1fr)

     Jede Karte:
     → mindestens 240px breit
     → maximal flexibel

     1fr = 1 Anteil vom freien Platz

     Dadurch wird dein Shop responsive.
  ===================================================== */
  grid-template-columns:
    repeat(auto-fit, minmax(240px, 1fr));


  /* Abstand zwischen Karten */
  gap: 2rem;
}


/* Einzelne Produktkarte */
.product {

  background: var(--surface);

  border-radius: var(--radius);

  border: 1px solid var(--border);

  padding: 1.4rem;

  text-align: center;


  /* Weiche Hover Animation */
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}


/* Hover Animation */
.product:hover {

  /* Karte hebt sich leicht an */
  transform: translateY(-6px);

  box-shadow:
    0 20px 50px rgba(255,0,0,0.25);
}


/* Produktlink */
.prodLink a {

  color: var(--accent);

  text-decoration: none;
}


/* Produktbild */
.product-image {

  width: 100%;

  max-height: 220px;


  /* =====================================================
     object-fit: contain

     Bild wird vollständig angezeigt
     ohne Verzerrung.
  ===================================================== */
  object-fit: contain;

  display: block;

  margin: 0 auto 1rem auto;

  border-radius: 12px;

  background: #000;
}


/* Produkttitel */
.product h2 {

  font-size: 1.1rem;

  margin-bottom: 0.6rem;
}


/* Produktbeschreibung */
.product p {
  font-size: 0.9rem;
}


/* Preis */
.price {

  margin: 0.8rem 0;

  font-weight: 800;

  color: var(--accent);
}


/* =========================================================
   11. BUTTONS
========================================================= */
button {

  padding: 0.55rem 1.1rem;

  border: none;

  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      #ff3c00,
      #a80000
    );

  color: #fff;

  font-weight: 700;

  cursor: pointer;
}


/* Hover */
button:hover {

  background:
    linear-gradient(
      135deg,
      #ff1f00,
      #7a0000
    );
}


/* =========================================================
   12. KATEGORIE FILTER
========================================================= */
.category-filter a {

  text-decoration: none;

  color: var(--text);

  padding: 0.45rem 0.8rem;

  border-radius: 999px;

  font-size: 0.9rem;
}


.category-filter a:hover {

  background: rgba(255,60,0,0.2);

  color: var(--accent);
}


/* =========================================================
   13. HALLOWEEN NEBEL
========================================================= */
.fog {

  position: fixed;

  bottom: 0;
  left: -50%;

  width: 200%;
  height: 40%;

  pointer-events: none;

  z-index: 1;

  background:
    radial-gradient(circle at 20% 80%,
      rgba(255,255,255,0.06),
      transparent 60%),

    radial-gradient(circle at 60% 90%,
      rgba(255,255,255,0.05),
      transparent 70%),

    radial-gradient(circle at 80% 85%,
      rgba(255,255,255,0.04),
      transparent 60%);

  filter: blur(30px);

  animation: fogMove 30s linear infinite;
}


/* Nebel Bewegung */
@keyframes fogMove {

  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(30%);
  }
}


/* =========================================================
   14. HALLOWEEN KÜRBIS
========================================================= */

/* Flugcontainer */
.pumpkin-container {

  position: fixed;

  top: 30%;
  left: -120px;

  z-index: 3;

  pointer-events: none;

  animation: pumpkinFly 25s linear infinite;
}


/* Größe */
.pumpkin {
  width: 90px;
}


/* Kürbis Körper */
.pumpkin-body {
  fill: #1a0f0a;
}


/* Linien */
.pumpkin-lines {
  fill: rgba(0,0,0,0.4);
}


/* Stiel */
.stem {
  fill: #1a140f;
}


/* Gesicht */
.eye,
.mouth {

  fill: #000;

  /* Horror Glow */
  filter:
    drop-shadow(0 0 6px #ff3c00)
    drop-shadow(0 0 12px #ff1f00)
    drop-shadow(0 0 20px rgba(255,0,0,0.6));

  /* Kerzenflackern */
  animation: flicker 1.8s infinite;
}


/* Schwebeanimation */
.pumpkin {
  animation: pumpkinFloat 4s ease-in-out infinite;
}


/* Schweben */
@keyframes pumpkinFloat {

  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}


/* Fluganimation */
@keyframes pumpkinFly {

  0% {
    transform: translateX(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  50% {
    transform: translateX(60vw) rotate(10deg);
  }

  100% {
    transform: translateX(120vw) rotate(-10deg);
    opacity: 0;
  }
}


/* Flackern */
@keyframes flicker {

  0%,
  100% {
    filter:
      drop-shadow(0 0 5px #ff3c00)
      drop-shadow(0 0 10px #ff1f00);
  }

  50% {
    filter:
      drop-shadow(0 0 12px #ff6a00)
      drop-shadow(0 0 25px #ff0000);
  }
}


/* =========================================================
   15. ZUSATZBEREICHE
========================================================= */

/* Produktbeschreibung */
.product-description {
  color: #ddd;
}


/* =========================================================
   16. FOOTER
========================================================= */
.site-footer {

  border-top: 1px solid var(--border);

  font-size: 0.85rem;
}


/* Footer Links */
.footer-links {

  padding: 1.55rem 1.7rem;

  list-style: none;

  display: flex;

  gap: 0.8rem;

  justify-content: flex-end;
}


/* Footer Link */
.footer-links a {

  color: #ffffff;

  text-decoration: none;
}


/* Footer Text */
.site-footer p {
  text-align: center;
}


/* =========================================================
   17. GALLERY
========================================================= */

/* Hover Zoom */
.gallery-image:hover {

  transform: scale(5);

  box-shadow:
    0 22px 55px rgba(255,0,0,0.4);
}


/* =========================================================
   18. COOKIE BANNER
========================================================= */
.cookie-banner {

  background: #000;

  border:
    1px solid rgba(255,60,0,0.3);
}