/* ==========================================================================
   Vogt Dachtechnik — Design System
   1. Tokens
   2. Reset & Basis
   3. Typografie
   4. Layout (Container, Raster, Sektionen)
   5. Elemente (Links, Labels, Bilder)
   6. Header & Navigation
   7. Hero
   8. Leistungen
   9. Projekte
  10. Ablauf
  11. Betrieb & Fakten
  12. Kontakt & Formular
  13. Footer
  14. Motion
   ========================================================================== */

/* 1. TOKENS ================================================================ */

:root {
  /* Farbe — drei Töne, ein Akzent. Mehr gibt es nicht. */
  --paper:        #F4F2ED;   /* warmes Off-White  */
  --paper-deep:   #E9E6DF;   /* helles Betongrau  */
  --ink:          #1B1A18;   /* tiefes Anthrazit  */
  --ink-mid:      #4A4843;   /* Fließtext sekundär */
  --ink-soft:     #66645D;   /* technische Angaben, AA auf beiden Flächen */
  --rule:         #D2CEC4;   /* Haarlinie          */
  --rule-strong:  #B4AFA3;
  --accent:       #A8442A;   /* Ziegelrot          */

  /* Typografie */
  --font-sans: "Instrument Sans", "Inter Tight", "Manrope", -apple-system,
               BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas,
               "Liberation Mono", monospace;

  --fs-display: clamp(2.4rem, 11.5vw, 8.5rem);
  --fs-h2:      clamp(1.75rem, 5.6vw, 3.6rem);
  --fs-h3:      clamp(1.35rem, 2.1vw, 1.9rem);
  --fs-lead:    clamp(1.0625rem, 1.35vw, 1.3rem);
  --fs-body:    clamp(1rem, 1.02vw, 1.0625rem);
  --fs-mono:    0.6875rem;

  /* Raster & Raum */
  --measure:    62ch;
  --gutter:     clamp(1.25rem, 2vw, 2rem);
  --pad-x:      clamp(1.25rem, 4.6vw, 4.5rem);
  --max:        1560px;

  --s-1:  0.5rem;
  --s-2:  1rem;
  --s-3:  1.5rem;
  --s-4:  2.5rem;
  --s-5:  4rem;
  --section-y: clamp(5rem, 11vw, 11rem);

  /* Bewegung */
  --dur:   200ms;
  --dur-l: 300ms;
  --ease:  cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2. RESET & BASIS ========================================================= */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }

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

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--pad-x);
  top: 0;
  transform: translateY(-120%);
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* 3. TYPOGRAFIE ============================================================ */

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.5;
  font-weight: 400;
}

.display {
  font-size: var(--fs-display);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 500;
  text-wrap: balance;
}

.heading {
  font-size: var(--fs-h2);
  line-height: 1.04;
  letter-spacing: -0.032em;
  font-weight: 500;
  text-wrap: balance;
}

.label {
  color: var(--ink-soft);
}

p { max-width: var(--measure); }

/* 4. LAYOUT ================================================================ */

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

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

.section__head {
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  row-gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: end;
}

.col-label { grid-column: 1 / -1; margin-bottom: var(--s-3); }
.col-body  { grid-column: 1 / -1; }

@media (min-width: 900px) {
  .col-label { grid-column: 1 / span 2; margin-bottom: 0; padding-top: 0.55rem; }
  .col-body  { grid-column: 4 / span 9; }
}

/* Abschnittstitel beginnen immer an derselben linken Achse. Das Label sitzt
   nicht mehr verloren in einer Randspalte, sondern eröffnet eine klare Zeile. */
.section__head .col-label,
.intro > .col-label,
.team-head .col-label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
}
.section__head .col-label::after,
.intro > .col-label::after,
.team-head .col-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--rule);
}
.section__head .col-body {
  grid-column: 1 / -1;
  max-width: 16ch;
}

@media (min-width: 900px) {
  .section__head .col-body { grid-column: 1 / span 8; }
}

.intro > .col-label { margin-bottom: clamp(2.25rem, 5vw, 4rem); }
.intro > .col-body { grid-column: 1 / -1; }
.intro__body .heading { max-width: 15ch; }

/* Zwei Textspalten unter einer Aussage, durch eine Haarlinie abgesetzt */
.intro__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-3) var(--gutter);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--rule);
}
.intro__cols p { color: var(--ink-mid); max-width: 44ch; }

@media (min-width: 760px) {
  .intro__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .intro__body {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    align-items: start;
  }
  .intro__body .heading { grid-column: 1 / span 6; }
  .intro__cols {
    grid-column: 7 / -1;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-2);
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .intro__cols p { max-width: 58ch; }
}

/* 5. ELEMENTE ============================================================== */

a { color: inherit; }

/* Textlinks: feine Unterstreichung, die beim Hover aufwächst */
.link-arrow,
.contact__data a,
.form-success a,
.field a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 0.12em;
  transition: color var(--dur) var(--ease), background-size var(--dur) var(--ease);
}
.link-arrow:hover,
.contact__data a:hover,
.form-success a:hover,
.field a:hover {
  color: var(--accent);
  background-size: 100% 2px;
}

.link-arrow {
  display: inline-block;
  font-size: var(--fs-lead);
  letter-spacing: -0.012em;
}
.link-arrow::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.6em;
  transition: transform var(--dur-l) var(--ease);
}
.link-arrow:hover::after { transform: translateX(0.28em); }

.link-arrow--button {
  border: 0;
  background-color: transparent;
  padding: 0 0 0.12em;
  cursor: pointer;
  text-align: left;
}

/* Bilder: rechteckig, ohne Radius, randlos über die volle Breite */
.bleed-figure {
  margin-top: clamp(3rem, 7vw, 6rem);
  background: var(--paper-deep);
}
.bleed-figure img {
  width: 100%;
  height: clamp(320px, 62vh, 720px);
  object-fit: cover;
}
.bleed-figure figcaption {
  color: var(--ink-soft);
  padding-top: var(--s-2);
}

/* 6. HEADER & NAVIGATION =================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.site-header[data-scrolled] { border-bottom-color: var(--rule); }

.site-header__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gutter);
  padding-block: clamp(1.1rem, 1.9vw, 1.6rem);
}

.wordmark {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  letter-spacing: -0.03em;
  font-size: 1.0625rem;
  white-space: nowrap;
}
.wordmark__name { font-weight: 500; }
.wordmark__suffix {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}

.nav { display: none; }
@media (min-width: 900px) { .nav { display: block; } }

.nav__list {
  display: flex;
  gap: clamp(1.5rem, 2.6vw, 2.75rem);
}
.nav__list a {
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: -0.008em;
  color: var(--ink);
  padding-bottom: 0.2em;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__list a:hover { background-size: 100% 1px; }
.nav__list a[aria-current="true"] {
  color: var(--accent);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 1px;
}

.site-header__tel {
  display: none;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.site-header__tel:hover { color: var(--accent); }
@media (min-width: 1180px) { .site-header__tel { display: inline-block; } }

.nav-toggle {
  border: 0;
  background: none;
  padding: 0.25rem 0;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--paper);
  padding-top: clamp(5rem, 14vh, 7rem);
  display: flex;
}
.mobile-menu[hidden] { display: none; }

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding-bottom: var(--s-5);
}
.mobile-menu__list { border-top: 1px solid var(--rule); }
.mobile-menu__list li {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(0.9rem, 3vw, 1.4rem);
}
.mobile-menu__list .num { color: var(--ink-soft); }
.mobile-menu__list a {
  text-decoration: none;
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.mobile-menu__foot {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--ink-soft);
  padding-top: var(--s-4);
}
.mobile-menu__foot a { text-decoration: none; }

body[data-menu-open] { overflow: hidden; }

/* 7. HERO ================================================================== */

.hero { padding-top: clamp(3rem, 8vw, 7rem); }

.hero__meta {
  display: flex;
  gap: 0.75rem;
  color: var(--ink-soft);
  padding-bottom: clamp(1.75rem, 4vw, 3.25rem);
}

.hero__foot {
  display: grid;
  gap: var(--s-4);
  padding-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}
@media (min-width: 900px) {
  .hero__foot {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    align-items: start;
  }
  .hero__lead   { grid-column: 1 / span 5; }
  .hero__action { grid-column: 11 / span 2; justify-self: end; }
}
.hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-mid);
  max-width: 46ch;
}
.hero__action { max-width: none; }

/* 8. LEISTUNGEN ============================================================ */

/* Asymmetrische Werkstoffkarten statt einer fortlaufenden Tabellenliste. */
.services {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gutter);
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(19rem, 52vw, 23rem);
  padding: clamp(1.4rem, 3vw, 2.25rem);
  background: var(--paper-deep);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-l) var(--ease), background-color var(--dur-l) var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  z-index: -1;
  width: 3.25rem;
  height: 3px;
  background: var(--accent);
  transition: width 450ms var(--ease);
}
.service:hover { transform: translateY(-3px); }
.service:hover::before { width: 100%; }

.service__num {
  display: block;
  margin-bottom: auto;
  color: var(--rule-strong);
  font-size: clamp(2.75rem, 6vw, 5.25rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
  transition: color var(--dur) var(--ease);
}
.service:hover .service__num { color: var(--accent); }

.service__title {
  max-width: 15ch;
  font-size: clamp(1.5rem, 2.8vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.service__desc {
  color: var(--ink-mid);
  max-width: 48ch;
  margin-top: var(--s-3);
}
.service__meta {
  color: var(--ink-soft);
  margin-top: auto;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.service:first-child {
  background: var(--ink);
  color: var(--paper);
}
.service:first-child .service__num { color: rgba(244, 242, 237, 0.24); }
.service:first-child .service__desc { color: rgba(244, 242, 237, 0.72); }
.service:first-child .service__meta { color: rgba(244, 242, 237, 0.56); }
.service:first-child:hover .service__num { color: var(--accent); }

@media (min-width: 760px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { min-height: clamp(21rem, 35vw, 26rem); }
  .service:first-child,
  .service:last-child { grid-column: 1 / -1; }
}

@media (min-width: 1100px) {
  .services { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .service { min-height: 22rem; }
  .service:nth-child(1) { grid-column: 1 / span 7; min-height: 29rem; }
  .service:nth-child(2) { grid-column: 8 / span 5; min-height: 29rem; }
  .service:nth-child(3) { grid-column: 1 / span 4; }
  .service:nth-child(4) { grid-column: 5 / span 4; }
  .service:nth-child(5) { grid-column: 9 / span 4; }
  .service:nth-child(6) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 4fr 5fr;
    column-gap: var(--gutter);
    align-items: start;
    min-height: 15rem;
  }
  .service:nth-child(6) .service__num { margin: 0; }
  .service:nth-child(6) .service__title { padding-top: 0.2rem; }
  .service:nth-child(6) .service__desc { margin-top: 0; padding-top: 0.2rem; }
  .service:nth-child(6) .service__meta { grid-column: 3; margin-top: 0; padding-top: var(--s-3); }
}

/* 9. PROJEKTE ============================================================== */

.section--projects { padding-bottom: clamp(3rem, 7vw, 7rem); }

.project {
  display: grid;
  gap: var(--s-3);
  padding-bottom: clamp(4rem, 9vw, 9rem);
}

.project__figure {
  overflow: hidden;
  background: var(--paper-deep);
  aspect-ratio: 3 / 2;
}
.project__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.project:hover .project__figure img { transform: scale(1.02); }

.project__num {
  color: var(--ink-soft);
  padding-bottom: var(--s-2);
}
.project__title {
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  padding-bottom: var(--s-2);
}
.project__text { color: var(--ink-mid); max-width: 44ch; }

.project__data {
  margin-top: var(--s-4);
  border-top: 1px solid var(--rule);
}
.project__data div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--rule);
}
.project__data dt { color: var(--ink-soft); }
.project__data dd { text-align: right; }

@media (min-width: 760px) {
  .project {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    align-items: end;
    padding-inline: var(--pad-x);
    max-width: var(--max);
    margin-inline: auto;
  }
  .project__figure--left  { grid-column: 1 / span 7; }
  .project__figure--right { grid-column: 6 / span 7; grid-row: 1; }
  .project__body          { grid-column: 9 / span 4; }
  .project--reverse .project__body { grid-column: 1 / span 4; grid-row: 1; }
}

@media (max-width: 759.98px) {
  .project__body { padding-inline: var(--pad-x); }
  .project__figure { aspect-ratio: 4 / 3; }
}

/* 9b. GALERIE & LIGHTBOX =================================================== */

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--gutter);
  row-gap: clamp(2.25rem, 4.5vw, 3.75rem);
}

.tile {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--paper-deep);
  overflow: hidden;
  cursor: pointer;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.tile:hover img { transform: scale(1.02); }

.gallery figcaption {
  color: var(--ink-soft);
  padding-top: var(--s-2);
  transition: color var(--dur) var(--ease);
}
.gallery__item:hover figcaption { color: var(--ink); }

@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .gallery__item--a { grid-column: 1 / span 7; }
  .gallery__item--b { grid-column: 9 / span 4; }
  .gallery__item--c { grid-column: 1 / span 4; }
  .gallery__item--d { grid-column: 5 / span 4; }
  .gallery__item--e { grid-column: 9 / span 4; }
  .gallery__item--f { grid-column: 5 / span 8; }

  .tile--tall   { aspect-ratio: 3 / 4; }
  .tile--square { aspect-ratio: 1 / 1; }
  .tile--band   { aspect-ratio: 16 / 9; }
}

/* Große Ansicht: eine Papierfläche, kein dunkler Vorhang */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(27, 26, 24, 0.6); }
.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
body[data-lightbox-open] { overflow: hidden; }
.lightbox[data-loading] .lightbox__figure img { opacity: 0.28; }

.lightbox__bar,
.lightbox__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: clamp(1.1rem, 1.9vw, 1.6rem);
  color: var(--ink-soft);
}
.lightbox__bar { border-bottom: 1px solid var(--rule); }
.lightbox__foot { border-top: 1px solid var(--rule); }
.lightbox__foot p { max-width: 52ch; }

.lightbox__figure {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.lightbox__media {
  position: absolute;
  inset: clamp(1rem, 3vw, 2.5rem) var(--pad-x);
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
}
.lightbox__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: var(--paper-deep);
  transition: opacity var(--dur) var(--ease);
}

.lightbox__close,
.lightbox__nav button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.lightbox__close:hover,
.lightbox__nav button:hover { color: var(--accent); }

.lightbox__nav {
  display: flex;
  gap: var(--s-3);
  flex: 0 0 auto;
}
.lightbox__nav button { font-size: 1.125rem; line-height: 1; }

/* 10. ABLAUF =============================================================== */

.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.step {
  padding-block: clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--rule);
}
.step__num { color: var(--accent); display: block; padding-bottom: var(--s-2); }
.step__title {
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.018em;
  padding-bottom: var(--s-1);
}
.step p { color: var(--ink-mid); max-width: 38ch; }

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--gutter);
  }
  .step {
    border-bottom: 0;
    padding-right: var(--gutter);
    padding-bottom: 0;
  }
}

/* 11. BETRIEB & FAKTEN ===================================================== */

.section--company { background: var(--paper-deep); }

.company { row-gap: clamp(2.5rem, 6vw, 4rem); }
.company__text { grid-column: 1 / -1; }
.company__figure { grid-column: 1 / -1; }

.company__text .label { padding-bottom: var(--s-3); }
.company__text .heading { padding-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.company__text p { color: var(--ink-mid); max-width: 46ch; }
.company__text p + p { margin-top: var(--s-2); }
.company__action { margin-top: var(--s-4); }
.company__action .link-arrow { color: var(--ink); }

.company__figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--rule);
}
.company__figure figcaption {
  color: var(--ink-soft);
  padding-top: var(--s-2);
}

@media (min-width: 900px) {
  .company__text   { grid-column: 1 / span 6; }
  .company__figure { grid-column: 8 / span 5; }
}

/* Team — drei Porträts in einer Tonlage */
.team-head {
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-top: 0;
  padding-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 0;
}
.team-head .col-body { grid-column: 1 / -1; }
.team-head__title {
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.15;
}

.team {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 3.5rem) var(--gutter);
}
@media (min-width: 760px) {
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.member__portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--rule);
  filter: grayscale(1) contrast(1.04);
  margin-bottom: var(--s-3);
}
.member__name {
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin: 0;
}
.member__role {
  color: var(--ink-soft);
  padding-block: 0.35rem var(--s-2);
  max-width: none;
}
.member__bio { color: var(--ink-mid); max-width: 34ch; }
.member__since {
  color: var(--ink-soft);
  margin-top: var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px solid var(--rule);
  max-width: none;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
}
.fact {
  background: var(--paper-deep);
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
}
.fact dt { color: var(--ink-soft); padding-bottom: 0.4rem; }
.fact dd {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  letter-spacing: -0.028em;
  line-height: 1.1;
  hyphens: auto;
}
@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* 12. KONTAKT & FORMULAR =================================================== */

.section--contact {
  background: var(--ink);
  color: var(--paper);
}
.section--contact .section__head .col-label { color: rgba(244, 242, 237, 0.62); }
.section--contact .section__head .col-label::after { background: rgba(244, 242, 237, 0.2); }
.section--contact .section__head { padding-bottom: clamp(3rem, 6vw, 5rem); }
.section--contact .section__head .col-body { max-width: 14ch; }

.contact__lead {
  grid-column: 1 / -1;
  color: rgba(244, 242, 237, 0.68);
  max-width: 37ch;
  line-height: 1.55;
}

.contact {
  row-gap: clamp(3rem, 7vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid rgba(244, 242, 237, 0.2);
}
.contact__direct { grid-column: 1 / -1; }
.contact__form-wrap { grid-column: 1 / -1; }

@media (min-width: 900px) {
  .section--contact .section__head .col-body { grid-column: 1 / span 7; }
  .contact__lead {
    grid-column: 9 / -1;
    align-self: end;
  }
  .contact__direct    { grid-column: 1 / span 5; }
  .contact__form-wrap { grid-column: 7 / span 6; }
}

.contact__tel {
  display: inline-block;
  font-size: clamp(1.65rem, 3.6vw, 2.9rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size var(--dur-l) var(--ease), color var(--dur) var(--ease);
}
.contact__tel:hover { color: var(--accent); background-size: 100% 1px; }

.contact__hint {
  color: rgba(244, 242, 237, 0.7);
  padding-top: var(--s-2);
  font-size: clamp(0.75rem, 0.95vw, 0.875rem);
  letter-spacing: 0.07em;
  line-height: 1.55;
}

.contact__data {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(244, 242, 237, 0.2);
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
  letter-spacing: 0.045em;
  line-height: 1.5;
}
.contact__data div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  padding-block: var(--s-2);
  border-bottom: 1px solid rgba(244, 242, 237, 0.2);
}
.contact__data dt { color: rgba(244, 242, 237, 0.66); }
.contact__data dd {
  color: rgba(244, 242, 237, 0.9);
  text-transform: none;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}

.section--contact .contact__data a { color: var(--paper); }

.contact__form-wrap {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(1.5rem, 3.5vw, 3rem);
}
.contact__form-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--rule);
}
.contact__form-head h3 {
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 500;
  text-align: right;
}

@media (max-width: 559.98px) {
  .contact__form-head { display: block; }
  .contact__form-head h3 { margin-top: var(--s-1); text-align: left; }
}
@media (min-width: 420px) {
  .contact__data div {
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: var(--s-2);
  }
}

/* Formular — Felder als Linien, keine Kästen */
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--s-3);
}
.field { display: flex; flex-direction: column; grid-column: span 1; }
.field--wide { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 0.45rem;
}
.field__opt { text-transform: none; letter-spacing: 0.04em; opacity: 0.75; }

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 0.55rem 0;
  width: 100%;
  transition: border-color var(--dur) var(--ease);
  appearance: none;
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: right 6px center, right 1px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.field input:hover:not([type="checkbox"]),
.field select:hover,
.field textarea:hover { border-bottom-color: var(--ink-soft); }

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

.field--check {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: var(--s-1);
}
.field--check input {
  width: 1rem;
  height: 1rem;
  margin: 0.28rem 0 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.field--check label {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--ink-mid);
  padding: 0;
  flex: 1;
  min-width: 12rem;
}
.field--check .field__error { flex-basis: 100%; }

.field__error {
  color: var(--accent);
  padding-top: 0.4rem;
  min-height: 0;
  text-transform: none;
  letter-spacing: 0.02em;
}
.field__error:empty { display: none; }

.field[data-invalid] input:not([type="checkbox"]),
.field[data-invalid] select,
.field[data-invalid] textarea { border-bottom-color: var(--accent); }

.form__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  margin-top: var(--s-3);
  border-top: 1px solid var(--rule);
  padding-top: var(--s-3);
}
.form__note { color: var(--ink-soft); }

.form-success { border-top: 1px solid var(--rule); padding-top: var(--s-3); }
.form-success__head {
  font-size: var(--fs-h3);
  letter-spacing: -0.022em;
  line-height: 1.15;
  padding-bottom: var(--s-2);
}
.form-success__text { color: var(--ink-mid); padding-bottom: var(--s-3); }

@media (max-width: 559.98px) {
  .form { grid-template-columns: minmax(0, 1fr); }
  .field { grid-column: 1 / -1; }
}

/* 13. FOOTER =============================================================== */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
}
.site-footer__grid {
  display: grid;
  gap: var(--s-4);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
@media (min-width: 760px) {
  .site-footer__grid {
    grid-template-columns: 1fr auto auto;
    column-gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
  }
}
.wordmark--footer { display: flex; gap: 0.5rem; align-items: baseline; }
.site-footer__addr { color: var(--ink-soft); padding-top: var(--s-1); }

.site-footer__demo {
  margin-top: var(--s-3);
  color: var(--ink-soft);
  font-size: 0.875rem;
}
.site-footer__demo .mono {
  color: var(--accent);
  font-size: 0.75rem;
}
.site-footer__demo p { max-width: none; }
.site-footer__demo p + p { margin-top: 0.3rem; }
.site-footer__demo a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
  transition: color var(--dur) var(--ease);
}
.site-footer__demo a:hover { color: var(--accent); }

.site-footer__nav,
.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.site-footer__nav a,
.site-footer__legal a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color var(--dur) var(--ease);
  width: fit-content;
}
.site-footer__nav a:hover,
.site-footer__legal a:hover { color: var(--accent); }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
  justify-content: space-between;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  padding-top: var(--s-2);
  max-width: none;
}

/* 13b. RECHTSSEITEN ======================================================== */

.legal { padding-top: clamp(2rem, 5vw, 4rem); }
.legal .heading { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.legal__body { grid-column: 1 / -1; }
@media (min-width: 900px) { .legal__body { grid-column: 4 / span 7; } }

.legal__body h2 {
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.018em;
  padding-bottom: var(--s-1);
}
.legal__body section {
  border-top: 1px solid var(--rule);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
}
.legal__body p { color: var(--ink-mid); }
.legal__body p + p { margin-top: var(--s-2); }
.legal__body a { color: var(--ink); text-decoration-color: var(--accent); }
.legal__body a:hover { color: var(--accent); }

/* 14. MOTION =============================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@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;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .project:hover .project__figure img { transform: none; }
}

/* Anker unter dem gehefteten Kopf */
[id] { scroll-margin-top: clamp(4.5rem, 9vw, 6rem); }

/* Druck — reduziert auf Inhalt */
@media print {
  .site-header, .mobile-menu, .bleed-figure, .project__figure,
  .company__figure, .form { display: none; }
  body { background: #fff; }
}
