/* ==========================================================================
   0. SELF-HOSTED FONTS (DSGVO: kein Google-CDN, keine IP-Übertragung)
   Inter latin + latin-ext, lokal unter /fonts/inter/ ausgeliefert.
   ========================================================================== */
@font-face{font-family:'Inter';font-style:normal;font-weight:300;font-display:swap;src:url('/fonts/inter/Inter-300-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:300;font-display:swap;src:url('/fonts/inter/Inter-300-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/inter/Inter-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/inter/Inter-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/inter/Inter-500-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/inter/Inter-500-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/inter/Inter-600-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/inter/Inter-600-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/inter/Inter-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/inter/Inter-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:900;font-display:swap;src:url('/fonts/inter/Inter-900-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:900;font-display:swap;src:url('/fonts/inter/Inter-900-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* Space Grotesk (Display, self-hosted, OFL) — nur Headlines. Body bleibt Inter.
   DSGVO: lokal ausgeliefert, kein externes CDN (font-src 'self'). */
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/space-grotesk/SpaceGrotesk-500-latin.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/space-grotesk/SpaceGrotesk-600-latin.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/space-grotesk/SpaceGrotesk-700-latin.woff2') format('woff2');}

/* Geist (Body, self-hosted, OFL) — ersetzt Inter als Fließtext-Font (FORGE-Redesign).
   Inter bleibt nur als Fallback definiert. DSGVO: lokal, kein CDN. */
@font-face{font-family:'Geist';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/geist/Geist-400-latin.woff2') format('woff2');}
@font-face{font-family:'Geist';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/geist/Geist-500-latin.woff2') format('woff2');}
@font-face{font-family:'Geist';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/geist/Geist-600-latin.woff2') format('woff2');}
@font-face{font-family:'Geist';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/geist/Geist-700-latin.woff2') format('woff2');}

/* ==========================================================================
   1. GLOBAL VARIABLES & RESET
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* ===== LICHTWERK — Editorial Light (v3, 2026-06-18) =====
     Papier + Tinte + EINE entschiedene Signal-Rot. Flach, Hairline, kaum Schatten,
     kein Glas, kein Grain. Vorgänger (FORGE, dunkel): ARCHIVE/pre-lichtwerk-20260618/. */
  --bg: #f7f4ef;                 /* Papier — Seiten-Hintergrund (warmes Off-White) */
  --bg-2: #ffffff;               /* erhöhte Fläche — Karten, Panels, Felder */
  --bg-3: #14110e;               /* Tinte — Footer / bewusster dunkler Anker */
  --card: #ffffff;               /* Karten-Fläche (flach, kein Glas) */
  --card-hover: #fbfaf8;
  --surface-shell: #f1ece4;      /* Inset / sekundäres Panel */
  --text: #14110e;               /* Tinte — Primärtext (~14:1 auf Papier) */
  --muted: #5e564a;              /* warmes Grau — Sekundärtext (≥5.5:1 auf Papier) */
  --accent: var(--accent-brand);
  --line: rgba(20, 17, 14, 0.12);
  --line-focus: rgba(20, 17, 14, 0.30);
  --line-inset: rgba(255, 255, 255, 0.6); /* helle Innenkante auf weißen Flächen */

  /* ---- Signatur: SIGNAL-ROT (Schmiede-Feuer), committed ---- */
  --accent-brand: #d8492b;
  --accent-brand-strong: #b83a20;          /* kleiner Text/Links & Hover (≥5.5:1) */
  --accent-brand-soft: rgba(216, 73, 43, 0.10);
  --accent-brand-line: rgba(216, 73, 43, 0.42);
  --accent-brand-glow: 0 0 0 1px var(--accent-brand-line); /* editorial: kein Glow */

  /* ---- Schatten: minimal, getönt (Tiefe kommt aus Hairlines) ---- */
  --shadow-1: 0 1px 2px rgba(20, 17, 14, 0.06);
  --shadow-2: 0 8px 24px rgba(20, 17, 14, 0.08);
  --shadow-3: 0 18px 50px rgba(20, 17, 14, 0.10);

  /* ---- Radien (zurückhaltend, editorial) ---- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* ---- Spacing / Rhythmus ---- */
  --sp-section: clamp(64px, 9vw, 132px);  /* vertikaler Section-Abstand */
  --gutter: 7%;                           /* horizontaler Seitenrand */

  /* ---- Fonts & fluide Typo-Skala (Identität bewahrt: SG + Geist) ---- */
  --font: 'Geist', 'Inter', sans-serif;
  --font-display: 'Space Grotesk', 'Geist', sans-serif;
  --fs-display: clamp(2.8rem, 7vw, 5.5rem);
  --fs-h1: clamp(2.1rem, 5vw, 3.4rem);
  --fs-h2: clamp(1.6rem, 3.4vw, 2.6rem);
  --fs-h3: clamp(1.2rem, 1.8vw, 1.5rem);

  /* ---- Motion (starke Custom-Kurven, kurze UI-Dauern) ---- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-fast: 140ms;
  --dur: 200ms;
  --dur-slow: 320ms;

  --blur: blur(14px);
  --transition: all var(--dur) var(--ease-out);

  /* Status-Farben — helle Palette, ≥4.5:1 auf Papier/Weiß. */
  --ok: #1a7f37;     /* Erfolg / Grün */
  --err: #c2261b;    /* Fehler / Rot */
  --warn: #9a6700;   /* Warnung / Gelb */
  --info: #1f4dd8;   /* Hinweis / Blau */
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Gritty Ambient Background Noise */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  content: "";
  opacity: 0.02;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   2. NAVIGATION BAR
   ========================================================================== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 7%;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  z-index: 1000;
}

.main-nav .logo img {
  height: 72px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* Navigation Login/Logout Button Styling
   (Aufgabe 4) !important-Cluster durch saubere Spezifität ersetzt:
   .main-nav .nav-links .nav-login-btn (0,3,0) schlägt .nav-links a (0,1,1),
   daher kein !important nötig — Aussehen unverändert. */
.main-nav .nav-links .nav-login-btn,
.nav-login-btn {
  background: transparent;
  border: 1px solid var(--line);
  padding: 10px 22px;
  border-radius: 999px;
  color: var(--text);
}

.main-nav .nav-links .nav-login-btn:hover,
.main-nav .nav-links .nav-login-btn.active,
.nav-login-btn:hover,
.nav-login-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   3. HERO & HEADERS
   ========================================================================== */
.hero-page-head {
  padding: 160px 7% 60px;
  text-align: center;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-page-head h1 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-page-head h1 span {
  color: var(--muted);
  font-weight: 300;
}

.hero-page-head p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   4. LAYOUTS, CARDS & INTERACTION
   ========================================================================== */
.local-cards-section {
  padding: 0 7% 60px;
}

.local-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Haupt-Grid für die Produkte */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Core Content Cards */
.info-card, .post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

/* Hover-Up & Glow Effect for Cards */
.info-card:hover, .post-card:hover {
  background: var(--card-hover);
  border-color: var(--line-focus);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   5. INTERACTIVE BUTTONS
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: #e5e5e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-focus);
  color: #fff;
}

/* ==========================================================================
   6. FORMS & INPUT FOCUS HANDLING
   ========================================================================== */
.form-wrapper-section {
  padding: 40px 7% 100px;
  display: flex;
  justify-content: center;
}

.form-card-container {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 40px;
  width: 100%;
  max-width: 520px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.custom-form-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Clean Dark Field Styles with Precise Transitions */
.custom-form-body input[type="text"],
.custom-form-body input[type="email"],
.custom-form-body input[type="password"],
.custom-form-body textarea,
.custom-form-body select {
  width: 100%;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

/* Form Input Focus Ring Glow */
.custom-form-body input:focus,
.custom-form-body textarea:focus,
.custom-form-body select:focus {
  border-color: var(--line-focus);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.02);
}

.custom-form-body textarea {
  resize: vertical;
  min-height: 120px;
}

/* ----------------------------------------------------------------
   DROPDOWN-LESBARKEIT (global)
   Problem: die aufgeklappte <option>-Liste erbt je nach Browser
   weiße Schrift auf weißem System-Hintergrund -> unlesbar.
   Lösung: solide dunkle Farben für select + option erzwingen.
   ---------------------------------------------------------------- */
select {
  color: #f5f5f7;
  background-color: #14161c;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* Eigener Pfeil, da appearance:none den Standardpfeil entfernt */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f5f5f7' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
select option,
select optgroup {
  background-color: #14161c;
  color: #f5f5f7;
}

/* File Upload Field Wrapper */
.file-upload-wrapper {
  position: relative;
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  cursor: pointer;
}

.file-upload-wrapper:hover {
  border-color: var(--line-focus);
  background: rgba(255, 255, 255, 0.01);
}

.file-upload-wrapper label {
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* ==========================================================================
   7. COMPLEX MARKETPLACE & SELLER COMPONENT LAYOUTS
   ========================================================================== */
.cart-section-wrapper {
  padding: 20px 7% 100px;
}

.cart-container-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 992px) {
  .cart-container-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  gap: 20px;
  transition: var(--transition);
}

.cart-item-card:hover {
  border-color: rgba(255,255,255,0.15);
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.cart-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
}

.cart-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.cart-bottom-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.cart-summary-sidebar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  position: sticky;
  top: 120px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 7%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  background: #020202;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  footer {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-tagline {
  letter-spacing: 0.15em;
  font-weight: 600;
  font-size: 0.75rem;
}

/* === PROFESSIONAL SHOP SYSTEM UPGRADE === */

/* Warenkorb Badge in der Navigation */
.cart-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cart-badge {
    background: #fff;
    color: #000;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 6px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-badge.bump {
    transform: scale(1.3);
}

/* Slide-In Cart Panel */
.side-cart-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--line);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-cart-panel.open {
    right: 0;
}

.side-cart-header {
    padding: 30px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-cart-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.side-cart-close:hover {
    color: #fff;
}

.side-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.side-cart-footer {
    padding: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(5, 5, 5, 0.4);
}

/* Overlay im Hintergrund bei geöffnetem Warenkorb */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.cart-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   9. HAMBURGER / MOBILE NAVIGATION
   ========================================================================== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .hamburger {
        display: flex;
        z-index: 1100;
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(340px, 85vw);
        height: 100vh;
        background: rgba(8, 8, 8, 0.97);
        backdrop-filter: var(--blur);
        -webkit-backdrop-filter: var(--blur);
        border-left: 1px solid var(--line);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 32px 40px;
        gap: 8px;
        z-index: 1050;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.6);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--line);
        color: var(--muted);
        width: 100%;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--text);
        padding-left: 8px;
    }

    .main-nav .nav-links .nav-login-btn {
        margin-top: 16px;
        padding: 12px 24px;
        border-radius: 999px;
        text-align: center;
    }
}

/* ==========================================================================
   10. COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-top: 1px solid var(--line);
    padding: 20px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    z-index: 9998;
    flex-wrap: wrap;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.cookie-banner.hidden {
    transform: translateY(110%);
    pointer-events: none;
}

.cookie-banner p {
    color: var(--muted);
    font-size: 0.88rem;
    margin: 0;
    flex: 1;
    min-width: 240px;
}

.cookie-banner a {
    color: var(--text);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* ==========================================================================
   11. PRODUCT CARD (Shop)
   ========================================================================== */
.product-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.product-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 8px;
}

.tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    padding: 4px 10px;
    border-radius: 6px;
}

.buy-node-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    white-space: nowrap;
}

.buy-node-btn:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
}

/* Schmale Karten (Mobile): Tag + zwei Buttons passen nicht in eine Zeile —
   der Warenkorb-Button ragt sonst über den Kartenrand hinaus. */
@media (max-width: 480px) {
    .product-meta { flex-wrap: wrap; }
    .product-meta > div:last-child { width: 100%; }
    .product-meta > div:last-child .product-details-link,
    .product-meta > div:last-child .buy-node-btn {
        flex: 1;
        text-align: center;
    }
}

/* ==========================================================================
   X. 3D-DRUCK ANFRAGE-PIPELINE  (Wizard · Dropzone · Live-Preis · Timeline)
   Eigenständiger Block — Noir / Glassmorphic, Midnight-Blue-Akzent.
   ========================================================================== */
:root {
  /* Vereinheitlicht: der Druckservice-Akzent ist jetzt der globale Marken-Akzent.
     Änderungen an --accent-brand kaskadieren dadurch auch in die Quote-Pipeline. */
  --q-accent: var(--accent-brand);
  --q-accent-soft: var(--accent-brand-soft);
  --q-accent-line: var(--accent-brand-line);
  --q-glow: var(--accent-brand-glow);
  --q-radius: 18px;
}

/* ---------- Ghost-Button (Wizard-Zurück) ---------- */
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  color: #fff;
  border-color: var(--line-focus);
  background: rgba(255, 255, 255, 0.04);
}

/* ---------- Layout ---------- */
.quote-section {
  padding: 40px 7% 110px;
}
.quote-layout {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.quote-wizard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px 34px 28px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

/* ---------- Stepper ---------- */
.wizard-stepper {
  display: flex;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  counter-reset: step;
}
.stepper-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.stepper-item::before {
  content: "";
  position: absolute;
  top: 16px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.stepper-item:first-child::before { display: none; }
.stepper-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.stepper-item.is-active { color: #fff; }
.stepper-item.is-active .stepper-num {
  background: var(--q-accent);
  border-color: var(--q-accent);
  color: #fff;
  box-shadow: var(--q-glow);
}
.stepper-item.is-done .stepper-num {
  background: var(--q-accent-soft);
  border-color: var(--q-accent-line);
  color: #fff;
}
.stepper-item.is-done::before,
.stepper-item.is-active::before { background: var(--q-accent-line); }

/* ---------- Steps ---------- */
.wizard-step { display: none; }
.wizard-step.is-active {
  display: block;
  animation: qFade 0.35s ease;
}
@keyframes qFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wizard-step-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.wizard-step-sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
  max-width: 60ch;
}

/* ---------- Feedback ---------- */
.wizard-feedback {
  display: none;
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--line);
}
.wizard-feedback.is-visible { display: block; animation: qFade 0.25s ease; }
.wizard-feedback.is-error {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ffb4b4;
}
.wizard-feedback.is-success {
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.4);
  color: #aef0c2;
}
.wizard-feedback.is-info {
  background: var(--q-accent-soft);
  border-color: var(--q-accent-line);
  color: var(--info);
}

/* ---------- Dropzone ---------- */
.dropzone {
  border: 1.5px dashed var(--line-focus);
  border-radius: var(--q-radius);
  background: rgba(255, 255, 255, 0.015);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}
.dropzone:hover,
.dropzone:focus-visible {
  border-color: var(--q-accent-line);
  background: var(--q-accent-soft);
}
.dropzone.is-dragover {
  border-color: var(--q-accent);
  background: var(--q-accent-soft);
  box-shadow: var(--q-glow);
  transform: scale(1.004);
}
.dropzone.has-files { padding: 26px 24px; }
.dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.dropzone-icon { width: 40px; height: 40px; color: var(--q-accent); }
.dropzone-text { font-size: 1.05rem; font-weight: 600; }
.dropzone-text span { color: var(--muted); font-weight: 400; font-size: 0.95rem; }
.dropzone-hint { color: var(--muted); font-size: 0.8rem; }

/* ---------- Datei-Liste ---------- */
.file-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.file-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  animation: qFade 0.25s ease;
}
.file-ext {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 9px;
  background: var(--q-accent-soft);
  color: var(--info);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.file-meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.file-name {
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-size { color: var(--muted); font-size: 0.78rem; }
.file-remove {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}
.file-remove:hover {
  color: #fff;
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.12);
}

/* ---------- Feld-Labels & Inputs ---------- */
.field-label {
  display: block;
  margin: 26px 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.field-label:first-child { margin-top: 0; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--text); }
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.quote-wizard input[type="text"],
.quote-wizard input[type="email"],
.quote-wizard input[type="number"],
.quote-wizard textarea {
  width: 100%;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}
.quote-wizard textarea { min-height: 110px; resize: vertical; }
.quote-wizard input::placeholder,
.quote-wizard textarea::placeholder { color: #5a5a5a; }
.quote-wizard input:focus,
.quote-wizard textarea:focus {
  outline: none;
  border-color: var(--q-accent-line);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px var(--q-accent-soft);
}

/* ---------- Option-Cards (Material / Qualität) ---------- */
.opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
.opt-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
.opt-card:hover {
  background: var(--card-hover);
  border-color: var(--line-focus);
  transform: translateY(-2px);
}
.opt-card.is-selected {
  border-color: var(--q-accent);
  background: var(--q-accent-soft);
  box-shadow: var(--q-glow);
}
.opt-card-name { font-weight: 700; font-size: 1rem; }
.opt-card-tag { color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.opt-card-price {
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--info);
}

/* ---------- Material-Specs ---------- */
.material-specs {
  display: none;
  margin-top: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.material-specs.is-visible { display: block; animation: qFade 0.3s ease; }
.material-specs h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 12px;
}
.spec-list { list-style: none; display: grid; gap: 9px; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.spec-list li:last-child { border-bottom: none; padding-bottom: 0; }
.spec-list span { color: var(--muted); }
.spec-list strong { font-weight: 600; text-align: right; }

/* ---------- Farb-Swatches ---------- */
.color-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.color-swatch {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  transition: var(--transition);
}
.color-swatch:hover { border-color: var(--line-focus); background: var(--card-hover); }
.color-swatch.is-selected {
  border-color: var(--q-accent);
  box-shadow: var(--q-glow);
}
.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}
.color-name { font-weight: 500; }
.color-extra { color: var(--info); font-size: 0.75rem; font-weight: 600; }

/* ---------- Toggle-Switch (Express) ---------- */
.toggle-field {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0 22px;
  cursor: pointer;
  user-select: none;
}
.toggle-field input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-track {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 27px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  transition: var(--transition);
}
.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #d8d8d8;
  transition: var(--transition);
}
.toggle-field input:checked + .toggle-track {
  background: var(--q-accent);
  border-color: var(--q-accent);
}
.toggle-field input:checked + .toggle-track .toggle-thumb {
  transform: translateX(21px);
  background: #fff;
}
.toggle-field input:focus-visible + .toggle-track { box-shadow: 0 0 0 3px var(--q-accent-soft); }
.toggle-text { font-size: 0.9rem; color: var(--text); }
.toggle-text strong { font-weight: 700; }

/* ---------- Hint-Box ---------- */
.hint-box {
  padding: 16px 18px;
  background: var(--q-accent-soft);
  border: 1px solid var(--q-accent-line);
  border-radius: 12px;
  font-size: 0.87rem;
  color: var(--info);
  line-height: 1.55;
}

/* ---------- Übersicht (Schritt 4) ---------- */
.quote-summary {
  margin-top: 22px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.summary-list { list-style: none; display: grid; gap: 11px; }
.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.92rem;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}
.summary-list span { color: var(--muted); }
.summary-list strong { font-weight: 600; text-align: right; }
.summary-total {
  border-bottom: none !important;
  padding-top: 6px;
  font-size: 1.05rem;
}
.summary-total strong { color: #fff; font-size: 1.25rem; }
.summary-hint {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Navigation ---------- */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.wizard-nav .btn[hidden] { display: none; }
.wizard-nav #wizardNext,
.wizard-nav #wizardSubmit { margin-left: auto; }

/* ---------- Live-Preis-Karte (Aside) ---------- */
.quote-aside { position: sticky; top: 120px; }
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 26px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.price-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 10px;
}
.price-card-value {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(120deg, #ffffff, var(--info));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.price-card-note { color: var(--muted); font-size: 0.82rem; margin-top: 10px; }
.price-breakdown {
  display: none;
  list-style: none;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.price-breakdown.is-visible { display: block; animation: qFade 0.3s ease; }
.price-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.88rem;
  padding: 7px 0;
  color: var(--text);
}
.price-breakdown li span:first-child { color: var(--muted); }
.price-breakdown .bd-sub {
  margin-top: 4px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
  font-weight: 600;
}
.price-trust {
  list-style: none;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
}
.price-trust li { font-size: 0.82rem; color: var(--muted); }

/* ==========================================================================
   STATUS-TIMELINE & PROGRESS  (für Tracking & Dashboards wiederverwendbar)
   ========================================================================== */
.status-timeline {
  list-style: none;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}
.timeline-step {
  position: relative;
  display: flex;
  gap: 16px;
  padding-bottom: 22px;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-marker {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--line);
  z-index: 1;
  transition: var(--transition);
}
.timeline-step::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline-step:last-child::before { display: none; }
.timeline-step.done .timeline-marker {
  background: var(--q-accent-soft);
  border-color: var(--q-accent-line);
}
.timeline-step.done::before { background: var(--q-accent-line); }
.timeline-step.active .timeline-marker {
  background: var(--q-accent);
  border-color: var(--q-accent);
  box-shadow: 0 0 0 4px var(--q-accent-soft);
}
.timeline-body { padding-top: 0; }
.timeline-label { font-weight: 600; font-size: 0.95rem; }
.timeline-step.pending .timeline-label { color: var(--muted); }
.timeline-hint { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.timeline-step.active .timeline-hint { color: var(--info); }

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--q-accent), #8aa6ff);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.status-badge.is-active {
  background: var(--q-accent-soft);
  border-color: var(--q-accent-line);
  color: var(--info);
}
.status-badge.is-done {
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.4);
  color: #aef0c2;
}
.status-badge.is-cancelled {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ffb4b4;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .quote-layout { grid-template-columns: 1fr; }
  .quote-aside { position: static; }
}
@media (max-width: 560px) {
  .quote-wizard { padding: 24px 20px; }
  .stepper-item .stepper-label { display: none; }
  .price-card-value { font-size: 2.2rem; }
  .wizard-nav { flex-wrap: wrap; }
}

/* ==========================================================================
   12. ACCESSIBILITY — FOKUS, SKIP-LINK (Aufgaben 2 & 6)
   ========================================================================== */

/* Skip-Link: visuell versteckt bis Tastatur-Fokus (Sprung zum Hauptinhalt).
   WCAG 2.4.1 — Blöcke umgehen. */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%) translateY(-150%);
  z-index: 10000;
  padding: 12px 22px;
  border-radius: 0 0 12px 12px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateX(-50%) translateY(0);
  outline: none;
}

/* Globaler Tastatur-Fokus: deutlich sichtbarer Fokusring (WCAG 2.4.7).
   Nur für Tastaturnutzer via :focus-visible. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--q-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Maus-/Touch-Fokus (kein :focus-visible) bleibt unaufdringlich:
   kein sichtbarer Standard-Outline, bestehende Komponenten-Stile greifen. */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
  outline: none;
}

/* ==========================================================================
   13. SKELETON-LOADER (Aufgabe 7)
   Platzhalter-Schimmer für Produktlisten-Ladezustände.
   ========================================================================== */
.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  100% { transform: translateX(100%); }
}
/* Komfort-Maße für typische Platzhalter */
.skeleton-text { height: 0.9em; margin-bottom: 8px; }
.skeleton-title { height: 1.2em; width: 60%; margin-bottom: 12px; }
.skeleton-img { width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; }

/* ==========================================================================
   14. MOBILE DASHBOARD-TABELLEN (Aufgabe 5)
   Breite .table-card-Tabellen werden auf schmalen Screens als
   gestapelte Label:Wert-Karten lesbar. Die Dashboards setzen
   data-label="…" je <td> selbst.
   ========================================================================== */
@media (max-width: 640px) {
  .table-card table,
  .table-card thead,
  .table-card tbody,
  .table-card tr,
  .table-card th,
  .table-card td {
    display: block;
    width: 100%;
  }
  /* Kopfzeile visuell ausblenden (bleibt für Screenreader erhalten) */
  .table-card thead tr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .table-card tr {
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 6px 14px;
    background: var(--card);
  }
  .table-card td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    text-align: right;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .table-card tr td:last-child {
    border-bottom: none;
  }
  /* Label aus data-label vor den Wert setzen */
  .table-card td::before {
    content: attr(data-label);
    flex-shrink: 0;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
  }
}

/* ==========================================================================
   15. REDUZIERTE BEWEGUNG (Aufgabe 8)
   Nutzerpräferenz respektieren: Animationen/Übergänge praktisch
   deaktivieren (WCAG 2.3.3).
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
/* ==========================================================================
   EXPERIENCE-WELLE (Amazon/eBay-Muster): Karten-Sterne, Lager-Hinweis,
   Nav-Suche, mehrspaltiger Footer
   ========================================================================== */
.card-rating { display:flex; align-items:center; gap:6px; margin:4px 0 2px; font-size:0.85rem; }
.card-stars { color:#f5a623; letter-spacing:2px; font-size:0.9rem; }
.card-rating-num { color:var(--text); font-weight:600; }
.card-rating-count { color:var(--muted); }
.card-sales { color:var(--muted); font-size:0.78rem; margin-bottom:4px; }

.stock-note { font-size:0.88rem; font-weight:600; margin:6px 0; }
.stock-low  { color:#ff8c42; }
.stock-ok   { color:var(--ok, #00c853); }
.stock-made { color:var(--muted); font-weight:500; }

/* Nav-Suche (Amazon-Signature-Element) */
.nav-search { display:flex; align-items:center; flex:1; max-width:420px; margin:0 18px; }
.nav-search input { flex:1; background:rgba(255,255,255,0.06); border:1px solid var(--line);
  border-radius:10px 0 0 10px; padding:10px 14px; color:var(--text); font-family:inherit;
  font-size:0.9rem; min-width:0; }
.nav-search input::placeholder { color:var(--muted); }
.nav-search button { background:var(--accent); color:#000; border:none; border-radius:0 10px 10px 0;
  padding:10px 16px; cursor:pointer; font-size:0.95rem; }
.nav-search input:focus { border-color:var(--line-focus); outline:none; }
@media (max-width: 900px) {
  .nav-search { order:10; flex-basis:100%; max-width:none; margin:10px 0 0; }
  .main-nav { flex-wrap:wrap; }
}

/* Reicher Footer (mehrspaltig) */
/* Der neue Footer (mit .footer-grid) MUSS als volle Spalte layouten: Grid oben,
   Copyright unten. Sonst greift die alte Regel `@media(min-width:768px){footer{
   flex-direction:row}}` (für den schlanken Dashboard-Footer mit .footer-links)
   und legt Grid + Copyright NEBENeinander → die 4 Spalten kollabieren auf 180px.
   `:has()` hat höhere Spezifität → schlägt die Media-Query, ohne den alten Footer
   anzufassen. */
footer:has(.footer-grid) { flex-direction:column; align-items:stretch; }
.footer-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:32px; padding:48px 7% 24px; border-top:1px solid var(--line); text-align:left; width:100%; }
.footer-grid h4 { font-size:0.8rem; text-transform:uppercase; letter-spacing:1.5px;
  color:var(--text); margin-bottom:14px; font-weight:700; }
.footer-grid a { display:block; color:var(--muted); text-decoration:none; font-size:0.88rem;
  padding:4px 0; transition:color 0.2s; }
.footer-grid a:hover { color:var(--text); }
.footer-bottom { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px;
  padding:18px 7%; border-top:1px solid var(--line); color:var(--muted); font-size:0.82rem; }

/* Trust-Bullets unter Hero-CTAs */
.trust-bullets { display:flex; flex-wrap:wrap; gap:18px; margin-top:22px; }
.trust-bullets span { color:var(--muted); font-size:0.85rem; display:inline-flex;
  align-items:center; gap:7px; }

/* ==========================================================================
   16. LICHTWERK — EDITORIAL LIGHT  (Redesign v3, 2026-06-18)
   Ersetzt die dunklen Layer "Premium-Noir" (16) und "FORGE" (17).
   Token-getrieben: Papier + Tinte + EINE Signal-Rot. Flach, Hairline, kaum
   Schatten, kein Glas, kein Grain. Steht zuletzt -> gewinnt bei gleicher
   Spezifitaet. Archiv des Vorgaengers: ARCHIVE/pre-lichtwerk-20260618/.
   ========================================================================== */

/* ---- Grund: sauberes Papier, keine Ambient-Glows ---- */
body {
  background-color: var(--bg);
  background-image: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Editorial = clean: Grain abschalten (war industrielle Textur) */
.noise { display: none; }

/* ---- Display-Typografie ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
  font-synthesis: none;
  color: var(--text);
}
p { text-wrap: pretty; }
.hero-page-head h1 { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: 700; }
.hero-page-head h1 span { color: var(--accent-brand); font-weight: 500; }
.hero-page-head p { color: var(--muted); }

/* ---- Eyebrow: rote Overline-Marke statt getrackter Pill (kein AI-Scaffold) ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  margin-bottom: 18px;
  color: var(--accent-brand-strong);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent-brand);
  flex-shrink: 0;
}

/* ---- Navigation: frosted Papier, Hairline, rote Aktiv-Linie ---- */
.main-nav {
  background: rgba(247, 244, 239, 0.82);
  -webkit-backdrop-filter: saturate(120%) var(--blur);
  backdrop-filter: saturate(120%) var(--blur);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.main-nav .nav-links .nav-login-btn,
.nav-login-btn {
  border: 1px solid var(--line-focus);
  color: var(--text);
  border-radius: var(--r-sm);
}
.main-nav .nav-links .nav-login-btn:hover,
.main-nav .nav-links .nav-login-btn.active,
.nav-login-btn:hover, .nav-login-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  box-shadow: none;
}
@media (min-width: 901px) {
  .nav-links a:not(.nav-login-btn) { position: relative; }
  .nav-links a:not(.nav-login-btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
    height: 2px; background: var(--accent-brand);
    transform: scaleX(0); transform-origin: left;
    transition: transform var(--dur) var(--ease-out);
  }
  .nav-links a:not(.nav-login-btn):hover::after,
  .nav-links a:not(.nav-login-btn).active::after { transform: scaleX(1); }
}
@media (max-width: 900px) {
  .nav-links {
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    border-left: 1px solid var(--line);
    box-shadow: -10px 0 40px rgba(20, 17, 14, 0.12);
  }
  .nav-links a { border-bottom: 1px solid var(--line); }
}
.hamburger span { background: var(--text); }

/* ---- Nav-Suche: helles Feld, roter Submit ---- */
.nav-search input { background: var(--bg-2); border: 1px solid var(--line); color: var(--text); }
.nav-search input::placeholder { color: var(--muted); }
.nav-search input:focus { border-color: var(--accent-brand-line); box-shadow: 0 0 0 3px var(--accent-brand-soft); outline: none; }
.nav-search button { background: var(--accent-brand); color: #fff; }
.nav-search button:hover { background: var(--accent-brand-strong); }

/* ---- Buttons: solides Rot / Tinten-Outline, editorial-eckig ---- */
.btn {
  border-radius: var(--r-sm);
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out);
}
.btn-primary { background: var(--accent-brand); color: #fff; }
.btn-primary:hover { background: var(--accent-brand-strong); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--line-focus); }
.btn-secondary:hover { background: var(--surface-shell); border-color: var(--text); color: var(--text); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--line-focus); background: var(--surface-shell); }
.btn:active, .buy-node-btn:active, .nav-login-btn:active, .btn-ghost:active { transform: scale(0.97); }

/* ---- Karten: flach, weiss, Hairline, kleiner Radius, kein Glas ---- */
.info-card, .post-card, .product-card, .cart-item-card, .cart-summary-sidebar,
.form-card-container, .price-card, .quote-wizard {
  background: var(--card);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: var(--shadow-1);
}
.info-card, .post-card, .product-card { border-radius: var(--r-md); }
.form-card-container, .price-card, .quote-wizard, .cart-summary-sidebar { border-radius: var(--r-lg); }
.info-card:hover, .post-card:hover {
  background: var(--card-hover);
  border-color: var(--line-focus);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.product-card:hover {
  border-color: var(--accent-brand-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.cart-item-card:hover { border-color: var(--line-focus); }

/* ---- Produkt-Texte: Tinte statt Weiss ---- */
.product-title, .product-price, .cart-title { color: var(--text); }
.tag { color: var(--muted); background: var(--surface-shell); border: 1px solid var(--line); }

/* ---- Buy-Button: Rot ---- */
.buy-node-btn { background: var(--accent-brand); color: #fff; }
.buy-node-btn:hover { background: var(--accent-brand-strong); box-shadow: var(--shadow-1); }

/* ---- Produktkarten-Internas ---- */
.product-card .product-image { aspect-ratio: 1 / 1; min-height: 0 !important; background: var(--surface-shell); }
.product-card .product-image img { transition: transform var(--dur-slow) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-image img { transform: scale(1.04); }
}
.product-details-link {
  background: transparent; border: 1px solid var(--line);
  color: var(--muted); padding: 8px 14px; border-radius: var(--r-sm);
  font-size: 0.85rem; text-decoration: none; font-family: inherit;
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.product-details-link:hover { border-color: var(--accent-brand-line); color: var(--accent-brand-strong); background: var(--accent-brand-soft); }

/* ---- Formulare: helle Felder, Tinte, roter Fokusring ---- */
.custom-form-body input[type="text"],
.custom-form-body input[type="email"],
.custom-form-body input[type="password"],
.custom-form-body textarea,
.custom-form-body select {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
}
.custom-form-body input::placeholder, .custom-form-body textarea::placeholder { color: var(--muted); }
.custom-form-body input:focus,
.custom-form-body textarea:focus,
.custom-form-body select:focus {
  border-color: var(--accent-brand-line);
  background: var(--bg-2);
  box-shadow: 0 0 0 3px var(--accent-brand-soft);
}
.file-upload-wrapper { background: var(--surface-shell); border-color: var(--line); }
.file-upload-wrapper:hover { border-color: var(--accent-brand-line); background: var(--accent-brand-soft); }
.file-upload-wrapper label { color: var(--muted); }

/* ---- Select / Dropdown: hell ---- */
select {
  color: var(--text);
  background-color: var(--bg-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2314110e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
}
select option, select optgroup { background-color: var(--bg-2); color: var(--text); }

/* ---- Quote-Wizard: helle Felder + Flaechen ---- */
.quote-wizard input[type="text"],
.quote-wizard input[type="email"],
.quote-wizard input[type="number"],
.quote-wizard textarea {
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
}
.quote-wizard input::placeholder, .quote-wizard textarea::placeholder { color: var(--muted); }
.quote-wizard input:focus, .quote-wizard textarea:focus {
  border-color: var(--accent-brand-line); background: var(--bg-2);
  box-shadow: 0 0 0 3px var(--accent-brand-soft);
}
.opt-card, .color-swatch, .file-chip { background: var(--card); }
.opt-card:hover, .color-swatch:hover { background: var(--surface-shell); border-color: var(--line-focus); }
.material-specs, .quote-summary { background: var(--surface-shell); }
.stepper-num { background: var(--surface-shell); border-color: var(--line); color: var(--muted); }
.dropzone { background: var(--surface-shell); border-color: var(--line-focus); }
.dropzone:hover, .dropzone:focus-visible { border-color: var(--accent-brand-line); background: var(--accent-brand-soft); }

/* ---- Live-Preis: solider Tinten-Wert (kein Gradient-Text) ---- */
.price-card-value {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text);
}
.price-card-label, .price-card-note { color: var(--muted); }
.summary-total strong { color: var(--text); }

/* ---- Progress: solides Rot ---- */
.progress-bar { background: var(--surface-shell); }
.progress-fill { background: var(--accent-brand); }

/* ---- Feedback / Status: helle Tints, DUNKLER Text ---- */
.wizard-feedback.is-error { background: rgba(194, 38, 27, 0.08); border-color: rgba(194, 38, 27, 0.35); color: var(--err); }
.wizard-feedback.is-success { background: rgba(26, 127, 55, 0.10); border-color: rgba(26, 127, 55, 0.35); color: var(--ok); }
.wizard-feedback.is-info { background: var(--accent-brand-soft); border-color: var(--accent-brand-line); color: var(--accent-brand-strong); }
.status-badge { background: var(--surface-shell); border-color: var(--line); color: var(--text); }
.status-badge.is-active { background: var(--accent-brand-soft); border-color: var(--accent-brand-line); color: var(--accent-brand-strong); }
.status-badge.is-done { background: rgba(26, 127, 55, 0.10); border-color: rgba(26, 127, 55, 0.35); color: var(--ok); }
.status-badge.is-cancelled { background: rgba(194, 38, 27, 0.08); border-color: rgba(194, 38, 27, 0.35); color: var(--err); }
.timeline-marker { background: var(--surface-shell); border-color: var(--line); }
.hint-box { background: var(--accent-brand-soft); border-color: var(--accent-brand-line); color: var(--accent-brand-strong); }
.file-ext { color: var(--accent-brand-strong); background: var(--accent-brand-soft); }
.opt-card-price, .color-extra { color: var(--accent-brand-strong); }
.spec-list span, .summary-list span { color: var(--muted); }

/* ---- Skeleton: dunkler Schimmer auf Hell ---- */
.skeleton { background: rgba(20, 17, 14, 0.06); }
.skeleton::after {
  background: linear-gradient(90deg, rgba(20, 17, 14, 0) 0%, rgba(20, 17, 14, 0.06) 50%, rgba(20, 17, 14, 0) 100%);
}

/* ---- Cart-Badge: Rot ---- */
.cart-badge { background: var(--accent-brand); color: #fff; box-shadow: none; }

/* ---- Helle Overlays: Side-Cart, Cookie ---- */
.side-cart-panel { background: var(--bg-2); border-left: 1px solid var(--line); box-shadow: -10px 0 40px rgba(20, 17, 14, 0.12); }
.side-cart-header, .side-cart-footer { border-color: var(--line); }
.side-cart-footer { background: var(--surface-shell); }
.cookie-banner { background: var(--bg-2); border-top: 1px solid var(--line); }
.cookie-banner p { color: var(--muted); }
.cookie-banner a { color: var(--text); }
.cart-overlay { background: rgba(20, 17, 14, 0.32); }

/* ---- Footer: bewusster Tinten-Anker (heller Text), roter Schnittstreifen ---- */
footer { background: var(--bg-3); color: rgba(247, 244, 239, 0.62); }
footer:has(.footer-grid) { border-top: 3px solid var(--accent-brand); }
.footer-grid { border-top: 0; }
.footer-grid h4 { color: #f7f4ef; }
.footer-grid a, .footer-links a { color: rgba(247, 244, 239, 0.62); }
.footer-grid a:hover, .footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(247, 244, 239, 0.12); color: rgba(247, 244, 239, 0.5); }
.footer-tagline { color: rgba(247, 244, 239, 0.85); }

/* ---- Tabellen-Karten (mobil) auf Weiss ---- */
.table-card tr { background: var(--card); border-color: var(--line); }
.table-card td { border-color: var(--line); }

/* ---- Stock-Hinweise + Rating: lesbar auf Hell ---- */
.stock-low { color: #c2410c; }
.stock-ok { color: var(--ok); }
.card-stars { color: #d98c00; }
.card-rating-num { color: var(--text); }

/* ---- Scroll-Reveal (von main.js getriggert; reduced-motion-sicher) ---- */
.reveal { opacity: 0; transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ==========================================================================
   17. DARK MODE — "NACHTSCHMIEDE" (2026-07-01)
   Gegenstück zu LICHTWERK. Rein Token-getrieben: derselbe Papier/Tinte/Signal-
   Rot-Aufbau, nur invertiert (warme Tinte als Grund, warmes Off-White als Text,
   das Signal-Rot leicht aufgehellt für Kontrast auf Dunkel). Aktiviert über
   [data-theme="dark"] am <html> (gesetzt vom Anti-Flash-Snippet im <head> bzw.
   vom Umschalter in main.js). Nur die wenigen NICHT-tokenisierten Stellen
   (Nav-Frost, Select-Pfeil, Status-Kontrast) werden gezielt nachgezogen.
   ========================================================================== */
:root[data-theme="dark"] {
  --bg: #17130f;                 /* Tinte — Seiten-Grund (warm) */
  --bg-2: #211c17;               /* erhöhte Fläche — Karten, Panels, Felder */
  --bg-3: #100d0a;               /* tiefster Anker — Footer */
  --card: #211c17;
  --card-hover: #29231c;
  --surface-shell: #1d1813;      /* Inset / sekundäres Panel */
  --text: #f4efe8;               /* warmes Off-White — Primärtext */
  --muted: #ada395;              /* warmes Grau — Sekundärtext (≥6:1 auf Grund) */
  --line: rgba(244, 239, 232, 0.13);
  --line-focus: rgba(244, 239, 232, 0.30);
  --line-inset: rgba(255, 255, 255, 0.04);

  /* Signal-Rot leicht aufgehellt, damit es auf Dunkel trägt */
  --accent-brand: #e2543a;
  --accent-brand-strong: #ff7d5e;          /* kleiner Text/Links & Hover auf Dunkel */
  --accent-brand-soft: rgba(226, 84, 58, 0.15);
  --accent-brand-line: rgba(226, 84, 58, 0.48);
  --accent-brand-glow: 0 0 0 1px var(--accent-brand-line);

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-3: 0 18px 50px rgba(0, 0, 0, 0.6);

  /* Status — auf Dunkel aufgehellt (≥4.5:1) */
  --ok: #4ec46f;
  --err: #ff6f63;
  --warn: #e6ab3f;
  --info: #7aa0ff;
}

/* ---- Nav-Frost: dunkles Milchglas statt Papier ---- */
[data-theme="dark"] .main-nav { background: rgba(23, 19, 15, 0.82); }
@media (max-width: 900px) {
  [data-theme="dark"] .nav-links { background: rgba(29, 24, 19, 0.98); }
}

/* ---- Select-Pfeil: helle Füllung, sonst unsichtbar auf dunklem Feld ---- */
[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f4efe8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
}

/* ---- Lager-/Rating-Hinweise: auf Dunkel aufhellen ---- */
[data-theme="dark"] .stock-low { color: #ff9d5c; }
[data-theme="dark"] .card-stars { color: #ffbf3d; }

/* ==========================================================================
   18. THEME-UMSCHALTER (Nav-Button, von main.js injiziert)
   ========================================================================== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin-left: 8px;
  background: transparent;
  border: 1px solid var(--line-focus);
  border-radius: var(--r-sm);
  color: var(--text);
  cursor: pointer;
  transition: background var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.theme-toggle:hover { background: var(--surface-shell); border-color: var(--text); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
/* Hell zeigt Mond (→ Dunkel), Dunkel zeigt Sonne (→ Hell) */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (max-width: 900px) {
  .theme-toggle { margin-left: auto; margin-right: 8px; }
}
