/* parafinalia studio — One-Pager
   Tokens straight from the briefing. */

:root {
  --ink: #282425;       /* warmes Soft-Black */
  --paper: #F7F2E8;     /* cremiges Weiß */
  --red: #D9452B;       /* Akzent / CTA */
  --olive: #3D5A40;     /* Zweitakzent */
  --muted: #8C8C8C;     /* Sekundärtext */
  --line: #E6E6E6;      /* Divider */
  --line-dark: #3a3536; /* Divider auf dunkel */
  --paper-muted: #EEE7D9;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --container: min(1280px, calc(100vw - 48px));
  --gutter: clamp(20px, 4vw, 40px);
  --section-pad: clamp(80px, 11vw, 160px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.45;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── Type scale ─────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  display: inline-block;
  opacity: 0.5;
  flex-shrink: 0;
  /* 0.72em ≈ halbe Versalhöhe bei 12px — Strich mittig der Großbuchstaben */
  margin-top: 0.72em;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

.h-section {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

.h-card {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

.lead {
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.5;
  max-width: 56ch;
  font-weight: 400;
  color: var(--ink);
  text-wrap: pretty;
}
.lead.muted { color: var(--muted); }

/* ── Layout shell ───────────────────────────────────────────────────── */
.shell {
  width: var(--container);
  margin: 0 auto;
}

section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  position: relative;
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.section-marker {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: clamp(40px, 6vw, 80px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-marker .num { color: var(--red); font-weight: 500; }
.section-marker .rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 24px; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
  border-bottom: 1px solid transparent;
}
.site-header[data-bg="dark"] {
  color: var(--paper);
}
.site-header[data-bg="light"] {
  color: var(--ink);
}
.site-header[data-mode="hidden"] { display: none; }
.site-header[data-mode="floating"] {
  top: 16px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 760px);
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(40, 36, 37, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.08);
}

.site-header .nav {
  display: flex;
  gap: clamp(14px, 2.5vw, 32px);
  font-size: 14px;
  font-weight: 500;
}
.site-header .nav a {
  position: relative;
  padding: 6px 0;
  opacity: 0.85;
  transition: opacity 160ms ease;
}
.site-header .nav a:hover { opacity: 1; }
.site-header .nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--red);
  transition: right 240ms ease;
}
.site-header .nav a:hover::after { right: 0; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand-mark .pglyph {
  font-size: 28px;
  line-height: 1;
  display: inline-block;
}
.brand-mark .stack {
  font-size: 13px;
  line-height: 1;
  display: none;
}
.brand-mark .stack span { display: block; }
@media (min-width: 720px) {
  .brand-mark .stack { display: inline-block; }
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  background: var(--ink);
  color: var(--paper);
  min-height: 100vh;
  height: 100vh;
  padding-top: clamp(80px, 12vh, 200px);
  padding-bottom: 160px; /* Platz für absolut positionierten Ticker */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@supports (height: 100svh) {
  .hero { min-height: 100svh; height: 100svh; }
}
.hero .shell { width: var(--container); }

.hero-headline {
  font-size: clamp(48px, min(14vw, 22vh), 196px);
  line-height: 0.86;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
}
.hero-headline .accent-word {
  font-style: italic;
  font-weight: 400;
  color: var(--paper);
}
.hero-headline.with-red .accent-word { color: var(--red); font-style: normal; font-weight: 800;}

.hero-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
  margin-top: clamp(24px, 3vh, 40px);
}
@media (min-width: 880px) {
  .hero-row {
    grid-template-columns: 1fr auto;
  }
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 560px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--red);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 18px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  letter-spacing: -0.005em;
  transition: transform 160ms ease, background 160ms ease;
}
.hero-cta:hover { transform: translateY(-1px); background: #c63d24; }
.hero-cta .arrow {
  display: inline-block;
  transition: transform 240ms ease;
}
.hero-cta:hover .arrow { transform: translate(4px, -4px); }

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: clamp(60px, 10vh, 120px);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(250, 248, 245, 0.55);
  gap: 24px;
  flex-wrap: wrap;
}
.hero-bottom .col { display: flex; flex-direction: column; gap: 6px; }
.hero-bottom .col strong { color: var(--paper); font-weight: 500;}

.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(circle, rgba(255,255,255,0.8) 0.5px, transparent 0.5px);
  background-size: 22px 22px;
}

/* Hero ticker — absolut ans Bottom gepinnt, immer sichtbar */
.hero-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
  display: flex;
}
.hero-ticker .track {
  display: flex;
  gap: 56px;
  padding: 18px 0;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  color: var(--paper);
}
.hero-ticker .track span { display: inline-flex; align-items: center; gap: 56px; }
.hero-ticker .track span::after {
  content: "✱";
  font-size: 0.7em;
  color: var(--red);
  font-weight: 400;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Hero — split variant */
.hero[data-variant="split"] {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}
@media (min-width: 960px) {
  .hero[data-variant="split"] {
    grid-template-columns: 1.4fr 1fr;
  }
  .hero[data-variant="split"] .hero-side {
    border-left: 1px solid var(--line-dark);
    padding: clamp(80px, 12vh, 140px) clamp(32px, 4vw, 64px);
  }
}
.hero[data-variant="split"] .hero-side {
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

/* ── References ─────────────────────────────────────────────────────── */
.refs-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 64px);
}
@media (min-width: 720px) {
  .refs-head { grid-template-columns: 1.2fr auto; }
}
.refs-filter {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  align-self: start;
}
.refs-filter button {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  transition: background 160ms ease, color 160ms ease;
}
.refs-filter button:hover { color: var(--ink); }
.refs-filter button[data-active="true"] {
  background: var(--paper-muted);
  color: var(--ink);
}

.refs-grid {
  display: grid;
  gap: clamp(20px, 2.4vw, 32px);
}
.refs-grid[data-layout="grid2"] { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.refs-grid[data-layout="grid3"] { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }

/* Editorial mix: large + small irregular */
.refs-grid[data-layout="editorial"] {
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .refs-grid[data-layout="editorial"] {
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: dense;
  }
  .refs-grid[data-layout="editorial"] > .ref-card[data-wide="true"] { grid-column: span 2; }
  .refs-grid[data-layout="editorial"] > .ref-card[data-wide="true"] .ref-thumb { aspect-ratio: 21/9; }
}

.ref-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ref-thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--paper-muted);
  border-radius: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.ref-thumb svg { width: 100%; height: 100%; display: block; }

.ref-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  transition: opacity 600ms ease;
}
.ref-slide.active { opacity: 1; }

.ref-pills {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: calc(100% - 28px);
  z-index: 2;
}
.ref-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(40, 36, 37, 0.55);
  color: rgba(250, 248, 245, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 160ms ease, color 160ms ease;
  white-space: nowrap;
  line-height: 1;
}
.ref-pill.active {
  background: var(--red);
  color: var(--paper);
}
.ref-thumb .ref-label {
  position: absolute;
  inset: auto auto 14px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(40, 36, 37, 0.55);
  background: rgba(255,255,255,0.6);
  padding: 4px 8px;
  border-radius: 4px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.ref-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.ref-foot .ref-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.ref-foot .ref-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ── Services ───────────────────────────────────────────────────────── */
.services {
  background: var(--ink);
  color: var(--paper);
  border-radius: 0;
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}
.services .section-marker { color: rgba(250,248,245,0.6); }
.services .section-marker .num { color: var(--red); }
.services .section-marker .rule { background: var(--line-dark); }

.svc-grid {
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
@media (min-width: 880px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
}

.svc-card {
  background: var(--ink);
  padding: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  transition: background 320ms ease;
}
@media (min-width: 880px) {
  .svc-card { min-height: 360px; }
}
.svc-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
}
.svc-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(250,248,245,0.78);
  max-width: 36ch;
}
.svc-card .more {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(250,248,245,0.5);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ── About ──────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (min-width: 880px) {
  .about-grid { grid-template-columns: 5fr 7fr; }
}
.about-grid--text-only {
  grid-template-columns: 1fr;
  max-width: 72ch;
}

.about-portrait {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--paper-muted);
  border-radius: 0;
  overflow: hidden;
}
.about-portrait .placeholder-stripes { width: 100%; height: 100%; display: block; }
.about-portrait .ref-label {
  position: absolute;
  inset: auto auto 14px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(40, 36, 37, 0.55);
  background: rgba(255,255,255,0.7);
  padding: 4px 8px;
  border-radius: 4px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.about-text blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: pretty;
  max-width: 28ch;
}
.about-text blockquote em { font-style: italic; font-weight: 500; color: var(--olive); }
.about-text .signature {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-text .signature .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: none;
}

.about-meta {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.about-meta div { display: flex; flex-direction: column; gap: 6px; }
.about-meta dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
}

/* ── Client Logos ───────────────────────────────────────────────────── */
.client-logos {
  background: var(--paper);
  padding-top: calc(var(--section-pad) / 2);
  padding-bottom: calc(var(--section-pad) / 2);
}

.client-logos-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(40px, 5vw, 64px);
}
@media (min-width: 720px) {
  .client-logos-header {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
@media (max-width: 879px) {
  .logos-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 479px) {
  .logos-grid { grid-template-columns: repeat(2, 1fr); }
}

.logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 8px 16px;
  filter: grayscale(1);
  opacity: 0.4;
}
.logo-cell img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ── Contact ────────────────────────────────────────────────────────── */
.contact {
  background: var(--paper);
  position: relative;
}

.contact-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 clamp(32px, 5vw, 56px);
  text-wrap: balance;
}
.contact-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 5fr 7fr; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-info .email-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 6px;
  align-self: flex-start;
  transition: opacity 160ms ease;
}
.contact-info .email-link:hover { opacity: 0.75; }
.contact-info .lead { color: var(--muted); }
.contact-info .availability {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-info .availability .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 4px rgba(61,90,64,0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(61,90,64,0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(61,90,64,0.05); }
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: transparent;
}
.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 12px;
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
  font-weight: 400;
}
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--ink); }
.contact-form .row-2 {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .contact-form .row-2 { grid-template-columns: 1fr 1fr; }
}
.contact-form .submit {
  margin-top: 12px;
  align-self: flex-start;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 16px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background 160ms ease, transform 160ms ease;
}
.contact-form .submit:hover { background: var(--red); transform: translateY(-1px); }
.contact-form .submit[disabled] { opacity: 0.6; pointer-events: none; }
.contact-form .submit .arrow { display: inline-block; transition: transform 240ms ease; }
.contact-form .submit:hover .arrow { transform: translate(4px, -4px); }

.contact-form .field.error input,
.contact-form .field.error textarea { border-bottom-color: var(--red); }
.contact-form .field .err {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: none;
}
.contact-form .field.error .err { display: block; }

.contact-success {
  padding: 32px;
  border: 1px dashed var(--olive);
  border-radius: 8px;
  background: rgba(61,90,64,0.05);
  color: var(--ink);
  font-size: 17px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-success strong { color: var(--olive); font-weight: 700; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
}
.site-footer .brand-mark { color: var(--ink); }
.site-footer .links { display: flex; gap: 24px; }

/* ── Reveal animations ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(.2,.8,.2,1),
              transform 800ms cubic-bezier(.2,.8,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-ticker .track { animation: none; }
}

/* ── Hamburger / Mobile nav ─────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  color: inherit;
  position: relative;
  z-index: 101;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 719px) {
  /* ── Tokens ── */
  :root {
    --container: calc(100vw - 48px); /* 24px je Seite */
    --gutter: 0px; /* kein zusätzliches inneres Padding, Container reicht */
    --section-pad: clamp(56px, 10vw, 160px);
  }

  /* ── Header: absolut + bündig mit Content ── */
  .site-header {
    position: absolute;
    top: 0;
    padding-left: 24px;
    padding-right: 24px;
  }

  /* ── Hero ── */
  .hero {
    padding-top: 0;
    padding-bottom: 80px;
  }
  /* Eyebrow ausblenden */
  .hero .eyebrow { display: none; }
  /* flex-start + padding-top: Content fängt 64px unter dem Logo an */
  .hero .shell {
    justify-content: flex-start !important;
    padding-top: 140px !important; /* ~76px Header + 64px Abstand */
    gap: 32px !important;           /* H1 → Subtext */
  }
  .hero .hero-headline { margin-top: 0 !important; }
  /* E-Mail-Adresse unterm Button ausblenden */
  .hero .hero-bottom { display: none; }

  /* ── H2 8px kleiner ── */
  .h-section { font-size: clamp(32px, 8.5vw, 88px); }

  /* ── Referenzen: Abstand Bildunterschrift und Karten ── */
  .ref-card { gap: 12px; }          /* 4px näher ans Bild */
  .refs-grid { gap: clamp(24px, 2.4vw, 32px); } /* 4px mehr Abstand zur nächsten Box */

  /* ── Leistungen: Kacheln bündig + Höhe nach Inhalt ── */
  .svc-grid { align-items: start; }
  .svc-card {
    padding-left: 0;
    padding-right: 0;
  }

  /* ── Logobar: gleiche vertikale Abstände ── */
  .client-logos {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .client-logos-header { margin-bottom: 32px; }

  /* ── Filter-Buttons ── */
  .refs-filter button { padding: 8px 14px; font-size: 13px; }

  /* ── Footer zweizeilig ── */
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ── Scroll Indicator ───────────────────────────────────────────────── */
.scroll-indicator {
  position: fixed;
  bottom: calc(clamp(32px, 5vh, 56px) + 72px);
  right: clamp(20px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10;
  transition: color 300ms ease;
  /* default: hell (auf dunklem Hero) */
  color: rgba(250,248,245,0.45);
}
.scroll-indicator[data-dark="true"] {
  color: rgba(40,36,37,0.4);
}
.scroll-indicator .scroll-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: currentColor;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.scroll-line {
  width: 1px;
  height: 52px;
  background: var(--si-track);
  position: relative;
  overflow: hidden;
}
.scroll-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  background: var(--si-active);
  transition: height 80ms linear;
}
.scroll-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 12px;
  background: var(--si-active);
  animation: scroll-drop 1.8s ease-in-out infinite;
}

/* Farb-Tokens: hell (Standard auf dunklem Hero) */
.scroll-indicator {
  --si-track:  rgba(250,248,245,0.15);
  --si-active: rgba(250,248,245,0.75);
  color: rgba(250,248,245,0.45);
}
/* Farb-Tokens: dunkel (auf hellem Hintergrund) */
.scroll-indicator[data-dark="true"] {
  --si-track:  rgba(40,36,37,0.12);
  --si-active: rgba(40,36,37,0.6);
  color: rgba(40,36,37,0.4);
}
@keyframes scroll-drop {
  0%   { transform: translateY(-12px); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 0.6; }
  100% { transform: translateY(52px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-dot { animation: none; opacity: 0.5; transform: translateY(20px); }
  .scroll-fill { transition: none; }
}

