/* =========================================================================
   style-refine.css — UI/UX-Verfeinerung (Hover, Fokus, Mikro-Interaktionen)
   Additiv & zuletzt geladen → überschreibt bei Bedarf, kollidiert nicht mit
   style.css / style-shop.css. Nutzt die vorhandenen Design-Tokens
   (--accent, --primary, --shadow-md, --shadow-lg) für ein konsistentes,
   flaches, professionelles Bild.
   ========================================================================= */

:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --lift: -4px;
}

/* Sanfte, einheitliche Übergänge auf interaktiven Elementen */
.btn,
.product-card,
.nav-link,
.usp-item-new,
.step-item,
.spec-item,
.cart-btn-full,
.cat-card-new,
.product-gallery img,
.footer-col ul a {
  transition: transform 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out),
              background-color 0.2s var(--ease-out),
              color 0.2s var(--ease-out);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-primary:hover {
  transform: translateY(var(--lift));
  box-shadow: 0 12px 24px -10px rgba(255, 72, 0, 0.45);
}
.btn-primary:active { transform: translateY(-1px); }

.btn-secondary:hover {
  transform: translateY(var(--lift));
  box-shadow: var(--shadow-md);
}
.btn-secondary:active { transform: translateY(-1px); }

/* ── Produktkarten ───────────────────────────────────────────────────── */
.product-card { position: relative; overflow: hidden; }
.product-card:hover {
  transform: translateY(var(--lift));
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 72, 0, 0.35);
}
.product-card .prod-img { overflow: hidden; }
.product-card .prod-img img {
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}
.product-card:hover .prod-img img { transform: scale(1.05); }

/* Add-to-Cart-Button in der Karte */
.cart-btn-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(255, 72, 0, 0.4);
}
.cart-btn-full.is-added { background: #16a34a; color: #fff; }

/* ── Navigation: animierter Unterstrich ──────────────────────────────── */
.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { transform: scaleX(1); }

/* ── Produkt-Galerie (Detailseite) ───────────────────────────────────── */
.product-gallery {
  overflow: hidden;
  border-radius: 16px;
}
.product-gallery img:hover { transform: scale(1.03); }

/* ── USP-Kacheln ─────────────────────────────────────────────────────── */
.usp-item-new:hover {
  transform: translateY(-3px);
}
.usp-item-new:hover i { color: var(--accent); }
.usp-item-new i { transition: color 0.2s var(--ease-out); }

/* ── "In 3 Schritten"-Karten ─────────────────────────────────────────── */
.step-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  background: var(--white);
}
.step-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 72, 0, 0.3);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 14px;
}

/* Falls die Schritt-Karten ohne Grid gerendert werden: sauberes Raster */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* ── Technische-Daten-Zeilen ─────────────────────────────────────────── */
.spec-item:hover { background: #fff7f3; }

/* ── Hersteller-/Kategorie-Karten ────────────────────────────────────── */
.cat-card-new:hover {
  transform: translateY(var(--lift));
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 72, 0, 0.3);
}
.cat-card-new img { transition: transform 0.4s var(--ease-out); }
.cat-card-new:hover img { transform: scale(1.06); }

/* ── Fokus-Zustände (Barrierefreiheit) ───────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Warenkorb-Icon im Header */
.cart-btn { transition: transform 0.2s var(--ease-out), color 0.2s var(--ease-out); }
.cart-btn:hover { transform: translateY(-1px); color: var(--accent); }

/* Footer-Links: dezenter Versatz */
.footer-col ul a:hover { padding-left: 4px; }

/* ── Sanftes Scrollen + Anker-Offset (Sprung „Zu den Geräten") ───────── */
html { scroll-behavior: smooth; }
:target, #geraete, [id] { scroll-margin-top: 110px; }

/* ── Einheitliches Produktbild-Format (auch für SVG-Platzhalter) ─────── */
.product-card .prod-img {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.product-card .prod-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 8px;
}
.product-gallery img { object-fit: contain; background: #fff; }

/* ── Preis & Badge betonen ───────────────────────────────────────────── */
.product-card .price { font-weight: 800; color: var(--primary); }
.product-card .badge,
.product-card > .badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; margin: 0;
}

/* ── Abschnitts-Rhythmus etwas luftiger ──────────────────────────────── */
#how-it-works { padding: 16px 0 8px; }
.steps-grid { margin-top: 8px; }

/* ── Varianten-/Hubhöhe-Auswahlfeld auf der Produktseite ─────────────── */
.variant-select {
  display: block;
  margin: 18px 0 4px;
}
.variant-select .variant-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.variant-select select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230B0F17' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.variant-select select:hover { border-color: var(--accent); }
.variant-select select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 72, 0, 0.12); }

/* ── Verkaufs-Highlights (Lithium-Ionen / Tragkraft) ─────────────────── */
.product-highlights { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 6px; }
.hl-chip {
  display:inline-flex; align-items:center; gap:7px;
  font-size:13px; font-weight:800; padding:8px 15px; border-radius:99px;
  text-transform:uppercase; letter-spacing:.4px;
}
.hl-chip i { font-size:13px; }
.hl-li   { background:#E8F7EE; color:#15803D; border:1px solid #BBE6CC; }   /* grün = Lithium-Ionen */
.hl-load { background:rgba(255,72,0,.08); color:var(--accent-dark); border:1px solid rgba(255,72,0,.22); }

/* Hervorhebung im Hero-Text */
.hero-content p strong { color:#15803D; font-weight:800; }
.hero-content p strong.load { color:var(--accent); }

/* ── Produktbeschreibung & Tabs: bessere Typografie ──────────────────── */
.prod-short { font-size:16px; line-height:1.7; color:var(--text-muted); margin:18px 0 0; }

.tab-section { margin-top:44px; }
.tab-nav { display:flex; gap:4px; border-bottom:1px solid var(--border); flex-wrap:wrap; }
.tab-link {
  padding:13px 20px; font-weight:700; font-size:13px; color:var(--text-muted);
  cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px;
  text-transform:uppercase; letter-spacing:.4px;
  transition:color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.tab-link:hover { color:var(--primary); }
.tab-link.active { color:var(--accent); border-bottom-color:var(--accent); }
.tab-container { padding-top:24px; }

#prod-desc-full { font-size:15.5px; line-height:1.75; color:var(--text); max-width:760px; }
#prod-desc-full p { margin:0 0 16px; }
#prod-desc-full strong { color:var(--primary); font-weight:700; }
#prod-desc-full h2, #prod-desc-full h3, #prod-desc-full h4 { color:var(--primary); margin:26px 0 10px; font-weight:800; }
#prod-desc-full ul { margin:0 0 16px; padding-left:0; list-style:none; }
#prod-desc-full ul li { position:relative; padding-left:26px; margin-bottom:9px; }
#prod-desc-full ul li::before { content:"✓"; position:absolute; left:0; top:0; color:#15803D; font-weight:900; }
#prod-desc-full .seo-text { color:var(--text-muted); font-size:14px; border-top:1px solid var(--border); margin-top:22px; padding-top:18px; }

/* Technische Daten — saubere zweispaltige Zeilen */
.spec-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 36px; }
@media (max-width:640px){ .spec-grid{ grid-template-columns:1fr; } }
.spec-item { display:flex; justify-content:space-between; gap:16px; padding:12px 4px; border-bottom:1px solid var(--border); background:none; }
.spec-item:hover { background:#fff7f3; }
.spec-label { color:var(--text-muted); font-size:14px; }
.spec-value { color:var(--primary); font-weight:700; font-size:14px; text-align:right; }

/* „Passend für" / Kompatibilität */
.compatibility-section { margin-top:36px; }
.compat-row { display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--border); }
.compat-brand { font-weight:700; color:var(--primary); }
.compat-oem code { background:#f1f5f9; padding:2px 8px; border-radius:6px; font-size:13px; }

/* Breadcrumbs dezent */
.breadcrumbs { font-size:13px; color:var(--text-muted); padding:8px 0 14px; }
.breadcrumbs a { color:var(--text-muted); }
.breadcrumbs a:hover { color:var(--accent); }

/* Preisbox etwas klarer */
.price-box .main-price { font-weight:900; }
.price-box .sub-price { display:block; margin-top:4px; font-size:13px; color:var(--text-muted); }

/* ════════ Codex Design-Review 2026-05-25 ════════ */

/* P1.2 — Mobile-Hero: kein horizontaler Overflow, H1 passt ins Viewport */
html, body { overflow-x: hidden; max-width: 100%; }
@media (max-width: 480px) {
  #hero h1 { font-size: clamp(30px, 9vw, 38px); line-height: 1.1; letter-spacing: -0.01em; }
  #hero p { font-size: 15px; }
  #hero { padding: 72px 0 56px; }
}

/* P1.1 — Cookie-Banner kompakt, verdeckt keine Produkte/CTA */
#cookie-banner { padding: 14px 0; }
.cookie-banner-inner { gap: 12px 20px; align-items: center; }
.cookie-banner-text h3 { font-size: 15px; margin-bottom: 4px; }
.cookie-banner-text p { font-size: 13px; line-height: 1.45; }
.cookie-banner-actions { flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.cookie-banner-actions .btn { width: auto; padding: 9px 16px; font-size: 13px; }
@media (max-width: 768px) {
  #cookie-banner { padding: 12px 0; max-height: 60vh; overflow-y: auto; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1 1 auto; }
}

/* P3.5 — Produktkarten kompakter: flacheres Bild, Titel max. 3 Zeilen, weniger Abstand */
.product-card .prod-img { aspect-ratio: 3 / 2; }
.product-card .prod-info { padding: 14px 16px; }
.product-card h3 {
  font-size: 15px; line-height: 1.3; margin: 6px 0 4px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .compat { font-size: 12px; margin: 0 0 6px; }
.product-card .price-box-mini { margin: 2px 0 10px; }

/* P2.4 — Kategorie-Beratungsbox (füllt Leerraum bei wenigen Produkten) */
.cat-help-box {
  border: 1px solid var(--border); border-radius: 16px; background: #fff;
  padding: 22px 24px; margin-top: 24px; box-shadow: var(--shadow);
}
.cat-help-box h3 { font-size: 17px; color: var(--primary); margin: 0 0 14px; font-weight: 800; }
.cat-help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.cat-help-item { display: flex; gap: 12px; align-items: flex-start; }
.cat-help-item i { color: var(--accent); font-size: 20px; margin-top: 2px; }
.cat-help-item strong { display: block; color: var(--primary); font-size: 14px; }
.cat-help-item span { font-size: 13px; color: var(--text-muted); }

/* P2.6 — Trust-Argumente direkt am Warenkorb-Button (info-list) */
.info-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.info-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.info-list li i { color: #15803D; width: 18px; text-align: center; }

/* ── Header: kompletter Header sticky, KONSTANTE Höhe ─────────────────────
   Kein JS, keine Höhen-/Morph-Animation, kein Ausblenden der Trust-Bar.
   → Dokumenthöhe ändert sich beim Scrollen nie → kein Sprung/Flackern,
   Logo + Menü-Symbol immer sichtbar. Trust-Bar (mit Telefon) bleibt oben. */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(11, 15, 23, 0.06);
}
/* Trust-Bar feste Höhe, einzeilig (kein Wrap → keine variable Höhe) */
#trust-bar {
  height: 40px;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
}
#trust-bar .container {
  height: 100%;
  align-items: center;
  flex-wrap: nowrap;
}
/* Mobil: nur Telefonnummer (letztes Item) → bleibt eine Zeile */
@media (max-width: 640px) {
  #trust-bar .trust-item:not(:last-child) { display: none; }
  #trust-bar .container { justify-content: center; }
}

/* ── Buttons in Content-/Legal-Seiten lesbar (a{color} darf Button-Text nicht überschreiben) ── */
.legal-page a.btn, .contact-page a.btn { text-decoration: none; display: inline-block; margin: 6px 10px 6px 0; }
.legal-page a.btn-primary, .contact-page a.btn-primary { color: #fff; }
.legal-page a.btn-primary:hover, .contact-page a.btn-primary:hover { color: #fff; }
.legal-page a.btn-secondary, .contact-page a.btn-secondary { color: var(--primary); }
/* generell: Primär-Button immer weißer Text, egal in welchem Kontext */
a.btn-primary, button.btn-primary { color: #fff; }

/* ── Money-Landingpages (Sprungbrett-CTA + Modell-Teaser) ────────────── */
.legal-page .lead { font-size: 17px; line-height: 1.7; color: var(--text); max-width: 760px; }
.landing-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 6px; }
.landing-models { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 22px 0 8px; }
.landing-model {
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #fff;
  text-decoration: none; display: flex; flex-direction: column;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
}
.landing-model:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(255,72,0,.35); }
.landing-model .lm-img { aspect-ratio: 4/3; background: #F8F9FA; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.landing-model .lm-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .5s var(--ease-out); }
.landing-model:hover .lm-img img { transform: scale(1.05); }
.landing-model .lm-body { padding: 16px 18px; }
.landing-model h3 { margin: 0 0 4px; font-size: 16px; color: var(--primary); }
.landing-model p { margin: 0; font-size: 13px; color: var(--text-muted); }
.landing-model .lm-cta { display: inline-block; margin-top: 10px; color: var(--accent); font-weight: 800; font-size: 14px; }

/* ── Bewegungsreduktion respektieren ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .product-card:hover,
  .btn-primary:hover,
  .btn-secondary:hover,
  .step-item:hover,
  .usp-item-new:hover,
  .cat-card-new:hover { transform: none; }
}
