/**
 * Paul Clauss – Portfolio
 * Design: "Kontaktbogen" – Redaktion / Contact Sheet
 *
 * Bausprache: nummerierte Sektionen, Haarlinien statt Kaesten,
 * Bildunterschriften wie im Druck, Typografie als Struktur.
 * Farben und Schrift unveraendert: #ff0000 / #ffb6af / Poppins.
 *
 * Navigation, Hamburger und Footer sind bewusst unveraendert
 * aus der Vorversion uebernommen.
 */

/* ===================================================== */
/*  1. RESET & TOKENS                                    */
/* ===================================================== */

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

:root {
  /* Marke – unveraendert */
  --red: #ff0000;
  --lightred: #ffb6af;

  /* Abgeleitete Toenungen derselben zwei Farben */
  --red-deep: #d10000;
  --red-dark: #a80000;
  --cream: #fff3f1;
  --blush: #ffcbc4;
  --sand: #ffdad5;

  --red-04: rgba(255, 0, 0, 0.04);
  --red-08: rgba(255, 0, 0, 0.08);
  --red-14: rgba(255, 0, 0, 0.14);
  --red-24: rgba(255, 0, 0, 0.24);
  --red-40: rgba(255, 0, 0, 0.4);

  /* Radien – im neuen Layout sparsamer eingesetzt */
  --r-xs: 6px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 48px;
  --r-pill: 999px;

  /* Schatten – rot getoent statt grau */
  --shadow-xs: 0 2px 8px rgba(140, 12, 4, 0.06);
  --shadow-sm: 0 8px 24px -12px rgba(140, 12, 4, 0.28);
  --shadow-md: 0 24px 50px -24px rgba(140, 12, 4, 0.38);
  --shadow-lg: 0 48px 90px -40px rgba(140, 12, 4, 0.5);

  /* Harter Offset-Rahmen (Editorial-Look) */
  --offset: 12px;

  /* Haarlinie – das Leitmotiv des Layouts */
  --hair: 1.5px;
  --hair-color: var(--red-24);

  /* Rhythmus */
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 10vh, 150px);
  --maxw: 1440px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 84px;
}

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  background-color: var(--lightred);
  color: var(--red);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Filmkorn ueber der ganzen Seite – macht die Flaechen lebendig */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--red);
  color: var(--cream);
}

/* ===================================================== */
/*  2. TYPOGRAFIE                                        */
/* ===================================================== */

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: lowercase;
  text-wrap: balance;
}

/* Konturschrift als Akzent in Headlines */
.outline {
  color: transparent;
  -webkit-text-stroke: clamp(1.5px, 0.28vw, 3px) var(--red);
  paint-order: stroke fill;
}

/* Kleines Label – Gegenpol zur Kleinschreibung */
.eyebrow,
.meta-label {
  display: inline-block;
  font-size: clamp(0.66rem, 0.95vw, 0.76rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--red);
}

.meta-label {
  opacity: 0.62;
}

/* Laufende Nummer – tabellarische Ziffern, damit nichts springt */
.idx {
  font-size: clamp(0.72rem, 1vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  flex: none;
}

/* ===================================================== */
/*  3. LAYOUT-PRIMITIVE                                  */
/* ===================================================== */

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

/* Erste Sektion einer Unterseite braucht Platz fuer die fixe Navigation */
main > .section:first-child,
main > section:first-child:not(.hero) {
  padding-top: calc(var(--nav-h) + clamp(40px, 8vh, 90px));
}

/* Haarlinie – das Leitmotiv */
.hair {
  display: block;
  width: 100%;
  height: var(--hair);
  background: var(--hair-color);
  border: 0;
  flex: 1 1 auto;
  min-width: 20px;
}

/* Zeile aus Nummer, Linie und Label */
.head-rule {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  margin-bottom: clamp(18px, 3vw, 30px);
}

.head-rule .eyebrow {
  flex: none;
}

.section-head {
  margin-bottom: clamp(30px, 5vw, 64px);
}

.section-head h2 {
  font-size: clamp(2.3rem, 7.5vw, 5.4rem);
  margin: 0;
}

/* Metazeile: Label links, Wert rechts, Linie dazwischen */
.meta-row {
  display: flex;
  align-items: baseline;
  gap: clamp(10px, 1.8vw, 18px);
  padding-block: clamp(10px, 1.4vw, 14px);
  border-top: var(--hair) solid var(--hair-color);
}

.meta-row:last-child {
  border-bottom: var(--hair) solid var(--hair-color);
}

.meta-row__value {
  margin-left: auto;
  text-align: right;
  font-weight: 600;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  text-transform: lowercase;
}

/* Bildrahmen: gerundet + harter Offset-Rahmen, leicht gekippt */
.frame {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--r-md);
  border: 3px solid var(--red);
  overflow: hidden;
  background: var(--sand);
  box-shadow: var(--offset) var(--offset) 0 var(--red);
  transform: rotate(var(--tilt, -1.4deg));
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}

.frame img,
.frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.frame:hover {
  transform: rotate(0deg) translate(4px, 4px);
  box-shadow: calc(var(--offset) - 4px) calc(var(--offset) - 4px) 0 var(--red);
}

/* Bildunterschrift wie im Druck */
.figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vw, 18px);
}

.figure figcaption,
.caption {
  display: flex;
  align-items: baseline;
  gap: 0.8em;
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  opacity: 0.7;
  text-transform: lowercase;
}

.caption__tag {
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
  flex: none;
}

/* Sticker: leicht gedrehte Pille, wie ein Story-Sticker */
.sticker {
  display: inline-block;
  padding: 0.5em 1.05em;
  border-radius: var(--r-pill);
  background: var(--cream);
  border: 2px solid var(--red);
  color: var(--red);
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  font-weight: 600;
  line-height: 1.2;
  text-transform: lowercase;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transform: rotate(var(--tilt, -3deg));
  transition: transform 0.4s var(--ease);
}

.sticker--solid {
  background: var(--red);
  color: var(--cream);
}

.sticker-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 1.4vw, 14px);
  align-items: center;
}

.sticker-row .sticker:nth-child(2n) {
  --tilt: 2.5deg;
}

.sticker-row .sticker:nth-child(3n) {
  --tilt: -1.5deg;
}

.sticker-row:hover .sticker {
  transform: rotate(0deg);
}

/* Status-Punkt, der ruhig pulst */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
  animation: dot-pulse 2.4s var(--ease) infinite;
}

@keyframes dot-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.72);
  }
}

/* Rueckenbeschriftung wie am Buchruecken */
.spine {
  position: absolute;
  left: clamp(4px, 0.9vw, 14px);
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

/* ===================================================== */
/*  4. NAVIGATION  (unveraendert uebernommen)            */
/* ===================================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: clamp(12px, 1.8vw, 20px) var(--gutter);
  background: transparent;
  transition: padding 0.4s var(--ease);
}

.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(12px, 3vw, 40px);
  padding: 10px clamp(14px, 1.6vw, 22px) 10px clamp(18px, 2vw, 26px);
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  background: transparent;
  transition: background-color 0.45s var(--ease), border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
}

header.scrolled .nav-inner {
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  border-color: var(--red-14);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.14em;
  font-weight: 800;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
}

.logo::after {
  content: "";
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  background: var(--red);
  flex: none;
  transition: transform 0.4s var(--ease);
}

.logo:hover::after {
  transform: scale(1.7);
}

nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.6vw, 1.1rem);
  list-style: none;
}

nav a {
  position: relative;
  display: inline-block;
  padding: 0.45em 0.95em;
  border-radius: var(--r-pill);
  text-decoration: none;
  color: var(--red);
  font-weight: 500;
  line-height: 1.15;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

nav a:hover {
  background: var(--red-08);
}

nav a[aria-current="page"] {
  background: var(--red);
  color: var(--cream);
  font-weight: 600;
}

/* ===================================================== */
/*  5. BUTTONS                                           */
/* ===================================================== */

.btn {
  --btn-bg: var(--red);
  --btn-fg: var(--cream);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  line-height: 1.15;
  text-transform: lowercase;
  text-decoration: none;
  padding: 0.9em 1.55em;
  border: 2px solid var(--red);
  border-radius: var(--r-pill);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease), transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

/* Fuellung wischt beim Hover von unten hoch */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
  z-index: -1;
}

.btn:hover {
  color: var(--red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--red);
}

.btn--ghost::before {
  background: var(--red);
}

.btn--ghost:hover {
  color: var(--cream);
}

.btn:focus-visible,
nav a:focus-visible,
footer a:focus-visible,
.quote-tab:focus-visible,
.pf-card:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

header.scrolled nav a:focus-visible {
  outline-offset: 2px;
}

.btn-row {
  display: flex;
  gap: clamp(10px, 1.6vw, 16px);
  flex-wrap: wrap;
  align-items: center;
}

/* ===================================================== */
/*  6. LAUFBAND                                          */
/* ===================================================== */

.marquee {
  --marquee-duration: 34s;
  position: relative;
  overflow: hidden;
  background: var(--red);
  color: var(--lightred);
  padding-block: clamp(12px, 1.8vw, 20px);
  margin-block: clamp(30px, 5vh, 72px);
  transform: rotate(-1.6deg) scale(1.04);
  user-select: none;
}

.marquee--reverse .marquee__track {
  animation-direction: reverse;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll var(--marquee-duration) linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding-right: clamp(20px, 3vw, 44px);
  flex: none;
}

.marquee__item {
  font-size: clamp(1.1rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  line-height: 1.1;
  white-space: nowrap;
}

.marquee__star {
  font-size: clamp(0.8rem, 1.8vw, 1.3rem);
  opacity: 0.75;
  flex: none;
}

@keyframes marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}

/* ===================================================== */
/*  7. HERO (Startseite)                                 */
/* ===================================================== */

.hero {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: calc(var(--nav-h) + clamp(20px, 4vh, 46px)) var(--gutter)
    clamp(26px, 4.5vh, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.6vh, 32px);
  min-height: 100vh;
  min-height: 100svh;
}

/* Kopfzeile des Hero: Status links, Ort rechts, auf einer Linie */
.hero-status {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 18px);
  padding-bottom: clamp(12px, 1.8vw, 18px);
  border-bottom: var(--hair) solid var(--hair-color);
  flex-wrap: wrap;
}

.hero-status__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  flex: none;
}

.hero-status__item:last-child {
  margin-left: auto;
}

/* Buehne: Typo und Portrait liegen in derselben Rasterzelle
   und duerfen sich dadurch ueberlappen. */
.hero-stage {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  grid-template-areas: "stage";
  align-items: center;
  min-height: min(58vh, 560px);
}

.hero-type,
.hero-portrait {
  grid-area: stage;
  min-width: 0;
}

.hero-type {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: start;
  /* Prozent statt ch: ch rechnet mit der Schriftgroesse dieses
     Elements (16px), nicht mit der der Headline.
     48 % neben 52 % Bild: beide stehen nebeneinander statt uebereinander. */
  max-width: 48%;
}

.hero-type .btn-row {
  margin-top: clamp(20px, 3vw, 34px);
}

.hero h1 {
  font-size: clamp(2.9rem, 10.5vw, 8.4rem);
  letter-spacing: -0.05em;
  /* Luft, damit die Umlautpunkte die Zeile darueber nicht beruehren */
  line-height: 0.9;
  margin: 0;
}

.hero-portrait {
  position: relative;
  z-index: 2;
  justify-self: end;
  align-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: min(52%, 780px);
  pointer-events: none;
}

.hero-portrait img {
  /* Das Bild ist 2584x3869 (Verhaeltnis 0.668) und damit immer
     hoehenbegrenzt. 92vh laesst es bewusst etwas unter die Falte
     laufen – Headline und Buttons bleiben oben trotzdem sichtbar. */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(92vh, 1000px);
  filter: drop-shadow(0 30px 50px rgba(140, 12, 4, 0.28));
}

.hero-stickers {
  position: absolute;
  right: 0;
  bottom: 14%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

/* Fusszeile des Hero: Disziplinen links, Buttons rechts */
.hero-foot {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  padding-top: clamp(14px, 2.2vw, 22px);
  border-top: var(--hair) solid var(--hair-color);
  flex-wrap: wrap;
}

.hero-disciplines {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 16px);
  flex-wrap: wrap;
  list-style: none;
}

.hero-disciplines li {
  font-size: clamp(0.8rem, 1.15vw, 0.95rem);
  font-weight: 600;
  text-transform: lowercase;
  white-space: nowrap;
}

.hero-disciplines li + li::before {
  content: "/";
  margin-right: clamp(8px, 1.4vw, 16px);
  opacity: 0.4;
  font-weight: 400;
}

.hero-foot .btn-row {
  margin-left: auto;
}

/* ===================================================== */
/*  8. FEATURE / VIDEO                                   */
/* ===================================================== */

h2.feature__headline {
  font-size: clamp(2rem, 6.4vw, 4.6rem);
  max-width: 18ch;
  margin: 0 0 clamp(28px, 4.5vw, 56px);
}

.feature__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.3fr);
  align-items: end;
  gap: clamp(24px, 4vw, 56px);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 3px solid var(--red);
  background: #000;
  box-shadow: var(--offset) var(--offset) 0 var(--red), var(--shadow-lg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.video-frame:hover {
  transform: translate(4px, 4px);
  box-shadow: calc(var(--offset) - 4px) calc(var(--offset) - 4px) 0 var(--red),
    var(--shadow-md);
}

.video-frame iframe,
.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.feature__aside {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vw, 24px);
  padding-bottom: clamp(4px, 1vw, 10px);
}

.feature__aside .btn-row {
  flex-direction: column;
  align-items: stretch;
}

.feature__aside .btn {
  width: 100%;
}

/* ===================================================== */
/*  9. EMPFEHLUNGEN – redaktioneller Index               */
/* ===================================================== */

.quotes {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

/* Linke Spalte: anklickbare Namensliste */
.quote-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  border-top: var(--hair) solid var(--hair-color);
}

.quote-tab {
  display: flex;
  align-items: baseline;
  gap: clamp(10px, 1.6vw, 16px);
  width: 100%;
  padding: clamp(14px, 2vw, 20px) clamp(10px, 1.4vw, 14px);
  border: 0;
  border-bottom: var(--hair) solid var(--hair-color);
  background: transparent;
  color: var(--red);
  font-family: inherit;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  text-transform: lowercase;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), padding-left 0.35s var(--ease),
    color 0.35s var(--ease);
}

.quote-tab:hover {
  background: var(--red-08);
  padding-left: clamp(16px, 2.2vw, 22px);
}

.quote-tab[aria-selected="true"] {
  background: var(--red);
  color: var(--cream);
}

.quote-tab__num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
  opacity: 0.65;
  flex: none;
}

.quote-tab__role {
  display: block;
  margin-top: 4px;
  font-size: clamp(0.74rem, 1vw, 0.82rem);
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.7;
  text-transform: lowercase;
}

/* Rechte Spalte: alle Zitate liegen uebereinander in derselben
   Rasterzelle – so ist die Hoehe immer die des laengsten und
   beim Wechsel springt nichts. */
.quote-stage {
  display: grid;
  grid-template-areas: "quote";
  align-items: start;
}

.quote {
  grid-area: quote;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease),
    visibility 0s linear 0.5s;
}

.quote.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.55s var(--ease) 0.05s,
    transform 0.55s var(--ease) 0.05s, visibility 0s linear 0s;
}

.quote__mark {
  display: block;
  font-size: clamp(3.4rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 0.6;
  opacity: 0.2;
  margin-bottom: clamp(10px, 1.6vw, 18px);
  user-select: none;
}

.quote__text {
  font-size: clamp(1.08rem, 2.1vw, 1.5rem);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 clamp(22px, 3.4vw, 34px);
  max-width: 46ch;
  text-wrap: pretty;
}

.quote__source {
  display: flex;
  align-items: baseline;
  gap: 0.7em;
  padding-top: clamp(14px, 2vw, 18px);
  border-top: var(--hair) solid var(--hair-color);
  flex-wrap: wrap;
}

.quote__name {
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  text-transform: lowercase;
}

.quote__role {
  font-size: clamp(0.82rem, 1.2vw, 0.94rem);
  opacity: 0.7;
  text-transform: lowercase;
}

/* ===================================================== */
/*  10. SEITENKOPF DER UNTERSEITEN                       */
/* ===================================================== */

.masthead {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: calc(var(--nav-h) + clamp(36px, 7vh, 84px)) var(--gutter)
    clamp(30px, 5vh, 60px);
}

.masthead__top {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  padding-bottom: clamp(14px, 2.2vw, 22px);
  border-bottom: var(--hair) solid var(--hair-color);
  margin-bottom: clamp(24px, 4vw, 44px);
  flex-wrap: wrap;
}

.masthead h1 {
  font-size: clamp(3.4rem, 15vw, 11rem);
  letter-spacing: -0.055em;
  line-height: 0.82;
  margin: 0;
}

.masthead__lede {
  margin-top: clamp(20px, 3vw, 32px);
  max-width: 48ch;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

/* ===================================================== */
/*  11. SPLIT-BLOECKE (Bild / Text)                      */
/* ===================================================== */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 100px);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--section-y) var(--gutter);
}

/* Zweispaltig: Seite explizit pro Block, beide in Zeile 1.
   Ohne grid-row wandert das zweite Element in eine neue Zeile,
   sobald HTML-Reihenfolge und Spaltenreihenfolge auseinanderlaufen. */
@media (min-width: 1061px) {
  .split > * {
    grid-row: 1;
  }

  .split--img-left .split__media,
  .split--img-right .split__body {
    grid-column: 1;
  }

  .split--img-left .split__body,
  .split--img-right .split__media {
    grid-column: 2;
  }
}

.split--img-right .frame {
  --tilt: 1.6deg;
}

.split__body {
  min-width: 0;
  max-width: 58ch;
}

.split__media {
  min-width: 0;
}

.split__body h2 {
  font-size: clamp(2.1rem, 5.6vw, 3.9rem);
  margin: 0 0 clamp(16px, 2.4vw, 26px);
}

/* Fliesstext an einer Haarlinie – ersetzt die alte Kastenflaeche */
.prose {
  white-space: pre-line;
  font-size: clamp(1rem, 1.35vw, 1.13rem);
  line-height: 1.75;
  max-width: 54ch;
  border-left: var(--hair) solid var(--hair-color);
  padding-left: clamp(16px, 2.4vw, 28px);
}

/* ===================================================== */
/*  12. INDEX-LISTE (steckbrief)                         */
/* ===================================================== */

.index-list {
  list-style: none;
  margin-top: clamp(4px, 1vw, 10px);
}

.index-list li {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 26px);
  padding-block: clamp(14px, 2.2vw, 22px);
  border-top: var(--hair) solid var(--hair-color);
}

.index-list li:last-child {
  border-bottom: var(--hair) solid var(--hair-color);
}

.index-list__num {
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
  opacity: 0.5;
  flex: none;
}

.index-list__value {
  flex: none;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.4vw, 1.6rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-transform: lowercase;
  text-align: right;
}

/* ===================================================== */
/*  13. NUMMERIERTE ABSAETZE (staerken)                  */
/* ===================================================== */

.numbered {
  list-style: none;
  display: grid;
  gap: clamp(22px, 3.4vw, 40px);
}

.numbered li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(16px, 2.8vw, 34px);
  padding-top: clamp(18px, 2.6vw, 26px);
  border-top: var(--hair) solid var(--hair-color);
}

.numbered__num {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  opacity: 0.35;
}

.numbered p {
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.13rem);
  line-height: 1.75;
  max-width: 54ch;
}

/* ===================================================== */
/*  14. SKILL-MATRIX                                     */
/* ===================================================== */

.skills {
  list-style: none;
  margin-top: clamp(6px, 1.2vw, 12px);
  border-top: var(--hair) solid var(--hair-color);
}

.skill {
  display: grid;
  grid-template-columns: minmax(110px, 0.85fr) minmax(90px, 1.5fr) auto;
  align-items: center;
  gap: clamp(12px, 2.2vw, 26px);
  padding-block: clamp(11px, 1.7vw, 16px);
  border-bottom: var(--hair) solid var(--hair-color);
}

.skill__name {
  font-weight: 600;
  font-size: clamp(0.92rem, 1.35vw, 1.08rem);
  text-transform: lowercase;
  letter-spacing: -0.01em;
  min-width: 0;
}

/* Pegelanzeige aus 20 Segmenten – JS setzt die aktiven */
.skill__meter {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: clamp(2px, 0.35vw, 4px);
  min-width: 0;
}

.skill__meter i {
  display: block;
  height: clamp(13px, 1.9vw, 19px);
  border-radius: 2px;
  background: var(--red-14);
  transform: scaleY(0.42);
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease);
}

.skill__meter i.on {
  background: var(--red);
  transform: scaleY(1);
}

.skill__value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(0.82rem, 1.15vw, 0.95rem);
  opacity: 0.55;
  text-align: right;
  min-width: 3.4ch;
  flex: none;
}

.skill__value::after {
  content: "%";
  font-size: 0.74em;
  opacity: 0.7;
  margin-left: 0.1em;
}

/* ===================================================== */
/*  15. PROJEKT-EINTRAEGE (swisscom)                     */
/* ===================================================== */

.case__meta {
  margin-bottom: clamp(20px, 3vw, 30px);
}

.case__meta .meta-row {
  padding-block: clamp(8px, 1.2vw, 12px);
}

.case__body h2 {
  font-size: clamp(1.8rem, 4.6vw, 3.2rem);
  margin: 0 0 clamp(18px, 2.6vw, 28px);
}

/* ===================================================== */
/*  16. KONTAKTBOGEN (portfolio)                         */
/* ===================================================== */

.contact-sheet {
  columns: 3;
  column-gap: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(60px, 10vh, 130px);
}

.pf-card {
  --offset: 8px;
  break-inside: avoid;
  /* Safari braucht beides, sonst zerreisst es Karten zwischen Spalten */
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: block;
  width: 100%;
  margin: 0 0 clamp(24px, 3.6vw, 44px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pf-card__media {
  position: relative;
  width: 100%;
  border-radius: var(--r-md);
  border: 3px solid var(--red);
  overflow: hidden;
  background: var(--sand);
  box-shadow: var(--offset) var(--offset) 0 var(--red);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.pf-card:nth-child(3n + 1) {
  --tilt: -0.6deg;
}

.pf-card:nth-child(3n + 2) {
  --tilt: 0.5deg;
}

.pf-card:nth-child(3n + 3) {
  --tilt: -0.3deg;
}

.pf-card:hover .pf-card__media,
.pf-card:focus-visible .pf-card__media {
  transform: rotate(0deg) translate(3px, 3px);
  box-shadow: calc(var(--offset) - 3px) calc(var(--offset) - 3px) 0 var(--red);
}

.pf-card__media img,
.pf-card__media video {
  display: block;
  width: 100%;
  height: auto;
}

/* Einbettungen bekommen ihr Seitenverhaeltnis als Kasten */
.pf-card--embed .pf-card__media {
  aspect-ratio: var(--pf-ratio, 16 / 9);
  background: #000;
}

.pf-card--embed .pf-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pf-card--video .pf-card__media {
  background: #000;
}

/* Platzhalterflaechen, wenn kein Vorschaubild geliefert wird */
.pf-card--tiktok .pf-card__media {
  background: #010101;
}

.pf-card--instagram .pf-card__media {
  background: linear-gradient(135deg, #405de6, #833ab4 45%, #e1306c 75%, #f77737);
}

/* Abspielmarke fuer alles Bewegte */
.pf-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(44px, 5vw, 58px);
  height: clamp(44px, 5vw, 58px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--red) 88%, transparent);
  border: 2px solid var(--cream);
  pointer-events: none;
  transition: transform 0.4s var(--ease);
}

.pf-card:hover .pf-play {
  transform: translate(-50%, -50%) scale(1.12);
}

.pf-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 56%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--cream);
}

.pf-badge {
  display: none;
  position: absolute;
  left: 10px;
  bottom: 9px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.pf-card--noposter .pf-badge {
  display: block;
}

/* Bildunterschrift des Kontaktbogens */
.pf-card__cap {
  display: flex;
  align-items: baseline;
  gap: 0.7em;
  margin-top: clamp(11px, 1.6vw, 16px);
  padding-top: clamp(8px, 1.2vw, 12px);
  border-top: var(--hair) solid var(--hair-color);
  font-size: clamp(0.78rem, 1.1vw, 0.9rem);
  line-height: 1.45;
  text-transform: lowercase;
}

.pf-card__num {
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  opacity: 0.5;
  flex: none;
}

.pf-card__title {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.35s var(--ease);
}

.pf-card:hover .pf-card__title {
  text-decoration-color: currentColor;
}

/* ===================================================== */
/*  17. LIGHTBOX                                         */
/* ===================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  pointer-events: none;
  background: color-mix(in srgb, var(--red) 22%, transparent);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: opacity 0.7s var(--ease), background 0.7s ease,
    backdrop-filter 0.7s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
  background: color-mix(in srgb, var(--red) 62%, rgba(60, 0, 0, 0.7));
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.lightbox-content {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.lightbox-media {
  min-width: 0;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: var(--r-md);
  border: 3px solid var(--cream);
  box-shadow: var(--shadow-lg);
  display: block;
  margin-inline: auto;
}

/* Einbettung in der Lightbox: gleiche Groesse wie ein Video */
.lightbox-media .pf-embed {
  width: 100%;
  max-width: 100%;
  max-height: 88vh;
  aspect-ratio: var(--pf-ratio, 16 / 9);
  background: #000;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 3px solid var(--cream);
  box-shadow: var(--shadow-lg);
}

.lightbox-media .pf-embed--portrait {
  width: auto;
  height: 88vh;
  margin-inline: auto;
}

.lightbox-media .pf-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* TikTok / Instagram liefern eine feste Karte mit eigener Chrome */
.lightbox-media .pf-embed--card {
  aspect-ratio: auto;
  width: min(360px, 92vw);
  max-width: 100%;
  max-height: 88vh;
  margin-inline: auto;
  overflow-y: auto;
  overflow-x: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  -webkit-overflow-scrolling: touch;
}

.lightbox-media .pf-embed--tiktok.pf-embed--card {
  width: min(325px, 92vw);
  height: min(760px, 88vh);
  overflow: hidden;
}

.lightbox-media .pf-embed--tiktok.pf-embed--card iframe {
  width: 100%;
  height: 100%;
}

.lightbox-media .pf-embed--instagram.pf-embed--card {
  width: min(400px, 92vw);
  height: auto;
}

.lightbox-media .pf-embed--instagram.pf-embed--card .instagram-media {
  min-width: 0 !important;
}

.lightbox-info {
  color: var(--cream);
  text-align: left;
}

.lightbox-info .head-rule {
  --hair-color: color-mix(in srgb, var(--cream) 40%, transparent);
  color: var(--cream);
  margin-bottom: clamp(14px, 2vw, 20px);
}

.lightbox-info .eyebrow,
.lightbox-info .idx {
  color: var(--cream);
}

.lightbox-info h3 {
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  text-transform: lowercase;
  color: var(--cream);
}

.lightbox-info p {
  font-size: clamp(0.96rem, 1.4vw, 1.06rem);
  line-height: 1.7;
  margin: 0;
  max-width: 42ch;
  opacity: 0.92;
}

.lightbox-info a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.lightbox-close {
  position: absolute;
  top: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 32px);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--cream);
  font-size: 2rem;
  line-height: 1;
  color: var(--cream);
  cursor: pointer;
  user-select: none;
  z-index: 5;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.lightbox-close:hover {
  background: var(--cream);
  color: var(--red);
  transform: rotate(90deg);
}

/* Inhalts-Animation */
.lightbox-content > * {
  transform: translateY(24px) scale(0.92);
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.9s var(--ease), opacity 0.9s var(--ease);
}

.lightbox.active .lightbox-content > * {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.lightbox.active .lightbox-content > *:last-child {
  transition-delay: 0.08s;
}

/* ===================================================== */
/*  18. FOOTER  (unveraendert uebernommen)               */
/* ===================================================== */

footer {
  position: relative;
  background: var(--red);
  color: var(--lightred);
  margin-top: clamp(48px, 7vh, 100px);
  padding: clamp(56px, 9vh, 110px) var(--gutter) clamp(28px, 4vh, 44px);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  overflow: hidden;
}

.footer-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35em;
  max-width: var(--maxw);
  margin: 0 auto clamp(32px, 5vw, 56px);
  font-weight: 800;
  font-size: clamp(2.4rem, 10vw, 7rem);
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--cream);
  text-transform: lowercase;
}

.footer-name a {
  display: inline-grid;
  place-items: center;
  width: clamp(38px, 5vw, 58px);
  height: clamp(38px, 5vw, 58px);
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--cream) 55%, transparent);
  transition: background-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.footer-name a:first-of-type {
  margin-left: 0.25em;
}

.footer-name a:hover {
  background: color-mix(in srgb, var(--cream) 18%, transparent);
  border-color: var(--cream);
  transform: translateY(-4px);
}

.footer-name a img {
  height: clamp(15px, 1.9vw, 21px);
  width: auto;
  margin: 0;
  display: block;
}

.footer-content {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
  padding-top: clamp(24px, 4vw, 40px);
  border-top: 2px solid color-mix(in srgb, var(--cream) 28%, transparent);
}

.footer-note {
  font-size: 0.86rem;
  opacity: 0.72;
  order: 3;
  text-transform: lowercase;
}

.footer-social {
  display: none;
  gap: 0.7em;
  order: 2;
}

.footer-contact {
  order: 1;
  text-align: left;
  max-width: min(46ch, 100%);
  overflow-wrap: anywhere;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.7;
}

.footer-contact strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.5em;
}

footer a {
  color: var(--cream);
  text-decoration: none;
  transition: opacity 0.3s var(--ease);
}

.footer-contact a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

footer a:hover {
  opacity: 0.75;
}

/* ===================================================== */
/*  19. HAMBURGER & MOBILMENUE  (unveraendert)           */
/* ===================================================== */

.hamburger {
  display: none;
  position: fixed;
  right: var(--gutter);
  top: clamp(20px, 2.6vw, 30px);
  width: 46px;
  height: 46px;
  border: 2px solid var(--red);
  border-radius: 50%;
  background: var(--cream);
  padding: 0;
  cursor: pointer;
  z-index: 2100;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.hamburger .bar,
.hamburger::before,
.hamburger::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--red);
  transition: transform 0.35s var(--ease), opacity 0.2s ease,
    background-color 0.35s var(--ease);
}

.hamburger .bar {
  top: 50%;
  transform: translate(-50%, -50%);
}

.hamburger::before {
  content: "";
  top: 15px;
  transform: translateX(-50%);
}

.hamburger::after {
  content: "";
  bottom: 15px;
  transform: translateX(-50%);
}

.hamburger[aria-expanded="true"] {
  background: var(--cream);
  border-color: var(--cream);
}

.hamburger[aria-expanded="true"] .bar {
  opacity: 0;
}

.hamburger[aria-expanded="true"]::before,
.hamburger[aria-expanded="true"]::after {
  top: 50%;
  bottom: auto;
  background: var(--red);
}

.hamburger[aria-expanded="true"]::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.hamburger[aria-expanded="true"]::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
}

/* ===================================================== */
/*  20. SCROLL-REVEAL                                    */
/* ===================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Headline wird von links aufgedeckt statt eingeblendet.
   Wichtig: aufgedeckt wird mit einem Vorhang aus ::after, NICHT indem
   das Element selbst zusammengeklappt wird. Ein auf Flaeche null
   geklapptes Element erreicht den Schwellwert des IntersectionObserver
   nie – der Effekt wuerde seine eigene Ausloesung verhindern. */
.reveal--wipe {
  --wipe-bg: var(--lightred);
  opacity: 1;
  transform: none;
  position: relative;
}

.reveal--wipe::after {
  content: "";
  position: absolute;
  /* etwas ueber den Textkasten hinaus, damit Ober- und Unterlaengen
     bei line-height < 1 sauber verdeckt sind */
  inset: -0.12em -0.06em;
  background: var(--wipe-bg);
  transform-origin: right center;
  transition: transform 1s var(--ease-out);
  pointer-events: none;
}

.reveal--wipe.visible::after {
  transform: scaleX(0);
}

/* Haarlinie zieht sich auf – ueber die Hintergrundgroesse statt ueber
   scaleX, aus demselben Grund: der Kasten muss seine Flaeche behalten. */
.reveal--rule {
  opacity: 1;
  transform: none;
  background-color: transparent;
  background-image: linear-gradient(var(--hair-color), var(--hair-color));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 0.9s var(--ease-out);
}

.reveal--rule.visible {
  background-size: 100% 100%;
}

/* Gestaffelt innerhalb einer Gruppe */
.reveal[style*="--i"] {
  transition-delay: calc(var(--i) * 60ms);
}

/* ===================================================== */
/*  21. RESPONSIVE                                       */
/* ===================================================== */

@media (max-width: 1280px) {
  .spine {
    display: none;
  }
}

@media (max-width: 1060px) {
  /* --- Hero stapelt --- */
  .hero {
    min-height: auto;
  }

  .hero-stage {
    grid-template-areas:
      "type"
      "portrait"
      "stickers";
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    gap: clamp(18px, 4vw, 34px);
    min-height: 0;
  }

  .hero-type {
    grid-area: type;
    justify-self: center;
    max-width: 100%;
  }

  .hero-type .btn-row {
    justify-content: center;
  }

  .hero-portrait {
    grid-area: portrait;
    justify-self: center;
    align-self: center;
    justify-content: center;
    width: min(100%, 620px);
  }

  .hero-portrait img {
    margin-inline: auto;
    max-height: min(70vh, 760px);
  }

  .hero-stickers {
    grid-area: stickers;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }

  /* --- Split-Bloecke stapeln, Bild immer zuerst --- */
  .split {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: clamp(26px, 6vw, 48px);
  }

  .split > * {
    grid-column: 1;
    width: 100%;
    max-width: min(680px, 100%);
    margin-inline: auto;
  }

  .split__media {
    grid-row: 1;
  }

  .split__body {
    grid-row: 2;
  }

  .contact-sheet {
    columns: 2;
  }
}

@media (max-width: 900px) {
  .quotes {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(26px, 5vw, 40px);
  }

  .feature__stage {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .feature__aside .btn-row {
    flex-direction: row;
  }

  .feature__aside .btn {
    width: auto;
    flex: 1 1 190px;
  }

  /* --- Lightbox einspaltig --- */
  .lightbox {
    align-items: flex-start;
    overflow-y: auto;
    padding: 88px var(--gutter) 40px;
  }

  .lightbox-content {
    width: min(92vw, 560px);
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .lightbox-content img,
  .lightbox-content video {
    max-height: 58vh;
  }

  .lightbox-media .pf-embed {
    max-height: 58vh;
  }

  .lightbox-media .pf-embed--portrait {
    height: 58vh;
  }

  .lightbox-media .pf-embed--card {
    max-height: none;
    width: min(92vw, 360px);
  }

  .lightbox-media .pf-embed--tiktok.pf-embed--card {
    width: min(92vw, 325px);
    height: 78vh;
  }
}

@media (max-width: 820px) {
  :root {
    --nav-h: 74px;
    --offset: 8px;
  }

  .hamburger {
    display: inline-flex;
  }

  .nav-inner {
    padding-right: 60px;
  }

  header.scrolled .nav-inner {
    padding-right: 60px;
  }

  .nav-inner nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: var(--red);
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease);
    z-index: 2000;
    padding: var(--gutter);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  body.menu-open .nav-inner nav {
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-inner nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(14px, 3vh, 24px);
    text-align: center;
  }

  .nav-inner nav a {
    color: var(--cream) !important;
    font-weight: 700;
    font-size: clamp(2rem, 11vw, 3.6rem);
    letter-spacing: -0.04em;
    line-height: 1;
    padding: 0.15em 0.5em;
    border-radius: var(--r-md);
  }

  .nav-inner nav a:hover {
    background: color-mix(in srgb, var(--cream) 16%, transparent);
  }

  .nav-inner nav a[aria-current="page"] {
    background: var(--cream);
    color: var(--red) !important;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-contact {
    order: 1;
    text-align: center;
  }

  .footer-social {
    display: flex;
    order: 2;
  }

  .footer-social a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--cream) 55%, transparent);
    transition: background-color 0.35s var(--ease), transform 0.35s var(--ease);
  }

  .footer-social a:hover {
    background: color-mix(in srgb, var(--cream) 18%, transparent);
    transform: translateY(-3px);
  }

  .footer-social img {
    height: 18px;
    width: auto;
  }

  .footer-note {
    order: 3;
  }

  .footer-name a {
    display: none;
  }
}

@media (max-width: 700px) {
  .hero-type .btn-row {
    align-items: stretch;
  }

  .hero-type .btn {
    flex: 1 1 180px;
  }

  .hero-status__item:last-child {
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  .contact-sheet {
    columns: 1;
  }

  /* Pegel bekommt eine eigene Zeile, sonst wird er zu schmal */
  .skill {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name value"
      "meter meter";
    gap: 9px clamp(10px, 3vw, 16px);
  }

  .skill__name {
    grid-area: name;
  }

  .skill__value {
    grid-area: value;
  }

  .skill__meter {
    grid-area: meter;
  }

  .index-list li {
    flex-wrap: wrap;
    gap: 8px clamp(12px, 3vw, 18px);
  }

  .index-list__value {
    margin-left: auto;
  }

  .numbered li {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(6px, 2vw, 10px);
  }
}

/* ===================================================== */
/*  22. REDUZIERTE BEWEGUNG                              */
/* ===================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal--wipe,
  .reveal--rule {
    opacity: 1;
    transform: none;
  }

  .reveal--wipe::after {
    display: none;
  }

  .reveal--rule {
    background-size: 100% 100%;
  }

  .marquee__track {
    animation: none;
  }
}
