/* =====================================================================
   Nichtl Bau, Einseiter mit Scroll-Hero
   1 Token · 2 Basis · 3 Kopf und Lot · 4 Hero · 5 Bausteine · 6 Abschnitte · 7 Bewegung · 8 Tore
   ===================================================================== */
@import url("fonts.css");

/* ---------- 1 Token ---------- */
:root {
  --canvas: #f4f2ee;
  --panel: #ffffff;
  --ink: #404040;            /* Grau aus dem Logo statt Schwarz */
  --ink-2: #404040;
  --ink-3: #4a4a4a;
  --accent: #c1202f;          /* Rot aus dem Logo */
  --accent-hover: #9d1a27;
  --accent-muted: rgba(193, 32, 47, 0.14);
  --logo-grey: #404040;       /* Grau aus dem Logo */
  --brick: #b5573a;
  --mortar: #c9c5bd;
  --line: #e1ded8;
  --line-dark: #5c5c5c;
  --text-primary: #404040;
  --text-secondary: #4d4c49;
  --on-dark: #e8e5df;
  --on-dark-2: #b3afa7;

  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 7rem);
  --radius: 4px;
  --header-h: 64px;
  --shadow: 0 14px 34px -14px rgba(20, 20, 20, 0.28);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --tshadow: 0 1px 2px rgba(10, 8, 6, 0.95), 0 3px 12px rgba(10, 8, 6, 0.78), 0 10px 44px rgba(10, 8, 6, 0.8);
}
@media (min-width: 1024px) { :root { --header-h: 72px; } }

/* ---------- 2 Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; color: var(--text-primary); background: var(--canvas); overflow-x: hidden; overflow-x: clip; animation: page-in 0.8s var(--ease-out) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.02; letter-spacing: -0.005em; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.75rem, 7.5vw, 5.25rem); }
h2 { font-size: clamp(2.125rem, 4.6vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
::selection { background: var(--accent); color: #fff; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.75rem 1rem; background: var(--ink); color: #fff; font-weight: 600; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }

/* Die Umgebungsebene: Mörtelstaub, ganz leise, hinter allem */
.dust { position: fixed; inset: -20%; z-index: 0; pointer-events: none; opacity: 0.55;
  background: radial-gradient(ellipse 40% 30% at 20% 30%, rgba(181, 87, 58, 0.06), transparent 70%), radial-gradient(ellipse 50% 40% at 80% 70%, rgba(201, 197, 189, 0.35), transparent 70%), radial-gradient(ellipse 30% 30% at 60% 20%, rgba(201, 197, 189, 0.25), transparent 70%);
  animation: dust-drift 90s ease-in-out -30s infinite alternate; }
@keyframes dust-drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.06); } }
main { position: relative; z-index: 1; }

/* ---------- 3 Kopf und Lot ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: #fff; min-height: 44px; }
.brand:hover { color: #fff; }
.brand__mark { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 30px; height: 30px; flex: 0 0 auto; }
.brand__mark i { display: block; background: var(--accent); }
.brand__mark i:nth-child(3) { grid-column: 1 / -1; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.75rem; letter-spacing: 0.01em; line-height: 1; text-transform: uppercase; }
.brand__name strong { color: var(--accent); font-weight: 700; margin-left: 0.18em; }

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff; background: rgba(64, 64, 64, 0.72); border-bottom: 1px solid rgba(255, 255, 255, 0.08); transition: background-color 0.3s var(--ease); }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-header.is-scrolled { background: rgba(64, 64, 64, 0.92); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.site-header__actions { display: flex; align-items: center; gap: 0.75rem; }
.site-header__phone { display: none; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 600; min-height: 44px; padding-inline: 0.25rem; color: #fff; }
.site-header__phone:hover { color: #fff; }
.site-header__phone svg { width: 20px; height: 20px; color: var(--accent); }
.site-header .site-header__cta { display: none; }
.nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 44px; min-height: 44px; padding: 0.4rem 0.5rem; background: none; border: 0; cursor: pointer; border-radius: var(--radius); color: #fff; }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle__close { display: none; }
.nav-toggle__label { font-weight: 600; font-size: 0.95rem; }
body.nav-open .nav-toggle__open { display: none; }
body.nav-open .nav-toggle__close { display: block; }
.site-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 40; background: var(--ink-2); color: #fff; padding: 1rem var(--gutter) 2rem; overflow-y: auto; display: none; flex-direction: column; gap: 1.5rem; }
body.nav-open .site-nav { display: flex; }
.site-nav__list { list-style: none; display: flex; flex-direction: column; }
.site-nav__link { display: flex; align-items: center; min-height: 56px; padding: 0.5rem 0; font-family: var(--font-head); font-weight: 600; font-size: 1.75rem; text-decoration: none; border-bottom: 1px solid var(--line-dark); color: #fff; }
.site-nav__link:hover { color: #fff; }
.site-nav__contact { display: flex; flex-direction: column; gap: 1rem; padding-top: 0.5rem; }
.site-nav__phone { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1.15rem; text-decoration: none; min-height: 44px; color: #fff; }
.site-nav__phone svg { width: 22px; height: 22px; color: var(--accent); }
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-header__phone, .site-header .site-header__cta { display: inline-flex; }
  .site-nav { position: static; display: flex; flex-direction: row; padding: 0; background: none; overflow: visible; inset: auto; }
  .site-nav__list { flex-direction: row; gap: 0.25rem; }
  .site-nav__link { position: relative; min-height: 44px; padding: 0.5rem 0.9rem; font-family: var(--font-body); font-weight: 600; font-size: 0.975rem; border: 0; color: #fff; }
  .site-nav__link::after { content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.35rem; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
  .site-nav__link:hover::after, .site-nav__link.is-active::after { transform: scaleX(1); }
  .site-nav__contact { display: none; }
}

/* Das Lot: die senkrechte Schnur mit dem roten Senkblei, wandert mit der Seite */
.lot { position: fixed; left: 1.25rem; top: calc(var(--header-h) + 1.5rem); bottom: 1.5rem; width: 1px; z-index: 30; pointer-events: none; display: none; }
.lot__line { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20, 20, 20, 0.35), rgba(20, 20, 20, 0.35)); }
.lot--dark .lot__line { background: rgba(255, 255, 255, 0.28); }
.lot__bob { position: absolute; left: 50%; top: 0; width: 14px; height: 22px; margin-left: -7px; transform: translateY(calc(var(--lot, 0) * var(--lot-h, 600px))) rotate(var(--sway, 0deg)); transform-origin: 50% -40px; transition: transform 0.35s var(--ease-out); }
.lot__bob::before { content: ""; position: absolute; inset: 0; background: var(--accent); clip-path: polygon(50% 0, 100% 35%, 100% 70%, 50% 100%, 0 70%, 0 35%); }
.lot__label { position: absolute; left: 22px; top: 2px; white-space: nowrap; font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); transition: opacity 0.3s; }
.lot--dark .lot__label { color: var(--on-dark-2); }
@media (min-width: 1100px) and (min-height: 600px) { .lot { display: block; } }

/* ---------- 4 Hero ---------- */
.hero { position: relative; height: 460vh; background: var(--ink-2); }
.stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; background: var(--ink-2); color: #fff; }
.stage__poster { position: absolute; inset: 0; background-size: cover; background-position: 62% center; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; opacity: 0; transition: opacity 0.7s var(--ease); will-change: transform; transform: translateZ(0); }
.stage.video-ready video { opacity: 1; }
.stage.video-failed video { display: none; }
.scrim { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 120% 90% at 50% 45%, rgba(12, 10, 8, 0) 35%, rgba(12, 10, 8, 0.62) 100%); }
.stage__grain { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(12, 10, 8, 0.5) 0%, rgba(12, 10, 8, 0.22) 36%, rgba(12, 10, 8, 0) 54%); }

.band { position: absolute; left: var(--gutter); right: 50%; top: 50%; transform: translateY(-50%); opacity: 0; --k: 0; text-shadow: var(--tshadow); pointer-events: none; }
.band > * { position: relative; }
.band::before { content: ""; position: absolute; inset: -16% -4% -16% -14%; pointer-events: none; opacity: calc(0.25 + 0.75 * var(--k, 1)); background: radial-gradient(ellipse 62% 62% at 32% 50%, rgba(10, 8, 6, 0.66) 0%, rgba(10, 8, 6, 0.42) 40%, rgba(10, 8, 6, 0) 68%); }
.band.is-on { pointer-events: auto; }
.band .kicker { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark); }
.band .kicker::before { content: ""; width: 22px; height: 5px; background: var(--accent); }
.band h1, .band h2 { color: #fff; margin: 0; font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 0.98; }
.band .band__text { max-width: 30rem; margin-top: 1.25rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--on-dark); }
.band .btn { text-shadow: none; }
.band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.band .em { color: var(--accent); }

/* Auftritte, alle nur transform und opacity, gescrubbt über --k */
.w { display: inline-block; white-space: nowrap; }
.c { display: inline-block; }
/* (f) Drift-down: die Wörter sinken wie die Kamera */
.band--drift .w { --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 2.8, 1); opacity: var(--kc); transform: translateY(calc((1 - var(--kc)) * -26px)); }
/* (b) Grid snap-align: Buchstaben rücken in Leserichtung ein wie Steine in die Lage */
.band--grid .c { --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 2.6, 1); opacity: var(--kc); transform: translateX(calc((1 - var(--kc)) * var(--jx, 0px))); }
/* (e) Wort-für-Wort-Aufstieg in die gestufte Ruhe */
.band--rise .w { --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 3, 1); opacity: var(--kc); transform: translateY(calc((1 - var(--kc)) * 22px)); }
.band--rise .band__text { --ks: clamp(0, (var(--k, 0) - 0.62) * 4, 1); opacity: var(--ks); transform: translateY(calc((1 - var(--ks)) * 14px)); }
.band--rise .band__actions { --kb: clamp(0, (var(--k, 0) - 0.76) * 5, 1); opacity: var(--kb); transform: translateY(calc((1 - var(--kb)) * 12px)); }

/* Hochkant (Telefon, Hochkant-Tablet): eigener Schnitt, Bänder unten gestapelt. Steht hinter den Querformat-Regeln, damit es gewinnt. */
@media (max-width: 720px), (orientation: portrait) and (max-width: 1024px) {
  .stage video, .stage__poster { object-position: center; background-position: center; }
  .stage__grain { background: linear-gradient(180deg, rgba(12, 10, 8, 0.15) 0%, rgba(12, 10, 8, 0) 35%, rgba(12, 10, 8, 0.78) 100%); }
  .band { left: var(--gutter); right: var(--gutter); top: 50%; bottom: auto; transform: translateY(-50%); }
  .band::before { inset: -34% -26% -34% -26%; background: radial-gradient(ellipse 58% 54% at 50% 50%, rgba(10, 8, 6, 0.72) 0%, rgba(10, 8, 6, 0.46) 42%, rgba(10, 8, 6, 0) 74%); }
  .band h1, .band h2 { font-size: clamp(2.25rem, 11vw, 3.25rem); }
  .band .band__text { font-size: 1.0625rem; margin-top: 0.9rem; }
  .band__actions { margin-top: 1.1rem; }
  .ring { bottom: auto; top: calc(var(--header-h) + 1rem); width: 32px; height: 32px; }
  .cue { bottom: auto; top: calc(var(--header-h) + 1rem); }
}


.ring { position: absolute; right: var(--gutter); bottom: 2rem; width: 40px; height: 40px; color: var(--on-dark); opacity: 0.9; transform: rotate(-90deg); }
.ring circle { transition: stroke-dashoffset 0.2s linear; }
.cue { position: absolute; right: var(--gutter); bottom: 2rem; display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-2); }
.cue svg { width: 18px; height: 18px; animation: cue-bob 2.4s var(--ease) -0.6s infinite; }
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (max-height: 560px) { .ring, .cue { display: none; } }

/* Standbild-Hero (Telefon, Hochkant-Tablet, reduzierte Bewegung) */
.static-hero { display: none; position: relative; min-height: 100vh; min-height: 100svh; align-items: flex-end; background: var(--ink-2); color: #fff; overflow: hidden; }
.static-hero__img { position: absolute; inset: 0; }
.static-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.static-hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(64, 64, 64, 0.35) 0%, rgba(64, 64, 64, 0.55) 40%, rgba(64, 64, 64, 0.93) 100%); }
.static-hero__content { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 3rem); padding-bottom: 2.5rem; }
.static-hero h1 { color: #fff; margin-bottom: 0.4em; }
.static-hero h1 .em { color: var(--accent); }
.static-hero p { max-width: 34rem; color: var(--on-dark); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); margin-bottom: 1.5rem; }
.static-hero .kicker { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark); }
.static-hero .kicker::before { content: ""; width: 22px; height: 5px; background: var(--accent); }

/* ---------- 5 Bausteine ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 50px; padding: 0.7rem 1.4rem; font-weight: 600; font-size: 1rem; letter-spacing: 0.01em; line-height: 1.2; text-align: center; text-decoration: none; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--red:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark:hover { background: #2e2e2e; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 1rem; font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-secondary); }
.eyebrow::before { content: ""; width: 22px; height: 5px; background: var(--accent); flex: none; }
.section { position: relative; padding-block: var(--section); }
.section--dark { background: var(--ink-2); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--on-dark-2); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { font-size: 1.125rem; color: var(--text-secondary); }
.section--dark .section-head p { color: var(--on-dark-2); }
.section-head--split { display: flex; flex-direction: column; gap: 1rem; max-width: none; }
@media (min-width: 900px) { .section-head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; } .section-head--split > div { max-width: 46rem; } }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--text-secondary); }
.section--dark .lead { color: var(--on-dark); }

/* Die Lagenlinie: eine Fuge, die sich beim Scrollen selbst zieht (div::after mit scaleX) */
.course { position: relative; height: 3px; background: var(--line); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.course::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--draw, 0)); transition: transform 0.9s var(--ease-out); }
.section--dark .course { background: var(--line-dark); }

.card { position: relative; display: flex; flex-direction: column; gap: 0.75rem; padding: 1.75rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; transition: transform 0.8s var(--ease-out), border-color 0.8s var(--ease), box-shadow 0.8s var(--ease); }
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); color: inherit; }
.card__icon { width: 44px; height: 44px; color: var(--accent); }
.card__icon svg { width: 100%; height: 100%; }
.card h3 { margin: 0.25rem 0 0; font-size: 1.5rem; }
.card p { color: var(--text-secondary); font-size: 1rem; }
.card__more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: 0.5rem; font-weight: 600; color: var(--ink); }
.card__more svg { width: 18px; height: 18px; color: var(--accent); transition: transform 0.8s var(--ease-out); }
.card:hover .card__more svg { transform: translateX(4px); }
.card-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card-grid > * { min-width: 0; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1100px) { .card-grid--4 { grid-template-columns: repeat(4, 1fr); } .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.project { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease); }
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.project:hover .project__media img { transform: scale(1.04); }
.project__tag { position: absolute; left: 1rem; top: 1rem; z-index: 1; padding: 0.3rem 0.65rem; background: var(--accent); color: #fff; font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.project__body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.35rem; }
.project__place { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }
.project h3 { margin: 0; font-size: 1.5rem; }
.project p { color: var(--text-secondary); font-size: 1rem; }
.project__note { margin-top: 0.5rem; font-size: 0.8rem; color: var(--text-secondary); border-top: 1px dashed var(--line); padding-top: 0.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 1rem; border: 1px solid var(--mortar); border-radius: 999px; background: var(--panel); font-weight: 600; font-size: 0.95rem; color: var(--ink); cursor: pointer; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.checklist { list-style: none; display: grid; gap: 0.6rem; }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 1.1rem; height: 1.1rem; background: var(--accent); clip-path: polygon(14% 44%, 0 62%, 40% 100%, 100% 20%, 86% 6%, 40% 70%); }
.contact-line { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; font-weight: 600; min-height: 44px; }
.contact-line svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.frame { position: relative; --frame-off: 0.75rem; }
@media (min-width: 900px) { .frame { --frame-off: 1.25rem; } }
.frame::before { content: ""; position: absolute; inset: var(--frame-off) calc(-1 * var(--frame-off)) calc(-1 * var(--frame-off)) var(--frame-off); background: var(--ink); z-index: 0; }
.frame img { position: relative; z-index: 1; width: 100%; }
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split > * { min-width: 0; }
.split__media { padding: 0 0.75rem 0.75rem 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split__media { padding: 0 1.25rem 1.25rem 0; } }

/* ---------- 6 Abschnitte ---------- */
/* Warum: links die Aussage, rechts die vier Argumente. Anderes Skelett als die Karten davor. */
.why { display: grid; gap: 2.5rem; }
.why__statement h2 { max-width: 14ch; }
.why__statement p { color: var(--on-dark-2); max-width: 32rem; font-size: 1.125rem; }
.why__quote { margin: 2rem 0 0; padding-left: 1.25rem; border-left: 3px solid var(--accent); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.15; }
.why__quote small { display: block; margin-top: 0.5rem; font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-2); }
.reasons { display: grid; gap: 0; }
.reason { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line-dark); }
.reason:last-child { border-bottom: 1px solid var(--line-dark); }
.reason svg { width: 36px; height: 36px; color: var(--accent); }
.reason h3 { margin: 0 0 0.3rem; font-size: 1.4rem; color: #fff; }
.reason p { color: var(--on-dark-2); font-size: 1rem; }
@media (min-width: 900px) { .why { grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; } }

/* Stein auf Stein: das interaktive Moment */
.hold { text-align: center; }
.hold .section-head { margin-inline: auto; text-align: center; }
.hold .eyebrow { justify-content: center; }
.hold__stage { position: relative; width: min(100%, 420px); aspect-ratio: 1 / 0.82; margin: 0 auto 2rem; }
.hold__svg { width: 100%; height: 100%; overflow: visible; }
.hold__brick { transform: translateY(calc(-96px * (1 - var(--p, 0)))); transition: transform 0.12s linear; }
.hold__squeeze { transform: scaleX(var(--p, 0)); transform-origin: 50% 100%; transition: transform 0.12s linear; }
.hold__glow { opacity: calc(var(--p, 0) * 0.5); transition: opacity 0.12s linear; }
.hold__btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 56px; padding: 0.8rem 1.8rem; background: var(--ink); color: #fff; border: 2px solid var(--ink); border-radius: 999px; font-weight: 600; font-size: 1.05rem; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; transition: background-color 0.25s var(--ease), transform 0.25s var(--ease); }
.hold__btn:hover { background: #2e2e2e; }
.hold__btn.is-holding { transform: scale(0.97); }
.hold__btn svg { width: 18px; height: 18px; color: var(--accent); }
.hold__hint { margin-top: 0.75rem; font-size: 0.9rem; color: var(--text-secondary); }
.hold__lines { list-style: none; display: grid; gap: 0.5rem; margin: 2rem auto 0; max-width: 32rem; }
.hold__lines li { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.05; color: var(--ink); opacity: 0.18; transform: translateY(8px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.hold.is-set .hold__lines li { opacity: 1; transform: none; }
.hold.is-set .hold__lines li:nth-child(2) { transition-delay: 0.12s; }
.hold.is-set .hold__lines li:nth-child(3) { transition-delay: 0.24s; }
.hold.is-set .hold__lines li:nth-child(4) { transition-delay: 0.36s; }
.hold.is-set .hold__lines li:nth-child(4) { color: var(--accent); }
.hold.is-set .hold__btn { background: var(--accent); border-color: var(--accent); }
.hold.is-set .hold__btn svg { color: #fff; }

/* Ablauf: vier Lagen nebeneinander */
.steps { list-style: none; display: grid; gap: 1.25rem; }
.step { position: relative; padding: 1.5rem 0 0; border-top: 3px solid var(--line); }
.step::before { content: ""; position: absolute; left: 0; top: -3px; width: 3rem; height: 3px; background: var(--accent); }
.step__num { font-family: var(--font-mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.14em; color: var(--accent); }
.step h3 { margin: 0.6rem 0 0.4rem; font-size: 1.5rem; }
.step p { color: var(--text-secondary); font-size: 1rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Über uns */
.areas { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.areas li { padding: 0.45rem 0.9rem; border: 1px solid var(--mortar); border-radius: 999px; font-weight: 500; font-size: 0.95rem; background: var(--panel); }

/* Anfrage */
.contact-grid { display: grid; gap: 2.5rem; }
.contact-grid > * { min-width: 0; }
.contact-card { background: var(--ink-2); color: var(--on-dark); padding: 2rem; border-radius: var(--radius); display: grid; gap: 1.5rem; align-content: start; }
.contact-card h3 { color: #fff; font-size: 1.75rem; margin: 0; }
.contact-card__block { display: grid; gap: 0.35rem; }
.contact-card__label { font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-2); }
.contact-card a { color: #fff; }
.contact-card a:hover { color: #fff; text-decoration-color: var(--accent); }
.contact-card .contact-line { font-size: 1.2rem; }
.contact-card .btn { justify-self: start; }
.contact-card__img { margin: -2rem -2rem 0; }
.contact-card__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 3rem; align-items: start; } }
.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field label .opt { font-weight: 400; color: var(--text-secondary); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 0.75rem 0.9rem; font: inherit; color: var(--text-primary); background: var(--panel); border: 1.5px solid #b9b5ad; border-radius: var(--radius); transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-muted); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--accent); }
.field__error { display: none; font-size: 0.9rem; color: var(--accent-hover); font-weight: 500; }
.field.has-error .field__error { display: block; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 0.75rem; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin: 0.15rem 0 0; accent-color: var(--accent); }
.field--check label { font-weight: 400; font-size: 0.95rem; color: var(--text-secondary); }
.form__hint { font-size: 0.9rem; color: var(--text-secondary); }
.form__status { display: none; padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 500; }
.form__status.is-ok { display: block; background: #e6f1e7; color: #1e5a2a; }
.form__status.is-error { display: block; background: #fbebee; color: var(--accent-hover); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Fuß */
.site-footer { background: var(--ink); color: var(--on-dark); padding-block: clamp(3rem, 6vw, 5rem) 1.5rem; }
.site-footer__grid { display: grid; gap: 2.5rem; }
.site-footer__brand { display: grid; gap: 1.25rem; justify-items: start; align-content: start; }
.site-footer__claim { color: var(--on-dark-2); max-width: 30rem; }
.site-footer__title { font-family: var(--font-head); font-size: 1.125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin: 0 0 1rem; }
.site-footer__list { list-style: none; display: grid; }
.site-footer__list a, .site-footer__address a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding-block: 0.2rem; color: var(--on-dark); text-decoration: none; }
.site-footer__list a:hover, .site-footer__address a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); }
.site-footer__address svg { width: 18px; height: 18px; color: var(--accent); }
.site-footer__address p { margin-bottom: 0.4rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); font-size: 0.9rem; color: #8f8c86; }
.site-footer__legal { display: flex; gap: 1.25rem; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); text-decoration: none; }
.site-footer__legal a:hover { color: #fff; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 0.8fr; gap: 3rem; } }

.quickbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-dark); border-top: 1px solid var(--line-dark); padding-bottom: env(safe-area-inset-bottom); }
.quickbar__btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 56px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.quickbar__btn:hover { color: #fff; }
.quickbar__btn svg { width: 20px; height: 20px; }
.quickbar__btn--red { background: var(--accent); }
body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { .quickbar { display: none; } body { padding-bottom: 0; } }

/* Das Endbild als Fundamentstreifen vor dem Fuß */
.ending-strip { height: clamp(160px, 26vw, 320px); overflow: hidden; background: var(--ink-2); }
.ending-strip img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 70%; }

/* Rechtstexte (eigene Seiten) */
.page-hero { background: var(--ink-2); color: var(--on-dark); padding: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(3rem, 7vw, 5.5rem); border-bottom: 6px solid var(--accent); }
.page-hero h1 { color: #fff; max-width: 16ch; }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.625rem, 2.5vw, 2.125rem); margin-top: 2.5rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1em; }
.prose li { margin-bottom: 0.35em; }
.prose a { color: var(--accent-hover); font-weight: 500; }
.prose .todo { background: #fff3c4; padding: 0.05em 0.3em; border-radius: 2px; }

/* ---------- 7 Bewegung ---------- */
.rv .part { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.rv.in .part { opacity: 1; transform: none; }
.rv.in .part:nth-child(2) { transition-delay: 0.08s; }
.rv.in .part:nth-child(3) { transition-delay: 0.16s; }
.rv.in .part:nth-child(4) { transition-delay: 0.24s; }
.rv.in .part:nth-child(5) { transition-delay: 0.32s; }
.rv.in .part:nth-child(6) { transition-delay: 0.40s; }
.rv.in .part:nth-child(7) { transition-delay: 0.48s; }
.rv.in .part:nth-child(8) { transition-delay: 0.56s; }
/* Nach dem Auftritt die Verzögerung wieder abräumen, mit passender Spezifität */
.rv.in.done .part:nth-child(n) { transition-delay: 0s !important; }
.glow { position: relative; }
.glow::after { content: ""; position: absolute; inset: -30%; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, var(--accent-muted), transparent 70%); opacity: 0; animation: glow-pulse 6s ease-in-out -2s infinite; }
.section.in .glow::after { animation-play-state: running; }
@keyframes glow-pulse { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }

/* ---------- 8 Tore ---------- */
/* Die Standbild-Tore, zeichengleich mit dem Skript. Das Telefon bekommt die Fahrt (Alfreds Regel), nur quer gehaltene
   Telefone ohne Höhe und ausdrücklich reduzierte Bewegung sehen das Standbild. */
@media (orientation: landscape) and (pointer: coarse) and (max-height: 560px), (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .stage { display: none; }
  .static-hero { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; transition-delay: 0s !important; }
  .rv .part { opacity: 1; transform: none; }
  .course::after { transform: scaleX(1); }
  .hold__lines li { opacity: 1; transform: none; }
  .hold__brick { transform: none; }
  .hold__squeeze { transform: scaleX(1); }
  .hold__glow { opacity: 0.5; }
  .lot { display: none; }
  .dust { animation: none; }
}
@media (pointer: coarse) { .btn, .chip, .hold__btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; } }

/* Desktop-Typografie: breite Abschnitte brauchen größere Schrift (Alfreds Regel) */
@media (min-width: 1024px) {
  body { font-size: 1.1875rem; }
  .section-head p { font-size: 1.3125rem; }
  .lead { font-size: 1.4375rem; }
  .card p, .reason p, .step p, .project p, .why__statement p { font-size: 1.125rem; }
  .card h3, .project h3, .reason h3, .step h3 { font-size: 1.625rem; }
  .hold__hint, .form__hint, .project__note, .project__place { font-size: 1rem; }
  .field label, .field input, .field select, .field textarea { font-size: 1.0625rem; }
  .site-footer__list a, .site-footer__address, .site-footer__claim { font-size: 1.0625rem; }
  .areas li { font-size: 1.0625rem; }
}

/* ---------- 9 Bewegung und Desktop-Maß (Alfreds Runde vom 26.09.2026) ---------- */
/* Hero-Texte am Desktop deutlich größer, breitere Textspur, größere Knöpfe */
@media (min-width: 1024px) {
  .band { right: 26%; }
  .band h1, .band h2 { font-size: clamp(3.25rem, 7.2vw, 6.75rem); line-height: 0.96; }
  .band .kicker { font-size: 0.9rem; margin-bottom: 1.25rem; }
  .band .band__text { max-width: 36rem; font-size: 1.4375rem; margin-top: 1.5rem; }
  .band__actions { margin-top: 2rem; gap: 1rem; }
  .btn { min-height: 58px; padding: 0.85rem 1.8rem; font-size: 1.0625rem; }
  .band .btn { min-height: 64px; padding: 0.95rem 2.1rem; font-size: 1.125rem; }
  .site-header .btn { min-height: 48px; padding: 0.6rem 1.3rem; font-size: 1rem; }
  .static-hero h1 { font-size: clamp(3.25rem, 7.2vw, 6.75rem); }
}

/* Kopfzeile geht beim Lesen aus dem Weg und kommt beim Hochscrollen zurück */
.site-header { transition: background-color 0.3s var(--ease), transform 0.45s var(--ease-out); }
.site-header.is-hidden { transform: translateY(-100%); }
body.nav-open .site-header.is-hidden { transform: none; }

/* Leistungskacheln: Aufritt wie gesetzte Steine, Lichtstreifen und Fuge beim Zeigen */
.rv .card.part { transform: translateY(46px) scale(0.96); }
.rv.in .card.part { transform: none; }
.card { overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 32%, rgba(193, 32, 47, 0.16) 50%, transparent 68%); transform: translateX(-120%); transition: transform 2.2s var(--ease-out); pointer-events: none; }
.card:hover::before { transform: translateX(120%); }
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease-out); }
.card:hover::after { transform: scaleX(1); }
.card:hover { transform: translateY(-8px); }
.card__icon svg { transition: transform 1.2s var(--ease-out); }
.card:hover .card__icon svg { transform: translateY(-4px) rotate(-6deg) scale(1.08); }
.card__icon svg path, .card__icon svg circle, .card__icon svg rect { stroke-dasharray: 90; stroke-dashoffset: 90; transition: stroke-dashoffset 1.4s var(--ease-out) 0.25s; }
.rv.in .card__icon svg path, .rv.in .card__icon svg circle, .rv.in .card__icon svg rect { stroke-dashoffset: 0; }
.reason svg path, .reason svg circle { stroke-dasharray: 90; stroke-dashoffset: 90; transition: stroke-dashoffset 1.4s var(--ease-out) 0.3s; }
.rv.in .reason svg path, .rv.in .reason svg circle { stroke-dashoffset: 0; }

/* Bilder: Vorhang-Aufdeckung von oben wie eine Lage nach der anderen, dazu leichte Parallaxe */
.rv .frame img, .rv .project__media img, .rv .contact-card__img img { clip-path: inset(100% 0 0 0); transform: scale(1.08); transition: clip-path 1.1s var(--ease-out), transform 1.6s var(--ease-out); }
.rv.in .frame img, .rv.in .project__media img, .rv.in .contact-card__img img { clip-path: inset(0 0 0 0); transform: scale(1); }
.rv.in.done .project:hover .project__media img { transform: scale(1.04); }
.rv .frame::before { transform: translate(-40%, -40%); opacity: 0; transition: transform 1.1s var(--ease-out) 0.2s, opacity 0.8s var(--ease-out) 0.2s; }
.rv.in .frame::before { transform: none; opacity: 1; }
[data-parallax] { will-change: transform; }
.px { transform: translate3d(0, var(--py, 0px), 0); }

/* Über uns: Bild deutlich größer, hochkant beschnitten */
@media (min-width: 900px) {
  #ueber-uns .split { grid-template-columns: 1.2fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
  #ueber-uns .frame img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 38% center; }
}
@media (min-width: 1200px) { #ueber-uns .frame { --frame-off: 1.75rem; } #ueber-uns .split__media { padding: 0 1.75rem 1.75rem 0; } }

/* Ablauf: die rote Lage wächst, die Nummer rückt ein */
.rv .step::before { width: 0; transition: width 0.9s var(--ease-out) 0.3s; }
.rv.in .step::before { width: 3rem; }
.rv .step__num { opacity: 0; transform: translateX(-10px); transition: opacity 0.6s var(--ease-out) 0.5s, transform 0.6s var(--ease-out) 0.5s; }
.rv.in .step__num { opacity: 1; transform: none; }

/* Kleinüberschriften: der rote Balken zieht sich auf */
.rv .eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease-out) 0.15s; }
.rv.in .eyebrow::before { transform: scaleX(1); }

/* Knöpfe: Lichtstreifen beim Zeigen */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%); transform: translateX(-130%); transition: transform 0.7s var(--ease-out); pointer-events: none; }
.btn:hover::after { transform: translateX(130%); }
.btn > * { position: relative; }

/* Wer reduzierte Bewegung wünscht, bekommt alles fertig gezeichnet */
@media (prefers-reduced-motion: reduce) {
  .rv .card.part, .rv .frame::before, .rv .step__num { transform: none; opacity: 1; }
  .rv .frame img, .rv .project__media img, .rv .contact-card__img img { clip-path: none; transform: none; }
  .card__icon svg path, .card__icon svg circle, .card__icon svg rect, .reason svg path, .reason svg circle { stroke-dashoffset: 0; }
  .rv .step::before { width: 3rem; }
  .rv .eyebrow::before { transform: none; }
  .px { transform: none; }
}

/* Kaskade: Schweben beim Zeigen und Parallaxe dürfen die Auftrittsregeln nicht verlieren */
.rv.in .card.part:hover { transform: translateY(-8px); }
.rv .frame img.px, .rv .contact-card__img img.px { transform: translate3d(0, var(--py, 0px), 0) scale(1.08); }
.rv.in .frame img.px, .rv.in .contact-card__img img.px { transform: translate3d(0, var(--py, 0px), 0) scale(1); }
@media (prefers-reduced-motion: reduce) { .rv .frame img.px, .rv.in .frame img.px, .rv .contact-card__img img.px, .rv.in .contact-card__img img.px { transform: none; } }

/* Band 2 hat die längste Zeile: eine Stufe kleiner, damit 'Vom Fundament bis zur Decke.' auf einer Zeile bleibt */
@media (min-width: 1024px) { .band--grid h2 { font-size: clamp(3rem, 6.1vw, 5.5rem); } }


/* ---------- 11 Ohne Platte: die versetzte schwarze Fläche hinter den Bildern ist raus (Alfred, 26.09.2026) ---------- */
.frame::before, .rv .frame::before, .rv.in .frame::before { display: none; content: none; }
.split__media, #ueber-uns .split__media { padding: 0; }
@media (min-width: 900px) { .split__media, #ueber-uns .split__media { padding: 0; } }
@media (min-width: 1200px) { #ueber-uns .split__media { padding: 0; } }

/* ---------- 12 Referenzkacheln: roter Schleier wie bei den Leistungen, Fuge unten ---------- */
.project { position: relative; }
.project__body { position: relative; overflow: hidden; }
.project__body::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(105deg, transparent 32%, rgba(193, 32, 47, 0.16) 50%, transparent 68%); transform: translateX(-120%); transition: transform 2.2s var(--ease-out); pointer-events: none; }
.project:hover .project__body::after { transform: translateX(120%); }
.project__body > * { position: relative; z-index: 1; }
.project::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease-out); z-index: 2; }
.project:hover::after { transform: scaleX(1); }
.project { transition: transform 0.8s var(--ease-out), box-shadow 0.8s var(--ease), border-color 0.8s var(--ease); }
.project:hover { border-color: var(--accent); }
.project__media img { transition: transform 1.6s var(--ease-out); }

/* ---------- 13 Handy-Feinschliff: kompaktere Kacheln, weniger Seitenlänge ---------- */
@media (max-width: 639px) {
  .card { padding: 1.25rem 1.25rem 1.1rem; gap: 0.5rem; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .card__icon { width: 34px; height: 34px; }
  .card h3 { font-size: 1.35rem; margin: 0; flex: 1; }
  .card p { flex-basis: 100%; margin-top: 0.15rem; }
  .card__more { padding-top: 0.25rem; font-size: 0.95rem; }
  .card-grid { gap: 0.75rem; }
  .project__body { padding: 1rem 1.25rem 1.25rem; }
  .project h3 { font-size: 1.35rem; }
  .hold__lines li { font-size: 1.5rem; }
  .steps { gap: 1rem; }
  .step { padding-top: 1.1rem; }
  .reason { padding: 1.1rem 0; }
  .site-footer__grid { gap: 1.75rem; }
}
@media (min-width: 560px) and (max-width: 1099px) { .card-grid--4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 14 Stein auf Stein: zwei Steine, nacheinander gesetzt, schneller; am Handy kompakter ---------- */
.hold__stage { --pa: clamp(0, calc(var(--p, 0) * 1.8), 1); --pb: clamp(0, calc((var(--p, 0) - 0.42) * 1.75), 1); }
.hold__brick { transform: none; transition: none; }
.hold__brick--a { transform: translateY(calc(-96px * (1 - var(--pa)))); transition: transform 0.08s linear; }
.hold__brick--b { transform: translateY(calc(-96px * (1 - var(--pb)))); transition: transform 0.08s linear; }
.hold__squeeze { transform: none; }
.hold__squeeze--a { transform: scaleX(var(--pa)); transform-origin: 50% 100%; transition: transform 0.08s linear; }
.hold__squeeze--b { transform: scaleX(var(--pb)); transform-origin: 50% 100%; transition: transform 0.08s linear; }
@media (prefers-reduced-motion: reduce) { .hold__brick--a, .hold__brick--b { transform: none; } .hold__squeeze--a, .hold__squeeze--b { transform: scaleX(1); } }
@media (max-width: 720px) {
  .hold { padding-block: 2.5rem; }
  .hold .section-head { margin-bottom: 1rem; }
  .hold .section-head h2 { font-size: 1.75rem; }
  .hold .section-head p { font-size: 1rem; }
  .hold__stage { width: min(100%, 240px); margin-bottom: 1rem; }
  .hold__btn { min-height: 48px; padding: 0.6rem 1.3rem; font-size: 0.95rem; }
  .hold__hint { font-size: 0.85rem; margin-top: 0.5rem; }
  .hold__lines { margin-top: 1.1rem; gap: 0.2rem; }
  .hold__lines li { font-size: 1.3rem; }
}

/* ---------- 10 Fließender Übergang, ein Stück: der Verlauf ragt über das Ende der Fahrt, wird dort schwarz und hellt sich auf ---------- */
.stage::after { content: none; }
.band { z-index: 2; }
#leistungen { position: relative; padding-top: 1.25rem; }
#leistungen::before { content: ""; position: absolute; left: 0; right: 0; top: -24vh; height: 24vh; pointer-events: none; z-index: 2; background: linear-gradient(to bottom, rgba(244, 242, 238, 0.0000) 0.0%, rgba(244, 242, 238, 0.0006) 2.1%, rgba(244, 242, 238, 0.0024) 4.2%, rgba(244, 242, 238, 0.0052) 6.3%, rgba(244, 242, 238, 0.0089) 8.3%, rgba(244, 242, 238, 0.0136) 10.4%, rgba(244, 242, 238, 0.0192) 12.5%, rgba(244, 242, 238, 0.0258) 14.6%, rgba(244, 242, 238, 0.0332) 16.7%, rgba(244, 242, 238, 0.0416) 18.8%, rgba(244, 242, 238, 0.0508) 20.8%, rgba(244, 242, 238, 0.0609) 22.9%, rgba(244, 242, 238, 0.0718) 25.0%, rgba(244, 242, 238, 0.0836) 27.1%, rgba(244, 242, 238, 0.0962) 29.2%, rgba(244, 242, 238, 0.1097) 31.3%, rgba(244, 242, 238, 0.1240) 33.3%, rgba(244, 242, 238, 0.1392) 35.4%, rgba(244, 242, 238, 0.1551) 37.5%, rgba(244, 242, 238, 0.1719) 39.6%, rgba(244, 242, 238, 0.1895) 41.7%, rgba(244, 242, 238, 0.2079) 43.8%, rgba(244, 242, 238, 0.2271) 45.8%, rgba(244, 242, 238, 0.2471) 47.9%, rgba(244, 242, 238, 0.2679) 50.0%, rgba(244, 242, 238, 0.2896) 52.1%, rgba(244, 242, 238, 0.3120) 54.2%, rgba(244, 242, 238, 0.3351) 56.3%, rgba(244, 242, 238, 0.3591) 58.3%, rgba(244, 242, 238, 0.3839) 60.4%, rgba(244, 242, 238, 0.4094) 62.5%, rgba(244, 242, 238, 0.4357) 64.6%, rgba(244, 242, 238, 0.4628) 66.7%, rgba(244, 242, 238, 0.4907) 68.8%, rgba(244, 242, 238, 0.5193) 70.8%, rgba(244, 242, 238, 0.5487) 72.9%, rgba(244, 242, 238, 0.5789) 75.0%, rgba(244, 242, 238, 0.6099) 77.1%, rgba(244, 242, 238, 0.6415) 79.2%, rgba(244, 242, 238, 0.6740) 81.3%, rgba(244, 242, 238, 0.7072) 83.3%, rgba(244, 242, 238, 0.7412) 85.4%, rgba(244, 242, 238, 0.7759) 87.5%, rgba(244, 242, 238, 0.8114) 89.6%, rgba(244, 242, 238, 0.8476) 91.7%, rgba(244, 242, 238, 0.8846) 93.8%, rgba(244, 242, 238, 0.9223) 95.8%, rgba(244, 242, 238, 0.9608) 97.9%, rgba(244, 242, 238, 1.0000) 100.0%); }
@media (max-width: 720px), (orientation: portrait) and (max-width: 1024px) { #leistungen { padding-top: 1rem; } #leistungen::before { top: -15vh; height: 15vh; } }
/* ---------- 15 Handy: die drei Hero-Texte von oben nach unten verteilt, nicht alle mittig ---------- */
@media (max-width: 720px), (orientation: portrait) and (max-width: 1024px) {
  .band[data-first] { top: calc(var(--header-h) + 2.5rem); bottom: auto; transform: none; }
  .band:not([data-first]):not([data-last]) { top: 50%; bottom: auto; transform: translateY(-50%); }
  .band[data-last] { top: auto; bottom: calc(56px + 2rem + env(safe-area-inset-bottom)); transform: none; }
}
@media (max-width: 720px), (orientation: portrait) and (max-width: 1024px) {
  /* Band 1 liegt oben auf der hellen Ziegelkrone: tieferer Scrim und etwas tiefer gesetzt */
  .band[data-first] { top: calc(var(--header-h) + 3.5rem); }
  .band[data-first]::before { inset: -40% -30% -40% -30%; background: radial-gradient(ellipse 60% 56% at 50% 50%, rgba(10, 8, 6, 0.86) 0%, rgba(10, 8, 6, 0.6) 40%, rgba(10, 8, 6, 0) 74%); }
}
@media (max-width: 720px), (orientation: portrait) and (max-width: 1024px) {
  /* Band 3 bleibt über dem weißen Auslauf, der die letzten 15vh der Fahrt überdeckt */
  .band[data-last] { bottom: calc(15vh + 1.25rem + env(safe-area-inset-bottom)); }
}

/* ---------- 16 Echtes Logo in Kopfzeile und Fuß ---------- */
.brand img { display: block; height: 44px; width: auto; max-width: none; }
.site-footer .brand img { height: 64px; }
@media (min-width: 1024px) { .brand img { height: 54px; } .site-footer .brand img { height: 80px; } }
.brand__mark, .brand__name { display: none; }

/* ---------- 19 Handy-Bewegung: Kacheln spielen ihren Zeige-Effekt beim Durchlaufen der Bildmitte, roter Fortschritt unter der Kopfzeile ---------- */
@media (pointer: coarse) {
  .card.is-lit::before { transform: translateX(120%); }
  .card.is-lit::after { transform: scaleX(1); }
  .card.is-lit { border-color: var(--accent); }
  .card.is-lit .card__icon svg { transform: translateY(-4px) rotate(-6deg) scale(1.08); }
  .project.is-lit .project__body::after { transform: translateX(120%); }
  .project.is-lit::after { transform: scaleX(1); }
  .project.is-lit { border-color: var(--accent); }
  .reason.is-lit svg { transform: translateY(-3px) scale(1.1); }
  .reason svg { transition: transform 0.9s var(--ease-out); }
  .step.is-lit .step__num { color: #fff; background: var(--accent); padding: 0.15rem 0.5rem; }
  .step__num { transition: background-color 0.6s var(--ease), color 0.6s var(--ease), padding 0.6s var(--ease); }
}
@media (max-width: 1099px) {
  .rv .card.part { transform: translateY(60px) scale(0.94); transition-duration: 1s; }
  .rv .project.part, .rv .reason.part, .rv .step.part { transform: translateY(40px); transition-duration: 1s; }
}
.scroll-progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 3px; background: var(--accent); transform-origin: left; transform: scaleX(var(--sp, 0)); display: none; pointer-events: none; }
@media (max-width: 1099px) { .scroll-progress { display: block; } }
@media (prefers-reduced-motion: reduce) { .scroll-progress { display: none; } }
