/* ==========================================================================
   open.screen – Stylesheet
   Gestaltung angelehnt an die Apple Human Interface Guidelines:
   klare Typografie, semantische Farben (Dark Mode), 44-px-Tippflächen,
   großzügige Abstände, Rücksicht auf "Bewegung reduzieren".
   Schrift: Inter / Inter Display (SIL OFL 1.1), lokal eingebunden.
   ========================================================================== */

/* ---------- Schriften (lokal, keine Verbindung zu Drittanbietern) -------- */
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-800.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }

/* ---------- Design-Tokens ------------------------------------------------ */
:root {
  color-scheme: dark;

  /* Hintergründe – entsprechen den System-Hintergründen im Dark Mode */
  --bg: #000000;
  --bg-2: #1c1c1e;
  --bg-3: #2c2c2e;
  --bg-elevated: #161618;

  /* Textfarben – Label-Hierarchie */
  --label: #ffffff;
  --label-2: rgba(235, 235, 245, .68);
  --label-3: rgba(235, 235, 245, .6);   /* ≥ 4.5:1 Kontrast auf Schwarz (WCAG AA) */
  --separator: rgba(84, 84, 88, .55);

  /* Akzentfarbe */
  --green: #3cff6b;
  --green-pressed: #2fe05b;
  --green-tint: rgba(60, 255, 107, .14);
  --green-glow: rgba(60, 255, 107, .32);
  --on-green: #000000;
  --red: #ff453a;

  /* Typografie */
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Maße */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 60px;
  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 28px;
  --tap: 44px;

  --ease: cubic-bezier(.25, .1, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.53;
  letter-spacing: -.011em;
  font-feature-settings: "calt", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
picture { display: contents; }
img { height: auto; }
a { color: var(--green); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--label); }
p { margin: 0 0 1em; }
::selection { background: var(--green); color: var(--on-green); }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 1000;
  background: var(--green); color: var(--on-green); font-weight: 600;
  padding: 12px 18px; border-radius: 999px; transition: top .2s var(--ease);
}
.skip-link:focus-visible { top: 12px; color: var(--on-green); }

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

/* ---------- Typografie --------------------------------------------------- */
h1, h2, h3, h4 { margin: 0 0 .4em; font-family: var(--font-display); font-weight: 700; color: var(--label); }

.large-title {
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 800;
}
.title-1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.06;
  letter-spacing: -.03em;
}
.title-2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.02em; }
.title-3 { font-size: 21px; line-height: 1.25; letter-spacing: -.015em; font-weight: 700; }

.headline-lead {
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.45;
  letter-spacing: -.016em;
  color: var(--label-2);
  max-width: 40em;
}
.eyebrow {
  display: inline-block;
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  color: var(--green);
  margin-bottom: 14px;
}
.accent { color: var(--green); }
.muted { color: var(--label-2); }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 12px 24px;
  border-radius: 999px; border: 0;
  font: 600 17px/1.2 var(--font-text); letter-spacing: -.01em;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn--filled { background: var(--green); color: var(--on-green); }
.btn--filled:hover { background: var(--green-pressed); color: var(--on-green); box-shadow: 0 8px 30px var(--green-glow); }
.btn--filled:active { transform: scale(.97); }
.btn--tinted { background: rgba(255,255,255,.12); color: var(--label); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.btn--tinted:hover { background: rgba(255,255,255,.2); color: var(--label); }
.btn--plain { background: none; color: var(--green); padding-inline: 4px; }
.btn--plain:hover { color: var(--label); }
.btn[disabled] { opacity: .5; cursor: progress; }

.link-arrow { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
.link-arrow::after { content: "›"; font-size: 1.25em; line-height: 1; transform: translateY(-1px); transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translate(3px, -1px); }

/* ---------- Header / Navigation ----------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
  isolation: isolate;
}
/* Unschärfe auf einem Pseudo-Element (verhindert, dass fixierte Kinder
   vom backdrop-filter eingeschlossen werden). */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.header.is-scrolled::before { opacity: 1; }
.header.is-scrolled { border-bottom-color: var(--separator); }
.header__inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.header__logo { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap); justify-self: start; margin-left: -6px; border-radius: 12px; }
.header__logo img { height: 34px; width: auto; transition: transform .4s var(--ease-out), filter .4s var(--ease); }
.header__logo:hover img { transform: scale(1.06); filter: drop-shadow(0 0 12px var(--green-glow)); }
.header .lang { justify-self: end; }

/* Schwebende Pill-Navigation mit gleitender Markierung */
.pillnav {
  position: relative; padding: 4px; border-radius: 999px;
  background: rgba(118, 118, 128, .18);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.pillnav__list { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; position: relative; z-index: 1; }
.pillnav__link {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px;
  color: var(--label-2); font-size: 14px; font-weight: 500; letter-spacing: -.005em;
  border-radius: 999px; position: relative; transition: color .25s var(--ease);
}
.pillnav__link::before { content: ""; position: absolute; inset: -4px 0; } /* 44-px-Tippfläche */
.pillnav__link:hover { color: var(--label); }
.pillnav__link[aria-current="true"] { color: var(--label); }
.pillnav__indicator {
  position: absolute; top: 4px; left: 0; height: 36px; width: 0;
  border-radius: 999px; background: rgba(255,255,255,.14);
  box-shadow: 0 1px 1px rgba(0,0,0,.2), inset 0 0 0 .5px rgba(255,255,255,.12);
  opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s var(--ease);
}
.pillnav__indicator.is-visible { opacity: 1; }
.pillnav__indicator::after { /* grüner Punkt unter dem aktiven Eintrag */
  content: ""; position: absolute; left: 50%; bottom: -1px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green);
}

/* Segmented Control für die Sprache */
.lang {
  display: inline-flex; padding: 2px; border-radius: 9px;
  background: rgba(118, 118, 128, .24);
}
.lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 30px; padding: 0 10px; border-radius: 7px;
  color: var(--label-2); font-size: 13px; font-weight: 600; letter-spacing: .02em;
  position: relative;
}
.lang a::before { content: ""; position: absolute; inset: -7px -2px; } /* 44-px-Tippfläche */
.lang a[aria-current="page"] { background: #636366; color: var(--label); box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04); }
.lang a:hover { color: var(--label); }
.lang--large { display: flex; width: 100%; }
.lang--large a { flex: 1; min-height: 40px; font-size: 15px; letter-spacing: -.005em; }

/* Mobiles Dock (unten) */
.dock {
  position: fixed; z-index: 95; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: none; align-items: center; gap: 6px;
  width: min(calc(100% - 28px), 420px); padding: 6px;
  border-radius: 999px;
  background: rgba(30, 30, 32, .78);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 10px 40px rgba(0,0,0,.5), inset 0 0 0 .5px rgba(255,255,255,.14);
  transition: transform .45s var(--ease-out), opacity .3s var(--ease);
}
.dock.is-hidden { transform: translate(-50%, 140%); opacity: 0; }
.dock__menu {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--label); font: 600 16px/1.2 var(--font-text); letter-spacing: -.01em; text-align: left;
}
.dock__menu svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--label-2); }
.dock__label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dock__label [data-dock-current] { display: inline-block; }
.dock__label .is-changing { animation: dockSwap .45s var(--ease-out); }
@keyframes dockSwap { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
.dock__cta {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--green); color: var(--on-green); font-weight: 600; font-size: 16px;
}
.dock__cta:hover { color: var(--on-green); background: var(--green-pressed); }

/* Bottom-Sheet (natives <dialog>) */
.sheet {
  margin: 0; padding: 0; border: 0; max-width: none; max-height: none;
  width: 100%; height: 100%; background: transparent; color: var(--label);
  inset: 0; overflow: hidden;
}
.sheet::backdrop { background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: rgba(28, 28, 30, .92);
  -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,.4), inset 0 .5px 0 rgba(255,255,255,.12);
}
.sheet[open] .sheet__panel { animation: sheetUp .5s var(--ease-out); }
.sheet[open]::backdrop { animation: fadeIn .3s var(--ease); }
.sheet.is-closing .sheet__panel { animation: sheetDown .3s var(--ease) forwards; }
.sheet.is-closing::backdrop { animation: fadeOut .3s var(--ease) forwards; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.sheet__grip { width: 36px; height: 5px; border-radius: 3px; background: rgba(235,235,245,.3); margin: 0 auto 14px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet__logo { height: 22px; width: auto; }
.sheet__close {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; position: relative;
  display: grid; place-items: center; background: rgba(118,118,128,.24); color: var(--label-2);
}
.sheet__close::before { content: ""; position: absolute; inset: -4px; }
.sheet__close svg { width: 16px; height: 16px; }
.sheet__list { list-style: none; margin: 8px 0 20px; padding: 0; }
.sheet__list li + li { border-top: 1px solid var(--separator); }
.sheet__link {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px;
  font: 700 24px/1.2 var(--font-display); letter-spacing: -.02em; color: var(--label);
}
.sheet__link::after { content: "›"; font: 400 26px/1 var(--font-text); color: var(--label-3); transition: transform .2s var(--ease); }
.sheet__link:hover::after { transform: translateX(3px); }
.sheet__link[aria-current="true"] { color: var(--green); }
.sheet__foot { display: grid; gap: 16px; }
.sheet__legal { margin: 0; font-size: 14px; color: var(--label-3); text-align: center; }
.sheet__legal a { color: var(--label-2); display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 6px; }

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 64px) 0 clamp(72px, 12vh, 128px);
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: #050505; }
.hero__media video, .hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(.55);
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 80% 10%, rgba(60, 255, 107, .16), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.2) 35%, rgba(0,0,0,.8) 78%, #000 100%);
}
/* Immer zweizeilig: Zeile 1 fest, Zeile 2 = animiertes Schlagwort.
   Die Schriftgröße passt sich so an, dass die längste Zeile in jede Breite passt. */
.hero__title {
  --hero-fit: 9.4;                       /* Breite der längsten Zeile in em (DE) */
  font-size: clamp(30px, calc((100vw - 2 * var(--gutter)) / var(--hero-fit)), 96px);
  white-space: nowrap; margin-bottom: 24px;
}
:lang(en) .hero__title { --hero-fit: 8.1; }
.hero__title .hero__line { display: block; }
.hero__title .rotator { display: block; min-height: 1.02em; color: var(--green); }
.hero__lead { margin-bottom: 36px; color: rgba(235,235,245,.8); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.media-toggle {
  position: absolute; right: var(--gutter); bottom: 28px; z-index: 2;
  width: var(--tap); height: var(--tap); border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.12); color: var(--label); border: 0;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  transition: background-color .2s var(--ease);
}
.media-toggle:hover { background: rgba(255,255,255,.22); }
.media-toggle svg { width: 16px; height: 16px; }
.media-toggle .icon-play { display: none; }
.media-toggle[aria-pressed="true"] .icon-play { display: block; }
.media-toggle[aria-pressed="true"] .icon-pause { display: none; }

/* ---------- Kennzahlen --------------------------------------------------- */
.stats { border-block: 1px solid var(--separator); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 16px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--separator); }
.stat__value {
  font: 800 clamp(32px, 4.2vw, 52px)/1 var(--font-display); letter-spacing: -.03em;
  color: var(--label); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stat__pre { color: var(--green); font-size: .6em; margin-right: .14em; vertical-align: .18em; }
.stat__unit { color: var(--green); font-size: .55em; letter-spacing: -.01em; margin-left: .12em; }
/* Kilometerzähler: jede Ziffer rollt einzeln (neue Ziffer kommt von oben) */
.odo { display: inline-flex; align-items: flex-start; }
.odo__d {
  position: relative; display: inline-block; overflow: hidden;
  height: 1.08em; line-height: 1.08;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.odo__d > span { display: block; }
.odo__d > span + span { position: absolute; left: 0; top: 0; }
.odo__sep { display: inline-block; line-height: 1.08; }
.stat__label { margin-top: 10px; font-size: 14px; color: var(--label-2); }

/* ---------- Sektionen ---------------------------------------------------- */
.section { padding-block: clamp(88px, 12vw, 160px); position: relative; }
.section--tint { background: var(--bg-elevated); }
.section__head { margin-bottom: clamp(48px, 6vw, 80px); max-width: 820px; }
.section__head--center { text-align: center; margin-inline: auto; }
.section__head--center .headline-lead { margin-inline: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }

.mood {
  position: relative; overflow: hidden; border-radius: var(--radius-l);
  aspect-ratio: 4 / 5; background: var(--bg-2);
}
.mood img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.72); transform: scale(1.02); transition: transform 1.4s var(--ease-out), filter 1s var(--ease); }
.mood::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(60,255,107,.18) 0%, transparent 42%, rgba(0,0,0,.55) 100%); pointer-events: none; }
.mood:hover img { transform: scale(1.06); filter: grayscale(.5) contrast(1.08) brightness(.8); }
.mood__badge {
  position: absolute; left: 20px; bottom: 20px; z-index: 1;
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgba(0,0,0,.55); color: var(--label);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.mood__badge::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); vertical-align: 1px; }

.checklist { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--label-2); }
.checklist li::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Leistungen --------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; background: var(--bg-2); border-radius: var(--radius-l);
  padding: 36px 32px 34px; overflow: hidden;
  transition: transform .5s var(--ease-out), background-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); background: #222224; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 28px;
  display: grid; place-items: center; background: var(--green-tint); color: var(--green);
}
.card__icon svg { width: 26px; height: 26px; }
.card p { color: var(--label-2); margin: 0; }

/* ---------- Mood-Banner -------------------------------------------------- */
.banner { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(120px, 18vw, 220px); }
.banner__media { position: absolute; inset: -12% 0; z-index: -1; will-change: transform; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.38) contrast(1.15); }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.25) 100%); }
.banner blockquote { margin: 0; max-width: 15em; }

/* ---------- Referenzen --------------------------------------------------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-l); aspect-ratio: 4 / 5; background: var(--bg-2);
}
.project__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.62); transition: transform 1.2s var(--ease-out), filter .8s var(--ease); }
.project::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgba(0,0,0,.92) 100%); }
.project__body { position: absolute; inset: auto 0 0; padding: 28px; }
.project__tag { font-size: 13px; font-weight: 600; color: var(--green); }
.project__title { margin: 6px 0 0; }
.project__text {
  margin: 0; color: rgba(235,235,245,.82); font-size: 15px; line-height: 1.5;
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .5s var(--ease-out), opacity .4s var(--ease), margin .4s var(--ease);
}
.project__text > span { overflow: hidden; }
.project__toggle { position: absolute; inset: 0; z-index: 2; width: 100%; background: none; border: 0; cursor: pointer; border-radius: inherit; }
.project:hover .project__img, .project.is-open .project__img { transform: scale(1.05); filter: grayscale(.25) brightness(.42); }
.project:hover .project__text, .project.is-open .project__text { grid-template-rows: 1fr; opacity: 1; margin-top: 10px; }

.clients { margin-top: clamp(64px, 8vw, 96px); }
.clients__label { text-align: center; font-size: 14px; color: var(--label-3); margin-bottom: 24px; }
.clients__grid {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}
.client { flex: 0 0 calc((100% - 4 * 14px) / 5); }
.client__link {
  position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: var(--radius-m); background: #fff;
  transition: transform .4s var(--ease-out), box-shadow .3s var(--ease);
}
a.client__link:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 2px var(--green); }
a.client__link:focus-visible { outline-offset: 4px; }
.client img { position: absolute; top: 14%; left: 12%; width: 76%; height: 72%; object-fit: contain; }

/* ---------- Ablauf ------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--green), rgba(60,255,107,.1)); }
.step { text-align: center; position: relative; counter-increment: step; }
.step__num {
  width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--bg); border: 2px solid var(--green); color: var(--green);
  font: 700 20px/1 var(--font-display);
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.step__num::before { content: counter(step); }
.step:hover .step__num { background: var(--green); color: var(--on-green); box-shadow: 0 0 0 8px var(--green-tint); }
.step p { color: var(--label-2); font-size: 15px; margin: 0; }

/* ---------- Über uns ----------------------------------------------------- */
.about-text p { color: var(--label-2); }
.about-text p:first-of-type { color: var(--label); font-size: 19px; }
.facts__title { margin: 36px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.checklist.facts { margin: 16px 0 0; }
.checklist.facts li { color: var(--label); }
.mood img.mood__portrait { object-position: 50% 30%; }

/* ---------- News --------------------------------------------------------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { display: flex; flex-direction: column; background: var(--bg-2); border-radius: var(--radius-l); overflow: hidden; transition: transform .5s var(--ease-out); }
.post:hover { transform: translateY(-4px); }
.post__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.post__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.8); transition: filter .6s var(--ease), transform 1s var(--ease-out); }
.post:hover .post__media img { filter: grayscale(0) brightness(.9); transform: scale(1.04); }
.post__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post__meta { margin: 0; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.post__date { color: var(--green); }
.post__place { color: var(--label-3); font-weight: 500; }
.post__title { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -.015em; }
.post__text { margin: 0; color: var(--label-2); font-size: 15px; line-height: 1.5; }
.post[hidden] { display: none; }
.more { margin-top: 44px; text-align: center; }
.more[hidden], [data-more-list] > [hidden] { display: none !important; }

/* ---------- Kontakt ------------------------------------------------------ */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__list { list-style: none; margin: 0; padding: 0; background: var(--bg-2); border-radius: var(--radius-l); overflow: hidden; }
.contact__item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 22px; }
.contact__item + .contact__item { border-top: 1px solid var(--separator); }
.contact__icon { flex: 0 0 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--green-tint); color: var(--green); }
.contact__icon svg { width: 19px; height: 19px; }
.contact__label { display: block; font-size: 13px; color: var(--label-3); margin-bottom: 2px; }
.contact__value { margin: 0; line-height: 1.45; }
.contact__value a { color: var(--label); }
.contact__value a:hover { color: var(--green); }
.contact__hours { margin-top: 18px; font-size: 15px; color: var(--label-2); padding-left: 4px; }

.form { background: var(--bg-2); border-radius: var(--radius-l); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; }
.field label .req { color: var(--green); }
.field input, .field select, .field textarea {
  width: 100%; min-height: var(--tap);
  padding: 11px 14px; border-radius: var(--radius-s);
  background: var(--bg-3); color: var(--label);
  border: 1px solid transparent;
  font: 400 17px/1.4 var(--font-text); letter-spacing: -.01em;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ebebf5' stroke-opacity='.6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--label-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field__error { font-size: 13px; color: var(--red); min-height: 0; }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 13px; color: var(--label-3); margin: 0; }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.form__status { margin: 0; font-size: 15px; font-weight: 500; }
.form__status.is-ok { color: var(--green); }
.form__status.is-error { color: var(--red); }

/* ---------- Footer ------------------------------------------------------- */
.footer { border-top: 1px solid var(--separator); padding-block: 48px 40px; font-size: 13px; color: var(--label-3); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--separator); }
.footer__logo img { height: 28px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.footer__nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 10px; color: var(--label-2); font-size: 13px; }
.footer__nav a:hover { color: var(--label); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 20px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer__legal a { color: var(--label-2); display: inline-flex; align-items: center; min-height: var(--tap); }
.footer__legal a:hover { color: var(--label); }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: var(--tap); height: var(--tap); border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(44,44,46,.82); color: var(--label);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease-out), background-color .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--green); color: var(--on-green); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Rechtstexte -------------------------------------------------- */
.legal { padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(80px, 10vw, 120px); }
.legal__inner { max-width: 760px; }
.legal h1 { margin-bottom: 12px; }
.legal__meta { color: var(--label-3); font-size: 15px; margin-bottom: 48px; }
.legal h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.02em; margin: 52px 0 14px; padding-top: 8px; }
.legal h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; margin: 30px 0 10px; font-family: var(--font-text); font-weight: 600; }
.legal p, .legal li { color: var(--label-2); }
.legal strong { color: var(--label); font-weight: 600; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
.legal a { overflow-wrap: anywhere; }
.legal address { font-style: normal; color: var(--label); line-height: 1.6; margin-bottom: 1em; }
.legal__box { background: var(--bg-2); border-radius: var(--radius-m); padding: 22px 24px; margin: 20px 0; }
.legal__box p:last-child { margin-bottom: 0; }
.legal__toc { background: var(--bg-2); border-radius: var(--radius-m); padding: 20px 24px; margin-bottom: 8px; }
.legal__toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.legal__toc li { margin-bottom: .3em; break-inside: avoid; }
.legal__toc a { color: var(--label-2); }
.legal__toc a:hover { color: var(--green); }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); margin-bottom: 16px; font-weight: 500; }
.back-link::before { content: "‹"; font-size: 1.3em; line-height: 1; transform: translateY(-1px); }

/* Fehlerseite */
.error-page { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--gutter); }
.error-page__code { font: 800 clamp(96px, 20vw, 200px)/1 var(--font-display); letter-spacing: -.05em; color: var(--green); margin-bottom: 12px; }
.error-page__logo { height: 64px; width: auto; margin: 0 auto 36px; }

/* ---------- Scroll-Einblendungen (nur mit JavaScript) -------------------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1068px) {
  .cards, .projects, .news { grid-template-columns: repeat(2, 1fr); }
  .client { flex-basis: calc((100% - 2 * 14px) / 3); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .pillnav__link { padding: 0 11px; font-size: 13px; }
}

@media (max-width: 900px) {
  :root { --header-h: 56px; }
  .header__inner { grid-template-columns: 1fr auto; }
  .pillnav { display: none; }
  .dock { display: flex; }
  .to-top { display: none; }
  .media-toggle { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .hero { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .split, .contact { grid-template-columns: 1fr; }
  .split .mood { aspect-ratio: 16 / 11; }
  .split--media-first .mood { order: -1; }
  .split .mood:has(.mood__portrait) { aspect-ratio: 1 / 1; max-width: 460px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--separator); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header__logo img { height: 30px; }
  .cards, .projects, .news { grid-template-columns: 1fr; }
  .card { padding: 30px 26px; }
  .project { aspect-ratio: 4 / 3.4; }
  .client { flex-basis: calc((100% - 14px) / 2); }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center; text-align: left; }
  .step__num { margin: 0; }
  .step h3 { margin-bottom: 2px; }
  .form__row { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .legal__toc ol { columns: 1; }
  .footer__top, .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__nav { margin-left: -10px; }
}

/* ---------- Barrierefreiheit -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (prefers-contrast: more) {
  :root { --label-2: rgba(235,235,245,.85); --label-3: rgba(235,235,245,.7); --separator: rgba(140,140,150,.9); }
}

@media (forced-colors: active) {
  .btn, .card, .post, .form, .contact__list { border: 1px solid CanvasText; }
}

@media print {
  .header, .hero__media, .media-toggle, .to-top, .dock, .sheet, .form, .banner { display: none !important; }
  body { background: #fff; color: #000; }
  .legal p, .legal li { color: #000; }
}

/* Dezente Links in Fließtexten (News, Referenzen) */
.post__text a, .project__text a {
  color: inherit; text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: rgba(235, 235, 245, .4); text-underline-offset: 3px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.post__text a:hover, .project__text a:hover { color: var(--label); text-decoration-color: var(--green); }
/* Links im Referenztext liegen über der Klickfläche der Karte */
.project__text a { position: relative; z-index: 3; }

/* Video-Referenz in Farbe zeigen, damit man etwas erkennt */
.project .project__video, .project:hover .project__video, .project.is-open .project__video { filter: none; }
.project:hover .project__video, .project.is-open .project__video { transform: scale(1.03); }
