/* ─────────────────────────────────────────────────────────
   ALUXIL — global stylesheet
   ───────────────────────────────────────────────────────── */

:root {
  /* Base palette — light. «Stein» seit 24.09.2026: vorher Karten und
     Felder reinweiss (#FFFFFF) auf #F6F5F3 — zu grell (Rückmeldung Shahzad). */
  --bg:           #E9E6E0;
  --surface:      #F3F1EC;
  --surface-2:    #DFDBD3;
  --fg:           #141414;
  --fg-2:         #2A2A28;
  --muted:        #5A5955;
  --muted-2:      #9A9994;
  --border:       #D6D1C8;
  --border-2:     #C7C1B7;

  /* Accent — defaults to warm orange. Overridden by tweaks. */
  --accent:       oklch(64% 0.14 47);
  --accent-ink:   #FFFFFF;
  /* Flächen mit weißer Schrift (Buttons, Badges): Akzent auf L 58 % → 4,52:1 (WCAG 1.4.3).
     Gleicher Wert wie .btn-accent seit 26.10.2026; Sprint 30.10.2026 als Variable für alle Stellen. */
  --accent-btn:   oklch(58% 0.14 47);
  --accent-soft:  oklch(96% 0.02 47);
  /* Fokusring der Formularfelder (25.09.2026, Audit R4-6): der Akzent
     #CF6E39 hatte auf --bg nur 2,84:1 (--surface-2 2,56:1) — WCAG 1.4.11
     verlangt 3:1. Dunklerer Akzent #A74909: 4,68 auf --bg, 5,17 auf
     --surface, 4,22 auf --surface-2, 3,84 auf --border. */
  --focus-ring:   oklch(52% 0.14 47);

  /* Aluminum sheen for product blocks */
  --alu-1:        #D3CFC7;
  --alu-2:        #B8B6B1;
  --alu-3:        #8A8884;
  --anthracite:   #1F1F1D;

  /* Type */
  --font-display: "Inter Display", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-text:    "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Scale */
  --max:          1440px;
  --pad-x:        clamp(20px, 4vw, 64px);
  --gap:          24px;
  --radius:       4px;
  --radius-lg:    12px;

  /* Motion */
  --ease:         cubic-bezier(.2, .8, .2, 1);
}

[data-theme="dark"] {
  --bg:           #0E0E0D;
  --surface:      #161614;
  --surface-2:    #1F1F1D;
  --fg:           #F4F2EE;
  --fg-2:         #E8E5DF;
  --muted:        #8A8884;
  --muted-2:      #6B6A66;   /* war #5C5B57: große Ziffern 2,4–2,8 → ≥ 3,0 (WCAG AA groß) */
  --border:       #2A2826;
  --border-2:     #3A3835;
  --alu-1:        #3A3835;
  --alu-2:        #4A4845;
  --alu-3:        #6A6863;
  --accent-soft:  oklch(28% 0.04 47);
  /* Dunkel reicht der normale Akzent #CF6E39: 5,46 auf --bg, 5,12 auf
     --surface, 4,66 auf --surface-2, 4,15 auf --border (25.09.2026). */
  --focus-ring:   oklch(64% 0.14 47);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { transition: background-color .3s var(--ease), color .3s var(--ease); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ── Type ───────────────────────────────────────────────── */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--fg);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(44px, 7vw, 112px); font-weight: 500; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.6vw, 64px); letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.02em; line-height: 1.15; }
h4 { font-family: var(--font-display); font-size: 18px; font-weight: 500; margin: 0; letter-spacing: -0.01em; }

p { margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: 2px;
}

.lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.3;
  font-weight: 400;
  color: var(--fg-2);
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.muted { color: var(--muted); }
.mono  { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* ── Layout primitives ──────────────────────────────────── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: clamp(72px, 9vw, 140px);
}
.section.tight { padding-block: clamp(48px, 6vw, 88px); }

.row { display: flex; gap: var(--gap); }
.col { display: flex; flex-direction: column; gap: var(--gap); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--fg);
  color: var(--bg);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--accent); color: var(--accent-ink); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* 26.10.2026 (WCAG 2.2 AA 1.4.3): weiße Schrift braucht 4,5:1 — Akzent für Buttons auf L 58 % abgedunkelt (4,52:1). */
.btn-accent { background: var(--accent-btn); color: var(--accent-ink); }
.btn-accent:hover { background: var(--fg); color: var(--bg); }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-2);
}
.btn-ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.btn-lg { padding: 18px 28px; font-size: 16px; }
.btn-sm { padding: 10px 16px; font-size: 13px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-2);
  padding-bottom: 6px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--fg);
  transition: border-color .2s var(--ease), gap .2s var(--ease);
}
.link-arrow:hover { border-color: var(--accent); gap: 12px; }
.link-arrow .arr { color: var(--accent); }

/* ── Header / Nav ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.brand .mark {
  width: 26px; height: 26px;
  background: var(--fg);
  color: var(--bg);
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  border-radius: 2px;
}

/* ALUXIL wordmark logo (header + mobile sheet). The source PNG is a white,
   transparent silhouette. On the light header we invert it to near-black; in
   dark mode we leave it white — one asset, both themes. */
.brand-logo {
  display: block;
  height: 30px;
  width: auto;
  filter: invert(1);
}
[data-theme="dark"] .brand-logo { filter: none; }
@media (max-width: 560px) { .brand-logo { height: 26px; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--fg-2);
  font-weight: 450;
  border-radius: var(--radius);
  position: relative;
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--accent); }
/* 30.10.2026: «Über uns & Kontakt» darf nicht zweizeilig umbrechen (bei 1100 px sonst zwei Zeilen). */
.nav-links > li > a { white-space: nowrap; }
/* Extend each link's clickable area to the full header height (72px) without
   moving any visible content — kills the dead zones above/below the text. */
.nav-links a::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 72px;
  transform: translateY(-50%);
}
.nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
}
/* Nav dropdown (desktop hover menus for Produkte / Dachoptionen) */
.nav-links .has-sub { position: relative; }
.nav-links .has-sub > a { gap: 7px; }
.nav-links .caret {
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
  opacity: .55;
}
.nav-links .has-sub:hover .caret,
.nav-links .has-sub:focus-within .caret { transform: rotate(225deg) translateY(1px); opacity: 1; }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 290px;
  padding-top: 12px;            /* bridges the gap so hover doesn't drop */
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 60;
}
.nav-links .has-sub:hover .nav-dropdown,
.nav-links .has-sub:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown > ul {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px -22px rgba(0,0,0,.4);
}
.nav-dropdown a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--fg);
  transition: background-color .15s var(--ease);
}
.nav-dropdown a:hover { background: var(--surface-2); color: var(--fg); }
.nav-dropdown a:hover .dd-title { color: var(--accent); }
.nav-dropdown .dd-title { font-size: 14px; font-weight: 500; transition: color .15s var(--ease); }
.nav-dropdown .dd-desc { font-size: 12px; color: var(--muted); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.menu-btn {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-btn span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--fg);
  position: relative;
}
.menu-btn span::before, .menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px; height: 1.5px;
  background: var(--fg);
}
.menu-btn span::before { top: -5px; }
.menu-btn span::after  { top: 5px; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-btn  { display: inline-flex; }
  .nav-cta .btn-cta-desktop { display: none; }
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--anthracite);
  color: #B8B6B1;
  padding-block: 96px 32px;
  margin-top: 0;
}
.site-footer .f-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.site-footer h5,
.site-footer h2.f-h {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: #F4F2EE;
  margin: 0 0 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.site-footer h2.f-h { line-height: normal; text-wrap: wrap; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #B8B6B1; font-size: 14px; transition: color .2s var(--ease); }
.site-footer a:hover { color: #FFFFFF; }
.site-footer .brand { color: #FFFFFF; }
.site-footer .brand .mark { background: #FFFFFF; color: var(--anthracite); }
.site-footer .legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  margin-top: 64px;
  border-top: 1px solid #2A2A28;
  font-size: 13px;
  color: #898885;   /* war #6B6B68: Kontrast 3,1 → 4,6 (WCAG AA, 17.09.2026) */
}
.site-footer .legal-links {
  display: flex; gap: 24px; flex-wrap: wrap;
}
/* Regionen-Zeile: eine Zeile statt eines eigenen Blocks. Die Links bleiben
   vollwertige interne Links (darum sind die Stadtseiten indexiert), treten aber
   optisch hinter die Hauptspalten zurück. */
.site-footer .f-regionen {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid #2A2A28;
}
.site-footer .f-regionen__label {
  font-family: var(--font-mono, inherit); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: #898783; white-space: nowrap;   /* war #6E6C68 */
}
.site-footer .f-regionen ul {
  display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0;
}
.site-footer .f-regionen a { font-size: 12.5px; color: #898783; }   /* war #7E7C78: 3,96 → 4,6 */
.site-footer .f-regionen a:hover { color: #FFFFFF; }
@media (max-width: 900px) {
  .site-footer .f-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .25s var(--ease), transform .35s var(--ease);
}
.card:hover { border-color: var(--border-2); }
.card .card-body { padding: 24px; }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .4s var(--ease);
  position: relative;
}
.product-card:hover { transform: translateY(-4px); }
.product-card .ph {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--alu-1), var(--alu-2));
  position: relative;
}
.product-card .meta {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-card .meta .system-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.product-card .meta h3 { letter-spacing: -0.025em; }
.product-card .meta .desc { color: var(--muted); font-size: 14px; margin-top: 4px; line-height: 1.5; }
.product-card .meta .more {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--accent);
}

/* ── Image placeholder slot (works alongside image-slot.js) */
.ph-photo {
  position: relative;
  background:
    linear-gradient(135deg, var(--alu-1), var(--alu-2) 55%, var(--alu-3));
  overflow: hidden;
}
.ph-photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      transparent 0 22px,
      color-mix(in oklab, var(--fg) 5%, transparent) 22px 23px);
  mix-blend-mode: multiply;
  opacity: .35;
}
/* Suppress the placeholder stripe texture once a real photo is wired in */
.ph-photo:has(img)::after,
.ph-photo:has(picture)::after,
.ph-photo:has(.ph-illu)::after { display: none; }

/* Temporary line-illustration placeholder (used where no real photo exists yet,
   e.g. Freeline). Theme-adaptive via --fg, so it reads in light and dark mode. */
.ph-illu {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--alu-1), var(--alu-2) 55%, var(--alu-3));
}
.ph-illu svg {
  width: min(60%, 280px); height: auto;
  fill: none;
  stroke: color-mix(in oklab, var(--fg) 52%, transparent);
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.ph-illu .beam, .ph-illu .post, .ph-illu .panel { fill: color-mix(in oklab, var(--fg) 13%, transparent); }
.ph-illu .car, .ph-illu .rib { stroke: color-mix(in oklab, var(--fg) 38%, transparent); }
.ph-illu .ph-illu-label {
  position: absolute; right: 16px; bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: color-mix(in oklab, var(--fg) 52%, transparent);
}
.ph-photo .ph-label {
  position: absolute;
  left: 16px; top: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--anthracite);
  background: color-mix(in oklab, white 80%, transparent);
  padding: 6px 10px;
  border-radius: 2px;
  z-index: 1;
}

/* ── Stat blocks ────────────────────────────────────────── */
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 0;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Badge ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
  background: var(--surface);
}
.badge .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ── Form ───────────────────────────────────────────────── */
/* Shown only when the mail transport fails: keeps the lead reachable
   instead of dead-ending on a red error. */
.form-fallback {
  grid-column: span 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.form-fallback p {
  flex-basis: 100%;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  font-family: var(--font-text);
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--focus-ring);
  /* 25.09.2026 (Audit L5): `outline:none` oben + nur 1 px Randfarbe war als
     Fokus kaum zu sehen. Ring statt Umriss — Farbe --focus-ring (R4-6),
     ≥ 3:1 auf allen Flächen in hell UND dunkel. */
  box-shadow: 0 0 0 2px var(--focus-ring);
}
.field textarea { min-height: 140px; resize: vertical; }

/* ── Page hero ──────────────────────────────────────────── */
.page-hero {
  padding-block: clamp(80px, 10vw, 140px) clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--border);
}
.page-hero .breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.page-hero h1 { max-width: 14ch; }
.page-hero .lead { max-width: 56ch; margin-top: 24px; }

/* ── Utility ────────────────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-muted  { color: var(--muted); }
.bg-surface  { background: var(--surface); }
.bg-anthracite { background: var(--anthracite); color: #F4F2EE; }
.bg-anthracite h1, .bg-anthracite h2, .bg-anthracite h3 { color: #F4F2EE; }

.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 80px); align-items: center; }
.split-2-tall { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 4vw, 80px); align-items: stretch; }
@media (max-width: 880px) { .split-2, .split-2-tall { grid-template-columns: 1fr; } }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 880px) { .three { grid-template-columns: 1fr; } }

.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
@media (max-width: 700px) { .two { grid-template-columns: 1fr; } }

/* ── Tweaks panel ───────────────────────────────────────── */
.tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  width: 260px;
  font-size: 13px;
  display: none;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,.15), 0 2px 4px rgba(0,0,0,.05);
}
.tweaks-panel.is-on { display: block; }
.tweaks-panel h6 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.tweaks-panel .group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.tweaks-panel .swatches { display: flex; gap: 8px; }
.tweaks-panel .sw {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: transform .15s var(--ease);
}
.tweaks-panel .sw[aria-checked="true"] { border-color: var(--fg); }
.tweaks-panel .sw:hover { transform: scale(1.08); }
.tweaks-panel .seg {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}
.tweaks-panel .seg button {
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 999px;
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}
.tweaks-panel .seg button[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
}
.tweaks-panel .close {
  position: absolute;
  top: 10px; right: 10px;
  width: 24px; height: 24px;
  border: 0; background: transparent;
  cursor: pointer; color: var(--muted);
  font-size: 16px; line-height: 1;
}

/* ── Hero variants ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(640px, 90vh, 880px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero .hero-bg {
  position: absolute; inset: 0;
  background-image: url("images/home-carport.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1A1A18;
  z-index: 0;
}
.hero .hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.2) 30%, rgba(0,0,0,.65) 100%),
    linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.0) 55%);
}
.hero .hero-content {
  position: relative;
  z-index: 2;
  padding-block: clamp(64px, 8vw, 96px);
  color: #FFFFFF;
  width: 100%;
}
.hero[data-variant="photo"] .hero-photo,
.hero[data-variant="type"] .hero-photo { display: none; }
.hero .hero-content h1 { color: #FFFFFF; max-width: 18ch; }
.hero .hero-content .lead { color: rgba(255,255,255,.78); max-width: 52ch; }
.hero .hero-eyebrow {
  color: rgba(255,255,255,.7);
  margin-bottom: 32px;
}
.hero .hero-eyebrow .dot { background: var(--accent); }
.hero .hero-meta {
  position: absolute;
  top: clamp(40px, 6vw, 64px);
  right: var(--pad-x);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.hero .hero-meta .key { color: rgba(255,255,255,.4); }

.hero-actions {
  display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap;
}
/* 30.10.2026: war var(--accent) und hob den Kontrast-Fix vom 26.10. auf der Startseite wieder auf (3,53:1). */
.hero-actions .btn-accent { background: var(--accent-btn); }
.hero-actions .btn-ghost-light {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,.3);
}
.hero-actions .btn-ghost-light:hover { background: #FFFFFF; color: var(--anthracite); border-color: #FFFFFF; }

/* Hero variant: split */
.hero[data-variant="split"] {
  align-items: stretch;
  min-height: 720px;
}
.hero[data-variant="split"] .hero-bg { display: none; }
.hero[data-variant="split"] .hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  color: var(--fg);
  padding-block: 0;
}
.hero[data-variant="split"] .hero-content > .hero-text {
  padding-block: 96px;
  padding-right: 48px;
}
.hero[data-variant="split"] .hero-content h1 { color: var(--fg); max-width: 14ch; }
.hero[data-variant="split"] .hero-content .lead { color: var(--muted); }
.hero[data-variant="split"] .hero-content .hero-eyebrow { color: var(--muted); }
.hero[data-variant="split"] .hero-content .hero-eyebrow .dot { background: var(--accent); }
.hero[data-variant="split"] .hero-actions .btn-ghost-light {
  color: var(--fg);
  border-color: var(--border-2);
}
.hero[data-variant="split"] .hero-actions .btn-ghost-light:hover { background: var(--fg); color: var(--bg); }
.hero[data-variant="split"] .hero-content > .hero-photo {
  position: relative;
  min-height: 720px;
}
.hero[data-variant="split"] .hero-content > .hero-photo image-slot {
  position: absolute; inset: 0;
}
.hero[data-variant="split"] .hero-meta {
  top: auto; bottom: 24px; right: var(--pad-x);
  color: var(--muted);
}
.hero[data-variant="split"] .hero-meta .key { color: var(--muted-2); }

/* Hero variant: typographic */
.hero[data-variant="type"] {
  background: var(--bg);
  align-items: center;
  min-height: clamp(560px, 75vh, 760px);
}
.hero[data-variant="type"] .hero-bg { display: none; }
.hero[data-variant="type"] .hero-content { color: var(--fg); }
.hero[data-variant="type"] .hero-content h1 {
  color: var(--fg);
  font-size: clamp(64px, 11vw, 180px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
  max-width: none;
}
.hero[data-variant="type"] .hero-content h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hero[data-variant="type"] .hero-content .lead { color: var(--muted); max-width: 48ch; margin-top: 32px; }
.hero[data-variant="type"] .hero-content .hero-eyebrow { color: var(--muted); }
.hero[data-variant="type"] .hero-actions .btn-ghost-light {
  color: var(--fg); border-color: var(--border-2);
}
.hero[data-variant="type"] .hero-actions .btn-ghost-light:hover { background: var(--fg); color: var(--bg); }
.hero[data-variant="type"] .hero-meta { color: var(--muted); }
.hero[data-variant="type"] .hero-meta .key { color: var(--muted-2); }

@media (max-width: 880px) {
  .hero[data-variant="split"] .hero-content { grid-template-columns: 1fr; }
  .hero[data-variant="split"] .hero-content > .hero-photo { min-height: 360px; }
  .hero[data-variant="split"] .hero-content > .hero-text { padding-right: 0; padding-block: 64px 32px; }
}

/* ── Mobile menu sheet ──────────────────────────────────── */
.mobile-sheet {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 60;
  transform: translateY(-100%);
  transition: transform .35s var(--ease), visibility .35s var(--ease);
  display: flex; flex-direction: column;
  overflow-y: auto;
  /* A closed sheet must not capture clicks. It is only slid out of view by the
     transform, and `.sheet-foot` (margin-top:auto) overflows the sheet's box —
     so without these it hung ~65px back into the viewport at z-index 60 and
     swallowed every click on the 72px header underneath, leaving only a ~7px
     live strip at the bottom of each nav link. */
  visibility: hidden;
  pointer-events: none;
}
.mobile-sheet.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-sheet .sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  padding-inline: var(--pad-x);
  border-bottom: 1px solid var(--border);
}
.mobile-sheet ul {
  list-style: none; padding: var(--pad-x); margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-sheet ul a {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 12px 0;
  display: block;
}
.mobile-sheet .sheet-foot { padding: var(--pad-x); margin-top: auto; }
.close-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  display: grid; place-items: center;
}

/* ─────────────────────────────────────────────────────────────
   MOBILE RESPONSIVENESS SAFETY NET
   Several page templates (freeline, dach-optionen, produkte,
   system-110/135, ueber-uns, …) build their layout from INLINE
   grid styles like style="grid-template-columns:1fr 2fr". A media
   query in this stylesheet normally can't override an inline style —
   but an author !important declaration DOES beat a non-important
   inline one, so these rules force every inline multi-column grid to
   a single column on phones. Fixes the "not responsive" pages without
   editing each template.
   ───────────────────────────────────────────────────────────── */
/* Forms stack earlier than the 760px catch-all: the pages around them already
   collapse at 880px, which left the two-column form squeezed inside a stacked
   layout on tablets. */
@media (max-width: 880px) {
  form[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  form [style*="grid-column:span 2"],
  form [style*="grid-column: span 2"] { grid-column: span 1 !important; }

  /* Collapsing to one column is not enough on its own. A grid/flex item's
     automatic minimum size is its content's min-content width, so a single
     unshrinkable child drags the whole form wider than the screen — and the
     `html, body { overflow-x: hidden }` rule further down then CLIPS the
     overflow instead of scrolling it, silently cutting the right-hand edge
     off every field with no way to reach it.
     The offender on /de/partner is the file input: `Fotos bisheriger
     Arbeiten` measures 356px min-content and refuses to go narrower, which
     forced the form to 414px inside a 350px column on a 390px phone. */
  [style*="grid-template-columns"] > *,
  form > *,
  .field { min-width: 0; }
  input[type="file"] { width: 100%; max-width: 100%; }
}
/* 30.10.2026: Formulare am Handy — 40 px Innenabstand ließ bei 390 px nur 268 px breite Felder. */
@media (max-width: 560px) {
  form[style*="padding:40px"] { padding: 22px !important; }
}
/* 30.10.2026: Einwilligungs-Häkchen war 13 × 13 px — zu klein für den Finger (WCAG 2.5.8). */
form label > input[type="checkbox"][name="datenschutz"] { width: 20px; height: 20px; flex: 0 0 auto; }
/* Fließtext-Links nur über die Farbe erkennbar (WCAG 1.4.1) → unterstrichen. Gilt für den Link
   «Datenschutzerklärung» in der Einwilligung (consent_label) und die Rechtstexte (.legal-block). */
.consent-link, .legal-block a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* large desktop gaps leave big voids once stacked — tighten them */
  [style*="gap:48px"], [style*="gap: 48px"],
  [style*="gap:64px"], [style*="gap: 64px"],
  [style*="gap:80px"], [style*="gap: 80px"] {
    gap: 28px !important;
  }
  /* wide multi-column comparison tables (produkte, dach-optionen) would get
     clipped by their overflow:hidden wrapper — keep columns readable and let
     the wrapper scroll horizontally instead. */
  table { min-width: 520px; }
  [style*="overflow:hidden"]:has(> table),
  [style*="overflow: hidden"]:has(> table) { overflow-x: auto !important; }
  /* never allow a stray wide element to cause horizontal scroll */
  html, body { overflow-x: hidden; }
  /* `hidden` macht body zum Scroll-Container — dann klebt nichts mehr
     (weder die Kopfzeile noch das 3D-Modell). `clip` schneidet genauso ab,
     ohne Scroll-Container zu sein. Ältere Browser behalten `hidden`. */
  @supports (overflow-x: clip) { html, body { overflow-x: clip; } }
}

@media (max-width: 480px) {
  /* .btn is white-space:nowrap, so a long label simply grows past the screen
     instead of wrapping — "Alle Referenzen in der Galerie ansehen" measured
     375px inside a 320px column and stuck out on BOTH sides. Let long labels
     wrap on phones; short ones are unaffected. */
  .btn { white-space: normal; max-width: 100%; text-align: center; }
  .btn-lg { padding-inline: 20px; }
}

/* ══════════════════════════════════════════════════════════════════════
   PDP-Konfigurator + Warenkorb (2026-08-24)
   Nur Tokens verwenden — die Seite hat einen Dunkelmodus.
   ══════════════════════════════════════════════════════════════════════ */

.pdp-buy {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 32px;
  align-self: start;
  /* NICHT mehr klebend (Stand 30.08.2026): seit die Kauf-Box Farbe,
     Sonderanfertigung und alle Optionen enthält, ist sie höher als der
     Bildschirm. Ein klebendes Element, das höher ist als das Fenster, klebt am
     oberen Rand fest — an sein unteres Ende kommt man dann nur schwer heran.
     Jetzt klebt stattdessen die Galerie (siehe .pdp-gallery): das Bild bleibt
     stehen, die Optionen laufen daran vorbei. */
}
.pdp-buy__eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pdp-buy__price { font-family: var(--font-display); font-size: 48px; font-weight: 500; letter-spacing: -.03em; margin-top: 8px; line-height: 1; }
.pdp-buy__config { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.pdp-buy__note { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.pdp-opt { margin-top: 22px; }
.pdp-opt__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.pdp-opt__label { font-family: var(--font-mono, inherit); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pdp-opt__chosen { font-size: 13px; color: var(--fg-2); text-align: right; }

.pdp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-pill {
  flex: 1 1 auto; min-width: 96px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 14px;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--border-2); border-radius: var(--radius);
  font: inherit; font-size: 14px; cursor: pointer;
  transition: border-color .18s, background-color .18s, color .18s;
}
.pdp-pill small { font-size: 11px; color: var(--muted); }
.pdp-pill:hover { border-color: var(--muted-2); }
.pdp-pill[aria-pressed="true"] { background: var(--fg); color: var(--surface); border-color: var(--fg); }
.pdp-pill[aria-pressed="true"] small { color: inherit; opacity: .7; }

.pdp-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp-swatch {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-2); cursor: pointer; padding: 0;
  box-shadow: inset 0 0 0 2px var(--surface-2);
  transition: outline-color .18s;
  outline: 2px solid transparent; outline-offset: 2px;
}
.pdp-swatch[aria-pressed="true"] { outline-color: var(--accent); }

.pdp-fund { display: flex; flex-direction: column; gap: 8px; }
.pdp-fundopt {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 14px 16px;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--border-2); border-radius: var(--radius);
  font: inherit; cursor: pointer;
  transition: border-color .18s, background-color .18s;
}
.pdp-fundopt:hover { border-color: var(--muted-2); }
.pdp-fundopt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.pdp-radio { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--border-2); flex: 0 0 auto; position: relative; }
.pdp-fundopt[aria-pressed="true"] .pdp-radio { border-color: var(--accent); }
.pdp-fundopt[aria-pressed="true"] .pdp-radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent);
}
.pdp-ftext { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.pdp-ftext strong { font-size: 14px; font-weight: 500; }
.pdp-ftext span { font-size: 12px; color: var(--muted); }
.pdp-fprice { font-size: 14px; white-space: nowrap; }

/* 25.09.2026 (Audit N2): bei 320 px ragte «In den Warenkorb» ~41 px aus der
   Kauf-Box — der Knopf (nowrap) passte nicht neben die Mengenwahl. Jetzt darf
   die Zeile umbrechen: reicht der Platz nicht, steht der Knopf in voller
   Breite unter der Menge. min-width:0 + normal-Umbruch als letzte Sicherung. */
.pdp-buy__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pdp-qty { display: flex; align-items: center; border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--surface); flex: 0 0 auto; }
.pdp-qty button { width: 38px; height: 48px; background: none; border: 0; color: var(--fg); font-size: 17px; cursor: pointer; }
.pdp-qty input { width: 36px; height: 48px; border: 0; background: none; color: var(--fg); text-align: center; font: inherit; font-size: 14px; }
.pdp-add { flex: 1 1 150px; min-width: 0; max-width: 100%; justify-content: center; white-space: normal; text-align: center; }
/* 25.09.2026 (Audit R4-9): bei 375 px brach «In den Warenkorb →» auf zwei
   Zeilen (Knopf 163 px breit, Text braucht mit 20 px Rand 200 px), und die
   Mengenwahl wurde 78 px hoch mitgezogen. Bis 420 px jetzt: Text 15 px,
   Rand 12 px, Pfeilabstand 6 px (Knopf ≈ 171 px) und eine schmalere
   Mengenwahl (100 statt 114 px) — passt bei 375 neben die Menge. Dazu
   nowrap + Basis «Inhaltsbreite»: wo es nicht reicht (320 px), rutscht der
   Knopf wie bisher in voller Breite unter die Menge, bleibt aber einzeilig. */
@media (max-width: 420px) {
  .pdp-add { flex: 1 0 auto; white-space: nowrap; font-size: 15px; padding-inline: 12px; gap: 6px; }
  .pdp-qty button { width: 34px; }
  .pdp-qty input { width: 30px; }
}

/* «Direkt kaufen» steht UNTER der Warenkorb-Zeile, nicht daneben: der
   Warenkorb ist der Regelweg (mehrere Positionen, eine Anfrage), der Sprung in
   den Shop die Abkürzung für genau diese eine Ausführung.
   Fehlt die Variante im Shop, wird der Knopf blass statt unsichtbar — sonst
   hüpfte die Kauf-Box bei jedem Wechsel der Eindeckung. */

.pdp-buy__hint { font-size: 12.5px; line-height: 1.6; color: var(--muted); margin: 14px 0 0; }
.pdp-buy__added { font-size: 13px; margin: 12px 0 0; color: var(--fg-2); }
.pdp-buy__added a { color: var(--accent); }

.pdp-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.pdp-facts li { display: flex; justify-content: space-between; }

/* Warenkorb-Zähler im Header */
.basket-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--radius); color: var(--fg); }
.basket-link:hover { background: var(--surface-2); }
.basket-count {
  position: absolute; top: 2px; right: 0;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--accent); color: var(--accent-ink);
  font-size: 10.5px; line-height: 17px; text-align: center; font-weight: 600;
}

/* Warenkorb-Seite */
.cart-line { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; padding: 22px 0; border-top: 1px solid var(--border); }
.cart-line__name { font-size: 17px; margin: 0 0 4px; }
.cart-line__cfg { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }
.cart-line__price { font-size: 17px; white-space: nowrap; }
.cart-line__remove { background: none; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; padding: 4px 0; text-decoration: underline; }
.cart-line__remove:hover { color: var(--accent); }
.cart-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 24px 0; border-top: 1px solid var(--fg); margin-top: 8px; }
.cart-sum__total { font-family: var(--font-display); font-size: 36px; font-weight: 500; letter-spacing: -.02em; }

@media (max-width: 860px) {
  .pdp-buy { position: static; padding: 24px; }
  .cart-line { grid-template-columns: 1fr; gap: 12px; }
}

/* ── Produktkopf: Galerie + Kauf-Box (Aufbau der Shop-PDP, 2026-08-24) ── */

.pdp-shopbar {
  background: var(--fg); color: var(--surface);
  font-size: 12.5px; letter-spacing: .02em; text-align: center;
  padding: 11px 20px;
}
.pdp-top { padding-top: clamp(28px, 3vw, 44px); }

.pdp-breadcrumb { display: flex; gap: 10px; align-items: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; flex-wrap: wrap; }
.pdp-breadcrumb a { color: inherit; text-decoration: none; }
.pdp-breadcrumb a:hover { color: var(--accent); }
.pdp-breadcrumb [aria-current] { color: var(--fg-2); }
/* 30.10.2026 (WCAG 2.5.8): Brotkrumen-Links waren am Handy 14–17 px hoch. Größere Trefferfläche,
   die Zeile bleibt gleich hoch (negativer Rand gleicht das Polster aus). */
.page-hero .breadcrumb a, .pdp-breadcrumb a { display: inline-block; padding-block: 5px; margin-block: -5px; }

.pdp-hero { display: grid; grid-template-columns: 1fr 460px; gap: 56px; align-items: start; }

/* Das Bild bleibt stehen, solange die Kauf-Box daneben scrollt — bis zum Ende
   des Abschnitts, danach läuft es normal mit. `align-self: start` ist dafür
   nötig: ein Rasterelement, das sich auf die volle Höhe streckt, kann nicht
   kleben. */
.pdp-gallery { position: sticky; top: 96px; align-self: start; }
/* Die Galerie klebt nur, bis rechts die Trennlinie unter dem Kauf-Hinweis
   erreicht ist (17.09.2026) — danach laufen beide Spalten gemeinsam weiter.
   Die Spalte ist genau so hoch wie der Weg bis zu dieser Linie; pdp.js setzt
   --pdp-track, weil sich die Kauf-Box mit der Auswahl in der Höhe ändert. */
.pdp-gallery-col { align-self: start; min-height: var(--pdp-track, auto); }

/* Sonderanfertigung aufgeklappt = «das ist keine Standardausführung»
   (30.08.2026, Vorgabe der GF).
   Dann treten Preis und Optionen zurück: Größe, Konsole, Eindeckung und Farbe
   beschreiben eine Ausführung, die es so gerade NICHT sein soll, und ein Preis
   dazu wäre eine Zusage, die niemand halten kann. Stehen bleibt, was zählt —
   die Beschreibung, die Anhänge und der Weg in die Anfrage.
   Umgeschaltet wird über eine Klasse an der Kauf-Box (pdp.js), nicht über
   `:has()`: Safari kann das erst seit 15.4, und ein Betrieb mit älterem Gerät
   sähe sonst beides gleichzeitig. */
.pdp-buy.is-sonder .pdp-buy__price,
.pdp-buy.is-sonder .pdp-buy__config,
.pdp-buy.is-sonder .pdp-buy__note,
.pdp-buy.is-sonder .pdp-opt,
.pdp-buy.is-sonder .pdp-fund,
.pdp-buy.is-sonder .divider { display: none; }
/* Die Menge ergibt ohne gewählte Ausführung auch keinen Sinn mehr. */
.pdp-buy.is-sonder .pdp-qty { display: none; }
.pdp-buy__hint--sonder { display: none; }
.pdp-buy.is-sonder .pdp-buy__hint--std { display: none; }
.pdp-buy.is-sonder .pdp-buy__hint--sonder { display: block; }
.pdp-buy.is-sonder .pdp-add { width: 100%; }


.pdp-gallery__main { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); aspect-ratio: 4/3; }
.pdp-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-badge {
  position: absolute; top: 18px; left: 18px; z-index: 1;
  background: var(--accent-btn); color: var(--accent-ink);   /* 30.10.2026: 3,53 → 4,52:1 */
  font-family: var(--font-mono, inherit); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 999px; line-height: 1;
}
@media (max-width: 560px) { .pdp-badge { top: 12px; left: 12px; height: 28px; padding: 0 11px; } }
.pdp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.pdp-thumb { padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); cursor: pointer; aspect-ratio: 3/2; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .18s, border-color .18s; }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumb[aria-pressed="true"] { outline-color: var(--accent); border-color: var(--accent); }

.pdp-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.pdp-trust__card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; background: var(--surface); }
.pdp-trust__title { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--focus-ring); margin-bottom: 10px; }
.pdp-trust__card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

.pdp-buy__name { font-family: var(--font-display); font-size: clamp(44px, 5vw, 72px); font-weight: 500; letter-spacing: -.03em; line-height: 1; margin: 12px 0 0; }
.pdp-buy__art { display: block; font-family: var(--font-text); font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1.3; color: var(--fg-2); margin-bottom: 8px; }
.pdp-buy__lead { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 16px 0 24px; }

.pdp-assure { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.pdp-assure li { display: flex; gap: 14px; align-items: flex-start; }
.pdp-assure__ic { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-2); color: var(--accent); display: grid; place-items: center; font-size: 12px; }
.pdp-assure li > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.pdp-assure strong { font-size: 14px; font-weight: 500; }
.pdp-assure li span span { font-size: 13px; color: var(--muted); line-height: 1.5; }

.pdp-acc { margin-top: 26px; border-top: 1px solid var(--border); }
.pdp-acc details { border-bottom: 1px solid var(--border); }
.pdp-acc summary { cursor: pointer; list-style: none; padding: 16px 0; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.pdp-acc summary::-webkit-details-marker { display: none; }
.pdp-acc summary::after { content: "+"; color: var(--muted); font-size: 18px; line-height: 1; }
.pdp-acc details[open] summary::after { content: "−"; }
.pdp-acc__body { padding: 0 0 18px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.pdp-acc__body p { margin: 0; }

@media (max-width: 1080px) {
  /* minmax(0,1fr): ohne die Untergrenze 0 wächst die Spalte auf die Mindestbreite
     ihres Inhalts (Galerie, Preis-Chip) und schneidet bei 320 px rechts ab. */
  .pdp-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  /* Einspaltig gibt es nichts, woran das Bild kleben könnte — es stünde sonst
     über dem eigenen Text fest. */
  .pdp-gallery { position: static; }
}
@media (max-width: 560px) {
  .pdp-thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .pdp-trust { grid-template-columns: 1fr; }
}

/* Abstand um die Trennlinien in der Kauf-Box — .divider hat margin:0 */
.pdp-buy .divider { margin: 26px 0; }

/* ══════════════════════════════════════════════════════════════════════
   Fachpartner-Bereich (2026-08-24)
   ══════════════════════════════════════════════════════════════════════ */

.pp-bar { border-bottom: 1px solid var(--border); background: var(--surface-2); position: sticky; top: 0; z-index: 20; }
.pp-bar__in { display: flex; align-items: center; gap: 28px; padding: 12px 0; flex-wrap: wrap; }
.pp-bar__brand { display: flex; align-items: center; gap: 12px; }
.pp-bar__brand .brand-logo { display: block; height: 22px; width: auto; }
.pp-bar__badge { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent); border-radius: 999px; padding: 4px 9px; }
.pp-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.pp-nav a { font-size: 14px; color: var(--muted); text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid transparent; }
.pp-nav a:hover { color: var(--fg); }
.pp-nav a[aria-current] { color: var(--fg); border-bottom-color: var(--accent); }
.pp-bar__user { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); }
.pp-bar__user a { color: var(--muted); }
.pp-bar__user a:hover { color: var(--accent); }

.pp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.pp-card { display: flex; flex-direction: column; gap: 10px; padding: 30px; text-decoration: none; color: inherit;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .18s, transform .18s; }
.pp-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.pp-card__k { font-size: 11px; letter-spacing: .14em; color: var(--accent); }
.pp-card h2 { font-size: 24px; margin: 0; }
.pp-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); flex: 1 1 auto; }
.pp-card__go { font-size: 14px; color: var(--accent); }
.pp-card:hover .arr { transform: translateX(4px); }

.pp-note { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius);
  background: var(--surface-2); padding: 18px 22px; }
.pp-note > strong { display: block; margin-bottom: 6px; }
.pp-note p strong { display: inline; }
.pp-note p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
.pp-note--ok { border-left-color: #2E7D32; }
.pp-note--warn { border-left-color: #B45309; }

.pp-filter { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.pp-filter input[type="search"], .pp-filter select {
  height: 44px; padding: 0 14px; font: inherit; font-size: 14px;
  border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--surface); color: var(--fg); }
.pp-filter input[type="search"] { min-width: 260px; }
.pp-filter__reset { font-size: 13px; color: var(--muted); }

.pp-tablewrap { overflow-x: auto; margin-top: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.pp-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.pp-table th { text-align: left; font-family: var(--font-mono, inherit); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); font-weight: 400; padding: 14px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.pp-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.pp-table tbody tr:last-child td { border-bottom: 0; }
.pp-table tbody tr:hover { background: var(--surface-2); }
.pp-table .num { text-align: right; }
.pp-table .muted { color: var(--muted); }
.pp-table input[type="number"] { width: 84px; height: 38px; padding: 0 10px; text-align: right; font: inherit; font-size: 14px;
  border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--surface); color: var(--fg); }

.pp-submit { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pp-submit label { font-size: 13px; color: var(--muted); }
.pp-submit textarea { width: 100%; max-width: 620px; padding: 12px 14px; font: inherit; font-size: 14px;
  border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--surface); color: var(--fg); resize: vertical; }

.pp-dl { margin-top: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.pp-dl__row { display: flex; align-items: center; gap: 20px; padding: 24px; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--border); transition: background-color .18s; }
.pp-dl__row:last-child { border-bottom: 0; }
.pp-dl__row:hover { background: var(--surface-2); }
.pp-dl__ic { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono, inherit); font-size: 11px; letter-spacing: .06em; }
.pp-dl__txt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; }
.pp-dl__txt span { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.pp-dl__go { font-size: 14px; color: var(--accent); white-space: nowrap; }

@media (max-width: 860px) {
  .pp-cards { grid-template-columns: 1fr; }
  .pp-dl__go { display: none; }
}

/* ── Teile-Katalog im Partnerbereich (Aufbau der Shop-Teileliste) ── */

/* Filter: zwei beschriftete Reihen. Die Beschriftung ist der Punkt — ohne sie
   sah es aus wie eine Chipwolke, in der sich Zahlen ohne Grund ändern. */
.tk-filter { margin-top: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.tk-filter__row { display: flex; align-items: flex-start; gap: 20px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.tk-filter__row:last-child { border-bottom: 0; }
.tk-filter__label { flex: 0 0 62px; padding-top: 8px; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); }
.tk-filter__chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1 1 auto; }
.tk-filter .tk-search { margin-top: 0; }
.tk-chip.is-leer { opacity: .35; pointer-events: none; }
.tk-result { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.tk-result strong { color: var(--fg); font-weight: 500; }
.tk-result a { color: var(--accent); }

.tk-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 32px; }
.tk-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; text-decoration: none;
  font-family: var(--font-mono, inherit); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: var(--surface); border: 1px solid var(--border-2); border-radius: 999px;
  transition: color .18s, border-color .18s, background-color .18s; }
.tk-chip span { font-size: 10px; opacity: .65; }
.tk-chip:hover { color: var(--fg); border-color: var(--muted-2); }
.tk-chip.is-on { background: var(--fg); color: var(--surface); border-color: var(--fg); }
.tk-chips__sep { width: 1px; height: 22px; background: var(--border-2); margin: 0 6px; }

.tk-search { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.tk-search input[type="search"] { height: 44px; min-width: 280px; padding: 0 14px; font: inherit; font-size: 14px;
  border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--surface); color: var(--fg); }
.tk-search__reset { font-size: 13px; color: var(--muted); }

/* Ein Rastermaß für Kopfzeile und Zeilen, damit die Spalten fluchten. */
.tk-head, .tk-row__sum {
  display: grid;
  grid-template-columns: 72px 110px minmax(180px, 1fr) 110px 96px 88px 104px;
  gap: 16px; align-items: center;
}
.tk-head { padding: 14px 18px; margin-top: 26px;
  font-family: var(--font-mono, inherit); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tk-head .num, .tk-row__sum .num { text-align: right; }

.tk-list { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.tk-row { border-bottom: 1px solid var(--border); }
.tk-row:last-child { border-bottom: 0; }
.tk-row__sum { padding: 12px 18px; cursor: pointer; list-style: none; transition: background-color .18s; }
.tk-row__sum::-webkit-details-marker { display: none; }
.tk-row__sum:hover { background: var(--surface-2); }
.tk-row[open] .tk-row__sum { background: var(--surface-2); }

.tk-row__pic { width: 72px; height: 56px; border-radius: var(--radius); overflow: hidden; background: #fff;
  display: grid; place-items: center; border: 1px solid var(--border); }
.tk-row__pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tk-row__nopic { color: var(--muted-2); font-size: 12px; }
.tk-row__nr { color: var(--accent); font-size: 13px; }
.tk-row__bez { font-size: 14.5px; }
.tk-row__sys, .tk-row__art { font-size: 12.5px; color: var(--muted); }
.tk-row__kg { font-size: 13px; }
.tk-row__qty input { width: 84px; height: 38px; padding: 0 10px; text-align: right; font: inherit; font-size: 14px;
  border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--surface); color: var(--fg); }

.tk-row__detail { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding: 8px 18px 28px 90px; }
/* Ohne Zeichnung entfällt die Bildspalte — sonst bleibt sie leer stehen und
   presst die Angaben in einen schmalen Rest, in dem jedes Label umbricht. */
.tk-row__detail--nopic { grid-template-columns: minmax(0, 1fr); }
.tk-detail__pic { display: block; text-decoration: none; }
.tk-detail__pic img { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; display: block; }
.tk-detail__pic span { display: inline-block; margin-top: 8px; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); }
/* auto-fit statt fester Spaltenzahl: die Angaben bekommen nie weniger als
   260 px, sonst kollidieren Bezeichnung und Wert. */
.tk-detail__facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 40px; align-content: start; }
.tk-detail__facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.tk-detail__facts dt { white-space: nowrap; }
.tk-detail__facts dt { font-size: 13px; color: var(--muted); margin: 0; }
.tk-detail__facts dd { font-size: 13.5px; margin: 0; text-align: right; }
.tk-detail__note { grid-column: 1 / -1; }
.tk-detail__note dd { text-align: left; color: var(--fg-2); }

@media (max-width: 900px) {
  .tk-head { display: none; }
  .tk-row__sum { grid-template-columns: 64px 1fr 84px; grid-template-areas: "pic bez qty" "pic meta qty"; gap: 4px 14px; }
  .tk-row__pic { grid-area: pic; width: 64px; height: 64px; }
  .tk-row__bez { grid-area: bez; }
  .tk-row__qty { grid-area: qty; }
  .tk-row__nr { grid-area: meta; }
  .tk-row__sys, .tk-row__art, .tk-row__kg { display: none; }
  .tk-row__detail { grid-template-columns: 1fr; padding: 8px 18px 24px; gap: 20px; }
  .tk-detail__facts { grid-template-columns: 1fr; }
}
.tk-row__pic--leer { background: var(--surface-2); border-style: dashed; }
.tk-row__nopic { color: var(--muted-2); font-size: 9.5px; line-height: 1.25; text-align: center;
  letter-spacing: .06em; text-transform: uppercase; font-family: var(--font-mono, inherit); }
.tk-detail__warn dd { color: var(--fg-2); }
.tk-detail__warn dt { color: var(--accent); }

/* Portal-Leiste: Nutzerbereich rechts, Austritt mit Rückfrage */
.pp-bar__user { margin-left: auto; }
.pp-bar__out { font-size: 13px; }

.pp-leave { position: relative; }
.pp-leave > summary { list-style: none; cursor: pointer; font-size: 13px; color: var(--muted);
  padding: 6px 12px; border: 1px solid var(--border-2); border-radius: var(--radius); }
.pp-leave > summary::-webkit-details-marker { display: none; }
.pp-leave > summary:hover { color: var(--fg); border-color: var(--muted-2); }
.pp-leave[open] > summary { color: var(--fg); border-color: var(--accent); }
.pp-leave__box { position: absolute; right: 0; top: calc(100% + 10px); width: min(360px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: 0 18px 44px rgba(0,0,0,.22); z-index: 30; }
.pp-leave__box strong { display: block; margin-bottom: 8px; font-size: 15px; }
.pp-leave__box p { margin: 0 0 16px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.pp-leave__box .mono { color: var(--fg-2); }
.pp-leave__row { display: flex; gap: 10px; align-items: center; }
.pp-leave__no { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px;
  cursor: pointer; text-decoration: underline; padding: 4px; }
.pp-leave__no:hover { color: var(--fg); }

.pp-foot { border-top: 1px solid var(--border); margin-top: 72px; background: var(--surface-2); }
.pp-foot__in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 0; font-size: 12.5px; color: var(--muted); }
.pp-foot__links { display: flex; gap: 20px; }
.pp-foot__links a { color: var(--muted); }
.pp-foot__links a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .pp-bar__in { gap: 12px 18px; }
  .pp-bar__user { width: 100%; margin-left: 0; justify-content: space-between; }
  .pp-bar__user > .mono { font-size: 12px; }
}

/* Produkte im Partnerbereich: eigene Spaltenaufteilung, Eindeckungen im Detail */
.tk-head--prod, .tk-row__sum--prod {
  grid-template-columns: 72px minmax(160px, 1fr) 210px 96px 110px 110px;
}
.tk-row--prod .tk-row__pic { height: 52px; }
.tk-row--prod .tk-row__pic img { object-fit: cover; }

.prod-tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.prod-tab th { text-align: left; padding: 0 14px 10px; border-bottom: 1px solid var(--border);
  font-family: var(--font-mono, inherit); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); font-weight: 400; }
.prod-tab td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.prod-tab tbody tr:last-child td { border-bottom: 0; }
.prod-tab .num { text-align: right; }
.prod-tab .muted { color: var(--muted); font-size: 13px; }
.prod-tab input[type="number"] { width: 84px; height: 38px; padding: 0 10px; text-align: right; font: inherit;
  font-size: 14px; border: 1px solid var(--border-2); border-radius: var(--radius);
  background: var(--surface); color: var(--fg); }
.prod-note { margin: 18px 14px 0; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 78ch; }

@media (max-width: 900px) {
  .tk-head--prod { display: none; }
  .tk-row__sum--prod { grid-template-columns: 64px 1fr 110px; grid-template-areas: "pic bez preis" "pic meta preis"; }
  .tk-row--prod .tk-row__sys { grid-area: meta; display: block; }
  .tk-row--prod .tk-row__kg { grid-area: preis; display: block; }
  .tk-row--prod .tk-row__art { display: none; }
  .prod-tab thead { display: none; }
  .prod-tab tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .prod-tab td { border: 0; padding: 0 14px; }
  .prod-tab td:nth-child(2) { grid-column: 1; font-size: 12.5px; }
  .prod-tab td:nth-child(3) { grid-row: 1; grid-column: 2; }
  .prod-tab td:nth-child(4) { grid-row: 2; grid-column: 2; }
}

/* Kopfzeile: Wiedererkennung für Fachpartner */
.nav-fp { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; text-decoration: none;
  font-size: 12.5px; color: var(--fg-2); border: 1px solid var(--border-2); border-radius: 999px;
  white-space: nowrap; transition: border-color .18s, color .18s; }
.nav-fp:hover { border-color: var(--accent); color: var(--accent); }
.nav-fp__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 1100px) { .nav-fp { display: none; } }

/* Partner-Konfigurator über der Mengentabelle */
.pk { display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: start; margin-top: 36px; }
.pk__tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.pk__box { position: static; }
.pk__box .pdp-buy__price { font-size: 40px; }
@media (max-width: 1000px) { .pk { grid-template-columns: 1fr; gap: 28px; } }
.pk__sum { font-size: 13px; color: var(--muted); margin-top: 2px; }
.pk__total { margin: 22px 0 0; font-size: 14px; color: var(--accent); }

/* ══════════════════════════════════════════════════════════════════════
   3D-Modell in der Produkt-Galerie (2026-09-16)
   Liegt über dem Hauptbild; das Foto bleibt darunter als Platzhalter, bis
   das Modell fertig ist (.is-3d-ready). Ohne WebGL greift nichts hiervon.
   ══════════════════════════════════════════════════════════════════════ */
.pdp-3d { position: absolute; inset: 0; display: none; }
.pdp-gallery__main.is-3d .pdp-3d { display: block; }
.pdp-3d__canvas { position: absolute; inset: 0; }
.pdp-3d__canvas .a3d-canvas { display: block; width: 100%; height: 100%; cursor: grab; opacity: 0; transition: opacity .5s ease-out;
  /* senkrecht wischen scrollt die Seite, waagerecht dreht das Modell */
  touch-action: pan-y; }
.pdp-3d__canvas .a3d-canvas:active { cursor: grabbing; }
.pdp-gallery__main.is-3d-ready .a3d-canvas { opacity: 1; }
.pdp-3d__canvas .a3d-fade { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; }
.pdp-3d__canvas .a3d-fade.is-go { transition: opacity .55s cubic-bezier(.4,0,.2,1); }
.pdp-3d__loading {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .08em; color: var(--fg); background: color-mix(in srgb, var(--surface) 88%, transparent);
  padding: 7px 12px; border-radius: 999px; pointer-events: none; white-space: nowrap;
}
.pdp-gallery__main.is-3d-ready .pdp-3d__loading { display: none; }
/* Start-Knopf auf dem Foto (29.09.2026): das Modell lädt erst auf Klick, nicht
   mehr bei der ersten Bewegung. Gleiche Stelle wie der Lade-Hinweis, der ihn nach
   dem Klick ablöst; Farben wie die 3D-Miniatur. Mind. 44 px hoch (Finger). */
.pdp-3d-start {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 18px 10px 14px;
  font: 500 14.5px/1 var(--font-text); letter-spacing: .01em; white-space: nowrap; cursor: pointer;
  background: #2B3136; color: #F4F2EE; border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0,0,0,.28); transition: background .18s, box-shadow .18s;
}
.pdp-3d-start:hover { background: #1D2226; box-shadow: 0 3px 14px rgba(0,0,0,.34); }
/* Orange und grösser (02.10.2026, Wunsch Shahzad: «prominenter, in Orange» —
   und «unser Orange»: genau der Akzent wie «In den Warenkorb»). */
.pdp-3d-start {
  /* 30.10.2026: --accent-btn = derselbe Ton wie «In den Warenkorb» (.btn-accent), weiße Schrift 4,52:1 statt 3,53:1. */
  background: var(--accent-btn); color: var(--accent-ink); border-color: var(--accent-btn);
  font-weight: 600; font-size: 15.5px; min-height: 50px; padding: 13px 24px 13px 18px; gap: 10px;
  box-shadow: 0 4px 18px oklch(64% 0.14 47 / .45), 0 2px 6px rgba(0,0,0,.25);
}
.pdp-3d-start:hover { background: color-mix(in oklch, var(--accent-btn) 88%, #000); box-shadow: 0 6px 22px oklch(64% 0.14 47 / .55), 0 2px 6px rgba(0,0,0,.25); }
.pdp-3d-start:focus-visible { outline-color: #fff; }
.pdp-3d-start .pdp-3d-start__ic { width: 22px; height: 22px; }
/* Einmal sanft auf sich aufmerksam machen — nicht für Leute, die Bewegung abgeschaltet haben. */
@media (prefers-reduced-motion: no-preference) {
  .pdp-3d-start { animation: pdp-3d-ruf 2.4s ease-out .8s 2; }
  @keyframes pdp-3d-ruf {
    0%   { box-shadow: 0 4px 18px oklch(64% 0.14 47 / .45), 0 0 0 0 oklch(64% 0.14 47 / .55); }
    70%  { box-shadow: 0 4px 18px oklch(64% 0.14 47 / .45), 0 0 0 14px oklch(64% 0.14 47 / 0); }
    100% { box-shadow: 0 4px 18px oklch(64% 0.14 47 / .45), 0 0 0 0 oklch(64% 0.14 47 / 0); }
  }
}
.pdp-3d-start:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pdp-3d-start__ic { width: 20px; height: 20px; flex: 0 0 auto; }
.pdp-gallery__main.is-3d-failed .pdp-3d-start { display: none; }
.pdp-3d__canvas:focus { outline: none; }
.pdp-3d__canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pdp-3d__hint {
  position: absolute; left: 16px; bottom: 12px; margin: 0; pointer-events: none;
  font-size: 11px; color: #3B4145; opacity: 0; transition: opacity .5s;
}
.pdp-gallery__main.is-3d-ready .pdp-3d__hint { opacity: .85; }
.pdp-3d__canvas.is-night ~ .pdp-3d__hint { color: #E3E9EC; }
/* Preis am Modell: nur einspaltig, wo die Kauf-Box unter dem Modell liegt */
.pdp-3d__price {
  position: absolute; right: 14px; bottom: 12px; display: none;
  font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -.01em;
  background: var(--surface); color: var(--fg); padding: 6px 12px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
@media (max-width: 1080px) { .pdp-3d__price:not([hidden]) { display: block; } }
/* Solange der Lade-Hinweis steht, kein Preis-Chip — beide lagen sonst auf dem
   Handy übereinander (29.09.2026; seit dem Start per Klick sieht jeder den Hinweis) */
@media (max-width: 1080px) { .pdp-gallery__main:not(.is-3d-ready) .pdp-3d__price:not([hidden]) { display: none; } }
@media (max-width: 560px) { .pdp-3d__hint { display: none; } }

.pdp-3d-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.pdp-3d-opts[hidden] { display: none; }
.pdp-3d-credit { margin: 8px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.pdp-3d-credit[hidden] { display: none; }
.pdp-3d-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 1080px) { .pdp-3d-credit { order: 2; margin: -8px 0 16px; } }
/* Ansichts-Schalter als Chips in einer Reihe, jede Option mit eigener Farbe.
   Echte Checkbox bleibt darunter (Tastatur, Screenreader). */
.pdp-3d-opt { position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 12px; cursor: pointer; user-select: none;
  border: 1px solid color-mix(in srgb, var(--opt-c) 45%, var(--border-2)); border-radius: 999px;
  background: color-mix(in srgb, var(--opt-c) 8%, var(--surface)); color: var(--fg); font-size: 13.5px;
  transition: background .18s, border-color .18s, color .18s; }
.pdp-3d-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.pdp-3d-opt__ic { flex: 0 0 auto; width: 20px; height: 20px; color: var(--opt-c); transition: color .18s; }
.pdp-3d-opt span { line-height: 1.2; }
.pdp-3d-opt:hover { border-color: var(--opt-c); }
.pdp-3d-opt:has(input:checked), .pdp-3d-opt.is-on { background: var(--opt-c); border-color: var(--opt-c); color: #fff; }
.pdp-3d-opt:has(input:checked) .pdp-3d-opt__ic, .pdp-3d-opt.is-on .pdp-3d-opt__ic { color: #fff; }
.pdp-3d-opt:has(input:focus-visible) { outline: 2px solid var(--opt-c); outline-offset: 2px; }
.pdp-3d-opt--labels  { --opt-c: #2F7BC0; }
.pdp-3d-opt--explode { --opt-c: #7E5FC9; }
.pdp-3d-opt--water   { --opt-c: #1597AD; }
.pdp-3d-opt--evening { --opt-c: #D9901F; }
@media (max-width: 560px) { .pdp-3d-opts { grid-template-columns: 1fr 1fr !important; } .pdp-3d-opt { border-radius: 14px; } }

.pdp-thumbs.has-3d { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
.pdp-thumb--3d { display: grid; place-items: center; background: #2B3136; color: #F4F2EE; font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: .02em; }

/* Beschriftungen im Modell */
.a3d-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.a3d .tag3d { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; white-space: nowrap; }
.a3d .tag3d span { font: 500 12px/1 var(--font-text); background: #FFFFFF; color: #141414; border: 1px solid #D1CEC7; border-left: 4px solid var(--c, #6B6B68); padding: 5px 7px; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.a3d .tag3d span b { font-family: var(--font-mono); font-weight: 500; margin-right: 5px; }
.a3d .tag3d i { width: 1px; height: 14px; background: #6B6B68; }
.a3d .dimtag { position: absolute; transform: translate(-50%, -50%); font: 600 12px/1 var(--font-text); color: #15191C; background: #FFFFFF; border-radius: 4px; padding: 5px 7px; box-shadow: 0 1px 3px rgba(0,0,0,.18); white-space: nowrap; font-variant-numeric: tabular-nums; }
.a3d { --c-frame:#6F63A6; --c-beam:#2767B0; --c-sub:#0C8A7B; --c-rafter:#454C51; --c-post:#C4511A; --glass3d:#7FB6D1; }

/* 3D-Modell einspaltig (2026-09-16): Modell und Auswahl gehören zusammen.
   Vorher lagen auf dem Handy Ansichts-Schalter, Foto-Miniaturen und die beiden
   Vertrauens-Karten zwischen Modell und Größe/Eindeckung — rund 700 px, das
   Modell war beim Umschalten nicht mehr zu sehen. Jetzt: Modell bleibt oben
   stehen (klebt unter der Kopfzeile), direkt darunter die Kauf-Box; Miniaturen
   und Vertrauens-Karten rücken ans Ende. `display: contents` löst die Galerie
   auf, damit ihre Teile im Raster der .pdp-hero umsortiert werden können. */
@media (max-width: 1080px) {
  .pdp-hero { gap: 0; }
  .pdp-gallery, .pdp-gallery-col { display: contents; }
  .pdp-gallery__main { order: 1; }
  .pdp-gallery__main.has-3d-box {
    position: sticky; top: 73px; z-index: 6;
    aspect-ratio: auto; height: min(72vw, 44vh); min-height: 220px;
    box-shadow: 0 0 0 10px var(--bg);          /* deckt Inhalt ab, der darunter durchscrollt */
  }
  .pdp-3d-opts { order: 2; margin: 14px 0 18px; }
  .pdp-buy { order: 3; }
  .pdp-thumbs { order: 4; margin-top: 28px; }
  .pdp-trust { order: 5; }
  /* Im Modell zählt jetzt der Preis-Chip; der Hinweis stört auf kleiner Fläche */
  .pdp-gallery__main.is-3d .pdp-3d__hint { display: none; }
  /* Ohne 3D (kein WebGL) bleibt das Foto in normaler Grösse und klebt nicht */
  .pdp-gallery__main:not(.is-3d) + .pdp-3d-opts { margin: 0; }
}

/* Ratgeber- und Preisseiten (2026-09-17) */
.kosten-tab { width:100%; border-collapse:collapse; font-size:15px; font-variant-numeric:tabular-nums; }
.kosten-tab th, .kosten-tab td { padding:12px 14px; border-bottom:1px solid var(--border); text-align:right; white-space:nowrap; }
.kosten-tab th:first-child, .kosten-tab td:first-child { text-align:left; }
.kosten-tab thead th { font-family:var(--font-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); font-weight:400; }
.kosten-wrap { overflow-x:auto; margin-top:18px; border:1px solid var(--border); border-radius:var(--radius-lg); background:var(--surface); }
.ratgeber-text { max-width: 72ch; }
.ratgeber-text p { font-size:16px; line-height:1.7; color:var(--fg-2); margin:0 0 16px; }
.ratgeber-text h2 { margin: 48px 0 16px; }
.ratgeber-text h3 { margin: 28px 0 10px; font-family: var(--font-display); font-weight:500; font-size:20px; }
.ratgeber-text ul { margin:0 0 16px; padding-left:20px; line-height:1.7; color:var(--fg-2); }
.ratgeber-grid { display:grid; grid-template-columns: minmax(0,1fr) 300px; gap:56px; align-items:start; }
.ratgeber-aside { position: sticky; top: 96px; border:1px solid var(--border); border-radius: var(--radius-lg); padding:22px; background: var(--surface); }
.ratgeber-aside a { display:block; padding:7px 0; border-bottom:1px solid var(--border); font-size:14px; }
.ratgeber-aside a:last-child { border-bottom:0; }
.vergleich-tab { width:100%; border-collapse:collapse; font-size:15px; }
.vergleich-tab th, .vergleich-tab td { padding:12px 14px; border-bottom:1px solid var(--border); text-align:left; vertical-align:top; }
.vergleich-tab thead th { font-family:var(--font-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); font-weight:400; }
/* minmax(0,1fr) statt 1fr: sonst setzt eine breite Tabelle die Mindestbreite der
   Spalte und der ganze Ratgebertext wird bei 375 px 600–750 px breit und
   abgeschnitten (Audit W-F5, 25.09.2026). Tabellen scrollen in ihrem Kasten. */
@media (max-width: 960px) { .ratgeber-grid { grid-template-columns:minmax(0,1fr); } .ratgeber-aside { position:static; } }
.ratgeber-text, .ratgeber-aside { min-width: 0; }

/* Überschriften, die wie h4 aussehen, semantisch aber h3 sind (Lighthouse
   «heading-order», 17.09.2026): gleiche Optik wie h4, keine Designänderung. */
h3.h4 { font-size: 18px; letter-spacing: -0.01em; line-height: inherit; color: inherit; text-wrap: wrap; }

/* Kontextuelle Ratgeber-Links (partials/ratgeber-links.php) */
.ratgeber-links__h { font-size: clamp(24px, 2.6vw, 36px); margin-top: 16px; }
.ratgeber-links__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-top: 28px; }
.ratgeber-links__grid a { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 44px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--fg); text-decoration: none; transition: border-color .18s var(--ease); }
.ratgeber-links__grid a:hover, .ratgeber-links__grid a:focus-visible { border-color: var(--accent); }
.ratgeber-links__grid .t { font-family: var(--font-display); font-size: 17px; font-weight: 500; line-height: 1.3; }
.ratgeber-links__grid .d { font-size: 14px; line-height: 1.5; color: var(--muted); }
.ratgeber-links__grid .arr { position: absolute; left: 22px; bottom: 16px; color: var(--accent); }

/* Regionen-Übersicht (partials/regionen-uebersicht.php) */
.regionen-ueb__h { font-size: clamp(24px, 2.6vw, 36px); margin-top: 16px; }
.regionen-ueb__lead { max-width: 64ch; margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.regionen-ueb__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 24px; }
.regionen-ueb__item { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; background: var(--surface); }
.regionen-ueb__name { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--fg); text-decoration: none; }
.regionen-ueb__name .arr { color: var(--accent); }
.regionen-ueb__meta { margin-top: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.regionen-ueb__staedte { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: 14px; }
.regionen-ueb__staedte a { color: var(--fg-2); }
.regionen-ueb__staedte a:hover { color: var(--accent); }

/* ─────────────────────────────── Fehlermeldungen
   Vorgabe 24.09.2026: jeder Fehler, den ein Besucher oder Partner sieht, ist
   rot und nicht zu übersehen — ein Kasten, weisse Schrift, fett. Steht am
   Ende der Datei, damit er ältere, blassere Regeln überschreibt. Hinweise
   (Katalog-«Achtung», Schneelast-Zonen) sind keine Fehler und bleiben, wie
   sie sind. */
:root { --fehler: #c0392b; }

.fehler-box,
.field-err,
.form-note.err,
.qt__fehler,
.tk-opt__fehler {
  display: block;
  margin-top: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--fehler);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.field .field-err { margin-top: 8px; font-size: 13px; padding: 8px 12px; }
.fehler-box[hidden], .field-err[hidden], .qt__fehler[hidden], .tk-opt__fehler[hidden] { display: none; }
.fehler-box a, .field-err a, .form-note.err a, .pp-note--warn a { color: #fff; text-decoration: underline; }

.pp-note--warn {
  background: var(--fehler);
  border-left-color: #7f1d1d;
  color: #fff;
}
.pp-note--warn strong, .pp-note--warn p { color: #fff; }

/* Das fehlerhafte Feld selbst bekommt einen roten Rahmen. */
[aria-invalid="true"],
.tk-opt.is-fehler,
.tk-opt__len input.is-fehler { border-color: var(--fehler) !important; box-shadow: 0 0 0 1px var(--fehler); }
.tk-cut__rest.is-fehler,
.tk-cart__row.is-fehler .tk-cart__art { color: var(--fehler); font-weight: 600; }
.tk-cart__row.is-fehler { outline-color: var(--fehler); }

/* Captcha «Ich bin kein Roboter»: sieht aus wie die Eingabefelder daneben —
   volle Breite, gleicher Rahmen, Radius, Hintergrund, Schrift und Innenabstand;
   folgt dem hellen/dunklen Thema über die Farbvariablen der Seite. */
.captcha-feld altcha-widget {
  display: block;
  width: 100%;
  --altcha-max-width: 100%;
  --altcha-padding: 12px 16px;
  --altcha-border-width: 1px;
  --altcha-border-radius: var(--radius);
  --altcha-border-color: var(--border);
  --altcha-color-base: var(--surface);
  --altcha-color-base-content: var(--fg);
  --altcha-color-neutral: var(--muted);
  --altcha-color-primary: var(--accent);
  --altcha-color-primary-content: #fff;
  --altcha-input-background-color: var(--surface);
  --altcha-checkbox-size: 20px;
  --altcha-shadow: none;
}
.captcha-feld altcha-widget .altcha { width: 100%; max-width: none; box-sizing: border-box; }
.captcha-feld altcha-widget label {  /* nur die Beschriftung im Widget, nicht die Überschrift darüber */
  font-family: var(--font-text); font-size: 15px; text-transform: none;
  letter-spacing: 0; color: var(--fg); margin: 0;
}

/* ─────────────────────────────── Audit 25.09.2026 (W-F5 bis W-F7)
   1) Breite Tabellen scrollen in ihrem eigenen Kasten, nie die Seite.
      Schatten am Rand zeigen, dass seitlich mehr kommt (verschwinden am Ende,
      weil die deckenden Verläufe mitscrollen — «local»).
   2) Sprungziele und das erste ungültige Formularfeld landen unterhalb der
      klebenden Kopfzeile, nicht darunter.
   3) Ungültige Pflichtfelder sind nach dem Absenden rot umrandet. */
:root { --header-h: 73px; }   /* .site-header .nav 72px + 1px Rand */
/* +40px: auch die Feldbeschriftung über dem Eingabefeld bleibt sichtbar. */
html { scroll-padding-top: calc(var(--header-h) + 40px); }
/* Kein zusätzliches scroll-margin: es würde sich zum scroll-padding addieren. */

.tab-scroll { overflow-x: auto; margin-top: 12px; }
.kosten-wrap, .tab-scroll, .ort-tab-wrap, .pp-tablewrap {
  --tab-bg: var(--bg);
  --tab-shadow: color-mix(in oklab, var(--fg) 24%, transparent);
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(to right, var(--tab-bg) 30%, transparent) left center / 32px 100% no-repeat local,
    linear-gradient(to left, var(--tab-bg) 30%, transparent) right center / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, var(--tab-shadow), transparent) left center / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, var(--tab-shadow), transparent) right center / 12px 100% no-repeat scroll,
    var(--tab-bg);
}
.kosten-wrap { --tab-bg: var(--surface); }
.pp-tablewrap { --tab-bg: var(--surface); }
/* Gemeinde + Zone passen auf jedes Handy — die globale Mindestbreite (520px)
   für Vergleichstabellen gilt hier nicht, die Zone bleibt immer sichtbar. */
.zonen-liste .tab-scroll table, .ort-tab-wrap .ort-tab { min-width: 0; }
.zonen-liste .tab-scroll { margin-top: 0; }
/* Bundesland-Tabelle: beim seitlichen Scrollen bleibt die Land-Spalte stehen. */
@media (max-width: 760px) {
  .genehm-tab th:first-child {
    position: sticky; left: 0; z-index: 1;
    background: var(--surface);
    box-shadow: 1px 0 0 var(--border);
  }
  /* Ländernamen dürfen am Bindestrich umbrechen, sonst frisst die stehende
     Spalte die halbe Handybreite. */
  .kosten-wrap .genehm-tab th[scope="row"] { white-space: normal; width: 8.5em; hyphens: auto; }
}

form :is(input, select, textarea):user-invalid,
form :is(input, select, textarea).is-invalid {
  border-color: var(--fehler) !important;
  box-shadow: 0 0 0 1px var(--fehler);
}
form input[type="checkbox"]:user-invalid,
form input[type="checkbox"].is-invalid {
  outline: 2px solid var(--fehler);
  outline-offset: 2px;
}

/* Lange deutsche Wörter in grossen Überschriften («Terrassenüberdachung:»)
   passten am Telefon nicht in die Zeile und wurden abgeschnitten (Befund
   25.09.2026). Silbentrennung nach Sprache (html lang="de") + Umbruch als
   letzte Rettung. Nur schmale Bildschirme — am Desktop bleibt alles gleich. */
@media (max-width: 760px) {
  h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
}

/* Sprunglink (25.09.2026, Audit L6): unsichtbar, bis er per Tab den Fokus
   bekommt — dann oben links als Knopf. */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius);
  background: var(--fg); color: var(--bg); font-size: 14px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
/* Nur für Screenreader (30.10.2026: leere Tabellen-Kopfzellen auf /de/produkte und /de/polycarbonat-oder-glas). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* 25.09.2026 (Audit L12): lange Adressen (Google-Links in der
   Datenschutzerklärung) ragten bei 320 px über den Rand. */
.legal-block a { overflow-wrap: anywhere; }

/* Stückpreis unter der Summe bei Menge > 1 (02.10.2026, Audit Web M2). */
.pdp-buy__qtynote { margin-top: 2px; font-size: 13px; color: var(--muted); }

/* Telefon: mit 3D-Kachel standen 9–10 Vorschaubilder in einer Zeile, je
   ~32×21 px (02.10.2026, Audit Web M5). Jetzt eine wischbare Reihe mit
   Kacheln von mindestens 72 px. */
@media (max-width: 560px) {
  .pdp-thumbs.has-3d { grid-auto-columns: 72px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .pdp-thumbs.has-3d > * { scroll-snap-align: start; }
}

/* ─────────────────────────────── Ratgeber-Artikel (11.10.2026)
   /de/ratgeber/<slug>, Themenseiten und Artikel-Karten im Hub. Baut auf
   .page-hero, .ratgeber-grid/.ratgeber-text und den Farbvariablen auf —
   hell und dunkel ohne eigene Farben ausser dem Themen-Farbton der Karten. */
.artikel-entwurf { background: var(--accent-soft); border-bottom: 1px solid var(--border-2); padding: 12px 0; font-size: 14px; line-height: 1.5; color: var(--fg); }
.artikel-entwurf__note { color: var(--fg-2); }
.artikel-entwurf__fehler { margin: 6px 0 0; padding-left: 18px; color: var(--fehler); font-weight: 600; }
.artikel-hero h1 { font-size: clamp(34px, 5vw, 64px); max-width: 22ch; line-height: 1.06; }
.page-hero .artikel-lead { max-width: 62ch; font-size: clamp(18px, 1.7vw, 23px); color: var(--muted); }
.artikel-hero .breadcrumb a:hover { color: var(--fg); }
.artikel-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 24px 0 0; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.artikel-meta span + span::before { content: "·"; margin-right: 18px; color: var(--muted-2); }
.artikel-bild { margin-top: clamp(24px, 4vw, 48px); }
.artikel-bild img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: var(--radius-lg); background: var(--surface-2); }

.artikel-body { max-width: 68ch; }
.artikel-inhalt > :first-child { margin-top: 0; }
.artikel-inhalt h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; margin: 52px 0 16px; }
.artikel-inhalt h3 { margin: 32px 0 10px; }
.artikel-inhalt :is(h2, h3) { scroll-margin-top: 8px; }
.artikel-inhalt ol { margin: 0 0 16px; padding-left: 22px; line-height: 1.7; color: var(--fg-2); }
.artikel-inhalt li { margin-bottom: 6px; }
.artikel-inhalt li > p { margin-bottom: 6px; }
.artikel-inhalt a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.artikel-inhalt a:hover { color: var(--accent); }
.artikel-inhalt strong { color: var(--fg); font-weight: 600; }
.artikel-inhalt code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); padding: 1px 5px; border-radius: 3px; }
.artikel-inhalt hr { border: 0; height: 1px; background: var(--border); margin: 40px 0; }
.artikel-inhalt img { height: auto; border-radius: var(--radius-lg); margin: 8px 0; background: var(--surface-2); }
.artikel-inhalt blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--border-2); }
.artikel-inhalt blockquote p:last-child { margin-bottom: 0; }
.artikel-inhalt .callout { padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius-lg); }
.artikel-inhalt .callout--tipp { border-left-color: oklch(58% 0.11 150); }
.artikel-inhalt :is(.callout--achtung, .callout--wichtig) { border-left-color: var(--focus-ring); background: var(--accent-soft); }
.artikel-inhalt .callout p { font-size: 15px; }
.artikel-tab { --tab-bg: var(--surface); margin: 20px 0 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.artikel-tab table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.artikel-tab th, .artikel-tab td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; color: var(--fg-2); }
.artikel-tab tbody tr:last-child td { border-bottom: 0; }
.artikel-tab thead th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.artikel-tab .al-c { text-align: center; }
.artikel-tab .al-r { text-align: right; }

.artikel-toc { margin: 0 0 40px; padding: 18px 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.artikel-toc__h { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.artikel-toc ol { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.artikel-toc li { padding: 4px 0; }
.artikel-toc a { color: var(--fg-2); }
.artikel-toc a:hover { color: var(--accent); }

.artikel-cta { margin-top: 56px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.artikel-cta__liste { display: grid; gap: 10px; margin-top: 16px; }
.artikel-cta__p { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); transition: border-color .18s var(--ease); }
.artikel-cta__p:hover, .artikel-cta__p:focus-visible { border-color: var(--accent); }
.artikel-cta__p img { width: 96px; height: 64px; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.artikel-cta__p > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.artikel-cta__zeile { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.artikel-cta__name { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--fg); }
.artikel-cta__name .arr { color: var(--accent); }
.artikel-cta__text { font-size: 14px; line-height: 1.45; color: var(--muted); }
.artikel-cta__fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 18px; }
.ratgeber-text .artikel-cta__fuss p { margin: 0; font-size: 15px; color: var(--fg-2); flex: 1 1 260px; }
.artikel-zurueck { margin-top: 32px; font-size: 14px; }
.ratgeber-text .artikel-zurueck { font-size: 14px; }
.artikel-zurueck a { text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.artikel-zurueck a:hover { color: var(--accent); }

.artikel-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 28px; }
@media (min-width: 900px) { .artikel-karten { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.artikel-karte { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); color: var(--fg); transition: border-color .18s var(--ease); min-width: 0; }
.artikel-karte:hover, .artikel-karte:focus-visible { border-color: var(--accent); }
.artikel-karte__ph { position: relative; display: block; aspect-ratio: 16 / 7; background: linear-gradient(135deg, oklch(90% 0.035 var(--hue)) 0%, oklch(82% 0.055 var(--hue)) 100%); }
.artikel-karte__ph img { width: 100%; height: 100%; object-fit: cover; }
.artikel-karte__thema { position: absolute; left: 20px; bottom: 14px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: oklch(36% 0.07 var(--hue)); }
[data-theme="dark"] .artikel-karte__ph { background: linear-gradient(135deg, oklch(30% 0.035 var(--hue)) 0%, oklch(24% 0.03 var(--hue)) 100%); }
[data-theme="dark"] .artikel-karte__thema { color: oklch(82% 0.06 var(--hue)); }
.artikel-karte__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.artikel-karte__eyebrow { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.artikel-karte__status { color: var(--focus-ring); font-weight: 600; }
.artikel-karte__t { font-family: var(--font-display); font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.artikel-karte__d { font-size: 14px; line-height: 1.5; color: var(--muted); }
/* 30.10.2026: --muted statt --muted-2 (hell 2,52:1, dunkel 3,34:1 bei 11 px → beide ≥ 4,5:1). */
.artikel-karte__meta { margin-top: auto; padding-top: 8px; font-size: 11px; color: var(--muted); }

.artikel-themen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.artikel-themen a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--border-2); border-radius: 999px; font-size: 14px; color: var(--fg-2); transition: border-color .18s var(--ease), background-color .18s var(--ease); }
.artikel-themen a .mono { font-size: 11px; color: var(--muted); }
.artikel-themen a:hover { border-color: var(--accent); }
.artikel-themen a[aria-current="page"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.artikel-themen a[aria-current="page"] .mono { color: var(--bg); opacity: .7; }
.artikel-thema { margin-top: 56px; }
.artikel-thema__kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.artikel-thema__kopf h3 { font-size: clamp(22px, 2.2vw, 28px); }
.artikel-thema__kopf a { font-size: 14px; color: var(--fg-2); }
.artikel-thema__kopf a:hover { color: var(--accent); }
.artikel-thema .artikel-karten { margin-top: 20px; }
.artikel-tab :is(td, th):is(.al-r, .al-c) { white-space: nowrap; }
@media (max-width: 760px) { .artikel-tab table:is([data-cols="1"], [data-cols="2"], [data-cols="3"]) { min-width: 0; } }

/* Bildnachweis Ratgeber-Artikelbilder (22.10.2026) */
.artikel-bild__credit { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.artikel-bild__credit a, .bildnachweise a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.bildnachweise { border-top: 1px solid var(--border); padding-top: 14px; font-size: 13px; color: var(--muted); }
.bildnachweise summary { cursor: pointer; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.bildnachweise ul { margin: 12px 0 0; padding-left: 18px; line-height: 1.7; }
.artikel-karte__ph { overflow: hidden; }
.artikel-karte__ph img { position: absolute; inset: 0; }

/* ══════════════════════════════════════════════════════════════════════
   CRO 27.10.2026 (Belege: GA4 + Clarity 28/30 Tage, CHANGELOG)
   ══════════════════════════════════════════════════════════════════════ */

/* Preis-Leiste unten auf der Produktseite — nur einspaltig. pdp.js blendet sie
   ein, solange Preis und Warenkorb-Knopf der Kauf-Box nicht zu sehen sind. */
.pdp-mbar { display: none; }
@media (max-width: 1080px) {
  .pdp-mbar:not([hidden]) {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgb(0 0 0 / .10);
  }
  .pdp-mbar__info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .pdp-mbar__price { font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
  .pdp-mbar__note { font-size: 12px; color: var(--muted); white-space: nowrap; }
  .pdp-mbar__cfg { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pdp-mbar__add { flex: 0 0 auto; padding: 12px 16px; font-size: 14px; min-height: 44px; }
  body.has-pdp-mbar { padding-bottom: 76px; }
  body.has-pdp-mbar .ax-toast { bottom: 88px; }
}
@media (max-width: 399px) { .pdp-mbar__wide { display: none; } }
/* Lead-Knöpfe 30.10.2026: «Persönliches Angebot anfordern» unter dem Warenkorb (ersetzt den
   Link «Lieber erst beraten lassen?»), umrandet unter der Schwelle, gefüllt ab
   App\Produkte::BERATUNG_AB (pdp.js schaltet .btn-ghost). Sondermaß-Zeile an der Größe. */
.pdp-lead { margin: 12px 0 0; }
.pdp-lead__btn { width: 100%; }
.pdp-lead__note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.pdp-opt__sonder { margin: 12px 0 0; font-size: 13px; line-height: 1.5; }
.pdp-opt__sonder a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }
.pdp-opt__sonder a:hover { color: var(--accent); }
.pdp-mbar__actions { display: flex; flex: 0 0 auto; gap: 8px; align-items: center; }
@media (max-width: 1080px) {
  .pdp-mbar__actions { gap: 6px; }
  .pdp-mbar__actions .btn { white-space: nowrap; }
  .pdp-mbar__info { overflow: hidden; }
  .pdp-mbar__lead { padding: 12px 12px; font-size: 14px; min-height: 44px; }
}
/* Schmale Handys: Platz für beide Knöpfe in einer Zeile — die Ausführung steht in der
   Kauf-Box, Preis und «inkl. MwSt.» bleiben in der Leiste. */
@media (max-width: 519px) { .pdp-mbar__wide { display: none; } }
@media (max-width: 399px) {
  .pdp-mbar__cfg { display: none; }
  .pdp-mbar__add { padding: 12px 14px; }
}
/* Unter 360 px passt der Preis nicht mehr neben zwei Knöpfe — dann nur «In den Warenkorb»;
   «Persönliches Angebot anfordern» steht direkt darunter in der Kauf-Box. */
@media (max-width: 359px) { .pdp-mbar__lead { display: none; } }

/* 06.11.2026: Hinweis unter den Größen (Breite × Tiefe) */
.pdp-opt__hint { margin: 8px 0 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Design-/UX-Prüfung 08.11.2026 (research/seo-content-expansion-2026-11-08/DESIGN-UX-QA-ALUXIL.md) */
/* D4: die Linkliste setzt padding: 7px 0, das nahm dem Button die Seitenabstände */
.ratgeber-aside a.btn { display: flex; padding: 12px 16px; border-bottom: 0; }
/* D5: Farbfelder und Miniaturen haben einen transparenten Umriss, der Fokus war unsichtbar */
.pdp-swatch:focus-visible, .pdp-thumb:focus-visible { outline-color: var(--focus-ring); }
/* D11: gestapelte Textlinks erreichen 24 px Zielhöhe */
.artikel-toc a, .legal-toc a, a.ort-fakten__hint { display: inline-block; padding-block: 3px; }
.artikel-toc li { padding: 2px 0; }
/* D3: akzentfarbener Text; --focus-ring ist hell 4,7:1 und dunkel gleich --accent */
.product-card .meta .more { color: var(--focus-ring); }
/* D2: Preistabellen auf dem Handy, die Größe bleibt beim seitlichen Scrollen stehen */
@media (max-width: 760px) {
  .kosten-tab th:first-child, .kosten-tab td:first-child {
    position: sticky; left: 0; z-index: 1; background: var(--surface);
    box-shadow: 1px 0 0 var(--border); white-space: normal; min-width: 7.5em; max-width: 9em;
  }
}
/* D13: Pfeil bleibt beim Text */
#cfg-prev, #cfg-next { white-space: nowrap; }
@media (max-width: 480px) { #cfg-prev, #cfg-next { padding-inline: 12px; } }

/* Konfigurator-Upgrade 14.11.2026 — ruhiges Layout: Knopfreihen als Raster, damit die Anordnung nur von
   der Anzahl der Knöpfe abhängt, nicht von ihrem Text (Aufpreise wechseln mit jeder Auswahl).
   Gesperrte Optionen bleiben stehen (is-off), statt zu verschwinden. */
.pdp-pills { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.pdp-pill { min-width: 0; min-height: 46px; justify-content: center; text-align: center; }
.pdp-pill.is-off { cursor: not-allowed; color: var(--muted); background: transparent; border-style: dashed; }
.pdp-pill.is-off:hover { border-color: var(--border-2); }
.pdp-pill[aria-pressed="true"][disabled]:not(.is-off) { cursor: default; }

/* Hauscheck + Zusammenfassung (pdp-plan.js, 14.11.2026) — zugeklappt unter «Persönliches Angebot anfordern» */
.pdp-plan { margin: 18px 0 0; display: grid; gap: 10px; }
.pdp-plan[hidden] { display: none; }
.pdp-plan__box { border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--surface); }
.pdp-plan__box > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; min-height: 48px; padding: 13px 44px 13px 16px; position: relative; }
.pdp-plan__box > summary::-webkit-details-marker { display: none; }
.pdp-plan__box > summary::after { content: ""; position: absolute; right: 18px; top: 20px; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .18s; }
.pdp-plan__box[open] > summary::after { transform: rotate(-135deg); top: 24px; }
.pdp-plan__box > summary:focus-visible { outline: 2px solid var(--focus-ring, var(--accent)); outline-offset: 2px; }
.pdp-plan__t { font-weight: 600; font-size: 15px; }
.pdp-plan__s { font-size: 13px; color: var(--muted); }
.pdp-plan__body { padding: 0 16px 16px; }
.pdp-plan__intro, .pdp-plan__note { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0 0 12px; }
.pdp-plan__note { margin: 12px 0 0; }
.pdp-fit__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 12px; }
.pdp-fit__f { display: grid; gap: 4px; min-width: 0; }
.pdp-fit__l { font-size: 13px; color: var(--fg-2); line-height: 1.3; }
.pdp-fit__in { display: flex; align-items: center; border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--bg); }
.pdp-fit__in input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; padding: 0 10px; font: inherit; font-size: 16px; color: var(--fg); }
.pdp-fit__in span { padding: 0 12px 0 4px; color: var(--muted); font-size: 14px; }
.pdp-fit__in:focus-within { outline: 2px solid var(--focus-ring, var(--accent)); outline-offset: 1px; }
.pdp-fit__f select { height: 46px; border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--bg); color: var(--fg); font: inherit; font-size: 15px; padding: 0 10px; min-width: 0; }
.pdp-fit__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pdp-fit__f.is-bad .pdp-fit__in { border-color: #c0392b; box-shadow: 0 0 0 1px #c0392b; }
.pdp-fit__out { margin-top: 14px; }
.pdp-fit__out .fehler-box { margin: 0 0 10px; }
.pdp-fit__empty { margin: 0; font-size: 13px; color: var(--muted); }
.pdp-fit__verdict { margin: 0 0 8px; padding: 10px 12px; border-radius: var(--radius); font-size: 15px; }
.pdp-fit__verdict span { color: inherit; opacity: .85; font-size: 13px; }
.pdp-fit__verdict.is-ok { background: #e6f4ea; color: #1e6b3a; }
.pdp-fit__verdict.is-warn { background: #fdf3dc; color: #7a5a10; }
.pdp-fit__verdict.is-bad { background: #c0392b; color: #fff; }
.pdp-fit__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; line-height: 1.45; }
.pdp-fit__list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.pdp-fit__badge { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.pdp-fit__list .is-ok .pdp-fit__badge { background: #e6f4ea; color: #1e6b3a; }
.pdp-fit__list .is-warn .pdp-fit__badge { background: #fdf3dc; color: #7a5a10; }
.pdp-fit__list .is-bad .pdp-fit__badge { background: #c0392b; color: #fff; }
.pdp-fit__sugg { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--fg); background: var(--fg); color: var(--surface); font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; }
a.pdp-fit__sugg { background: transparent; color: var(--fg); }
.pdp-fit__sketch { margin-top: 12px; }
.pdp-fit__sketch svg { display: block; width: 100%; max-width: 420px; height: auto; font: 10px var(--font-text, sans-serif); fill: var(--fg-2); }
.pdp-fit__sketch svg text { fill: var(--fg-2); }
.pdp-sum { margin: 0; display: grid; }
.pdp-sum > div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.45; }
.pdp-sum > div.is-sub { font-size: 13px; padding: 5px 0 5px 12px; }
.pdp-sum dt { color: var(--muted); }
.pdp-sum dd { margin: 0; color: var(--fg); }
.pdp-sum__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pdp-sum__btns .btn { flex: 1 1 160px; min-height: 46px; }
.pdp-sum__ok { margin: 10px 0 0; font-size: 13px; color: #1e6b3a; }
[data-theme="dark"] .pdp-fit__verdict.is-ok, [data-theme="dark"] .pdp-fit__list .is-ok .pdp-fit__badge { background: #1d3a27; color: #b9e6c6; }
[data-theme="dark"] .pdp-fit__verdict.is-warn, [data-theme="dark"] .pdp-fit__list .is-warn .pdp-fit__badge { background: #3d3214; color: #f1d999; }
[data-theme="dark"] .pdp-sum__ok { color: #b9e6c6; }
/* Bedienbarkeit (14.11.2026): Zielgröße mindestens 44 × 44 px für Farbfelder und Mengen-Knöpfe */
.pdp-swatch { width: 44px; height: 44px; }
/* Mengen-Knöpfe nur über 420 px breiter — darunter braucht «In den Warenkorb» den Platz daneben (Regel oben) */
@media (min-width: 421px) { .pdp-qty button { width: 44px; } }
.pdp-fit__sketch .sk-p { fill: #2b3136; }
.pdp-fit__sketch .sk-o { stroke: #2b3136; }
[data-theme="dark"] .pdp-fit__sketch .sk-p { fill: #c9ced2; }
[data-theme="dark"] .pdp-fit__sketch .sk-o { stroke: #c9ced2; }
@media (max-width: 560px) { .pdp-fit__list li { display: block; } .pdp-fit__badge { display: inline-block; margin: 0 0 4px; } .pdp-fit__list li > span:last-child { display: block; } }
/* Ausführungszeile unter dem Preis: immer Platz für zwei Zeilen — lange Freeline-Solarmodul-Zeilen
   brachen auf zwei Zeilen um und schoben die Optionen 17 px nach unten (14.11.2026) */
.pdp-buy__config { line-height: 1.5; min-height: 3em; }
.pdp-fit__sketch .sk-w { fill: #e9e6e0; }
[data-theme="dark"] .pdp-fit__sketch .sk-w { fill: #3a4045; }

/* Angebots-Modus (19.11.2026): Wunschmaß statt fester Größen, Preis als «ab», ein Weg zum Angebot. */
/* 20.11.2026 (GF): Größen und Preise bleiben sichtbar, Preis «bis zu diesem Maß»; nur bei Übermaß «über». */
.pdp-buy--angebot.is-uebermass [data-pdp-price]::before { content: "über "; font-size: .5em; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.pdp-buy--angebot [data-pdp-pills="size"] .pdp-pill > span:first-child::before { content: "bis "; opacity: .7; }
.pdp-buy--angebot .pdp-opt__sonder { display: none !important; }
/* 02.12.2026: Online-Kauf wieder offen — die Kauf-Zeile bleibt. Nur mit LED/Spots («Preis im Angebot») oder
   Übermaß gibt es keinen Online-Preis: dann weicht sie dem Hinweis und dem Angebots-Knopf (pdp-mass.js). */
.pdp-buy--angebot.is-nur-angebot .pdp-buy__row,
.pdp-buy--angebot.is-nur-angebot [data-pdp-buyhint],
.pdp-buy--angebot.is-nur-angebot .pdp-buy__qtynote,
body.pdp-nur-angebot .pdp-mbar--angebot [data-pdp-mbar-add] { display: none !important; }
.pdp-nurangebot { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.pdp-mass { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.pdp-mass__f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; }
.pdp-mass__in { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; background: var(--bg); color: var(--fg); }
.pdp-mass__in:focus-within { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.pdp-mass__in input { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 17px; padding: 12px 0; outline: 0; }
.pdp-mass__hint { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin: 10px 0 0; }
.pdp-mass__hint.is-gross { color: var(--fg); font-weight: 500; }
.pdp-buy--angebot .pdp-lead { margin-top: 18px; }
.pdp-buy--angebot .pdp-lead__btn { width: 100%; justify-content: center; }
.pdp-buy--angebot [data-pdp-config]::before, .pdp-mbar--angebot [data-pdp-mbar-cfg]::before { content: "bis "; }
/* Angebots-Modus am Handy (19.11.2026, Foto Shahzad): Preis-Chip im 3D ebenfalls «ab»; beim Tippen des
   Maßes klebt das Modell nicht und die untere Leiste weicht — sonst bleibt zwischen Modell, Leiste und
   Tastatur kein Platz für die Felder. */
@media (max-width: 1080px) {
  :root:has([data-mass]:focus) .pdp-gallery__main.has-3d-box { position: static; box-shadow: none; }
  :root:has([data-mass]:focus) .pdp-mbar { display: none !important; }
  .pdp-buy--angebot .pdp-mass__f { scroll-margin-top: 96px; }
}
