/*
Theme Name: ServBen
Theme URI: https://servben.de
Author: servben
Author URI: https://servben.de
Description: Minimalistisches WooCommerce-Theme für 3D-gedruckte Komponenten, Rack-Systeme und Homelab-Zubehör. Optimiert für Germanized for WooCommerce.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: servben
Tags: woocommerce, e-commerce, custom-logo, custom-menu, featured-images, theme-options

servben — Precision parts for your homelab & beyond.
*/

/* ─── RESET & BASE ─── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
  --white: #FAFAF8;
  --nude-light: #F4EFE9;
  --nude: #EDE8E1;
  --nude-dark: #D9D1C7;
  --sand: #C4B9AC;
  --ink: #1C1C1A;
  --ink-soft: #3D3D3A;
  --ink-mute: #7A7873;
  --green: #2D6A4F;
  --red: #C45E3E;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(.2,0,0,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

/* ─── GRID BACKGROUND ─── */
.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(28,28,26,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,28,26,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none; z-index: 0;
}

/* ─── NAVIGATION ─── */
.sb-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--nude-dark);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 64px;
}
.sb-nav-logo {
  font-family: 'DM Mono', monospace; font-size: 16px;
  font-weight: 500; letter-spacing: 0.1em;
  color: var(--ink); user-select: none;
}
.sb-nav-logo span { color: var(--ink-mute); }
.sb-nav-logo a { text-decoration: none; color: inherit; }
.sb-nav-links {
  display: flex; gap: 28px; list-style: none;
}
.sb-nav-links a {
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute); cursor: pointer;
  transition: color var(--transition-fast);
  padding: 4px 0; position: relative; text-decoration: none;
}
.sb-nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--ink);
  transition: width 0.25s;
}
.sb-nav-links a:hover { color: var(--ink); }
.sb-nav-links a:hover::after { width: 100%; }
.sb-nav-links .current-menu-item a,
.sb-nav-links .current_page_item a { color: var(--ink); }
.sb-nav-links .current-menu-item a::after,
.sb-nav-links .current_page_item a::after { width: 100%; }

.sb-nav-right { display: flex; align-items: center; gap: 14px; }
.sb-nav-account {
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white);
  padding: 10px 12px; border: none; cursor: pointer;
  transition: all 0.25s; text-decoration: none;
}
.sb-nav-account:hover {
  background: var(--ink-soft); color: var(--white);
  transform: translateY(-1px);
}
.sb-nav-cart {
  font-family: 'DM Mono', monospace; font-size: 11px;
  background: var(--ink); color: var(--white);
  padding: 10px 20px; border: none; cursor: pointer;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: all 0.25s; display: flex;
  align-items: center; gap: 8px; text-decoration: none;
}
.sb-nav-cart:hover {
  background: var(--ink-soft); color: var(--white);
  transform: translateY(-1px);
}
.cart-badge {
  background: var(--red); color: #fff; border-radius: 50%;
  width: 17px; height: 17px; font-size: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'DM Mono', monospace; font-weight: 500;
}

/* Mobile menu toggle */
.sb-menu-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; color: var(--ink);
}
.sb-menu-toggle svg { width: 24px; height: 24px; }

/* ─── HERO ─── */
.hero {
  position: relative; z-index: 1;
  padding-top: 64px; min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.hero-left {
  padding: 80px 48px 80px 80px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-tag {
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); display: flex;
  align-items: center; gap: 12px; margin-bottom: 32px;
  animation: fadeUp .6s ease .2s both;
}
.hero-tag::before { content: ''; width: 32px; height: 1px; background: var(--sand); }
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.08; color: var(--ink);
  margin-bottom: 24px; letter-spacing: -0.01em;
  animation: fadeUp .7s ease .3s both;
}
.hero-title em { font-style: italic; color: var(--ink-mute); }
.hero-desc {
  font-size: 16px; color: var(--ink-soft);
  max-width: 420px; line-height: 1.75;
  margin-bottom: 40px; font-weight: 300;
  animation: fadeUp .7s ease .4s both;
}
.hero-cta {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 60px; animation: fadeUp .7s ease .5s both;
}
/* Im Hero ist „Alle Produkte" jetzt der einzige CTA — breiter ziehen.
   inline-flex + justify-content zentriert den Text zuverlässig, da
   text-align bei einem <a> ohne block-level Display nicht greift. */
.hero-cta .btn-p {
  min-width: 280px; padding: 16px 48px;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-p {
  font-family: 'DM Mono', monospace; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--ink); color: var(--white);
  padding: 14px 32px; border: none; cursor: pointer;
  transition: all 0.3s cubic-bezier(.2,0,0,1);
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-p:hover {
  transform: translateY(-2px); color: var(--white);
  box-shadow: 0 12px 32px rgba(28,28,26,0.18);
}
.hero-stats {
  display: flex; gap: 36px; padding-top: 32px;
  border-top: 1px solid var(--nude-dark);
  animation: fadeUp .7s ease .6s both;
}
.stat-val { font-family: 'DM Mono', monospace; font-size: 20px; font-weight: 500; }
.stat-label { font-size: 12px; color: var(--ink-mute); }
/* Hero-Rating: Sterne goldfarben + leicht größer, damit der Bewertungs-Stat heraussticht. */
.stat--rating .stat-val {
  color: #d4a017; letter-spacing: 1px; font-size: 22px;
}
.hero-right {
  background: var(--nude); display: flex;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 80px 40px;
}
.hero-right::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(28,28,26,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,28,26,0.04) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none;
}
.hero-prev {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; width: 100%; max-width: 400px;
  position: relative; z-index: 1;
}
.hpc {
  background: var(--white); border: 1px solid var(--nude-dark);
  cursor: pointer; transition: all var(--transition-smooth);
  overflow: hidden; text-decoration: none; color: inherit;
}
.hpc:hover {
  box-shadow: 0 8px 28px rgba(28,28,26,0.1);
  transform: translateY(-4px);
}
.hpc-img {
  height: 100px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--nude);
}
.hpc-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.hpc-body { padding: 14px 16px; }
.hpc-name { font-size: 12px; font-weight: 500; color: var(--ink); margin-bottom: 4px; line-height: 1.3; }
.hpc-price { font-family: 'DM Mono', monospace; font-size: 13px; color: var(--ink-soft); }

/* ─── SECTIONS ─── */
.section-pad { padding: 80px 80px; position: relative; z-index: 1; }
.section-label {
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); display: flex;
  align-items: center; gap: 12px; margin-bottom: 40px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--nude-dark); }

/* ─── FLAGSHIP CALLOUT ─── */
.flagship-callout {
  position: relative; z-index: 1;
  background: var(--ink); color: var(--white);
  padding: 80px; display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; overflow: hidden;
  transition: background var(--transition-smooth);
}
a.flagship-callout { cursor: pointer; text-decoration: none; }
a.flagship-callout:hover { background: #242422;
}
.flagship-callout::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.flagship-tag {
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sand); display: flex;
  align-items: center; gap: 12px;
  margin-bottom: 24px; position: relative; z-index: 1;
}
.flagship-tag::before { content: ''; width: 24px; height: 1px; background: var(--sand); }
.flagship-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.1; margin-bottom: 20px;
  position: relative; z-index: 1;
}
.flagship-title em { font-style: italic; color: var(--sand); }
.flagship-desc {
  font-size: 15px; color: rgba(255,255,255,0.5);
  line-height: 1.8; margin-bottom: 32px;
  font-weight: 300; max-width: 460px;
  position: relative; z-index: 1;
}
.flagship-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; background: rgba(255,255,255,0.1);
  position: relative; z-index: 1;
}
.flagship-spec {
  background: var(--ink); padding: 18px;
  border: 1px solid rgba(255,255,255,0.07);
}
.flagship-spec-key {
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 0.1em; color: var(--sand);
  text-transform: uppercase; margin-bottom: 5px;
}
.flagship-spec-val {
  font-family: 'DM Serif Display', serif;
  font-size: 16px; color: var(--white);
}

/* Rack Visualization */
.rack-vis { position: relative; width: 280px; height: 200px; z-index: 1; }
.rack-outer {
  position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 3px;
  animation: rackPulse 4s ease-in-out infinite;
}
.rack-rail {
  position: absolute; top: 0; bottom: 0; width: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.rack-rail-l { left: 0; border-radius: 3px 0 0 3px; }
.rack-rail-r { right: 0; border-radius: 0 3px 3px 0; }
.rack-unit {
  position: absolute; top: 20px; bottom: 20px; left: 18px; right: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 2px; background: rgba(255,255,255,0.02);
}
.rack-front {
  position: absolute; inset: 12px;
  display: flex; gap: 16px; align-items: stretch;
}
.rack-vents {
  flex: 1; display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 4px; align-content: center;
}
.rack-vent {
  height: 3px; background: rgba(255,255,255,0.08);
  border-radius: 1px; animation: finGlow 3s ease-in-out infinite;
}
.rack-vent:nth-child(odd) { animation-delay: 0.2s; }
.rack-vent:nth-child(even) { animation-delay: 0.5s; }
.rack-drives {
  width: 60px; display: flex; flex-direction: column;
  gap: 6px; justify-content: center;
}
.rack-drive {
  height: 24px; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1px; background: rgba(255,255,255,0.03);
  position: relative;
}
.rack-drive::after {
  content: ''; position: absolute; top: 50%; right: 6px;
  width: 4px; height: 4px; border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
}
.rack-led {
  position: absolute; width: 6px; height: 6px;
  background: var(--sand); border-radius: 50%;
  top: 10px; left: 26px;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(196,185,172,0.4);
}
.rack-label {
  position: absolute; bottom: -32px; left: 50%;
  transform: translateX(-50%);
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.2);
  text-transform: uppercase; white-space: nowrap;
}

/* ─── PRODUKTFILTER (Facetten-Sidebar, DESIGN.md §15) ─── */
.pf-layout {
  display: flex; gap: 40px; align-items: flex-start;
}
.pf-main { flex: 1; min-width: 0; }

/* Sidebar: sticky unter der fixierten Nav (64px), scrollt bei Überlänge intern. */
.pf-sidebar {
  flex: 0 0 210px;
  position: sticky; top: 88px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
}
.pf-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px;
}
.pf-title {
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute);
}
.pf-close { display: none; }

.pf-group { border-top: 1px solid var(--nude-dark); padding: 10px 0; }
.pf-group summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.pf-group summary::-webkit-details-marker { display: none; }
.pf-group summary::after { content: '−'; color: var(--ink-mute); }
.pf-group:not([open]) summary::after { content: '+'; }
.pf-opts { padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }

.pf-opt {
  display: flex; align-items: center; gap: 9px;
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  padding: 4px 0; cursor: pointer;
}
.pf-box {
  width: 13px; height: 13px; flex: 0 0 auto;
  border: 1px solid var(--nude-dark); background: var(--white);
  position: relative; transition: all var(--transition-fast);
}
.pf-opt:hover .pf-box { border-color: var(--ink); }
.pf-opt--on .pf-box { background: var(--ink); border-color: var(--ink); }
.pf-opt--on .pf-box::after {
  content: ''; position: absolute; left: 4px; top: 1px;
  width: 3px; height: 7px;
  border: solid var(--white); border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.pf-count { margin-left: auto; color: var(--ink-mute); }
/* 0 Treffer: ausgrauen statt verstecken — keine Null-Treffer-Sackgassen. */
.pf-opt--off { opacity: 0.35; pointer-events: none; }
.pf-stock { border-top: 1px solid var(--nude-dark); padding: 12px 0 2px; }

/* Drawer-Footer (Batch-Apply) — nur mobil sichtbar. */
.pf-foot { display: none; }

/* Topbar über dem Raster: [Filter-Button mobil] [Trefferzahl] [Sortierung] */
.pf-topbar {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.pf-toggle { display: none; }
.pf-result {
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute);
}
.pf-topbar .woocommerce-ordering { margin-left: auto; }

/* Aktive Filter als entfernbare Chips */
.pf-chips {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 20px;
}
.pf-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--white);
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 7px 11px; text-decoration: none;
  transition: background var(--transition-fast);
}
.pf-chip:hover { background: var(--ink-soft); }
.pf-clear {
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: var(--ink-mute); text-decoration: underline; margin-left: 4px;
}
.pf-clear:hover { color: var(--ink); }

/* Overlay hinter dem Mobile-Drawer (Element wird per JS eingehängt).
   z-index bewusst ÜBER dem Cookie-Banner (9999): der Banner ist bottom-fixed
   und würde sonst den sticky Apply-Footer des Drawers verdecken. Solange der
   Drawer offen ist, darf der Banner abgedunkelt hinter dem Overlay liegen. */
.pf-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(28,28,26,0.45); z-index: 10000;
}
body.pf-drawer-open .pf-overlay { display: block; }

/* Raster neben der Sidebar: 3 Spalten statt 4 (DESIGN.md §15.4). */
.pf-main .product-grid { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1100px) {
  .pf-layout { gap: 28px; }
  .pf-main .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobil: Sidebar wird zum Bottom-Sheet-Drawer mit Batch-Apply.
   Ohne JS bleibt der Drawer zu — gleiche JS-Abhängigkeit wie das
   Hamburger-Menü (.sb-nav-links), bewusst konsistent gehalten. */
@media (max-width: 768px) {
  .pf-layout { display: block; }
  .pf-toggle {
    display: inline-block;
    font-family: 'DM Mono', monospace; font-size: 11px;
    letter-spacing: 0.06em; text-transform: uppercase;
    padding: 9px 16px; background: var(--ink); color: var(--white);
    border: 1px solid var(--ink); cursor: pointer;
  }
  .pf-sidebar {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    z-index: 10010; max-height: 85vh; overflow-y: auto;
    background: var(--white); border-top: 1px solid var(--ink);
    padding: 18px 24px 0;
    transform: translateY(100%); visibility: hidden;
    transition: transform var(--transition-smooth), visibility var(--transition-smooth);
  }
  body.pf-drawer-open .pf-sidebar { transform: translateY(0); visibility: visible; }
  body.pf-drawer-open { overflow: hidden; }
  .pf-close {
    display: block; background: none; border: 0; padding: 4px;
    font-size: 20px; line-height: 1; color: var(--ink); cursor: pointer;
  }
  /* Größere Touch-Ziele im Drawer */
  .pf-opt { padding: 6px 0; }
  .pf-foot {
    display: flex; align-items: center; gap: 16px;
    position: sticky; bottom: 0; background: var(--white);
    border-top: 1px solid var(--nude-dark);
    margin-top: 16px; padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
  }
  .pf-reset {
    background: none; border: 0; padding: 0; cursor: pointer;
    font-family: 'DM Mono', monospace; font-size: 11px;
    color: var(--ink-mute); text-decoration: underline;
  }
  .pf-apply {
    flex: 1; background: var(--ink); color: var(--white); border: 0;
    font-family: 'DM Mono', monospace; font-size: 12px;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 14px 16px; cursor: pointer;
  }
  .pf-apply:disabled { opacity: 0.4; cursor: default; }
}

@media (max-width: 480px) {
  .pf-main .product-grid { grid-template-columns: 1fr; }
}
/* ─── PRODUCT GRID ─── */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--nude-dark);
}
/* Startseite „Alle Produkte": genau 3 Spalten → 6 Produkte = 2 Zeilen.
   Nur Desktop überschrieben; ab ≤1100px gilt ohnehin schon repeat(3),
   ≤768px → 2, ≤480px → 1 (Basis-.product-grid-Media-Queries unten). */
.product-grid--home { grid-template-columns: repeat(3, 1fr); }
/* Kacheln ~20% kleiner: Grid auf 80% Breite zentrieren (3×2-Layout bleibt).
   Nur ab Tablet/Desktop — mobil (≤768px) volle Breite, sonst zu schmal. */
@media (min-width: 769px) {
  .product-grid--home { max-width: 80%; margin-inline: auto; }
}
.product-card {
  background: var(--white); cursor: pointer;
  position: relative; overflow: hidden;
  transition: background 0.3s;
  display: flex; flex-direction: column;
  color: inherit;
}
/* Stretched-Link: füllt die ganze Karte, klickbar, visuell unsichtbar.
   Der Quick-Add-Button liegt als sibling über dem Link (z-index). */
.product-card-link {
  position: absolute; inset: 0; z-index: 1;
  font-size: 0; color: transparent; text-decoration: none;
}
.product-card-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
.product-card .product-add {
  position: relative; z-index: 2;
}
/* Deko-Pfeil (span, kein Quick-Add-Button) soll den Klick zur Karte durchreichen. */
.product-card span.product-add {
  pointer-events: none;
}
.product-card:hover { background: rgba(237,232,225,0.35); }
.product-card:hover .product-add {
  background: var(--ink); color: var(--white);
  border-color: var(--ink);
}
.product-img {
  aspect-ratio: 1; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--nude);
}
.product-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(.2,0,0,1);
}
.product-card:hover .product-img img {
  transform: scale(1.06);
}
/* Startseite: Produktbilder kleiner darstellen, Kachelgröße bleibt gleich.
   Das quadratische .product-img behält seine Maße; nur das Bild darin wird
   zentriert auf 70% verkleinert (nude-Rand drumherum, wie bei den Thumbs).
   Nur .product-grid--home → Shop-Archiv & "Ähnliche Produkte" unverändert. */
.product-grid--home .product-img img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}
/* Shop-/Kategorie-Archiv ("Products"-Seite): Produktbilder ebenfalls 30%
   kleiner (70%), Kacheln bleiben. body.servben-shop grenzt es vom Single-
   Product-"Ähnliche Produkte"-Grid (body.servben-product) ab. */
body.servben-shop .product-img img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}
.prod-badge {
  position: absolute; top: 10px; left: 10px;
  font-family: 'DM Mono', monospace; font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 8px; pointer-events: none; z-index: 2;
}
.prod-badge.new { background: var(--ink); color: var(--white); }
.prod-badge.sale { background: var(--red); color: #fff; }
.prod-badge.used { background: var(--sand); color: var(--ink); }
/* Ausverkauft: bewusst gedämpftes Grau statt Rot — Rot ist im Theme als
   Sale-/Deal-Signal belegt und würde hier das Gegenteil kommunizieren. */
.prod-badge.out { background: var(--ink-mute); color: var(--white); }

/* Ausverkaufte Produkte bleiben im Katalog, treten aber optisch zurück. */
.product-card--out .product-img img { opacity: 0.55; }

.product-body {
  padding: 16px 18px 20px; flex: 1;
  display: flex; flex-direction: column;
}
.product-sku {
  font-family: 'DM Mono', monospace; font-size: 10px;
  color: var(--ink-mute); letter-spacing: 0.1em; margin-bottom: 6px;
}
.product-name {
  font-family: 'DM Serif Display', serif; font-size: 15px;
  color: var(--ink); margin-bottom: 4px;
  line-height: 1.35; flex: 1;
}
.product-sub {
  font-size: 12px; color: var(--ink-mute);
  margin-bottom: 14px; line-height: 1.5;
}
.product-variants {
  font-size: 11px; color: var(--ink-mute);
  margin-bottom: 10px; font-family: 'DM Mono', monospace;
  letter-spacing: 0.04em;
}
.product-footer {
  display: flex; justify-content: space-between; align-items: center;
}
.product-price {
  font-family: 'DM Mono', monospace; font-size: 14px;
  font-weight: 500; color: var(--ink);
}
.product-add {
  width: 30px; height: 30px;
  background: var(--nude); border: 1px solid var(--nude-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--ink-soft);
  cursor: pointer; transition: all 0.25s; flex-shrink: 0;
}

/* ─── FEATURES STRIP ─── */
.features-strip {
  position: relative; z-index: 1;
  background: var(--nude);
  border-top: 1px solid var(--nude-dark);
  border-bottom: 1px solid var(--nude-dark);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.feat-item {
  padding: 32px 28px;
  border-right: 1px solid var(--nude-dark);
  display: flex; gap: 14px; align-items: flex-start;
}
.feat-item:last-child { border-right: none; }
.feat-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.feat-title {
  font-family: 'DM Serif Display', serif;
  font-size: 14px; margin-bottom: 5px; color: var(--ink);
}
.feat-desc { font-size: 13px; color: var(--ink-mute); line-height: 1.65; }
/* Bewertungs-Sterne hervorheben (gold, etwas größer). */
.rating-stars {
  color: #d4a017; letter-spacing: 1px; font-size: 15px;
  margin-right: 4px;
}

/* ─── FOOTER ─── */
.sb-footer {
  position: relative; z-index: 1;
  background: var(--ink); color: var(--white);
  padding: 56px 80px 32px;
  margin-top: auto;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.footer-brand {
  font-family: 'DM Mono', monospace; font-size: 18px;
  font-weight: 500; letter-spacing: 0.1em; margin-bottom: 14px;
}
.footer-brand a { color: var(--white); text-decoration: none; }
.footer-brand-desc {
  font-size: 13px; color: rgba(255,255,255,0.35);
  line-height: 1.8; max-width: 260px;
}
.footer-col h4 {
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sand); margin-bottom: 18px; font-weight: 400;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 13px; color: rgba(255,255,255,0.4);
  text-decoration: none; transition: color var(--transition-fast);
}
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-copy {
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: rgba(255,255,255,0.2); letter-spacing: 0.06em;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: 12px; color: rgba(255,255,255,0.2);
  text-decoration: none; transition: color var(--transition-fast);
}
.footer-legal a:hover { color: var(--white); }

/* ─── PRODUCT DETAIL ─── */
.pd-back {
  position: relative; z-index: 1;
  padding: 20px 80px; display: flex;
  align-items: center; gap: 10px;
  font-family: 'DM Mono', monospace; font-size: 12px;
  letter-spacing: 0.08em; color: var(--ink-mute);
  cursor: pointer; transition: color var(--transition-fast);
  border-bottom: 1px solid var(--nude-dark);
  background: var(--white); text-decoration: none;
}
.pd-back:hover { color: var(--ink); }

.pd-main {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 5fr 7fr;
  min-height: calc(100vh - 130px);
}
.pd-gallery {
  background: var(--nude); display: flex;
  flex-direction: column; gap: 0; padding: 0;
}
.pd-main-img {
  flex: 1; display: flex; align-items: center;
  justify-content: center; min-height: 280px;
  position: relative; overflow: hidden;
}
.pd-main-img img {
  max-width: 85%; max-height: 85%; object-fit: contain;
}
.pd-thumbs { display: flex; gap: 4px; justify-content: center; }
.pd-thumb {
  width: 76px; height: 76px; flex: 0 0 76px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
  border: 2px solid transparent; overflow: hidden;
  background: var(--nude);
}
.pd-thumb.active { border-color: var(--ink); background: var(--white) !important; }
.pd-thumb:hover { opacity: 0.85; }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.pd-info {
  padding: 56px 60px; display: flex;
  flex-direction: column; overflow-y: auto;
}
.pd-breadcrumb {
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.08em;
  margin-bottom: 20px; display: flex;
  align-items: center; gap: 8px;
}
.pd-bc-sep { color: var(--nude-dark); }
.pd-bc-link {
  cursor: pointer; transition: color var(--transition-fast);
  text-decoration: none;
}
.pd-bc-link:hover { color: var(--ink); }
.pd-name {
  font-family: 'DM Serif Display', serif;
  font-size: 32px; line-height: 1.15;
  margin-bottom: 10px; color: var(--ink);
}
.pd-sku {
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.1em; margin-bottom: 16px;
}
.pd-rating {
  display: flex; align-items: center;
  gap: 8px; margin-bottom: 20px;
}
.stars { color: #C47A3A; font-size: 14px; letter-spacing: 2px; }
.rating-count { font-size: 13px; color: var(--ink-mute); }
.pd-price-wrap {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px;
  margin-bottom: 24px; padding-bottom: 24px;
  border-bottom: 1px solid var(--nude-dark);
}
.pd-price {
  font-family: 'DM Mono', monospace; font-size: 28px;
  font-weight: 500; color: var(--ink);
}
.pd-tax { font-size: 13px; color: var(--ink-mute); }
/* T2-Add-on-Preisanzeige: durchgestrichener Grundpreis (links) und Aufpreis-
   Hinweis stehen INLINE neben dem Gesamtpreis — so wächst die Preiszeile bei
   Auswahl nur in der Breite und die Seite springt nicht nach unten. */
.pd-base-price {
  font-family: 'DM Mono', monospace; font-size: 15px;
  color: var(--ink-mute); text-decoration: line-through;
}
.pd-addon-note {
  font-family: 'DM Mono', monospace; font-size: 13px;
  color: var(--ink-soft);
}
/* Trust badges */
.pd-trust {
  display: flex; gap: 20px; padding: 18px;
  background: var(--nude); border: 1px solid var(--nude-dark);
  margin-bottom: 24px;
}
.pd-trust-item {
  display: flex; align-items: center;
  gap: 8px; font-size: 12px; color: var(--ink-soft);
}

/* Accordion */
/* Jedes Accordion ist eine eigene umrandete Karte → liest sich klar als
   aufklappbares Element (vorher nur eine dünne Trennlinie, kaum erkennbar). */
.acc-item {
  border: 1px solid var(--nude-dark);
  background: var(--white);
  margin-bottom: 10px;
  transition: border-color var(--transition-fast);
}
.acc-item:hover { border-color: var(--sand); }
.acc-item.open { border-color: var(--sand); }
.acc-header {
  display: flex; justify-content: space-between;
  align-items: center; gap: 16px; padding: 16px 18px;
  cursor: pointer; user-select: none;
  font-family: 'DM Serif Display', serif;
  font-size: 16px; color: var(--ink);
  transition: background var(--transition-fast), color var(--transition-fast);
  background: var(--nude-light); border: none; width: 100%; text-align: left;
}
/* Kopf = Beige-Leiste wie der Trust-Balken darüber (--nude), nur einen Tick
   heller (--nude-light); Hover vertieft auf die volle Balkenfarbe --nude. */
.acc-header:hover { background: var(--nude); }
/* "+"/"×"-Umschalter als deutlich sichtbarer runder Button — neutral
   (kein Farbakzent), passend zur Beige-Optik des Balkens. */
.acc-icon {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid var(--nude-dark); border-radius: 50%;
  background: var(--white); color: var(--ink);
  font-size: 18px; line-height: 1;
  transition: transform 0.3s, background var(--transition-fast),
              color var(--transition-fast), border-color var(--transition-fast);
}
.acc-header:hover .acc-icon {
  background: var(--ink); color: var(--white); border-color: var(--ink);
}
.acc-item.open .acc-icon {
  transform: rotate(45deg);
  background: var(--ink); color: var(--white); border-color: var(--ink);
}
.acc-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
}
.acc-item.open .acc-body { max-height: 800px; }
.acc-content {
  padding: 14px 18px 18px; font-size: 14px;
  color: var(--ink-soft); line-height: 1.8;
  border-top: 1px solid var(--nude);
}
.acc-content p { margin-bottom: 12px; }
.faq-list { margin-top: 32px; }
.acc-table { width: 100%; border-collapse: collapse; }
.acc-table td {
  padding: 8px 0; border-bottom: 1px solid var(--nude);
  font-size: 13px;
}
.acc-table td:first-child {
  color: var(--ink-mute);
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.06em; width: 40%;
}

/* ─── LIEFERUMFANG ─── */
.lieferumfang-cap {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-mute); margin: 0 0 8px;
}
.lieferumfang-list { list-style: none; margin: 0; padding: 0; }
.lieferumfang-list li {
  position: relative; padding: 5px 0 5px 22px;
  font-size: 14px; color: var(--ink-soft); line-height: 1.6;
}
.lieferumfang-list li::before {
  content: '\2713'; /* ✓ */
  position: absolute; left: 0; top: 5px;
  color: var(--ink); font-size: 13px;
}
/* Variantenabhängiger Zusatz: abgesetzte Beige-Box mit "+"-Markern. */
.lieferumfang-extra {
  margin-top: 16px; padding: 13px 15px;
  background: var(--nude-light);
  border: 1px solid var(--nude-dark); border-radius: 2px;
}
.lieferumfang-extra + .lieferumfang-extra { margin-top: 10px; }
.lieferumfang-extra .lieferumfang-cap { color: var(--ink-soft); }
.lieferumfang-list--extra li::before {
  content: '+'; color: var(--ink-mute); font-weight: 500; font-size: 15px; top: 4px;
}
/* Optional-Kennzeichnung: Badge am Titel + erklärender Hinweissatz. */
.lieferumfang-extra-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.lieferumfang-extra-head .lieferumfang-cap { margin-bottom: 0; }
.lieferumfang-badge {
  flex-shrink: 0;
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 20px;
  background: var(--sand); color: var(--ink);
  white-space: nowrap;
}
.lieferumfang-hint {
  font-size: 12.5px; font-style: italic; color: var(--ink-mute);
  margin: 6px 0 10px; line-height: 1.45;
}

/* ─── PRODUCT TABS ─── */
.pd-tabs {
  position: relative; z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px 60px;
}
.pd-tabs-nav {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--nude-dark);
  margin-bottom: 32px;
}
.pd-tab-btn {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: none; border: none;
  padding: 16px 24px;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}
.pd-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform var(--transition-smooth);
}
.pd-tab-btn:hover { color: var(--ink-soft); }
.pd-tab-btn.active {
  color: var(--ink);
}
.pd-tab-btn.active::after {
  transform: scaleX(1);
}
.pd-tab-panel {
  display: none;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.pd-tab-panel.active {
  display: block;
}
.pd-tab-panel p { margin-bottom: 12px; }
/* Tabellen im Beschreibungstext (vom Redakteur via Editor eingefügt):
   ohne diese Regeln greifen Browser-Defaults (th zentriert, Spalten springen).
   Look angelehnt an .acc-table: links ausgerichtet, dezente Trennlinien. */
.pd-tab-panel table {
  border-collapse: collapse;
  margin: 0 0 24px;
  max-width: 100%;
}
.pd-tab-panel th,
.pd-tab-panel td {
  text-align: left;
  vertical-align: top;
  padding: 8px 0;
  border-bottom: 1px solid var(--nude);
}
.pd-tab-panel th {
  font-weight: 500;
  color: var(--ink);
  padding-right: 36px;
}
.pd-tab-panel td { color: var(--ink-soft); }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 32px; right: 32px; z-index: 1000;
  background: var(--ink); color: var(--white);
  padding: 16px 24px; display: flex;
  align-items: center; gap: 12px;
  font-family: 'DM Mono', monospace; font-size: 12px;
  letter-spacing: 0.06em;
  transform: translateY(80px); opacity: 0;
  transition: all 0.4s ease; max-width: 320px;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ─── WooCommerce OVERRIDES ─── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  border-top: 2px solid var(--ink);
  background: var(--nude);
  padding: 14px 20px 14px 48px;
  margin-bottom: 24px;
  position: relative;
  line-height: 1.6;
  /* Flex damit Text, Checkmark (::before, absolute) und Action-Button
     vertikal auf einer Linie sitzen statt Text oben. */
  display: flex;
  align-items: center;
  gap: 16px;
}
/* Action-Button („Warenkorb anzeigen") nach ganz rechts schieben — robust
   gegenüber WCs wechselnder DOM-Reihenfolge (mal Button vor Text, mal nach). */
.woocommerce-message > .button,
.woocommerce-info > .button,
.woocommerce-error > .button {
  margin-left: auto;
}
.woocommerce-message { border-top-color: var(--green); }
.woocommerce-error { border-top-color: var(--red); }
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  color: var(--ink);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button {
  font-family: 'DM Mono', monospace !important;
  font-size: 12px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ink) !important;
  color: var(--white) !important;
  padding: 12px 24px !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer;
  transition: all 0.25s;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--ink-soft) !important;
  color: var(--white) !important;
}
.woocommerce .quantity .qty {
  font-family: 'DM Mono', monospace;
  border: 1px solid var(--nude-dark);
  padding: 8px;
  width: 60px;
  text-align: center;
}
/* Cart totals — see assets/css/woocommerce.css for full styling */

/* WooCommerce single product - form styling */
.woocommerce div.product form.cart {
  margin-bottom: 24px;
}
.woocommerce div.product form.cart .button {
  font-family: 'DM Mono', monospace !important;
  font-size: 12px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ink) !important;
  color: var(--white) !important;
  padding: 16px 32px !important;
  border: none !important;
  border-radius: 0 !important;
  width: 100%;
  margin-top: 20px;
}

/* WooCommerce variations */
.woocommerce div.product form.cart .variations {
  margin-bottom: 16px;
}
.woocommerce div.product form.cart .variations td.label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-right: 20px;
}
.woocommerce div.product form.cart .variations td.value select {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  padding: 9px 14px;
  border: 1px solid var(--nude-dark);
  background: var(--white);
  color: var(--ink-soft);
}

/* Variation Swatches */
.servben-var-group {
  margin-bottom: 20px;
}
/* "Schwarzer Balken": Label mit kurzem schwarzem Akzent-Balken davor — wirkt
   als klare Überschrift, ohne den vollflächigen, invertierten Tag-Block. */
.servben-var-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}
.servben-var-label::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
}
.servben-var-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.servben-var-chip {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  /* 500 = schwerster gebündelter DM-Mono-Schnitt (700 ist nicht geladen und
     würde nur faux-fett synthetisiert). Schwarze Schrift + schwarzer Rahmen
     heben die Varianten deutlich hervor. */
  font-weight: 500;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  cursor: pointer;
  color: var(--ink);
  transition: all var(--transition-fast);
  background: var(--white);
}
.servben-var-chip.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.servben-addons {
  margin-bottom: 4px;
}
/* Aufpreis-Hinweis in der Warenkorb-/Kassen-Position. */
.servben-addon-fee {
  white-space: nowrap;
  opacity: 0.8;
}

/* Add-on-Optionen als Apple-Karten (Variante 4): <label> mit verstecktem Radio,
   Auswahl über Rahmen + gefüllten Radio-Punkt, Preis rechts. */
.servben-addon-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.servben-addon-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--nude-dark);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.servben-addon-card:hover:not(.active) {
  border-color: var(--ink-mute);
}
.servben-addon-card.active {
  /* 2px Rahmen, Padding um 1px reduziert → kein Layout-Sprung beim Wechsel. */
  border: 2px solid var(--ink);
  padding: 13px 15px;
}
.servben-addon-card:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.servben-addon-radio {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-mute);
  position: relative;
}
.servben-addon-card.active .servben-addon-radio {
  border-color: var(--ink);
}
.servben-addon-card.active .servben-addon-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--ink);
}
.servben-addon-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.servben-addon-title {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  color: var(--ink);
}
.servben-addon-desc {
  font-size: 12.5px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.servben-addon-price {
  flex: none;
  margin-top: 1px;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}
.servben-addon-price--incl {
  color: var(--ink-mute);
}
.servben-var-chip:hover:not(.active) {
  border-color: var(--ink);
  background: var(--nude);
}
.servben-var-clear {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 8px;
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}
.servben-var-clear:hover {
  color: var(--ink);
}

/* Germanized overrides */
.wc-gzd-additional-info {
  font-size: 12px;
  color: var(--ink-mute);
}
.wc-gzd-additional-info a {
  color: var(--ink-mute);
  text-decoration: underline;
}

/* ─── PAGE CONTENT ─── */
.page-content {
  padding-top: 64px;
  position: relative;
  z-index: 1;
}
.page-content .entry-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.page-content .entry-title {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  margin-bottom: 32px;
  color: var(--ink);
}
.page-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  margin: 32px 0 16px;
}
.page-content h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  margin: 24px 0 12px;
}

/* ─── CONTACT FORM 7 ─── */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 12px 16px;
  border: 1px solid var(--nude-dark);
  background: var(--white);
  color: var(--ink);
  width: 100%;
  outline: none;
  transition: border-color var(--transition-fast);
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: var(--ink);
}
.wpcf7 input[type="submit"] {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--white);
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}
.wpcf7 input[type="submit"]:hover {
  background: var(--ink-soft);
}

/* ─── ALTCHA-WIDGET (inc/altcha.php) ───
   Kontaktformular + WooCommerce-Registrierung. Im .contact-form regelt der
   Flex-Gap den Abstand, im WC-Formular braucht es eigenen Abstand. */
.servben-altcha { margin: 0 0 16px; max-width: 100%; }
.contact-form .servben-altcha { margin: 0; }

/* ─── CONTACT PAGE (eigenes Formular) ─── */
.contact-form { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.contact-form .form-row { display: flex; flex-direction: column; gap: 8px; }
.contact-form label {
  font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.contact-form .form-opt { color: var(--ink-mute); text-transform: none; letter-spacing: 0; }
.contact-form .form-req { color: var(--red); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  padding: 12px 16px; border: 1px solid var(--nude-dark);
  background: var(--white); color: var(--ink);
  width: 100%; outline: none;
  transition: border-color var(--transition-fast);
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--ink); }
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form .form-err {
  font-family: 'DM Mono', monospace; font-size: 11px; color: var(--red);
}
.contact-form .form-hint { font-size: 12px; color: var(--ink-mute); margin: -4px 0 0; }
.contact-form .contact-submit { align-self: flex-start; margin-top: 4px; border: none; }
/* Datenschutz-Checkbox: Sans-Fließtext (nicht das Mono-Uppercase der Labels);
   .contact-form-Scope schlägt die Spezifität von ".contact-form label". */
.contact-check-row { display: flex; align-items: flex-start; gap: 10px; }
.contact-check-row input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--ink); cursor: pointer;
}
.contact-form .contact-check-label {
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  letter-spacing: 0; text-transform: none;
  color: var(--ink-soft); line-height: 1.5; cursor: pointer;
}
.contact-form .contact-check-label a { color: var(--ink); text-decoration: underline; }
.contact-form .contact-check-label a:hover { color: var(--ink-mute); }
/* Honeypot: für Menschen unsichtbar — bewusst KEIN display:none (das erkennen
   manche Bots und überspringen es). Off-screen statt versteckt. */
.servben-hp {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}
.contact-notice { padding: 14px 18px; margin-top: 24px; font-size: 14px; border: 1px solid var(--nude-dark); }
.contact-notice--ok  { border-color: var(--green); color: var(--green); background: rgba(45,106,79,0.06); }
.contact-notice--err { border-color: var(--red);   color: var(--red);   background: rgba(196,94,62,0.06); }

/* ─── QUANTITY STEPPER BUTTONS (JS-enhanced) ─── */
.servben-qty-btn {
  width: 36px; height: 36px;
  background: var(--nude); border: none;
  cursor: pointer; font-size: 18px;
  color: var(--ink-soft);
  transition: background var(--transition-fast);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; line-height: 1;
}
.servben-qty-btn:hover { background: var(--nude-dark); }
.servben-qty-minus { border-right: 1px solid var(--nude-dark); }
.servben-qty-plus { border-left: 1px solid var(--nude-dark); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
@keyframes rackPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196,185,172,0); }
  50% { box-shadow: 0 0 32px 4px rgba(196,185,172,0.12); }
}
@keyframes finGlow {
  0%, 100% { background: rgba(255,255,255,0.1); }
  50% { background: rgba(255,255,255,0.22); }
}

/* ─── A11y UTILITIES ─── */
/* Visually-hidden Helper (WP-Standard-Pattern) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* Skip-Link: standardmäßig versteckt, beim Tastatur-Fokus sichtbar oben links */
.skip-link {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
}
.skip-link:focus {
  background: var(--ink);
  color: var(--white);
  clip: auto;
  -webkit-clip-path: none;
  clip-path: none;
  display: block;
  height: auto;
  left: 16px;
  top: 16px;
  padding: 12px 20px;
  text-decoration: none;
  width: auto;
  z-index: 100000;
  outline: 2px solid var(--sand);
}

/* ─── PAGE LAYOUT UTILITIES ─── */
/* Offsets unter der fixen Nav (64px) */
.page-content { padding-top: 104px; }
.page-content--shop { padding-top: 64px; position: relative; z-index: 1; }

/* Statische Seiten-Typo (404, index, single, imprint, page) */
.entry-title {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  margin-bottom: 24px;
}
.entry-content { font-size: 15px; color: var(--ink-soft); line-height: 1.8; }
.entry-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 16px;
}
.entry-content h2:first-of-type { margin-top: 48px; }

/* Empty-State (Shop ohne Produkte etc.) */
.empty-state {
  text-align: center; padding: 60px 0;
  color: var(--ink-mute);
  font-family: 'DM Mono', monospace; font-size: 13px;
}

/* 404 */
.error-404 { text-align: center; padding: 120px 0; }
.error-404__code {
  font-family: 'DM Mono', monospace;
  font-size: 80px; color: var(--nude-dark);
  margin-bottom: 24px;
}
.error-404__lead { color: var(--ink-mute); margin-bottom: 32px; }

/* Single-Post */
.post-meta-date {
  font-family: 'DM Mono', monospace;
  font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}
.post-thumb { margin-bottom: 32px; }

/* WooCommerce-Pages (Cart/Checkout/Account) wider container */
.wc-page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.wc-page-title {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  margin-bottom: 32px;
}

/* Imprint */
.imprint-content { max-width: 720px; }

/* Single-Product Layout */
.shop-page-section { padding-top: 40px; }
.shop-notices { padding-top: 20px; padding-bottom: 0; }
.pd-main-img { background: var(--nude); }
.pd-main-img img { transition: opacity 0.15s ease; }
.pd-no-image {
  width: 200px; height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.pd-no-image-text {
  font-family: 'DM Mono', monospace;
  font-size: 13px; color: var(--ink-mute);
}
.pd-active-img-fit { max-width: 85%; max-height: 85%; object-fit: contain; }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; background: var(--nude); }
.pd-badge-overlay { position: absolute; top: 20px; left: 20px; }
.pd-bc-current { color: var(--ink); }
.pd-gzd-info { margin-top: -16px; margin-bottom: 16px; }
.pd-acc-wrap { border-top: 1px solid var(--nude-dark); padding-top: 20px; }
.pd-tabs--bordered { border-top: 1px solid var(--nude-dark); padding-top: 40px; }
.pd-related { border-top: 1px solid var(--nude-dark); }
.pd-pagination {
  padding-top: 40px;
  display: flex; justify-content: center; gap: 4px;
}

/* Product Card Placeholder (kein Featured Image) */
.product-card-no-image {
  width: 100%; height: 100%;
  background: var(--nude);
  display: flex; align-items: center; justify-content: center;
}
.product-card-no-image-text {
  font-family: 'DM Mono', monospace;
  font-size: 11px; color: var(--ink-mute);
}

/* Hero Product Card Placeholder (kein Featured Image) */
.hpc-img-placeholder { width: 100%; height: 100%; background: var(--nude-dark); }

/* Flagship Callout */
.flagship-cta {
  margin-top: 28px; margin-bottom: 36px; position: relative; z-index: 1;
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}
.flagship-btn { background: var(--white); color: var(--ink); display: inline-block; }
.flagship-rack-wrap { display: flex; align-items: center; justify-content: center; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .sb-nav { padding: 0 20px; }
  .sb-nav-links { display: none; }
  .sb-nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(250,250,248,0.98);
    backdrop-filter: blur(18px);
    padding: 20px;
    border-bottom: 1px solid var(--nude-dark);
    gap: 16px;
  }
  .sb-menu-toggle { display: block; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 40px 24px; }
  .hero-right { padding: 40px 24px; min-height: 320px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .section-pad { padding: 40px 24px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .flagship-callout { grid-template-columns: 1fr; padding: 40px 24px; gap: 40px; }
  .features-strip { grid-template-columns: repeat(2, 1fr); }
  .sb-footer { padding: 40px 24px 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .pd-main { grid-template-columns: 1fr; }
  .pd-info { padding: 32px 24px; }
  .pd-back { padding: 16px 24px; }
  .pd-trust { flex-direction: column; gap: 10px; }
  .pd-tabs { padding: 0 24px 40px; }
  .pd-tab-btn { padding: 14px 16px; font-size: 11px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-prev { grid-template-columns: 1fr; }
  .features-strip { grid-template-columns: 1fr; }
  .feat-item { border-right: none; border-bottom: 1px solid var(--nude-dark); }
}
