/* ne MEDIA — Bauteile und Anpassung an Bildschirmbreiten.
   Tokens in tokens.css. Reihenfolge folgt der Seite: Grundlagen, Kopf, Menü,
   Platzhalter, Leinwand, Rubrik, Kacheln, Kontakt, Fuß, Projekt, Karussell,
   Clips, YouTube, Rechtliches, Anfrage, Bewegung. */

/* ==== Grundlagen ======================================================= */

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

html {
  background: var(--grund);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--linie-stark) transparent;
}
html.gesperrt { overflow: hidden; }

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--f-text);
  font-size: var(--t-text);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button { font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--blau); color: var(--weiss); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--linie-stark); }
::-webkit-scrollbar-track { background: transparent; }

.ikon { width: 1.1em; height: 1.1em; flex: none; }

/* Nur für Screenreader */
.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.sprung {
  position: fixed; left: var(--rand); top: -4rem; z-index: 300;
  padding: .75rem 1rem; background: var(--schwarz); color: var(--weiss);
  font-family: var(--f-daten); font-size: var(--t-daten); text-transform: uppercase;
  text-decoration: none; transition: top .3s var(--ease);
}
.sprung:focus { top: 1rem; }

/* Hinter allem das Licht, darüber das Korn, darüber der Inhalt */
.glow {
  position: fixed; left: 0; top: 0; z-index: 0;
  width: 0; height: 0; pointer-events: none; opacity: 0;
  transition: opacity .8s var(--ease);
}
.glow::before {
  content: ''; position: absolute; left: -36vmax; top: -36vmax; width: 72vmax; height: 72vmax;
  background: radial-gradient(closest-side, rgba(2, 37, 253, .62), rgba(2, 37, 253, .3) 34%, rgba(2, 37, 253, .1) 62%, transparent);
  -webkit-mask-image: var(--rausch); mask-image: var(--rausch);
  -webkit-mask-size: 240px; mask-size: 240px;
  animation: rieseln .7s steps(1) infinite;
}
@keyframes rieseln {
  0%   { -webkit-mask-position: 0 0; mask-position: 0 0; }
  25%  { -webkit-mask-position: 83px 41px; mask-position: 83px 41px; }
  50%  { -webkit-mask-position: 19px 127px; mask-position: 19px 127px; }
  75%  { -webkit-mask-position: 151px 96px; mask-position: 151px 96px; }
}
.glow.an { opacity: 1; }
.korn {
  position: fixed; inset: -100%; z-index: 1; pointer-events: none; opacity: .09;
  will-change: transform;
  animation: korn .9s steps(1) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23k)'/%3E%3C/svg%3E");
}
@keyframes korn {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -1%); }
  80%  { transform: translate(3%, 3%); }
}
main, .fuss { position: relative; z-index: 2; }

/* ==== Schrift ========================================================== */

.daten {
  font-family: var(--f-daten);
  font-size: var(--t-daten);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.riese, .titel {
  font-family: var(--f-anzeige);
  font-style: italic;
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  text-wrap: balance;
}
.riese { font-size: var(--t-riese); line-height: .9; letter-spacing: -.025em; }
.titel { font-size: var(--t-titel); line-height: .92; letter-spacing: -.02em; }
.gross { font-size: var(--t-gross); line-height: 1.32; text-wrap: pretty; }
.gross + .gross { margin-top: .9em; }

.platzhinweis {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--text-leise);
}

/* Bedienelement: schlichtes Wort, die Linie läuft beim Zeigen von links ein */
.klammer {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 2.75rem;
  white-space: nowrap;
  text-decoration: none;
}
.klammer::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .55rem; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.klammer:hover::after, .klammer:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* ==== Kopf ============================================================= */

/* Ganz durchsichtig. Logo und Symbol wechseln einzeln auf Schwarz, sobald sie über Weiß liegen. */
.kopf {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: .7rem var(--rand);
  color: var(--weiss);
  pointer-events: none;
}
.kopf a, .kopf button { pointer-events: auto; }
.kopf { transition: translate .3s var(--ease); }
.kopf--weg { translate: 0 -110%; }
.kopf__marke { display: block; width: var(--marke-b); color: inherit; transform-origin: 0 0; transition: color .25s; }
.kopf__marke svg { display: block; width: 100%; height: auto; }
.kopf .auf-hell { color: #17181A; }

/* Menü-Symbol: zwei Striche, die sich im Menü zum Kreuz drehen */
.symbol {
  position: relative; display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  margin: -.5rem -.6rem -.5rem 0; color: inherit;
  transition: scale .12s var(--ease), color .25s;
  -webkit-tap-highlight-color: transparent;
}
.symbol:active { scale: .9; }
.symbol__striche { position: relative; display: block; width: 1.75rem; height: .75rem; }
.symbol__striche i {
  position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: top .45s var(--ease), bottom .45s var(--ease), rotate .45s var(--ease), left .3s var(--ease);
}
.symbol__striche i:first-child { top: 0; }
.symbol__striche i:last-child { bottom: 0; left: .6rem; }
@media (hover: hover) { .symbol:hover .symbol__striche i:last-child { left: 0; } }
.symbol--zu .symbol__striche i:last-child { left: 0; }
.menue.offen .symbol--zu .symbol__striche i:first-child { top: 5px; rotate: 45deg; }
.menue.offen .symbol--zu .symbol__striche i:last-child { bottom: 5px; rotate: -45deg; }

/* Beim ersten Besuch wartet das Logo, bis es im Showreel verschwunden ist */
[data-seite='start'] .kopf .kopf__marke { transition: opacity .6s var(--ease), color .25s; }
.bewegt.erstbesuch [data-seite='start'] .kopf .kopf__marke { opacity: 0; }

/* ==== Menü: die eine blaue Fläche ===================================== */

.menue {
  position: fixed; inset: 0; z-index: 120;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: var(--rand);
  isolation: isolate;
  color: var(--weiss);
  background: rgba(2, 37, 253, .3);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-wechsel);
  --linie: rgba(255, 255, 255, .28);
}
.menue.offen { clip-path: inset(0); }
/* Das Blau selbst besteht aus Körnern, dahinter scheint die Seite durch */
.menue::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--blau);
  -webkit-mask-image: var(--rausch); mask-image: var(--rausch);
  -webkit-mask-size: 240px; mask-size: 240px;
  animation: rieseln .7s steps(1) infinite;
}
.menue__kopf { display: flex; justify-content: space-between; align-items: center; }
.menue__haupt {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 3rem clamp(2rem, 6vw, 6rem); align-content: center;
  padding: clamp(3rem, 8vh, 6rem) 0;
}
.menue__gross li { overflow: hidden; padding-right: .2em; }
.menue__gross a {
  display: block; padding: .04em 0; text-decoration: none;
  font-family: var(--f-anzeige); font-style: italic; font-stretch: 125%; font-weight: 900;
  font-size: var(--t-titel); line-height: 1; letter-spacing: -.02em; text-transform: uppercase;
}
.menue__gross a span { display: inline-block; transition: transform .6s var(--ease); }
.menue__gross a:hover span { transform: translateX(.12em); }
.menue.offen .menue__gross a span { animation: steigen .9s var(--ease) both; animation-delay: calc(.18s + var(--i) * .07s); }
@keyframes steigen { from { transform: translateY(105%); } to { transform: none; } }
.menue__rubrik { margin-bottom: 1rem; opacity: .72; }
.menue__projekte a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .85rem 0; border-top: 1px solid var(--linie); text-decoration: none;
  font-family: var(--f-anzeige); font-style: italic; font-stretch: 112%; font-weight: 800;
  font-size: 1.125rem; text-transform: uppercase;
}
.menue__projekte a > span:first-child { transition: transform .5s var(--ease); }
.menue__projekte li:last-child a { border-bottom: 1px solid var(--linie); }
.menue__projekte a:hover > span:first-child { transform: translateX(.6rem); }
.menue__projekte .daten { font-family: var(--f-daten); font-style: normal; font-stretch: 100%; text-transform: none; font-weight: 500; opacity: .72; }
.menue__fuss { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; justify-content: space-between; }
.menue__fuss a { text-decoration: none; }
.menue__fuss a:hover { text-decoration: underline; }

/* ==== Platzhalter: Tonflächen im späteren Bildrhythmus ================= */

.leer {
  --ton: var(--ton-2); --schrift: rgba(255, 255, 255, .78);
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .15rem;
  width: 100%; aspect-ratio: var(--ar, 3/2);
  padding: clamp(.75rem, 1.4vw, 1.25rem);
  overflow: hidden;
  color: var(--schrift);
  background: linear-gradient(112deg, color-mix(in srgb, var(--ton) 90%, #fff) 0%, var(--ton) 55%, color-mix(in srgb, var(--ton) 88%, #000) 100%);
}
.leer--ton1 { --ton: var(--ton-1); }
.leer--ton3 { --ton: var(--ton-3); --schrift: rgba(0, 0, 0, .7); }
.leer--ton4 { --ton: var(--ton-4); --schrift: rgba(0, 0, 0, .62); }
.leer__was { font-size: var(--t-daten); font-weight: 600; }
.leer__info { font-size: .75rem; opacity: .7; }
.leer--lebt::before {
  content: ''; position: absolute; inset: -40%;
  background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, .09) 50%, transparent 62%);
  animation: lichtbahn 7s var(--ease-wechsel) infinite alternate;
}
@keyframes lichtbahn { from { transform: translateX(-28%); } to { transform: translateX(28%); } }

/* ==== Leinwand: das Showreel füllt den ersten Blick ==================== */

.leinwand {
  position: relative; height: 100svh; min-height: 30rem;
  overflow: hidden; background: var(--schwarz); color: var(--weiss);
}
.leinwand__medium, .leinwand__medium > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.leinwand__medium img, .leinwand__medium video { object-fit: cover; }
.leinwand__medium .leer { aspect-ratio: auto; padding: 0; }
.leinwand__medium .leer__was, .leinwand__medium .leer__info {
  position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap;
}
.leinwand__medium .leer__was { top: 44%; }
.leinwand__medium .leer__info { top: calc(44% + 1.5rem); }
/* ==== Rubrik: großes Wort links, Absatz rechts ========================= */

.rubrik {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem;
  align-items: end;
  padding: clamp(6rem, 3rem + 12vw, 13rem) 1.5rem 1rem;
}
.rubrik__titel {
  font-family: var(--f-anzeige); font-style: italic; font-stretch: 125%; font-weight: 900;
  font-size: clamp(3rem, 8.3vw, 12rem); line-height: .78; letter-spacing: -.03em;
  text-transform: uppercase; white-space: nowrap;
}
.rubrik__text { max-width: 44rem; font-size: clamp(1rem, .9rem + .35vw, 1.3125rem); line-height: 1.38; text-wrap: pretty; }
.rubrik__text p + p { margin-top: .8em; }

/* ==== Kacheln: ein Thumbnail pro Projekt =============================== */

.kacheln {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem;
  padding-inline: 1.5rem;
  position: relative; isolation: isolate;
}
/* Blaue Farbfläche aus Korn hinter allen Projekten: mittig am stärksten, läuft ohne Kante aus */
.kacheln::before {
  content: ''; position: absolute; inset: -16% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(2, 37, 253, .95), rgba(2, 37, 253, .62) 38%, rgba(2, 37, 253, .22) 70%, transparent);
  -webkit-mask-image: var(--rausch); mask-image: var(--rausch);
  -webkit-mask-size: 240px; mask-size: 240px;
  animation: rieseln .7s steps(1) infinite;
}
.arbeiten .rubrik, .rubrik--webdesign { position: relative; z-index: 1; }
.kachel {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px;
  color: var(--weiss); text-decoration: none; text-align: center;
  background: var(--ton-1);
  transition: translate .4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
/* Freie Kachel: kein Foto, nur die Markenfarbe mit Korn. Führt zum Kontaktformular */
.kachel--frei { background: var(--blau); }
.kachel--frei::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: var(--rausch); background-size: 240px; opacity: .12;
  transition: opacity .3s var(--ease);
}
@media (hover: hover) { .kachel--frei:hover::before { opacity: .24; } }
.kachel__medium, .kachel__medium > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.kachel__medium > * { transition: transform 1.2s var(--ease); }
.kachel__medium img, .kachel__medium video { object-fit: cover; }
/* Leichte Abdunklung, damit der weiße Titel auch auf hellen Fotos lesbar bleibt */
.kachel__medium::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0, 0, 0, .42);
  transition: background-color .5s var(--ease);
}
.kachel__medium .leer { aspect-ratio: auto; padding: 0; }
.kachel__medium .leer__was, .kachel__medium .leer__info { display: none; }
.kachel__titel {
  position: relative; padding-inline: 5%;
  font-family: var(--f-anzeige); font-style: italic; font-stretch: 125%; font-weight: 900;
  font-size: clamp(1.75rem, 1rem + 2.6vw, 3.25rem); line-height: 1; letter-spacing: -.02em;
  text-transform: uppercase; text-wrap: balance;
}
.pille {
  position: absolute; left: 50%; bottom: 1.25rem; translate: -50% 0;
  padding: .3rem .85rem; border: 1px solid currentColor; border-radius: 999px;
  font-size: .75rem; line-height: 1rem; white-space: nowrap;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .3s, color .3s;
}
.pille::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: var(--rausch); background-size: 240px; opacity: .22;
}
@media (hover: hover) {
  .kachel:hover { translate: 0 -5px; }
  .kachel:hover .kachel__medium::after { background: rgba(0, 0, 0, .22); }
  .kachel:hover .kachel__medium > * { transform: scale(1.03); }
  .kachel:hover .pille { background: var(--weiss); color: var(--schwarz); }
}
.kachel:active { translate: 0 -1px; transition-duration: .1s; }
.kachel:active .kachel__medium > * { transform: scale(1.01); transition-duration: .15s; }
.bewegt .kachel[data-zeige] { transition: opacity 1s var(--ease), transform 1.2s var(--ease), translate .4s var(--ease); }

/* ==== Seiten-Bau: eigene CI, Werte aus deren design-system/tokens ====== */

.sb {
  --sb-ink: #0F172A; --sb-koerper: #5B667A; --sb-indigo: #4338CA; --sb-tint: #EEF0FF;
  --sb-linie: #E7EAF1; --sb-auf-dunkel: #C7CDE0; --sb-ease: cubic-bezier(.22, .61, .36, 1);
  position: relative; isolation: isolate;
  color: var(--sb-ink);
  font-family: 'Inter', var(--f-text);
  -webkit-font-smoothing: antialiased;
}
/* Der Scrollweg: die Bühne bleibt stehen, solange der Deckel aufgeht */
.sb__strecke { position: relative; }
/* Platz unter dem MacBook, bevor Kontakt beginnt */
.sb { padding-bottom: clamp(9rem, 30svh, 18rem); }
.bewegt .sb__strecke { height: calc(100svh + 110vh); }
.sb__buehne {
  position: sticky; top: 0; height: 100svh; min-height: 30rem;
  display: grid; place-items: center;
  perspective: 2400px; perspective-origin: 50% 32%;
}

/* MacBook Pro 14 in Space Gray. Maße relativ zur Breite --b:
   31,26 × 22,12 × 1,55 cm, Display 3024 × 1964 */
.mb {
  --z: 0; --zs: 1.3; --dy: 0px;
  --b: min(84vw, 60rem, calc((100svh - 8rem) * 1.08));
  --h: calc(var(--b) * .669);
  --tiefe: var(--h);
  --dicke: calc(var(--b) * .0125);
  --deckel: calc(var(--b) * .0085);
  --ecke: calc(var(--b) * .021);
  position: relative; display: block; width: var(--b); height: var(--h);
  margin-top: calc(var(--h) * -.42);
  transform-style: preserve-3d; transform-origin: 50% 100%;
  transform:
    translateY(calc(var(--z) * var(--dy)))
    scale(calc(1 + var(--z) * (var(--zs) - 1)))
    rotateX(-13deg);
  color: var(--sb-ink); text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.mb:focus-visible { outline: 2px solid var(--sb-indigo); outline-offset: 8px; }

/* iPhone 17 Pro in Deep Blue: steht nur auf dem Handy statt des MacBooks. Maße relativ
   zur Breite --i, das Display läuft wie am Original mit 402 × 874 Punkten. */
.ip { display: none; }

/* Unterteil: Deckfläche mit feiner Kantenfase, darunter die Lagen der Seitenwand */
.mb__deck {
  position: absolute; left: 0; top: 100%; width: 100%; height: var(--tiefe);
  transform-origin: top; transform: rotateX(90deg); transform-style: preserve-3d;
  border-radius: var(--ecke);
  background: linear-gradient(178deg, #54555A, #63646A 40%, #5C5D62 75%, #515257);
  box-shadow: inset 0 0 0 calc(var(--b) * .0012) rgba(255, 255, 255, .26), inset 0 0 calc(var(--b) * .006) rgba(255, 255, 255, .08);
}
/* Lagen: oben helle Fase, nach unten dunkler, wie eine gerundete Kante im Licht */
.mb__lage { position: absolute; inset: 0; border-radius: var(--ecke); }
.mb__lage--u {
  background: hsl(228 3% calc(66% - var(--n) * 3%));
  transform: translateZ(calc(var(--dicke) * var(--n) / -14));
}
.mb__lage--o {
  border-radius: var(--ecke) var(--ecke) calc(var(--b) * .005) calc(var(--b) * .005);
  background: hsl(228 3% calc(30% + var(--n) * 3.2%));
  transform: translateZ(calc(var(--deckel) * var(--n) / -9));
}

/* Lautsprecher: fast unsichtbar fein gelocht, wie am Original */
.mb__box {
  position: absolute; top: 5%; width: 5.8%; height: 50%; opacity: .55;
  background: radial-gradient(circle, #2B2C2F 26%, transparent 30%) 0 0 / calc(var(--b) * .0034) calc(var(--b) * .0034);
}
.mb__box--l { left: 2%; }
.mb__box--r { right: 2%; }

/* Tastatur: schwarze Wanne mit beschrifteten Tasten */
.mb__tastatur {
  position: absolute; left: 8.6%; right: 8.6%; top: 4%; height: 54%;
  display: flex; flex-direction: column; gap: .6%; padding: .3%;
  border-radius: calc(var(--b) * .004);
  background: #0E0E10;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .14);
}
.mb__reihe { flex: 1; display: flex; gap: .45%; }
.mb__reihe--f { flex: .58; }
.mb__reihe i {
  display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden;
  border-radius: calc(var(--b) * .0018);
  background: linear-gradient(180deg, #232326, #161618);
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .16);
  color: #D7D8DB; font-family: 'Inter', var(--f-text); font-style: normal; font-weight: 500;
  font-size: calc(var(--b) * .0125); line-height: 1;
}
.mb__reihe--f i { font-size: calc(var(--b) * .0078); }
.mb__trackpad {
  position: absolute; left: 50%; bottom: 3.6%; width: 41%; height: 35%; translate: -50% 0;
  border-radius: calc(var(--b) * .009);
  background: linear-gradient(172deg, #707176, #5C5D61 55%, #55565A);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .16);
}

/* Vorderkante: läuft mit den Lagen rund aus, die Griffmulde sitzt mittig */
.mb__kante {
  position: absolute; left: 50%; top: 100%; width: 12%; height: var(--dicke); translate: -50% 0;
  transform-origin: top; transform: translateZ(calc(var(--tiefe) + .5px));
  border-radius: 0 0 calc(var(--b) * .012) calc(var(--b) * .012);
  background: linear-gradient(180deg, #1F2023, #3E3F44 70%, #55565B);
}

/* Scharnier: nur sichtbar, wenn der Deckel offen ist */
.mb__scharnier {
  position: absolute; left: 13%; right: 13%; bottom: calc(var(--b) * -.006); height: calc(var(--b) * .009);
  border-radius: calc(var(--b) * .003);
  background: linear-gradient(180deg, #232326, #0B0B0C 60%, #17181A);
}

.mb__klappe {
  --winkel: 12deg;
  position: absolute; inset: 0;
  transform-origin: 50% 100%; transform: rotateX(var(--winkel));
  transform-style: preserve-3d;
}
.mb__aussen, .mb__display {
  position: absolute; inset: 0;
  border-radius: var(--ecke) var(--ecke) calc(var(--b) * .005) calc(var(--b) * .005);
}
/* Deckelrücken mit breitem Lichtverlauf und Kantenfase */
.mb__aussen {
  display: grid; place-items: center;
  transform: translateZ(calc(var(--deckel) * -1 - 1px)) rotateY(180deg);
  background: linear-gradient(168deg, #74757B, #5E5F65 38%, #515257 70%, #5C5D62);
  box-shadow: inset 0 0 0 calc(var(--b) * .0012) rgba(255, 255, 255, .24), inset 0 0 calc(var(--b) * .008) rgba(255, 255, 255, .07);
}
/* Das „ne“ als polierte Fläche im Aluminium, ausgerichtet wie der Apfel:
   lesbar von hinten bei offenem Deckel, von vorn gesehen also kopfüber. */
.mb__gravur {
  display: block; width: 12%; aspect-ratio: 1287 / 449;
  background: linear-gradient(112deg, #E7E8EC 0%, #A9ABB2 26%, #F4F5F7 48%, #8E9097 70%, #D7D8DD 100%);
  -webkit-mask: url('../assets/img/ne-mark.svg') center / contain no-repeat;
  mask: url('../assets/img/ne-mark.svg') center / contain no-repeat;
}
/* Display: Glas fast bis zum Rand, unten etwas breiterer Rand */
.mb__display {
  overflow: hidden;
  padding: calc(var(--b) * .014) calc(var(--b) * .014) calc(var(--b) * .024);
  background: #050506;
  box-shadow: 0 0 0 calc(var(--b) * .0018) #6B6C70, inset 0 0 0 1px #1C1D1F;
}
.mb__schirm {
  --s: .72;
  position: relative; width: 100%; aspect-ratio: 3024 / 1964; overflow: hidden;
  border-radius: calc(var(--b) * .008);
  background: linear-gradient(150deg, #1B2647, #0F172A 55%, #2A2470);
}
/* Spiegelung auf dem Glas */
.mb__display::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .1) 0, rgba(255, 255, 255, .03) 26%, transparent 26.2%);
}
/* Notch: 12,5 % der Displaybreite, oben geschwungen in den Rahmen auslaufend */
.mb__notch {
  position: absolute; left: 50%; top: calc(var(--b) * .0135); width: calc(var(--b) * .1215); translate: -50% 0;
  height: auto; fill: #050506; overflow: visible;
}

/* Das Fenster: feste 1200 px Breite, per --s aufs Display skaliert */
.sb__innen { position: absolute; left: 0; top: 0; width: 1200px; height: 779px; padding: 36px 20px 0; transform: scale(var(--s)); transform-origin: 0 0; }
/* macOS-Menüleiste links und rechts der Notch */
.sb__menue { position: absolute; left: 0; right: 0; top: 0; height: 30px; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; color: #FFFFFF; font-size: 13px; background: rgba(0, 0, 0, .28); }
.sb__menue p { display: flex; align-items: center; gap: 18px; }
.sb__menue b { font-weight: 700; }
.sb__status svg { width: 26px; height: 13px; }
.sb__browser { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 12px 12px 0 0; background: #FFFFFF; }
.sb__leiste { position: relative; flex: none; display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; box-shadow: inset 0 -1px 0 var(--sb-linie); }
.sb__leiste i { width: 11px; height: 11px; border-radius: 50%; background: var(--sb-linie); }
.sb__leiste span { position: absolute; left: 50%; translate: -50% 0; padding: 3px 20px; border-radius: 10px; background: #F6F8FB; font-size: 13px; color: var(--sb-koerper); }
.sb__seite { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 16px 36px 0; background: radial-gradient(circle at 92% -8%, rgba(109, 90, 230, .16), transparent 42%), #F6F8FB; }
.sb__nav { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.sb__marke { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-family: 'Clash Display', var(--f-text); font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--sb-ink); }
.sb__marke img { width: 38px; height: 38px; }
.sb__knopf {
  display: inline-flex; align-items: center; gap: 8px; flex: none; white-space: nowrap;
  padding: 10px 18px; border-radius: 100px;
  background: var(--sb-indigo); color: #FFFFFF; font-size: 14px; font-weight: 600;
  box-shadow: 0 14px 30px -10px rgba(67, 56, 202, .55);
}
.sb__knopf svg { width: 16px; height: 16px; transition: translate .18s var(--sb-ease); }
@media (hover: hover) { .mb:hover .sb__knopf svg { translate: 3px 0; } }

/* Der Kopfbereich von seiten-bau.de: Text links, die Fotos laufen rechts aus dem Fenster */
.sb__held { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 48px; margin-top: 12px; }
.sb__text { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 18px; }
.sb__eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding: 6px 13px; border-radius: 100px; background: var(--sb-tint); color: var(--sb-indigo); font-size: 14px; font-weight: 700; }
.sb__eyebrow svg { width: 14px; height: 14px; }
.sb__claim { margin-top: 20px; font-family: 'Clash Display', var(--f-text); font-weight: 700; font-size: 84px; line-height: 1.02; letter-spacing: -.02em; word-spacing: .08em; color: var(--sb-ink); }
.sb__titel { margin-top: 12px; font-family: 'Clash Display', var(--f-text); font-weight: 700; font-size: 38px; line-height: 1.16; letter-spacing: -.01em; word-spacing: .1em; text-wrap: balance; }
.sb__titel span { background: linear-gradient(135deg, #4338CA, #6D5AE6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sb__zahlen { align-self: stretch; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 24px; margin-top: auto; padding-top: 14px; box-shadow: inset 0 1px 0 var(--sb-linie); }
.sb__zahlen dt { font-size: 24px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--sb-ink); }
.sb__zahlen dd { font-size: 13px; line-height: 1.3; color: var(--sb-koerper); }

/* Fotos ohne Rahmen: zwei versetzte Spalten, unten vom Fenster angeschnitten */
.sb__fotos { min-height: 0; overflow: hidden; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.sb__spalte { display: grid; gap: 10px; }
.sb__spalte:last-child { margin-top: 56px; }
.sb__spalte img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.sb__spalte img:nth-child(even) { aspect-ratio: 1; }

/* ==== Kontakt ========================================================== */

.kontakt { position: relative; overflow: hidden; padding-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
.kontakt__faeden { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.kontakt .rubrik, .anfrage, .anfrage__danke { position: relative; }
.rubrik--kontakt { grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.kontakt__zeile { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); }
.kontakt__bild { flex: none; width: clamp(6.5rem, 11vw, 10.5rem); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }

/* ==== Fuß ============================================================== */

.fuss { padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) 1.5rem 1.5rem; font-size: .9375rem; line-height: 1.3; }
.fuss__oben { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 2rem; }
/* Das blaue Logo: weiche Ränder, Schein drumherum, beides in Korn aufgelöst */
.fuss__logo {
  /* Innenabstand, damit die Maske den Schein nicht hart abschneidet */
  position: relative; box-sizing: content-box; width: clamp(13rem, 27vw, 27rem);
  margin: -5rem; padding: 5rem; color: var(--blau);
  pointer-events: none;   /* der Schein ragt über die Links darunter */
  -webkit-mask-image: var(--rausch-sanft); mask-image: var(--rausch-sanft);
  -webkit-mask-size: 240px; mask-size: 240px;
}
.fuss__logo svg { display: block; width: 100%; height: auto; overflow: visible; filter: blur(.14rem) drop-shadow(0 0 .55rem rgba(2, 37, 253, .75)) drop-shadow(0 0 2.2rem rgba(2, 37, 253, .4)); }
.fuss__spalten {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: end;
  column-gap: clamp(2rem, 5.5vw, 6rem);
}
.fuss__spalte { display: grid; gap: .75rem; align-content: start; }
.fuss__kopf { margin-bottom: .9rem; }
.fuss a { text-decoration: none; }
.fuss__spalte a:hover, .fuss__recht a:hover { text-decoration: underline; }
.fuss__recht {
  display: flex; flex-wrap: wrap; gap: .4rem 2.25rem; margin-top: clamp(2.5rem, 5vw, 4rem);
  font-size: .6875rem; color: var(--text-leise);
}

/* ==== Projekt ========================================================== */

.rubrik--webdesign { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-bottom: 0; }
.rubrik__zeile { font-family: var(--f-anzeige); font-style: italic; font-stretch: 112%; font-weight: 800; font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem); line-height: 1.1; margin-bottom: .5rem; }
.rubrik--projekt { align-items: start; padding-top: clamp(7rem, 4rem + 8vw, 11rem); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.rubrik--projekt .rubrik__titel { font-size: clamp(2.75rem, 6.6vw, 9rem); line-height: .94; white-space: normal; text-wrap: balance; }
.rubrik--projekt .rubrik__text { display: grid; gap: .8em; justify-items: start; }
.pille--still { position: relative; left: 0; bottom: 0; translate: none; }
.projekt__bild { margin-inline: 1.5rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; }
.projekt__bild img { width: 100%; height: 100%; object-fit: cover; }
.projekt__bild--film { margin-bottom: .5rem; background: #000; }
.projekt__bild--film video { display: block; width: 100%; height: 100%; }

/* Galerie: Fotos und Clips im selben Raster */
.galerie {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem;
  padding-inline: 1.5rem;
}
.galerie__teil {
  position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; padding: 0;
  overflow: hidden; border-radius: 6px; background: var(--ton-1); cursor: zoom-in;
  transition: translate .4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.galerie--quer { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.galerie--quer .galerie__teil { aspect-ratio: 3 / 2; }
.galerie__teil img, .galerie__teil video { width: 100%; height: 100%; object-fit: cover; }
.bewegt .galerie__teil[data-zeige] { transition: opacity 1s var(--ease), transform 1.2s var(--ease), translate .4s var(--ease); }
@media (hover: hover) { .galerie__teil:hover { translate: 0 -4px; } }
.galerie__teil:active { translate: 0 -1px; transition-duration: .1s; }

/* Großansicht */
.schau {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  color: var(--weiss); background: rgba(0, 0, 0, .94);
  overflow: hidden;
}
.schau[open] { animation: schau-auf .3s var(--ease); }
@keyframes schau-auf { from { opacity: 0; } to { opacity: 1; } }
.schau::backdrop { background: transparent; }
.schau__buehne { position: absolute; inset: 3.5rem clamp(1rem, 6vw, 5.5rem); display: grid; place-items: center; }
.schau__buehne img, .schau__buehne video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; min-height: 0; animation: schau-auf .3s var(--ease); }
.schau__zahl { position: absolute; left: 1.5rem; top: 1.1rem; }
.schau__zu { position: absolute; right: 1.5rem; top: .35rem; font-size: .9375rem; }
.schau__pfeil {
  position: absolute; right: .75rem; top: 50%; translate: 0 -50%;
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  transition: background-color .25s;
}
.schau__pfeil:hover { background: rgba(255, 255, 255, .14); }
.schau__pfeil--zurueck { right: auto; left: .75rem; }
.schau__pfeil--zurueck .ikon { rotate: 180deg; }
.schau__pfeil .ikon { width: 1.5rem; height: 1.5rem; }

.naechstes {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.5rem 2rem;
  margin-top: clamp(3rem, 6vw, 6rem);
  padding: clamp(5rem, 16vh, 10rem) 1.5rem clamp(2.5rem, 6vh, 4rem);
  text-decoration: none;
  background: var(--schwarz); color: var(--weiss);
}
.naechstes__bild {
  position: absolute; inset: 0; z-index: -1;
  opacity: 0; transform: scale(1.06);
  transition: opacity .8s var(--ease), transform 2s var(--ease);
}
.naechstes__bild > img, .naechstes__bild > .leer { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.naechstes__bild > .leer > span { display: none; }
.naechstes__bild::after { content: ''; position: absolute; inset: 0; background: rgba(10, 10, 10, .55); }
.naechstes:hover .naechstes__bild, .naechstes:focus-visible .naechstes__bild { opacity: 1; transform: none; }
.naechstes__label { grid-column: 1 / -1; min-height: 0; }
.naechstes__pfeil .ikon { width: clamp(2.5rem, 5vw, 4.5rem); height: auto; transition: transform .7s var(--ease); }
.naechstes:hover .naechstes__pfeil .ikon { transform: translateX(.5rem); }

/* ==== YouTube (lädt erst nach Klick) =================================== */

.ytreihe {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: 1rem; margin-top: 1rem; padding: 0 1.5rem;
}
.yt {
  position: relative; overflow: hidden; aspect-ratio: 16/9; border-radius: 6px;
  background: radial-gradient(90% 90% at 30% 20%, #242422, #0c0c0c);
  color: var(--weiss);
}
.yt--film { background-size: cover; background-position: center; }
.yt--film .yt__deckel { background: rgba(0, 0, 0, .4); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt--leer .leer { height: 100%; }
.yt__deckel {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(1rem, 2.5vw, 1.75rem);
}
.yt__titel {
  font-family: var(--f-anzeige); font-stretch: 118%; font-weight: 600;
  font-size: clamp(1.25rem, 1rem + 1vw, 2rem); line-height: 1; text-transform: uppercase;
  max-width: 18ch;
}
.yt__hinweis { color: var(--text-leise); max-width: 44ch; }

/* ==== Rechtliches (Saallicht an) ======================================= */

.recht {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2rem clamp(2rem, 7vw, 7rem);
  padding: clamp(7rem, 18vh, 11rem) var(--rand) var(--block);
}
.recht h1 {
  align-self: start; position: sticky; top: 6rem;
  font-stretch: 125%; font-size: clamp(1.75rem, .8rem + 2vw, 2.75rem);
  overflow-wrap: anywhere;
}
.recht__abschnitt {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem;
  padding: 1.25rem 0 2.25rem;
  border-top: 1px solid var(--linie);
  scroll-margin-top: 5rem;
}
.recht__abschnitt h2 {
  font-family: var(--f-anzeige); font-stretch: 118%; font-weight: 600;
  font-size: 1.125rem; line-height: 1.2; text-transform: uppercase;
}
.recht__abschnitt p, .recht__abschnitt li { max-width: 66ch; }
.recht__abschnitt p + p, .recht__abschnitt p + ul, .recht__abschnitt ul + p { margin-top: .75em; }
.recht__abschnitt li { padding-left: 1.4em; position: relative; }
.recht__abschnitt li::before { content: ''; position: absolute; left: 0; top: .78em; width: .8em; height: 1px; background: currentColor; }

/* ==== 404 ============================================================== */

.filmriss {
  min-height: 100svh;
  display: grid; align-content: center; justify-items: start; gap: 1.5rem;
  padding: 7rem var(--rand) 4rem;
}
.filmriss__wort { animation: riss 2.4s steps(1) infinite; }
@keyframes riss {
  0%, 86%, 100% { transform: none; clip-path: none; }
  88% { transform: translateY(-.08em); clip-path: inset(0 0 48% 0); }
  90% { transform: translate(.04em, .05em); clip-path: inset(40% 0 0 0); }
  92% { transform: translateY(-.02em); clip-path: none; }
}

/* ==== Anfrage: Formular und Venom-Taste ================================ */

.anfrage {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem;
  margin-top: clamp(2.5rem, 5vw, 4.5rem); padding-inline: 1.5rem;
}
.anfrage[hidden], .anfrage__danke[hidden] { display: none; }
.feld { display: grid; gap: .6rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.feld--breit { grid-column: 1 / -1; }
.feld__name { padding: 0; font-size: clamp(1rem, .9rem + .35vw, 1.3125rem); line-height: 1.38; }
.feld__name i { margin-left: .3em; font-size: .75em; font-style: normal; color: var(--text-leise); }
/* Eingabefelder und Auswahl: Fläche aus blauem Korn, damit klar ist, wohin man tippt */
.feld__box, .wahl span {
  position: relative; isolation: isolate; overflow: hidden; border-radius: .75rem;
  background: rgba(2, 37, 253, .16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  transition: box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s, transform .12s;
}
.feld__box { display: block; }
.feld__box::before, .wahl span::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--blau); opacity: .75;
  -webkit-mask-image: var(--rausch); mask-image: var(--rausch);
  -webkit-mask-size: 240px; mask-size: 240px;
  transition: opacity .2s var(--ease);
}
@media (hover: hover) {
  .feld__box:hover, .wahl:hover span { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
  .feld__box:hover::before, .wahl:hover span::before { opacity: 1; }
}
.feld__box:focus-within, .feld__box:has([aria-invalid='true']) { background: rgba(2, 37, 253, .34); outline: 2px solid var(--weiss); outline-offset: -2px; }
.feld__box:focus-within::before { opacity: 1; }
.feld input, .feld textarea {
  display: block; width: 100%; padding: .95rem 1.1rem; border: 0; border-radius: 0;
  font: inherit; font-size: 1.125rem; color: inherit; background: none; outline: none; resize: none;
  color-scheme: dark;
}
/* Vom Browser ausgefüllte Felder behalten die Fläche */
.feld input:-webkit-autofill { -webkit-text-fill-color: var(--weiss); transition: background-color 99999s; }
.feld input::placeholder, .feld textarea::placeholder { color: rgba(255, 255, 255, .72); }
.wahl__reihe { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.wahl { position: relative; }
.wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wahl span { display: inline-flex; align-items: center; min-height: 3.1rem; padding: 0 1.4rem; font-size: 1.0625rem; cursor: pointer; }
.wahl:active span { transform: scale(.97); }
.wahl input:checked + span { background: var(--weiss); color: var(--schwarz); }
.wahl input:checked + span::before { opacity: 0; }
.wahl input:focus-visible + span { outline: 1px solid var(--weiss); outline-offset: 3px; }
.anfrage__fehler { font-size: var(--t-daten); }
.anfrage__fehler:empty { display: none; }
.anfrage__senden { position: relative; display: flex; justify-content: center; margin-top: clamp(1.5rem, 4vw, 3rem); }
.anfrage__danke {
  display: grid; gap: 1.25rem; max-width: 40rem; margin: clamp(2.5rem, 5vw, 4.5rem) 1.5rem 0;
  font-size: var(--t-gross); line-height: 1.32; outline: none;
}
.anfrage__notfall { font-size: 1rem; color: var(--text-leise); }

/* Die Venom-Taste, aufs Dunkle gedreht: weißer Hochglanz mit hellen Fäden */
.venom {
  --mx: 0px; --my: 0px;
  position: relative; z-index: 1;
  display: inline-block;
  padding: .95em 1.7em 1em;
  border-radius: 999px;
  font-family: var(--f-anzeige); font-style: italic; font-stretch: 125%; font-weight: 900;
  font-size: 1.0625rem;
  line-height: 1; letter-spacing: -.01em; text-transform: uppercase; text-decoration: none;
  color: #0A0A0B;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
  background:
    radial-gradient(120% 95% at 28% -10%, #FFFFFF, transparent 52%),
    linear-gradient(180deg, #FFFFFF 0%, #E9E9EC 34%, #BDBDC4 72%, #E2E2E6 100%);
  box-shadow:
    inset 0 1.5px 0 #FFFFFF,
    inset 0 -5px 9px rgba(0, 0, 0, .28),
    0 10px 26px -14px rgba(0, 0, 0, .6);
  transform: translate(var(--mx), var(--my));
  transition: box-shadow .5s var(--ease), filter .5s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.venom::before {
  content: ''; position: absolute; left: 8%; right: 8%; top: 6%; height: 42%;
  border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .05) 70%, transparent);
  opacity: .8;
  transition: opacity .5s var(--ease);
}
.venom:hover { filter: brightness(1.04); }
.venom:active { filter: brightness(.94); }
.venom:focus-visible { outline: 1px solid var(--weiss); outline-offset: 6px; }

/* ==== Bewegung: nur, wenn das Skript läuft und Bewegung erwünscht ist == */

.bewegt [data-zeige] { opacity: 0; transform: translateY(1.25rem); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.bewegt [data-zeige].sichtbar { opacity: 1; transform: none; }
/* Bilder öffnen sich schräg, im Winkel des Logos */
.bewegt [data-blende] { clip-path: polygon(0 0, 0 0, -12% 100%, -12% 100%); transition: clip-path 1.3s var(--ease-wechsel); }
.bewegt [data-blende].sichtbar { clip-path: polygon(0 0, 112% 0, 100% 100%, -12% 100%); }

/* ==== Schmale Bildschirme ============================================== */

/* Bei ungerader Zahl steht das letzte Projekt allein in voller Breite, sonst bliebe unten ein Loch */
@media (min-width: 641px) {
  .kachel:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
}
@media (max-width: 860px) {
  .recht { grid-template-columns: minmax(0, 1fr); }
  .recht h1 { position: static; }
  .menue__haupt { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .rubrik { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .rubrik--projekt .rubrik__titel { font-size: 13vw; }
  .rubrik--webdesign .rubrik__titel { font-size: 12.4vw; }
  .galerie { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .galerie--quer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rubrik__titel { font-size: 15.5vw; line-height: .9; }
  .fuss__oben { grid-template-columns: minmax(0, 1fr); gap: 3.5rem; }
  .fuss__logo { order: 2; width: min(70%, 20rem); }
  .fuss__spalten { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; gap: 2.5rem 1.5rem; }
}
@media (max-width: 640px) {
  .kacheln { grid-template-columns: minmax(0, 1fr); }
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galerie--quer { grid-template-columns: minmax(0, 1fr); }
  .naechstes { grid-template-columns: minmax(0, 1fr); }
  .naechstes__pfeil { display: none; }
  .anfrage { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .mb { display: none; }
  .ip {
    --z: 0; --e: 1.15; --start: .86;
    --i: min(74vw, calc((100svh - 6rem) / 2.17));
    --ecke: calc(var(--i) * .136);
    position: relative; display: block; width: var(--i); aspect-ratio: 402 / 874;
    transform-style: preserve-3d; transform-origin: 50% 60%;
    transform:
      scale(calc(var(--start) + var(--z) * (var(--e) - var(--start))))
      rotateX(calc((1 - var(--z)) * 30deg));
    color: var(--sb-ink); text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .ip__lage {
    position: absolute; inset: 0; border-radius: var(--ecke);
    background: hsl(217 30% calc(19% + var(--n) * 3%));
    transform: translateZ(calc(var(--i) * -.024 * var(--n) / 9));
  }
  .ip__knopf { position: absolute; width: calc(var(--i) * .009); border-radius: 2px; background: #2C3A52; transform: translateZ(calc(var(--i) * -.012)); }
  .ip__knopf--aktion { left: calc(var(--i) * -.008); top: 18%; height: 3.4%; }
  .ip__knopf--laut { left: calc(var(--i) * -.008); top: 24.5%; height: 6.6%; }
  .ip__knopf--leise { left: calc(var(--i) * -.008); top: 32.5%; height: 6.6%; }
  .ip__knopf--seite { right: calc(var(--i) * -.008); top: 27%; height: 10%; }
  .ip__knopf--kamera { right: calc(var(--i) * -.008); top: 62%; height: 7%; }
  .ip__glas {
    position: absolute; inset: 0; overflow: hidden; border-radius: var(--ecke);
    padding: calc(var(--i) * .03);
    background: #050506;
    box-shadow: 0 0 0 calc(var(--i) * .007) #33435E, inset 0 0 0 1px #1C1D1F;
  }
  .ip__glas::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(118deg, rgba(255, 255, 255, .1) 0, rgba(255, 255, 255, .03) 24%, transparent 24.2%);
  }
  .ip__schirm { --s: .65; position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--i) * .106); background: #F6F8FB; }
  .ip__insel { position: absolute; left: 50%; top: calc(var(--i) * .058); width: 31%; height: calc(var(--i) * .092); translate: -50% 0; border-radius: 999px; background: #000; }
  .ip__innen {
    position: absolute; left: 0; top: 0; width: 402px; height: calc(100% / var(--s)); overflow: hidden;
    display: flex; flex-direction: column; padding: 66px 20px 0;
    transform: scale(var(--s)); transform-origin: 0 0;
    background: radial-gradient(circle at 92% 0%, rgba(109, 90, 230, .18), transparent 46%), #F6F8FB;
  }
  .ip__status { position: absolute; left: 0; right: 0; top: 0; height: 58px; display: flex; justify-content: space-between; align-items: center; padding: 8px 32px 0 46px; font-size: 17px; color: var(--sb-ink); }
  .ip__status p { display: flex; align-items: center; gap: 6px; }
  .ip__status svg { width: 27px; height: 13px; }
  .ip__balken { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
  .ip__balken i { width: 3px; border-radius: 1px; background: currentColor; }
  .ip__leiste { position: absolute; left: 0; right: 0; bottom: 0; display: grid; justify-items: center; gap: 13px; padding: 12px 20px 9px; background: #FBFCFE; box-shadow: 0 -1px 0 var(--sb-linie); }
  .ip__leiste span { width: 100%; padding: 11px; border-radius: 14px; background: #EEF0F5; text-align: center; font-size: 15px; color: var(--sb-koerper); }
  .ip__leiste i { width: 134px; height: 5px; border-radius: 3px; background: var(--sb-ink); }
  .ip .sb__marke { font-size: 21px; }
  .ip .sb__marke img { width: 36px; height: 36px; }
  .ip .sb__knopf { padding: 9px 14px; font-size: 13px; }
  .ip .sb__held { display: block; margin-top: 26px; }
  .ip .sb__text { padding-bottom: 0; }
  .ip .sb__eyebrow { margin-top: 0; padding: 5px 11px; font-size: 12.5px; white-space: nowrap; }
  .ip .sb__claim { margin-top: 16px; font-size: 66px; line-height: .98; }
  .ip .sb__titel { margin-top: 14px; font-size: 26px; line-height: 1.16; }
  .ip .sb__zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin-top: 20px; padding-top: 14px; }
  .ip .sb__zahlen dt { font-size: 23px; }
  .ip .sb__zahlen dd { font-size: 13px; }
  .ip .sb__fotos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 22px -20px 0; overflow: visible; }
  .ip .sb__spalte { display: flex; gap: 10px; margin: 0 0 0 -24px; }
  .ip .sb__spalte:last-child { margin: 0 0 0 -70px; }
  .ip .sb__spalte img, .ip .sb__spalte img:nth-child(even) { flex: none; width: 142px; aspect-ratio: 4 / 5; }

  /* Bühne dicht am Text, das iPhone füllt am Ende das Bild, kaum Leerraum darunter */
  .sb { margin-top: -7rem; padding-bottom: 0; }
  .bewegt .sb__strecke { height: calc(100svh + 70svh); }
  .sb__buehne { min-height: 0; perspective: 1100px; perspective-origin: 50% 42%; }
  .rubrik--kontakt { padding-top: 2.5rem; }

  /* Fuß: bequem antippbar, Rechtliches sauber untereinander */
  .fuss__spalte { gap: 0; }
  .fuss__kopf { margin-bottom: .35rem; }
  .fuss__spalte a { padding-block: .6rem; }
  .fuss__recht { gap: 0 1.5rem; }
  .fuss__recht p { flex-basis: 100%; margin-bottom: .25rem; }
  .fuss__recht a { padding-block: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ip { --z: 1; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
}
