/* Layout: full-bleed dark bands, split image/text rows, hairline rules — after the Blackout Goods reference mockup. */
:root {
  --bg: #0b0b0a;
  --surface: #121210;
  --line: rgba(233, 228, 218, 0.14);
  --fg: #ece8e1;
  --muted: #9a958b;
  --accent: #b2a691;      /* warm taupe for the second line of headlines */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4.5vw, 64px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.wrap {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- type ---------- */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.h-display {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: "wdth" 112;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
  hyphens: manual;
  overflow-wrap: break-word;
}
.h-xl { font-size: clamp(2.1rem, 5.4vw, 4.4rem); }
.h-lg { font-size: clamp(1.8rem, 3.6vw, 3rem); }
.h-display .soft { color: var(--accent); display: block; }
.lead { color: #cfcac1; max-width: 46ch; margin: 0; }
.rule { width: 28px; height: 1px; background: var(--muted); border: 0; margin: 0; }
.small-caps {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.9; color: #cfcac1;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  border: 1px solid rgba(236, 232, 225, 0.55);
  color: var(--fg);
  background: transparent;
  font: 500 11px/1 var(--body);
  letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn svg { width: 14px; height: 14px; transition: transform .25s; }
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn:hover svg { transform: translateX(3px); }
.btn-solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-solid:hover { background: transparent; color: var(--fg); }

/* ---------- header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(11, 11, 10, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 28px; width: auto; }
.brand span {
  font-weight: 400; font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase;
  font-variation-settings: "wdth" 112; white-space: nowrap;
}
.nav { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav a {
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  color: #cfcac1; padding-block: 6px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--fg); border-color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line); }
.lang button {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font: 500 10.5px/1 var(--body); letter-spacing: 0.16em; padding: 8px 10px;
}
.lang button[aria-pressed="true"] { color: var(--bg); background: var(--fg); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--fg); width: 40px; height: 34px; cursor: pointer; }
.menu-btn span { display: block; width: 16px; height: 1px; background: currentColor; margin: 4px auto; }

/* ---------- hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-media { position: absolute; inset: 0 0 0 38%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(11,11,10,.75) 22%, rgba(11,11,10,.15) 60%, rgba(11,11,10,.35) 100%),
              linear-gradient(0deg, rgba(11,11,10,.6) 0%, transparent 40%);
}
.hero-inner { position: relative; padding-block: clamp(56px, 9vw, 120px) clamp(56px, 8vw, 104px); display: grid; gap: 28px; max-width: 760px; }
.hero .lead { max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tag { position: absolute; right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: 36px; text-align: right; }

/* ---------- split rows ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.split-media { position: relative; min-height: 420px; overflow: hidden; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,11,10,.55), transparent 50%); }
.split-media .caption { position: absolute; left: var(--gutter); bottom: 32px; z-index: 1; display: grid; gap: 14px; }
.split-body { background: var(--surface); padding-block: clamp(48px, 7vw, 96px); display: grid; gap: 26px; align-content: center; min-width: 0; }
.split-body > * { min-width: 0; }
.split-body p { margin: 0; color: #cfcac1; max-width: 56ch; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 10px; }
.stat { padding: 22px 18px 0 0; display: grid; gap: 8px; align-content: start; }
.stat + .stat { padding-left: 18px; border-left: 1px solid var(--line); }
.stat b { font-weight: 300; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; font-variation-settings: "wdth" 112; font-variant-numeric: tabular-nums; }
.stat span { hyphens: auto; overflow-wrap: break-word; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }

/* ---------- band ---------- */
.band { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.band-media { position: absolute; inset: 0; }
.band-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; opacity: .75; }
.band-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(11,11,10,.82) 38%, rgba(11,11,10,.25) 100%); }
.band-inner { position: relative; padding-block: clamp(56px, 8vw, 110px); display: grid; gap: 26px; max-width: 980px; }
.band-inner .lead { max-width: 58ch; }

/* ---------- promise grid ---------- */
.section { border-bottom: 1px solid var(--line); padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { justify-self: end; }
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.promise { padding: 28px 24px 8px 0; display: grid; gap: 14px; align-content: start; }
.promise + .promise { padding-left: 24px; border-left: 1px solid var(--line); }
.promise .icon { width: 30px; height: 30px; color: var(--accent); }
.promise h3 { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.promise p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- triple row (custom solutions) ---------- */
.triple { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr) minmax(0, 0.75fr); border-bottom: 1px solid var(--line); }
.triple > div { min-width: 0; }
.triple-text { padding-block: clamp(48px, 7vw, 96px); display: grid; gap: 24px; align-content: center; }
/* sized so the longest German word (MASSGESCHNEIDERT ≈ 12.7em wide) always fits its column */
.triple-text .h-lg { font-size: clamp(1.45rem, 3.1vw, 2.9rem); }
.triple-text p { margin: 0; color: #cfcac1; max-width: 44ch; }
.triple-media { position: relative; min-height: 380px; overflow: hidden; }
.triple-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.triple-list { padding: clamp(48px, 7vw, 96px) var(--gutter); display: grid; align-content: center; }
.triple-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.triple-list li {
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: #cfcac1;
  padding-block: 13px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline;
}
.triple-list li::before { content: ""; width: 6px; height: 1px; background: var(--accent); flex: none; transform: translateY(-3px); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); }
.contact-info { display: grid; gap: 26px; align-content: start; }
.contact-info dl { margin: 12px 0 0; display: grid; gap: 18px; }
.contact-info dt { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-info dd { margin: 4px 0 0; }
.ph { color: var(--accent); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  width: 100%; background: transparent; color: var(--fg);
  border: 0; border-bottom: 1px solid rgba(236,232,225,.3);
  padding: 10px 0; font: 400 15px/1.5 var(--body); border-radius: 0;
}
select option { background: var(--surface); }
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
.check { display: flex; gap: 12px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: 13px; line-height: 1.5; }
.check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha { min-height: 58px; }
altcha-widget {
  --altcha-color-base: transparent;
  --altcha-color-text: var(--fg);
  --altcha-color-border: rgba(236, 232, 225, 0.3);
  --altcha-color-border-focus: var(--accent);
  --altcha-color-active: var(--accent);
  --altcha-color-error-text: #e08a7a;
  --altcha-color-footer-bg: transparent;
  --altcha-border-radius: 0;
  --altcha-max-width: 100%;
  font-family: var(--body);
}
.check a { color: var(--fg); text-underline-offset: 3px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.form-note { font-size: 13px; color: var(--accent); margin: 0; }

/* ---------- footer ---------- */
.site-footer { padding-block: 56px 40px; display: grid; gap: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.footer-top img { width: 120px; height: auto; }
.footer-claim { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #cfcac1; line-height: 2; text-align: right; }
.compliance { font-size: 12.5px; color: var(--muted); max-width: 80ch; margin: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; font-size: 12px; color: var(--muted); }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a, .footer-bottom button { color: var(--muted); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.footer-bottom a:hover, .footer-bottom button:hover { color: var(--fg); }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; z-index: 40;
  right: calc(max(16px, env(safe-area-inset-right, 0px)) + 8px);
  bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 8px);
  width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(11, 11, 10, 0.78); color: var(--fg);
  border: 1px solid rgba(236, 232, 225, 0.45); cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s, color .2s;
}
.to-top svg { width: 18px; height: 18px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--fg); color: var(--bg); }

/* ---------- legal overlay ---------- */
.legal { position: fixed; inset: 0; z-index: 80; background: rgba(5,5,5,.8); display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; align-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.legal-box { min-width: 0; overflow-wrap: break-word; background: var(--surface); border: 1px solid var(--line); max-width: 720px; width: 100%; max-height: 85vh; overflow: auto; padding: clamp(24px, 4vw, 44px); display: grid; gap: 16px; }
.legal-box { grid-template-columns: minmax(0, 1fr); }
.legal-box h2 { margin: 0; font-size: min(2.4rem, calc((100vw - 96px) / 16)); }
#legal-body > * { min-width: 0; }
.legal-box p { margin: 0; color: #cfcac1; }
.legal-box h3 { margin: 14px 0 0; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg); }
.legal-box .legal-hint { color: var(--muted); font-size: 13px; }
#legal-body { font-size: 14px; }
.legal-box .btn { justify-self: start; margin-top: 8px; }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .reveal.d2 { animation-delay: .12s; } .reveal.d3 { animation-delay: .24s; } .reveal.d4 { animation-delay: .36s; }
  @keyframes rise { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise:nth-child(3) { padding-left: 0; border-left: 0; }
  .promise:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 20px; }
  .triple { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .triple-text .h-lg { font-size: clamp(1.1rem, 3.1vw, 2.4rem); }
  .triple-list { grid-column: 1 / -1; padding-top: 0; }
  .triple-list ul { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
@media (max-width: 900px) {
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 16px max(var(--gutter), env(safe-area-inset-left, 0px));
  }
  .nav:not(.open) { display: none; }
  .nav a { padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 12px; }
  .menu-btn { display: block; }
  .split, .contact, .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head .lead { justify-self: start; }
  .split-media { min-height: 340px; }
  .hero-media { inset: 0; }
  .hero-media::after { background: linear-gradient(90deg, rgba(11,11,10,.92) 0%, rgba(11,11,10,.7) 60%, rgba(11,11,10,.5) 100%); }
  .hero-tag { display: none; }
}
@media (max-width: 620px) {
  .brand span { display: none; }
  .promises, .triple, .triple-list ul, form { grid-template-columns: minmax(0, 1fr); }
  .promise, .promise + .promise { padding-left: 0; border-left: 0; }
  .promise + .promise { border-top: 1px solid var(--line); margin-top: 20px; }
  .triple-media { min-height: 280px; }
  .triple-text { padding-bottom: 40px; }
  .triple-text .h-lg { font-size: min(1.8rem, calc((100vw - 48px) / 13)); }
  .triple-list { padding-top: 40px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat + .stat { padding: 18px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .footer-claim { text-align: left; }
}

/* =====================================================================
   ÜBERGÄNGE ZWISCHEN DEN ABSCHNITTEN
   Keine harten Trennlinien: Bilder laufen weich ins Schwarz aus,
   Hintergründe gehen fließend ineinander über.
   ===================================================================== */
.hero, .split, .band, .section, .triple { border-bottom: 0; }

/* Bildmasken: --fade-x / --fade-y steuern, zu welchen Seiten ein Bild ausläuft */
.fade-img {
  -webkit-mask-image: var(--fade-x), var(--fade-y);
          mask-image: var(--fade-x), var(--fade-y);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
:root {
  --fade-none: linear-gradient(#000, #000);
  --fade-tb: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  --fade-b: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  --fade-to-right: linear-gradient(to right, #000 0%, #000 55%, transparent 100%);
  --fade-to-left: linear-gradient(to left, #000 0%, #000 55%, transparent 100%);
  --fade-lr: linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

/* Hero läuft unten in den nächsten Abschnitt aus */
.hero-media { --fade-x: var(--fade-none); --fade-y: var(--fade-b); }

/* Text-/Bild-Zeilen: gemeinsamer Hintergrund, der oben und unten ins Seitenschwarz übergeht */
.split { background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 24%, var(--surface) 76%, var(--bg) 100%); }
.split-body { background: transparent; }
.split-media { --fade-x: var(--fade-to-right); --fade-y: var(--fade-tb); }
.split.reverse .split-media { --fade-x: var(--fade-to-left); }

/* Bildband: oben und unten weich */
.band-media { --fade-x: var(--fade-none); --fade-y: var(--fade-tb); }

/* Sonderlösungen: Bild läuft zu allen Seiten aus */
.triple-media { --fade-x: var(--fade-lr); --fade-y: var(--fade-tb); }

@media (max-width: 900px) {
  .split-media, .split.reverse .split-media { --fade-x: var(--fade-none); --fade-y: var(--fade-tb); }
}
@media (max-width: 620px) {
  .triple-media { --fade-x: var(--fade-none); }
}

/* ---------- Einblenden beim Scrollen (nur mit JavaScript und ohne "reduzierte Bewegung") ---------- */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
}
.rv.rv-media { transform: none; }
.rv.rv-media img { transform: scale(1.07); transition: transform 1.8s cubic-bezier(.2, .7, .2, 1); }
.rv.rv-in { opacity: 1; transform: none; }
.rv.rv-in img { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv, .rv img { opacity: 1 !important; transform: none !important; transition: none !important; }
}
