/* Shop-Produktseite (PDP) — ausgelagert aus resources/views/shop/preview_article.blade.php
   (14.08.2026), damit der Stil-Block nicht bei JEDEM Produktaufruf neu mitkommt, sondern browser-
   gecacht ist (Muster wie public/css/app.css im Office, 01.08.2026). Laedt nur auf der PDP
   (@push('head') in der View, mit ?v=filemtime). Die Basis-Styles der Auswahl (.seg/.cfg/.stepper …)
   liegen weiterhin im Shop-Layout; hier stehen nur PDP-eigene Blöcke + die A11y-Ergaenzungen.
   Farben/Abstaende ueber Shop-Tokens (var(--…)) bzw. bewusste px im Stylesheet (kein Inline-Style, D6). */
html { scroll-behavior: smooth; }
/* KI-Kennzeichnung (EU AI Act): dezentes Overlay unten links am Hauptbild — kein Layout-Shift (D7). */
.gallery .main { position: relative; }
.pdp-aibadge { position: absolute; left: 10px; bottom: 10px; z-index: 2; pointer-events: none;
  background: rgba(20,20,20,0.62); color: #fff; font-size: 0.72rem; line-height: 1.3;
  padding: 3px 9px; border-radius: 999px; backdrop-filter: saturate(140%) blur(2px); }
.pdp-aibadge[hidden] { display: none; }
/* Artikel-Video: eigene Thumb-Kachel (dunkel, Play-Icon) + Video-Element im Hauptbereich —
   bewusst getrennt vom Bild-Swap/Zoom-Lightbox (kein Eingriff in deren Logik). */
.gallery .thumb.thumb-video { background-color: #23221e; background-size: cover; background-position: center; color: #fff; }
.gallery .thumb.thumb-video:hover, .gallery .thumb.thumb-video.on { border-color: var(--green); }
.gallery .thumb.thumb-video svg { filter: drop-shadow(0 1px 3px rgba(0,0,0,.65)); }
.gallery .main video.pdp-video { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #000; }
.gallery .main video.pdp-video[hidden] { display: none; }
/* Bild-Zoom: Hauptbild anklickbar + Lupen-Hint oben rechts */
.gallery .main img { cursor: zoom-in; }
.pdp-zoom-hint { position: absolute; top: 10px; right: 10px; z-index: 2; pointer-events: none;
  width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; color: #fff;
  background: rgba(20,20,20,0.5); backdrop-filter: saturate(140%) blur(2px);
  opacity: 0.82; transition: opacity 0.15s; }
.gallery .main:hover .pdp-zoom-hint { opacity: 1; }
/* Lightbox (Vollbild-Zoom) */
.pdp-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(15,14,12,0.93);
  display: block; opacity: 0; visibility: hidden; transition: opacity 0.2s;
  touch-action: none; overscroll-behavior: contain; }
.pdp-lightbox.on { opacity: 1; visibility: visible; }
.pdp-lightbox .lb-stage { position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; overflow: hidden; }
.pdp-lightbox .lb-img { max-width: 96vw; max-height: 92vh; transform-origin: center center;
  will-change: transform; user-select: none; -webkit-user-drag: none; display: block; }
.pdp-lightbox.zoomed .lb-img { cursor: grab; }
.pdp-lightbox.grabbing .lb-img { cursor: grabbing; }
.pdp-lightbox .lb-btn { position: absolute; z-index: 2; border: none; cursor: pointer; color: #fff;
  background: rgba(40,38,34,0.72); backdrop-filter: blur(3px); border-radius: 999px;
  display: grid; place-items: center; transition: background 0.15s; }
.pdp-lightbox .lb-btn:hover { background: rgba(74,140,28,0.92); }
.pdp-lightbox .lb-close { top: 16px; right: 16px; width: 46px; height: 46px; }
.pdp-lightbox .lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.pdp-lightbox .lb-prev { left: 16px; }
.pdp-lightbox .lb-next { right: 16px; }
.pdp-lightbox .lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: #fff; background: rgba(40,38,34,0.72); backdrop-filter: blur(3px);
  padding: 5px 14px; border-radius: 999px; font-size: 0.85rem; pointer-events: none; }
body.lb-open { overflow: hidden; }
@media (max-width: 640px) {
  .pdp-lightbox .lb-nav { width: 44px; height: 44px; }
  .pdp-lightbox .lb-close { width: 42px; height: 42px; }
}
.pdp-rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; text-decoration: none; }
.pdp-rating .rv-stars { letter-spacing: 1px; color: #d8d8d8; font-size: 1rem; }
.pdp-rating .rv-stars .on { color: #f5a623; }
.pdp-rating .pdp-rating-txt { color: #666; font-size: 0.9rem; border-bottom: 1px solid transparent; }
.pdp-rating:hover .pdp-rating-txt { border-bottom-color: #999; }
.pdp-reviews { scroll-margin-top: 90px; }
#tab-reviews { max-width: 920px; }   /* Rezensionen breiter als die 74ch-Textspalte der Text-Reiter */
/* Hersteller-Reiter (GPSR) */
.pdp-mf { max-width: 640px; color: #333; }
.pdp-mf .mf-intro { color: #666; font-size: 0.9rem; margin: 0 0 16px; }
.pdp-mf .mf-block { padding: 14px 16px; border: 1px solid #eaeaea; border-radius: 10px; margin-bottom: 14px; background: #fafafa; }
.pdp-mf .mf-role { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em; color: #888; margin-bottom: 6px; }
.pdp-mf .mf-name { font-weight: 700; color: #222; margin-bottom: 4px; }
.pdp-mf .mf-adr { color: #444; line-height: 1.5; }
.pdp-mf .mf-c { margin-top: 6px; color: #444; }
.pdp-mf .mf-c a { color: #2f6b16; }
.pdp-reviews .rv-dist .rv-avg { margin-top: 12px; }
.pdp-reviews .rv-hd { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pdp-reviews h2 { font-size: 1.35rem; color: #333; margin: 0; }
.pdp-reviews .rv-avg { color: #666; font-size: 0.95rem; }
.pdp-reviews .rv-stars { letter-spacing: 1px; color: #d8d8d8; }
.pdp-reviews .rv-stars .on { color: #f5a623; }
.pdp-reviews .rv-stars.rv-lg { font-size: 1.1rem; }
.pdp-reviews .rv { border-bottom: 1px solid #eaeaea; padding: 16px 0; }
.pdp-reviews .rv-title { font-weight: 700; color: #222; margin-bottom: 6px; }
.pdp-reviews .rv-var { color: #777; font-size: 0.85rem; margin-top: 6px; }
.pdp-reviews .rv-msg { color: #333; margin: 10px 0 0; white-space: pre-line; }
.pdp-reviews .rv-meta { margin-top: 10px; font-size: 0.85rem; color: #888; display: flex; gap: 12px; }
.pdp-reviews .rv-author { font-weight: 600; color: #555; }
.pdp-reviews .rv-verified { color: #2f6b16; font-size: 0.82rem; font-weight: 600; margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; }
.pdp-reviews .rv-verified svg { width: 14px; height: 14px; }
/* Verteilung + Schreibbox nebeneinander */
.pdp-reviews .rv-top { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.2fr); gap: 32px; align-items: start; margin-bottom: 24px; }
@media (max-width: 640px) { .pdp-reviews .rv-top { grid-template-columns: 1fr; } }
.pdp-reviews .rv-distrow { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pdp-reviews .rv-distlabel { width: 34px; color: #555; font-size: 0.85rem; white-space: nowrap; }
.pdp-reviews .rv-distlabel .on { color: #f5a623; }
.pdp-reviews .rv-bar { flex: 1; height: 12px; background: #e6e6e6; border-radius: 6px; overflow: hidden; }
.pdp-reviews .rv-bar > span { display: block; height: 100%; background: #4a7c2f; border-radius: 6px; }
.pdp-reviews .rv-distn { width: 24px; text-align: right; color: #777; font-size: 0.85rem; }
.pdp-reviews .rv-write { background: #f5f7f2; border: 1px solid #e2e8da; border-radius: 10px; padding: 16px; }
.pdp-reviews .rv-login p, .pdp-reviews .rv-hint { color: #555; font-size: 0.92rem; margin: 0 0 12px; }
.pdp-reviews .rv-hint { margin: 0; }
.pdp-reviews .rv-flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 0.9rem; }
.pdp-reviews .rv-flash.ok { background: #eaf6e3; color: #2f6b16; }
.pdp-reviews .rv-flash.err { background: #fbe6e6; color: #a12727; }
.pdp-reviews .btn-review { display: inline-flex; align-items: center; gap: 6px; background: #4a7c2f; color: #fff; border: 0;
  padding: 10px 18px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.pdp-reviews .btn-review:hover { background: #3e6827; }
.pdp-reviews .btn-review svg { width: 16px; height: 16px; }
.pdp-reviews .rv-form { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pdp-reviews .rv-in { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #ccc; border-radius: 8px; font: inherit; }
.pdp-reviews textarea.rv-in { resize: vertical; }
/* Klickbares Sterne-Widget ohne JS (Radios rückwärts, :hover/:checked färbt links) */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input label { color: #d8d8d8; font-size: 1.7rem; line-height: 1; cursor: pointer; transition: color .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f5a623; }
/* Frage zum Artikel (Reiter-Panel) */
#tab-frage { max-width: 640px; }
.pdp-ask .ask-lead { color: #666; font-size: 0.95rem; margin: 0 0 18px; }
.pdp-ask .ask-form { display: flex; flex-direction: column; gap: 14px; }
.pdp-ask .ask-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .pdp-ask .ask-two { grid-template-columns: 1fr; } }
.pdp-ask .ask-row { display: flex; flex-direction: column; gap: 5px; }
.pdp-ask .ask-row > span { font-size: 0.85rem; font-weight: 600; color: #555; }
.pdp-ask .ask-in { width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid #ccc; border-radius: 8px; font: inherit; }
.pdp-ask textarea.ask-in { resize: vertical; }
.pdp-ask .ask-check { display: flex; align-items: flex-start; gap: 8px; font-size: 0.88rem; color: #555; }
.pdp-ask .ask-check a { color: #4a7c2f; }
.pdp-ask .ask-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; background: #4a7c2f; color: #fff;
  border: 0; padding: 11px 20px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.pdp-ask .ask-btn:hover { background: #3e6827; }
.pdp-ask .ask-btn svg { width: 16px; height: 16px; }
.pdp-ask .ask-flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 0.9rem; }
.pdp-ask .ask-flash.ok { background: #eaf6e3; color: #2f6b16; }
.pdp-ask .ask-flash.err { background: #fbe6e6; color: #a12727; }
.pdp-ask .ask-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pdp-tailspace { height: 40px; }
/* Weitere Informationen / Downloads: shop-nativ. Download-Karten aus dem pflegbaren PDF-Feld (Reiter „Downloads"). */
/* Abschnittstitel unter dem H1-Artikelnamen sind <h2> (lueckenloser Seiten-Outline). Optik
   bewusst wie bisher (1.05rem) — die Groesse kommt aus dieser Regel, nicht aus der Tag-Ebene.
   #tab-tech h4 bleibt: das sind Inhalts-Ueberschriften aus dem gespeicherten technical_data. */
#tab-tech h4, #tab-downloads h2, #tab-desc .rel-h { font-size: 1.05rem; color: #2a2a28; font-weight: 700; margin: 0 0 12px; }
#tab-desc .rel-h { margin: 24px 0 12px; padding-top: 18px; border-top: 1px solid #ececec; }
#tab-tech h4 + .tech-dl, #tab-tech h4 + p, #tab-downloads h2 + .tech-dl { margin-top: 0; }
.tech-dl { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.tech-dl li { margin: 0; }
.tech-dl a { display: flex; align-items: center; gap: 13px; padding: 12px 15px; border: 1px solid #e2e8da; border-radius: 10px;
  background: #fafbf8; color: #26251f; text-decoration: none; font-weight: 600; line-height: 1.35;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; }
.tech-dl a::before { content: ""; flex: none; width: 26px; height: 32px;
  background: url("https://media.buetic.de/pdf_datei_icon.svg") center / contain no-repeat; }
.tech-dl a:hover { border-color: #4a7c2f; background: #eef5e7; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(74,124,47,.10); }
/* „Dazu passend": Schlagwoerter als Pills statt Aufzaehlung */
#tab-tech .keywords, #tab-desc .keywords { list-style: none; margin: 8px 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
#tab-tech .keywords li, #tab-desc .keywords li { margin: 0; }
#tab-tech .keywords a, #tab-desc .keywords a { display: inline-block; padding: 6px 13px; border: 1px solid #e2e8da; border-radius: 999px;
  background: #f5f7f2; color: #2f6b16; text-decoration: none; font-size: 0.88rem; font-weight: 600; transition: border-color .15s, background .15s; }
#tab-tech .keywords a:hover, #tab-desc .keywords a:hover { border-color: #4a7c2f; background: #eef5e7; }
/* „Passende Kategorien": gleiche Pill-Form, aber mit Ordner-Symbol als klarer Kategorie-Marker. */
#tab-desc .keywords.cats a::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 6px;
  vertical-align: -2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232f6b16'%3E%3Cpath d='M1.75 2.5A1.75 1.75 0 0 0 0 4.25v7.5C0 12.99 1.01 14 2.25 14h11.5c1.24 0 2.25-1.01 2.25-2.25v-6A1.75 1.75 0 0 0 14.25 4H7.5L6.2 2.7a1.75 1.75 0 0 0-1.24-.51H1.75z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ── A11y / UX der Varianten-Auswahl (14.08.2026) ─────────────────────────────────────────────
   Die Basis-Styles von .seg/.seg button stehen im Shop-Layout; hier nur die Ergaenzungen:
   sichtbarer Tastatur-Fokus (Roving-Tabindex) und der „nicht kombinierbar"-Zustand (.na). */
.seg button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.seg button.na { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.seg button.na:hover { border-color: var(--line-strong); }
/* Hinweis, wenn der Shop ohne JavaScript geladen wird (Warenkorb ist clientseitig). */
.pdp-nojs { margin: 10px 0 0; font-size: 0.85rem; color: var(--muted-strong); }

/* ── Trust / Teilen (14.08.2026) ────────────────────────────────────────────────────────────── */
/* (Das Lieferdatum steht jetzt einzeilig IN der Bestandszeile .stock-line, nicht mehr separat.) */
/* Vertrauens-Badges auf der Produktseite (weisse Kacheln wie im Footer, hier mit dezentem Rahmen
   auf hellem Grund). .ft-badge selbst wird global im Shop-Layout gestylt. */
.pdp-trust { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
/* Beide Badges teilen sich die volle Zeilenbreite (kein max-width) — sonst bricht „Trustami
   Bewertungen" auf breiten Screens in zwei Zeilen um. */
.pdp-trust .ft-badge { flex: 1 1 0; min-width: 190px; border: 1px solid var(--line); }
.pdp-trust .ft-line { white-space: nowrap; }
/* Teilen-Zeile: Label + runde Icon-Buttons. */
.pdp-share { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pdp-share-lbl { font-size: 0.82rem; color: var(--muted); font-weight: 700; }
.pdp-share-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--ink-soft);
  cursor: pointer; text-decoration: none; transition: border-color .14s, color .14s, background .14s; }
.pdp-share-btn:hover { border-color: var(--green); color: var(--green); background: var(--accent-light); }
.pdp-share-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* Bezahl-Logos (echte SVG-Marken in weissen Kacheln). */
.pdp-pay { margin-top: 16px; }
.pdp-pay-lbl { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.pdp-pay-logos { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.pay-logo { height: 28px; padding: 0 9px; background: #fff; border: 1px solid var(--line); border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; overflow: hidden; }
/* Explizit, sonst schlaegt .pay-logo{display:inline-flex} das UA-[hidden]{display:none} (gleiche
   Spezifitaet, Autor gewinnt) -> Apple Pay bliebe auf Nicht-Apple-Geraeten sichtbar. */
.pay-logo[hidden] { display: none; }
.pay-logo svg { display: block; }
/* Klarna fuellt die Kachel randlos (kein heller Rand zum Rahmen). */
.pay-logo--fill { padding: 0; }
.pay-logo--fill svg { height: 100%; width: auto; }

/* „Zuletzt angesehen" — Kachelreihe am Seitenende (rein clientseitig gefüllt). */
.pdp-recent { margin-top: 34px; }
.pdp-recent[hidden] { display: none; }
.pdp-recent > h2 { font-size: 1.15rem; color: var(--ink); font-weight: 800; letter-spacing: -.02em; margin: 0 0 16px; }
.pdp-recent-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.pdp-recent-card { display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface);
  transition: border-color .15s, box-shadow .15s, transform .15s; }
.pdp-recent-card:hover { border-color: var(--green); box-shadow: 0 4px 14px rgba(0,0,0,.06); transform: translateY(-2px); }
.pdp-recent-card .prc-img { aspect-ratio: 1 / 1; background: var(--paper2); display: block; }
.pdp-recent-card .prc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-recent-card .prc-name { font-size: .85rem; font-weight: 600; color: var(--ink-soft); line-height: 1.3;
  padding: 10px 11px 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pdp-recent-card .prc-price { font-size: .82rem; font-weight: 800; color: var(--accent); padding: 6px 11px 11px; margin-top: auto; }

/* „Wieder verfügbar"-Benachrichtigung (nur bei ausverkaufter Auswahl). */
.pdp-restock { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper2); }
.pdp-restock[hidden] { display: none; }
.pdp-restock-lead { display: flex; align-items: flex-start; gap: 8px; font-size: .86rem; color: var(--ink-soft); line-height: 1.4; margin-bottom: 12px; }
.pdp-restock-lead svg { flex: 0 0 auto; color: var(--green); margin-top: 2px; }
.pdp-restock-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp-restock-in { flex: 1 1 200px; min-width: 0; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid var(--line-strong);
  border-radius: 8px; font: inherit; background: var(--surface); color: var(--ink); }
.pdp-restock-row .btn { flex: 0 0 auto; }
.pdp-restock-check { display: flex; align-items: flex-start; gap: 7px; font-size: .8rem; color: var(--muted-strong); margin-top: 10px; }
.pdp-restock-check a { color: var(--green); }
.pdp-restock-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pdp-restock-flash { margin-top: 12px; padding: 10px 14px; border-radius: 8px; font-size: .88rem; }
.pdp-restock-flash.ok { background: var(--accent-light); color: var(--accent); }
.pdp-restock-flash.err { background: #fbe6e6; color: #a12727; }
