/* Diergarten Folien — Design-System
   Palette: Folienweiß / Stahl-Anthrazit / VCI-Blau
   Typo: Archivo (variable, wdth) für Text & Display · IBM Plex Mono für Maße und Spezifikationen
   Signatur: Maßlinien wie in der technischen Zeichnung */

:root {
  --ink: #16242e;
  --steel: #52646f;
  --paper: #f4f6f8;
  --white: #ffffff;
  --line: #d9e1e6;
  --tick: #9fb0ba;
  --vci: #0f5fa6;
  --vci-deep: #0b4a82;
  --vci-soft: #e4eef7;
  --ok: #1f7a4d;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  --maxw: 1180px;
  --radius: 3px;
}

*, *::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(--vci); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--vci-deep); }
:focus-visible { outline: 2px solid var(--vci); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; font-weight: 640; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--steel); max-width: 46em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
main { display: block; }
section { padding: 4.5rem 0; }
section.tight { padding: 3rem 0; }
section.on-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Eyebrow: expanded caps — Sektionskennung */
.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 620;
  font-stretch: 118%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vci);
  margin-bottom: 0.9rem;
}

/* Maßangaben immer mono */
.ms, .dim-label, .spec-table td:last-child, .rest-masse, .topbar a, .contact-mono {
  font-family: var(--mono);
  font-size: 0.92em;
  letter-spacing: -0.01em;
}

/* ── Signatur: Maßlinie ───────────────────────────── */
.dim {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--steel);
  margin: 0.5rem 0;
  min-width: 0;
}
.dim .dim-line { flex: 1; height: 1px; background: var(--tick); position: relative; min-width: 14px; }
.dim .dim-line::before, .dim .dim-line::after {
  content: ''; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--tick);
}
.dim .dim-line:first-of-type::after { display: none; }
.dim .dim-line:first-of-type::before { left: 0; }
.dim .dim-line:last-of-type::before { display: none; }
.dim .dim-line:last-of-type::after { right: 0; }
.dim .dim-label { white-space: nowrap; font-size: 0.85rem; color: var(--ink); font-weight: 500; }
.dim .dim-note { font-family: var(--mono); font-size: 0.78rem; white-space: nowrap; color: var(--steel); min-width: 0; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; }
.dim-hero { margin: 2.2rem 0 0; }
.dim-hero .dim-label { font-size: clamp(0.95rem, 2vw, 1.15rem); }

/* ── Header ───────────────────────────────────────── */
.topbar { background: var(--ink); color: #c8d4dc; font-size: 0.82rem; }
.topbar .wrap { display: flex; gap: 1.75rem; justify-content: flex-end; padding-top: 0.4rem; padding-bottom: 0.4rem; }
.topbar a { color: #e8eef2; text-decoration: none; font-size: 0.82rem; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .addr { margin-right: auto; display: none; }
@media (min-width: 760px) { .topbar .addr { display: inline; } }

header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 1.5rem; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo img { height: 40px; width: auto; }
nav.main { display: none; gap: 1.4rem; align-items: center; }
nav.main a { color: var(--ink); text-decoration: none; font-size: 0.98rem; font-weight: 500; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
nav.main a:hover, nav.main a[aria-current] { border-bottom-color: var(--vci); color: var(--vci-deep); }
.btn {
  display: inline-block; background: var(--vci); color: #fff !important;
  font-weight: 600; font-size: 0.98rem; text-decoration: none;
  padding: 0.62rem 1.25rem; border-radius: var(--radius); border: 1px solid var(--vci);
  transition: background 0.15s ease;
  cursor: pointer;
}
.btn:hover { background: var(--vci-deep); }
.btn-ghost { background: transparent; color: var(--vci) !important; border: 1px solid var(--vci); }
.btn-ghost:hover { background: var(--vci-soft); }
.btn-lg { padding: 0.8rem 1.6rem; font-size: 1.05rem; }

#menu-toggle { display: none; }
.burger { display: flex; flex-direction: column; gap: 5px; padding: 0.6rem; cursor: pointer; border: 1px solid var(--line); border-radius: var(--radius); }
.burger span { width: 22px; height: 2px; background: var(--ink); }
@media (min-width: 1000px) {
  nav.main { display: flex; }
  .burger { display: none; }
}
@media (max-width: 999px) {
  #menu-toggle:checked ~ nav.main {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--line); padding: 0.5rem 1.25rem 1rem;
  }
  #menu-toggle:checked ~ nav.main a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  header.site .cta-desktop { display: none; }
}

/* ── Hero ─────────────────────────────────────────── */
.hero { background: var(--white); border-bottom: 1px solid var(--line); padding: 0; overflow: hidden; }
.hero .wrap { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3rem; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; padding-top: 4.5rem; padding-bottom: 2.5rem; } }
.hero h1 { max-width: 13em; }
.hero .lead { margin-bottom: 1.8rem; }
.hero-media { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-media .film {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(244,246,248,0.55) 0%, rgba(244,246,248,0) 28%);
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* Trust-Kacheln */
.trust { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 0.5rem; }
@media (min-width: 700px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust > div { background: var(--white); padding: 1.1rem 1.3rem; }
.trust b { display: block; font-size: 1rem; margin-bottom: 0.15rem; }
.trust span { color: var(--steel); font-size: 0.9rem; }

/* ── Karten ───────────────────────────────────────── */
.grid { display: grid; gap: 1.4rem; }
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--vci); transform: translateY(-2px); }
.card a.card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.card-media { aspect-ratio: 16/9; background: linear-gradient(150deg, #eef3f6 0%, #dfe8ee 55%, #eef3f6 100%); position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .film-ph {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(15,95,166,0.10) 0 33%, transparent 33%),
    linear-gradient(115deg, rgba(15,95,166,0.06) 0 66%, transparent 66%);
}
.card-body { padding: 1.2rem 1.3rem 0.4rem; flex: 1; }
.card-body h3 { margin-bottom: 0.4rem; }
.card-body p { color: var(--steel); font-size: 0.95rem; margin-bottom: 0.8rem; }
.card-foot { padding: 0 1.3rem 1rem; margin-top: auto; }
.card-foot .dim { margin: 0; }
.card-foot .dim .dim-label { font-size: 0.8rem; }
.card-foot .dim .dim-note { font-size: 0.72rem; }

/* ── Spezifikations-Tabelle ───────────────────────── */
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.97rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { font-weight: 600; width: 34%; min-width: 150px; }
.spec-table td:last-child { color: var(--ink); }
.table-scroll { overflow-x: auto; }

/* Vergleichstabelle */
.cmp-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); font-size: 0.95rem; }
.cmp-table th, .cmp-table td { padding: 0.7rem 0.9rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp-table thead th { background: var(--ink); color: #fff; font-weight: 600; }
.cmp-table td:first-child { font-weight: 600; }

/* ── FAQ ──────────────────────────────────────────── */
details.faq {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 0.7rem; padding: 0;
}
details.faq summary {
  cursor: pointer; font-weight: 600; padding: 1rem 1.2rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-family: var(--mono); color: var(--vci); font-size: 1.2rem; flex-shrink: 0; }
details.faq[open] summary::after { content: '–'; }
details.faq .faq-a { padding: 0 1.2rem 1.1rem; color: var(--steel); }
.faq-group-title { margin-top: 2.4rem; }

/* ── Formulare ────────────────────────────────────── */
form.anfrage { display: grid; gap: 1rem; }
@media (min-width: 700px) { form.anfrage.two-col { grid-template-columns: 1fr 1fr; } form.anfrage.two-col .full { grid-column: 1 / -1; } }
label.field { display: block; font-size: 0.9rem; font-weight: 600; }
label.field span.req { color: var(--vci); }
label.field input, label.field textarea, label.field select {
  display: block; width: 100%; margin-top: 0.35rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.65rem 0.8rem; border: 1px solid var(--tick); border-radius: var(--radius); background: var(--white);
}
label.field input:focus, label.field textarea:focus, label.field select:focus { outline: 2px solid var(--vci); outline-offset: 0; border-color: var(--vci); }
.form-hint { font-size: 0.85rem; color: var(--steel); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ── Kontakt-Band ─────────────────────────────────── */
.contact-band { background: var(--ink); color: #dbe5eb; }
.contact-band h2, .contact-band h3 { color: #fff; }
.contact-band a { color: #fff; }
.contact-band .wrap { display: grid; gap: 2rem; }
@media (min-width: 860px) { .contact-band .wrap { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.contact-list li { display: flex; gap: 0.7rem; align-items: baseline; }
.contact-list .k { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #8fa4b1; width: 5.2em; flex-shrink: 0; }

/* ── Restposten ───────────────────────────────────── */
.rest-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); font-size: 0.93rem; }
.rest-table th { background: var(--ink); color: #fff; text-align: left; padding: 0.65rem 0.9rem; font-weight: 600; white-space: nowrap; }
.rest-table td { padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.rest-table tr:last-child td { border-bottom: none; }
.rest-table .rest-masse { white-space: nowrap; }
.rest-table td:first-child { font-family: var(--mono); font-size: 0.85rem; white-space: nowrap; }

/* ── Galerie ──────────────────────────────────────── */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: 0.82rem; color: var(--steel); padding: 0.5rem 0.7rem; }

/* ── Team ─────────────────────────────────────────── */
.team { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .team { grid-template-columns: repeat(3, 1fr); } }
.team .person { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: flex; gap: 0.9rem; align-items: center; }
.person .avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: var(--vci-soft); color: var(--vci-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 640; font-size: 0.95rem;
}
.person b { display: block; }
.person span { color: var(--steel); font-size: 0.88rem; }

/* ── Timeline (Unternehmen) ───────────────────────── */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--tick); }
.timeline li { padding: 0 0 1.6rem 1.5rem; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 0.45em; width: 9px; height: 9px; background: var(--vci); border-radius: 50%; }
.timeline .year { font-family: var(--mono); font-weight: 500; color: var(--vci-deep); display: block; font-size: 0.9rem; }

/* ── Footer ───────────────────────────────────────── */
footer.site { background: var(--ink); color: #b9c8d1; font-size: 0.92rem; margin-top: 0; }
footer.site > .wrap { display: grid; gap: 2rem; padding-top: 3rem; padding-bottom: 1.5rem; }
@media (min-width: 800px) { footer.site > .wrap { grid-template-columns: repeat(3, 1fr); } }
footer.site h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; font-stretch: 115%; margin: 0 0 0.8rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
footer.site a { color: #dbe5eb; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
.footer-legal { border-top: 1px solid #2b3e4b; }
.footer-legal .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 1rem 1.25rem; font-size: 0.82rem; color: #8fa4b1; }
.footer-legal a { color: #b9c8d1; }

/* ── Sticky Mobile-CTA ────────────────────────────── */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: flex; background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(22, 36, 46, 0.08);
}
.sticky-cta a { flex: 1; text-align: center; padding: 0.85rem 0.5rem; font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.sticky-cta a.call { color: var(--ink); }
.sticky-cta a.ask { background: var(--vci); color: #fff; }
@media (min-width: 1000px) { .sticky-cta { display: none; } }
@media (max-width: 999px) { body { padding-bottom: 52px; } }

/* ── Prose (Rechtstexte, Artikel) ─────────────────── */
.prose { max-width: 46em; }
.prose h2 { margin-top: 2.2em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.8em; }

/* Breadcrumb */
.crumbs { font-size: 0.85rem; color: var(--steel); margin: 1.6rem 0 0; }
.crumbs a { color: var(--steel); }
.crumbs span { margin: 0 0.4rem; }

/* Produkt-Detail-Layout */
.product-head { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .product-head { grid-template-columns: 1.1fr 0.9fr; } }
.product-media { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: linear-gradient(150deg, #eef3f6, #dfe8ee); }
.product-media img { width: 100%; object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.5rem; }
.check-list li { padding-left: 1.5rem; position: relative; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

.note-box { background: var(--vci-soft); border-left: 3px solid var(--vci); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.95rem; }
