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

:root {
  /* Base palette — light */
  --bg:           #F6F5F3;
  --surface:      #FFFFFF;
  --surface-2:    #EFEDE8;
  --fg:           #141414;
  --fg-2:         #2A2A28;
  --muted:        #6B6B68;
  --muted-2:      #9A9994;
  --border:       #E1DED8;
  --border-2:     #D1CEC7;

  /* Accent — defaults to warm orange. Overridden by tweaks. */
  --accent:       oklch(64% 0.14 47);
  --accent-ink:   #FFFFFF;
  --accent-soft:  oklch(96% 0.02 47);

  /* Aluminum sheen for product blocks */
  --alu-1:        #DCDAD5;
  --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:      #5C5B57;
  --border:       #2A2826;
  --border-2:     #3A3835;
  --alu-1:        #3A3835;
  --alu-2:        #4A4845;
  --alu-3:        #6A6863;
  --accent-soft:  oklch(28% 0.04 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); }

.btn-accent { background: var(--accent); 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); }
/* 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 {
  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 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: #6B6B68;
}
.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: #6E6C68; white-space: nowrap;
}
.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: #7E7C78; }
.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(--accent);
}
.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.jpg");
  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;
}
.hero-actions .btn-accent { background: var(--accent); }
.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%; }
}

@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; }
}

@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;
  position: sticky;
  top: 96px;
}
.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; }

.pdp-buy__row { display: flex; 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 auto; justify-content: center; }

.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); }

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

.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); color: var(--accent-ink);
  font-family: var(--font-mono, inherit); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 999px;
}
.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(--accent); 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__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) {
  .pdp-hero { grid-template-columns: 1fr; gap: 40px; }
  .pdp-buy { 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;
  /* Ohne «Art»: sechs Spalten. Die frei gewordenen 96 px gehen an die
     Bezeichnung — sie trug die längsten Texte und brach am ehesten um. */
  grid-template-columns: 72px 110px minmax(180px, 1fr) 110px 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); }

/* ─────────────────────────────────────────────────────────────────────────
   Verwaltung + Anfrageverlauf (08/2026)

   Die Verwaltung sieht der Partneransicht bewusst ähnlich — es ist dieselbe
   Anwendung, und ein eigener «Admin-Look» wäre doppelte Pflege. Unterschieden
   werden sie nur durch die farbige Kennung in der Leiste, damit auf einem
   Bildschirmfoto sofort klar ist, worin jemand gerade arbeitet.
   ───────────────────────────────────────────────────────────────────────── */

.pp-bar--admin { border-bottom-color: #B45309; }
.pp-bar__badge--admin { background: #B45309; color: #fff; border-color: #B45309; }

/* Zähler an einem Navigationspunkt: «hier wartet Arbeit». */
.pp-pill { display: inline-block; margin-left: 6px; min-width: 18px; padding: 1px 6px;
  border-radius: 999px; background: #B45309; color: #fff;
  font-size: 11px; line-height: 16px; text-align: center; font-variant-numeric: tabular-nums; }

/* Statusmarke. Farbe ist Zusatzinformation, nie die einzige — der Text steht
   immer daneben, sonst wäre der Stand für Farbenblinde nicht lesbar. */
.pp-st { display: inline-block; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--border); font-size: 12px; line-height: 1.5; white-space: nowrap; }
.pp-st--neu     { border-color: #B45309; color: #B45309; }
.pp-st--arbeit  { border-color: var(--muted-2); color: var(--fg); }
.pp-st--angebot { border-color: var(--accent); color: var(--accent-ink, var(--accent)); }
.pp-st--ok      { border-color: #15803D; color: #15803D; }
.pp-st--aus     { border-color: var(--border); color: var(--muted); }

/* Formularraster der Verwaltung. Zwei Spalten, wo Platz ist; ein Feld darf
   sich mit `grid-column:1/-1` über die ganze Breite legen.
   Die Felder selbst benutzen `.field` aus dem Kontaktformular — die Verwaltung
   bekommt bewusst KEIN zweites Eingabefeld-Design, das man doppelt pflegen
   müsste. */
.ad-grid { display: grid; gap: 16px 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 6px; }
.ad-grid .field input, .ad-grid .field select, .ad-grid .field textarea { width: 100%; padding: 11px 13px; font-size: 14.5px; }
.ad-grid .field textarea { min-height: 84px; }

/* Preistabelle. Eingabefelder direkt in der Zeile — bei 88 Positionen ist
   jeder zusätzliche Klick 88 Klicks.
   Farben ausdrücklich gesetzt: ein Eingabefeld ohne eigene Angaben erbt das
   Weiß des Betriebssystems und leuchtet im dunklen Layout wie ein Loch. */
.ad-teile input.ad-eur {
  width: 104px; height: 36px; padding: 0 10px; text-align: right;
  font-family: var(--font-text); font-size: 14px; font-variant-numeric: tabular-nums;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--fg);
  outline: none; transition: border-color .2s var(--ease);
}
.ad-teile input.ad-eur:focus { border-color: var(--accent); }
.ad-teile input.ad-eur::placeholder { color: var(--muted-2); }
/* Kontrollkästchen in der Markenfarbe statt im Systemblau. */
.ad-teile input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }
.ad-teile tr.is-aus { opacity: .5; }
.ad-teile tr.is-aus td:first-child::after { content: " (inaktiv)"; color: var(--muted); font-size: 12px; }

/* Speichern bleibt beim Scrollen erreichbar — sonst muss man sich durch
   88 Zeilen nach unten arbeiten, um eine Änderung oben zu sichern. */
.ad-save { position: sticky; bottom: 0; z-index: 5;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 18px; padding: 14px 0;
  background: linear-gradient(to top, var(--surface) 62%, transparent);
}

@media (max-width: 700px) {
  .ad-teile input.ad-eur { width: 84px; }
  .pp-nav { flex-wrap: wrap; }
}

/* Zeilen in der Verwaltung.
   Sie sehen aus wie die Teilezeilen, brauchen aber ein eigenes Raster: das
   Teile-Raster hat sieben Spalten für Bild, Nummer, Bezeichnung, System, Art,
   kg und Menge. Für eine Bewerbung oder einen Partner passt davon nichts —
   übernommen sah es aus, als wäre die Gestaltung nicht geladen. */
.tk-row--admin .tk-row__sum--admin {
  grid-template-columns: 56px minmax(220px, 1fr) auto;
  gap: 18px;
  padding: 16px 18px;
}
.tk-row__name { font-size: 15px; min-width: 0; }
.tk-row__name strong { font-weight: 600; }
.tk-row__meta { display: inline-flex; align-items: center; gap: 12px;
  justify-content: flex-end; font-size: 13px; color: var(--muted); white-space: nowrap; }

/* Aufgeklappt: keine Bildspalte, und der linke Einzug der Teileliste (90 px,
   dort die Breite der Zeichnung) ergäbe hier nur eine schiefe Kante. */
.tk-row--admin .tk-row__detail { grid-template-columns: minmax(0, 1fr); padding: 4px 18px 26px; }

/* Aufklapper ohne Spalten (z. B. «Partner von Hand anlegen»): eine Zeile,
   kein Raster. */
.tk-row__sum--plain { display: block; padding: 16px 18px; cursor: pointer;
  list-style: none; font-size: 15px; transition: background-color .18s; }
.tk-row__sum--plain::-webkit-details-marker { display: none; }
.tk-row__sum--plain:hover { background: var(--surface-2); }

.tk-row--admin + .tk-row--admin { border-top: 0; }
.tk-row--admin { border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-top: 12px; overflow: hidden; }

@media (max-width: 760px) {
  .tk-row--admin .tk-row__sum--admin {
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas: "nr name" "nr meta";
    gap: 4px 12px;
  }
  .tk-row--admin .tk-row__nr   { grid-area: nr; }
  .tk-row--admin .tk-row__name { grid-area: name; }
  .tk-row--admin .tk-row__meta { grid-area: meta; justify-content: flex-start; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Teileliste mit Korb (08/2026)

   Zwei Spalten: Liste links, Korb rechts und mitlaufend. Bei 88 Positionen
   scrollt man weit — ohne mitlaufenden Korb weiß man am unteren Ende nicht
   mehr, was oben schon drinliegt.
   ───────────────────────────────────────────────────────────────────────── */

.tk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.tk-main { min-width: 0; }   /* sonst sprengt die breite Tabelle das Raster */

/* Der Korb bleibt oben angeheftet und wird nie höher als das Fenster.
   Wird die Liste lang, scrollt der INHALT im Kasten — der Absendeknopf steht
   fest darunter und ist dadurch immer erreichbar.

   Die Alternative (mitscrollen, bis das Ende des Kastens sichtbar ist) wurde
   ausprobiert und wieder verworfen: der Korb wandert dabei aus dem Bild,
   während man die Liste durchgeht, und man sieht nicht mehr, was schon
   drinliegt. Genau dafür steht er da. */
.tk-side { position: sticky; top: 75px; }
.tk-cart { border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface-2); padding: 20px;
  display: flex; flex-direction: column; max-height: calc(100vh - 91px); }

/* Oben scrollt der Inhalt … */
.tk-cart__body { flex: 1 1 auto; min-height: 0; overflow-y: auto;
  margin-right: -6px; padding-right: 6px; }
/* … unten steht der Knopf fest, egal wie lang die Liste wird. */
.tk-cart__foot { flex: 0 0 auto; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border); }

.tk-cart__h { font-size: 15px; margin: 0 0 14px; }

/* Es wächst nur die Positionsliste — also scrollt auch nur sie. Summe,
   Oberfläche, Anmerkung und Knopf bleiben dadurch immer sichtbar; sonst
   verschwinden ausgerechnet die Felder hinter einem Scrollbereich, den man
   nicht sieht. Der Kasten selbst scrollt nur noch als Rückfall auf sehr
   flachen Fenstern. */
.tk-cart__list { list-style: none; margin: 0 0 16px; padding: 0;
  max-height: 34vh; overflow-y: auto; }

/* Anzeigen, dass die Liste weitergeht: Schatten oben und unten, sichtbar nur
   solange dort noch etwas steht (zwei feste Verläufe, zwei mitscrollende). */
.tk-cart__list {
  background:
    linear-gradient(var(--surface-2) 30%, transparent) top / 100% 20px no-repeat,
    linear-gradient(transparent, var(--surface-2) 70%) bottom / 100% 20px no-repeat,
    radial-gradient(farthest-side at 50% 0, rgba(0,0,0,.35), transparent) top / 100% 9px no-repeat,
    radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,.35), transparent) bottom / 100% 9px no-repeat;
  background-attachment: local, local, scroll, scroll;
}
/* Sichtbarer Rollbalken statt eines unsichtbaren. Der Korb ist der einzige
   Bereich der Seite, der scrollt — dort ist ein dünner Streifen die ehrlichste
   Auskunft darüber, wie viel noch kommt. */
.tk-cart__list { scrollbar-width: thin; scrollbar-color: var(--muted-2) transparent; }
.tk-cart__list::-webkit-scrollbar { width: 6px; }
.tk-cart__list::-webkit-scrollbar-thumb { background: var(--muted-2); border-radius: 3px; }
.tk-cart__list::-webkit-scrollbar-track { background: transparent; }

.tk-cart__mehr { display: block; width: 100%; margin: -8px 0 14px; padding: 7px 0;
  font: inherit; font-size: 12px; color: var(--accent); background: none;
  border: 0; border-top: 1px dashed var(--border); cursor: pointer; text-align: center; }
.tk-cart__mehr:hover { color: var(--fg); }
.tk-cart__mehr[hidden] { display: none; }

.tk-cart__leer { color: var(--muted); font-size: 13px; line-height: 1.5; }
.tk-cart__row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.tk-cart__row:hover { background: var(--surface); }
.tk-cart__nr  { grid-column: 1; font-size: 12px; color: var(--accent); }
.tk-cart__qty { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-size: 14px; }
.tk-cart__bez { grid-column: 1; font-size: 13.5px; line-height: 1.35; }
.tk-cart__art { grid-column: 1; font-size: 12px; color: var(--muted); }

.tk-cart__sum { margin: 0 0 4px; display: grid; gap: 0; }
.tk-cart__sum > div { display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid var(--border); }
.tk-cart__sum dt { font-size: 12px; color: var(--muted); margin: 0; }
.tk-cart__sum dd { font-size: 14px; margin: 0; font-variant-numeric: tabular-nums; }

.tk-cart__hint { font-size: 11.5px; color: var(--muted); line-height: 1.45; margin: 8px 0 0; }
.tk-cart__field { display: block; margin-top: 18px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tk-cart select { width: 100%; margin-top: 8px; padding: 10px 12px; font: inherit; font-size: 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--fg); }
.tk-cart__go { width: 100%; margin-top: 18px; justify-content: center; }

/* Ausführung je Position (nur Profile) */
.tk-opt { grid-column: 1 / -1; margin: 18px 0 0; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.tk-opt legend { padding: 0 6px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tk-opt__choice { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.tk-opt__choice input { accent-color: var(--accent); width: 16px; height: 16px; }
.tk-opt__hint { display: block; font-size: 11.5px; color: var(--muted); }
.tk-opt__len { display: inline-flex; align-items: center; gap: 8px; }
.tk-opt__len input { width: 96px; padding: 8px 10px; text-align: right; font: inherit; font-size: 14px;
  font-variant-numeric: tabular-nums; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--fg); }
.tk-opt__len input:focus { border-color: var(--accent); outline: none; }
.tk-opt__m { font-size: 12.5px; color: var(--muted); min-width: 62px; }
.tk-opt__note { flex-basis: 100%; margin: 0; font-size: 11.5px; color: var(--muted); }

/* Zuschnittliste: mehrere Längen desselben Profils.
   Der Kasten war eine einzelne Reihe aus Schaltern; jetzt ist er eine Liste
   von Zeilen, die alle gleich aufgebaut sind — erste wie weitere. Ohne die
   gemeinsame Gestalt sähe die erste Länge aus wie «die» Ausführung und die
   übrigen wie Zusatz, obwohl sie gleichwertig sind. */
.tk-opt { flex-direction: column; align-items: stretch; }
.tk-opt__zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.tk-opt__zeile--extra { padding-top: 12px; border-top: 1px dashed var(--border); }
/* «2,72 kg je Stange» steht in der ersten Zeile. Ab der zweiten ist es
   dieselbe Zahl unter derselben Beschriftung — bei sieben Längen siebenmal
   dasselbe, und die Zeilen werden unnötig hoch. */
.tk-opt__zeile--extra .tk-opt__hint { display: none; }
.tk-opt__menge { font-size: 13px; color: var(--muted); margin-left: auto; }
/* Die Menge steht seit 27.08.2026 nur noch hier, nicht mehr in der Tabellenzeile.
   Deshalb darf sie nicht wie eine Nebenangabe aussehen. */
.tk-opt__menge label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; }
.tk-row__qtysum { display: block; width: 40px; height: 40px; padding: 0; font: inherit;
  font-size: 18px; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 40px;
  background: none; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; }
.tk-row__qtysum:hover { border-color: var(--accent); }
/* `display:block` aus der Autoren-Datei schlägt die UA-Regel für [hidden] —
   ohne diese Zeile bleibt die Summe sichtbar, obwohl das Skript sie versteckt,
   und steht dann neben dem Feld, das dasselbe sagt. */
.tk-row__qtysum[hidden] { display: none; }
/* Das «+» ist der einzige Griff in der Spalte — es muss aussehen wie einer und
   gross genug für einen Daumen sein. */
.tk-row__plus { width: 40px; height: 40px; padding: 0; font: inherit; font-size: 22px;
  line-height: 1; color: var(--accent); background: none;
  border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.tk-row__plus:hover { border-color: var(--accent); background: rgba(214,122,60,.08); }
/* Offen: der Knopf ist gefüllt, damit man ihn als «aktiv» liest und nicht als
   zweite Aufforderung, noch etwas hinzuzufügen. */
.tk-row__plus.is-offen { border-color: var(--accent); background: rgba(214,122,60,.14); }
.tk-row__plus[hidden] { display: none; }
.tk-opt__menge label { display: inline-flex; align-items: center; gap: 8px; }
.tk-opt__menge input { width: 68px; padding: 8px 10px; text-align: right; font: inherit; font-size: 14px;
  font-variant-numeric: tabular-nums; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--fg); }
.tk-opt__menge input:focus { border-color: var(--accent); outline: none; }
.tk-opt__add { align-self: flex-start; padding: 7px 12px; font: inherit; font-size: 13px;
  color: var(--accent); background: none; border: 1px dashed var(--border); border-radius: var(--radius);
  cursor: pointer; }
.tk-opt__add:hover { border-color: var(--accent); }
.tk-opt__del { padding: 6px 10px; font: inherit; font-size: 12px; color: var(--muted);
  background: none; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.tk-opt__del:hover { color: #E5484D; border-color: #E5484D; }

/* Schmaler: Korb wandert unter die Liste und hört auf mitzulaufen. Ein
   klebender Kasten würde auf dem Telefon den halben Bildschirm besetzen. */
/* Schmaler: der Korb wandert unter die Liste und hört auf mitzulaufen. Dann
   gibt es auch nichts mehr zu begrenzen — er darf so hoch sein, wie er ist. */
@media (max-width: 1080px) {
  .tk-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tk-side { position: static; }
  .tk-cart { max-height: none; }
  .tk-cart__body { overflow: visible; margin-right: 0; padding-right: 0; }
  .tk-cart__list { max-height: none; }
}
@media (max-width: 560px) {
  .tk-opt { gap: 10px 14px; }
  .tk-opt__len input { width: 84px; }
}

/* Anmerkungsfeld im Korb. Stand vorher unter 88 Katalogzeilen und wurde
   deshalb praktisch nie ausgefüllt — jetzt steht es dort, wo die Anfrage
   abgeschickt wird. */
.tk-cart__msg { width: 100%; margin-top: 8px; padding: 10px 12px; font: inherit; font-size: 13.5px;
  line-height: 1.5; min-height: 84px; resize: vertical;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--fg); }
.tk-cart__msg:focus { border-color: var(--accent); outline: none; }
.tk-cart__msg::placeholder { color: var(--muted-2); }

/* Ausführung schon in der zugeklappten Zeile.
   Vorher war sie hinter einem Klick versteckt, der aussah wie «Zeichnung
   zeigen» — man konnte nicht wissen, dass es überhaupt etwas einzustellen
   gibt, und eine abgelängte Position sah zugeklappt aus wie jede andere. */
/* Einzeilig: die Aufzählung wird im Skript gekappt, aber ein sehr langer
   Einzelwert darf die Zeile trotzdem nicht sprengen. */
.tk-row__exec > [data-tk-execlabel] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-row__exec { max-width: 100%; display: inline-flex; align-items: center; gap: 8px; margin-top: 5px;
  padding: 3px 9px 3px 10px; border: 1px solid var(--border); border-radius: 999px;
  background: transparent; color: var(--muted); font: inherit; font-size: 11.5px;
  line-height: 1.6; cursor: pointer; transition: border-color .18s, color .18s; }
.tk-row__exec:hover { border-color: var(--muted-2); color: var(--fg); }
.tk-row__exec__go { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); }
/* Abweichend von der Vorgabe = auffällig. Volle Stange ist der Normalfall. */
.tk-row__exec.is-anders { border-color: var(--accent); color: var(--fg); }
.tk-row__exec--fest { cursor: default; opacity: .55; }
.tk-row__exec--fest:hover { border-color: var(--border); color: var(--muted); }

/* Zeilengewicht als Rückmeldung direkt unter der Menge. */
.tk-row__kgline { display: block; margin-top: 4px; font-family: var(--font-mono);
  font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Zeile mit Menge > 0 heben sich ab — beim Scrollen durch 88 Positionen sieht
   man so, was man schon angefasst hat. */
.tk-row.is-gewaehlt > .tk-row__sum { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }

/* Der Ausführungsblock ist jetzt das Erste im aufgeklappten Bereich. */
.tk-row__detail .tk-opt { margin: 0 0 22px; }

/* Bezeichnung und Ausführungsknopf untereinander statt nebeneinander.
   Inline sass der Knopf bei kurzen Namen daneben und bei langen darunter —
   die Zeilen wirkten dadurch unruhig und die Spalte franste aus. */
.tk-row__bez { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }

/* ── Rückmeldung im Korb ────────────────────────────────────────────────────
   Was gerade geändert wurde, wird kurz eingerahmt. Ohne das landet eine
   Eingabe irgendwo in der Liste rechts, und man sieht nicht, ob sie angekommen
   ist — erst recht, wenn der Korb schon scrollt.

   Zwei Stufen, weil es zwei verschiedene Ereignisse sind: eine NEUE Position
   ist eine Nachricht, eine geänderte Menge nur eine Bestätigung.

   `outline` statt `border`: eine Umrandung würde die Zeile um zwei Pixel
   wachsen lassen und die ganze Liste zappeln. Ein Outline liegt darüber. */

@keyframes tk-neu {
  0%   { outline-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
  70%  { outline-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
  100% { outline-color: transparent;   background: transparent; }
}
@keyframes tk-geaendert {
  0%   { outline-color: var(--accent); }
  100% { outline-color: transparent; }
}
@keyframes tk-tick {
  0%   { color: var(--accent); transform: translateY(-1px); }
  100% { color: inherit;       transform: none; }
}

.tk-cart__row { outline: 2px solid transparent; outline-offset: -2px; border-radius: var(--radius); }
.tk-cart__row.is-neu       { animation: tk-neu 1100ms ease-out; }
.tk-cart__row.is-geaendert { animation: tk-geaendert 620ms ease-out; }
.tk-cart__sum dd.is-tick   { animation: tk-tick 620ms ease-out; display: inline-block; }

/* Wer Bewegung reduziert haben will, bekommt keine — die Zahlen stimmen
   trotzdem, die Animation ist Zugabe und nie die einzige Information. */
@media (prefers-reduced-motion: reduce) {
  .tk-cart__row.is-neu,
  .tk-cart__row.is-geaendert,
  .tk-cart__sum dd.is-tick { animation: none; }
}

/* Fehlerhafte Länge. Rot, nicht orange: Orange ist hier die Markenfarbe und
   bedeutet «ausgewählt» — als Warnfarbe wäre sie nicht unterscheidbar. */
.tk-opt__fehler { flex-basis: 100%; margin: 0; font-size: 12.5px; color: #E5484D; }
.tk-opt.is-fehler { border-color: #E5484D; }
.tk-opt__len input.is-fehler { border-color: #E5484D; }
.tk-cart__row.is-fehler { outline: 2px solid #E5484D; outline-offset: -2px; }
.tk-cart__row.is-fehler .tk-cart__art { color: #E5484D; }
.pp-table tr.is-fehler { background: color-mix(in srgb, #E5484D 8%, transparent); }
.ist-fehler { color: #E5484D; }

/* Oberflächenfeld im Korb — Freitext mit Vorschlägen statt Auswahlliste. */
.tk-cart__ober { width: 100%; margin-top: 8px; padding: 10px 12px; font: inherit; font-size: 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--fg); }
.tk-cart__ober:focus { border-color: var(--accent); outline: none; }
.tk-cart__ober::placeholder { color: var(--muted-2); }

/* Waagerecht scrollende Tabellen sichtbar machen.
   macOS blendet Scrollbalken aus, bis gescrollt wird — eine überbreite Tabelle
   sah dadurch einfach abgeschnitten aus. Der Schatten am Rand erscheint nur,
   solange dort noch etwas steht: zwei feste Verläufe (Deckung) plus zwei
   mitscrollende (Schatten), die die festen an den Enden überdecken. */
.pp-tablewrap {
  background:
    linear-gradient(to right, var(--surface) 30%, transparent) left / 28px 100% no-repeat,
    linear-gradient(to left,  var(--surface) 30%, transparent) right / 28px 100% no-repeat,
    radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.32), transparent) left / 16px 100% no-repeat,
    radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.32), transparent) right / 16px 100% no-repeat;
  background-attachment: local, local, scroll, scroll;
}

/* Diese Spalte schluckt den überschüssigen Platz — sonst zieht die erste
   Textspalte (meist das Datum) die Tabelle unschön auseinander. */
.pp-table th.fill { width: 99%; }
.pp-table .nowrap, .pp-table td.mono { white-space: nowrap; }

/* ── Überschriften im Fachpartnerbereich ────────────────────────────────────
   Die Website ist ein Schaufenster: h2 bis 64 px ist dort richtig. Der
   Partnerbereich ist ein Arbeitsbereich mit Tabellen und Formularen — dort
   liest sich dieselbe Grösse wie ein Layoutfehler («Positionen» so gross wie
   die Seitenüberschrift). Nur die Zwischenüberschriften werden kleiner, die
   Seitenüberschrift h1 bleibt, wie sie in den Templates gesetzt ist. */
.is-portal h2 { font-size: clamp(19px, 1.9vw, 23px); letter-spacing: -0.01em; margin-bottom: 4px; }
.is-portal h3 { font-size: 16px; letter-spacing: 0; }
.is-portal .pp-card h2 { font-size: 24px; }      /* Karten behalten ihr Gewicht */
.is-portal .tk-cart__h { font-size: 15px; }
