/* Introlux – Basis-Stylesheet. Mobile first, ohne Framework. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #1f2a30;
  --ink-soft: #4a565d;
  --muted: #6b767c;
  --line: #dcdfdc;
  --bg: #f7f6f2;
  --surface: #ffffff;
  --dark: #1f2a30;
  --dark-2: #2b373e;
  --accent: #d8892b;
  --accent-ink: #1f2a30;
  --accent-soft: #f5e6d1;
  --ok: #2f7a4f;
  --err: #b3261e;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo", "Inter", system-ui, sans-serif;

  --radius: 6px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --maxw: 72rem;
  --space: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: 3.5rem; /* Platz für die mobile Leiste */
}
@media (min-width: 60rem) { body { padding-bottom: 0; } }

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 42rem; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-dark { background: var(--dark); color: #e9ecea; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .8rem;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--surface); padding: .6rem 1rem; }
.skip-link:focus { top: 1rem; }

/* Offene Punkte aus dem Build sichtbar markieren */
mark.todo { background: #fff2a8; color: #5a4600; padding: 0 .2em; border-radius: 3px; font-weight: 500; }

/* Buttons */
[hidden] { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .7rem 1.4rem;
  font: 600 1rem/1.2 var(--font); text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sm { min-height: 2.5rem; padding: .45rem 1rem; font-size: .95rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #c4771c; color: var(--accent-ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(247, 246, 242, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font: 800 1.25rem/1 var(--font-display); letter-spacing: .08em; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { width: 1.9rem; height: 1.9rem; }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; background: none; border: 0; cursor: pointer; color: var(--ink); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 1.5rem; height: 2px; background: currentColor; position: relative; transition: transform .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.main-nav { display: none; }
.main-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: .5rem var(--gutter) 1.5rem;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li a { display: block; padding: .8rem 0; text-decoration: none; font-weight: 550; border-bottom: 1px solid var(--line); }
.main-nav a[aria-current="page"] { color: var(--accent); }
.nav-actions { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.2rem; }
.nav-phone { font-weight: 650; text-decoration: none; white-space: nowrap; }

@media (min-width: 60rem) {
  .nav-toggle { display: none; }
  .main-nav, .main-nav.is-open {
    display: flex; align-items: center; gap: 2rem;
    position: static; padding: 0; background: none; border: 0;
  }
  .main-nav ul { display: flex; gap: 1.6rem; }
  .main-nav li a { padding: .4rem 0; border: 0; font-size: .98rem; }
  .main-nav li a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); color: var(--ink); }
  .nav-actions { flex-direction: row; align-items: center; margin: 0; gap: 1.2rem; }
}

.breadcrumb { padding-top: 1.2rem; font-size: .9rem; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.breadcrumb a { text-decoration: none; }

/* Hero */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-bottom: 2rem; }
.hero-visual { border-radius: var(--radius); overflow: hidden; background: var(--dark); aspect-ratio: 4 / 5; max-height: 34rem; width: 100%; }
.hero-visual svg { width: 100%; height: 100%; }

.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem); }
.page-hero h1 { max-width: 22ch; }

.trust-bar { background: var(--dark); color: #fff; }
.trust-list {
  list-style: none; margin: 0; padding: 1.4rem 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem 2rem;
}
.trust-list li { display: flex; align-items: baseline; gap: .6rem; font-size: .98rem; color: #d6dcd9; }
.trust-list strong { font: 750 1.5rem/1 var(--font-display); color: var(--accent); }

/* Karten und Raster */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card .link-arrow { margin-top: auto; padding-top: 1rem; }
a.card { text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); color: inherit; transform: translateY(-2px); }
.card-num { font: 750 .85rem/1 var(--font-display); color: var(--accent); letter-spacing: .1em; margin-bottom: 1rem; }

.path-card { padding: 0; overflow: hidden; }
.path-card .card-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.path-card .media { aspect-ratio: 16 / 10; }
.product-card { padding: 0; overflow: hidden; }
.product-card .media { aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); }
.product-card .media img { object-fit: contain; }
.product-card .card-body { padding: 1.3rem 1.4rem 1.5rem; }

/* Bild-Platzhalter, bis echte Baustellenfotos vorliegen */
.media { position: relative; background: #dfe2de; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.placeholder {
  display: grid; place-items: center;
  background:
    linear-gradient(135deg, transparent 49.5%, rgba(31,42,48,.08) 49.5%, rgba(31,42,48,.08) 50.5%, transparent 50.5%),
    linear-gradient(45deg, transparent 49.5%, rgba(31,42,48,.08) 49.5%, rgba(31,42,48,.08) 50.5%, transparent 50.5%),
    #e4e6e2;
}
.media.placeholder::after {
  content: attr(data-label);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  background: rgba(255,255,255,.9); color: var(--ink-soft);
  padding: .35rem .7rem; border-radius: 99px; margin: 1rem; text-align: center;
}

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.steps li { counter-increment: step; border-top: 3px solid var(--accent); padding-top: 1.2rem; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 750 1rem/1 var(--font-display); color: var(--accent); margin-bottom: .8rem; letter-spacing: .08em; }
.steps h3 { font-size: 1.15rem; }
.section-dark .steps p { color: #c3cbc7; }

/* Split-Layout */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; } .split-reverse > :first-child { order: 2; } }
.split .media { aspect-ratio: 4 / 3; border-radius: var(--radius); }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist li { position: relative; padding-left: 1.8rem; margin-bottom: .6rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .5em; width: .9rem; height: .5rem; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 2rem; }
.facts > div { background: var(--surface); padding: 1.1rem 1.2rem; }
.facts dt { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.facts dd { margin: .2rem 0 0; font-weight: 650; }

.note { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 1.1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.note p:last-child { margin: 0; }
.small { font-size: .9rem; color: var(--muted); }

/* Tabellen */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 1rem; }
table { border-collapse: collapse; width: 100%; min-width: 40rem; font-size: .95rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--dark); color: #fff; font-weight: 600; }
tbody th { font-weight: 600; background: #fafaf8; }
tbody tr:last-child > * { border-bottom: 0; }

/* Prosa (Ratgeber, Rechtliches) */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 2rem; }
.toc ol { margin: .5rem 0 0; }

/* Referenzen */
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter button {
  font: 600 .95rem/1 var(--font); padding: .7rem 1.1rem; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.filter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-desc { color: var(--muted); margin: -1rem 0 2rem; min-height: 1.6em; }
.ref-card { padding: 0; overflow: hidden; }
.ref-card .media { aspect-ratio: 4 / 3; }
.ref-card .card-body { padding: 1.3rem 1.4rem 1.5rem; }
.ref-meta { font-size: .85rem; color: var(--muted); margin-bottom: .4rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; background: var(--accent-soft); color: #7a4a10; padding: .2rem .55rem; border-radius: 3px; }
.draft-banner { background: #fff2a8; color: #5a4600; padding: .8rem var(--gutter); text-align: center; font-weight: 600; font-size: .95rem; }
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.gallery .media { aspect-ratio: 4 / 3; border-radius: var(--radius); }

/* Formular */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem); }
.form-grid { display: grid; gap: 1.1rem 1.25rem; }
@media (min-width: 40rem) { .form-grid { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; }
.hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid #b9bfbb; border-radius: var(--radius); padding: .7rem .85rem;
}
input[type="file"] { font: inherit; font-size: .95rem; max-width: 100%; }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.choice-row { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding-top: .3rem; }
.choice { display: inline-flex; align-items: flex-start; gap: .5rem; font-weight: 500 !important; cursor: pointer; }
.choice input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; accent-color: var(--accent); flex: none; }
.consent { font-size: .95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.form-footer .hint { margin: 0; }
.form-status { margin: 1.2rem 0 0; padding: 1rem 1.2rem; border-radius: var(--radius); font-weight: 550; }
.form-status.is-ok { background: #e4f2e9; color: var(--ok); }
.form-status.is-err { background: #fbe9e7; color: var(--err); }
.form button[disabled] { opacity: .6; cursor: wait; }

.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 60rem) { .contact-grid { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact-list a { font-weight: 650; font-size: 1.1rem; text-decoration: none; }

/* Maß-Rechner */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 1rem; }
.calc output { display: block; font: 750 1.4rem/1.2 var(--font-display); color: var(--ink); }

/* CTA-Band */
.cta-band { background: var(--dark); color: #dfe4e1; }
.cta-band h2 { color: #fff; }
.cta-inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 56rem) { .cta-inner { grid-template-columns: 1fr auto; } }
.cta-band p { margin: 0; font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Footer */
.site-footer { background: #172025; color: #b8c1bd; font-size: .95rem; padding-top: 3.5rem; }
.site-footer a { color: #e3e8e5; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); padding-bottom: 2.5rem; }
.footer-brand { font: 800 1.2rem/1 var(--font-display); letter-spacing: .08em; color: #fff; }
.footer-head { font-weight: 650; color: #fff; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-newsletter { display: grid; gap: 1rem 2rem; border-top: 1px solid #2c383e; padding-block: 2rem; }
@media (min-width: 52rem) { .footer-newsletter { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.footer-newsletter p { margin: 0; }
.newsletter-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .8rem; }
.newsletter-row input { flex: 1 1 14rem; min-width: 0; }
.newsletter-form .consent { font-size: .9rem; }
.site-footer .newsletter-form .consent a { text-decoration: underline; }
.newsletter-status { margin-top: .8rem !important; font-weight: 550; }
.newsletter-status.is-err { color: #f2a59e; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid #2c383e; padding-block: 1.4rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 1.5rem; }

/* Mobile Schnellkontakt-Leiste */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr 1.2fr;
  background: var(--dark); border-top: 1px solid #34424a;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile-bar a { color: #fff; text-decoration: none; text-align: center; font-weight: 600; padding: 1rem .5rem; font-size: .95rem; }
.mobile-bar a + a { border-left: 1px solid #34424a; }
.mobile-bar .mobile-bar-cta { background: var(--accent); color: var(--accent-ink); }
@media (min-width: 60rem) { .mobile-bar { display: none; } }

.error-page { min-height: 50vh; display: grid; place-items: center; text-align: center; }

.ref-tile { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.section-more { margin-top: 2rem; }
.mt-0 { margin-top: 0; }
.figure { margin: 1.5rem 0; }
.figure .media { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.figure figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }
a.media { display: block; }
a.media img { transition: transform .3s; }
a.media:hover img { transform: scale(1.03); }

/* Partner */
.partner-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.partner img { display: block; height: 3.5rem; width: auto; max-width: 100%; object-fit: contain; object-position: left center; margin-bottom: 1.25rem; }
.partner h2 { font-size: 1.1rem; margin-bottom: .4rem; }
.partner-note { margin-top: 2rem; font-size: .85rem; color: var(--muted); }

/* Karte (2-Klick) */
.map-consent { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1.1rem 1.3rem; margin: 1.5rem 0; }
.map-consent .btn { margin-right: 1rem; }
.map-consent.is-loaded { padding: 0; overflow: hidden; }
.map-consent iframe { display: block; width: 100%; height: 320px; border: 0; }

/* Matomo-Widerspruch (Datenschutz) */
.optout { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1.1rem 1.3rem; margin: 1rem 0 1.5rem; }
.optout-status { margin: 0 0 .75rem; font-weight: 600; }

/* Farbmuster (Produkte › Farben und Dekore) */
.swatch-head { margin: 2rem 0 1rem; font-size: 1.1rem; }
.swatch-head:first-of-type { margin-top: 0; }
.swatch-head span { color: var(--muted, #6b6f6a); font-weight: 500; }
.swatches { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.5rem), 1fr)); }
.swatches li { margin: 0; font-size: .85rem; line-height: 1.3; }
.swatches img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: .45rem; }
.swatches strong { display: block; font-weight: 650; }
.swatches span { display: block; color: var(--muted, #6b6f6a); font-size: .75rem; overflow-wrap: anywhere; }

/* Profilsysteme als Kacheln (Fenster, Startseite) */
.sys-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
.sys-group { margin: 0 0 1rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sys-grid + .sys-group { margin-top: 2.25rem; }
.sys-card { padding: 1.3rem 1.4rem 1.4rem; }
.sys-brand { font: 750 .8rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.sys-card h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.sys-specs { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.sys-specs li { margin: 0; font-size: .78rem; font-weight: 600; background: var(--accent-soft); color: #7a4a10; padding: .18rem .5rem; border-radius: 3px; }
.sys-card p { font-size: .92rem; color: var(--muted); }
.nowrap { white-space: nowrap; }
.byline { font-size: .9rem; color: var(--ink-soft); margin: -.5rem 0 1.5rem; }
.faq h3 { margin-top: 1.5rem; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* Anfrage in Schritten */
.step { border: 0; margin: 0 0 1.5rem; padding: 0; min-width: 0; }
.form-steps.is-stepped .step { margin-bottom: 0; }
.step-title { font: 700 1.15rem/1.3 var(--font-display); padding: 0; margin-bottom: .4rem; }
.step-sub { margin-top: 1.4rem; font-size: 1rem; }
.step-progress { list-style: none; display: flex; gap: .5rem; margin: 0 0 1.5rem; padding: 0; counter-reset: step; font-size: .88rem; color: var(--muted); }
.step-progress li { flex: 1; counter-increment: step; padding-top: .55rem; border-top: 3px solid var(--line); font-weight: 600; }
.step-progress li::before { content: counter(step) ". "; }
.step-progress li.is-current { border-color: var(--accent); color: var(--ink); }
.step-progress li.is-done { border-color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .6rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: .6rem 1rem; border: 1px solid #b9bfbb; border-radius: 999px;
  background: #fff; font-weight: 550; font-size: .95rem; transition: background .15s, border-color .15s;
}
.chip:hover span { border-color: var(--accent); }
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: #6b3f0b; }
.chip input:checked + span::before { content: "✓ "; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Kacheln im Anfrageformular */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-top: .8rem; }
@media (min-width: 40rem) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { position: relative; cursor: pointer; }
.tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tile span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center;
  min-height: 6.2rem; padding: .8rem .5rem; border: 1px solid #b9bfbb; border-radius: var(--radius);
  background: #fff; font-weight: 600; font-size: .92rem; line-height: 1.25; transition: background .15s, border-color .15s;
}
.tile svg { width: 2rem; height: 2rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--ink-soft); }
.tile:hover span { border-color: var(--accent); }
.tile input:checked + span { background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tile input:checked + span svg { color: #6b3f0b; }
.tile input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-more { border: 1px solid var(--line); border-radius: var(--radius); padding: .2rem 1rem; background: #fff; }
.form-more summary { cursor: pointer; font-weight: 600; padding: .8rem 0; }
.form-more[open] summary { margin-bottom: .4rem; }
.form-more .form-grid { padding-bottom: 1rem; }
select {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #b9bfbb; border-radius: var(--radius); padding: .7rem .85rem;
}
select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }

/* Mega-Menü Produkte */
.has-mega { position: relative; }
.mega-toggle {
  position: absolute; right: 0; top: .35rem; width: 2.6rem; height: 2.6rem;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.mega-toggle::before {
  content: ""; display: block; width: .55rem; height: .55rem; margin: auto;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
.mega-toggle[aria-expanded="true"]::before { transform: rotate(-135deg); }
.mega { display: none; }
.has-mega.is-open > .mega { display: block; padding: .3rem 0 1rem; }
.main-nav .mega ul { display: block; }
.main-nav .mega li a { border: 0; padding: .35rem 0; font-weight: 500; font-size: .95rem; box-shadow: none; }
.mega small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.mega strong { font-weight: 700; }
.mega-head { margin: .9rem 0 .2rem; font-weight: 700; }
.mega-head a { text-decoration: none; }
.mega-sub { margin: .6rem 0 .1rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mega-more { margin: .5rem 0 0; font-size: .92rem; }
.mega-cta { display: none; }

@media (min-width: 60rem) {
  .has-mega { position: static; padding-right: 1.1rem; }
  .mega-toggle { top: 50%; width: 1.4rem; height: 1.4rem; transform: translateY(-50%); }
  .mega-toggle::before { width: .4rem; height: .4rem; border-width: 1.5px; }
  .site-header .main-nav > ul > .has-mega { display: flex; align-items: center; position: relative; }
  .mega {
    position: fixed; left: 0; right: 0; top: 4.25rem; z-index: 55;
    background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(31, 42, 48, .35);
  }
  .mega::before { content: ""; position: absolute; left: 0; right: 0; top: -1.6rem; height: 1.6rem; }
  .has-mega:hover > .mega, .has-mega:focus-within > .mega, .has-mega.is-open > .mega { display: block; padding: 0; }
  .mega-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-block: 1.8rem 2rem; }
  .mega-sys { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
  .mega-head { margin-top: 0; font: 700 1.05rem/1.3 var(--font-display); }
  .mega-col > ul + .mega-head { margin-top: 1.4rem; }
  .main-nav .mega li a:hover strong, .main-nav .mega li a:hover { color: var(--accent); }
  .mega-cta { display: block; background: var(--bg); border-radius: var(--radius); padding: 1.4rem; align-self: start; }
  .mega-cta-title { font: 700 1.05rem/1.3 var(--font-display); margin-bottom: .5rem; }
  .mega-cta p { font-size: .92rem; color: var(--ink-soft); }
  .mega-phone { display: block; margin-top: .9rem; font-weight: 650; text-decoration: none; }
}
/* Kategorietitel im Mega-Menü deutlich absetzen */
.mega-head { font: 800 1.12rem/1.3 var(--font-display) !important; padding-bottom: .4rem; border-bottom: 2px solid var(--accent); }
.mega-head a { color: var(--ink); }
.mega-col > ul + .mega-head { margin-top: 2rem !important; }

/* Handy: lange deutsche Komposita umbrechen statt über den Rand laufen */
h1, h2, h3, .step-title, .mega-head, dt, th { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 30rem) {
  h1 { font-size: 1.9rem; }
  /* Mega-Menü auf dem Handy: größere Tippflächen */
  .main-nav .mega li a { padding: .6rem 0; }
  .mega-toggle { width: 3rem; height: 3rem; top: .2rem; }
}

/* Galerie-Miniaturen (Referenzen, Systeme) */
.gallery { grid-template-columns: repeat(auto-fill, minmax(min(46%, 11rem), 1fr)); gap: .6rem; }
.lb-zoom { cursor: zoom-in; }

/* Lightbox */
html.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(16, 22, 25, .94);
  display: flex; align-items: center; justify-content: center; padding: 3.5rem 4rem 4.5rem;
}
.lightbox[hidden] { display: none !important; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .8rem; max-width: 100%; max-height: 100%; }
.lb-img { max-width: 100%; max-height: calc(100vh - 9rem); max-height: calc(100dvh - 9rem); object-fit: contain; border-radius: 3px; background: #2a3439; }
.lb-caption { color: #d6dcd9; font-size: .95rem; text-align: center; max-width: 60rem; }
.lb-count { position: absolute; top: 1rem; left: 1.2rem; margin: 0; color: #aab4b0; font-size: .9rem; font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute; width: 3rem; height: 3rem; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 2rem; line-height: 1; display: grid; place-items: center;
}
.lb-btn:hover, .lb-btn:focus-visible { background: var(--accent); color: var(--accent-ink); outline: none; }
.lb-close { top: .7rem; right: .9rem; font-size: 1.8rem; }
.lb-prev { left: .7rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .7rem; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next, .lightbox.is-single .lb-count { display: none; }
@media (max-width: 40rem) {
  .lightbox { padding: 3.5rem .5rem 5rem; }
  .lb-prev, .lb-next { top: auto; bottom: .9rem; transform: none; }
  .lb-prev { left: calc(50% - 3.6rem); }
  .lb-next { right: calc(50% - 3.6rem); }
}

/* Kennwerte in Produktkarten (Terrassensysteme) */
.spec { margin: .8rem 0 1rem; display: grid; gap: .45rem; }
.spec > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .8rem; font-size: .92rem; border-bottom: 1px solid var(--line); padding-bottom: .45rem; }
.spec dt { color: var(--muted); font-weight: 600; }
.spec dd { margin: 0; }
@media (max-width: 30rem) { .spec > div { grid-template-columns: 1fr; gap: .1rem; } }
.media-text { display: grid; place-items: center; background: var(--bg) !important; }
.media-text span { font: 700 1.3rem/1.2 var(--font-display); color: var(--muted); }

/* Schiebe-Schemata (Terrassensysteme) */
.schemes { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin: 1.2rem 0; }
.schemes figure { margin: 0; display: grid; gap: .6rem; }
.schemes svg { width: 100%; max-width: 22rem; height: auto; }
.schemes figcaption { font-size: .92rem; color: var(--ink-soft); }
.sch-frame { fill: none; stroke: var(--ink); stroke-width: 3; }
.sch-fix { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.sch-x { stroke: var(--line); stroke-width: 1.2; fill: none; }
.sch-move { fill: var(--accent-soft); stroke: var(--ink); stroke-width: 1.5; }
.sch-arrow { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Modellgalerie Haustüren */
.door-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(46%, 12.5rem), 1fr)); }
.door-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.door-card[hidden] { display: none !important; }
.door-img { background: #f1f1ee; aspect-ratio: 46 / 84; }
.door-img img { width: 100%; height: 100%; object-fit: contain; }
.door-card figcaption { padding: .8rem .9rem 1rem; font-size: .85rem; }
.door-card strong { font: 700 1rem/1.2 var(--font-display); display: block; margin-bottom: .4rem; }
.door-spec { margin: 0; display: grid; gap: .3rem; }
.door-spec dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.door-spec dd { margin: 0; }
.model-block { margin-top: 2.5rem; scroll-margin-top: 5.5rem; }
.model-block[hidden] { display: none !important; }
.model-head { margin-bottom: 1.4rem; max-width: 62ch; }
.model-head h2 { margin: .5rem 0 .4rem; }
.model-head p { color: var(--ink-soft); }
.system-pick h3 { margin: .6rem 0 .4rem; }
.scheme-table td { text-align: center; }
.scheme-table td[colspan] { color: var(--muted); font-size: .9rem; }
.door-filter { display: grid; gap: .2rem; }
.door-filter .filter { margin-bottom: .6rem; }
.door-filter .filter-label { align-self: center; font-weight: 600; margin-right: .2rem; }
.door-filter .filter-desc { margin: .2rem 0 1rem; }
.door-more { margin-top: 1.5rem; }
.model-block { margin-top: 1.2rem; }

/* Hero-Hinweis, Kachel-Beschriftung, System-Schnellwahl, WhatsApp im Kopf */
.hero-note { margin: 1rem 0 0; font-size: .95rem; font-weight: 600; color: var(--ink-soft); }
.hero .btn-primary { box-shadow: 0 2px 0 #a8651a; }
.hero .btn-ghost { border-width: 2px; }
.ref-tile { position: relative; overflow: hidden; }
.ref-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .9rem .7rem; color: #fff; font-size: .88rem; font-weight: 600; background: linear-gradient(transparent, rgba(16,22,25,.82)); }
.sys-guide { margin-bottom: 2rem; }
.sys-guide h3 { font-size: 1.05rem; }
.sys-guide p { font-size: .92rem; margin: 0; }
.nav-wa { font-weight: 650; text-decoration: none; white-space: nowrap; }
.sys-card-top { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.sys-card-top .tag { margin-bottom: .6rem; background: var(--accent); color: var(--accent-ink); }

/* Farbmuster Abstandhalter, Hinweis warme Kante */
.swatches { list-style: none; margin: 1.5rem 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 1rem; }
.swatches li { display: flex; flex-direction: column; gap: .5rem; font-weight: 600; font-size: .95rem; }
.sw { display: block; height: 3.2rem; border-radius: var(--radius); border: 1px solid #b9bfbb; }
.sw-weiss { background: #ffffff; } .sw-hellgrau { background: #b7bcbf; } .sw-grau { background: #9c9fa8; }
.sw-beige { background: #c9b8a4; } .sw-braun { background: #975a3b; } .sw-dunkelbraun { background: #744741; } .sw-schwarz { background: #414449; }
.wk-note { padding-block: 2rem; }
.wk-card { border-color: var(--accent); max-width: 52rem; }
.wk-card h3 { margin-top: .6rem; }
