@import url('../fonts/fonts.css');

/* ===========================================================================
   STIEPELER HÖHEN — Vermarktungswebsite
   Engel & Völkers Bochum · EV Mittleres Ruhrgebiet GmbH

   Aufbau dieser Datei:
     1. Design-Tokens
     2. Grundlagen & Reset
     3. Typografie
     4. Layout-Bausteine
     5. Kopfzeile & Navigation
     6. Hero
     7. Sektionen (Auftakt, Lage, Projekt, Baukörper, Innen, Ausstattung)
     8. Wohnungen
     9. Vertrieb
    10. Kontaktformular
    11. Fußzeile
    12. Lightbox
    13. Bewegung
    14. Rechtstext-Seiten
   =========================================================================== */


/* ---------------------------------------------------------------------------
   1. Design-Tokens

   Die Palette ist aus dem Baukörper abgeleitet: der warme Putzton der Fassade,
   das Anthrazit der Fensterrahmen, der helle Naturstein des Sockels und das
   Holz der Fassadeneinlagen.
   --------------------------------------------------------------------------- */
:root {
  /* Farben */
  --paper:        #F5F2ED;
  --paper-warm:   #EFEAE1;
  --paper-deep:   #E4DCCF;
  --ink:          #15171A;
  --ink-mid:      #3A3F45;
  --ink-soft:     #6B7178;
  --stone:        #C3B49B;
  --wood:         #8B6E4E;
  --white:        #FFFFFF;

  --line:         rgba(21, 23, 26, 0.14);
  --line-strong:  rgba(21, 23, 26, 0.30);
  --line-light:   rgba(255, 255, 255, 0.28);

  /* Schrift */
  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Abstände — bewusst großzügig (Density 3/10) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2.5rem;
  --s-5: 4rem;
  --s-6: 6rem;
  --s-7: 9rem;

  --section-y: clamp(5rem, 11vw, 11rem);
  --gutter:    clamp(1.25rem, 5vw, 5rem);
  --max:       82rem;
  --measure:   34rem;

  /* Bewegung */
  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast:  180ms;
  --dur:       320ms;
  --dur-slow:  760ms;

  /* Ebenen
     Die Kopfzeile liegt bewusst ÜBER dem Menü: nur so bleibt der
     Schließen-Schalter sichtbar und bedienbar, solange das Menü offen ist. */
  --z-menu:     200;
  --z-nav:      210;
  --z-lightbox: 400;
}


/* ---------------------------------------------------------------------------
   2. Grundlagen & Reset
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

img { height: auto; }

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

a {
  color: inherit;
  text-decoration: none;
}

/* Sichtbarer Fokus für Tastaturbedienung — nie entfernen */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.on-dark :focus-visible,
.site-header:not(.is-solid) :focus-visible,
.hero :focus-visible {
  outline-color: var(--white);
}

/* Nur für Screenreader */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Sprunglink */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 999;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 1rem; }


/* ---------------------------------------------------------------------------
   3. Typografie
   --------------------------------------------------------------------------- */
.display-xl,
.display-l,
.display-m,
.display-s {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.display-xl {
  font-size: clamp(3rem, 10.5vw, 9rem);
  line-height: 0.94;
  letter-spacing: 0.015em;
}

.display-l {
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.06;
}

.display-m {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.14;
}

.display-s {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.25;
}

.lead {
  font-size: clamp(1.05rem, 1.35vw, 1.24rem);
  line-height: 1.68;
  color: var(--ink-mid);
  text-wrap: pretty;
}

.prose p {
  max-width: var(--measure);
  color: var(--ink-mid);
  text-wrap: pretty;
}
.prose p + p { margin-top: 1.15em; }
.prose--wide p { max-width: 44rem; }

/* Kleine Versalien-Labels — die editoriale Signatur der Seite */
.label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 3rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow__num {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--stone);
}

.eyebrow__title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Zahlen in Tabellen und Datenlisten laufen nicht */
.tnum { font-variant-numeric: tabular-nums; }


/* ---------------------------------------------------------------------------
   4. Layout-Bausteine
   --------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--full {
  max-width: none;
  padding-inline: 0;
}

.section {
  padding-block: var(--section-y);
}

.section--warm { background: var(--paper-warm); }
.section--dark {
  background: var(--ink);
  color: var(--paper);
}
.section--dark .eyebrow { border-bottom-color: var(--line-light); }
.section--dark .eyebrow__title { color: rgba(245, 242, 237, 0.6); }
.section--dark .prose p,
.section--dark .lead { color: rgba(245, 242, 237, 0.78); }

.grid-2 {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (min-width: 62rem) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2--text-left { grid-template-columns: 0.95fr 1.05fr; }
}

/* Die geschwungene Ecke ist das Signaturmotiv des Baukörpers.
   Sie kehrt hier an gerahmten Bildern wieder — sparsam eingesetzt. */
.swept {
  overflow: hidden;
  border-bottom-left-radius: clamp(40px, 9vw, 140px);
}

.figure { margin: 0; }
.figure img {
  width: 100%;
  object-fit: cover;
}
.figure figcaption {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.section--dark .figure figcaption { color: rgba(245, 242, 237, 0.55); }

.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3  { aspect-ratio: 4 / 3; }
.ratio-3-4  { aspect-ratio: 3 / 4; }

/* Schaltflächen */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3rem;
  padding: 0.9rem 1.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

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

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Textlink mit Unterstrich, der beim Hover aufzieht */
.link-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.link-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform var(--dur) var(--ease);
}
.link-underline:hover::after { transform: scaleX(0); }


/* ---------------------------------------------------------------------------
   5. Kopfzeile & Navigation
   --------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1rem, 2vw, 1.6rem) var(--gutter);
  color: var(--white);
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur-slow) var(--ease);
  border-bottom: 1px solid transparent;
}

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

.site-header.is-hidden { transform: translateY(-102%); }

/* Bei offenem Menü liegt die Kopfzeile auf dunklem Grund — der helle
   Balken der Solid-Variante würde dort stören. */
body.is-locked .site-header {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--white);
  border-bottom-color: transparent;
  transform: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 44px;
}

.brand__mark {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: none;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.4rem);
}
@media (min-width: 64rem) { .nav { display: flex; } }

.nav a {
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity var(--dur) var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after,
.nav a[aria-current='true']::after { transform: scaleX(1); }
.nav a[aria-current='true'] { opacity: 1; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__cta {
  display: none;
  min-height: 2.75rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
@media (min-width: 48rem) { .header__cta { display: inline-flex; align-items: center; } }
.site-header:not(.is-solid) .header__cta:hover { background: var(--white); color: var(--ink); }
.site-header.is-solid .header__cta:hover { background: var(--ink); color: var(--paper); }

/* Menüschalter (mobil) */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
}
@media (min-width: 64rem) { .menu-toggle { display: none; } }

.menu-toggle__bars {
  position: relative;
  width: 22px; height: 10px;
}
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after  { top: 9px; }
.menu-toggle[aria-expanded='true'] .menu-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-toggle__bars::after  { top: 4px; transform: rotate(-45deg); }

/* Vollflächiges Menü */
.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--gutter) 3rem;
  background: var(--ink);
  color: var(--paper);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
/* Das hidden-Attribut muss die display-Regel oben überstimmen. */
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }

.menu ul { list-style: none; padding: 0; }

.menu a {
  display: block;
  padding: 0.5rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8vw, 3rem);
  font-weight: 300;
  line-height: 1.25;
  opacity: 0.75;
  transition: opacity var(--dur) var(--ease);
}
.menu a:hover { opacity: 1; }

.menu__foot {
  margin-top: auto;
  padding-top: 2.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(245, 242, 237, 0.6);
}


/* ---------------------------------------------------------------------------
   6. Hero
   --------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
}

/* Verlauf, damit der Text auf jedem Bildausschnitt lesbar bleibt */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom,
      rgba(10, 12, 14, 0.46) 0%,
      rgba(10, 12, 14, 0.10) 26%,
      rgba(10, 12, 14, 0.06) 46%,
      rgba(10, 12, 14, 0.72) 100%);
}

.hero__inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}

.hero__kicker {
  margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.hero__title {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-light);
}

.hero__meta-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.75rem;
}

.hero__meta .label {
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.hero__logo {
  width: clamp(96px, 9vw, 132px);
  opacity: 0.85;
  filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.35));
}


/* ---------------------------------------------------------------------------
   7. Sektionen
   --------------------------------------------------------------------------- */

/* --- Auftakt: großer Satz plus Kennzahlen --- */
.opening__statement {
  max-width: 22ch;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 48rem)  { .facts { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 72rem)  { .facts { grid-template-columns: repeat(5, 1fr); } }

.fact {
  background: var(--paper);
  padding: clamp(1.4rem, 2.6vw, 2.1rem) clamp(1rem, 2vw, 1.6rem);
}
.section--warm .fact { background: var(--paper-warm); }

.fact__value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 300;
  line-height: 1.1;
  /* Cormorant setzt standardmäßig Mediävalziffern. In Kennzahlen wirken
     Versalziffern ruhiger und besser vergleichbar. */
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}
.fact__label {
  margin-top: 0.5rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --- Lage: Entfernungsliste --- */
.distances {
  list-style: none;
  padding: 0;
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.distances li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.distances span:first-child { color: var(--ink); }
.distances span:last-child {
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* --- Zitatzeile zwischen den Sektionen --- */
.pull {
  padding-block: clamp(4rem, 9vw, 8rem);
  text-align: center;
}
.pull blockquote {
  max-width: 26ch;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.2vw, 3.2rem);
  font-weight: 300;
  line-height: 1.18;
  text-wrap: balance;
}
.pull cite {
  display: block;
  margin-top: 1.8rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --- Bildgalerie --- */
.gallery {
  display: grid;
  gap: clamp(0.75rem, 1.6vw, 1.4rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 60rem) { .gallery { grid-template-columns: repeat(6, 1fr); } }

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--paper-deep);
  cursor: pointer;
  overflow: hidden;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease),
              filter var(--dur-slow) var(--ease);
}
.gallery__item:hover img { transform: scale(1.035); filter: brightness(1.03); }

/* Rasterzuschnitt: einige Kacheln laufen über mehrere Spalten */
@media (min-width: 60rem) {
  .gallery__item--wide  { grid-column: span 4; }
  .gallery__item--half  { grid-column: span 3; }
  .gallery__item--third { grid-column: span 2; }
}
.gallery__item--wide  img,
.gallery__item--half  img { aspect-ratio: 16 / 9; }
.gallery__item--third img { aspect-ratio: 4 / 3; }

.gallery__zoom {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  background: rgba(21, 23, 26, 0.55);
  color: var(--white);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.gallery__item:hover .gallery__zoom,
.gallery__item:focus-visible .gallery__zoom { opacity: 1; }

/* --- Ausstattung --- */
.spec-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 46rem) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 76rem) { .spec-grid { grid-template-columns: repeat(4, 1fr); } }

.spec__title {
  padding-bottom: 0.9rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
}
.section--dark .spec__title { border-bottom-color: var(--line-light); }

.spec ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}
.spec li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(245, 242, 237, 0.78);
}
.spec li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.72em;
  width: 7px; height: 1px;
  background: var(--stone);
}


/* ---------------------------------------------------------------------------
   8. Wohnungen
   --------------------------------------------------------------------------- */
.unit {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}
.unit:first-of-type { border-top: 0; }

.unit__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.unit__id {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.unit__body {
  display: grid;
  gap: clamp(2rem, 4.5vw, 4rem);
}
@media (min-width: 64rem) {
  .unit__body { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
}

.unit__data {
  list-style: none;
  padding: 0;
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.unit__data li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.unit__data dt, .unit__data .k {
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.unit__data .v {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.unit__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.6rem, 1.2vw, 1rem);
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
}

.unit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.plan-figure {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1rem, 2vw, 1.75rem);
}
.plan-figure img { width: 100%; }
.plan-figure figcaption {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--ink-soft);
}


/* ---------------------------------------------------------------------------
   9. Vertrieb
   --------------------------------------------------------------------------- */
.team {
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 46rem) { .team { grid-template-columns: repeat(3, 1fr); } }

.member__portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  margin-bottom: 1.4rem;
  background: var(--paper-deep);
  overflow: hidden;
  border-bottom-left-radius: clamp(28px, 5vw, 64px);
}
.member__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

/* Platzhalter, solange noch kein Foto vorliegt.
   Wird ersetzt, sobald die Porträts geliefert sind. */
.member__portrait--placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, var(--paper-deep) 0%, var(--paper-warm) 100%);
}
.member__portrait--placeholder span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
}

.member__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
}
.member__role {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.member__note {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-mid);
  max-width: 30ch;
}

.office {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 60rem) { .office { grid-template-columns: 1fr 1fr; } }

.office address {
  font-style: normal;
  line-height: 1.9;
  color: var(--ink-mid);
}
.office address a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }


/* ---------------------------------------------------------------------------
   10. Kontaktformular
   --------------------------------------------------------------------------- */
.contact__intro { max-width: 42rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.form {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 46rem;
}

.field { display: grid; gap: 0.5rem; }

/* Die Einwilligung ist ein Fließtext-Label und darf nicht wie eine
   Feldbeschriftung in Versalien gesetzt werden. */
.field > label:not(.consent),
.fieldset__legend {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 242, 237, 0.72);
}

.field .req { color: var(--stone); }

.field input,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.85rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(245, 242, 237, 0.28);
  color: var(--paper);
  font-size: 1rem;
  transition: border-color var(--dur) var(--ease);
}
.field textarea { min-height: 7rem; resize: vertical; line-height: 1.7; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(245, 242, 237, 0.35); }

.field input:hover,
.field textarea:hover { border-bottom-color: rgba(245, 242, 237, 0.5); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--paper);
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 4px;
}

.field__hint {
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(245, 242, 237, 0.52);
}

.field__error {
  display: none;
  font-size: 0.8rem;
  color: #FFB4A8;
}
.field.has-error .field__error,
.fieldset.has-error .field__error { display: block; }
.field.has-error input,
.field.has-error textarea { border-bottom-color: #FFB4A8; }
.fieldset.has-error .choice { border-color: rgba(255, 180, 168, 0.55); }

@media (min-width: 46rem) {
  .form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.25rem);
  }
}

/* Interessens-Auswahl */
.fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.choices {
  display: grid;
  gap: 0.6rem;
}
@media (min-width: 46rem) { .choices { grid-template-columns: repeat(2, 1fr); } }

.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  min-height: 3.25rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(245, 242, 237, 0.22);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.choice:hover { border-color: rgba(245, 242, 237, 0.5); }

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}

.choice__box {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.05rem; height: 1.05rem;
  margin-top: 0.28rem;
  border: 1px solid rgba(245, 242, 237, 0.5);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.choice__box::after {
  content: '';
  width: 0.45rem; height: 0.25rem;
  border-left: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(-45deg) scale(0);
  transition: transform var(--dur) var(--ease);
}
.choice input:checked ~ .choice__box { background: var(--paper); border-color: var(--paper); }
.choice input:checked ~ .choice__box::after { transform: rotate(-45deg) scale(1); }
.choice input:checked ~ .choice__text { color: var(--paper); }
.choice:has(input:checked) { border-color: var(--paper); background: rgba(245, 242, 237, 0.05); }
.choice input:focus-visible ~ .choice__box { outline: 2px solid var(--paper); outline-offset: 3px; }

.choice__text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(245, 242, 237, 0.8);
}
.choice__text small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: rgba(245, 242, 237, 0.5);
}

/* Einwilligung */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  cursor: pointer;
}
.consent input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.consent .choice__box { margin-top: 0.2rem; }
.consent span {
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(245, 242, 237, 0.68);
}
.consent a { text-decoration: underline; text-underline-offset: 3px; }

/* Fehlerzusammenfassung nach fehlgeschlagenem Absenden */
.form__summary {
  display: none;
  padding: 1.1rem 1.3rem;
  border: 1px solid #FFB4A8;
  color: #FFD6CF;
}
.form__summary.is-visible { display: block; }
.form__summary h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.form__summary ul { margin: 0; padding-left: 1.1rem; font-size: 0.88rem; line-height: 1.7; }
.form__summary a { text-decoration: underline; text-underline-offset: 3px; }

.form__status {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(245, 242, 237, 0.8);
}
.form__status:empty { display: none; }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}


/* ---------------------------------------------------------------------------
   11. Fußzeile
   --------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(245, 242, 237, 0.62);
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem);
  font-size: 0.85rem;
}

.footer__top {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(245, 242, 237, 0.16);
}
@media (min-width: 60rem) { .footer__top { grid-template-columns: 1.2fr 1fr 1fr; } }

.footer__logo { width: 132px; margin-bottom: 1.5rem; opacity: 0.9; }

.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 237, 0.45);
  margin-bottom: 1.1rem;
}

.footer__links { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer__links a:hover { color: var(--paper); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  font-size: 0.76rem;
  color: rgba(245, 242, 237, 0.4);
}

.footer__disclaimer {
  max-width: 60rem;
  margin-top: 1.5rem;
  font-size: 0.72rem;
  line-height: 1.7;
  color: rgba(245, 242, 237, 0.4);
}


/* ---------------------------------------------------------------------------
   12. Lightbox
   --------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: clamp(1rem, 2.5vw, 2rem);
  background: rgba(12, 13, 15, 0.96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
/* Das hidden-Attribut muss die display-Regel oben überstimmen. */
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.lightbox__stage {
  display: grid;
  place-items: center;
  min-height: 0;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox__caption {
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.lb-btn {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); }
.lb-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.lightbox__nav { display: flex; gap: 0.6rem; }


/* ---------------------------------------------------------------------------
   13. Bewegung

   Elemente blenden beim Scrollen einmalig ein. Alles hier ist rein
   dekorativ — unter prefers-reduced-motion wird der Endzustand sofort
   gesetzt, ohne dass Inhalte verloren gehen.
   --------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Gestaffeltes Einblenden innerhalb einer Gruppe */
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .gallery__item img { transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ---------------------------------------------------------------------------
   14. Rechtstext-Seiten (Impressum, Datenschutz)
   --------------------------------------------------------------------------- */
.legal {
  padding-block: clamp(8rem, 14vw, 12rem) var(--section-y);
}
.legal__body {
  max-width: 44rem;
}
.legal__body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}
.legal__body h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.legal__body p,
.legal__body li {
  color: var(--ink-mid);
  font-size: 0.95rem;
}
.legal__body p + p { margin-top: 1rem; }
.legal__body ul { margin: 1rem 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.legal__body a { text-decoration: underline; text-underline-offset: 3px; }
.legal__body a:hover { color: var(--ink); }

/* Hinweis auf noch zu ergänzende Inhalte — im Betrieb entfernen */
.todo {
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-left: 2px solid var(--wood);
  background: var(--paper-warm);
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-mid);
}
.todo strong { color: var(--ink); }
