/* ══════════════════════════════════════════════════════════════
   Startseite – Designsystem „Werkstatt-Präzision“ (Variante A, Premium Minimalistisch)
   Lädt nach style.css und kopf.css. Farben und Schriften kommen weiter vom aktiven
   Theme (Admin → Einstellungen → Design) – hier stehen nur Abstände, Formen,
   Typo-Stufen und die Regeln, wie Buttons, Karten und Flächen aussehen.
   ══════════════════════════════════════════════════════════════ */
:root {
  /* Farben: Zuordnung zu den Theme-Werten */
  --st-ink: var(--text);
  --st-muted: var(--gray);
  --st-line: var(--border);
  --st-plate: var(--img-bg);          /* Fläche hinter Produktbildern */
  --st-band: var(--bg-alt);           /* ruhige Hintergrund-Bänder */
  --st-bg: var(--bg);
  /* Abstände (8er-Raster) */
  --st-1: 8px; --st-2: 16px; --st-3: 24px; --st-4: 40px; --st-5: 64px; --st-6: 88px;
  /* Formen */
  --st-r: min(var(--radius-sm), 10px);
  --st-r-gross: min(var(--radius), 14px);
  /* Typo-Stufen */
  --st-h1: clamp(2.5rem, 5.2vw, 4.25rem);
  --st-h2: clamp(1.75rem, 3vw, 2.35rem);
  --st-h3: 1.3rem;
  --st-klein: .875rem;
  /* Bewegung: ruhig und kurz */
  --st-zeit: .15s ease;
  --st-breite: 1240px;
}

/* ── Grundlagen ── */
.st-wrap { max-width: var(--st-breite); margin: 0 auto; padding: 0 var(--st-4); }
.st-sektion { padding: var(--st-6) 0; }
.st-eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--st-muted); }
.st-titel, .section-title { font-size: var(--st-h2); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 var(--st-1); }
.section-sub { font-size: 1rem; }
.st-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--st-muted); max-width: 34em; }
.st-text { color: var(--st-muted); line-height: 1.65; font-size: 1.02rem; }
.st-sterne { color: var(--st-ink); letter-spacing: 1px; }

/* ── Buttons: ein Haupt-Button, ein Rahmen-Button, ein Textlink ── */
.btn, .add-to-cart-btn, .filter-tab, .st-btn {
  font-family: var(--font-body); text-transform: none; letter-spacing: 0;
}
.btn { font-weight: 600; border-radius: var(--st-r); padding: 12px 24px; font-size: 1rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px;
  border-radius: var(--st-r); font-weight: 600; font-size: 1rem; line-height: 1.2; cursor: pointer; white-space: nowrap;
  border: 1.5px solid transparent; transition: background var(--st-zeit), border-color var(--st-zeit), color var(--st-zeit);
}
.st-btn .ico { width: 1.1em; height: 1.1em; transition: transform var(--st-zeit); }
.st-btn:hover .ico { transform: translateX(3px); }
.st-btn-primaer { background: var(--btn-bg); color: var(--btn-text); }
.st-btn-primaer:hover { background: var(--btn-hover); }
.st-btn-rahmen { background: transparent; color: var(--st-ink); border-color: color-mix(in srgb, var(--st-ink) 22%, transparent); }
.st-btn-rahmen:hover { border-color: var(--st-ink); }
.st-mehr {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--st-ink);
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px; align-self: flex-start;
}
.st-mehr .ico { width: 1em; height: 1em; transition: transform var(--st-zeit); }
a:hover > .st-mehr .ico, .st-mehr:hover .ico { transform: translateX(3px); }
.st-aktionen { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--st-4); }
.st-bewertung { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--st-3); font-size: .92rem; color: var(--st-muted); }
.st-bewertung strong { color: var(--st-ink); }
a.st-bewertung:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }

/* ── Einstieg (Hero): Text links, Aktions-Slider rechts ── */
.st-hero { background: var(--st-bg); }
.st-hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--st-5); align-items: center; padding-top: var(--st-5); padding-bottom: var(--st-5); }
.st-hero h1 { font-size: var(--st-h1); line-height: 1.02; letter-spacing: -.025em; margin: var(--st-2) 0 var(--st-3); text-wrap: balance; }
.st-hero-buehne { position: relative; aspect-ratio: 6 / 5; min-height: 440px; border-radius: var(--st-r-gross); overflow: hidden; background: var(--st-plate); }
.st-hero-ersatz { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; }
/* Der Slider aus dem Admin füllt die Bühne – ohne Folien bleibt das Controller-Foto stehen */
.st-hero .hero-slider { position: absolute; inset: 0; height: auto; border-radius: inherit; }
.st-hero .hero-slide::before { background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 75%); }
.st-hero .hero-slide.no-image:not(.saison-slide)::after { right: 50%; top: 8%; transform: translateX(50%); width: 86%; }
.st-hero .slide-content { max-width: none; padding: 0 var(--st-4) 76px; }
.st-hero .slide-badge { font-family: var(--font-body); font-size: .74rem; letter-spacing: .08em; clip-path: none; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.st-hero .slide-title { font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.08; letter-spacing: -.01em; max-width: 16em; margin-bottom: 8px; }
.st-hero .slide-subtitle { font-size: 1rem; margin-bottom: 14px; }
.st-hero .slide-discount { font-family: var(--font-body); font-size: 1.05rem; letter-spacing: .02em; margin-bottom: 14px; }
.st-hero .slide-actions .btn { padding: 11px 20px; font-size: .95rem; }
.st-hero .slider-dots { left: var(--st-4); bottom: 30px; transform: none; }
.st-hero .slider-dots button { width: 22px; height: 3px; border-radius: 2px; }
.st-hero .slider-dots button.active { width: 34px; background: #fff; }
.st-hero .slider-arrow { top: auto; bottom: 16px; transform: none; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.14); }
.st-hero .slider-arrow.prev { left: auto; right: 62px; }
.st-hero .slider-arrow.next { right: 16px; }
.st-hero .slider-arrow:hover { background: rgba(255,255,255,.28); color: #fff; }
.st-hero .slider-arrow .ico { width: 18px; height: 18px; }

/* ── Faktenzeile: vier Vorteile, nur hier ── */
.st-fakten { border-top: 1px solid var(--st-line); border-bottom: 1px solid var(--st-line); background: var(--st-bg); }
.st-fakten-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.st-fakt { display: flex; gap: 14px; align-items: flex-start; padding: var(--st-3) var(--st-3) var(--st-3) 0; min-width: 0; }
.st-fakt + .st-fakt { border-left: 1px solid var(--st-line); padding-left: var(--st-3); }
.st-fakt .ico { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--st-ink); }
.st-fakt strong { display: block; font-size: .98rem; font-weight: 700; line-height: 1.3; }
.st-fakt span, .st-fakt p { display: block; margin: 2px 0 0; font-size: var(--st-klein); color: var(--st-muted); line-height: 1.4; }

/* ── Drei Wege: Kaufen, Reparieren, Verkaufen ── */
.st-wege { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--st-4); margin-top: var(--st-4); }
.st-weg { display: flex; flex-direction: column; gap: 12px; padding-top: var(--st-3); border-top: 1.5px solid var(--st-ink); color: var(--st-ink); }
.st-weg-icon { width: 30px; height: 30px; color: var(--st-ink); }
.st-weg-icon.breit { width: 46px; }
.st-weg h3 { font-size: var(--st-h3); line-height: 1.2; margin: 0; }
.st-weg p { color: var(--st-muted); font-size: 1rem; line-height: 1.55; margin: 0 0 4px; }
.st-weg .st-mehr { margin-top: auto; }
.st-schnell { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: var(--st-5); padding-top: var(--st-3); border-top: 1px solid var(--st-line); font-size: .95rem; }
.st-schnell > span { color: var(--st-muted); }
.st-schnell a { color: var(--st-ink); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 4px; transition: text-decoration-color var(--st-zeit); }
.st-schnell a:hover { text-decoration-color: currentColor; }

/* ── Bestseller im Rampenlicht (ehemals Anti-Drift-Band) ── */
.st-spot { background: var(--st-band); }
.st-spot-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--st-5); align-items: center; }
.st-spot-bild { aspect-ratio: 1; border-radius: var(--st-r-gross); overflow: hidden; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.st-spot-bild img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.st-spot-bild.foto img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.st-spot-text .st-titel { margin: 12px 0 var(--st-2); }
.st-spot-text .st-bewertung { margin: 0 0 var(--st-2); }
.st-liste { list-style: none; margin: var(--st-3) 0 0; padding: 0; display: grid; gap: 10px; }
.st-liste li { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; }
.st-liste .check-ico { color: var(--st-ink); margin-top: 4px; }
.st-preis { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: var(--st-3); }
.st-preis b { font-family: var(--font-head); font-size: 2rem; font-weight: 800; letter-spacing: -.01em; }
.st-preis s { color: var(--st-muted); }
.st-lager { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: .9rem; color: var(--st-muted); }
.st-lager .product-stock { margin: 0; }
.st-spot .st-aktionen { margin-top: var(--st-3); }

/* ── Abschnitts-Köpfe ── */
.section { padding: var(--st-6) 0; }
.section-header, .section-kopf { margin-bottom: var(--st-4); }
.section-badge { clip-path: none; background: none; color: var(--st-muted); padding: 0; font-family: var(--font-body); font-size: .8rem; letter-spacing: .1em; font-weight: 700; margin-bottom: 10px; }

/* ── Beliebt im Shop (Karussell, jetzt hell) ── */
#featured.section-dunkel { background: var(--st-bg); color: var(--st-ink); padding-bottom: 0; }
#featured .section-sub { color: var(--st-muted); }
#featured .pfeil, .section-dunkel .pfeil {
  width: 44px; height: 44px; border-radius: 50%; background: transparent; color: var(--st-ink);
  border: 1.5px solid color-mix(in srgb, var(--st-ink) 22%, transparent);
}
#featured .pfeil:hover:not(:disabled) { border-color: var(--st-ink); background: transparent; }
#featured .pfeil .ico { width: 20px; height: 20px; }
.karussell { gap: 24px; grid-auto-columns: calc((100% - 3 * 24px) / 4); }
.karussell > .loading { color: var(--st-muted); }
.feature-card { aspect-ratio: auto; min-height: 0; background: none; color: var(--st-ink); border-radius: 0; gap: 12px; overflow: visible; }
.feature-bild { flex: none; aspect-ratio: 1; border-radius: var(--st-r-gross); overflow: hidden; background: var(--st-plate); }
.feature-bild::before { display: none; }
.feature-bild img { mix-blend-mode: multiply; transition: transform .35s ease; }
.feature-card:hover .feature-bild img { transform: scale(1.03); }
.feature-bild.leer .feature-leer { color: var(--st-muted); }
.feature-kopf { padding: 0; display: grid; gap: 6px; }
.feature-name { font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.35; letter-spacing: 0; text-transform: none; margin: 0; }
.feature-meta { justify-content: space-between; gap: 8px; }
.feature-preis { font-size: 1rem; font-weight: 700; }
.feature-preis s { color: var(--st-muted); font-weight: 400; font-size: .88rem; margin-left: 6px; }
.feature-wertung { font-size: .86rem; color: var(--st-muted); white-space: nowrap; }
@media (max-width: 1023px) { .karussell { grid-auto-columns: calc((100% - 2 * 24px) / 3); } }
@media (max-width: 760px) { .karussell { grid-auto-columns: 62%; gap: 14px; } }

/* ── Abzeichen: ruhig, ohne schräge Kante ── */
.product-badge, .feature-bild .product-badge, .product-card .product-badge {
  clip-path: none; top: 12px; left: 12px; right: auto; padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  background: var(--surface); color: var(--st-ink); box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.badge-SALE { background: #b42318; color: #fff; }
.angebot-badge { font-family: var(--font-body); clip-path: none; border-radius: 999px; padding: 4px 10px; top: auto; bottom: 12px; left: 12px; font-size: .72rem; }

/* ── Produktraster: kurze Karten (Name, Preis, Lager), Details im Produktfenster ── */
#products .section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--st-2); flex-wrap: wrap; }
.products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--st-4) 24px; }
.product-img-wrap { border-radius: var(--st-r-gross); background: var(--st-plate); }
.product-img { mix-blend-mode: multiply; transition: transform .35s ease; }
.product-card:hover .product-img { transform: scale(1.03); }
.product-card.ist-service .product-img-wrap { box-shadow: none; }
.product-body { padding: 14px 0 0; gap: 4px; }
.product-cat-label { font-size: .72rem; letter-spacing: .08em; margin-bottom: 2px; }
.service-tag { color: var(--st-muted); }
.product-name { font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.35; letter-spacing: 0; text-transform: none; margin-bottom: 2px; }
.product-desc, .product-sold { display: none; }
.product-rating { margin: 0; font-size: .84rem; }
.product-rating .stars { color: var(--st-ink); font-size: .8rem; }
.product-rating.leer { display: none; }
.product-price { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; color: var(--st-ink); }
.product-price-prefix { font-weight: 600; letter-spacing: 0; }
.product-stock { font-weight: 500; color: var(--st-muted); font-size: .8rem; }
.product-stock.out { color: var(--danger); }
.product-footer { gap: 12px; padding-top: 6px; }
.add-to-cart-btn {
  background: transparent; color: var(--st-ink); border: 1.5px solid color-mix(in srgb, var(--st-ink) 22%, transparent);
  border-radius: var(--st-r); font-weight: 600; font-size: .92rem; padding: 10px 14px; transition: border-color var(--st-zeit), background var(--st-zeit), color var(--st-zeit);
}
.add-to-cart-btn:hover { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.add-to-cart-btn:disabled { background: transparent; border-color: var(--st-line); color: var(--st-muted); }
.anfrage-btn { border-color: color-mix(in srgb, var(--st-ink) 22%, transparent); }

/* ── Filterleiste ── */
.filter-tab { font-weight: 600; font-size: .92rem; border-radius: 999px; padding: 8px 16px; border-width: 1px; }
.filter-tab .ico { width: 18px; height: 18px; }
.filter-search, .filter-select { border-width: 1px; border-radius: var(--st-r); }

/* ── Über uns: hell, ohne doppelte Fakten-Kacheln ── */
.about-section { background: var(--st-band); color: var(--st-ink); }
.about-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--st-5); align-items: start; }
.about-text p { color: var(--st-muted); margin-bottom: 0; }
.about-features { padding-top: 6px; gap: 14px; }
.about-feature { font-size: 1rem; }
.about-section .check-ico { color: var(--st-ink); }

/* ── Kundenstimmen ── */
#reviews.section-alt { background: var(--st-bg); }
.review-card { border-radius: var(--st-r-gross); border-color: var(--st-line); padding: var(--st-3); }
.review-stars { color: var(--st-ink); font-size: .95rem; }
.review-body { color: var(--st-ink); font-size: 1rem; }
.review-avatar { background: var(--st-plate); color: var(--st-ink); }
.review-source { color: var(--st-muted); background: none; border-color: var(--st-line); }
.review-produkt { font-weight: 500; }
.rev-arrow { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--st-ink); border: 1.5px solid var(--st-line); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.rev-arrow:hover { background: var(--surface); border-color: var(--st-ink); }

/* ── Kontakt ── */
#contact { border-top: 1px solid var(--st-line); }
.contact-info h3, .tracking-box h3 { font-size: 1.35rem; }
.contact-item strong { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 1rem; }
.contact-icon { color: var(--st-ink); }
.tracking-box { border-radius: var(--st-r-gross); background: var(--st-band); }
.tracking-input { border-width: 1px; border-radius: var(--st-r); }
.tracking-alle a { color: var(--st-ink); text-decoration: underline; text-underline-offset: 3px; }
.kontakt-termin strong { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 1rem; }

/* ── Newsletter: Anthrazit statt Akzentfarbe ── */
.newsletter-section { background: var(--dark); color: var(--dark-text); padding: var(--st-5) 0; }
.newsletter-icon { width: 40px; height: 40px; opacity: .9; }
.newsletter-title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.newsletter-sub, .newsletter-hinweis { color: var(--dark-muted); opacity: 1; }
.newsletter-form input { border-radius: var(--st-r); }
.newsletter-section .btn-dark { background: var(--dark-text); color: var(--dark); }
.newsletter-section .btn-dark:hover { background: color-mix(in srgb, var(--dark-text) 85%, var(--dark)); }

/* ── Fußzeile ── */
.footer-links h4 { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 1rem; }

/* ── Tablet ── */
@media (max-width: 1023px) {
  .st-wrap { padding: 0 var(--st-3); }
  .st-hero-inner { grid-template-columns: minmax(0, 1fr); gap: var(--st-4); }
  .st-hero-text { max-width: 640px; }
  .st-hero-buehne { aspect-ratio: auto; min-height: 0; height: clamp(440px, 62vw, 560px); }
  .st-fakten-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-fakt:nth-child(3) { border-left: 0; padding-left: 0; }
  .st-fakt:nth-child(n+3) { border-top: 1px solid var(--st-line); }
  .st-wege { gap: var(--st-3); }
}

/* ── Handy ── */
@media (max-width: 760px) {
  :root { --st-6: 56px; --st-5: 40px; --st-4: 28px; }
  .st-wrap { padding: 0 16px; }
  .st-sektion, .section { padding: var(--st-6) 0; }
  .st-hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 28px; padding-bottom: 32px; gap: 28px; }
  .st-hero h1 { margin: 12px 0 14px; }
  .st-hero .st-aktionen { flex-direction: column; margin-top: 24px; }
  .st-hero .st-btn { width: 100%; }
  .st-hero-buehne { height: clamp(440px, 128vw, 520px); }
  .st-hero .slide-subtitle { font-size: .95rem; }
  .st-hero .slide-content { padding: 0 20px 64px; }
  .st-hero .slider-dots { left: 20px; bottom: 26px; }
  .st-fakt { padding: 16px 12px 16px 0; gap: 10px; }
  .st-fakt + .st-fakt { padding-left: 12px; }
  .st-fakt:nth-child(3) { padding-left: 0; }
  .st-fakt .ico { width: 20px; height: 20px; }
  .st-fakt strong { font-size: .9rem; }
  .st-fakt span, .st-fakt p { font-size: .8rem; }
  .st-wege { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .st-schnell { gap: 8px 18px; margin-top: 36px; }
  .st-schnell > span { width: 100%; }
  .st-spot-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .st-spot .st-aktionen { flex-direction: column; }
  .st-spot .st-btn { width: 100%; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .about-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 360px) {
  .products-grid { grid-template-columns: minmax(0, 1fr); }
}
