/* D&D Industrieverpackung — Design-System
   Palette: Logo-Grün #46a841 / Graphit / Signalweiß
   Typo: Archivo (variable) für Text & Display · IBM Plex Mono für Maße
   Signatur: Hexagon — aus dem Logo (zwei verschränkte D) und der Wabenform der Bildwelt */

:root {
  --ink: #1c2427;
  --ink-2: #4d5a5f;
  --paper: #f3f5f3;
  --white: #ffffff;
  --line: #dbe1dc;
  --line-2: #c3ccc4;

  --green: #46a841;        /* Markengrün — Flächen, Grafik, große Typo */
  --green-btn: #2f8235;    /* Buttons/Flächen mit weißer Schrift (AA) */
  --green-text: #2c7a2f;   /* Links und Fließtext-Akzente (AA) */
  --green-deep: #1f5c25;
  --green-soft: #e9f3e8;

  --graphite: #1c2427;
  --amber: #b8791b;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --maxw: 1200px;
  --radius: 4px;
  --hex: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-deep); }

h1, h2, h3, h4 { font-variation-settings: 'wdth' 88; line-height: 1.12; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.7vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 62ch; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
section { padding: 3.5rem 0; }
section.tight { padding: 2rem 0 3.5rem; }
section.on-white { background: var(--white); border-block: 1px solid var(--line); }
:target { scroll-margin-top: 90px; }

.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-text);
  margin-bottom: 0.7rem;
}
.eyebrow.on-dark { color: #86cf80; }

/* ── Skip-Link ──────────────────────────────────────── */
.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 0.5rem; z-index: 60; background: var(--white);
  padding: 0.6rem 1rem; border-radius: var(--radius); box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
:focus-visible { outline: 3px solid var(--green-btn); outline-offset: 2px; }

/* ── Topbar / Header ────────────────────────────────── */
.topbar { background: var(--graphite); color: #c8d2cb; font-size: 0.83rem; }
.topbar .wrap { display: flex; gap: 1.25rem; align-items: center; padding: 0.4rem 1.25rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #86cf80; }
.topbar .addr { margin-right: auto; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em; }

header.site { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 1.25rem; padding: 0.6rem 1.25rem; }
.logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.logo img { height: 34px; width: auto; }
.logo-type { display: grid; line-height: 1.05; }
.logo-type b { font-size: 1.22rem; font-weight: 800; font-variation-settings: 'wdth' 86; letter-spacing: -0.01em; }
.logo-type > span { font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 420px) { .logo-type b { font-size: 1.05rem; } .logo-type > span { font-size: 0.55rem; letter-spacing: 0.1em; } }
nav.main { margin-left: auto; display: flex; gap: 1.35rem; }
nav.main a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.96rem;
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--green-text); border-bottom-color: var(--green); }

#menu-toggle { display: none; }
.burger { display: none; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--green-btn); color: #fff; text-decoration: none;
  font-weight: 600; padding: 0.62rem 1.15rem; border: 2px solid var(--green-btn);
  border-radius: var(--radius); cursor: pointer; font-family: inherit; font-size: 0.97rem;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn-lg { padding: 0.82rem 1.5rem; font-size: 1.03rem; }
.btn-ghost { background: transparent; color: var(--green-text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--green-soft); color: var(--green-deep); border-color: var(--green); }
.btn-onDark { background: var(--green); border-color: var(--green); }
.btn-onDark:hover { background: #56bd50; border-color: #56bd50; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── Hexagon-Bildwelt ───────────────────────────────── */
.hexset { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; align-items: center; }
.hexset .hex { clip-path: var(--hex); background: var(--line); aspect-ratio: 1 / 1; overflow: hidden; }
.hexset .hex img { width: 100%; height: 100%; object-fit: cover; }
.hexset .hex.offset { transform: translateY(34%); }
.hexset .hex.tint { background: var(--green); }

.hex-badge {
  clip-path: var(--hex); width: 46px; height: 46px; background: var(--green-soft);
  display: grid; place-items: center; flex: 0 0 auto;
  font-family: var(--mono); font-size: 0.85rem; font-weight: 500; color: var(--green-deep);
}

/* ── Hero ───────────────────────────────────────────── */
.hero { background: linear-gradient(170deg, var(--white) 0%, var(--paper) 62%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 2.5rem; padding-top: 3rem; padding-bottom: 2rem; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding-top: 4rem; } }
.hero .wrap.hero-foot { display: block; padding-top: 0; padding-bottom: 3rem; }
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 1.6rem 0 0; }

.spec-strip {
  display: flex; flex-wrap: wrap; gap: 0 1.6rem; margin-top: 1.8rem;
  padding-top: 1rem; border-top: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 0.82rem; color: var(--ink-2);
}
.spec-strip b { color: var(--ink); font-weight: 500; }

.trust { display: grid; gap: 1rem; margin-top: 0.5rem; }
@media (min-width: 780px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust > div { display: flex; gap: 0.85rem; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.trust b { display: block; font-size: 0.97rem; }
.trust span { color: var(--ink-2); font-size: 0.88rem; line-height: 1.5; }

/* ── Grid / Karten ──────────────────────────────────── */
.grid { display: grid; gap: 1.25rem; }
.cols-2 { grid-template-columns: 1fr; }
.cols-3 { grid-template-columns: 1fr; }
.cols-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .cols-2 { grid-template-columns: repeat(2, 1fr); } .cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } .cols-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(28,36,39,0.07); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card-media { background: linear-gradient(155deg, #f6f8f6, #e7ece7); padding: 1.1rem; display: grid; place-items: center; height: 170px; }
.card-media img { max-height: 100%; width: auto; object-fit: contain; }
.card-body { padding: 1rem 1.2rem 0.4rem; flex: 1; }
.card-body h3 { margin-bottom: 0.35rem; }
.card-body p { color: var(--ink-2); font-size: 0.92rem; margin: 0; }
.card-foot { padding: 0.8rem 1.2rem 1.1rem; }

/* Kompakte Maßangabe in Karten — bricht nicht um wie das Maßband */
.card-spec { border-top: 1px solid var(--line); padding-top: 0.6rem; font-family: var(--mono); font-size: 0.76rem; line-height: 1.5; }
.card-spec .range { display: block; color: var(--ink); }
.card-spec .note { display: block; color: var(--green-text); }

/* Maßband — Signaturelement für Abmessungen */
.dim { display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.76rem; color: var(--ink-2); }
.dim-line { flex: 1; height: 1px; background: var(--line-2); position: relative; }
.dim-line::before, .dim-line::after { content: ''; position: absolute; top: -3px; width: 1px; height: 7px; background: var(--line-2); }
.dim-line::before { left: 0; } .dim-line::after { right: 0; }
.dim-label { white-space: nowrap; color: var(--ink); }
.dim-note { width: 100%; color: var(--green-text); }
.dim.dim-hero { max-width: 30rem; margin-top: 1.6rem; }

/* ── Produkt-Detail ────────────────────────────────── */
.crumbs { font-size: 0.84rem; color: var(--ink-2); padding-top: 1rem; margin: 0; }
.crumbs a { color: var(--ink-2); }
.crumbs span { margin: 0 0.4rem; color: var(--line-2); }

.product-head { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .product-head { grid-template-columns: 1.05fr 0.95fr; } }
.product-media { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(155deg, #f6f8f6, #e5ebe5); padding: 2rem; display: grid; place-items: center; }

table.specs { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: 0.94rem; }
table.specs th, table.specs td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.specs th { width: 42%; font-weight: 600; color: var(--ink); background: var(--white); }
table.specs td { font-family: var(--mono); font-size: 0.87rem; color: var(--ink-2); }
table.specs tr:hover th, table.specs tr:hover td { background: var(--green-soft); }

.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.45rem; }
.check-list li { padding-left: 1.5rem; position: relative; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green-text); font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0 0 1.5rem; list-style: none; }
.chips li { font-family: var(--mono); font-size: 0.78rem; background: var(--white); border: 1px solid var(--line-2); border-radius: 100px; padding: 0.26rem 0.7rem; color: var(--ink-2); }

.note-box { background: var(--green-soft); border-left: 3px solid var(--green); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.95rem; }
.note-box.warn { background: #fdf5e6; border-left-color: var(--amber); }

/* ── QM-Verbindlichkeitserklärung ──────────────────── */
.qm-doc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.8rem 1.4rem; position: relative; overflow: hidden; }
.qm-doc::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px;
  clip-path: var(--hex); background: var(--green-soft); z-index: 0;
}
.qm-doc > * { position: relative; z-index: 1; }
.qm-doc .qm-kicker { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--green-text); display: block; margin-bottom: 0.4rem; }
.qm-doc h2, .qm-doc h3 { margin-bottom: 1rem; }
.qm-doc p { font-size: 0.97rem; max-width: 68ch; }
.qm-norm { font-family: var(--mono); font-size: 0.9rem; }
.qm-sign { margin: 1.4rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--line-2); display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; justify-content: space-between; align-items: baseline; }
.qm-sign .qm-place { font-family: var(--mono); color: var(--ink-2); font-size: 0.9rem; }
.qm-sign .qm-by { font-weight: 600; }

/* ── FAQ ────────────────────────────────────────────── */
details.faq { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.6rem; }
details.faq summary { cursor: pointer; padding: 0.9rem 1.1rem; font-weight: 600; list-style: none; display: flex; gap: 0.8rem; align-items: baseline; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: '+'; color: var(--green-text); font-family: var(--mono); font-weight: 700; flex: 0 0 auto; }
details.faq[open] summary::before { content: '−'; }
details.faq[open] summary { border-bottom: 1px solid var(--line); }
.faq-a { padding: 0.9rem 1.1rem 0.4rem 2.6rem; color: var(--ink-2); font-size: 0.95rem; }

/* ── Kontaktband ───────────────────────────────────── */
.contact-band { background: var(--graphite); color: #dbe4dd; }
.contact-band h2 { color: #fff; }
.contact-band .wrap { display: grid; gap: 2.2rem; }
@media (min-width: 900px) { .contact-band .wrap { grid-template-columns: 1fr 1fr; align-items: start; } }
.contact-band a { color: #86cf80; }
.contact-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.6rem; }
.contact-list li { display: flex; gap: 1rem; align-items: baseline; border-bottom: 1px solid #313b3e; padding-bottom: 0.6rem; }
.contact-list .k { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: #9fada4; width: 6.5rem; flex: 0 0 auto; }
.contact-mono { font-family: var(--mono); }
.panel-white { background: #fff; border-radius: var(--radius); padding: 1.6rem; color: var(--ink); }

/* ── Formulare & Konfigurator ──────────────────────── */
.field { display: block; margin-bottom: 0.85rem; font-size: 0.9rem; font-weight: 600; }
.field input, .field textarea, .field select {
  display: block; width: 100%; margin-top: 0.3rem; padding: 0.6rem 0.7rem;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); outline: 2px solid var(--green-soft); }
.field .req { color: #b3261e; }
.form-hint { font-size: 0.83rem; color: var(--ink-2); }
.hp-field { position: absolute; left: -9999px; }
.field-row { display: grid; gap: 0.85rem; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }

fieldset.kf { border: 0; padding: 0; margin: 0 0 1.8rem; }
fieldset.kf > legend {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--green-text); padding: 0; margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.6rem;
}
fieldset.kf > legend .step { display: inline-grid; place-items: center; width: 26px; height: 26px; clip-path: var(--hex); background: var(--green-soft); color: var(--green-deep); font-size: 0.76rem; }
.opt-grid { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.opt {
  position: relative; display: inline-flex; align-items: center; gap: 0.45rem;
  border: 1px solid var(--line-2); background: #fff; border-radius: 100px;
  padding: 0.4rem 0.9rem; font-size: 0.9rem; cursor: pointer; font-weight: 500;
}
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt:hover { border-color: var(--green); }
.opt:has(input:checked) { background: var(--green-soft); border-color: var(--green); color: var(--green-deep); font-weight: 600; }
.opt:has(input:focus-visible) { outline: 3px solid var(--green-btn); outline-offset: 2px; }
.opt-label { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-2); display: block; margin: 0.9rem 0 0.4rem; }

@media (min-width: 700px) { .kf-side { position: sticky; top: 92px; } }
.kf-summary {
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem; margin-bottom: 1.5rem;
  font-family: var(--mono); font-size: 0.84rem; line-height: 1.8; color: var(--ink-2);
}
.kf-summary b { color: var(--ink); font-weight: 500; }
.kf-summary .empty { color: var(--ink-2); font-style: italic; }

/* ── Timeline ──────────────────────────────────────── */
ul.timeline { list-style: none; padding: 0; margin: 0 0 1.5rem; }
ul.timeline li { position: relative; padding: 0 0 1.1rem 2.6rem; border-left: 1px solid var(--line-2); margin-left: 0.5rem; }
ul.timeline li::before { content: ''; position: absolute; left: -6px; top: 0.5rem; width: 11px; height: 11px; clip-path: var(--hex); background: var(--green); }
ul.timeline li:last-child { border-left-color: transparent; }
ul.timeline .year { display: block; font-family: var(--mono); font-size: 0.78rem; color: var(--green-text); letter-spacing: 0.05em; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.9rem; }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.gallery figcaption { font-size: 0.8rem; color: var(--ink-2); padding: 0.5rem 0.7rem; }

.branchen { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.branchen li { display: flex; align-items: center; gap: 0.55rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem 0.9rem 0.5rem 0.5rem; font-size: 0.9rem; font-weight: 500; }
.branchen li::before { content: ''; width: 16px; height: 16px; clip-path: var(--hex); background: var(--green); flex: 0 0 auto; }

/* ── Footer ────────────────────────────────────────── */
footer.site { background: var(--graphite); color: #b9c4bc; margin-top: 0; padding-top: 2.8rem; }
footer.site .wrap { display: grid; gap: 2rem; }
@media (min-width: 780px) { footer.site .wrap { grid-template-columns: repeat(3, 1fr); } }
footer.site h4 { color: #fff; font-size: 0.8rem; font-family: var(--mono); letter-spacing: 0.11em; text-transform: uppercase; margin-bottom: 0.9rem; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; font-size: 0.9rem; }
footer.site a { color: #dbe4dd; text-decoration: none; }
footer.site a:hover { color: #86cf80; text-decoration: underline; }
.footer-legal { border-top: 1px solid #313b3e; margin-top: 2.4rem; padding: 1rem 0 1.4rem; font-size: 0.85rem; }
.footer-legal .wrap { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-legal .sister { margin-left: auto; }

/* ── Sticky Mobile-CTA ─────────────────────────────── */
.sticky-cta { display: none; }
@media (max-width: 780px) {
  .sticky-cta {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 55; display: flex;
    border-top: 1px solid var(--line); background: rgba(255,255,255,0.97); backdrop-filter: blur(8px);
  }
  .sticky-cta a { flex: 1; text-align: center; padding: 0.85rem 0.5rem; font-weight: 600; font-size: 0.95rem; text-decoration: none; }
  .sticky-cta .call { color: var(--ink); border-right: 1px solid var(--line); }
  .sticky-cta .ask { background: var(--green-btn); color: #fff; }
  body { padding-bottom: 3.4rem; }
}

/* ── Mobile-Navigation ─────────────────────────────── */
@media (max-width: 980px) {
  nav.main {
    position: fixed; inset: 0 0 0 28%; background: var(--white);
    flex-direction: column; gap: 0; padding: 5rem 1.5rem 2rem;
    transform: translateX(100%); transition: transform 0.22s ease;
    box-shadow: -8px 0 30px rgba(0,0,0,0.15); z-index: 58;
  }
  nav.main a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  #menu-toggle:checked ~ nav.main { transform: translateX(0); }
  .burger {
    display: grid; gap: 5px; margin-left: auto; cursor: pointer; padding: 0.5rem; z-index: 59;
  }
  .burger span { display: block; width: 24px; height: 2px; background: var(--ink); }
  .cta-desktop { display: none; }
  .topbar .addr { display: none; }
}
@media (min-width: 981px) { .burger { display: none; } }

/* ── 404 ───────────────────────────────────────────── */
.err { text-align: center; padding: 5rem 0; }
.err .code { font-family: var(--mono); font-size: 4rem; color: var(--green); line-height: 1; }
