/* ==========================================================================
   KANT Projekt GmbH – Gestaltung „Bauschild“
   Blau als Fläche, Koralle als Markierband, Hellblau für Maßlinien.
   ========================================================================== */

:root {
  --navy: #000078;
  --navy-deep: #00004f;
  --ink: #0b0f3a;
  --ink-soft: #3d4170;
  --coral: #fb6648;
  --coral-ink: #c43c22;      /* Koralle für Text auf Hell (Kontrast ≥ 4.5) */
  --sky: #9ec3e6;
  --paper: #f4f1ea;
  --white: #fff;
  --line: rgba(0, 0, 120, .14);
  --line-light: rgba(255, 255, 255, .18);

  --font: "Archivo", "Arial Narrow", Arial, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --head-h: 76px;
  --space: clamp(72px, 9vw, 136px);
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(16px, 0.25vw + 15px, 18px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
address { font-style: normal; }

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

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

.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 {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--coral); color: var(--navy); padding: 10px 16px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Typografie ---------- */
.display {
  font-weight: 850;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .96;
  /* --lw = Zeichen im längsten Wort (aus PHP); 0.92 ≈ Zeichenbreite bei 125 % Breite */
  --fit: calc((min(100vw, var(--wrap)) - 2 * var(--gutter)) / (var(--lw, 1) * 0.92));
  font-size: min(clamp(2.5rem, 5.4vw, 5rem), var(--fit));
  overflow-wrap: break-word;
}
.display--md { font-size: min(clamp(2rem, 3.6vw, 3.4rem), var(--fit)); }
.display--sm { font-size: min(clamp(1.6rem, 2.4vw, 2.2rem), var(--fit)); }
@media (max-width: 559px) {
  .display { font-stretch: 112%; --fit: calc((100vw - 2 * var(--gutter)) / (var(--lw, 1) * 0.84)); font-size: min(clamp(2rem, 9vw, 2.6rem), var(--fit)); }
  .display--md { font-size: min(clamp(1.7rem, 7.5vw, 2.2rem), var(--fit)); }
  .display--sm { font-size: min(1.5rem, var(--fit)); }
}

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  font-stretch: 115%;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--coral-ink);
  margin: 0 0 18px;
}

.prose { max-width: 38em; }
.prose h2 { font-size: 1.45rem; font-weight: 800; font-stretch: 112%; margin: 1.8em 0 .6em; text-transform: uppercase; letter-spacing: .02em; }
.prose h3 { font-size: 1.15rem; font-weight: 750; margin: 1.5em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 0; list-style: none; counter-reset: li; }
.prose li { position: relative; padding-left: 1.6em; margin-bottom: .45em; }
.prose ul > li::before {
  content: ""; position: absolute; left: 0; top: .72em; width: .8em; height: 2px; background: var(--coral);
}
.prose ol > li { counter-increment: li; }
.prose ol > li::before {
  content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: .1em;
  font-size: .78em; font-weight: 800; font-stretch: 120%; color: var(--coral-ink);
}
.prose a { text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose > :last-child { margin-bottom: 0; }
.prose strong { font-weight: 750; }

/* ---------- Bauschild-Details ---------- */
.measure {
  display: flex; align-items: center; gap: 12px;
  font-size: .7rem; font-weight: 700; font-stretch: 112%; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sky);
  max-width: 420px;
  margin-bottom: 26px;
}
.measure i { flex: 1; height: 1px; background: currentColor; position: relative; min-width: 40px; }
.measure i::before, .measure i::after {
  content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: currentColor;
}
.measure i::before { left: 0; }
.measure i::after { right: 0; }

.tape {
  display: inline-block;
  background: var(--coral);
  color: var(--navy);
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(.7rem, .9vw, .82rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 9px 14px 8px;
  transform: rotate(-1.2deg);
  margin: 0;
}
.tape--sky { background: var(--sky); }
@media (max-width: 559px) { .tape { font-size: .64rem; letter-spacing: .09em; padding: 8px 10px 7px; } }

/* ---------- Bedienelemente ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--coral); color: var(--navy);
  font-weight: 800; font-stretch: 112%; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none;
  padding: 17px 24px 16px;
  border: 0; cursor: pointer;
  transition: background-color .18s, color .18s;
}
.btn::after { content: "→"; font-stretch: 100%; transition: transform .18s; }
.btn:hover { background: var(--white); }
.btn:hover::after { transform: translateX(3px); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--coral); color: var(--navy); }

.link-tel {
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  border-bottom: 2px solid var(--coral); padding-bottom: 3px;
}
.link-tel:hover { color: var(--coral); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 750; font-stretch: 110%; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--navy);
}
.link-arrow::after { content: "→"; color: var(--coral-ink); transition: transform .18s; }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--light { color: var(--white); }
.link-arrow--light::after { color: var(--coral); }

/* ---------- Kopfbereich ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: var(--white);
  border-bottom: 1px solid var(--line-light);
}
.site-head__bar { display: flex; align-items: center; gap: 28px; height: var(--head-h); }
.site-head__logo { flex: none; display: block; }
.site-head__logo img { height: 36px; width: auto; }

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: clamp(18px, 2.4vw, 34px); list-style: none; }
.site-nav__list a {
  font-size: .78rem; font-weight: 700; font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding: 8px 0; position: relative;
}
.site-nav__list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; background: var(--coral);
  transition: right .2s;
}
.site-nav__list a:hover::after, .site-nav__list a[aria-current="page"]::after { right: 0; }
.site-nav__extra { display: none; }

.call {
  flex: none; display: inline-flex; align-items: center; gap: 9px;
  background: var(--coral); color: var(--navy); text-decoration: none;
  font-weight: 800; font-size: .9rem; letter-spacing: .02em;
  padding: 11px 15px;
}
.call:hover { background: var(--white); }
.call__label { display: none; }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: 1px solid var(--line-light); color: var(--white);
  padding: 10px 12px; cursor: pointer;
  font-size: .72rem; font-weight: 700; font-stretch: 115%; letter-spacing: .14em; text-transform: uppercase;
}
.menu-toggle__lines, .menu-toggle__lines::before {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
}
.menu-toggle__lines::before { content: ""; position: absolute; top: 6px; }
.menu-toggle__lines { transform: translateY(-3px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 899px) {
  :root { --head-h: 64px; }
  .site-head__bar { gap: 12px; }
  .site-head__logo img { height: 28px; }
  .call { margin-left: auto; padding: 10px 12px; }
  .call__number { display: none; }
  .call__label { display: inline; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-stretch: 112%; }
  .menu-toggle { display: inline-flex; }

  .site-nav {
    position: fixed; inset: var(--head-h) 0 0 0; margin: 0;
    background: var(--navy); padding: 36px var(--gutter) 40px;
    display: flex; flex-direction: column; justify-content: space-between;
    overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .no-js .site-nav, html:not(.js) .site-nav { position: static; visibility: visible; opacity: 1; transform: none; padding: 0; background: none; }
  .site-nav__list { flex-direction: column; gap: 4px; }
  .site-nav__list a {
    display: block; font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 850; font-stretch: 125%; letter-spacing: .01em;
    padding: 10px 0; border-bottom: 1px solid var(--line-light);
  }
  .site-nav__list a::after { bottom: 10px; }
  .site-nav__extra { display: block; margin-top: 40px; }
  .site-nav__contact { font-size: 1.05rem; line-height: 1.9; }
  .site-nav__contact a { text-decoration: none; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 899px) { html:not(.js) .site-head__bar { flex-wrap: wrap; height: auto; padding-block: 12px; } }

/* ---------- Bereiche ---------- */
.band { padding-block: var(--space); }
.band--navy { background: var(--navy); color: var(--white); }
.band--paper { background: var(--paper); }
.band--navy .eyebrow { color: var(--coral); }

/* ---------- Startseite: Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  min-height: clamp(560px, calc(92vh - var(--head-h)), 820px);
  background: var(--navy); color: var(--white);
}
.hero__text {
  align-self: center;
  padding: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 64px) clamp(48px, 6vw, 80px) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.hero__title { margin-bottom: 28px; }
.hero__lead { font-size: clamp(1.02rem, .4vw + .95rem, 1.2rem); color: rgba(255, 255, 255, .84); max-width: 30em; margin: 30px 0 0; }
.hero .actions .link-tel { color: var(--white); }
.hero__media { margin: 0; position: relative; min-height: 340px; }
.hero__media::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 22%; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--navy), rgba(0, 0, 120, 0));
}

@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__text { padding: 44px var(--gutter) 48px; }
  .hero__media { min-height: 0; aspect-ratio: 16 / 10; }
  .hero__media::before { inset: 0 0 auto 0; width: auto; height: 24%; background: linear-gradient(180deg, var(--navy), rgba(0, 0, 120, 0)); }
}

/* ---------- Video mit Standbild ---------- */
.vid { position: relative; overflow: hidden; margin: 0; background: var(--navy-deep); }
.vid picture, .vid img, .vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid video { opacity: 0; transition: opacity .8s ease; }
.vid.is-playing video { opacity: 1; }
.vid__toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(0, 0, 79, .55); cursor: pointer; padding: 0;
}
.vid__toggle::before, .vid__toggle::after {
  content: ""; position: absolute; top: 14px; width: 4px; height: 16px; background: var(--white);
}
.vid__toggle::before { left: 15px; }
.vid__toggle::after { right: 15px; }
.vid__toggle.is-paused::before {
  left: 17px; width: 0; height: 0; background: none;
  border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--white);
}
.vid__toggle.is-paused::after { display: none; }
.vid__toggle:hover { background: var(--coral); border-color: var(--coral); }

/* ---------- Startseite: Gewerke-Kacheln ---------- */
.trades { background: var(--navy); }
.trades__list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--navy); }
.trade a {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(220px, 20vw, 300px); padding: 22px; color: var(--white); text-decoration: none; overflow: hidden;
}
.trade picture, .trade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.trade a::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 100, .94) 18%, rgba(0, 0, 120, .35) 62%, rgba(0, 0, 120, .1));
  transition: background-color .3s;
}
.trade a > span { position: relative; z-index: 2; }
.trade__num {
  font-weight: 900; font-stretch: 125%; font-size: 2.4rem; line-height: 1; margin-bottom: 10px;
  color: transparent; -webkit-text-stroke: 1.5px var(--coral);
}
.trade__title { font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.trade__short { font-size: .86rem; color: rgba(255, 255, 255, .78); margin-top: 6px; line-height: 1.45; }
.trade a:hover img { transform: scale(1.04); }
.trade a:hover .trade__title { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@supports not (-webkit-text-stroke: 1px red) { .trade__num { color: var(--coral); } }

@media (max-width: 899px) { .trades__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 559px) {
  .trades__list { grid-template-columns: 1fr; }
  .trade a { min-height: 180px; }
}

/* ---------- Startseite: Alles aus einer Hand ---------- */
.intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.intro__text .display { margin-bottom: 30px; color: var(--navy); }
.intro__text .link-arrow { margin-top: 26px; }
.intro__media { margin: 0; position: relative; }
.intro__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.intro__media .tape { position: absolute; left: -14px; bottom: 26px; font-size: .9rem; }
@media (max-width: 899px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__media .tape { left: 12px; }
}

/* ---------- Startseite: Wir denken mit ---------- */
.think__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); }
.think__head .display { color: var(--navy); margin-bottom: 30px; }
.areas { list-style: none; border-top: 2px solid var(--navy); }
.area {
  display: grid; grid-template-columns: 64px 1fr; column-gap: 20px;
  padding: 28px 0 30px; border-bottom: 1px solid var(--line);
}
.area > :not(.area__num) { grid-column: 2; }
.area__num { grid-row: 1 / span 3; font-weight: 900; font-stretch: 125%; font-size: 1.9rem; line-height: 1; color: var(--coral-ink); }
.area__title { font-weight: 850; font-stretch: 122%; text-transform: uppercase; font-size: 1.35rem; letter-spacing: .01em; margin-bottom: 10px; color: var(--navy); }
.area p { color: var(--ink-soft); margin-bottom: 14px; }
@media (max-width: 899px) { .think__grid { grid-template-columns: 1fr; } }
@media (max-width: 559px) { .area { grid-template-columns: 44px 1fr; column-gap: 12px; } .area__num { font-size: 1.4rem; } }

/* ---------- Projekte (Karten) ---------- */
.works__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(32px, 4vw, 56px); }
.works__list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.works__list > li:nth-child(2) { margin-top: clamp(0px, 5vw, 72px); }
.work { display: block; text-decoration: none; color: inherit; }
.work__img { overflow: hidden; margin-bottom: 16px; }
.work__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s ease; }
.work:hover .work__img img { transform: scale(1.03); }
.work__title { display: block; font-weight: 800; font-size: 1.1rem; line-height: 1.3; margin-bottom: 6px; }
.work__summary { display: block; font-size: .92rem; line-height: 1.5; opacity: .78; }
.work:hover .work__title { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 899px) { .works__list { grid-template-columns: repeat(2, 1fr); } .works__list > li:nth-child(2) { margin-top: 0; } }
@media (max-width: 559px) { .works__list { grid-template-columns: 1fr; } }

/* ---------- Abschluss: Packen wir’s an ---------- */
.cta { position: relative; color: var(--white); background: var(--navy); overflow: hidden; }
.cta__media { position: absolute; inset: 0; }
.cta__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 120, .95) 0%, rgba(0, 0, 120, .82) 45%, rgba(0, 0, 120, .45) 100%);
}
.cta__media .vid__toggle { z-index: 3; }
.cta__inner { position: relative; z-index: 2; padding-block: clamp(88px, 11vw, 168px); }
.cta__title { font-size: min(clamp(2.8rem, 7vw, 6.2rem), var(--fit)); margin-bottom: 26px; }
@media (max-width: 559px) { .cta__title { font-size: min(clamp(2.2rem, 10vw, 2.8rem), var(--fit)); } }
.cta__body { max-width: 34em; font-size: 1.1rem; color: rgba(255, 255, 255, .86); }
.cta .link-tel { color: var(--white); }

/* ---------- Fußbereich ---------- */
.site-foot { background: var(--navy-deep); color: rgba(255, 255, 255, .82); padding-top: clamp(64px, 7vw, 96px); overflow: hidden; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--coral); }
.site-foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr .8fr; gap: 40px; }
.site-foot__brand img { height: 34px; width: auto; margin-bottom: 20px; }
.site-foot__brand p { max-width: 22em; font-size: .95rem; }
.site-foot__nap { line-height: 1.8; }
.site-foot__nap strong { color: var(--white); }
.site-foot__nav ul { list-style: none; }
.site-foot__nav li { margin-bottom: 8px; font-size: .95rem; }
.site-foot .eyebrow { color: var(--sky); }
.site-foot__sign {
  font-weight: 900; font-stretch: 125%; text-transform: uppercase; white-space: nowrap;
  font-size: clamp(2.6rem, 9.6vw, 9.5rem); line-height: .9; letter-spacing: .01em;
  color: transparent; -webkit-text-stroke: 1px rgba(158, 195, 230, .35);
  margin: clamp(48px, 6vw, 80px) 0 0 calc(var(--gutter) * -.2);
  padding-left: var(--gutter);
  user-select: none;
}
.site-foot__legal {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--line-light); padding-block: 22px; font-size: .82rem; color: rgba(255, 255, 255, .6);
}
@media (max-width: 899px) { .site-foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .site-foot__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Unterseiten
   ========================================================================== */

/* ---------- Seitenkopf ---------- */
.page-head { background: var(--navy); color: var(--white); padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }
.page-head .eyebrow { color: var(--coral); margin-top: clamp(28px, 4vw, 48px); }
.page-head__title { max-width: 24ch; }
.crumbs + .page-head__title { margin-top: clamp(28px, 4vw, 48px); }
.page-head .tape { margin-top: 26px; }
.page-head__lead { max-width: 40em; font-size: clamp(1.05rem, .4vw + .98rem, 1.25rem); color: rgba(255, 255, 255, .86); margin: 28px 0 0; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: .78rem; font-weight: 600; font-stretch: 110%; letter-spacing: .06em; text-transform: uppercase; }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: ""; width: 18px; height: 1px; background: var(--sky); margin: 0 10px; }
.crumbs a { color: var(--sky); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: rgba(255, 255, 255, .7); }

/* ---------- Leistungen: Zeilen ---------- */
.rows { list-style: none; border-top: 2px solid var(--navy); }
.row__link {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) clamp(140px, 22vw, 280px); gap: clamp(16px, 3vw, 40px); align-items: center;
  padding: clamp(20px, 2.4vw, 28px) 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.row__num { font-weight: 900; font-stretch: 125%; font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--navy); transition: color .2s; }
.row__title { display: block; font-weight: 850; font-stretch: 120%; text-transform: uppercase; font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.1; color: var(--navy); margin-bottom: 8px; }
.row__short { display: block; color: var(--ink-soft); }
.row__img img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.row__link:hover .row__num { color: var(--coral); -webkit-text-stroke-color: var(--coral); }
.row__link:hover .row__title { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: 5px; }
@media (max-width: 699px) {
  .row__title { font-size: 1.05rem; font-stretch: 105%; }
  .row__link { grid-template-columns: 56px minmax(0, 1fr); }
  .row__num { font-size: 2rem; }
  .row__img { grid-column: 1 / -1; }
}

.areas-head { margin-bottom: clamp(32px, 4vw, 56px); max-width: 18ch; }
.area-cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line-light); border: 2px solid var(--line-light); }
.area-card { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: clamp(24px, 3vw, 40px); background: var(--navy); color: var(--white); text-decoration: none; }
.area-card__title { font-weight: 850; font-stretch: 125%; text-transform: uppercase; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1; }
.area-card__text { color: rgba(255, 255, 255, .8); flex: 1; }
.area-card:hover { background: var(--navy-deep); }
.area-card:hover .area-card__title { color: var(--coral); }
@media (max-width: 899px) { .area-cards { grid-template-columns: 1fr; } }

/* ---------- Leistung: Detail ---------- */
.detail__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.detail__main > h2:first-child { margin-top: 0; }
.detail__side { position: sticky; top: calc(var(--head-h) + 24px); }
.detail__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ask { background: var(--paper); padding: 28px; border-left: 4px solid var(--coral); }
.ask__title { font-weight: 850; font-stretch: 115%; text-transform: uppercase; font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.ask .btn { margin-top: 6px; }
.ask__tel { display: block; margin-top: 16px; font-weight: 750; font-size: 1.1rem; color: var(--navy); text-decoration: none; }
.ask__tel:hover { color: var(--coral-ink); }
@media (max-width: 899px) { .detail__grid { grid-template-columns: 1fr; } .detail__side { position: static; } }

.faq__grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq__grid .display { color: var(--navy); }
.faq__list { border-top: 2px solid var(--navy); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 48px 22px 0; font-weight: 750; font-size: 1.08rem; color: var(--navy);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-weight: 400; font-size: 1.8rem; line-height: 1; color: var(--coral-ink);
}
.faq__item[open] summary::after { content: "–"; }
.faq__item .prose { padding: 0 0 24px; color: var(--ink-soft); }
@media (max-width: 899px) { .faq__grid { grid-template-columns: 1fr; } }

.more { padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.more__list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.more__list a, .tags a {
  display: inline-block; padding: 10px 14px; border: 1px solid var(--navy); color: var(--navy);
  text-decoration: none; font-weight: 650; font-size: .92rem;
}
.more__list a:hover, .tags a:hover { background: var(--navy); color: var(--white); }

/* ---------- Projekte ---------- */
.gallery { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 48px) clamp(20px, 2.4vw, 36px); }
.gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery__item:first-child .work__img img { aspect-ratio: auto; height: 100%; min-height: 100%; }
.gallery__item:first-child .work { display: grid; grid-template-rows: 1fr auto auto; height: 100%; }
.gallery__item:first-child .work__img { height: 100%; }
.gallery__item:first-child .work__title { font-size: 1.4rem; }
.gallery .work__summary { color: var(--ink-soft); opacity: 1; }
@media (max-width: 899px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item:first-child { grid-row: auto; }
  .gallery__item:first-child .work__img img { aspect-ratio: 16 / 11; height: auto; }
}
@media (max-width: 559px) { .gallery { grid-template-columns: 1fr; } .gallery__item:first-child { grid-column: auto; } }

.project__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.project__gallery { display: grid; gap: 16px; }
.project__figure { margin: 0; }
.project__figure img { width: 100%; }
.project__text { position: sticky; top: calc(var(--head-h) + 24px); }
.project__label { margin-top: 36px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
@media (max-width: 899px) { .project__grid { grid-template-columns: 1fr; } .project__text { position: static; } }

/* ---------- Über uns ---------- */
.about-photo { margin: 0; background: var(--navy); }
.about-photo img { width: 100%; max-height: 72vh; object-fit: cover; }
.about__item {
  display: grid; grid-template-columns: 110px minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(16px, 3vw, 48px);
  padding: clamp(36px, 4vw, 56px) 0; border-top: 1px solid var(--line);
}
.about__item:first-child { border-top: 2px solid var(--navy); }
.about__num { font-weight: 900; font-stretch: 125%; font-size: 2.6rem; line-height: 1; color: var(--coral-ink); }
.about__title { font-weight: 850; font-stretch: 122%; text-transform: uppercase; font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.05; color: var(--navy); }
@media (max-width: 899px) {
  .about__item { grid-template-columns: 56px minmax(0, 1fr); }
  .about__num { font-size: 1.8rem; }
  .about__item .prose { grid-column: 2; }
}

.facts__grid { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 80px); }
.facts__grid .display { color: var(--navy); }
.facts__list { margin: 0; border-top: 2px solid var(--navy); }
.facts__list > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts__list dt { font-size: .78rem; font-weight: 700; font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.facts__list dd { margin: 0; }
@media (max-width: 899px) { .facts__grid { grid-template-columns: 1fr; } }
@media (max-width: 559px) { .facts__list > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Kontakt ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__info .measure { color: var(--navy); }
.contact__list { margin: 0; }
.contact__list > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact__list > div:first-child { border-top: 2px solid var(--navy); }
.contact__list dt { font-size: .78rem; font-weight: 700; font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.contact__list dd { margin: 0; font-size: 1.12rem; }
.contact__list dd a:not(.link-arrow) { font-weight: 750; color: var(--navy); text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contact__list .link-arrow { margin-top: 12px; }
.contact__form .display { color: var(--navy); margin-bottom: 28px; }
@media (max-width: 899px) { .contact__grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 559px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 7px; color: var(--navy); }
.field__opt { font-weight: 400; color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--white); border: 1.5px solid rgba(0, 0, 120, .35); border-radius: 0;
  padding: 13px 14px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(251, 102, 72, .45); }
.field [aria-invalid="true"] { border-color: var(--coral-ink); }
.field__error { color: var(--coral-ink); font-size: .9rem; font-weight: 600; margin: 6px 0 0; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.field--check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); }
.field--check label { font-weight: 400; font-size: .92rem; color: var(--ink); margin: 0; }
.field--check .field__error { grid-column: 2; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.form .btn { justify-self: start; }

.notice { padding: 18px 20px; margin-bottom: 24px; border-left: 4px solid; }
.notice p { margin: 0; }
.notice--ok { background: #e9f2fb; border-color: var(--navy); color: var(--navy); font-weight: 600; }
.notice--error { background: #fdece8; border-color: var(--coral-ink); color: #7a2414; }

/* ---------- Rechtstexte ---------- */
.legal__grid .prose { max-width: 46em; }
.legal__grid .prose h2:first-child { margin-top: 0; }

/* ---------- Schnellkontakt am rechten Rand ---------- */
.rail { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 40; }
.rail ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.rail__link {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; background: var(--navy); color: var(--white); text-decoration: none;
  border-left: 3px solid var(--coral);
  transition: background-color .18s, color .18s;
}
.rail__link:hover, .rail__link:focus-visible { background: var(--coral); color: var(--navy); }
.rail__label {
  position: absolute; right: 100%; top: 0; height: 100%;
  display: flex; flex-direction: column; justify-content: center; white-space: nowrap;
  padding: 0 16px; background: var(--navy-deep); color: var(--white);
  font-size: .78rem; font-weight: 750; font-stretch: 112%; letter-spacing: .1em; text-transform: uppercase; line-height: 1.25;
  opacity: 0; transform: translateX(8px); pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.rail__label small { font-size: .8rem; font-weight: 500; font-stretch: 100%; letter-spacing: .01em; text-transform: none; color: var(--sky); }
.rail__link:hover .rail__label, .rail__link:focus-visible .rail__label { opacity: 1; transform: none; }
.rail__link:focus-visible { outline-offset: -3px; }
@media (max-width: 899px) {
  .rail { top: auto; bottom: 16px; transform: none; }
  .rail__link { width: 48px; height: 48px; }
  /* Beschriftung nur optisch ausblenden – für Screenreader und KI-Agenten bleibt sie lesbar */
  .rail__label { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 1; }
  body.menu-open .rail { display: none; }
}
/* Pause-Knopf der Videos nicht unter die Leiste legen */
.vid__toggle { right: auto; left: 16px; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound .lead { font-size: 1.15rem; max-width: 30em; margin-top: 24px; color: rgba(255, 255, 255, .84); }
.notfound__links { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 28px; }
.notfound__links a { font-weight: 750; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.notfound .eyebrow { color: var(--coral); }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Druck ---------- */
@media print {
  .site-head, .vid, .cta, .site-foot__sign, .menu-toggle, .rail { display: none !important; }
  body { color: #000; }
}
