/* ==========================================================================
   Lena Keck — style.css (Version 10)
   Farbwelt: Dunkelrot + Kirschrot, Offwhite für helle Abschnitte
   Display: PP Editorial Old Ultralight (+ Italic) · Text und Labels: Open Sans
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "PP Editorial Old";
  src: url("../fonts/PPEditorialOld-Ultralight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Editorial Old";
  src: url("../fonts/PPEditorialOld-UltralightItalic.otf") format("opentype");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #2D120D;              /* Dunkelrot */
  --paper: #F7F5F1;            /* Offwhite */
  --paper-2: #ECE9E3;
  --accent: #EC3A48;           /* Kirschrot hell */
  --cherry: #B3121D;           /* Kirschrot auf hellem Grund */
  --cherry-bright: #EC3A48;    /* Kirschrot auf Dunkelrot */
  --sky: #CDE3E8;              /* Hellblau (Menü am Handy) */

  --on-dark-soft: rgba(236, 58, 72, .72);
  --on-light-soft: rgba(179, 18, 29, .62);
  --line-dark: rgba(236, 58, 72, .24);
  --line-light: rgba(179, 18, 29, .2);

  --serif: "PP Editorial Old", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: var(--sans);   /* kleine Labels: ebenfalls Open Sans, in Versalien */

  --gutter: clamp(16px, 2.4vw, 36px);
  --header-h: 72px;
  --section-y: clamp(104px, 12vw, 200px);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --ease-soft: cubic-bezier(.65, 0, .25, 1);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .18vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  text-transform: inherit; letter-spacing: inherit;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; font-weight: inherit; font-size: inherit; }
ul, ol { list-style: none; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
svg path { fill: none; stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 10px 16px; background: var(--paper); color: var(--ink); border-radius: 999px;
  transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.wrap { padding: 0 var(--gutter); }

/* Kleine Labels in Versalien */
.mono {
  font-family: var(--mono); font-weight: 500;
  font-size: 11px; line-height: 1.5; letter-spacing: .07em; text-transform: uppercase;
}

/* SplitText-Masken mit Luft für Ober- und Unterlängen */
.ln-mask { padding: .08em 0 .22em; margin: -.08em 0 -.22em; }   /* genug Platz für das g in „Ausgewählte“ */
.ln { will-change: transform; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 300; pointer-events: none;
  width: 200%; height: 200%;
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 7s steps(8) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  12% { transform: translate(-4%, -6%); }
  25% { transform: translate(-9%, 3%); }
  37% { transform: translate(5%, -9%); }
  50% { transform: translate(-3%, 8%); }
  62% { transform: translate(-8%, -2%); }
  75% { transform: translate(7%, 4%); }
  87% { transform: translate(2%, -4%); }
}

/* ---------- Seitenübergang: drei Flächen ---------- */
.pt { position: fixed; inset: 0; z-index: 600; pointer-events: none; visibility: hidden; }
.pt.is-active { pointer-events: auto; }
.pt__panel { position: absolute; inset: 0; transform: translateY(100%); }
.pt__panel--accent { background: var(--accent); }
.pt__panel--light { background: var(--paper); }
.pt__panel--dark { display: grid; place-items: center; background: var(--ink); color: var(--paper); }
.pt__label {
  display: block; overflow: hidden;
  font-family: var(--serif); font-weight: 200; font-style: italic;
  font-size: clamp(2.6rem, 7vw, 7rem); line-height: 1.05; letter-spacing: -.02em;
  padding: .06em .1em .1em;
}
.pt__label > span { display: block; }

/* Ankunft von einer eigenen Unterseite: Flächen liegen schon über der Seite */
.pt-arrive .pt { visibility: visible; }
.pt-arrive .pt__panel { transform: none; }

/* Inhalte erscheinen erst mit dem Intro (kein eigener Startscreen) */
.js .hero__content, .js .header { visibility: hidden; }
.is-intro .hero__content, .is-intro .header,
.is-fallback .hero__content, .is-fallback .header { visibility: visible; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none;
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
  opacity: 0;
  transition: width .5s var(--ease), height .5s var(--ease), opacity .3s;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-link { width: 44px; height: 44px; }
.cursor.is-big { width: 132px; height: 132px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Link Roll ---------- */
.roll { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.3; height: 1.3em; }
.roll > span { display: block; transition: transform 1s var(--ease-soft); }
.roll > span::after { content: attr(data-text); display: block; }
.roll:hover > span, .roll:focus-visible > span { transform: translateY(-50%); }

/* ---------- Pill (kleiner Knopf) ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 14px 0 12px; border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  transition: background-color .6s var(--ease-soft), color .6s var(--ease-soft);
}
.pill .roll { line-height: 1.3; }
.pill__arrow { font-family: var(--sans); font-size: 13px; transition: transform .9s var(--ease-soft); }
.pill--light { background: var(--paper); color: var(--ink); }
.pill--dark { background: var(--ink); color: var(--paper); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--header-h);
  display: flex; align-items: center; gap: clamp(16px, 2vw, 28px);
  padding: 0 var(--gutter);
  color: var(--paper);
  transition: color .6s var(--ease-soft);
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.header.is-on-light { color: var(--ink); }
.header.is-on-light .header__pill { background: var(--ink); color: var(--paper); }
.header__logo {
  display: inline-flex;
  font-family: var(--serif); font-weight: 200; font-size: 24px; letter-spacing: -.01em; line-height: 1;
  white-space: nowrap;
}
.header__nav {
  margin-left: auto;
  display: flex; gap: clamp(28px, 4vw, 64px);
  font-size: 15px; line-height: 1.3;
}
.header__col { display: flex; flex-direction: column; }

.menu-btn, .menu__close {
  display: inline-flex; align-items: center; gap: 12px;
  height: 42px; font-size: 14px; line-height: 1;
}
.menu-btn { display: none; margin-left: auto; }
.menu-btn__icon { position: relative; width: 18px; height: 7px; }
.menu-btn__icon i {
  position: absolute; left: 0; width: 100%; height: 1.2px; background: currentColor;
  transition: transform .6s var(--ease);
}
.menu-btn__icon i:first-child { top: 0; }
.menu-btn__icon i:last-child { bottom: 0; transform-origin: right; }

/* ---------- Menü (Handy): schwebendes Panel ---------- */
.menu { position: fixed; inset: 0; z-index: 250; visibility: hidden; }
.menu__overlay { position: absolute; inset: 0; background: rgba(14, 13, 12, .4); cursor: pointer; }
.menu__panel {
  --inset: 10px;
  position: absolute; top: var(--inset); right: var(--inset);
  width: min(calc(100% - var(--inset) * 2), 560px);
  max-height: calc(100% - var(--inset) * 2);
  display: flex; flex-direction: column;
  padding: 0 calc(var(--gutter) - var(--inset)) 22px clamp(18px, 2.4vw, 30px);
  border-radius: 10px;
  background: var(--paper); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
}
.menu__top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: calc(var(--header-h) - var(--inset) * 2);
  font-size: 13px;
}
.menu__x { position: relative; width: 12px; height: 12px; }
.menu__x i {
  position: absolute; left: -1px; right: -1px; top: 50%; height: 1.2px; background: currentColor;
  transform: rotate(45deg); transition: transform .6s var(--ease);
}
.menu__x i:last-child { transform: rotate(-45deg); }
.menu__nav { display: flex; flex-direction: column; align-items: flex-start; padding: 40px 0 36px; }
.menu__link {
  position: relative; display: inline-block;
  font-family: var(--serif); font-weight: 200;
  font-size: 12.5vw; letter-spacing: -.025em;
  transition: padding-left 1s var(--ease-soft);
}
.menu__mask { display: block; overflow: hidden; height: 1.12em; }
.menu__rise { display: block; height: 1.12em; line-height: 1.18; white-space: nowrap; }
.menu__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px solid var(--line-light);
  font-size: 13px;
}
.menu__social { display: flex; gap: 24px; }

/* ---------- Media (Bild-Wrapper für Reveal, Hover, Parallax) ---------- */
.media { position: relative; overflow: hidden; aspect-ratio: var(--ar, 4 / 3); background: var(--paper-2); border-radius: 2px; }
.media__inner { position: absolute; inset: 0; transition: transform 1.6s var(--ease-soft); }
.media img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.media img[data-parallax] { top: -8%; height: 116%; }

/* ---------- Hero: hell, Name im Modus „Differenz“ über dem Projekt-Band ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + clamp(8px, 2vw, 32px)) 0 var(--gutter);
  background: var(--paper); color: var(--ink);
}
.hero__content { display: flex; flex-direction: column; align-items: center; padding: 0 var(--gutter); text-align: center; }
.hero__title {
  position: relative; z-index: 2; width: 100%; overflow: hidden;
  padding: .1em 0 .04em;
  font-family: var(--serif); font-weight: 200;
  font-size: 20vw; line-height: .84; letter-spacing: -.035em;
  white-space: nowrap;
  color: #fff; mix-blend-mode: difference;   /* wirkt schwarz auf Offwhite, kehrt die Farben der Bilder darunter um */
}
.hero__title > span:first-child { display: inline-block; }
.hero__title .char { display: inline-block; will-change: transform; }
.hero__meta { display: flex; flex-direction: column; align-items: center; margin-top: clamp(14px, 1.6vw, 24px); }

/* Projekt-Band: läuft langsam durch */
.strip { position: relative; z-index: 1; margin-top: auto; padding-top: clamp(32px, 5vh, 64px); overflow: hidden; }
.strip__track { display: flex; width: max-content; will-change: transform; }
.strip__set { display: flex; gap: 16px; padding-right: 16px; }
.strip__item { display: block; width: clamp(240px, 23vw, 340px); }
.strip__img { display: block; position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: 2px; background: var(--paper-2); }
.strip__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-soft); }
.strip__cap { display: flex; justify-content: space-between; margin-top: 8px; }

/* ---------- Leistungen: zentrierter Satz ---------- */
.intro { position: relative; padding: var(--section-y) 0; background: var(--ink); color: var(--paper); }
.intro__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.intro__statement {
  grid-column: 2 / 12; text-align: center;
  font-family: var(--serif); font-weight: 200;
  font-size: clamp(2.4rem, 4.8vw, 5.4rem); line-height: 1.02; letter-spacing: -.025em;
  text-wrap: balance;
}
.intro__text {
  grid-column: 4 / 10; justify-self: center; max-width: 44ch;
  margin-top: clamp(28px, 3vw, 44px);
  text-align: center; color: var(--on-dark-soft);
}
.intro__card {
  grid-column: 10 / 13; grid-row: 3; margin-top: clamp(56px, 7vw, 112px);
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px 8px 8px; border-radius: 6px;
  background: var(--paper); color: var(--ink);
  justify-self: start;
}
.intro__card-cap { white-space: nowrap; }
.intro__card-img { display: block; width: 72px; aspect-ratio: 1; overflow: hidden; border-radius: 3px; }
.intro__card-img img { width: 100%; height: 100%; object-fit: cover; }
.intro__keys {
  grid-column: 10 / 13; grid-row: 4; margin-top: 28px;
  display: flex; flex-direction: column; gap: 2px;
}
.intro__keys > span:last-child { padding-left: 6ch; }
.intro__dot {
  grid-column: 6 / 8; grid-row: 4; justify-self: center; align-self: center; margin-top: 28px;
  position: relative; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-dark);
}
.intro__dot::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 6px; height: 6px; border-radius: 50%;
  background: var(--paper); animation: pulse 2.4s var(--ease-soft) infinite;
}
@keyframes pulse { 50% { transform: scale(1.8); opacity: .4; } }

/* ---------- Arbeiten ---------- */
.cases { position: relative; padding: var(--section-y) 0; background: var(--paper); color: var(--ink); }
.cases__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: end;
}
.cases__meta { grid-column: 1 / 3; padding-bottom: .9em; color: var(--on-light-soft); }
.cases__title {
  grid-column: 3 / 13;
  font-family: var(--serif); font-weight: 200;
  font-size: clamp(3.2rem, 8.6vw, 9.6rem); line-height: .92; letter-spacing: -.035em;
}
.cases__title em { letter-spacing: -.025em; }
.cases { padding-bottom: 0; }
/* Versetztes Raster nach Figma (12 Spalten): groß links + klein rechts tiefer,
   darunter eingerückt mittel + rechts tiefer, dann gespiegelt klein links tiefer + groß rechts. Prozent-Abstände beziehen sich auf die Spaltenbreite. */
.tiles {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  row-gap: clamp(72px, 10vw, 144px); align-items: start;
  margin-top: clamp(64px, 8vw, 136px);
}
.tile { position: relative; }
.tile:nth-child(1) { grid-column: 1 / 9; }
.tile:nth-child(2) { grid-column: 9 / 13; margin-top: 54%; }
.tile:nth-child(3) { grid-column: 2 / 8; }
.tile:nth-child(4) { grid-column: 8 / 13; margin-top: 30%; }
.tile:nth-child(5) { grid-column: 1 / 5; margin-top: 54%; }
.tile:nth-child(6) { grid-column: 5 / 13; }
.tile__link { display: block; position: relative; }
.tile__media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: 2px; background: var(--paper-2); }
/* Kein CSS-Transition auf transform: Reveal und Hover-Zoom laufen beide über GSAP (main.js) */
.tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__title {
  display: flex; align-items: baseline; gap: .35em; margin-top: 14px;
  font-family: var(--serif); font-weight: 200;
  font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.15; letter-spacing: -.01em;
}
.tile:nth-child(1) .tile__title, .tile:nth-child(6) .tile__title { font-size: clamp(1.7rem, 2.8vw, 2.75rem); }
.tile__arrow {
  font-family: var(--sans); font-size: .5em; line-height: 1; opacity: .55;
  transition: transform .8s var(--ease-soft), opacity .8s var(--ease-soft);
}
.tile__credit { margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--on-light-soft); }
.tile__credit a { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px; }

/* ---------- Leistungen: zentrierte Liste ---------- */
.offers { padding: var(--section-y) 0; background: var(--paper); color: var(--ink); }
.offers__icon {
  display: block; position: relative; width: 34px; height: 34px; margin: 0 auto clamp(40px, 5vw, 72px);
  border-radius: 50%; border: 1px solid var(--line-light);
}
.offers__icon::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2.4s var(--ease-soft) infinite;
}
.offers__list { max-width: 980px; margin: 0 auto; }
.offer {
  position: relative;
  padding: clamp(14px, 1.6vw, 22px) 0; text-align: center;
  border-bottom: 1px solid var(--line-light);
}
.offer:last-child { border-bottom: 0; }
.offer__title {
  position: relative;
  font-family: var(--serif); font-weight: 200;
  font-size: clamp(2.2rem, 4vw, 4.2rem); line-height: 1.05; letter-spacing: -.025em;
  text-wrap: balance;
}

.cta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  width: fit-content; margin: clamp(56px, 7vw, 112px) auto 0;
  padding: 10px 12px 10px 10px; border-radius: 10px;
  background: var(--paper-2);
}
.cta__img { display: block; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; }
.cta__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Kontakt: „Schreib mir“ ---------- */
.talk {
  position: relative; overflow: hidden;
  padding: var(--section-y) var(--gutter);
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.talk__kicker {
  font-family: var(--serif); font-weight: 200;
  font-size: clamp(1.8rem, 3.2vw, 3.4rem); line-height: 1; letter-spacing: -.02em;
}
.talk__link {
  position: relative; display: inline-block;
  margin-top: clamp(16px, 2vw, 28px); padding: 0 .42em;
  font-family: var(--serif); font-weight: 200;
  font-size: clamp(3.8rem, 15vw, 17rem); line-height: 1.05; letter-spacing: -.035em;
  white-space: nowrap;
  transition: color .9s var(--ease-soft);
}
/* Zwei Bögen links und rechts, wie Klammern */
.talk__link::before, .talk__link::after {
  content: ""; position: absolute; top: 6%; bottom: 10%; width: .42em;
  border: 1px solid currentColor;
}
.talk__link::before { left: 0; border-right: 0; border-radius: 999px 0 0 999px; }
.talk__link::after { right: 0; border-left: 0; border-radius: 0 999px 999px 0; }
.talk__word { display: inline-block; overflow: hidden; vertical-align: top; padding-top: .06em; }
.talk__ch { display: inline-block; transform-origin: 50% 100%; }
.talk__mail { margin-top: clamp(22px, 2.6vw, 36px); color: var(--on-dark-soft); }

/* ---------- Footer ---------- */
.footer {
  position: relative; overflow: hidden;
  background: var(--paper); color: var(--ink);
}
.footer__top {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  padding-top: clamp(72px, 8vw, 132px);
}
.footer__claim {
  grid-column: 1 / 7;
  font-family: var(--serif); font-weight: 200;
  font-size: clamp(2.4rem, 4.6vw, 5rem); line-height: 1; letter-spacing: -.03em;
  max-width: 10em;
}
.footer__claim em { letter-spacing: -.02em; }
.footer__info { grid-column: 9 / 13; display: grid; gap: 0; }
.footer__info > div + div::before {
  content: ""; display: block; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; margin: 18px 0;
}
.footer__info dt { color: var(--on-light-soft); margin-bottom: 4px; }
.footer__info a {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 1px;
  transition: background-size .9s var(--ease-soft);
}
.footer__info a:hover { background-size: 100% 1px; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: clamp(56px, 7vw, 112px);
  padding: 14px var(--gutter);
  border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
  font-variant-numeric: tabular-nums;
}
.footer__sep { animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.footer__mark {
  padding: .3em var(--gutter) .02em;
  font-family: var(--serif); font-weight: 200;
  font-size: 17vw; line-height: .86; letter-spacing: -.03em;
  white-space: nowrap; overflow: hidden;
}
.footer__mark > span { display: inline-block; }
.footer__mark .char { display: inline-block; transform-origin: 50% 100%; }

/* ---------- Impressum & Datenschutz ---------- */
.page-legal { background: var(--paper); }
.legal-hero {
  position: relative; z-index: 1;
  height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden;
  background: var(--ink); color: var(--paper);
}
.legal-hero__inner {
  height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + clamp(24px, 4vw, 56px)) 0 clamp(10px, 1.4vw, 22px);
}
.legal__top { display: flex; justify-content: flex-end; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.legal__switch { display: flex; gap: clamp(16px, 2vw, 28px); font-size: 14px; }
.legal__switch a { position: relative; opacity: .55; transition: padding-left 1s var(--ease-soft), opacity .8s var(--ease-soft); }
.legal__switch a::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 7px; height: 7px; background: var(--accent);
  transform: translateY(-50%) scale(0); transition: transform .9s var(--ease-soft);
}
.legal__switch a[aria-current="page"] { opacity: 1; padding-left: 15px; pointer-events: none; }
.legal__switch a[aria-current="page"]::before { transform: translateY(-50%) scale(1); }
.legal__mark {
  padding: .3em var(--gutter) .02em;
  font-family: var(--serif); font-weight: 200;
  font-size: 17vw; line-height: .86; letter-spacing: -.03em;
  white-space: nowrap; overflow: hidden;
}
.legal__mark > span { display: inline-block; }
.legal__mark .char { display: inline-block; transform-origin: 50% 100%; }
.sheet { position: relative; z-index: 2; }
.legal__sheet { padding: var(--section-y) 0; background: var(--paper); color: var(--ink); }
.legal__lead {
  max-width: 24em;
  font-family: var(--serif); font-weight: 200;
  font-size: clamp(1.7rem, 2.9vw, 3.1rem); line-height: 1.12; letter-spacing: -.02em;
}
.legal__body section {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: start;
  margin-top: clamp(48px, 6vw, 96px); padding-top: clamp(20px, 2vw, 28px);
  border-top: 1px solid var(--line-light);
}
.legal__body section > h2 {
  grid-column: 1 / 6;
  font-family: var(--serif); font-weight: 200;
  font-size: clamp(2rem, 3.6vw, 3.9rem); line-height: 1; letter-spacing: -.025em;
}
.legal__body section > :not(h2) { grid-column: 7 / 13; }
.legal__body section > p, .legal__body section > ul { color: var(--on-light-soft); max-width: 56ch; }
.legal__body section > :not(h2) + :not(h2) { margin-top: 14px; }
.legal__body ul { list-style: none; }
.legal__body ul li { position: relative; padding-left: 1.1em; }
.legal__body ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; background: currentColor; }
.legal__body a {
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px;
  padding-bottom: 1px; transition: background-size .9s var(--ease-soft);
}
.legal__body a:hover { background-size: 0% 1px; background-position: 100% 100%; }
.legal__date { margin-top: clamp(48px, 6vw, 96px); font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; color: var(--on-light-soft); }
/* Platzhalter und Entwurfs-Hinweis (vor dem Livegang entfernen) */
.ph { background: var(--accent); color: var(--paper); padding: 0 .3em; border-radius: 3px; }
.legal__draft {
  max-width: 62ch; margin-bottom: clamp(40px, 5vw, 72px); padding: 14px 18px; border-radius: 6px;
  background: var(--ink); color: var(--paper); font-size: 14px;
}

/* ---------- Farbwelt: Dunkelrot + Kirschrot ---------- */
::selection { background: var(--cherry-bright); color: var(--ink); }

/* Header: Kirschrot hell auf Dunkelrot, Kirschrot auf Offwhite */
.header { color: var(--cherry-bright); }
.header.is-on-light { color: var(--cherry); }
.header__pill { background: var(--cherry-bright); color: var(--ink); }
.header.is-on-light .header__pill { background: var(--cherry); color: var(--paper); }

/* Hero: Dunkelrot, Name und Zeilen in Kirschrot.
   Der Name bleibt im Modus „Differenz“: Diese Füllfarbe ergibt auf Dunkelrot ein Kirschrot
   und kehrt die Farben der Projektbilder darunter weiterhin um. */
.hero { background: var(--ink); color: var(--cherry-bright); }
.hero__title { color: #FF4C55; }

/* Satz und „Schreib mir“: Dunkelrot mit Kirschrot */
.intro, .talk { background: var(--ink); color: var(--cherry-bright); }
.intro__text, .talk__mail { color: var(--on-dark-soft); }
.intro__card { background: var(--cherry-bright); color: var(--ink); }
.intro__dot::after { background: var(--cherry-bright); }


/* Projekte und Leistungen: Offwhite mit Kirschrot */
.cases, .offers { background: var(--paper); color: var(--cherry); }
.cases { color: var(--ink); }
.cases__meta, .tile__credit { color: rgba(45, 18, 13, .58); }
.offers__icon::after { background: var(--cherry); }
.cta { background: var(--paper-2); color: var(--cherry); }
.pill--dark { background: var(--cherry); color: var(--paper); }

/* Footer: Dunkelrot mit Kirschrot (wie in der ersten Version) */
.footer { background: var(--ink); color: var(--cherry-bright); }
.footer__info dt { color: var(--on-dark-soft); }
.footer__bottom { border-color: var(--line-dark); }

/* Impressum & Datenschutz: oben Dunkelrot mit Kirschrot, darunter Offwhite mit Kirschrot */
.legal-hero { color: var(--cherry-bright); }
.legal__sheet, .legal__body a { color: var(--cherry); }

/* Menü (Handy) */
.menu__overlay { background: rgba(45, 18, 13, .5); }
.menu__panel { background: var(--sky); color: var(--cherry); }
.menu__bottom { border-top-color: rgba(179, 18, 29, .25); }

/* ---------- Hover nur mit Maus ---------- */
@media (hover: hover) and (pointer: fine) {
  .pill:hover .pill__arrow { transform: rotate(45deg); }
  .pill:hover .roll > span { transform: translateY(-50%); }
  .talk__link:hover { color: var(--paper); }
  .strip__item:hover .strip__img img { transform: scale(1.04); }
  .tile__link:hover .tile__arrow { opacity: 1; transform: translate(.2em, -.2em); }
  .menu-btn:hover .roll > span, .menu__close:hover .roll > span { transform: translateY(-50%); }
  .menu-btn:hover .menu-btn__icon i:last-child { transform: scaleX(.55); }
  .menu__close:hover .menu__x i:first-child { transform: rotate(135deg); }
  .menu__close:hover .menu__x i:last-child { transform: rotate(45deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .header__nav, .header__pill { display: none; }
  .menu-btn { display: inline-flex; }

  .hero { min-height: 0; }
  .strip { margin-top: 0; padding-top: 40px; }

  .intro__statement { grid-column: 1 / -1; }
  .intro__text { grid-column: 2 / 12; }

  .cases__meta { grid-column: 1 / -1; padding-bottom: 16px; }
  .intro__card { grid-column: 1 / -1; justify-self: center; }
  .intro__keys { grid-column: 1 / -1; grid-row: auto; align-items: center; }
  .intro__keys > span:last-child { padding-left: 0; }
  .intro__dot { display: none; }
  .cases__title { grid-column: 1 / -1; }

  .footer__claim { grid-column: 1 / -1; }
  .footer__info { grid-column: 1 / -1; margin-top: 48px; }

  .legal__body section > h2, .legal__body section > :not(h2) { grid-column: 1 / -1; }
  .legal__body section > h2 + * { margin-top: 18px; }
}

@media (max-width: 600px) {
  .tiles { row-gap: 56px; }
  .tile:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }

  .footer__bottom { flex-wrap: wrap; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .footer__sep { animation: none; }
  .js .hero__content, .js .header { visibility: visible; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
