/* ==========================================================================
   bm-baucompany GmbH — Bauunternehmen Reutlingen
   Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Accent. Alternates from the design: #3f5d54, #5a5f66, #8a7b3f */
  --accent: #9c5c33;

  --ink: #16181a;
  --ink-2: #2c3033;
  --ink-soft: #4a4e52;
  --ink-soft-2: #5a5e62;
  --muted: #75797d;
  --muted-2: #83878b;
  --muted-3: #8a8781;

  --line: #e4e1dc;
  --line-2: #e0ddd7;
  --sand: #f4f2ee;
  --slot: #e8e5e0;
  --white: #ffffff;

  --page-max: 1440px;
  --page-max-narrow: 1280px;
  --gutter: 24px;
  --header-h: 76px;

  --sans: Archivo, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

img, svg { display: block; max-width: 100%; }

input, textarea, select, button { font: inherit; color: inherit; }

h1, h2, h3, p, figure, dl, dd { margin: 0; }

address { font-style: normal; }

::selection { background: var(--ink); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Anchor targets clear the fixed header. */
section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 200ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--white);
}

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.page {
  min-height: 100vh;
  overflow-x: clip;
}

.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.wrap--narrow { max-width: var(--page-max-narrow); }

.section {
  padding-top: clamp(80px, 11vw, 160px);
  padding-bottom: clamp(80px, 11vw, 160px);
}

.section--tight {
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
}

.section--compact {
  padding-top: clamp(72px, 9vw, 128px);
  padding-bottom: clamp(72px, 9vw, 128px);
}

.band--sand {
  background: var(--sand);
  border-top: 1px solid var(--line);
}

.band--sand-boxed {
  border-bottom: 1px solid var(--line);
}

.band--dark {
  background: var(--ink);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   4. Typography helpers
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-3);
}

.eyebrow--on-dark { color: rgba(255, 255, 255, 0.5); }
.eyebrow--hero { color: rgba(255, 255, 255, 0.7); }

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-3);
}

.label--on-dark { color: rgba(255, 255, 255, 0.45); }

.h-display {
  font-size: clamp(44px, 7.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}

.h-section {
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.h-section--sm {
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.arrow { font-family: var(--mono); }

/* --------------------------------------------------------------------------
   5. Buttons and links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 30px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: filter 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { filter: brightness(1.08); color: var(--white); }

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn--sm { height: 44px; padding: 0 22px; font-size: 14px; }

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  transition: border-color 200ms ease, color 200ms ease;
}

.link-underline:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.link-hairline {
  color: var(--white);
  font-size: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 3px;
  transition: color 200ms ease, border-color 200ms ease;
}

.link-hairline:hover { color: var(--accent); border-color: var(--accent); }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 300ms ease, border-color 300ms ease, color 300ms ease;
}

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  border-bottom-color: var(--line);
}

.site-header__bar {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: inherit;
  letter-spacing: -0.02em;
  font-weight: 700;
  font-size: 19px;
}

.logo:hover { color: inherit; }

.logo__suffix {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  opacity: 0.6;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav__links {
  display: none;
  gap: 34px;
  align-items: center;
}

.site-nav__links a {
  color: inherit;
  font-size: 15px;
  font-weight: 500;
}

.site-nav__links a:hover { color: var(--accent); }

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

.burger span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 260ms var(--ease);
}

.burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  background: var(--white);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.mobile-menu[hidden] { display: none; }

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--gutter) 28px;
}

.mobile-menu a {
  padding: 12px 0;
  font-size: 22px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.mobile-menu a:last-child { border-bottom: none; }

.mobile-menu a.mobile-menu__cta {
  display: none;
  margin-top: 16px;
  padding: 0 22px;
  font-size: 15px;
  border-bottom: none;
}

@media (min-width: 900px) {
  .site-nav__links { display: flex; }
  .burger { display: none; }
  .mobile-menu { display: none; }
}

/* Below the desktop breakpoint the bar has to fit logo + CTA + burger. */
@media (min-width: 560px) and (max-width: 899px) {
  .site-nav { gap: 18px; }
}

/* On phones the header CTA moves into the menu so the burger stays reachable. */
@media (max-width: 559px) {
  .site-nav { gap: 12px; }
  .site-nav > .btn--sm { display: none; }
  .mobile-menu a.mobile-menu__cta { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
}

.hero__media { position: absolute; inset: 0; }

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Auf schmalen, hohen Rahmen beschneidet `cover` das Querformat-Foto seitlich.
   Der Ausschnitt wandert daher auf das Gebäude (Bildmitte liegt bei ~60 %). */
@media (max-width: 900px) {
  .hero__media img { object-position: 66% 50%; }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 13, 14, 0.72) 0%, rgba(12, 13, 14, 0.28) 42%, rgba(12, 13, 14, 0.82) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 160px var(--gutter) 72px;
  color: var(--white);
  pointer-events: none;
}

.hero__eyebrow { display: block; margin-bottom: 26px; }

.hero h1 { max-width: 15ch; }

.hero__lead {
  margin-top: 32px;
  max-width: 62ch;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   8. Claim strip
   -------------------------------------------------------------------------- */

.claims {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.claims__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.claims__item {
  padding: 30px 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.claims__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

.claims__text {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   9. About
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.split--center { align-items: center; }

.about__figure {
  position: relative;
  margin: 0;
}

.about__figure .media { aspect-ratio: 4 / 5; }

.about__badge {
  position: absolute;
  right: -12px;
  bottom: -36px;
  background: var(--ink);
  color: var(--white);
  padding: 26px 30px;
  max-width: 240px;
}

.about__badge-num {
  display: block;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.about__badge-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 8px;
}

.about__body { padding-top: clamp(0px, 4vw, 56px); }
.about__body .eyebrow { display: block; margin-bottom: 24px; }
.about__body .lead { margin-top: 28px; max-width: 54ch; }
.about__body .lead + .lead { margin-top: 20px; }
.about__body .link-underline { margin-top: 40px; }

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  background: var(--white);
  padding: 24px 0;
}

.stat + .stat { padding-left: 24px; }

.stat__num {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   10. Services
   -------------------------------------------------------------------------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gutter);
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section-head .eyebrow { display: block; margin-bottom: 22px; }
.section-head h2 { max-width: 18ch; }

.section-head__aside {
  max-width: 40ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft-2);
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}

.service {
  background: var(--white);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  color: var(--ink);
  transition: background 220ms ease, color 220ms ease;
}

.service:hover,
.service:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.service__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.5;
}

.service__title {
  margin-top: 44px;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.service__text {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.72;
  max-width: 32ch;
}

.service__more {
  margin-top: auto;
  padding-top: 32px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  gap: 8px;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   11. Projects
   -------------------------------------------------------------------------- */

.projects .eyebrow { display: block; margin-bottom: 22px; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 44px 0 clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.filter {
  height: 42px;
  padding: 0 20px;
  cursor: pointer;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.filter:hover { border-color: var(--ink); }

.filter[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(20px, 2.6vw, 40px);
}

.project-card {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.project-card:hover { color: inherit; }

.project[hidden] { display: none; }

.project-card__media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--slot);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.project-card:hover .project-card__media img,
.project-card:focus-visible .project-card__media img { transform: scale(1.04); }

.project-card__foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px 0;
}

.project-card__cat {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-card__title {
  margin-top: 10px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.project-card__meta {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted-2);
}

.project-card__arrow {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ink);
  padding-top: 14px;
  transition: transform 260ms var(--ease);
}

.project-card:hover .project-card__arrow { transform: translateX(4px); }

.projects__empty {
  padding: 32px 0;
  font-size: 17px;
  color: var(--muted);
}

.projects__empty[hidden] { display: none; }

/* --------------------------------------------------------------------------
   12. Reasons
   -------------------------------------------------------------------------- */

.reasons__title {
  margin-bottom: clamp(48px, 5vw, 80px);
  max-width: 20ch;
}

.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.reason {
  background: var(--ink);
  padding: 34px 30px 40px 0;
}

.reason__mark {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.reason__title {
  margin-top: 28px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.reason__text {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
  max-width: 30ch;
}

/* --------------------------------------------------------------------------
   13. Team
   -------------------------------------------------------------------------- */

.team__body .eyebrow { display: block; margin-bottom: 22px; }

.team__title {
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 16ch;
}

.team__body .lead { margin-top: 28px; max-width: 52ch; }
.team__body .lead + .lead { margin-top: 20px; }

.team__person {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.team__name { font-size: 17px; font-weight: 600; }
.team__role { font-size: 15px; color: var(--muted-2); margin-top: 4px; }

.team__figure {
  margin: 0;
  aspect-ratio: 3 / 4;
}

/* --------------------------------------------------------------------------
   14. Process
   -------------------------------------------------------------------------- */

.process .eyebrow { display: block; margin-bottom: 22px; }

.process__title {
  margin-bottom: clamp(40px, 5vw, 72px);
  line-height: 1.06;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(24px, 3vw, 48px);
}

.step {
  border-top: 1.5px solid var(--ink);
  padding-top: 20px;
}

.step__num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.step__title {
  margin-top: 22px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.step__text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft-2);
  max-width: 28ch;
}

/* --------------------------------------------------------------------------
   15. Contact
   -------------------------------------------------------------------------- */

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(48px, 6vw, 96px);
}

.contact .eyebrow { display: block; margin-bottom: 22px; }

.contact__title { max-width: 14ch; }

.contact__lead {
  margin-top: 26px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 42ch;
}

.contact__details {
  margin-top: 56px;
  display: grid;
  gap: 28px;
}

.contact__details .label { display: block; margin-bottom: 10px; }

.contact__address {
  font-size: 17px;
  line-height: 1.55;
  font-style: normal;
}

.contact__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.form { display: grid; gap: 22px; }

.form[hidden] { display: none; }

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 22px;
}

.field { display: block; }

.field__label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  padding: 10px 0;
  font-size: 17px;
  color: var(--white);
  outline: none;
  transition: border-color 200ms ease;
}

.field textarea {
  resize: vertical;
  font-family: inherit;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.38); }

.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--accent); }

.field input:user-invalid,
.field textarea:user-invalid { border-color: #d98b6a; }

.field select option { color: var(--ink); }

/* --------------------------------------------------------------------------
   15b. Eigenes Auswahlmenü

   Die Optionsliste eines nativen <select> wird vom Betriebssystem gezeichnet
   und lässt sich nicht auf das Design bringen. `main.js` ersetzt das <select>
   deshalb durch dieses Listenfeld und hält den Wert im versteckten Original
   synchron. Ohne JavaScript bleibt das native Feld sichtbar und nutzbar.
   -------------------------------------------------------------------------- */

.select { position: relative; }

.select__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  padding: 10px 0;
  font-size: 17px;
  color: var(--white);
  text-align: left;
  cursor: pointer;
  transition: border-color 200ms ease;
}

.select__button:hover { border-bottom-color: rgba(255, 255, 255, 0.5); }

.select__button:focus-visible {
  outline: none;
  border-bottom-color: var(--accent);
}

.select[data-open="true"] .select__button { border-bottom-color: var(--accent); }

.select__chevron {
  flex-shrink: 0;
  width: 12px;
  height: 8px;
  transition: transform 200ms var(--ease);
}

.select[data-open="true"] .select__chevron { transform: rotate(180deg); }

.select__list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #1c1f21;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.select__list[hidden] { display: none; }

.select__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  font-size: 16px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.select__option::after {
  content: "";
  font-family: var(--mono);
  font-size: 12px;
}

.select__option[aria-selected="true"] {
  color: var(--white);
  font-weight: 600;
}

.select__option[aria-selected="true"]::after { content: "✓"; }

.select__option[data-active="true"] {
  background: var(--accent);
  color: var(--white);
}

.form__submit {
  margin-top: 10px;
  height: 60px;
  font-size: 16px;
}

.form__note {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.42);
}

.form-success {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.form-success[hidden] { display: none; }

.form-success__check {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.form-success__title {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.form-success__text {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

.form-success__reset {
  margin-top: 12px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0 0 4px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  transition: color 200ms ease, border-color 200ms ease;
}

.form-success__reset:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--white); }

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 56px;
  padding-bottom: 40px;
}

.site-footer__brand {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.site-footer__brand span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted-3);
  letter-spacing: 0.08em;
}

.site-footer__address {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  font-style: normal;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  font-size: 15px;
}

.site-footer__nav a { color: var(--ink-soft); }
.site-footer__nav a:hover { color: var(--accent); }

.site-footer__legal { border-top: 1px solid var(--line); }

.site-footer__legal p {
  padding: 20px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-3);
}

/* --------------------------------------------------------------------------
   17. Media slot
   -------------------------------------------------------------------------- */

.media {
  background: var(--slot);
  overflow: hidden;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   18. Project detail overlay
   -------------------------------------------------------------------------- */

.detail {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--white);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.detail[hidden] { display: none; }

.detail:focus { outline: none; }

.detail__bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.detail__bar-inner {
  max-width: var(--page-max-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.detail__close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  background: none;
  border: 1px solid var(--line-2);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.detail__close:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.detail__hero {
  height: clamp(320px, 56vh, 620px);
  background: var(--slot);
}

.detail__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail__body {
  max-width: var(--page-max-narrow);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 88px) var(--gutter) 120px;
}

.detail__intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.detail__cat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.detail__title {
  margin-top: 16px;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 16ch;
}

.detail__text {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 1px;
  background: var(--line);
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  background: var(--white);
  padding: 20px 0;
}

.fact__key {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-3);
}

.fact__value {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 600;
}

.detail__block { margin-top: clamp(56px, 7vw, 104px); }

.detail__block[hidden] { display: none; }

.detail__block-title {
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.gallery .media { aspect-ratio: 4 / 3; }

.detail__cta {
  margin-top: clamp(56px, 7vw, 104px);
  border-top: 1px solid var(--line);
  padding-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.detail__cta-text {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 34ch;
}

/* --------------------------------------------------------------------------
   19. Before / after comparison
   -------------------------------------------------------------------------- */

.compare {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  background: var(--slot);
}

.compare img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.compare__after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
}

.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.compare__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.compare__tag {
  position: absolute;
  bottom: 16px;
  background: rgba(22, 24, 26, 0.82);
  color: var(--white);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 7px 12px;
  pointer-events: none;
}

.compare__tag--after { left: 16px; }
.compare__tag--before { right: 16px; }

/* --------------------------------------------------------------------------
   20. Reveal on scroll
   -------------------------------------------------------------------------- */

.is-revealable {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.is-revealed {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   21. Small screens
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  /* Flacherer Hero: je hochkantiger der Rahmen, desto stärker vergrößert
     `cover` das Querformat-Foto. Die Polsterungen müssen mit, sonst hält der
     Inhalt die Sektion auf alter Höhe. */
  .hero { min-height: 68vh; }
  .hero__content { padding-top: 112px; padding-bottom: 48px; }
  .hero__lead { margin-top: 26px; }
  .hero__actions { margin-top: 32px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .about__badge { right: 0; bottom: -28px; padding: 20px 24px; }
  .about__badge-num { font-size: 36px; }
  .service { padding: 30px 24px 28px; min-height: 260px; }
  .reason { padding: 30px 24px 34px 0; }
  .form-success { padding: 36px 24px; }
  .detail__body { padding-bottom: 88px; }
}

/* --------------------------------------------------------------------------
   22. Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .is-revealable {
    opacity: 1;
    transform: none;
  }
}
