/* Grundlagen */
html, body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.privacy-note { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.privacy-note a { color: inherit; }
button[disabled] { opacity: .6; cursor: wait; }
/* Rechtstexte */
.legal-page { padding-block: 72px 96px; }
.legal-page .wrap { max-width: 760px; }
.legal-page h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; margin-bottom: 32px; }
.legal-page h2 { font-size: 21px; margin: 36px 0 10px; }
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page p + p { margin-top: 10px; }
.legal-page ul { padding-left: 20px; margin: 10px 0 0; }
.legal-page strong { color: var(--fg); }
.back { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 28px; font-weight: 600; text-decoration: none; color: var(--fg); }
.back:hover { color: var(--amber); }
/* Layout: nach "Landingpage – Desktop 1440" – Foto-Hero mit Kennzahlen, Referenzband, Vorteile, Produktkarten, Zubehör, dunkle Ablauf-Sektion, Anfrage */
:root {
  --amber: #f2a33a;
  --amber-ink: #1a1408;
  --ink: #15171b;
  --paper: #ffffff;
  --sand: #f3f2ee;
  --card: #f3f2ee;
  --card-2: #ffffff;
  --fg: #1b1d22;
  --muted: #5d616a;
  --line: #e2e0da;
  --field: #fafaf8;
  --chip: #f3f2ee;
  --logo-filter: none;
  --ref-bg: transparent;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255,255,255,.74);
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #0c0d10; --paper: #131519; --sand: #1a1c21; --card: #1f2227; --card-2: #22252b;
    --fg: #ecebe6; --muted: #a3a6ad; --line: #30333a; --field: #16181c; --chip: #2a2d33;
    --logo-filter: brightness(0) invert(.93); --ref-bg: #f3f2ee;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #0c0d10; --paper: #131519; --sand: #1a1c21; --card: #1f2227; --card-2: #22252b;
  --fg: #ecebe6; --muted: #a3a6ad; --line: #30333a; --field: #16181c; --chip: #2a2d33;
  --logo-filter: brightness(0) invert(.93); --ref-bg: #f3f2ee;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (max-width: 560px) { html { scroll-padding-top: 72px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--paper); color: var(--fg); font-family: var(--f-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; text-wrap: balance; letter-spacing: -.015em; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.section { padding-block: 104px; }
.sand { background: var(--sand); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 700; }
.lead { color: var(--muted); font-size: 18px; max-width: 58ch; }
.head { display: grid; gap: 14px; }
.kicker-plain { text-transform: none; letter-spacing: .02em; font-size: 16px; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 16px/1 var(--f-body); padding: 17px 28px; border-radius: 4px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: var(--amber-ink); }
.btn-amber:hover { background: #f5b257; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn svg, .more svg { width: 16px; height: 16px; flex: none; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.more:hover { color: var(--amber); }

/* Navigation */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 88px; }
.logo img { height: 52px; width: auto; filter: var(--logo-filter); }
.nav-links { display: flex; gap: 36px; margin-left: 64px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--amber); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav-tel { font-weight: 600; font-size: 15px; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.nav-tel svg { width: 15px; height: 15px; color: #d64230; }
.nav .btn { background: var(--fg); color: var(--paper); padding: 13px 20px; font-size: 14px; }
.theme-toggle { width: 42px; height: 42px; display: grid; place-items: center; background: transparent; color: var(--fg); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; transition: border-color .15s, color .15s; }
.theme-toggle:hover { border-color: var(--amber); color: var(--amber); }
.theme-toggle svg { width: 18px; height: 18px; grid-area: 1 / 1; }
.theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ic-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .ic-moon { display: none; }
}

/* Hero */
.hero { position: relative; color: var(--on-dark); background: #101216 url("../img/hero.jpg") center 62% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(10,11,14,.86) 0%, rgba(10,11,14,.62) 42%, rgba(10,11,14,.18) 75%),
  linear-gradient(0deg, rgba(10,11,14,.7) 0%, rgba(10,11,14,0) 38%); }
.hero .wrap { position: relative; }
.hero-copy { padding-block: 112px 0; max-width: 760px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; font-weight: 800; margin-top: 18px; }
.hero .sub { font-size: 20px; color: rgba(255,255,255,.88); margin-top: 28px; max-width: 46ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-block: 118px 64px; }
.stat { border-top: 3px solid var(--amber); padding-top: 18px; }
.stat b { display: block; font: 700 30px/1.15 var(--f-display); }
.stat span { color: var(--on-dark-muted); font-size: 15px; }

/* Referenzen */
.refs { padding-block: 40px 44px; }
/* Sprung zu "Referenzen": Logo-Band mittig im sichtbaren Bereich unter der Navigation */
#referenzen { scroll-margin-top: max(88px, calc(50vh - 100px)); }
.refs .label { text-align: center; font-size: 13px; margin-bottom: 26px; }
.ref-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.ref-list li { flex: 0 0 calc((100% - 4 * 16px) / 5); display: grid; place-items: center; height: 76px; background: var(--ref-bg); border-radius: 4px; padding: 6px 16px; }
.ref-list img { max-height: 62px; width: auto; object-fit: contain; mix-blend-mode: multiply; }

/* Vorteile */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.why { background: var(--card); border-radius: 8px; padding: 32px 28px; display: grid; align-content: start; gap: 14px; }
.num { justify-self: start; background: var(--amber); color: var(--amber-ink); font: 700 14px/1 var(--f-display); padding: 7px 10px; border-radius: 3px; }
.why h3 { font-size: 21px; line-height: 1.22; font-weight: 700; }
.why p { color: var(--muted); font-size: 15px; }

/* Produkte */
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.product { background: var(--card-2); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.product img { width: 100%; aspect-ratio: 282 / 200; object-fit: cover; background: #fff; }
.product .body { padding: 24px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product h3 { font-size: 21px; font-weight: 700; }
.product p { color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 12px; font-weight: 500; background: var(--chip); padding: 5px 8px; white-space: nowrap; border-radius: 3px; font-variant-numeric: tabular-nums; }
.product .more { margin-top: auto; padding-top: 18px; font-size: 15px; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.notes li { display: flex; gap: 8px; }
.notes li::before { content: "*"; color: var(--amber); font-weight: 700; }
.callout { margin-top: 32px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: var(--card-2); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 6px; padding: 20px 24px; }
.callout p { flex: 1 1 420px; min-width: 0; color: var(--muted); font-size: 15px; }
.callout b { color: var(--fg); }
.callout-tag { flex: none; background: var(--amber); color: var(--amber-ink); font: 700 13px/1 var(--f-display); letter-spacing: .02em; padding: 8px 12px; border-radius: 3px; }

/* Zubehör */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split > * { min-width: 0; }
.split-top { align-items: start; }
.frame-img { background: #fff; border-radius: 8px; padding: 24px; }
.ticks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 14px; align-items: baseline; font-size: 17px; }
.ticks li::before { content: ""; width: 10px; height: 10px; background: var(--amber); border-radius: 2px; flex: none; transform: translateY(-1px); }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 16px; }
.swatch { display: grid; gap: 8px; align-content: start; font-size: 13px; color: var(--muted); line-height: 1.3; }
.sonder { margin: 36px 0 0; display: grid; gap: 12px; }
.sonder-img { background: #e8e8e8; border-radius: 8px; padding: 20px 24px; }
.sonder-img img { width: 100%; height: auto; }
.sonder figcaption { font-size: 15px; color: var(--muted); }
.sonder figcaption b { color: var(--fg); }
.forms .forms-cta { margin-top: 36px; }
.forms-fig { margin: 0; display: grid; place-items: center; }
.forms-fig img { width: auto; max-width: 100%; max-height: 520px; height: auto; filter: var(--logo-filter); }
@media (max-width: 860px) { .forms-fig img { max-width: min(100%, 320px); } }
.swatch img { width: 100%; aspect-ratio: 101 / 64; object-fit: cover; border-radius: 4px; }

/* Ablauf */
.dark { background: var(--ink); color: var(--on-dark); }
.dark .lead { color: var(--on-dark-muted); }
.steps { list-style: none; padding: 0; margin: 40px 0 0; }
.steps li { display: grid; grid-template-columns: 52px 1fr; padding: 22px 0; border-top: 1px solid var(--line); }
.steps .n { font: 700 20px/1.3 var(--f-display); color: var(--amber); }
.steps h3 { font-size: 20px; font-weight: 700; }
.steps p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.dark-photo { border-radius: 8px; width: 100%; aspect-ratio: 520 / 640; object-fit: cover; object-position: 60% 50%; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1.24fr; gap: 80px; align-items: start; }
.contact > * { min-width: 0; }
.facts { margin-top: 40px; }
.facts div { padding: 16px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font: 700 21px/1.3 var(--f-display); overflow-wrap: anywhere; }
.form { background: var(--card-2); border-radius: 10px; padding: 44px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 16px 40px rgba(21,23,27,.07); }
.form h3 { font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.fields .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea { width: 100%; font: 400 15px/1.4 var(--f-body); color: var(--fg); background: var(--field); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(242,163,58,.2); }
.area { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--sand); border-radius: 6px; padding: 12px 16px; font-size: 14px; color: var(--muted); }
.area b { font: 700 19px/1 var(--f-display); color: var(--fg); font-variant-numeric: tabular-nums; }
.form .btn { width: 100%; justify-content: center; margin-top: 20px; }
.form-error { min-height: 1em; margin-top: 10px; font-size: 14px; color: #c2410c; }
.form-foot { font-size: 13px; color: var(--muted); }
.form-foot a { color: var(--fg); }
.form-foot + .form-foot { margin-top: 6px; }
.field select { width: 100%; }

/* Angebotsfenster */
.modal { width: min(900px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 10px; background: var(--card-2); color: var(--fg); box-shadow: 0 24px 80px rgba(0,0,0,.35); overflow: hidden; overflow: clip; }
.modal[open] { display: flex; flex-direction: column; }
.modal::backdrop { background: rgba(10,11,14,.6); }
.modal-head { flex: none; display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 28px 36px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 26px; font-weight: 700; margin-top: 6px; }
.modal-close { width: 42px; height: 42px; flex: none; display: grid; place-items: center; background: transparent; color: var(--fg); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.modal-close:hover { border-color: var(--amber); color: var(--amber); }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 24px 36px 36px; overscroll-behavior: contain; }
.modal-intro { color: var(--muted); font-size: 15px; }
.modal .btn[type=submit] { width: 100%; justify-content: center; margin-top: 28px; }
.group { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
.group legend { font: 700 18px/1.3 var(--f-display); padding: 0; margin-bottom: 14px; }
.group-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.opt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.opts { display: grid; gap: 6px; align-content: start; }
.opts-inline { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.opts-inline .opts-label { width: 100%; }
.opts-label { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.opts-label small, .opt small { font-weight: 400; color: var(--muted); }
.opts-hint { font-size: 12px; color: var(--muted); }
.opt { display: flex; align-items: center; gap: 10px; font-size: 15px; background: var(--field); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--amber); }
.opt input { accent-color: var(--amber); width: 16px; height: 16px; margin: 0; flex: none; }
.opt:has(input:checked) { border-color: var(--amber); background: rgba(242,163,58,.12); }
.opt:has(input:disabled) { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.opt:has(input:disabled):hover { border-color: var(--line); }
.opt-line { display: flex; flex-wrap: wrap; gap: 10px; }
.color-row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 10px; }
.color-row .opts-label { width: 150px; margin: 0; }
#rahmen-details { margin-top: 14px; align-items: end; }
.measure-fields { display: grid; gap: 16px; }
.upload { position: relative; margin-top: 20px; display: grid; gap: 8px; }
.upload input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.modal form { position: relative; }
.upload-box { display: flex; align-items: center; gap: 16px; background: var(--field); border: 1.5px dashed var(--line); border-radius: 6px; padding: 18px 20px; cursor: pointer; transition: border-color .15s, background .15s; }
.upload-box:hover { border-color: var(--amber); }
.upload input:focus-visible + .upload-box { border-color: var(--amber); outline: 2px solid var(--amber); outline-offset: 3px; }
.upload-box svg { width: 26px; height: 26px; flex: none; color: var(--amber); }
.upload-box span { display: grid; gap: 2px; min-width: 0; }
.upload-box b { font-size: 15px; overflow-wrap: anywhere; }
.upload-box small { font-size: 13px; color: var(--muted); }
.upload.has-file .upload-box { border-style: solid; border-color: var(--amber); background: rgba(242,163,58,.08); }
.angles { margin-top: 16px; }
.angles summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.angles summary:hover { color: var(--amber); }
.angles .fields { margin-top: 12px; }
.fields4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.modal .sent { padding: 40px 8px; }
@media (max-width: 760px) {
  .modal { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .modal-head { padding: 20px 16px 16px; }
  .modal-head h2 { font-size: 22px; line-height: 1.2; }
  .modal-body { padding: 16px 16px 32px; }
  .opt-grid, .fields4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .color-row .opts-label { width: 100%; }
}
.sent { display: grid; gap: 12px; text-align: center; padding: 48px 8px; }
.sent .check { width: 56px; height: 56px; border-radius: 50%; background: var(--amber); color: var(--amber-ink); display: grid; place-items: center; justify-self: center; }
.sent .check svg { width: 26px; height: 26px; }
.sent p { color: var(--muted); }

/* Footer */
.footer { background: var(--ink); color: var(--on-dark); }
.footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-block: 64px 40px; }
.footer .logo img { height: 46px; filter: brightness(0) invert(1); }
.footer h4 { font: 600 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; color: var(--on-dark-muted); }
.footer ul a { text-decoration: none; }
.footer ul a:hover { color: #fff; }
.legal { border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px 28px; font-size: 13px; color: var(--on-dark-muted); }
.legal nav { display: flex; gap: 24px; }
.legal a { text-decoration: none; }

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .cards4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); padding-top: 80px; }
  .ref-list li { flex-basis: calc((100% - 4 * 16px) / 5); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .section { padding-block: 72px; }
  .split, .contact { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { padding-top: 72px; }
  .swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 560px) {
  .nav .wrap { gap: 12px; height: 72px; }
  .logo img { height: 40px; }
  .nav-tel { display: none; }
  .cards4, .fields, .footer .cols { grid-template-columns: 1fr; }
  .ref-list li { flex-basis: calc((100% - 16px) / 2); }
  .stats { gap: 24px 20px; }
  .stat b { font-size: 22px; }
  .form { padding: 28px 20px; }
  .swatches { grid-template-columns: repeat(3, 1fr); }
}
