/* ==========================================================================
   CE im Anlagenbau – Design-System
   Leitidee: das Typenschild. Sachlich, technisch, wie eine gute Zeichnung.
   Der einzige laute Moment ist das Schild im Kopfbereich; alles andere bleibt ruhig.
   ========================================================================== */

@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Farben */
  --paper: #f1f3f2;
  --panel: #e2e7e5;
  --ink: #17232b;          /* Schieferblau: Text, Linien, Flächen */
  --steel: #56636b;        /* Sekundärtext */
  --line: #c3cbc9;
  --signal: #f0b416;       /* Sicherheitsgelb, sparsam */
  --signal-ink: #17232b;
  --alert: #b8321c;
  --alert-bg: #f6ddd6;
  --warn-bg: #fbedc4;
  --ok-bg: #dbe6e2;

  /* Typenschild */
  --plate-1: #dfe4e5;
  --plate-2: #c4cbce;
  --plate-ink: #26333b;
  --plate-edge: #9aa4a8;

  /* Schrift */
  --font-body: "Barlow", system-ui, sans-serif;
  --font-display: "Barlow Condensed", "Barlow", system-ui, sans-serif;

  /* Typografische Skala (Quart, Basis 1.0625rem) */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: clamp(3rem, 2rem + 4vw, 6rem);

  --measure: 66ch;
  --wrap: 72rem;
  --radius: 3px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141d23;
    --panel: #1c2830;
    --ink: #e4e9e8;
    --steel: #9aa8ae;
    --line: #33424b;
    --signal-ink: #141d23;
    --alert: #f08a72;
    --alert-bg: #4a2219;
    --warn-bg: #4a3b12;
    --ok-bg: #22362f;
    --plate-1: #b9c1c4;
    --plate-2: #98a2a6;
    --plate-ink: #18232a;
    --plate-edge: #6d787d;
  }
}

/* --------------------------------------------------------------------------
   Grundlagen
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; }
p { margin: 0 0 var(--space-2); max-width: var(--measure); }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0; background: var(--signal); color: var(--signal-ink); padding: var(--space-1) var(--space-2); z-index: 10; }
.skip:focus { left: var(--space-2); }

/* --------------------------------------------------------------------------
   Kopfzeile
   -------------------------------------------------------------------------- */
.masthead { border-bottom: 1px solid var(--line); position: relative; z-index: 50; background: var(--paper); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding-block: var(--space-2); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand .ce-mark { width: 2.75rem; flex: none; }
.brand__text { display: grid; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
.brand__tag { font-size: var(--step--1); color: var(--steel); }
@media (max-width: 40rem) { .brand__tag { display: none; } .masthead__inner { flex-wrap: nowrap; } .js .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); padding: 0 1rem 1rem; border-bottom: 1px solid var(--line); } .masthead { position: relative; } .js .nav.is-open { box-shadow: 0 16px 24px -12px rgb(0 0 0 / 0.35); } }

.nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-block; line-height: 1.4; text-decoration: none; font-weight: 500; padding-block: 0.25rem; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--signal); }

/* Untermenü „Weitere Themen“ */
.nav__group { position: relative; }
.submenu summary {
  list-style: none; cursor: pointer; font-weight: 500; line-height: 1.4;
  padding-block: 0.25rem; border-bottom: 2px solid transparent;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.submenu summary::-webkit-details-marker { display: none; }
.submenu summary::after {
  content: ""; width: 0.45em; height: 0.45em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
}
.submenu[open] summary::after { transform: translateY(0.1em) rotate(-135deg); }
.submenu summary:hover { border-bottom-color: var(--line); }
.submenu[data-current] summary { border-bottom-color: var(--signal); }
.submenu > ul {
  position: absolute; top: calc(100% + 0.6rem); left: -1rem; z-index: 20;
  display: block; min-width: 15rem;
  background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--ink);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 0.35rem 0;
  box-shadow: 0 12px 24px -16px rgb(23 35 43 / 0.45);
}
.submenu > ul a { display: block; padding: 0.5rem 1rem; border-bottom: 0; }
.submenu > ul a:hover { background: var(--panel); }
.submenu > ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--signal); border-bottom-color: transparent; }

.nav-toggle { display: none; font: inherit; font-weight: 500; background: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.4rem 0.8rem; cursor: pointer; }

@media (max-width: 56rem) {
  .js .nav-toggle { display: block; }
  .js .nav { display: none; width: 100%; }
  .js .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-top: var(--space-1); }
  .nav a { display: block; padding-block: 0.6rem; border-bottom: 1px solid var(--line); }
  .submenu summary { display: flex; justify-content: space-between; width: 100%; padding-block: 0.6rem; border-bottom: 1px solid var(--line); }
  .submenu[data-current] summary { border-bottom-color: var(--line); }
  .submenu > ul { position: static; min-width: 0; border: 0; box-shadow: none; padding: 0 0 0 1rem; background: none; }
  .submenu > ul a { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .submenu > ul a:hover { background: none; }
}

/* --------------------------------------------------------------------------
   Schaltflächen
   -------------------------------------------------------------------------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-3); }
.btn {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  line-height: 1.2;
}
.btn:hover { background: var(--panel); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--ink); box-shadow: inset 0 -4px 0 var(--signal); }

/* --------------------------------------------------------------------------
   Kopfbereich mit Typenschild
   -------------------------------------------------------------------------- */
.hero { padding-block: var(--space-5); }
.hero__grid { display: grid; gap: var(--space-4); align-items: center; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--steel); max-width: 34em; }

.plate {
  position: relative;
  margin: 0;
  padding: 1.6rem 1.8rem 1.4rem;
  color: var(--plate-ink);
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / 0.08) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, var(--plate-1), var(--plate-2));
  border: 1px solid var(--plate-edge);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.6),
    inset 0 -1px 0 rgb(0 0 0 / 0.15),
    0 1px 0 var(--line),
    0 18px 30px -22px rgb(23 35 43 / 0.55);
  transform: rotate(-1.2deg);
  max-width: 30rem;
  justify-self: end;
  width: 100%;
}
.plate__rivet {
  position: absolute; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f4f6f6, #8e989c 70%);
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.3);
}
.plate__rivet:nth-child(1) { top: 10px; left: 10px; }
.plate__rivet:nth-child(2) { top: 10px; right: 10px; }
.plate__rivet:nth-child(3) { bottom: 10px; left: 10px; }
.plate__rivet:nth-child(4) { bottom: 10px; right: 10px; }

.plate__head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.35rem;
  margin-bottom: 0.6rem;
  text-shadow: 0 1px 0 rgb(255 255 255 / 0.5);
}
.plate__fields { margin: 0; display: grid; }
.plate__fields > div {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.75rem;
  padding-block: 0.4rem;
  border-bottom: 1px solid rgb(38 51 59 / 0.28);
}
.plate__fields dt { font-size: var(--step--1); font-weight: 500; opacity: 0.8; align-self: center; }
.plate__fields dd { margin: 0; font-weight: 600; text-shadow: 0 1px 0 rgb(255 255 255 / 0.45); }
.plate__countdown dd { font-family: var(--font-display); font-size: var(--step-2); line-height: 1; font-weight: 700; }
.plate__mark { display: flex; justify-content: flex-end; margin-top: 0.9rem; }
.plate__mark .ce-mark { width: 5.5rem; filter: drop-shadow(0 1px 0 rgb(255 255 255 / 0.55)); }

@media (max-width: 56rem) {
  .hero__grid { grid-template-columns: 1fr; }
  .plate { justify-self: start; transform: none; }
}
@media (max-width: 26rem) {
  .plate { padding-inline: 1.2rem; }
  .plate__fields > div { grid-template-columns: 1fr; gap: 0; }
}

/* --------------------------------------------------------------------------
   Abschnitte
   -------------------------------------------------------------------------- */
.section { padding-block: var(--space-5); border-top: 1px solid var(--line); }
.section__head { margin-bottom: var(--space-4); }
.section__head p { color: var(--steel); }
.section--matrix { background: var(--panel); border-top: 0; }

/* Zählung Anhang III */
.tally { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.tally li { display: flex; align-items: baseline; gap: 0.4rem; color: var(--steel); }
.tally strong { font-family: var(--font-display); font-size: var(--step-2); color: var(--ink); font-weight: 700; }
.tally--warn strong { box-shadow: inset 0 -0.3em 0 var(--warn-bg); }
.tally--alert strong { color: var(--alert); }

/* Matrix-Ausschnitt */
.matrix { max-width: 100%; min-width: 0; overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.matrix table { width: 100%; border-collapse: collapse; min-width: 38rem; }
.matrix caption { text-align: left; padding: 0.75rem 1rem; font-size: var(--step--1); color: var(--steel); border-bottom: 1px solid var(--line); }
.matrix th, .matrix td { text-align: left; padding: 0.65rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.matrix th { font-size: var(--step--1); font-weight: 600; color: var(--steel); }
.matrix tbody tr:last-child td { border-bottom: 0; }
.matrix td:first-child { font-weight: 600; white-space: nowrap; }
.status { display: inline-block; font-size: var(--step--1); font-weight: 600; padding: 0.1rem 0.5rem; border-radius: 2px; background: var(--ok-bg); white-space: nowrap; }
.status--warn { background: var(--warn-bg); }
.status--alert { background: var(--alert-bg); color: var(--alert); }

/* Sechs Schritte */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4) var(--space-3); }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: var(--space-2); }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--steel);
}
.steps p { color: var(--steel); margin: 0; }
@media (max-width: 56rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .steps { grid-template-columns: 1fr; } }

/* Produkte */
.products { list-style: none; padding: 0; margin: 0 0 var(--space-4); border-top: 2px solid var(--ink); }
.product { display: grid; grid-template-columns: minmax(0, 1fr) 12rem; gap: var(--space-3); padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
.product h3 { margin-bottom: 0.15rem; font-size: var(--step-2); }
.product h3 a { text-decoration: none; }
.product h3 a:hover { text-decoration: underline; }
.product__sub { color: var(--steel); font-weight: 500; margin-bottom: 0.6rem; }
.product__spec { text-align: right; }
.product__format { font-size: var(--step--1); color: var(--steel); margin: 0 0 0.25rem auto; }
.product__price { font-family: var(--font-display); font-size: var(--step-3); font-weight: 700; margin: 0 0 0 auto; }
@media (max-width: 36rem) {
  .product { grid-template-columns: 1fr; gap: 0.5rem; }
  .product__spec { text-align: left; display: flex; gap: 1rem; align-items: baseline; }
  .product__format, .product__price { margin: 0; }
}

.free { background: var(--panel); border-radius: var(--radius); padding: var(--space-3); }
.free ul { list-style: none; padding: 0; margin: 0 0 var(--space-2); columns: 2 18rem; column-gap: var(--space-4); }
.free li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.45rem; border-bottom: 1px solid var(--line); break-inside: avoid; }
.free__format { color: var(--steel); font-size: var(--step--1); white-space: nowrap; }

/* Autor */
.author > * { max-width: 46rem; }
.author p { font-size: var(--step-1); line-height: 1.5; }
.author__sign { font-size: var(--step-0) !important; color: var(--steel); font-weight: 500; }

/* Platzhalterseiten */
.page { padding-block: var(--space-5); }
.page__note { border-left: 4px solid var(--signal); background: var(--panel); padding: var(--space-2) var(--space-3); max-width: var(--measure); }

/* --------------------------------------------------------------------------
   Fußzeile
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--paper); padding-block: var(--space-4); margin-top: 0; }
.footer__inner { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.footer__brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer__brand .ce-mark { width: 3rem; flex: none; margin-top: 0.2rem; }
.footer__brand p { margin: 0; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 0.4rem 2rem; }
.footer__note { grid-column: 1 / -1; font-size: var(--step--1); opacity: 0.75; margin: 0; padding-top: var(--space-2); border-top: 1px solid rgb(255 255 255 / 0.18); max-width: none; }
@media (max-width: 40rem) { .footer__inner { grid-template-columns: minmax(0, 1fr); } .footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem 1rem; } }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Inhaltsseiten
   ========================================================================== */
.doc { padding-block: var(--space-4) var(--space-5); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3) var(--space-5); }
.doc--aside { grid-template-columns: minmax(0, 1fr) 18rem; }
.doc--aside .doc__head, .doc--aside .draftnote { grid-column: 1 / -1; }
.doc__head { max-width: 50rem; padding-bottom: var(--space-3); border-bottom: 2px solid var(--ink); }
.doc__head h1 { font-size: var(--step-3); }
@media (min-width: 56rem) { .doc__head h1 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); } }
.doc__kicker { font-weight: 600; color: var(--steel); margin-bottom: 0.5rem; }
.doc__kicker a { text-decoration: none; }
.doc__kicker a:hover { text-decoration: underline; }
.doc__meta { color: var(--steel); font-size: var(--step--1); margin: 0; }
.doc__aside { display: grid; gap: var(--space-2); align-content: start; }
@media (min-width: 56rem) { .doc__aside { position: sticky; top: var(--space-2); } }
@media (max-width: 56rem) { .doc--aside { grid-template-columns: minmax(0, 1fr); } }

.draftnote { background: var(--warn-bg); border-left: 4px solid var(--signal); padding: 0.6rem 1rem; font-weight: 600; max-width: none; margin: 0; }

/* Fließtext */
.prose { max-width: 46rem; }
.prose > * + * { margin-top: var(--space-2); }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-4); margin-bottom: var(--space-1); }
.prose h3 { margin-top: var(--space-3); margin-bottom: var(--space-1); }
.prose > h2:first-child, .prose > :first-child h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-block: 0; max-width: var(--measure); }
.prose li + li { margin-top: 0.4rem; }
.prose li::marker { color: var(--steel); }
.prose table:not(.matrix table) { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.prose table:not(.matrix table) th, .prose table:not(.matrix table) td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--line); }
.prose table:not(.matrix table) thead th { font-size: var(--step--1); color: var(--steel); border-bottom: 2px solid var(--ink); }
.prose tbody th { font-weight: 600; }
.prose .matrix, .prose .tally { margin-top: var(--space-3); }
.sources { font-size: var(--step--1); color: var(--steel); border-top: 1px solid var(--line); padding-top: var(--space-2); margin-top: var(--space-4) !important; }

.callout { background: var(--panel); border-left: 4px solid var(--ink); padding: var(--space-2) var(--space-3); border-radius: 0 var(--radius) var(--radius) 0; margin-top: var(--space-3) !important; }
.callout > :first-child { margin-top: 0; }
.callout > * + * { margin-top: var(--space-1); }
.callout--warn { border-left-color: var(--signal); }
.callout h3 { margin-bottom: 0; }

/* Sechs Schritte als nummerierte Abschnitte */
.steplist { list-style: none; counter-reset: s; padding: 0 !important; max-width: none !important; }
.steplist > li { counter-increment: s; position: relative; padding: var(--space-3) 0 var(--space-3) 3.75rem; border-top: 1px solid var(--line); margin: 0 !important; }
.steplist > li::before { content: counter(s); position: absolute; left: 0; top: var(--space-3); font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); line-height: 1; color: var(--steel); }
.steplist > li > * + * { margin-top: var(--space-1); }
.steplist h2 { margin-top: 0 !important; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); margin-top: 0 !important; }
.prose h2 + .faq { margin-top: var(--space-1) !important; border-top: 2px solid var(--ink); }
.faq summary { cursor: pointer; font-weight: 600; padding: 0.85rem 2rem 0.85rem 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.6rem; font-family: var(--font-display); font-size: var(--step-2); line-height: 1; color: var(--steel); }
.faq[open] summary::after { content: "–"; }
.faq > :not(summary) { margin: 0 0 var(--space-2); }

/* Seitenleiste */
.asidebox { border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 0 0 var(--radius) var(--radius); padding: var(--space-2); background: var(--paper); }
.asidebox p { font-size: 0.95rem; margin-bottom: 0.6rem; }
.asidebox__title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1) !important; line-height: 1.15; }
.asidebox__price { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2) !important; }
.asidebox--quiet { background: var(--panel); border-top-color: var(--line); }

/* Zweispaltig mit Formular */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: var(--space-4); align-items: start; max-width: none; }
.prose:has(.split), .prose:has(.shelf), .prose:has(.articlelist) { max-width: none; }
.split > div > * + * { margin-top: var(--space-2); }
.split ul, .split ol { padding-left: 1.25rem; }
@media (max-width: 56rem) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Formulare */
.formcard { background: var(--panel); border-radius: var(--radius); padding: var(--space-3); border-top: 3px solid var(--ink); }
.formcard h2 { font-size: var(--step-2); margin: 0 0 var(--space-2) !important; }
.formcard__intro { font-size: 0.95rem; color: var(--steel); }
.form { display: grid; gap: 0.9rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 26rem) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.3rem; font-weight: 500; font-size: 0.95rem; }
.field small, .check small { font-weight: 400; color: var(--steel); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--paper);
  border: 1px solid var(--plate-edge); border-radius: var(--radius); padding: 0.6rem 0.7rem; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--signal); outline-offset: 0; border-color: var(--ink); }
.form__group { border: 0; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.form__group legend { font-weight: 600; margin-bottom: 0.4rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.check input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; flex: none; accent-color: var(--ink); }
.check small { display: block; }
.form__hp { position: absolute; left: -9999px; }
.form__note { font-size: var(--step--1); color: var(--steel); margin: 0; }
.download-form__doc { display: grid; border-left: 3px solid var(--signal); padding-left: 0.75rem; }
.download-form__doc span { color: var(--steel); font-size: var(--step--1); }
.download-form__done { font-weight: 600; outline: none; }

/* Download-Liste und Gratis-Liste */
.freelist { list-style: none; padding: 0 !important; margin: 0; border-top: 2px solid var(--ink); }
.freelist li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 0.6rem; border-bottom: 1px solid var(--line); margin: 0 !important; }
.free-section { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); scroll-margin-top: var(--space-2); }

/* Artikelübersicht */
.articlelist { list-style: none; padding: 0 !important; margin: 0; max-width: 46rem !important; border-top: 2px solid var(--ink); }
.articlelist li { padding-block: var(--space-3); border-bottom: 1px solid var(--line); margin: 0 !important; }
.articlelist time { font-size: var(--step--1); color: var(--steel); }
.articlelist h2 { margin: 0.25rem 0 0.5rem !important; font-size: var(--step-2); }
.articlelist h2 a { text-decoration: none; }
.articlelist h2 a:hover { text-decoration: underline; }
.articlelist p { color: var(--steel); }

/* ==========================================================================
   Produkte
   ========================================================================== */
.cover {
  aspect-ratio: 1 / 1.414;
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: 10% 9%;
  background: var(--ink); color: #f1f3f2;
  border-radius: 2px 6px 6px 2px;
  box-shadow: inset 6px 0 0 rgb(255 255 255 / 0.08), 0 18px 30px -20px rgb(23 35 43 / 0.6);
  position: relative; overflow: hidden;
}
.cover::before { content: ""; position: absolute; inset: auto 0 0 0; height: 32%; background: repeating-linear-gradient(-45deg, var(--signal) 0 14px, #17232b 14px 28px); opacity: 0.9; }
.cover__series { font-size: 0.8rem; opacity: 0.75; font-weight: 500; }
.cover__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); line-height: 1.05; }
.cover__sub { font-size: 0.9rem; opacity: 0.85; }
.cover__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; position: relative; z-index: 1; background: #17232b; padding: 0.4rem 0.6rem; margin-inline: -0.6rem; margin-bottom: 18%; }
.cover__foot .ce-mark { width: 2.4rem; }
.cover--img { object-fit: cover; width: 100%; height: auto; padding: 0; }
@media (prefers-color-scheme: dark) { .cover { background: #0e161b; } }

.product-page { padding-block: var(--space-4) var(--space-5); }
.product-hero { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: var(--space-5); align-items: start; padding-bottom: var(--space-4); border-bottom: 2px solid var(--ink); }
.product-hero__buy h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 0.25rem; }
.product-hero__sub { font-weight: 500; color: var(--steel); font-size: var(--step-1); }
.product-hero .lead { margin-top: var(--space-2); font-size: var(--step-0); }
@media (max-width: 48rem) { .product-hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); } .product-hero__cover { max-width: 14rem; } }
.ribbon { display: inline-block; background: var(--signal); color: var(--signal-ink); font-weight: 600; font-size: var(--step--1); padding: 0.15rem 0.6rem; border-radius: 2px; margin-bottom: 0.75rem; }
.specs { margin: var(--space-3) 0; display: grid; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding-block: 0.45rem; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--steel); font-size: 0.95rem; }
.specs dd { margin: 0; }
.price { font-family: var(--font-display); font-weight: 700; font-size: var(--step-4); line-height: 1; margin: 0; }
.price--small { font-size: var(--step-2); }
.price__note { font-size: var(--step--1); color: var(--steel); margin: 0.35rem 0 var(--space-2); }
.pay { font-size: var(--step--1); color: var(--steel); margin-top: 0.6rem; }
.btn--large { font-size: var(--step-1); padding: 0.85rem 1.6rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
.product-body { margin-top: var(--space-4); }
.toc { columns: 2 18rem; column-gap: var(--space-4); }
.toc li { break-inside: avoid; }

/* Regal auf der Produktübersicht */
.shelf { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: var(--space-4); }
.shelf__item { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--space-3); align-items: start; padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); margin: 0 !important; }
.shelf__cover { display: block; text-decoration: none; }
.shelf__cover .cover { padding: 12% 10%; gap: 0.3rem; }
.shelf__cover .cover__title { font-size: 1rem; }
.shelf__cover .cover__series, .shelf__cover .cover__sub, .shelf__cover .cover__foot span { font-size: 0.6rem; }
.shelf__cover .cover__foot .ce-mark { width: 1.4rem; }
.shelf__body h2 { margin: 0 0 0.2rem !important; font-size: var(--step-2); }
.shelf__body h2 a { text-decoration: none; }
.shelf__body h2 a:hover { text-decoration: underline; }
.shelf__sub { color: var(--steel); font-weight: 500; margin-bottom: 0.5rem !important; }
.shelf__body > p + p { margin-top: 0.5rem; }
.shelf__meta { display: flex; gap: 1rem; align-items: baseline; color: var(--steel); font-size: 0.95rem; }
@media (max-width: 30rem) { .shelf__item { grid-template-columns: 6rem minmax(0, 1fr); gap: var(--space-2); } }

/* Echte Titelbilder */
img.cover--img { aspect-ratio: auto; display: block; background: none; padding: 0; border-radius: 3px; }
.shelf__cover img.cover--img { width: 100%; padding: 0; }

/* Blick ins Buch */
.peek { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: var(--space-2); list-style: none; padding: 0 !important; max-width: none !important; }
.peek li { margin: 0 !important; }
.peek a { display: block; text-decoration: none; }
.peek img { width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 10px 20px -16px rgb(23 35 43 / 0.5); }
.peek a:hover img { border-color: var(--ink); }
.peek span { display: block; font-size: var(--step--1); color: var(--steel); margin-top: 0.35rem; }
.figure-wide { margin: var(--space-3) 0 0; }
.figure-wide img { width: 100%; height: auto; border: 1px solid var(--line); }
.figure-wide figcaption { font-size: var(--step--1); color: var(--steel); margin-top: 0.4rem; }

/* Kaufformular */
.buy { display: grid; gap: 0.9rem; margin-top: var(--space-2); max-width: 32rem; }
.buy__consent { font-size: var(--step--1); line-height: 1.45; color: var(--steel); }
.buy__consent span { color: var(--ink); }
.buy__error { color: var(--alert); background: var(--alert-bg); padding: 0.5rem 0.75rem; border-radius: var(--radius); margin: 0; font-size: 0.95rem; }
.order { margin-top: var(--space-4); max-width: 46rem; }
.order__result h2 { margin-bottom: var(--space-1); }
.order__status { color: var(--steel); }
.order__notice { background: var(--warn-bg); border: 3px solid var(--signal); border-radius: var(--radius); padding: var(--space-2) var(--space-3); margin-bottom: var(--space-3); color: var(--ink); }
.order__notice strong { display: block; font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; margin-bottom: 0.4rem; }
.order__notice p { margin: 0.4rem 0 0; font-size: var(--step-0); }
.order__done { color: var(--steel); font-size: var(--step--1); margin-left: 0.5rem; }

/* Cookie-Banner (nur aktiv, wenn eine Google-Ads-Kennung eingetragen ist) */
.consent { position: fixed; inset: auto 0 0 0; z-index: 100; padding: var(--space-2); pointer-events: none; }
.consent__inner { pointer-events: auto; max-width: 44rem; margin: 0 auto; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,.25); padding: var(--space-2) var(--space-3); }
.consent__title { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; margin: 0 0 0.4rem; }
.consent__inner p { margin: 0 0 0.6rem; font-size: var(--step--1); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; }
.consent__actions .btn { min-width: 9rem; justify-content: center; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Breite Tabellen im Fließtext auf dem Handy seitlich scrollbar statt Seite zu verbreitern */
@media (max-width: 40rem) { .prose table:not(.matrix table) { display: block; overflow-x: auto; } }
@media (max-width: 40rem) { .free__format { white-space: normal; text-align: right; } .freelist li > :first-child { min-width: 0; } }
