/* WERKECHT MEDIA, Startseite „Durch die Fuge“ (Vorschau 12.11.2026, Runde 1) */

@font-face {
  font-family: "Host Grotesk";
  src: url("../fonts/host-grotesk-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/host-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Ersatzschrift mit angeglichener Breite, damit der Schriftwechsel nichts verschiebt */
@font-face {
  font-family: "Host Grotesk Ersatz";
  src: local("Arial");
  size-adjust: 101%;
  ascent-override: 96%;
  descent-override: 26%;
}

:root {
  --tinte: #16140F;
  --tinte-2: #1E1B15;
  --hell: #F1F1EE;
  --grund: #ECEDEA;
  --gelb: #F2C200;
  --gelb-hell: #FFD332;
  --grau-auf-dunkel: #B3AFA5;
  --text-auf-dunkel: #CFCBC1;
  --grau-auf-hell: #55524B;
  --leise-auf-hell: #86837A;
  --linie-dunkel: rgba(241, 241, 238, 0.14);
  --linie-hell: rgba(22, 20, 15, 0.16);
  --rand: clamp(16px, 4vw, 56px);
  --breite: 1320px;
  --innen: max(var(--rand), calc((100% - var(--breite)) / 2));
  --ease-aus: cubic-bezier(0.16, 1, 0.3, 1);
  --fokus: var(--gelb);
  --schrift: "Host Grotesk", "Host Grotesk Ersatz", Arial, sans-serif;
  color-scheme: dark;
  scrollbar-color: #57534A var(--tinte);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--tinte);
  color: var(--hell);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (min-width: 768px) { body { font-size: 1.125rem; } }
img, svg, picture, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
h1, h2 { overflow-wrap: break-word; min-width: 0; }
p { text-wrap: pretty; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
button { font: inherit; }
::selection { background: var(--gelb); color: var(--tinte); }
a { border-radius: 3px; }
:focus { outline-offset: 0; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; }
.nur-vorlesen {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprung {
  position: fixed; left: 12px; top: 12px; z-index: 300; padding: 10px 16px;
  background: var(--gelb); color: var(--tinte); font-weight: 650; text-decoration: none;
  border-radius: 6px; transform: translateY(-160%);
}
.sprung:focus-visible { transform: none; outline-color: var(--hell); }

/* Lenis (nur Desktop) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Große Überschriften: gemeinsame Laufweite, etwas weitere Wortabstände */
.auftakt__titel, .leistungen__titel, .kontakt h2 {
  font-size: clamp(2.6rem, 1.3rem + 5.2vw, 6rem);
  font-weight: 700; line-height: 0.95; letter-spacing: -0.035em; word-spacing: 0.05em; text-wrap: balance;
}

/* ---------- Knopf ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 24px;
  background: var(--gelb); color: var(--tinte);
  font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.005em; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 24px -12px rgba(242, 194, 0, 0.55);
  transition: background-color 0.2s ease, transform 0.16s cubic-bezier(0.23, 1, 0.32, 1);
  --fokus: var(--hell);
}
.knopf, .leiste__menue, .menue__zu, .anruf, .leistung, .menue a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
@media (hover: hover) and (pointer: fine) {
  .knopf:hover { background: var(--gelb-hell); transform: translateY(-1px); }
}
.knopf:active { transform: scale(0.97); transition-duration: 0.1s; }
.knopf--klein { min-height: 44px; padding: 0 14px; font-size: 0.875rem; border-radius: 6px; box-shadow: none; }
.knopf--gross { min-height: 60px; padding: 0 28px; font-size: 1.125rem; }

/* ---------- Navigation: fast deckende Tinte, auf jeder Abschnittsfarbe gleich ---------- */
.leiste {
  position: fixed; z-index: 50;
  top: max(8px, env(safe-area-inset-top));
  left: clamp(8px, 1.6vw, 24px); right: clamp(8px, 1.6vw, 24px);
  pointer-events: none;
}
.leiste__insel {
  position: relative;
  pointer-events: auto;
  max-width: calc(var(--breite) + 32px); margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 8px 0 14px;
  border: 1px solid rgba(241, 241, 238, 0.1);
  border-radius: 14px;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.6);
}
/* Glas auf eigener Ebene, damit fixe Kinder nicht an der Leiste hängen */
.leiste__insel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(22, 20, 15, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.leiste__logo { flex: none; margin-right: auto; padding: 6px 0; border-radius: 4px; }
.leiste__logo img { height: 24px; width: auto; }
.leiste__links { display: none; }
.leiste__menue {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  background: transparent; color: var(--hell); border: 1px solid rgba(241, 241, 238, 0.18); border-radius: 6px; cursor: pointer;
  transition: transform 0.12s ease-out;
}
.leiste__menue:active, .menue__zu:active { transform: scale(0.94); }
@media (min-width: 900px) {
  .leiste__insel { height: 60px; padding: 0 10px 0 20px; gap: 12px; }
  .leiste__logo img { height: 28px; }
  .leiste__links { display: flex; gap: 4px; margin-right: 8px; }
  .leiste__links a {
    display: block; padding: 8px 14px; font-size: 0.9375rem; font-weight: 500; text-decoration: none;
    color: var(--hell); border-radius: 6px; transition: background-color 0.2s ease;
  }
  .leiste__links a { min-height: 44px; display: flex; align-items: center; }
  .leiste__menue { display: none; }
  .knopf--klein { font-size: 0.9375rem; padding: 0 16px; }
}

@media (hover: hover) and (pointer: fine) {
  .leiste__links a:hover { background: rgba(241, 241, 238, 0.08); }
}

/* ---------- Mobil-Menü: öffnet sich wie die Fuge ---------- */
.menue {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column;
  padding: max(8px, env(safe-area-inset-top)) clamp(8px, 1.6vw, 24px) max(24px, env(safe-area-inset-bottom));
  background: var(--tinte);
  visibility: hidden;
  clip-path: inset(0 50% 0 50%);
  transition: clip-path 0.24s var(--ease-aus), visibility 0s linear 0.24s;
  overflow-y: auto; overscroll-behavior: contain;
}
.menue:target, .menue.ist-offen {
  visibility: visible; clip-path: inset(0 0 0 0);
  transition: clip-path 0.38s var(--ease-aus), visibility 0s;
}
.menue__kopf {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 7px 0 15px; border: 1px solid transparent;
}
.menue__logo { padding: 6px 0; border-radius: 4px; }
.menue__logo img { height: 24px; width: auto; }
.menue__zu {
  display: grid; place-items: center; width: 44px; height: 44px;
  color: var(--hell); border: 1px solid rgba(241, 241, 238, 0.18); border-radius: 6px;
  transition: transform 0.12s ease-out;
}
.menue__nav { flex: 1; display: grid; grid-template-columns: 7px minmax(0, 1fr); column-gap: 22px; align-items: stretch; align-content: center; padding: 32px var(--rand); }
.menue__fuge { background: var(--gelb); border-radius: 1px; margin-block: 8px; }
.menue__liste { width: 100%; }
.menue__liste li + li { border-top: 1px solid var(--linie-dunkel); }
.menue__liste a {
  display: block; padding: 14px 0;
  font-size: clamp(2.75rem, 12vw, 4rem); font-weight: 680; line-height: 1; letter-spacing: -0.035em;
  text-decoration: none;
}
.menue__fuss { display: grid; gap: 16px; padding: 0 var(--rand); }
.menue__fuss .knopf { width: 100%; min-height: 56px; }
.menue__telefon {
  display: flex; align-items: baseline; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 0; border: 1px solid rgba(241, 241, 238, 0.3); border-radius: 6px;
  font-size: 1.25rem; font-weight: 650; text-decoration: none;
  transition: transform 0.12s ease-out;
}
.menue__telefon:active { transform: scale(0.98); }
.menue__telefon-wort { font-size: 0.875rem; font-weight: 500; color: var(--grau-auf-dunkel); }
@media (min-width: 900px) { .menue { display: none; } }
html.menue-offen { overflow: hidden; }

/* ---------- Kopf-Szene ---------- */
.film { position: relative; background: var(--tinte); }
.kopf {
  position: relative; z-index: 1;
  height: 100lvh; min-height: 540px;
  overflow: hidden; isolation: isolate;
  background: var(--tinte);
}
.kopf__bild { position: absolute; inset: 0; transform-origin: 50% 46%; }
.kopf__bild picture, .makro picture { height: 100%; }
.kopf__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.kopf__abdunkeln { position: absolute; inset: 0; background: var(--tinte); opacity: 0; }
/* Unterlage für H1 und Knopf: dunkelt den Boden nur dort ab, wo Text steht */
.kopf__schein {
  position: absolute; left: 0; right: 0; bottom: 0; height: 58%;
  background: linear-gradient(to top, rgba(22, 20, 15, 0.92) 0%, rgba(22, 20, 15, 0.75) 42%, rgba(22, 20, 15, 0) 100%);
}
@media (min-width: 768px) {
  .kopf__schein {
    height: 46%;
    background:
      linear-gradient(to right, rgba(22, 20, 15, 0.82) 0%, rgba(22, 20, 15, 0.5) 42%, rgba(22, 20, 15, 0) 62%),
      linear-gradient(to top, rgba(22, 20, 15, 0.55) 0%, rgba(22, 20, 15, 0) 100%);
    -webkit-mask-image: linear-gradient(to top, #000 45%, transparent 100%);
    mask-image: linear-gradient(to top, #000 45%, transparent 100%);
  }
}
.staub { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Vollflächige Fuge (nur mit Film-JS): Gelb plus Lichtkegel, der aus der Fuge kommt */
.fugenlicht { display: none; position: absolute; inset: 0; background: var(--gelb); }
.lichtkegel {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 64vw; opacity: 0;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(255, 244, 200, 0) 0%, rgba(255, 244, 200, 0.55) 38%, rgba(255, 252, 236, 0.95) 50%, rgba(255, 244, 200, 0.55) 62%, rgba(255, 244, 200, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 70%, transparent 100%);
  pointer-events: none;
}
html.ist-film .fugenlicht { display: block; }
.kopf__nacht { position: absolute; inset: 0; background: var(--tinte); opacity: 0; pointer-events: none; }

.kopf__sicht {
  position: absolute; left: 0; right: 0; top: 0;
  height: 100svh; min-height: 540px;
  display: grid; grid-template-rows: 1fr auto;
  padding-top: 76px;
  padding-bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
}
/* Wortmarke: Fuge (54,23 % der Breite) sitzt genau auf dem Lichtspalt in Bildmitte */
.wortmarke {
  --wm: 84%;
  align-self: center; justify-self: start;
  width: var(--wm); height: auto;
  margin-left: calc(50% - var(--wm) * 0.54234);
  margin-bottom: 2svh;
  overflow: visible;
}
@media (min-width: 768px) {
  .kopf__sicht { padding-top: 96px; padding-bottom: clamp(28px, 5svh, 56px); }
  .wortmarke { --wm: min(86%, max(40%, calc((100svh - 22rem) * 3.1717))); margin-bottom: 3svh; }
}
.kopf__text {
  padding-inline: var(--rand);
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
}
.kopf__text h1 {
  font-size: clamp(2.125rem, 1.6rem + 1.6vw, 3.25rem);
  font-weight: 600; line-height: 1.04; letter-spacing: -0.03em;
  max-width: 16ch; text-wrap: balance;
}
.kopf__fakt { margin-top: 12px; font-size: 1rem; line-height: 1.45; color: var(--text-auf-dunkel); max-width: 30em; }
.kopf__handlung { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kopf__zusatz { font-size: 0.875rem; color: var(--grau-auf-dunkel); }
@media (min-width: 768px) {
  .kopf__text { flex-direction: row; justify-content: space-between; align-items: flex-end; max-width: calc(var(--breite) + 2 * var(--rand)); width: 100%; margin: 0 auto; }
  .kopf__handlung { flex-direction: column; align-items: flex-end; gap: 10px; }
  .kopf__fakt { font-size: 1.0625rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .kopf__satz, .kopf__handlung { transition: opacity 0.5s ease-out, transform 0.6s var(--ease-aus); }
  .kopf__handlung { transition-delay: 70ms; }
  @starting-style {
    .kopf__satz, .kopf__handlung { opacity: 0; transform: translateY(10px); }
  }
}

/* Durchflug (nur mit JS erzeugt): Karten kommen aus der Fuge, Fluchtpunkt = Schraube */
.durchflug { position: absolute; inset: 0; perspective: 1000px; perspective-origin: 50% 45%; pointer-events: none; overflow: hidden; }
.flug__karte {
  position: absolute; left: 50%; top: 51%;
  width: min(74vw, 1180px);
  margin: 0;
}
.flug__bild {
  position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 1296 / 768;
  outline: 1px solid rgba(22, 20, 15, 0.12); outline-offset: -1px;
  background: #2A261E;
  box-shadow: 0 50px 90px -40px rgba(22, 20, 15, 0.6), 0 2px 6px rgba(22, 20, 15, 0.2);
}
.flug__bild img { width: 100%; height: 100%; object-fit: cover; }
.flug__schatten {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(to top, rgba(22, 20, 15, 0.95), rgba(22, 20, 15, 0.7));
}
.flug__gewerk {
  display: inline-block; margin-top: 12px;
  font-size: 0.875rem; font-weight: 650; letter-spacing: 0.01em; color: var(--tinte);
}
@media (max-width: 767px) {
  .durchflug { perspective: 800px; }
  .flug__karte { width: 88vw; top: 50%; }
  .flug__bild { aspect-ratio: 4 / 5; border-radius: 14px; }
}
.rand {
  position: absolute; z-index: 6; left: var(--rand);
  bottom: max(20px, calc(100lvh - 100svh + 20px));
  margin: 0; padding: 7px 12px;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.005em; line-height: 1.2;
  color: var(--tinte); background: var(--gelb);
  border-radius: 999px;
  opacity: 0; visibility: hidden; transform: translateY(6px) scale(0.98);
  transition: opacity 0.12s ease-out, transform 0.12s ease-out, visibility 0s linear 0.12s;
}
.rand.an {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.18s ease-out, transform 0.18s cubic-bezier(0.23, 1, 0.32, 1), visibility 0s;
}

/* ---------- Auftakt Arbeit: H2 + Erik-Seite (nach der Landung auf Tinte) ---------- */
.auftakt {
  position: relative;
  background: var(--tinte); color: var(--hell);
  padding: clamp(72px, 9vw, 120px) var(--innen) clamp(32px, 4vw, 48px);
  display: grid; justify-items: center; gap: clamp(24px, 3.5vw, 40px);
}
.auftakt__titel { justify-self: start; }
.auftakt__browser { width: min(100%, 1100px); }
.auftakt__handy { display: none; width: min(78%, 300px); }
@media (max-width: 767px) {
  .auftakt__browser { display: none; }
  .auftakt__handy { display: block; }
}
html.ist-film .auftakt {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  height: 100svh; min-height: 540px;
  background: transparent;
  padding-top: 96px; padding-bottom: 32px;
  align-content: start;
  perspective: 1100px; perspective-origin: 50% 45%;
  pointer-events: none;
}
html.ist-film .auftakt__browser { width: min(76vw, 1100px, max(280px, calc((100svh - 22rem) * 1.6))); }
html.ist-film .auftakt__handy { width: min(76vw, calc((100svh - 15rem) * 0.52)); }
@media (min-width: 768px) { html.ist-film .auftakt { padding-top: 112px; } }

/* ---------- Geräterahmen ---------- */
.rahmen { position: relative; margin: 0; }
.rahmen--browser {
  border-radius: 12px; overflow: hidden; background: #E3E4E0;
  outline: 1px solid rgba(22, 20, 15, 0.1); outline-offset: -1px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 50px 90px -40px rgba(0, 0, 0, 0.6), 0 12px 24px -12px rgba(0, 0, 0, 0.3);
}
.rahmen__leiste { display: flex; align-items: center; justify-content: center; height: 34px; padding: 0 12px; }
.rahmen__adresse {
  flex: 0 1 300px; text-align: center;
  font-size: 0.75rem; line-height: 1; color: var(--grau-auf-hell);
  background: #F7F7F5; border-radius: 6px; padding: 6px 12px;
}
.rahmen--browser img { width: 100%; aspect-ratio: 1440 / 900; object-fit: cover; }
.rahmen--handy {
  padding: 7px; border-radius: 38px; background: #0C0B08;
  box-shadow: 0 0 0 1px rgba(241, 241, 238, 0.14) inset, 0 50px 80px -40px rgba(0, 0, 0, 0.75), 0 10px 20px -10px rgba(0, 0, 0, 0.45);
}
.rahmen--handy img { width: 100%; border-radius: 31px; }
@media (max-width: 767px) {
  .rahmen--handy { padding: 5px; border-radius: 28px; }
  .rahmen--handy img { border-radius: 23px; }
}

/* ---------- Arbeit (auf Tinte; Gelb nur als Fuge und Zahl) ---------- */
.arbeit { background: var(--tinte); }
.projekt {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 40px); row-gap: 36px;
  padding: clamp(40px, 6vw, 80px) var(--innen) clamp(64px, 6vw, 88px);
  align-items: center;
}
.projekt > * { grid-column: 1 / -1; min-width: 0; }
.projekt__name {
  font-size: clamp(2.25rem, 1.4rem + 2.6vw, 4.5rem);
  font-weight: 680; line-height: 1; letter-spacing: -0.035em; word-spacing: 0.04em; text-wrap: balance;
  margin-bottom: 18px;
}
.projekt__zeile { max-width: 32em; font-size: clamp(1.125rem, 1rem + 0.3vw, 1.25rem); color: var(--text-auf-dunkel); }
.projekt__beleg {
  margin-top: 22px; max-width: 22em;
  font-size: clamp(1.3125rem, 1rem + 0.8vw, 1.75rem); font-weight: 560; line-height: 1.3; letter-spacing: -0.015em;
}
.pfeillink {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  font-weight: 600; text-decoration: underline; text-decoration-color: rgba(241, 241, 238, 0.35);
  transition: text-decoration-color 0.2s ease;
}
.pfeillink::after {
  content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12h16M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12h16M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.2'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.35s var(--ease-aus);
}
@media (hover: hover) and (pointer: fine) {
  .pfeillink:hover { text-decoration-color: currentColor; }
  .pfeillink:hover::after { transform: translateX(4px); }
}

/* Fugen-Öffnung (Projektbilder, Abschnittsnähte): JS schreibt clip-path direkt, die gelben Kanten sind echte Elemente.
   Ohne JS bzw. mit reduzierter Bewegung ist alles offen. */
[data-fuge], [data-naht] { position: relative; }
.fugenkante {
  position: absolute; top: 0; bottom: 0; z-index: 4; width: 5px;
  background: var(--gelb); pointer-events: none; opacity: 0;
}
.fugenkante--l { left: 0; }
.fugenkante--r { right: 0; }
[data-naht] > .fugenkante { width: 8px; }

/* Erik Rehn: auf Tinte, die Zahlen tragen das Gelb */
.erik__handy { display: none; }
.erik__browser { width: 100%; }
.belege { margin-top: 30px; border-bottom: 1px solid var(--linie-dunkel); }
.beleg { display: grid; gap: 2px 24px; padding: 14px 0 16px; border-top: 1px solid var(--linie-dunkel); }
.beleg dt { font-size: 1.0625rem; font-weight: 500; line-height: 1.35; color: var(--hell); }
.beleg__hinweis { display: block; font-size: 0.9375rem; font-weight: 400; color: var(--grau-auf-dunkel); }
.beleg dd {
  display: flex; align-items: center; gap: 0.18em;
  font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.75rem);
  font-weight: 700; line-height: 1; letter-spacing: -0.04em;
  white-space: nowrap; color: var(--gelb);
}
.beleg__pfeil { width: 0.62em; height: 0.62em; flex: none; margin-inline: 0.06em; }
.belege__quelle { margin-top: 14px; font-size: 0.9375rem; line-height: 1.45; color: var(--grau-auf-dunkel); max-width: 40em; }
@media (min-width: 768px) {
  .erik__handy { display: block; width: min(100%, 320px); justify-self: center; }
  .erik__browser { display: none; }
  .projekt--erik .projekt__bild { grid-column: 1 / span 5; display: grid; }
  .projekt--erik .projekt__text { grid-column: 7 / span 6; }
}
@media (min-width: 1200px) {
  .beleg { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

/* Apps: Kuhmando (zwei Handys nebeneinander, ohne Überlappung) und Baustellen-App */
.apps {
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 64px;
  padding: 0 var(--innen) clamp(64px, 6vw, 88px);
}
.app { display: grid; gap: 28px; align-content: start; }
.app__bilder { display: flex; gap: clamp(16px, 2vw, 32px); justify-content: center; align-items: flex-start; }
.app__handy { width: min(66vw, 290px); }
.app__handy--zweit { display: none; }
.apps__hinweis { font-size: 0.9375rem; color: var(--grau-auf-dunkel); }
@media (min-width: 900px) {
  .apps { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 40px); row-gap: 40px; }
  .app--kuhmando { grid-column: 1 / span 8; }
  .app--baustelle { grid-column: 9 / span 4; }
  .apps__hinweis { grid-column: 1 / -1; }
  .app__bilder { justify-content: flex-start; }
  .app__handy { width: min(100%, 250px); flex: 0 1 250px; }
  .app__handy--zweit { display: block; margin-top: 56px; }
  .app__text { max-width: 30em; }
}

/* ---------- Haltung: der Markensatz groß, gepinnt, Wort für Wort ---------- */
.haltung { position: relative; background: var(--tinte); }
.haltung__buehne {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 104px var(--rand) 56px;
}
.haltung__satz {
  font-size: min(11vw, calc((100svh - 170px) / 10.2));
  font-weight: 640; line-height: 1.02; letter-spacing: -0.03em; word-spacing: 0.06em;
  text-align: center; text-wrap: balance;
  max-width: 13.5em;
}
@media (min-width: 768px) {
  .haltung__satz { font-size: min(6.9vw, calc((100svh - 180px) / 6.6)); line-height: 1; }
}
.wort--fuge {
  background-image: linear-gradient(var(--gelb), var(--gelb));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  padding: 0 0.06em; margin: 0 -0.06em;
  border-radius: 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Leistungen: zweiter Höhepunkt ---------- */
.leistungen {
  --fokus: var(--tinte);
  background: var(--grund); color: var(--tinte);
  padding: clamp(72px, 7vw, 100px) var(--innen) clamp(64px, 6vw, 88px);
  color-scheme: light;
  -webkit-font-smoothing: auto;
}
.leistungen__titel { margin-bottom: clamp(28px, 4vw, 56px); }
.leistungen__feld { --rinne: clamp(30px, 4.4vw, 68px); position: relative; }
.leistungen__liste { border-top: 1px solid var(--linie-hell); }
.leistungen__liste li { border-bottom: 1px solid var(--linie-hell); }
.leistung {
  position: relative;
  display: grid; gap: 8px 40px; align-items: center;
  padding: clamp(14px, 1.2vw, 18px) 0 clamp(16px, 1.4vw, 20px) var(--rinne);
  text-decoration: none; color: inherit;
}
.leistung__name {
  position: relative;
  font-size: clamp(2.35rem, 7.4vw, 7rem);
  font-weight: 700; line-height: 0.98; letter-spacing: -0.035em; word-spacing: 0.04em;
  transition: color 0.24s ease, opacity 0.24s ease-out, transform 0.24s cubic-bezier(0.23, 1, 0.32, 1);
}
/* Ruhezustand ohne Film-JS: jede Zeile hat ihre Fuge in der festen Rinne (kein Layout-Sprung) */
.leistung__name::before {
  content: ""; position: absolute; top: 0.1em; height: 0.78em;
  left: calc(-1 * var(--rinne)); width: clamp(9px, 0.85vw, 13px);
  background: var(--gelb);
}
.leistung__zeile { font-size: clamp(1.1875rem, 1.1rem + 0.2vw, 1.25rem); line-height: 1.45; color: var(--grau-auf-hell); max-width: 24em; }
@media (hover: hover) and (pointer: fine) {
  .leistung:hover .leistung__name { transform: translateX(6px); }
  html.ist-film .leistung:hover .leistung__name { color: var(--tinte); }
}
/* Druck-Rückmeldung auf Touch und Maus: Name rückt kurz ein */
.leistung:active .leistung__name { transform: translateX(3px); opacity: 0.8; transition-duration: 0.08s; }
@media (min-width: 1280px) {
  .leistung { grid-template-columns: minmax(0, 1fr) minmax(0, 17em); }
}
/* Mit Film-JS: eine einzige Fuge fährt von Zeile zu Zeile, die aktive Zeile ist dunkel */
.leistungen__fuge { display: none; }
html.ist-film .leistungen__fuge {
  display: block; position: absolute; left: 0; top: 0; z-index: 2;
  width: clamp(9px, 0.85vw, 13px); height: 80px;
  background: var(--gelb); transform-origin: 50% 50%;
  will-change: transform;
}
html.ist-film .leistung__name::before { display: none; }
html.ist-film .leistung .leistung__name { color: var(--leise-auf-hell); }
html.ist-film .leistung.ist-aktiv .leistung__name { color: var(--tinte); }
/* Beweisbild beim Überfahren (nur Desktop mit Maus) */
.vorschau {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none;
  width: 200px; height: 120px; border-radius: 8px; overflow: hidden;
  outline: 1px solid rgba(22, 20, 15, 0.12); outline-offset: -1px;
  box-shadow: 0 24px 40px -24px rgba(22, 20, 15, 0.5), 0 4px 10px -4px rgba(22, 20, 15, 0.25);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.2s ease-out, transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.vorschau.ist-da { opacity: 1; transform: none; }
.vorschau img { width: 100%; height: 100%; object-fit: cover; }
@media not ((hover: hover) and (pointer: fine)) { .vorschau { display: none; } }

/* ---------- Makro-Band ---------- */
.makro { position: relative; height: clamp(140px, 18vw, 260px); overflow: hidden; background: var(--tinte); }
.makro img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform-origin: 50% 50%; }

/* ---------- Kontakt ---------- */
.kontakt {
  position: relative; overflow: hidden;
  background: var(--tinte);
  display: grid; grid-template-columns: minmax(0, 1fr);
  padding: 0 0 clamp(64px, 8vw, 110px);
}
.kontakt__bild { position: relative; isolation: isolate; }
.kontakt__bild picture { position: relative; z-index: 1; display: block; }
.kontakt__bild img {
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 26%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 12%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 26%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 12%, #000 72%, transparent 100%);
  mask-composite: intersect;
}
/* Die Fuge im Code: schmaler gelber Lichtstreifen, läuft seitlich an Henrik vorbei */
.kontakt__fuge {
  position: absolute; top: 2%; bottom: 26%; left: 9%; z-index: 2;
  width: clamp(8px, 0.9vw, 14px);
  filter: drop-shadow(0 0 10px rgba(242, 194, 0, 0.55));
}
.kontakt__fuge i {
  position: absolute; inset: 0; display: block;
  background: linear-gradient(to bottom, rgba(242, 194, 0, 0) 0%, var(--gelb) 14%, var(--gelb) 62%, rgba(242, 194, 0, 0) 100%);
  transform-origin: 50% 50%;
}
.kontakt__text { padding: 0 var(--rand); margin-top: -12%; position: relative; z-index: 2; }
.kontakt h2 { max-width: 9em; }
.kontakt__lead { margin: 22px 0 30px; max-width: 30em; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); }
.kontakt__handlungen { display: flex; flex-wrap: wrap; gap: 12px; }
.anruf {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 0 24px;
  border: 1.5px solid rgba(241, 241, 238, 0.55); border-radius: 6px;
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem); font-weight: 650; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.16s cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover: hover) and (pointer: fine) {
  .anruf:hover { border-color: var(--hell); background: rgba(241, 241, 238, 0.06); }
}
.anruf:active { transform: scale(0.97); }
.anruf__zeichen { width: 22px; height: 22px; flex: none; color: var(--gelb); }
.kontakt__mail { margin-top: 22px; font-size: 1.0625rem; color: var(--text-auf-dunkel); }
.kontakt__mail a { color: var(--hell); text-decoration-color: rgba(241, 241, 238, 0.4); }
.kontakt__gebiet { line-height: 1.55; }
.kontakt__gebiet { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--linie-dunkel); max-width: 36em; color: var(--grau-auf-dunkel); font-size: 1rem; }
@media (max-width: 420px) {
  .kontakt__handlungen > * { width: 100%; justify-content: center; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .kontakt__bild { width: min(100%, 600px); margin-inline: auto; }
  .kontakt__text { margin-top: -8%; }
}
@media (min-width: 900px) {
  .kontakt {
    grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 40px);
    padding: clamp(40px, 5vw, 80px) 0 clamp(48px, 6vw, 90px) var(--innen);
    align-items: center;
  }
  .kontakt__text { grid-column: 1 / span 6; grid-row: 1; padding: 0; margin: 0; }
  .kontakt__bild { grid-column: 7 / -1; grid-row: 1; }
  .kontakt__bild img { max-height: 88vh; width: auto; margin-left: auto; }
  .kontakt__fuge { left: 17%; top: 4%; bottom: 14%; }
}

/* Handy quer: niedrige Bühne */
@media (max-height: 500px) and (orientation: landscape) {
  .kopf, .kopf__sicht, html.ist-film .auftakt { min-height: 0; }
  .kopf__sicht { padding-top: 72px; padding-bottom: 16px; }
  .wortmarke { --wm: min(62%, calc((100svh - 13rem) * 3.1717)); margin-bottom: 0; }
  .kopf__text h1 { font-size: 1.375rem; }
  .kopf__fakt { margin-top: 6px; font-size: 0.875rem; }
  .knopf { min-height: 44px; }
  html.ist-film .auftakt { padding-top: 76px; gap: 16px; }
  html.ist-film .auftakt__titel { font-size: 2rem; }
  html.ist-film .auftakt__browser { width: min(64vw, calc((100svh - 9rem) * 1.6)); }
  .flug__karte { width: min(60vw, calc((100svh - 7rem) * 1.69)); }
  .rand { bottom: 10px; }
  .haltung__satz { font-size: min(5.4vw, calc((100svh - 120px) / 6)); }
  .haltung__buehne { padding-top: 76px; padding-bottom: 20px; }
}

/* ---------- Fuß ---------- */
.fuss {
  --fokus: var(--gelb);
  background: var(--tinte); border-top: 1px solid var(--linie-dunkel);
  padding: clamp(40px, 5vw, 64px) var(--innen) clamp(24px, 3vw, 40px);
}
.fuss__marke { width: min(100%, 1040px); height: auto; }
.fuss__zeile { margin-top: clamp(24px, 3vw, 40px); font-size: 0.9375rem; color: var(--grau-auf-dunkel); }
.fuss__zeile a { color: var(--hell); }

@media (prefers-reduced-motion: reduce) {
  .knopf, .anruf, .leiste__menue, .menue__zu { transition-property: background-color, border-color, color; }
  .knopf:active, .anruf:active, .leiste__menue:active, .menue__zu:active { transform: none; }
  .leistung__name, .pfeillink::after { transition: color 0.18s ease; }
  .leistung:hover .leistung__name, .pfeillink:hover::after { transform: none; }
  .menue, .menue:target, .menue.ist-offen { clip-path: none; transition: opacity 0.18s ease, visibility 0s; }
  .menue { opacity: 0; }
  .menue:target, .menue.ist-offen { opacity: 1; }
  .vorschau { transform: none; transition: opacity 0.18s ease; }
  :focus-visible { transition: none; }
}
