/* novaX alt A — Dunkel / fotografisch
   Architecture-studio mood. Dark ground, large photography,
   thin sans-serif. Green from the novaX mark (#41725c) as 1px accent + a single CTA. */

@font-face {
  font-family: Inter;
  src: url("../fonts/inter-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  src: url("../fonts/inter-300-ext.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  src: url("../fonts/inter-400-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  src: url("../fonts/inter-500-ext.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #080808;
  --bg-2: #101010;
  --ink: #f3f3ef;
  --muted: #9a9a94;
  --faint: #6e6e68;
  --line: rgba(243, 243, 239, 0.14);
  --line-strong: rgba(243, 243, 239, 0.28);
  --accent: #41725c;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 72rem;
  --header-h: 4.25rem;
  --space: clamp(4.5rem, 10vw, 8.5rem);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 0.18em; }
a:hover { color: #fff; }
:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}
::selection { background: #2a2a28; color: #fff; }

h1, h2, h3 {
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.4rem, 6.4vw, 4.85rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; font-weight: 400; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; color: var(--muted); }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.85rem;
  z-index: 100;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.15rem;
}
.kicker::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* Header — sits on the photo, no frosted bar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgb(8 8 8 / 0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}
.wordmark {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.wordmark:hover { color: #fff; }
.wordmark__mark {
  width: 2.3rem;
  height: 2.3rem;
  display: block;
  flex-shrink: 0;
  overflow: visible;
}
.wordmark__text {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}
.wordmark__name {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: none;
}
.wordmark__x { color: var(--accent); }
.brand-x { color: var(--accent); }
.wordmark__meta {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: rgb(243 243 239 / 0.82);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav a:hover { color: #fff; }

@media (max-width: 48rem) {
  .header-inner { height: auto; padding: 0.85rem 0 0.5rem; flex-wrap: wrap; }
  .site-header {
    /* sticky keeps header in flow so hero never sits underneath (iOS Chrome) */
    position: sticky;
    top: 0;
    height: auto;
    padding-top: env(safe-area-inset-top, 0px);
    background: rgb(8 8 8 / 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav { width: 100%; }
  .nav ul { flex-wrap: wrap; gap: 0.45rem 1.1rem; padding-bottom: 0.5rem; }
  .wordmark__meta { display: none; }
  .hero {
    align-items: flex-start;
    min-height: auto;
    padding: 1.75rem 0 3rem;
  }
}

/* Buttons — one green CTA, everything else is a hairline */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 500 0.72rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 1.55rem;
  border: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.btn:hover { background: #4d8670; color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { background: rgb(255 255 255 / 0.06); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Hero — full-bleed photography */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  padding: 7rem 0 3.25rem;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%; /* Projektmappe hero, 5% top crop */
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(8 8 8 / 0.28) 0%, rgb(8 8 8 / 0.12) 32%, rgb(8 8 8 / 0.82) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgb(8 8 8 / 0.55) 0%, rgb(8 8 8 / 0.12) 48%, rgb(8 8 8 / 0.35) 100%);
}
.hero .lead {
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.55;
  max-width: 36rem;
  color: rgb(243 243 239 / 0.78);
}
.hero h1 { max-width: 18ch; }

.process {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  max-width: 46rem;
}
@media (min-width: 52rem) {
  .process { grid-template-columns: repeat(4, 1fr); }
}
.process .num {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--faint);
  margin-bottom: 0.35rem;
}
.process strong {
  display: block;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ink);
}
.process span {
  display: block;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Sections */
.section { padding: var(--space) 0; }
.section--photo {
  padding: 0;
}
.section-head { max-width: 38rem; margin-bottom: 3rem; }
.section-head h2 { margin-bottom: 1rem; }

.bleed-photo {
  position: relative;
  min-height: min(72vh, 46rem);
}
.bleed-photo img {
  width: 100%;
  height: min(72vh, 46rem);
  object-fit: cover;
  object-position: center;
}
.bleed-photo figcaption {
  position: absolute;
  left: max(1.25rem, calc((100% - var(--wrap)) / 2));
  bottom: 1.25rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.5);
}

/* Leistungen — editorial, not cards */
.leistungen-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.leistungen-list article {
  display: grid;
  gap: 0.75rem 2.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 52rem) {
  .leistungen-list article {
    grid-template-columns: 4.5rem 14rem 1fr;
    align-items: start;
  }
}
.leistungen-list .num {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--faint);
  padding-top: 0.35rem;
}
.leistungen-list h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 300;
}
.leistungen-list p { margin: 0; max-width: 38rem; }

.note {
  margin-top: 2.5rem;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--accent);
  max-width: 40rem;
}
.note p { color: var(--muted); }
.note strong { font-weight: 500; color: var(--ink); }

/* Referenz */
.ref-prose { margin-bottom: 2.25rem; max-width: 40rem; }

.gallery {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 2.75rem;
}
@media (min-width: 48rem) {
  .gallery {
    grid-template-columns: 1.45fr 1fr;
    grid-template-rows: auto auto;
  }
  .gallery figure:first-child { grid-row: 1 / span 2; }
}
.gallery figure { margin: 0; }
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  color: inherit;
  text-align: left;
  font: inherit;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1a1a1a;
  transition: opacity 0.25s ease;
}
.gallery button:hover img { opacity: 0.82; }
@media (min-width: 48rem) {
  .gallery figure:first-child img { min-height: 100%; }
  .gallery figure:not(:first-child) img {
    aspect-ratio: 16 / 10;
  }
}
.gallery figcaption,
.hero-cap {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 0.55rem;
}

.specs {
  border-top: 1px solid var(--line);
}
.specs-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.specs dl { display: grid; margin: 0; }
@media (min-width: 40rem) {
  .specs dl { grid-template-columns: 1fr 1fr; }
}
.specs div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
@media (min-width: 40rem) {
  .specs div:nth-child(odd) { padding-right: 1.75rem; }
  .specs div:nth-child(even) { padding-left: 1.75rem; border-left: 1px solid var(--line); }
}
.specs dt { color: var(--muted); font-weight: 300; }
.specs dd {
  margin: 0;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: right;
}

/* Über */
.about-grid {
  display: grid;
  gap: 3rem;
}
.about-copy { overflow: hidden; }
.about-photo {
  float: right;
  width: min(48%, 18rem);
  margin: 0 0 1.1rem 1.35rem;
}
.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  background: #161616;
  aspect-ratio: 1 / 1;
}
.facts {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.facts div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 0.25rem;
}
.facts dd { margin: 0; color: var(--muted); font-weight: 300; }

/* Kontakt */
.kontakt-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 54rem) {
  .kontakt-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}
.form { display: grid; gap: 1.15rem; }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status { color: var(--accent); font-size: 0.95rem; }
.form-status.is-error { color: #c47a7a; }
.form-status a { color: inherit; }
.btn:disabled { opacity: 0.55; cursor: default; }
.elektro-actions { margin-top: 2.25rem; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 0.7rem 0;
  width: 100%;
  border-radius: 0;
  appearance: none;
}
.field select { appearance: auto; }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.form-hint {
  font-size: 0.82rem;
  color: var(--faint);
  margin: 0;
}
.address {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.address p { margin: 0 0 0.4rem; color: var(--muted); font-weight: 300; }
.address strong { font-weight: 400; color: var(--ink); }
.address a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.address a:hover { border-bottom-color: var(--ink); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2rem;
  color: var(--faint);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.site-footer strong {
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.footer-loxone {
  color: var(--faint);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  letter-spacing: 0.04em;
  text-transform: none;
}
.footer-loxone:hover { color: var(--ink); }
.facts a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}
.facts a:hover { border-bottom-color: var(--ink); }

.partner-logo {
  display: inline-block;
  border-bottom: 0 !important;
  line-height: 0;
}
.partner-logo img,
.facts img {
  width: clamp(11rem, 32vw, 15rem); /* quer Silver Partner ~176–240px */
  max-width: 240px;
  height: auto;
  display: block;
}
.partner-caption {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 400;
}


/* Lightbox */
.lightbox {
  position: relative;
  padding: 0;
  border: 0;
  background: #050505;
  max-width: min(96vw, 1100px);
  width: 100%;
}
.lightbox::backdrop { background: rgb(0 0 0 / 0.92); }
.lightbox img { width: 100%; height: auto; }
.lightbox-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  background: transparent;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.35);
  font: 500 0.68rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
}
.lightbox-bar {
  background: #050505;
  color: var(--faint);
  padding: 0.7rem 0.9rem;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media print {
  .site-header, .site-footer, .actions, .form, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: 0; padding: 2rem 0; }
  .hero__bg { display: none; }
}


/* Legal pages */
.wrap--narrow {
  width: min(42rem, calc(100% - 2.5rem));
  margin-inline: auto;
}
.legal { padding: calc(var(--header-h) + 2.5rem) 0 var(--space); }
.legal h1 { margin-bottom: 0.35rem; }
.legal .meta { color: var(--muted); margin-bottom: 2rem; }
.legal h2 {
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.6rem;
}
.legal ul { color: var(--muted); padding-left: 1.15rem; }
.legal li { margin-bottom: 0.35rem; }
.legal address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  font-style: normal;
  color: var(--muted);
  margin: 0 0 1rem;
}
.legal address span { display: block; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; }
.footer-nav a {
  color: var(--faint);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-nav a:hover { color: var(--ink); }
.footer-nav a[aria-current="page"] { color: var(--muted); }

/* 404 */
.empty {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 3rem) 1.25rem var(--space);
}
.empty .actions { justify-content: center; }

/* FAQ (preview, not live until approved) */
.wrap--faq { max-width: 46rem; }
.faq-list { margin-top: 0.5rem; }
.faq-list details {
  border-top: 1px solid var(--line);
  padding: 0.95rem 0;
}
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  font-weight: 400;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p {
  margin: 0.65rem 0 0.2rem;
  color: var(--muted);
  max-width: 38rem;
}
.faq-list a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; }
.faq-list a:hover { color: #fff; }

.faq-thumbs {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0.35rem;
  max-width: 40rem;
}
@media (min-width: 36rem) {
  .faq-thumbs { grid-template-columns: 1fr 1fr; }
}
.faq-thumbs a {
  display: block;
  text-decoration: none;
  color: var(--muted);
}
.faq-thumbs a:hover { color: var(--ink); }
.faq-thumbs img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #141414;
  display: block;
}
.faq-thumbs span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
}
