/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --paper: #14171a;
  --paper-alt: #1a1e1f;
  --surface: #202425;
  --ink: #f2f4f1;
  --mist: #9aa39c;
  --green: #b98f3f;
  --green-deep: #d9ae5c;
  --green-soft: rgba(217, 174, 92, 0.14);
  --gold: #d9ae5c;
  --gold-deep: #b98f3f;
  --sky: #6fa8d1;
  --border: rgba(255, 255, 255, 0.12);

  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 1px 1px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.45);
  --container: 1120px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@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;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Sperrt den Hintergrund-Scroll, solange das mobile Menü offen ist.
   position:fixed statt nur overflow:hidden, weil iOS Safari sonst
   trotzdem per Touch weiterscrollen lässt (siehe main.js für den
   scrollY-Ausgleich beim Öffnen/Schließen). */
body.nav-open {
  position: fixed;
  inset-inline: 0;
  overflow: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--green-deep);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.section { padding: 96px 0; }
.section--alt { background: var(--paper-alt); }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
}

.section-header { max-width: 640px; margin-bottom: 56px; }
@media (max-width: 640px) {
  .section-header { margin-bottom: 36px; }
}
.section-title {
  margin-top: 12px;
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  line-height: 1.15;
}
.section-lead {
  margin-top: 16px;
  color: var(--mist);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--green);
  color: #fff;
}
.btn--primary:hover { background: var(--green-deep); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green-deep); }

.btn--nav {
  padding: 10px 20px;
  font-size: 1.05rem;
  background: var(--gold);
  color: var(--paper);
}
.btn--nav:hover { background: var(--gold-deep); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  background: rgba(20, 23, 26, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.nav.nav--scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav__logo {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--gold);
}
.nav__logo-dot { color: var(--ink); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  align-items: center;
  justify-content: center;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 22px; }
.nav__toggle span:nth-child(3) { top: 28px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__menu ul {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  position: relative;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__link:hover { color: var(--gold); }
.nav__link:hover::after { transform: scaleX(1); }

@media (max-width: 1024px) {
  /* Feste Kopfzeile: auf dem Handy voll deckend statt der 80%-Transparenz
     + Blur. backdrop-filter muss hier komplett weg, nicht nur die
     Deckkraft hoch: in iOS Safari macht backdrop-filter auf .nav dieses
     Element zum "containing block" für seine position:fixed-Kinder -
     dadurch wurde das mobile Menü (.nav__menu, selbst position:fixed) auf
     die 76px-Kopfzeile statt auf den vollen Bildschirm eingeschränkt und
     Seiteninhalt (z.B. Design-Stile) schien durchs Menü durch. */
  .nav { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__toggle { display: flex; }

  /* Wieder volle Bildschirmhöhe, aber leicht transparent + Blur statt
     komplett deckend. Das ist hier sicher (anders als bei .nav oben):
     backdrop-filter erzeugt einen "containing block" nur für die
     position:fixed-KINDER des Elements, nicht für sich selbst - und
     .nav__menu hat keine eigenen fixed-positionierten Kinder. */
  .nav__menu {
    position: fixed;
    top: 76px;
    inset-inline: 0;
    bottom: 0;
    background: rgba(20, 23, 26, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 32px 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .nav__link { font-size: 1.5rem; color: var(--ink); }
  .nav__menu .btn--nav { margin-top: 12px; }
}

/* ============================================================
   CINEMATIC HERO — Text löst sich auf, eine Premium-Karte fährt
   hoch und öffnet sich zur Bühne für ein Handy-Mockup samt
   Badges, zieht sich danach zur Anfrage-CTA zurück.

   Grundzustand (kein JS / reduced-motion): alles normal sichtbar
   im Dokumentfluss, statische Karte - niemals leer/kaputt. Erst
   wenn cine-hero.js erfolgreich durchläuft, schaltet die Klasse
   `.cine-hero--active` auf die gepinnte Scroll-Sequenz um; die
   Ausgangs-/Versteckzustände dafür stehen ausschließlich in
   diesem `--active`-Scope, nie in der Basis.
   ============================================================ */
.cine-hero {
  position: relative;
  background: var(--paper);
  --cine-1: #24292b;
  --cine-2: #090a0a;
  --cine-accent: #d9ae5c;
}

.cine-hero__stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 140px 24px 80px;
  overflow: hidden;
}

.cine-hero__grain,
.cine-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cine-hero__grain {
  z-index: 1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
}
.cine-hero__grid {
  z-index: 0;
  background-size: 60px 60px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.cine-text-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  will-change: opacity, transform;
}
.cine-line {
  margin: 0;
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cine-line--accent {
  /* padding-bottom + kompensierender negativer margin-bottom: der
     Gradient für background-clip:text wird sonst exakt auf die
     Zeilenbox zugeschnitten und lässt Unterlängen (g) am unteren
     Rand ungefärbt/transparent stehen - sieht wie abgeschnitten aus.
     Der Puffer gibt dem Gradient genug Raum, ohne den Zeilenabstand
     zu verändern. */
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
  background: linear-gradient(180deg, var(--ink) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (max-width: 640px) {
  .cine-text-wrapper {
    min-height: calc(100vh - 148px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .cine-line { font-size: clamp(2.6rem, 2rem + 6vw, 3.6rem); }
}

.cine-cta-wrapper {
  display: none;
  position: relative;
  z-index: 6;
  text-align: center;
  padding: 24px;
}
.cine-cta-heading {
  margin: 0 auto;
  max-width: 560px;
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
}
.cine-cta-text {
  margin: 16px auto 0;
  max-width: 480px;
  color: var(--mist);
  font-size: 1.05rem;
}
.cine-cta-actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn--ghost-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn--ghost-dark:hover { border-color: var(--green); color: var(--green-deep); }

.cine-card-stage {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cine-card {
  position: relative;
  width: min(1100px, 92vw);
  min-height: 560px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--cine-1) 0%, var(--cine-2) 100%);
  box-shadow:
    0 40px 100px -20px rgba(8, 17, 9, 0.45),
    0 20px 40px -20px rgba(8, 17, 9, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  will-change: transform, width, height, border-radius;
}

.cine-card__sheen {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  mix-blend-mode: screen;
}

.cine-card__grid {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 40px;
}
@media (min-width: 1024px) {
  .cine-card__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    align-items: center;
    gap: 32px;
    padding: 32px 64px;
  }
  .cine-card__brand { order: 3; justify-self: end; }
  .cine-mockup { order: 2; }
  .cine-card__text { order: 1; }
}

.cine-card__brand-kicker {
  margin: 0 0 6px;
  text-align: center;
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #f3e2bb 0%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@media (min-width: 1024px) {
  .cine-card__brand-kicker { text-align: right; }
}

.cine-card__brand h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(2.4rem, 1.9rem + 4.5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #f3e2bb 0%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 10px 24px rgba(217, 174, 92, 0.25));
}
@media (min-width: 1024px) {
  .cine-card__brand h2 { text-align: right; }
}

.cine-card__text { color: #fff; text-align: center; }
@media (min-width: 1024px) {
  .cine-card__text { text-align: left; }
}
.cine-card__text h3 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 1.15rem + 1vw, 1.9rem);
  font-weight: 700;
}
.cine-card__text p {
  margin: 0 auto;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.98rem;
  line-height: 1.6;
}
@media (min-width: 1024px) {
  .cine-card__text p { margin: 0; }
}
@media (max-width: 1023px) {
  .cine-card__text p { color: rgba(255, 255, 255, 0.88); }
}

.cine-mockup {
  position: relative;
  width: 100%;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.cine-laptop {
  position: relative;
  width: min(440px, 86%);
  transform-style: preserve-3d;
}
.cine-laptop__lid { aspect-ratio: 16 / 10.5; }
.cine-laptop__bezel {
  position: relative;
  height: 100%;
  background: #0d0f0d;
  border-radius: 14px 14px 4px 4px;
  padding: 12px 12px 7px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -15px rgba(0, 0, 0, 0.6);
}
.cine-laptop__camera {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3a3d3d;
}
.cine-laptop__screen {
  height: 100%;
  width: 100%;
  background: #ffffff;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cine-laptop__chrome {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 9%;
  min-height: 16px;
  padding: 0 3%;
  background: #f4f6f1;
  border-bottom: 1px solid #e4e7e1;
}
.cine-laptop__chrome span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e4e7e1;
}
.cine-laptop__address {
  flex: 1;
  margin-left: 6px;
  max-width: 45%;
  height: 60%;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e4e7e1;
  font-size: 0.5rem;
  color: #5b625a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
}
.cine-laptop__content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6%;
  padding: 8% 9%;
}
.cine-laptop__mouse {
  position: absolute;
  left: 33%;
  top: 66%;
  width: 16px;
  height: 16px;
  z-index: 5;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
  pointer-events: none;
}
.cine-laptop__nav { flex: none; display: flex; align-items: center; gap: 6px; }
.cine-laptop__logo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cine-accent); }
.cine-laptop__nav-item { height: 3px; width: 10%; border-radius: 999px; background: #e9ebe6; margin-left: 14px; }
.cine-laptop__nav-line { height: 3px; width: 16%; border-radius: 999px; background: #e4e7e1; margin-left: auto; }
.cine-laptop__herotext { flex: none; display: flex; flex-direction: column; gap: 8px; }
.cine-laptop__tag { display: flex; align-items: center; gap: 5px; margin-bottom: 2px; }
.cine-laptop__tag-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cine-accent); }
.cine-laptop__tag-line { height: 4px; width: 22%; border-radius: 999px; background: var(--cine-accent); opacity: 0.35; }
.cine-laptop__line { display: block; height: 6px; border-radius: 999px; background: #e4e7e1; width: 42%; transform-origin: left center; }
.cine-laptop__line--lg { height: 9px; width: 65%; background: #191b18; opacity: 0.85; }
.cine-laptop__line-row { display: flex; align-items: center; gap: 3px; }
.cine-laptop__cursor { width: 2px; height: 9px; background: var(--cine-accent); opacity: 0; }
.cine-laptop__btn-row { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.cine-laptop__btn { height: 11px; width: 26%; border-radius: 999px; background: var(--cine-accent); transform-origin: left center; }
.cine-laptop__btn-ghost { height: 11px; width: 18%; border-radius: 999px; border: 1px solid #dcdfd9; }
.cine-laptop__grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4%; align-content: end; }
.cine-laptop__card {
  aspect-ratio: 3 / 2;
  border-radius: 4px;
  background: #f4f6f1;
  border: 1px solid #e4e7e1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8%;
  padding: 10%;
}
.cine-laptop__card-icon { width: 16%; aspect-ratio: 1; border-radius: 3px; background: var(--cine-accent); opacity: 0.8; }
.cine-laptop__card-line { display: block; height: 8%; min-height: 2px; border-radius: 999px; width: 80%; background: #dfe2db; }
.cine-laptop__card-line--sm { width: 50%; }
.cine-laptop__footer { flex: none; display: flex; align-items: center; gap: 6px; padding-top: 4%; border-top: 1px solid #eef0eb; }
.cine-laptop__footer-dot { width: 4px; height: 4px; border-radius: 50%; background: #dcdfd9; }
.cine-laptop__footer-line { height: 3px; width: 14%; border-radius: 999px; background: #e4e7e1; }
.cine-laptop__footer-line--sm { width: 8%; margin-left: auto; }

.cine-laptop__base {
  position: relative;
  width: 112%;
  margin-left: -6%;
  height: 10px;
  background: #26282a;
  clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%);
}
.cine-laptop__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14%;
  height: 3px;
  background: #0d0f0d;
  border-radius: 0 0 3px 3px;
}

.cine-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  color: #fff;
  z-index: 4;
  /* Schwebt sanft im Raum - nutzt die eigenständige translate-Eigenschaft,
     damit es nicht mit GSAPs transform-Tweens (Einflug/Ausflug) kollidiert. */
  animation: cine-badge-float 5s ease-in-out infinite;
}
@media (max-width: 1023px) {
  /* Auf dem Handy fehlt oft der Kontrast-Hintergrund hinter der Glasoptik -
     hier einen fast deckenden dunklen Ton statt der 6%-Transparenz. */
  .cine-badge {
    background: rgba(15, 17, 18, 0.92);
    border-color: rgba(255, 255, 255, 0.2);
  }
}
.cine-badge--1 { top: 4%; left: -8%; animation-delay: 0s; }
.cine-badge--3 { top: 4%; right: -8%; animation-delay: 1.1s; }
.cine-badge--4 { bottom: -8%; left: -10%; animation-delay: 2.2s; }
.cine-badge--2 { bottom: -8%; right: -12%; animation-delay: 3.3s; }
.cine-badge--5 { bottom: -30%; left: 50%; transform: translateX(-50%); animation-delay: 4.1s; }

@keyframes cine-badge-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

/* Im statischen Grundzustand ist die Karte schmaler (kein 100vw-Ausbau) -
   nur Platz für 2 Badges nebeneinander. */
.cine-hero:not(.cine-hero--active) .cine-badge--3,
.cine-hero:not(.cine-hero--active) .cine-badge--4,
.cine-hero:not(.cine-hero--active) .cine-badge--5 {
  display: none;
}
.cine-badge__icon { font-size: 1.1rem; }
.cine-badge__title { margin: 0; font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.cine-badge__sub { margin: 2px 0 0; font-size: 0.72rem; color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
@media (max-width: 1023px) {
  .cine-badge__sub { color: rgba(255, 255, 255, 0.8); }
}

@media (max-width: 1023px) {
  .cine-badge--1 { top: 0; left: 2%; }
  .cine-badge--2 { bottom: -6%; right: 4%; }
}

/* Schmalste aktive Desktop-Breite: Karte hat weniger Platz, Badges
   etwas kompakter, damit sich die 5 Badges nicht überlappen. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .cine-badge { padding: 8px 10px; gap: 6px; }
  .cine-badge__icon { font-size: 0.85rem; }
  .cine-badge__title { font-size: 0.68rem; }
  .cine-badge__sub { font-size: 0.6rem; }
  .cine-badge--1 { left: -14%; }
  .cine-badge--3 { right: -14%; }
  .cine-badge--4 { left: -16%; }
  .cine-badge--2 { right: -18%; }
}

/* --- Aktiver Zustand: gepinnte Scroll-Sequenz --- */
.cine-hero--active {
  height: 500vh;
}
.cine-hero--active .cine-hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
  padding: 0;
}
.cine-hero--active .cine-text-wrapper {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}
.cine-hero--active .cine-cta-wrapper {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}
.cine-hero--active .cine-card-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.cine-hero--active .cine-card {
  width: 92vw;
  height: 92vh;
  min-height: 0;
  transform: translateY(110vh);
}
.cine-hero--active .cine-card__brand,
.cine-hero--active .cine-mockup,
.cine-hero--active .cine-card__text {
  opacity: 0;
}
.cine-hero--active .cine-badge {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .cine-hero__grain { display: none; }
}

@media (max-width: 640px) {
  .cine-hero__stage { padding-top: 116px; gap: 32px; }
  .cine-card { min-height: 600px; }
  .cine-mockup { height: 380px; }
}

/* ============================================================
   DESIGN-STILE — Text links, fixierte hover-scrollbare Vorschau
   rechts, Hintergrund blendet zwischen 3 Farbzuständen über.

   Grundzustand: drei normale, gestapelte Text/Vorschau-Paare im
   Dokumentfluss. Erst `.dstyles--active` schaltet auf die
   gepinnte Crossfade-Bühne um (siehe dstyles.js).
   ============================================================ */
.dstyles {
  position: relative;
  background: var(--paper);
}

.dstyles__stage {
  position: relative;
  padding: 96px 0;
}
@media (max-width: 640px) {
  .dstyles__stage { padding: 56px 0; }
}

.dstyles__bg { display: none; }

/* Grundzustand (gestapelter Fallback): Panel und zugehörige Vorschau
   liegen als direkte Geschwister im Dokumentfluss - auf schmalen
   Bildschirmen also automatisch Stichpunkte 1, Vorschau 1, Stichpunkte
   2, Vorschau 2, ... statt aller Texte gefolgt von allen Vorschauen. */
.dstyles__grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (max-width: 640px) {
  .dstyles__grid { gap: 28px; }
}
@media (min-width: 1024px) {
  .dstyles__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
  }
}

/* Grundzustand (gestapelter Fallback): alle Panels sitzen auf dem
   normalen dunklen Seitenhintergrund -> einheitlich heller Text. */
.dstyles__panel {
  --panel-ink: var(--ink);
  --panel-mist: var(--mist);
  --panel-eyebrow: var(--green-deep);
  --panel-dot: var(--green-deep);
}

/* Nur in der aktiven Crossfade-Bühne hat jedes Panel sein eigenes
   Textschema, passend zur Hintergrundfarbe seines Kapitels
   (dunkel/hell/bunt) - siehe @media(min-width:1024px) weiter unten. */

.dstyles__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--panel-eyebrow);
}
.dstyles__panel h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem);
  color: var(--panel-ink);
}
.dstyles__panel ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dstyles__panel li {
  position: relative;
  padding-left: 22px;
  color: var(--panel-mist);
  font-size: 0.95rem;
  line-height: 1.5;
}
.dstyles__panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--panel-dot);
}

.dstyles__dots { display: none; }

/* --- Mockup-Rahmen (gemeinsam) --- */
.dstyles__mockup {
  position: relative;
  height: 440px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.dstyles__chrome {
  flex: none;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  background: #1a1d1c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dstyles__chrome span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.dstyles__chrome--light { background: #f4f6f1; border-bottom-color: #e4e7e1; }
.dstyles__chrome--light span { background: #e4e7e1; }
.dstyles__address {
  margin-left: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
}
@media (max-width: 1023px) {
  .dstyles__address {
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
  }
}
.dstyles__address--light { background: #ffffff; border: 1px solid #e4e7e1; color: #5b625a; }

.dstyles__open {
  margin-left: auto;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s ease, background 0.2s ease;
}
.dstyles__open:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.dstyles__chrome--light .dstyles__open { color: #8a8f86; }
.dstyles__chrome--light .dstyles__open:hover { color: #191b18; background: rgba(0, 0, 0, 0.06); }

/* --- Echte Vorschau-Websites: gehostet unter vorschau/*, hier per
   iframe eingebettet (siehe index.html + vorschau/README). --- */
.dstyles__frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
}

@media (max-width: 640px) {
  .dstyles__mockup { height: 300px; }
}

/* --- Aktiver Zustand: gepinnte Crossfade-Bühne (nur Desktop-Layout,
   auf schmalen Viewports bleibt die gestapelte Grundfassung) --- */
@media (min-width: 1024px) {
  .dstyles--active { height: 320vh; }
  .dstyles--active .dstyles__panel--1 { --panel-ink: #f2f4f1; --panel-mist: #9aa39c; --panel-eyebrow: #d9ae5c; --panel-dot: #d9ae5c; }
  .dstyles--active .dstyles__panel--2 { --panel-ink: #14171a; --panel-mist: #5b625a; --panel-eyebrow: #b98f3f; --panel-dot: #b98f3f; }
  .dstyles--active .dstyles__panel--3 { --panel-ink: #241c3d; --panel-mist: #4f426e; --panel-eyebrow: #ffffff; --panel-dot: #241c3d; }
  .dstyles--active .dstyles__stage {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  .dstyles--active .dstyles__bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #0d1210;
  }
  /* Alle Panels teilen sich Spalte 1/Zeile 1, alle Mockups Spalte
     2/Zeile 1 - die explizite Zeilenhöhe ist nötig, weil absolut
     positionierte Grid-Items selbst nichts zur Zeilenhöhe beitragen. */
  .dstyles--active .dstyles__grid {
    position: relative;
    z-index: 1;
    width: 100%;
    grid-template-rows: 440px;
  }
  .dstyles--active .dstyles__panel {
    grid-column: 1;
    grid-row: 1;
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
  }
  .dstyles--active .dstyles__panel--1 { opacity: 1; visibility: visible; }
  .dstyles--active .dstyles__dots {
    display: flex;
    gap: 8px;
    grid-column: 1;
    grid-row: 1;
    position: absolute;
    top: 340px;
    left: 0;
  }
  .dstyles--active .dstyles__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.4);
    border: 1px solid rgba(128, 128, 128, 0.6);
    transition: background 0.3s ease;
  }
  .dstyles--active .dstyles__dot.is-active { background: var(--green-deep); border-color: var(--green-deep); }

  .dstyles--active .dstyles__mockup {
    grid-column: 2;
    grid-row: 1;
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
  }
  .dstyles--active .dstyles__mockup--1 { opacity: 1; visibility: visible; }
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.project-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}

.project-card__media {
  aspect-ratio: 3 / 2;
  background: var(--paper-alt);
  overflow: hidden;
}
.project-card__media img { width: 100%; height: 100%; object-fit: cover; }

.project-card__body { padding: 24px; }

.project-card__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.project-card__heading h3 { font-size: 1.2rem; }

.tag {
  flex: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-deep);
  background: var(--green-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.project-card__kind {
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sky);
}

.project-card__text {
  margin-top: 10px;
  color: var(--mist);
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-card__link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

/* ============================================================
   LEISTUNGEN — Grundleistung + optionale CMS-Erweiterung
   ============================================================ */
.leistung-layout {
  display: flex;
  align-items: stretch;
  gap: 28px;
}

@media (max-width: 900px) {
  .leistung-layout { flex-direction: column; align-items: center; }
}

.leistung-card {
  position: relative;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.leistung-card--core {
  flex: 1.15 1 0%;
  border-color: var(--gold);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(217, 174, 92, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.leistung-card--core:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(217, 174, 92, 0.25);
}

.leistung-card--addon {
  flex: 0.82 1 0%;
  border-style: dashed;
  background: transparent;
  transition:
    flex-grow 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.3s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    background 0.4s ease;
}
.leistung-card--addon:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.leistung-card--addon.is-expanded {
  flex-grow: 1.15;
  border-style: solid;
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(217, 174, 92, 0.15);
  animation: leistung-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes leistung-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

@media (max-width: 900px) {
  .leistung-card--core, .leistung-card--addon { flex: 0 0 auto; }
}

.leistung-card__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.leistung-card__badge {
  position: absolute;
  top: -13px;
  left: 36px;
  background: var(--paper-alt);
  color: var(--mist);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  transition: opacity 0.3s ease;
}
.leistung-card--addon.is-expanded .leistung-card__badge { opacity: 0; }

.leistung-card h3 { margin-top: 10px; font-size: 1.5rem; }
.leistung-card__tagline { margin-top: 8px; color: var(--green-deep); font-weight: 600; font-size: 0.95rem; }

.leistung-card__text { margin-top: 16px; color: var(--mist); font-size: 0.95rem; line-height: 1.65; }

.leistung-card__intro { margin-top: 24px; font-weight: 600; font-size: 0.92rem; }

.leistung-checklist { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.leistung-checklist li {
  position: relative;
  padding-left: 30px;
  font-size: 0.92rem;
  color: var(--ink);
}
.leistung-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-soft);
}
.leistung-checklist li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.leistung-card__note { margin-top: 20px; color: var(--mist); font-size: 0.85rem; font-style: italic; }

.leistung-card .btn {
  margin-top: 28px;
  max-height: 60px;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.4s ease, margin-top 0.4s ease, padding 0.4s ease;
}
.leistung-card--addon .btn { margin-top: auto; }

#leistungen.leistungen--expanded .leistung-card .btn {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.leistung-combined-cta {
  max-width: 360px;
  margin: 0 auto;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    max-height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s ease 0.1s,
    margin-top 0.45s ease;
}
#leistungen.leistungen--expanded .leistung-combined-cta {
  max-height: 80px;
  margin-top: 32px;
  opacity: 1;
  pointer-events: auto;
}

.leistung-connector {
  align-self: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--paper-alt);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, color 0.3s ease;
}
.leistung-connector:hover { border-color: var(--gold); color: var(--green-deep); }
.leistung-connector.is-active { transform: rotate(45deg); border-color: var(--gold); }

@media (max-width: 900px) {
  .leistung-card--core, .leistung-card--addon { max-width: 480px; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 48px;
}

.about__badge {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
}
.about__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Der globale Reset weiter oben (img { display:block }) ist Autoren-CSS
   und schlägt damit das UA-Stylesheet-Rule [hidden]{display:none} -
   ohne diese Regel würde das versteckte <img> trotz [hidden] sichtbar
   bleiben (leerer Alt-Text statt Foto). */
.about__photo[hidden] { display: none; }

.about__lead {
  margin-top: 16px;
  font-size: 1.15rem;
  line-height: 1.65;
}
.about__content > p + p { margin-top: 16px; color: var(--mist); }

.steps {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.steps__number { color: var(--gold); font-weight: 700; font-size: 0.9rem; }
.steps__item h3 { margin-top: 8px; font-size: 1.05rem; }
.steps__item p { margin-top: 8px; color: var(--mist); font-size: 0.92rem; line-height: 1.6; }

@media (max-width: 700px) {
  .about { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { max-width: 640px; }

.contact-form { margin-top: 40px; display: flex; flex-direction: column; gap: 22px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.9rem; font-weight: 600; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 120px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--mist);
  cursor: pointer;
}
.checkbox-label input { margin-top: 3px; accent-color: var(--green); }

.form-error { color: #ff8478; font-size: 0.9rem; }

.form-success {
  margin-top: 40px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--green-soft);
}
.form-success__title { font-size: 1.2rem; font-weight: 700; color: var(--green-deep); }
.form-success p + p { margin-top: 6px; color: var(--mist); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--paper-alt);
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.footer__logo { font-weight: 700; font-size: 1.1rem; }
.footer__brand p { margin-top: 8px; color: var(--mist); font-size: 0.9rem; }

.footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 0.9rem; }
.footer__contact a { color: var(--mist); transition: color 0.2s ease; }
.footer__contact a:hover { color: var(--ink); }
.footer__legal { display: flex; gap: 20px; }

.footer__copyright {
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 0 24px;
  font-size: 0.8rem;
  color: var(--mist);
}

@media (max-width: 600px) {
  .footer__inner { flex-direction: column; }
  .footer__contact { align-items: flex-start; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-hero { padding: 168px 0 40px; }
.legal-content { padding-bottom: 96px; }
.legal-content__inner { max-width: 720px; }
.legal-content h2 {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 1.15rem;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p,
.legal-content address {
  margin-bottom: 14px;
  font-style: normal;
  line-height: 1.7;
  color: var(--mist);
}
.legal-content a { color: var(--green-deep); text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color 0.2s ease; }
.legal-content a:hover { text-decoration-color: var(--green-deep); }
.legal-placeholder {
  display: inline-block;
  border: 1px dashed var(--green-deep);
  border-radius: var(--radius-sm);
  padding: 2px 10px;
  color: var(--green-deep);
  font-size: 0.9em;
}
