/* ============================================================
   GOLDENEDRUCKMASCHINE - Werkstatt mit drei Abteilungen
   Figuren . Tierelemente (Haustiere) . Verbindungselemente (Technik)

   Ein Schrift- und Layoutsystem fuer alles, die Abteilungsfarbe
   traegt die Orientierung. Farbe kommt ueber --dep auf :root.
   ============================================================ */

:root {
  --paper:     #ECECE8;
  --surface:   #F7F7F4;
  --plate:     #E0E0DA;
  --ink:       #131517;
  --ink-2:     #545A5E;
  --ink-3:     #868C90;
  --line:      #D4D4CD;
  --line-soft: #E3E3DC;
  --fig:       #2A2E31;
  --layer:     rgba(19,21,23,.055);

  /* Abteilungsfarben */
  --c-fig:     #C0341F;
  --c-pet:     #8F5A0A;
  --c-tec:     #0F5A72;
  --c-hub:     #131517;
  --dep:       var(--c-hub);
  --dep-on:    #FFFFFF;
  --dep-wash:  rgba(19,21,23,.06);

  --shadow:    0 1px 0 rgba(19,21,23,.04), 0 12px 28px -20px rgba(19,21,23,.5);
  --shadow-lg: 0 2px 0 rgba(19,21,23,.05), 0 34px 64px -30px rgba(19,21,23,.5);

  --f-black: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --f-body:  Archivo, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono:  "JetBrains Mono", ui-monospace, Consolas, monospace;

  --r-s: 3px; --r-m: 7px; --r-l: 12px;
  --page: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:     #121416;
    --surface:   #1A1D20;
    --plate:     #21262A;
    --ink:       #E9EAE7;
    --ink-2:     #A5ACB0;
    --ink-3:     #7C8388;
    --line:      #2C3236;
    --line-soft: #242A2E;
    --fig:       #C2CACE;
    --layer:     rgba(255,255,255,.05);
    --c-fig:     #FF6A55;
    --c-pet:     #E9A63F;
    --c-tec:     #4FB8D6;
    --c-hub:     #E9EAE7;
    --dep-on:    #121416;
    --dep-wash:  rgba(233,234,231,.08);
    --shadow:    0 1px 0 rgba(0,0,0,.5), 0 12px 28px -20px rgba(0,0,0,.9);
    --shadow-lg: 0 2px 0 rgba(0,0,0,.5), 0 34px 64px -30px rgba(0,0,0,1);
  }
}

:root[data-theme="dark"] {
  --paper:     #121416;
  --surface:   #1A1D20;
  --plate:     #21262A;
  --ink:       #E9EAE7;
  --ink-2:     #A5ACB0;
  --ink-3:     #7C8388;
  --line:      #2C3236;
  --line-soft: #242A2E;
  --fig:       #C2CACE;
  --layer:     rgba(255,255,255,.05);
  --c-fig:     #FF6A55;
  --c-pet:     #E9A63F;
  --c-tec:     #4FB8D6;
  --c-hub:     #E9EAE7;
  --dep-on:    #121416;
  --dep-wash:  rgba(233,234,231,.08);
  --shadow:    0 1px 0 rgba(0,0,0,.5), 0 12px 28px -20px rgba(0,0,0,.9);
  --shadow-lg: 0 2px 0 rgba(0,0,0,.5), 0 34px 64px -30px rgba(0,0,0,1);
}

/* Abteilung faerbt die Seite - Basiswert steht oben in :root */
:root[data-dep="figuren"]  { --dep: var(--c-fig); --dep-wash: color-mix(in srgb, var(--c-fig) 11%, transparent); }
:root[data-dep="haustiere"]{ --dep: var(--c-pet); --dep-wash: color-mix(in srgb, var(--c-pet) 12%, transparent); }
:root[data-dep="technik"]  { --dep: var(--c-tec); --dep-wash: color-mix(in srgb, var(--c-tec) 11%, transparent); }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }

h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
h1, h2 { font-family: var(--f-black); font-weight: 400; letter-spacing: -.028em; }
h3 { font-family: var(--f-body); font-weight: 700; letter-spacing: -.015em; }
p { margin: 0; }
a { color: inherit; }
svg { max-width: 100%; }
:focus-visible { outline: 2.5px solid var(--dep); outline-offset: 3px; border-radius: var(--r-s); }

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: 24px; }
.eyebrow { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow.dep { color: var(--dep); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-body); font-size: 14.5px; font-weight: 600;
  padding: 11px 20px; border-radius: var(--r-m); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-dep { background: var(--dep); color: var(--dep-on); }
.btn-dep:hover { filter: brightness(1.12); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--surface); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Kopfzeile ---------- */
header.top { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.brand-mark { width: 24px; height: 24px; flex: none; color: var(--dep); }
.brand-name { font-family: var(--f-black); font-size: 17px; letter-spacing: -.045em; }
.brand-name .m { color: var(--dep); }

nav.dept { display: flex; gap: 2px; margin-right: auto; margin-left: 14px; }
nav.dept a {
  font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  padding: 8px 13px; border-radius: var(--r-m); position: relative;
  transition: color .15s ease, background-color .15s ease;
}
nav.dept a:hover { color: var(--ink); background: var(--surface); }
nav.dept a[aria-current="page"] { color: var(--ink); font-weight: 600; }
nav.dept a[aria-current="page"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: -1px; height: 2px; background: var(--dot);
}
nav.dept a[data-d="figuren"]   { --dot: var(--c-fig); }
nav.dept a[data-d="haustiere"] { --dot: var(--c-pet); }
nav.dept a[data-d="technik"]   { --dot: var(--c-tec); }

.cart-btn { position: relative; flex: none; gap: 9px; padding-inline: 17px; }
.cart-ico { width: 18px; height: 18px; flex: none; }
.cart-count {
  position: absolute; top: -8px; right: -8px; min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 11px; background: var(--dep-on); color: var(--dep);
  box-shadow: 0 0 0 2px var(--paper);
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; display: grid; place-items: center; line-height: 1;
}
.cart-count[hidden] { display: none; }

/* Kurzer Hupfer, sobald etwas in den Warenkorb wandert */
@keyframes korb-hupf {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.11); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .cart-btn.hupf { animation: korb-hupf .4s ease; }
}

/* ---------- Seitenkopf je Abteilung ---------- */
.phead { border-bottom: 1px solid var(--line); background: var(--dep-wash); padding: 44px 0 40px; }
.phead-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.phead h1 { font-size: clamp(30px, 4vw, 46px); margin: 12px 0 14px; }
.phead p { color: var(--ink-2); font-size: 16.5px; max-width: 56ch; }
.phead-fig { width: 132px; color: var(--dep); flex: none; }
.phead-fig svg { display: block; width: 100%; height: auto; }

.specstrip { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 20px; }
.specstrip div { font-family: var(--f-mono); font-size: 11px; letter-spacing: .05em; color: var(--ink-3); text-transform: uppercase; }
.specstrip b { color: var(--ink-2); font-weight: 600; }

.sec { padding: 52px 0; }
.sec-head { margin-bottom: 28px; max-width: 58ch; }
.sec-head h2 { font-size: clamp(24px, 2.8vw, 32px); margin-top: 10px; }
.sec-head p { color: var(--ink-2); margin-top: 12px; }

/* ---------- Startseite ---------- */
.hero { padding: 62px 0 20px; }
.hero h1 { font-size: clamp(38px, 6vw, 74px); letter-spacing: -.04em; max-width: 15ch; }
.hero h1 span { color: var(--c-tec); }
.hero-lead { font-size: 18px; color: var(--ink-2); max-width: 52ch; margin: 20px 0 26px; }
.hero-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.maschine {
  margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden;
}
.maschine div { padding: 18px 20px; border-right: 1px solid var(--line); }
.maschine div:last-child { border-right: 0; }
.maschine dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.maschine dd { margin: 0; font-family: var(--f-mono); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Abteilungsreihen */
.dept-row {
  display: grid; grid-template-columns: 118px minmax(0, 1fr) auto; gap: 34px; align-items: center;
  padding: 34px 0 34px 22px; border-top: 1px solid var(--line); position: relative; text-decoration: none;
}
.dept-row:last-of-type { border-bottom: 1px solid var(--line); }
.dept-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rail); }
.dept-row[data-d="figuren"]   { --rail: var(--c-fig); }
.dept-row[data-d="haustiere"] { --rail: var(--c-pet); }
.dept-row[data-d="technik"]   { --rail: var(--c-tec); }
.dept-row:hover { background: var(--surface); }
.dept-sil { color: var(--rail); }
.dept-sil svg { display: block; width: 100%; height: auto; }
.dept-name { font-family: var(--f-black); font-size: 25px; letter-spacing: -.03em; }
.dept-kicker { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--rail); display: block; margin-bottom: 7px; }
.dept-txt p { color: var(--ink-2); font-size: 15px; margin-top: 8px; max-width: 58ch; }
.dept-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dept-tags span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .05em; color: var(--ink-2); border: 1px solid var(--line); border-radius: 100px; padding: 3px 10px; }
.dept-go { text-align: right; }
.dept-ab { font-family: var(--f-mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 8px; }
.dept-preis { font-family: var(--f-black); font-size: 25px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dept-pfeil { font-family: var(--f-mono); color: var(--rail); font-size: 18px; margin-top: 8px; display: block; }

.werk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.werk h3 { font-size: 17px; margin-bottom: 7px; }
.werk p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.werk .eyebrow { display: block; margin-bottom: 9px; }

/* ---------- Figuren ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.tile {
  position: relative; padding: 18px; aspect-ratio: 4 / 3; display: grid; place-items: center;
  background:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px) 0 0 / 20px 20px,
    var(--plate);
  border-bottom: 1px solid var(--line);
}
.tile-veil { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 4px, var(--layer) 4px 5px); }
.fig { width: 58%; max-width: 148px; color: var(--fig); }
.fig svg { display: block; width: 100%; height: auto; }
.fig .cut { fill: var(--plate); }
.tag {
  position: absolute; top: 11px; left: 11px; z-index: 2;
  font-family: var(--f-mono); font-size: 9.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); padding: 3px 8px; border-radius: 100px;
}
.card-body { display: flex; flex-direction: column; gap: 11px; padding: 17px 18px 18px; flex: 1; }
.card-body h3 { font-size: 17.5px; }
.kurz { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; padding-top: 11px; border-top: 1px solid var(--line-soft); }
.specs div { display: flex; flex-direction: column; gap: 1px; }
.specs dt { font-family: var(--f-mono); font-size: 9px; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3); }
.specs dd { margin: 0; font-family: var(--f-mono); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.preis { font-family: var(--f-black); font-size: 20px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.card-foot .btn { padding: 8px 14px; font-size: 13.5px; }

.hinweis {
  margin-top: 26px; padding: 18px 22px; border: 1px solid var(--line); border-left: 3px solid var(--dep);
  border-radius: var(--r-m); background: var(--surface);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; justify-content: space-between;
}
.hinweis p { font-size: 15px; color: var(--ink-2); max-width: 64ch; }
.hinweis b { color: var(--ink); font-weight: 600; }

/* ---------- Schrittfolge ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step { border-top: 2px solid var(--dep); padding-top: 13px; }
.step-n { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; color: var(--dep); display: block; margin-bottom: 7px; }
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.step-meta { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 9px; }

/* ---------- Konfigurator ---------- */
.konf-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 24px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; }
.panel + .panel { margin-top: 18px; }
.blk { margin-bottom: 24px; }
.blk:last-child { margin-bottom: 0; }
.blk > .lab, .field > label { font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips button {
  font-family: var(--f-body); font-size: 13.5px; font-weight: 500;
  padding: 7px 14px; border-radius: 100px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chips button:hover { color: var(--ink); border-color: var(--ink-3); }
.chips button[aria-pressed="true"] { background: var(--dep); color: var(--dep-on); border-color: var(--dep); }

.groessen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.gr {
  cursor: pointer; text-align: left; border: 1px solid var(--line); border-radius: var(--r-m);
  background: transparent; padding: 13px; color: var(--ink); font-family: var(--f-body);
  display: flex; flex-direction: column; gap: 9px;
  transition: border-color .15s ease, background-color .15s ease;
}
.gr:hover { border-color: var(--ink-3); }
.gr[aria-pressed="true"] { border-color: var(--dep); background: var(--dep-wash); }
.gr-sil { height: 62px; display: flex; align-items: flex-end; justify-content: center; }
.gr-sil > span { display: block; }
.gr-sil svg { height: 100%; width: auto; display: block; }
.gr-sil .poly { fill: var(--ink-3); stroke: var(--ink-3); stroke-width: 1.4; }
.gr[aria-pressed="true"] .gr-sil .poly { fill: var(--dep); stroke: var(--dep); }
.gr-sil .eye { display: none; }
.gr-name { font-weight: 700; font-size: 15.5px; }
.gr-mm { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); }
.gr-preis { font-family: var(--f-mono); font-size: 13.5px; font-weight: 500; font-variant-numeric: tabular-nums; }

.opt { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.opt:last-child { border-bottom: 0; }
.opt input { margin: 4px 0 0; accent-color: var(--dep); width: 16px; height: 16px; flex: none; }
.opt-txt { flex: 1; }
.opt-name { font-size: 14px; font-weight: 500; display: block; }
.opt-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; margin-top: 2px; display: block; }
.opt-preis { font-family: var(--f-mono); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.summe { position: sticky; top: 86px; }
.summe h3 { font-size: 17.5px; margin-bottom: 14px; }
.sz { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--ink-2); padding: 4px 0; font-variant-numeric: tabular-nums; }
.sz span:first-child { color: var(--ink); }
.sz-total { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; border-top: 1px solid var(--line); margin-top: 13px; padding-top: 13px; }
.sz-total .lab { font-family: var(--f-mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.sz-total .val { font-family: var(--f-black); font-size: 30px; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.sz-meta { font-family: var(--f-mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.sz-note { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

.field { display: flex; flex-direction: column; margin-bottom: 14px; }
.field > label { margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; font-family: var(--f-body); font-size: 14.5px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px;
}
textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
select { appearance: none; cursor: pointer; }
::placeholder { color: var(--ink-3); }
.consent { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; margin: 2px 0 15px; }
.formstate { margin-top: 13px; font-size: 14.5px; line-height: 1.55; }
.formstate:empty { display: none; }
.formstate.err { color: var(--c-fig); }
.formstate code { font-family: var(--f-mono); font-size: 13.5px; background: var(--plate); color: var(--ink); padding: 2px 7px; border-radius: var(--r-s); }

.vermeiden { border: 1px solid var(--line); border-left: 3px solid var(--dep); border-radius: var(--r-m); background: var(--surface); padding: 20px 24px; }
.vermeiden h3 { font-size: 16px; margin-bottom: 10px; }
.vermeiden ul { margin: 0; padding-left: 20px; columns: 2; column-gap: 34px; }
.vermeiden li { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; break-inside: avoid; }

/* ---------- Technik: Teileliste ---------- */
.tabelle-huelle { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
table.teile { width: 100%; border-collapse: collapse; min-width: 720px; }
table.teile th {
  text-align: left; font-family: var(--f-mono); font-size: 9.5px; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3); padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.teile td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; vertical-align: middle; }
table.teile tr:last-child td { border-bottom: 0; }
table.teile tbody tr:hover { background: var(--dep-wash); }
.t-nr { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.t-name { font-weight: 600; }
.t-sub { display: block; font-size: 13px; color: var(--ink-2); font-weight: 400; margin-top: 2px; }
.t-mat { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; border: 1px solid var(--line); border-radius: 100px; padding: 3px 9px; white-space: nowrap; }
.t-mass, .t-preis { font-family: var(--f-mono); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-preis { font-weight: 600; }
table.teile td:last-child { text-align: right; }
table.teile .btn { padding: 7px 13px; font-size: 13px; }

.mat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mat { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); padding: 20px; }
.mat h3 { font-family: var(--f-mono); font-size: 15px; letter-spacing: .02em; margin-bottom: 4px; }
.mat .mat-fuer { font-size: 13.5px; color: var(--dep); font-weight: 600; margin-bottom: 12px; }
.mat dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 0; }
.mat dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.mat dd { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }

.grenzen { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); padding: 24px 26px; }
.grenzen h3 { font-size: 17px; margin-bottom: 14px; }
.grenzen ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.grenzen li { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; padding-left: 26px; position: relative; }
.grenzen li::before {
  content: attr(data-k); position: absolute; left: 0; top: 1px;
  font-family: var(--f-mono); font-size: 10px; color: var(--dep); font-weight: 600;
}
.grenzen b { color: var(--ink); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); max-width: 80ch; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 17px 32px 17px 0; position: relative; font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 15px; font-family: var(--f-mono); font-size: 18px; color: var(--dep); line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 32px 18px 0; color: var(--ink-2); font-size: 15px; line-height: 1.62; max-width: 70ch; }

/* ---------- Fusszeile ---------- */
footer.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 44px 0 32px; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.foot h4 { font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 11px; }
.foot p, .foot li { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .brand { margin-bottom: 11px; }
.foot-legal { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; }
.foot-legal p { font-size: 12.5px; color: var(--ink-3); max-width: 70ch; }
.platzhalter { color: var(--dep); font-weight: 600; }

/* ---------- Warenkorb ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(6,8,9,.5); opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility .22s ease; }
.scrim.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(412px, 100%);
  background: var(--paper); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden;
  transition: transform .26s cubic-bezier(.32,.72,.28,1), visibility .26s;
}
.drawer.open { transform: none; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .drawer, .scrim { transition: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 19px; }
.x { width: 33px; height: 33px; border-radius: var(--r-s); border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 17px; cursor: pointer; line-height: 1; }
.x:hover { background: var(--surface); }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 22px; }
.leer { padding: 42px 0; text-align: center; color: var(--ink-3); font-size: 14.5px; }
.zeile { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.zeile-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.zeile-meta { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: .04em; margin-top: 3px; }
.zeile-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.zeile-preis { font-family: var(--f-mono); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-s); }
.qty button { width: 26px; height: 26px; background: transparent; border: 0; color: var(--ink); cursor: pointer; font-size: 14px; line-height: 1; }
.qty button:hover { background: var(--surface); }
.qty output { min-width: 26px; text-align: center; font-family: var(--f-mono); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Ganzen Warenkorb leeren - fragt beim ersten Klick nach */
.korb-leeren { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.korb-leeren button {
  background: none; border: 0; padding: 6px 2px; cursor: pointer;
  font-family: var(--f-body); font-size: 13px; color: var(--ink-3);
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .16s ease;
}
.korb-leeren button:hover { color: var(--ink); }
.korb-leeren button.fragt { color: var(--c-fig); font-weight: 600; text-decoration: none; }
.korb-leeren button:focus-visible { outline: 3px solid var(--dep); outline-offset: 2px; border-radius: 4px; }
.summe-box { padding: 15px 22px; border-top: 1px solid var(--line); background: var(--surface); }
.summe-zeile { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); padding: 3px 0; font-variant-numeric: tabular-nums; }
.summe-zeile.gesamt { color: var(--ink); font-family: var(--f-black); font-size: 18px; letter-spacing: -.03em; padding-top: 9px; margin-top: 8px; border-top: 1px solid var(--line); }
.ust { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; line-height: 1.5; }
.checkout { padding: 0 22px 20px; background: var(--surface); }
.checkout .field { margin-bottom: 11px; }
.checkout textarea { min-height: 62px; }

[hidden] { display: none !important; }

@media (max-width: 1000px) {
  nav.dept { display: none; }
  .maschine { grid-template-columns: repeat(2, 1fr); }
  .maschine div:nth-child(2) { border-right: 0; }
  .maschine div:nth-child(1), .maschine div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .konf-grid { grid-template-columns: 1fr; }
  .summe { position: static; }
  .werk-grid, .mat-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .phead-in { grid-template-columns: 1fr; gap: 24px; }
  .phead-fig { width: 100px; }
  .dept-row { grid-template-columns: 80px minmax(0, 1fr); gap: 22px; }
  .dept-go { grid-column: 2; text-align: left; }
  .vermeiden ul { columns: 1; }
}
@media (max-width: 620px) {
  .grid, .steps, .groessen { grid-template-columns: 1fr; }
  .maschine { grid-template-columns: 1fr; }
  .maschine div { border-right: 0; border-bottom: 1px solid var(--line); }
  .maschine div:last-child { border-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .gr { flex-direction: row; align-items: center; gap: 15px; }
  .gr-sil { height: 50px; width: 50px; flex: none; }
}
/* ============================================================
   SCHRIFTEN - selbst gehostet
   ------------------------------------------------------------
   Damit laedt die Seite KEINE Daten von Google-Servern. Das
   spart dir das Cookie-Banner und die Google-Fonts-Diskussion
   in der Datenschutzerklaerung.

   So kommst du an die acht Dateien (dauert drei Minuten):
   1. gwfh.mranftl.com oefnen (google-webfonts-helper)
   2. Schrift suchen, Zeichensatz "latin", Format "woff2"
   3. Diese Schnitte herunterladen:
        Archivo Black  400
        Archivo        400, 500, 600, 700
        JetBrains Mono 400, 500, 600
   4. Dateien nach assets/schriften/ legen und exakt so benennen
      wie unten in den src-Zeilen angegeben.

   Ohne die Dateien faellt die Seite sauber auf System-
   schriften zurueck - sie sieht dann anders aus, aber nicht
   kaputt.
   ============================================================ */

@font-face { font-family: "Archivo Black"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("schriften/archivo-black-400.woff2") format("woff2"); }

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("schriften/archivo-400.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("schriften/archivo-500.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("schriften/archivo-600.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("schriften/archivo-700.woff2") format("woff2"); }

@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("schriften/jetbrains-mono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("schriften/jetbrains-mono-500.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("schriften/jetbrains-mono-600.woff2") format("woff2"); }

/* ============================================================
   Sprungmarke fuer Tastatur- und Screenreader-Nutzung
   ============================================================ */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  border-radius: var(--r-m); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: top .15s ease;
}
.skip:focus { top: 12px; }

/* ============================================================
   Rechtstexte und andere Fliesstext-Seiten
   ============================================================ */
.legal { padding: 44px 0 70px; }
.legal-in { max-width: 74ch; }
.legal h1 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 10px; }
.legal .stand { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 34px; display: block; }
.legal h2 {
  font-family: var(--f-body); font-weight: 700; font-size: 19px; letter-spacing: -.015em;
  margin: 38px 0 12px; padding-top: 20px; border-top: 1px solid var(--line);
}
.legal h2:first-of-type { margin-top: 30px; }
.legal h3 { font-size: 16px; margin: 22px 0 8px; }
.legal p { color: var(--ink-2); font-size: 15.5px; line-height: 1.68; }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { color: var(--ink-2); font-size: 15.5px; line-height: 1.68; margin: 12px 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--dep); }
.legal address { font-style: normal; color: var(--ink-2); font-size: 15.5px; line-height: 1.75; margin: 12px 0; }
.legal strong { color: var(--ink); font-weight: 600; }

/* Kasten fuer Musterformulare und wichtige Hinweise */
.kasten {
  border: 1px solid var(--line); border-left: 3px solid var(--dep); border-radius: var(--r-m);
  background: var(--surface); padding: 20px 24px; margin: 20px 0;
}
.kasten h3 { margin-top: 0; }
.kasten p, .kasten li { font-size: 14.5px; }
.kasten.streng { border-left-color: var(--c-fig); }

/* Ausfuellhilfe: alles in eckigen Klammern muss ersetzt werden */
.platzhalter { color: var(--dep); font-weight: 600; }
.legal .platzhalter { background: var(--dep-wash); padding: 1px 6px; border-radius: var(--r-s); }

/* ============================================================
   Pflichtangaben im Bestellvorgang (Buttonloesung)
   ============================================================ */
.zustimmung {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  padding: 12px 0 4px; font-size: 12.5px; color: var(--ink-2); line-height: 1.5;
}
.zustimmung input { margin: 2px 0 0; accent-color: var(--dep); width: 16px; height: 16px; flex: none; }
.zustimmung a { color: var(--dep); }

.bestell-uebersicht {
  border: 1px solid var(--line); border-radius: var(--r-m); background: var(--paper);
  padding: 13px 15px; margin-bottom: 14px;
}
.bestell-uebersicht h4 {
  font-family: var(--f-mono); font-size: 9.5px; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 9px;
}
.bu-zeile { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-2); padding: 2px 0; font-variant-numeric: tabular-nums; }
.bu-zeile.gesamt { color: var(--ink); font-weight: 700; border-top: 1px solid var(--line); margin-top: 7px; padding-top: 7px; }

/* ============================================================
   Fusszeile: Rechtslinks deutlich sichtbar
   ============================================================ */
.foot-recht { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-recht a { font-size: 13.5px; color: var(--ink-2); text-decoration: none; }
.foot-recht a:hover { color: var(--ink); text-decoration: underline; }

/* ============================================================
   Fehlerseite
   ============================================================ */
.vierhundertvier { padding: 90px 0 110px; text-align: center; }
.vierhundertvier .code { font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; color: var(--ink-3); text-transform: uppercase; }
.vierhundertvier h1 { font-size: clamp(30px, 4.4vw, 46px); margin: 14px 0 14px; }
.vierhundertvier p { color: var(--ink-2); max-width: 46ch; margin: 0 auto 26px; }
.vierhundertvier .hero-row { justify-content: center; }

/* ============================================================
   Kopfzeile auf schmalen Handys - Marke und Warenkorb muessen
   nebeneinander passen, ohne ueber den Rand zu laufen
   ============================================================ */
@media (max-width: 640px) {
  .top-in { gap: 12px; height: 58px; }
  .brand { min-width: 0; }
  .brand-mark { width: 21px; height: 21px; }
  .brand-name { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cart-btn { padding: 8px 13px; font-size: 13.5px; }
}
@media (max-width: 430px) {
  /* Auf schmalen Handys nur noch der Einkaufswagen mit der Anzahl */
  .cart-wort { display: none; }
  .cart-btn { padding: 9px 12px; gap: 0; }
}
@media (max-width: 390px) {
  .brand-name { font-size: 13.5px; }
  .wrap { padding-inline: 18px; }
}

/* Warenkorb auf Handy und Tablet an den rechten Rand - dort ist die
   Abteilungsnavigation ausgeblendet, die ihn sonst nach rechts schiebt */
.cart-btn { margin-left: auto; }

/* ============================================================
   Katalog mit gerenderten Produktbildern (alle drei Abteilungen)
   Die Bilder haben einen transparenten Hintergrund und liegen
   auf dem Bauplatten-Raster der Kachel.
   ============================================================ */
.grid { grid-auto-flow: row dense; container-type: inline-size; }
.card.gross { grid-column: span 2; }
.card.gross .specs { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tile.foto { padding: 0; place-items: stretch; }
.tile.foto picture,
.tile.foto img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.tile.foto img { object-fit: cover; }
.card.gross .tile.foto { aspect-ratio: 8 / 3; }

/* Normale und breite Karten bekommen in einer Reihe exakt dieselbe Bildhoehe */
@supports (height: 1cqw) {
  .tile.foto, .card.gross .tile.foto { aspect-ratio: auto; height: calc((100cqw - 40px) / 3 * .75); }
}

.phead-fig.foto { width: 260px; }
.phead-fig.foto img { display: block; width: 100%; height: auto; }
.dept-sil.foto { aspect-ratio: 1 / 1; }
.dept-sil.foto img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1000px) {
  @supports (height: 1cqw) {
    .tile.foto, .card.gross .tile.foto { height: calc((100cqw - 20px) / 2 * .75); }
  }
  .phead-fig.foto { width: 200px; }
}
@media (max-width: 620px) {
  .card.gross { grid-column: auto; }
  .card.gross .tile.foto { aspect-ratio: 4 / 3; }
  .card.gross .specs { grid-template-columns: 1fr 1fr; }
  @supports (height: 1cqw) {
    .tile.foto, .card.gross .tile.foto { height: calc(100cqw * .75); }
  }
}


/* ============================================================
   Katalog mit zwei Spalten (bei 2 oder 4 Produkten),
   Lizenzhinweis auf der Karte, Sprunglink im Seitenkopf
   ============================================================ */
.grid.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@supports (height: 1cqw) {
  .grid.zwei .tile.foto { height: calc((100cqw - 20px) / 2 * .75); }
}
.credit { font-size: 11.5px; color: var(--ink-3); line-height: 1.45; }

/* Herstellerangaben und Warnhinweise auf jeder Produktkarte (GPSR) */
.gpsr { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.gpsr summary {
  padding: 0 24px 0 0;
  font-family: var(--f-mono); font-weight: 600; font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2);
}
.gpsr summary::after { top: 50%; right: 2px; transform: translateY(-50%); font-size: 15px; }
.gpsr summary:focus-visible { outline: 3px solid var(--dep); outline-offset: 3px; border-radius: 3px; }
.gpsr-in { margin-top: 9px; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.gpsr-in p { margin: 0; }
.gpsr-in b { color: var(--ink); font-weight: 600; }
.gpsr-in a { color: inherit; }
.gpsr-in ul { margin: 8px 0 0; padding-left: 16px; display: grid; gap: 4px; }
.gpsr-in li::marker { color: var(--ink-3); }

/* Kurzfassung bei den Anfragen für Sonderanfertigungen */
.gpsr-kurz {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft);
  font-size: 12px; line-height: 1.5; color: var(--ink-3);
}
.gpsr-kurz b { color: var(--ink-2); font-weight: 600; }
.gpsr-kurz a { color: inherit; }
.phead-link { margin-top: 14px; font-size: 14.5px; }
.phead-link a { color: var(--dep); font-weight: 600; text-decoration: none; }
.phead-link a:hover { text-decoration: underline; }
@media (max-width: 620px) {
  .grid.zwei { grid-template-columns: 1fr; }
  @supports (height: 1cqw) {
    .grid.zwei .tile.foto { height: calc(100cqw * .75); }
  }
}
