@font-face { font-family: "Heros Cn Web"; src: url("fonts/heros-cn-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Web"; src: url("fonts/inter-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Web"; src: url("fonts/inter-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Web"; src: url("fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

/* Layout: eine Seite, linksbündig. Ruhiges Datenblatt auf Lichtgrau (Schaltschrank-Ton),
   Logo-Rot als einzige Auszeichnung. Der eine laute Moment ist das Nachtband der Referenzen,
   dessen Oberkante die rot-blauen Lichtbahnen der Sperrmauer aufnimmt. */
:root {
  color-scheme: light;
  --paper: #EDEFEC;
  --surface: #F8F9F7;
  --ink: #1C2125;
  --muted: #56616A;
  --line: #CCD1CD;
  --brand: #D9241D;
  --brand-ink: #B31B15;
  --brand-hover: #B31B15;
  --on-brand: #FFFFFF;
  --night: #0C1013;
  --night-fg: #E9ECEA;
  --night-muted: #98A3AA;
  --night-line: #283038;
  --led-red: #F0302A;
  --led-blue: #2A9BF2;

  --font-display: "Heros Cn Web", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Inter Web", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Inter Web", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-label: 0.78rem;
  --fs-small: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.1875rem;
  --fs-h3: 1.75rem;
  --fs-h2: clamp(2.25rem, 4.6vw, 3.25rem);
  --fs-h1: clamp(2.9rem, 7vw, 4.9rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14181B;
    --surface: #1B2024;
    --ink: #E9ECEA;
    --muted: #9BA5AC;
    --line: #2E353B;
    --brand: #D9241D;
    --brand-ink: #FF6F63;
    --brand-hover: #EE3A32;
    --on-brand: #FFFFFF;
    --night: #090C0E;
    --night-fg: #E9ECEA;
    --night-muted: #98A3AA;
    --night-line: #262D34;
    --led-red: #F0302A;
    --led-blue: #2A9BF2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #14181B;
  --surface: #1B2024;
  --ink: #E9ECEA;
  --muted: #9BA5AC;
  --line: #2E353B;
  --brand: #D9241D;
  --brand-ink: #FF6F63;
  --brand-hover: #EE3A32;
  --on-brand: #FFFFFF;
  --night: #090C0E;
  --night-fg: #E9ECEA;
  --night-muted: #98A3AA;
  --night-line: #262D34;
  --led-red: #F0302A;
  --led-blue: #2A9BF2;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--led-blue); outline-offset: 3px; }
section[id] { scroll-margin-top: 6rem; }

.wrap {
  max-width: 75rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.label {
  font: 500 var(--fs-label)/1.3 var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; }
h2 { font-size: var(--fs-h2); line-height: 1; }
h3 { font-size: var(--fs-h3); line-height: 1.1; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Schaltflächen */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.6rem 1.25rem;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); }

/* Kopfzeile */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  padding-block: 0.75rem;
}
.brand { display: block; flex: none; }
.brand img { height: 3rem; width: auto; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a {
  padding-block: 0.4rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--brand); }
.call {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 2px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
}
.call small { font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: 0.09em; text-transform: uppercase; opacity: 0.9; }

/* Einstieg */
.hero { padding-block: clamp(2.25rem, 6vw, 5rem); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
}
.hero-text { display: grid; gap: 1.5rem; justify-items: start; }
.hero h1 { font-size: var(--fs-h1); line-height: 0.96; }
.hero h1 em { font-style: normal; color: var(--brand-ink); }
.lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--night); }
.shot figcaption {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding-top: 0.75rem;
  font-size: var(--fs-small);
  color: var(--muted);
}
.shot figcaption .label { flex: none; color: var(--brand-ink); }

/* Leistungen */
.services { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 1rem; max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { font-size: var(--fs-lead); color: var(--muted); }
.group {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1.25rem clamp(1.5rem, 4vw, 3rem);
  padding-block: 1.75rem 2.25rem;
  border-top: 2px solid var(--ink);
}
.group-head { display: grid; gap: 0.5rem; align-content: start; }
.group-head p { color: var(--muted); font-size: var(--fs-small); }
.items li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0.2rem 1.5rem;
  padding-block: 0.95rem;
  border-top: 1px solid var(--line);
}
.items li:first-child { border-top: 0; padding-top: 0.2rem; }
.items strong { font-weight: 600; }
.items span { color: var(--muted); }

/* Referenzen: Nachtband */
.night {
  position: relative;
  background: var(--night);
  color: var(--night-fg);
  padding-block: clamp(7.5rem, 14vw, 11rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.night::before, .night::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: clamp(5.5rem, 11vw, 8.5rem);
  background: repeating-linear-gradient(
    90deg,
    var(--led-red) 0 0.8rem,
    transparent 0.8rem 1.7rem,
    var(--led-blue) 1.7rem 2.5rem,
    transparent 2.5rem 3.4rem
  );
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.5) 40%, transparent 100%);
  pointer-events: none;
}
.night::before { filter: blur(0.7px); }
.night::after { filter: blur(14px); opacity: 0.55; }
.night .wrap { position: relative; z-index: 1; }
.night .label { color: var(--night-muted); }
.night .section-head p { color: var(--night-muted); }
.project {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--night-line);
}
.project-text { display: grid; gap: 1.25rem; align-content: start; }
.facts { display: grid; gap: 0.9rem; }
.facts div { display: grid; gap: 0.15rem; }
.facts dd { font-weight: 500; }
.media { display: flex; gap: 0.75rem; }
.media figure { min-width: 0; }
.media img { width: 100%; object-fit: cover; background: var(--night-line); }
.media figcaption { padding-top: 0.55rem; font-size: var(--fs-small); color: var(--night-muted); }
.media .pano { flex: 1 1 0; }
.media .pano img { aspect-ratio: 1024 / 500; }
.media .wide { flex: 1.7778 1 0; }
.media .wide img { aspect-ratio: 16 / 9; }
.media .std { flex: 1.3333 1 0; }
.media .std img { aspect-ratio: 4 / 3; }

/* Küchenhinweis */
.notice { padding-block: clamp(2.5rem, 5vw, 4rem) 0; }
.notice-box {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 0.75rem clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
}
.notice-box > div { display: grid; gap: 0.5rem; align-content: start; }
.notice-box p { max-width: 40rem; }
.notice-box a { color: var(--brand-ink); font-weight: 500; text-underline-offset: 0.2em; }

/* Kontakt */
.contact { padding-block: clamp(3rem, 7vw, 5.5rem); }
.contact .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.contact-intro { display: grid; gap: 1.25rem; justify-items: start; }
.contact-intro p { font-size: var(--fs-lead); color: var(--muted); max-width: 26rem; }
.bignum {
  font: 700 clamp(3.25rem, 9vw, 5.5rem)/0.95 var(--font-display);
  font-variant-numeric: tabular-nums;
  color: var(--brand-ink);
  text-decoration: none;
  white-space: nowrap;
}
.bignum:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
.ways { border-top: 2px solid var(--ink); }
.ways > div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) auto;
  gap: 0.25rem 1rem;
  align-items: baseline;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.ways dd { min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.ways dd span { display: block; font-weight: 400; color: var(--muted); }
.mini {
  justify-self: end;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  font: 500 var(--fs-small)/1.3 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.mini:hover { border-color: var(--ink); }

/* Fußzeile */
.foot { border-top: 1px solid var(--line); background: var(--surface); font-size: var(--fs-small); }
.foot .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
  padding-block: 2rem;
}
.foot p { color: var(--muted); }
.foot p strong { color: var(--ink); font-weight: 600; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-content: start; justify-content: flex-end; }
.foot-links a { text-underline-offset: 0.2em; }
.foot-links a:hover { color: var(--brand-ink); }

@media (max-width: 56rem) {
  .hero .wrap, .group, .project, .notice-box, .contact .wrap, .foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .foot-links { justify-content: flex-start; }
}
@media (max-width: 46rem) {
  .top { position: static; }
  .brand img { height: 2.6rem; }
  .call { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 1.5rem; }
  .items li { grid-template-columns: minmax(0, 1fr); }
  .media { flex-direction: column; gap: 1.25rem; }
  .media .wide, .media .std, .media .pano { flex: none; }
  .ways > div { grid-template-columns: minmax(0, 1fr) auto; }
  .ways dt { grid-column: 1 / -1; }
  .btn { width: 100%; justify-content: center; }
  .actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Rechtsseiten: Impressum und Datenschutzerklärung */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem); }
.prose { max-width: 44rem; }
.prose > * + * { margin-top: 1rem; }
.prose > h1 { font-size: var(--fs-h2); line-height: 1; margin-top: 0.75rem; overflow-wrap: break-word; hyphens: auto; }
.prose > h2 { font-size: 1.6rem; line-height: 1.15; margin-top: 2.75rem; }
.prose > h2 + * { margin-top: 0.65rem; }
.prose address { font-style: normal; }
.prose ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: 0.3rem; }
.prose a { color: var(--brand-ink); text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.prose .stand { color: var(--muted); font-size: var(--fs-small); margin-top: 0.5rem; }
.prose .box { margin-top: 1.5rem; padding: 1.25rem 1.4rem; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 0.5rem; }
.prose .box h3 { font-size: 1.3rem; }
.foot-links a[aria-current="page"] { color: var(--brand-ink); text-decoration: none; font-weight: 600; }
