/* ==========================================================================
   Becker-Bau GmbH – Gestaltungssystem
   Leitidee: Substanz. Präzision. Verwandlung.
   ========================================================================== */

:root {
  /* Graphit */
  --c-ink: #18191b;
  --c-ink-2: #2a2c2f;
  --c-ink-3: #3d4044;
  --c-muted: #55585c;
  /* Mineralische Flächen */
  --c-paper: #f3f1ec;
  --c-paper-2: #e9e6df;
  --c-paper-3: #d9d5cc;
  --c-white: #fbfaf8;
  --c-line: rgba(24, 25, 27, 0.15);
  --c-line-strong: rgba(24, 25, 27, 0.34);
  /* Dunkle Sektionen */
  --c-dark: #17181a;
  --c-dark-2: #1f2124;
  --c-dark-3: #2b2d31;
  --c-on-dark: #eeebe5;
  --c-on-dark-muted: #aaa69e;
  --c-line-dark: rgba(238, 235, 229, 0.16);
  --c-line-dark-strong: rgba(238, 235, 229, 0.34);
  /* Akzent: Ziegeloxid – das Logo ist rein schwarz, der Akzent stammt aus Mauerwerk und Klinker */
  --c-accent: #a04a2c;
  --c-accent-on-dark: #d9805f;

  --f-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4.6vw, 72px);
  --col-gap: clamp(16px, 2.2vw, 36px);
  --max: 1440px;
  --space-section: clamp(88px, 11vw, 184px);
  --header-h: 96px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Grundlagen
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  hyphens: manual;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

ol,
ul {
  padding: 0;
  list-style: none;
}

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

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

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

.on-dark :focus-visible,
.on-dark:focus-visible {
  outline-color: var(--c-accent-on-dark);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--c-ink);
  color: var(--c-paper);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

/* --------------------------------------------------------------------------
   Raster und Typografie
   -------------------------------------------------------------------------- */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

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

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.label--plain::before {
  content: none;
}

.on-dark .label {
  color: var(--c-on-dark-muted);
}

.display,
.h1,
.h2,
.h3 {
  font-family: var(--f-sans);
  font-stretch: 86%;
  font-weight: 520;
  letter-spacing: -0.024em;
  line-height: 1.02;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.65rem, 0.6rem + 4.4vw, 5.9rem);
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 0.98;
}

.h1 {
  font-size: clamp(2.5rem, 1.4rem + 4vw, 5.25rem);
}

.h2 {
  font-size: clamp(2rem, 1.25rem + 2.9vw, 4.1rem);
}

.h3 {
  font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.85rem);
  line-height: 1.12;
  letter-spacing: -0.016em;
}

.lead {
  font-size: clamp(1.125rem, 1.02rem + 0.42vw, 1.375rem);
  line-height: 1.55;
  letter-spacing: -0.006em;
  max-width: 40ch;
  text-wrap: pretty;
}

.prose {
  max-width: 64ch;
  text-wrap: pretty;
}

.prose > * + * {
  margin-top: 1.1em;
}

.muted {
  color: var(--c-muted);
}

.on-dark .muted {
  color: var(--c-on-dark-muted);
}

.accent {
  color: var(--c-accent);
}

.on-dark .accent {
  color: var(--c-accent-on-dark);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--c-line);
}

.on-dark {
  background: var(--c-dark);
  color: var(--c-on-dark);
}

.on-dark .rule {
  background: var(--c-line-dark);
}

/* Kennzeichnung generierter Bilder */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 7px 10px 6px;
  background: rgba(23, 24, 26, 0.78);
  color: #f1eee8;
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
}

.tag--light {
  background: rgba(243, 241, 236, 0.86);
  color: var(--c-ink);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--c-ink);
  --btn-fg: var(--c-paper);
  --btn-line: var(--c-ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 56px;
  padding: 0 22px 0 24px;
  border: 1px solid var(--btn-line);
  border-radius: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 560;
  font-stretch: 96%;
  letter-spacing: 0.002em;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  isolation: isolate;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.btn .arrow {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.45s var(--ease-out);
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: scaleX(1);
}

.btn:hover .arrow,
.btn:focus-visible .arrow {
  transform: translateX(4px);
}

.btn--primary:hover {
  --btn-bg: var(--c-ink-2);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--c-ink);
  --btn-line: var(--c-line-strong);
}

.btn--ghost:hover {
  --btn-line: var(--c-ink);
}

.btn--light {
  --btn-bg: var(--c-paper);
  --btn-fg: var(--c-ink);
  --btn-line: var(--c-paper);
}

.btn--light::after {
  background: var(--c-accent);
}

.btn--light:hover {
  --btn-bg: #fff;
}

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--c-on-dark);
  --btn-line: var(--c-line-dark-strong);
}

.btn--ghost-light:hover {
  --btn-line: var(--c-on-dark);
}

.btn--ghost-light::after {
  background: var(--c-accent-on-dark);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 560;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.text-link .arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.45s var(--ease-out);
}

.text-link:hover .arrow,
.text-link:focus-visible .arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-header.is-solid {
  background: var(--c-paper);
  box-shadow: 0 1px 0 var(--c-line);
}

.brand {
  display: block;
  flex: none;
  line-height: 0;
}

.brand img {
  height: 68px;
  width: auto;
  transition: height 0.4s var(--ease);
}

.site-header.is-compact {
  --header-h: 76px;
}

.site-header.is-compact .brand img {
  height: 60px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 40px);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 36px);
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 0.9875rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-list a[aria-current="page"]::after {
  background: var(--c-accent);
  height: 2px;
}

.nav-phone {
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-phone:hover {
  text-decoration: underline;
}

.site-header.is-over-hero:not(.is-solid) .nav-phone {
  padding: 6px 8px;
  background: rgba(243, 241, 236, 0.86);
}

.nav .btn {
  min-height: 46px;
  padding: 0 16px 0 18px;
  gap: 16px;
  font-size: 0.9375rem;
}

.menu-toggle {
  display: none;
}

@media (max-width: 1080px) {
  .nav-phone {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 76px;
  }

  .brand img,
  .site-header.is-compact .brand img {
    height: 52px;
  }

  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 4px 0 12px;
    border: 0;
    background: transparent;
    font-family: var(--f-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .menu-toggle .bars {
    position: relative;
    width: 24px;
    height: 10px;
  }

  .menu-toggle .bars::before,
  .menu-toggle .bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.35s var(--ease);
  }

  .menu-toggle .bars::before {
    top: 0;
  }

  .menu-toggle .bars::after {
    bottom: 0;
  }

  .menu-toggle[aria-expanded="true"] .bars::before {
    transform: translateY(4.25px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .bars::after {
    transform: translateY(-4.25px) rotate(-45deg);
  }

  .js .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px var(--gutter) 40px;
    background: var(--c-paper);
    border-top: 1px solid var(--c-line);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }

  .js .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
  }

  .js .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .js .nav-list a {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--c-line);
    font-size: 1.75rem;
    font-stretch: 86%;
    font-weight: 520;
    letter-spacing: -0.02em;
  }

  .js .nav-list a::after {
    display: none;
  }

  .js .nav-list a[aria-current="page"] {
    color: var(--c-accent);
  }

  .js .nav .nav-phone {
    display: block;
    margin-top: 28px;
    font-size: 1rem;
  }

  .js .nav .btn {
    margin-top: 20px;
    min-height: 56px;
  }

  /* ohne JavaScript bleibt die Navigation sichtbar und bricht um */
  html:not(.js) .site-header {
    position: relative;
    height: auto;
    background: var(--c-paper);
  }

  html:not(.js) .site-header .wrap {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  html:not(.js) .nav,
  html:not(.js) .nav-list {
    flex-wrap: wrap;
  }
}

body.menu-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: max(640px, 100svh);
  max-height: 1180px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #dfe3e8;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 62%;
}

.hero-media video {
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.hero-media video.is-playing {
  opacity: 1;
}

/* funktionale Aufhellung der Textzone über dem Himmel – kein Dekorverlauf */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(243, 241, 236, 0.72) 0%, rgba(243, 241, 236, 0.46) 30%, rgba(243, 241, 236, 0) 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + clamp(24px, 6vh, 72px));
  padding-bottom: 120px;
}

.hero-copy {
  max-width: min(46vw, 700px);
}

.hero .label {
  color: var(--c-ink-2);
}

.hero h1 {
  margin-top: 26px;
}

.hero h1 .line {
  display: block;
}

.hero-text {
  margin-top: 30px;
  max-width: 31ch;
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--c-ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero-actions .btn--ghost {
  --btn-bg: rgba(243, 241, 236, 0.82);
}

.hero-foot {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-foot .wrap {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 24px;
  padding-bottom: 28px;
}

.hero-foot .label {
  color: var(--c-ink);
  background: rgba(243, 241, 236, 0.86);
  padding: 8px 12px;
}

@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .hero {
    display: block;
    min-height: 0;
    max-height: none;
    background: var(--c-dark);
  }

  /* Bildfläche mit Headline über dem Himmel, darunter ein ruhiges Graphitfeld für Text und Aktionen */
  .hero-media {
    position: relative;
    height: 70svh;
    min-height: 500px;
    background: #cdd6e1;
  }

  .hero-media img,
  .hero-media video {
    object-position: 56% 56%;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(243, 241, 236, 0.5) 0%, rgba(243, 241, 236, 0) 40%);
  }

  .hero-content {
    position: static;
    display: block;
    padding: 0;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-copy-top {
    position: absolute;
    z-index: 2;
    top: calc(var(--header-h) + 18px);
    left: var(--gutter);
    right: var(--gutter);
  }

  .hero h1 {
    margin-top: 14px;
    font-size: clamp(2.3rem, 1.1rem + 6vw, 3.1rem);
  }

  .hero-copy-bottom {
    padding: 26px 0 36px;
    color: var(--c-on-dark);
  }

  .hero-text {
    margin-top: 0;
    font-size: 1.0625rem;
    color: var(--c-on-dark);
  }

  .hero-actions {
    margin-top: 24px;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions .btn--primary {
    --btn-bg: var(--c-paper);
    --btn-fg: var(--c-ink);
    --btn-line: var(--c-paper);
  }

  .hero-actions .btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--c-on-dark);
    --btn-line: rgba(238, 235, 229, 0.5);
  }

  .hero-foot {
    top: calc(max(500px, 70svh) - 42px);
    bottom: auto;
  }

  .hero-foot .wrap {
    padding: 0;
  }
}

/* Tablet quer und nahezu quadratische Fenster: Text links, Hochformatmotiv rechts */
@media (min-width: 761px) and (min-aspect-ratio: 4/5) and (max-aspect-ratio: 3/2) {
  .hero {
    background: var(--c-paper);
  }

  .hero-media {
    left: 46%;
  }

  .hero-media::after {
    background: none;
  }

  .hero-media img {
    object-position: 58% 74%;
  }

  .hero-media video {
    display: none;
  }

  .hero-copy {
    max-width: calc(46vw - var(--gutter) - 32px);
  }

  .hero h1 {
    font-size: clamp(2.6rem, 0.8rem + 4.4vw, 4.6rem);
  }
}

/* kurze Smartphone-Displays: Headline und Primäraktion bleiben im ersten Bildschirm */
@media (max-width: 760px) and (max-height: 720px) {
  .hero-media {
    height: 64svh;
    min-height: 380px;
  }

  .hero-media img,
  .hero-media video {
    object-position: 56% 30%;
  }

  .hero-copy-top .label {
    display: none;
  }

  .hero h1 {
    margin-top: 0;
    font-size: 2.05rem;
  }

  .hero-copy-bottom {
    padding-top: 20px;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-foot {
    top: calc(max(380px, 64svh) - 42px);
  }
}

/* --------------------------------------------------------------------------
   Sektionen allgemein
   -------------------------------------------------------------------------- */

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

.section-head {
  row-gap: 28px;
  align-items: end;
}

.section-head .label {
  grid-column: 1 / -1;
}

.section-head .h2 {
  grid-column: 1 / span 7;
}

.section-head .section-intro {
  grid-column: 9 / span 4;
}

@media (max-width: 900px) {
  .section-head .h2,
  .section-head .section-intro {
    grid-column: 1 / -1;
  }
}

/* Vorstellung */

.intro .statement {
  grid-column: 1 / span 9;
  margin-top: 32px;
}

.intro-body {
  grid-column: 6 / span 6;
  margin-top: clamp(40px, 6vw, 88px);
}

.principles {
  grid-column: 1 / -1;
  margin-top: clamp(64px, 8vw, 120px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--col-gap);
}

.principle {
  padding-top: 22px;
  border-top: 1px solid var(--c-line-strong);
}

.principle .no {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--c-accent);
}

.principle h3 {
  margin-top: 40px;
  font-size: 1.375rem;
  font-stretch: 90%;
  font-weight: 560;
  letter-spacing: -0.012em;
  line-height: 1.2;
}

.principle p {
  margin-top: 12px;
  max-width: 34ch;
  color: var(--c-muted);
}

@media (max-width: 900px) {
  .intro .statement,
  .intro-body {
    grid-column: 1 / -1;
  }

  .principles {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .principle h3 {
    margin-top: 20px;
  }
}

/* --------------------------------------------------------------------------
   Leistungen
   -------------------------------------------------------------------------- */

.services {
  background: var(--c-white);
}

.services-layout {
  margin-top: clamp(56px, 7vw, 112px);
  align-items: start;
}

.services-figure {
  grid-column: 1 / span 6;
  position: sticky;
  top: calc(var(--header-h) + 32px);
  height: calc(100svh - var(--header-h) - 64px);
  max-height: 860px;
  min-height: 480px;
}

.services-figure .frame {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--c-paper-2);
}

.services-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s var(--ease), transform 1.4s var(--ease-out);
}

.services-figure img.is-active {
  opacity: 1;
  transform: none;
}

.services-figure .figure-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 16px;
  pointer-events: none;
}

.services-figure .figure-name {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(243, 241, 236, 0.9);
  padding: 8px 10px 7px;
}

.services-list {
  grid-column: 8 / span 5;
}

.service-group + .service-group {
  margin-top: clamp(56px, 6vw, 96px);
}

.service-group-title {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-ink);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.service {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 8px;
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--c-line);
  min-height: 34svh;
  align-content: start;
}

.service-no {
  padding-top: 6px;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--c-muted);
  transition: color 0.4s var(--ease);
}

.service h3 {
  transition: color 0.4s var(--ease);
}

.service p {
  grid-column: 2;
  margin-top: 14px;
  max-width: 44ch;
  color: var(--c-muted);
}

.service::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 56px;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

.js .services-list.has-active .service:not(.is-active) h3 {
  color: var(--c-ink-3);
}

.service.is-active .service-no {
  color: var(--c-accent);
}

.service.is-active::before {
  transform: scaleX(1);
}

.service-media {
  display: none;
}

@media (max-width: 1023px) {
  .services-figure {
    display: none;
  }

  .services-list {
    grid-column: 1 / -1;
  }

  .service {
    min-height: 0;
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .service-media {
    display: block;
    grid-column: 1 / -1;
    margin-top: 24px;
    position: relative;
  }

  .service-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .service-media.is-portrait img {
    aspect-ratio: 4 / 5;
  }

  .service-media.is-wide img {
    aspect-ratio: 16 / 10;
  }

  .service-media .tag {
    position: absolute;
    left: 10px;
    bottom: 10px;
  }

  .js .services-list.has-active .service:not(.is-active) h3 {
    color: inherit;
  }

  .service::before {
    display: none;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .service-media {
    grid-column: 2 / -1;
  }
}

/* --------------------------------------------------------------------------
   Transformation
   -------------------------------------------------------------------------- */

.transform {
  position: relative;
  background: var(--c-dark);
  color: var(--c-on-dark);
}

.transform-head {
  padding-top: var(--space-section);
  padding-bottom: clamp(48px, 6vw, 96px);
}

.transform-head .h2 {
  grid-column: 1 / span 8;
}

.transform-head .section-intro {
  grid-column: 9 / span 4;
}

.transform-head .note {
  grid-column: 9 / span 4;
  margin-top: 20px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--c-on-dark-muted);
}

.transform-skip {
  position: absolute;
  left: var(--gutter);
  z-index: 5;
  padding: 10px 14px;
  background: var(--c-paper);
  color: var(--c-ink);
  font-weight: 600;
  transform: translateY(-200%);
  opacity: 0;
}

.transform-skip:focus {
  transform: none;
  opacity: 1;
}

/* Bühne für die scrollgekoppelte Sequenz (nur Desktop, per JavaScript aktiviert) */
.transform-stage {
  display: none;
  position: relative;
}

.transform.is-scrub .transform-stage {
  display: block;
  height: 440vh;
}

.transform.is-scrub .transform-list {
  display: none;
}

.transform-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: calc(var(--header-h) + 16px) var(--gutter) 32px;
  display: grid;
  grid-template-columns: minmax(280px, 3.6fr) minmax(0, 8.4fr);
  column-gap: var(--col-gap);
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
}

.transform-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  padding-block: 8px;
}

.transform-steps {
  counter-reset: step;
}

.transform-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 16px 0 18px;
  border-top: 1px solid var(--c-line-dark);
  color: var(--c-on-dark-muted);
  transition: color 0.4s var(--ease);
}

.transform-step:last-child {
  border-bottom: 1px solid var(--c-line-dark);
}

.transform-step .no {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding-top: 5px;
}

.transform-step h3 {
  font-size: 1.25rem;
  font-stretch: 90%;
  font-weight: 540;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.transform-step p {
  grid-column: 2;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 0.96875rem;
  line-height: 1.6;
  color: var(--c-on-dark-muted);
  transition: max-height 0.6s var(--ease), opacity 0.5s var(--ease), margin 0.6s var(--ease);
}

.transform-step .bar {
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 100%;
  background: var(--c-accent-on-dark);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

.transform-step.is-active {
  color: var(--c-on-dark);
}

.transform-step.is-active p {
  max-height: 12em;
  opacity: 1;
  margin-top: 10px;
}

.transform-step.is-active .no {
  color: var(--c-accent-on-dark);
}

.transform-panel .hint {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-on-dark-muted);
}

.transform-plate {
  position: relative;
  align-self: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #2a2c30;
}

.transform-plate canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.plate-meta {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.plate-meta .tag {
  position: absolute;
  left: 14px;
  top: 14px;
}

.plate-counter {
  position: absolute;
  right: 14px;
  top: 14px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  background: rgba(23, 24, 26, 0.78);
  color: #f1eee8;
  padding: 7px 10px 6px;
}

.plate-loading {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(23, 24, 26, 0.78);
  color: #f1eee8;
  padding: 7px 10px 6px;
  transition: opacity 0.4s var(--ease);
}

.plate-loading.is-done {
  opacity: 0;
}

/* Bauteil-Beschriftungen */
.annotations {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.anno {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.anno.is-visible {
  opacity: 1;
}

.anno .pin {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.anno .leader {
  position: absolute;
  left: 6px;
  top: -0.5px;
  width: var(--len, 56px);
  height: 1px;
  background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18);
}

.anno .text {
  position: absolute;
  left: calc(var(--len, 56px) + 10px);
  top: -14px;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 8px 10px 7px;
  background: rgba(23, 24, 26, 0.84);
  color: #f1eee8;
}

.anno.is-left .leader {
  left: auto;
  right: 6px;
}

.anno.is-left .text {
  left: auto;
  right: calc(var(--len, 56px) + 10px);
}

/* Statische Liste: ohne JavaScript, bei „Bewegung reduzieren“ und auf Smartphones */
.transform-list {
  padding-bottom: var(--space-section);
}

.transform-list ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) var(--col-gap);
}

.state figure {
  position: relative;
}

.state img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--c-dark-3);
}

.state figure .tag {
  position: absolute;
  left: 10px;
  top: 10px;
}

.state-text {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  margin-top: 18px;
}

.state-text .no {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--c-accent-on-dark);
  padding-top: 5px;
}

.state-text p {
  grid-column: 2;
  margin-top: 8px;
  color: var(--c-on-dark-muted);
  max-width: 48ch;
}

/* Vereinfachte Ansicht für Smartphones und Tablets */
.state-tabs {
  display: none;
}

.transform.is-tabs .state-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--c-line-dark);
  margin-bottom: 20px;
}

.state-tabs button {
  position: relative;
  min-height: 56px;
  padding: 12px 4px 10px;
  border: 0;
  background: transparent;
  color: var(--c-on-dark-muted);
  text-align: left;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  cursor: pointer;
}

.state-tabs button span {
  display: block;
  font-size: 0.75rem;
}

.state-tabs button::before {
  content: "";
  position: absolute;
  left: 0;
  right: 6px;
  top: -1px;
  height: 2px;
  background: var(--c-accent-on-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.state-tabs button[aria-selected="true"] {
  color: var(--c-on-dark);
}

.state-tabs button[aria-selected="true"]::before {
  transform: scaleX(1);
}

.transform.is-tabs .transform-list ol {
  display: grid;
  grid-template-columns: 1fr;
}

.transform.is-tabs .state {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}

.transform.is-tabs .state.is-current {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.6s var(--ease), visibility 0s;
}

.transform.is-tabs .state img {
  aspect-ratio: 1 / 1;
}

.state-nav {
  display: none;
}

.transform.is-tabs .state-nav {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.state-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 56px;
  padding: 0 16px;
  border: 1px solid var(--c-line-dark-strong);
  background: transparent;
  color: var(--c-on-dark);
  cursor: pointer;
}

.state-nav svg {
  width: 18px;
  height: 18px;
}

.state-nav button[disabled] {
  opacity: 0.35;
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .transform.is-tabs .state,
  .transform.is-tabs .state.is-current {
    transition: none;
  }
}

@media (max-width: 760px) {
  .transform-head .h2,
  .transform-head .section-intro,
  .transform-head .note {
    grid-column: 1 / -1;
  }

  .transform-head .section-intro {
    margin-top: 24px;
  }

  .transform-list ol {
    grid-template-columns: 1fr;
  }

  html:not(.js) .state img {
    aspect-ratio: 1 / 1;
  }
}

@media (min-width: 761px) and (max-width: 1023px) {
  .transform-head .h2 {
    grid-column: 1 / -1;
  }

  .transform-head .section-intro,
  .transform-head .note {
    grid-column: 1 / span 8;
  }

  .transform-head .section-intro {
    margin-top: 24px;
  }

  .transform.is-tabs .state img {
    aspect-ratio: 16 / 10;
  }
}

/* --------------------------------------------------------------------------
   Material
   -------------------------------------------------------------------------- */

.materials {
  background: var(--c-paper);
}

.materials-plate {
  position: relative;
  margin-top: clamp(48px, 6vw, 88px);
  background: var(--c-dark);
}

.materials-plate img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.materials-plate .tag {
  position: absolute;
  left: 14px;
  top: 14px;
}

.material-index {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 20px;
}

.material-index li {
  padding-top: 12px;
  border-top: 1px solid var(--c-line-strong);
}

.material-index .no {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  color: var(--c-accent);
}

.material-index .name {
  display: block;
  margin-top: 8px;
  font-weight: 560;
  font-stretch: 92%;
  line-height: 1.25;
}

.material-index .use {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--c-muted);
}

@media (max-width: 1023px) {
  .material-index {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .materials-plate img {
    aspect-ratio: 4 / 3;
    object-position: 62% 50%;
  }

  .material-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   Über uns (Startseite)
   -------------------------------------------------------------------------- */

.about {
  background: var(--c-white);
}

.about-grid {
  align-items: center;
  row-gap: 48px;
}

.about-media {
  grid-column: 1 / span 6;
  position: relative;
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 6% 50%;
}

.about-media .tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
}

.about-copy {
  grid-column: 8 / span 5;
}

.about-copy .h2 {
  margin-top: 28px;
}

.about-copy .prose {
  margin-top: 32px;
}

.signature {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line-strong);
}

.signature .role {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.signature .name {
  font-size: 1.25rem;
  font-weight: 560;
  font-stretch: 90%;
}

.about-copy .text-link {
  margin-top: 36px;
}

@media (max-width: 900px) {
  .about-media,
  .about-copy {
    grid-column: 1 / -1;
  }

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

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */

.contact {
  position: relative;
}

.contact-grid {
  row-gap: 56px;
}

.contact-copy {
  grid-column: 1 / span 5;
}

.contact-copy .h1 {
  margin-top: 28px;
}

.contact-copy .lead {
  margin-top: 28px;
  color: var(--c-on-dark-muted);
}

.contact-details {
  margin-top: 48px;
  border-top: 1px solid var(--c-line-dark);
}

.contact-details > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-line-dark);
}

.contact-details dt {
  padding-top: 4px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-on-dark-muted);
}

.contact-details dd {
  font-size: 1.1875rem;
  line-height: 1.45;
}

.contact-details a {
  text-decoration: none;
  border-bottom: 1px solid var(--c-line-dark-strong);
  transition: border-color 0.3s var(--ease);
}

.contact-details a:hover {
  border-color: var(--c-on-dark);
}

.contact-form-wrap {
  grid-column: 7 / span 6;
}

@media (max-width: 1023px) {
  .contact-copy,
  .contact-form-wrap {
    grid-column: 1 / -1;
  }
}

/* Formular */
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
}

.form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form .field--full {
  grid-column: 1 / -1;
}

.form label,
.form .legend {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-on-dark-muted);
}

.form label .req {
  color: var(--c-accent-on-dark);
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--c-line-dark-strong);
  border-radius: 0;
  background: var(--c-dark-2);
  color: var(--c-on-dark);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.form select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

.form textarea {
  min-height: 168px;
  resize: vertical;
}

.form input:hover,
.form select:hover,
.form textarea:hover {
  border-color: rgba(238, 235, 229, 0.55);
}

.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  outline: 2px solid var(--c-accent-on-dark);
  outline-offset: 0;
  border-color: transparent;
  background: var(--c-dark-3);
}

.form [aria-invalid="true"] {
  border-color: #e0896a;
}

.form .error {
  min-height: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #f0a387;
}

.form .error:empty {
  display: none;
}

.form .hint {
  font-size: 0.8125rem;
  color: var(--c-on-dark-muted);
}

.consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.consent input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--c-accent-on-dark);
}

.consent label {
  font-family: var(--f-sans);
  font-size: 0.9375rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.55;
  color: var(--c-on-dark-muted);
}

.consent .error {
  grid-column: 2;
}

.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 8px;
}

.form-status {
  grid-column: 1 / -1;
  padding: 18px 20px;
  border: 1px solid var(--c-line-dark-strong);
  background: var(--c-dark-2);
  font-size: 0.96875rem;
  line-height: 1.6;
}

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

.form-status.is-success {
  border-color: #8fb59a;
}

.form-status.is-error {
  border-color: #e0896a;
}

.form-status strong {
  display: block;
  margin-bottom: 4px;
}

.form-status a {
  color: inherit;
}

.form .privacy-note {
  font-size: 0.875rem;
  color: var(--c-on-dark-muted);
}

@media (max-width: 640px) {
  .form {
    grid-template-columns: 1fr;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--c-dark);
  color: var(--c-on-dark);
  border-top: 1px solid var(--c-line-dark);
}

.footer-top {
  padding-block: clamp(64px, 8vw, 112px) 48px;
  row-gap: 48px;
}

.footer-brand {
  grid-column: 1 / span 4;
}

.footer-brand img {
  width: clamp(150px, 15vw, 210px);
  height: auto;
  /* Originallogo (schwarz) für die dunkle Fläche in Weiß dargestellt – Form und Proportion unverändert */
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.footer-col {
  grid-column: span 2;
}

.footer-col--wide {
  grid-column: span 4;
}

.footer-col h2 {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-on-dark-muted);
  margin-bottom: 18px;
}

.footer-col li + li {
  margin-top: 8px;
}

.footer-col a {
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-col address {
  font-style: normal;
}

.footer-bottom {
  border-top: 1px solid var(--c-line-dark);
}

.footer-bottom .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 24px 32px;
  font-size: 0.875rem;
  color: var(--c-on-dark-muted);
}

.footer-bottom p {
  max-width: 72ch;
}

@media (max-width: 1023px) {
  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col,
  .footer-col--wide {
    grid-column: span 6;
  }
}

@media (max-width: 560px) {
  .footer-col,
  .footer-col--wide {
    grid-column: 1 / -1;
  }
}

/* Kontaktleiste für Smartphones */
.mobile-cta {
  display: none;
}

@media (max-width: 760px) {
  .js .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1px;
    background: var(--c-line-dark);
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(110%);
    transition: transform 0.4s var(--ease);
  }

  .js .mobile-cta.is-visible {
    transform: none;
  }

  .mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    background: var(--c-dark);
    color: var(--c-on-dark);
    font-weight: 560;
    text-decoration: none;
  }

  .mobile-cta a.primary {
    background: var(--c-paper);
    color: var(--c-ink);
  }

  .mobile-cta svg {
    width: 18px;
    height: 18px;
  }

  .js body.has-mobile-cta .site-footer {
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }
}

/* --------------------------------------------------------------------------
   Unterseiten
   -------------------------------------------------------------------------- */

.page-hero {
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 140px));
  padding-bottom: clamp(56px, 7vw, 104px);
  border-bottom: 1px solid var(--c-line);
}

.page-hero .h1 {
  margin-top: 24px;
  grid-column: 1 / span 9;
}

.page-hero .lead {
  margin-top: 28px;
  grid-column: 1 / span 7;
}

.page-hero > .wrap > .label {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .page-hero .h1,
  .page-hero .lead {
    grid-column: 1 / -1;
  }
}

/* Rechtstexte – Inhalt unverändert, nur die Darstellung ist neu */
.legal {
  padding-block: clamp(56px, 7vw, 112px) var(--space-section);
}

.legal-body {
  grid-column: 4 / span 7;
}

.legal-nav {
  grid-column: 1 / span 2;
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
}

.legal-nav a {
  display: block;
  padding: 8px 0;
  border-top: 1px solid var(--c-line);
  font-size: 0.9375rem;
  text-decoration: none;
}

.legal-nav a[aria-current="page"] {
  color: var(--c-accent);
}

.legal-block {
  padding: 28px 0 32px;
  border-top: 1px solid var(--c-line-strong);
}

.legal-block:last-child {
  border-bottom: 1px solid var(--c-line-strong);
}

.legal-block h2 {
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 14px;
}

.legal-block p {
  max-width: 64ch;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.legal-block p + p {
  margin-top: 0.2em;
}

.legal-block .gap {
  margin-top: 1em !important;
}

.legal-block ul.dash {
  margin-top: 1em;
}

.legal-block ul.dash li {
  line-height: 1.75;
}

.legal-meta {
  margin-top: 40px;
  font-size: 0.875rem;
  color: var(--c-muted);
  max-width: 64ch;
}

@media (max-width: 900px) {
  .legal-body,
  .legal-nav {
    grid-column: 1 / -1;
  }

  .legal-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
    margin-bottom: 32px;
  }

  .legal-nav a {
    border-top: 0;
  }
}

/* Über uns – Unterseite */
.mission {
  row-gap: 40px;
  align-items: start;
}

.mission .label {
  grid-column: 1 / -1;
}

.mission .h2 {
  grid-column: 1 / span 6;
}

.mission .prose {
  grid-column: 8 / span 5;
}

.image-band {
  position: relative;
}

.image-band img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.image-band figcaption {
  position: absolute;
  left: var(--gutter);
  bottom: 16px;
}

.cta-band {
  padding-block: clamp(72px, 9vw, 144px);
}

.cta-band .grid {
  row-gap: 32px;
  align-items: end;
}

.cta-band .h2 {
  grid-column: 1 / span 7;
  margin-top: 24px;
}

.cta-band .cta-copy {
  grid-column: 9 / span 4;
}

.cta-band .btn {
  margin-top: 28px;
}

.service-index {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 0;
}

.service-index li {
  border-top: 1px solid var(--c-line-strong);
  padding: 16px 0 28px;
}

.service-index .no {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--c-accent);
}

.service-index a {
  display: block;
  margin-top: 10px;
  font-size: 1.25rem;
  font-weight: 540;
  font-stretch: 90%;
  text-decoration: none;
}

.service-index a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .mission .h2,
  .mission .prose,
  .cta-band .h2,
  .cta-band .cta-copy {
    grid-column: 1 / -1;
  }

  .service-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-band img {
    aspect-ratio: 4 / 3;
  }
}

/* --------------------------------------------------------------------------
   Dezente Einblendung
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s var(--ease), transform 1.1s var(--ease-out);
  }

  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* 404 */
.notfound {
  min-height: 70svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}
