/* ═══════════════════════════════════════════════════════════════
   MELO STUDIOS — css/style.css
   Cinema Amber (#C8963E) on near-pure-black.
   Cormorant Garamond (editorial) + Inter (utility).
   Desktop-first. No responsive breakpoints yet.
════════════════════════════════════════════════════════════════ */


/* ─── DESIGN TOKENS ─────────────────────────────────────────── */

:root {
  /* ── Backgrounds ── */
  --c-void:       #0D0D0D;    /* total darkness — hero, void sections */
  --c-deep:       #0D0D0D;    /* alternating section bg */
  --c-surface:    #161616;    /* card base */
  --c-surface-hi: #1E1E1E;    /* card hover, input focus */
  --c-charcoal:   #242424;    /* raised surfaces */

  /* ── Borders ── */
  --c-border:     rgba(255, 255, 255, 0.07);
  --c-border-acc: rgba(200, 150, 62, 0.30);

  /* ── Text ── */
  --c-text:       #F0EAE0;    /* warm off-white — film stock, not clinical */
  --c-text-mid:   #82786C;    /* warm mid-grey */
  --c-text-dim:   #4A4440;    /* very muted */

  /* ── Accent: Cinema Amber ── */
  --c-accent:     #C8963E;
  --c-accent-lt:  #DDB060;
  --c-accent-dim: rgba(200, 150, 62, 0.10);
  --c-accent-glow:rgba(200, 150, 62, 0.20);

  /* ── Typography ── */
  --f-display:  'Cormorant Garamond', Georgia, serif;
  --f-body:     'Inter', system-ui, sans-serif;

  /* ── Motion ── */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);

  /* ── Layout ── */
  --nav-h:      76px;
  --max-w:      1320px;
  --pad-h:      clamp(2rem, 5vw, 4rem);
}


/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--c-void);
  color: var(--c-text);
  font-family: var(--f-body);
  font-weight: 300;
  /* clip statt hidden: verhindert horizontales Scrollen, ohne position:fixed
     (Navbar) auf Mobilgeräten zu brechen */
  overflow-x: clip;
  line-height: 1.6;
}

/* ── Film grain overlay — the analogue texture that elevates everything ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.032;
  mix-blend-mode: overlay;
}

img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }


/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY SYSTEM
════════════════════════════════════════════════════════════════ */

.t-eyebrow {
  font-family: var(--f-body);
  font-size: 0.6875rem;             /* 11px */
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-accent);
  display: block;
}

.t-display {
  font-family: var(--f-display);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.t-heading {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--c-text);
}

.t-body {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 0.9375rem;             /* 15px */
  line-height: 1.75;
  color: #B0A698;
}

/* Umbruch nur in Nicht-Desktop-Ansichten (siehe Media Query ≤1024px) */
.br-mobile { display: none; }


/* ═══════════════════════════════════════════════════════════════
   LAYOUT UTILITIES
════════════════════════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-h);
}

.section-pad {
  padding-block: 120px;
  position: relative;
  /* Ambient-Lichtpools: weiche, warme Licht-Schimmer geben dem Schwarz Tiefe.
     Ungerade Sektionen: Licht oben rechts + ein kühler Gegenpol unten links. */
  background-color: var(--c-void);
  background-image:
    radial-gradient(80% 70% at 88% 8%,  rgba(200, 150, 62, 0.085) 0%, transparent 60%),
    radial-gradient(70% 80% at 4% 96%,  rgba(120, 130, 160, 0.045) 0%, transparent 60%);
}

/* ── Sektions-Rhythmus: dezent abgestufte Hintergründe (A/B/A/B …) ──
   Gerade Sektionen sind leicht aufgehellt UND spiegeln die Lichtpools,
   damit beim Scrollen Tiefe & Bewegung entsteht statt flacher Flächen. */
.section-pad:nth-of-type(even) {
  background-color: #17171B;
  background-image:
    radial-gradient(80% 70% at 10% 6%,  rgba(200, 150, 62, 0.075) 0%, transparent 60%),
    radial-gradient(75% 80% at 94% 98%, rgba(120, 130, 160, 0.05)  0%, transparent 60%);
}

/* Feine, zu den Rändern auslaufende Trennlinie oben an jeder Sektion –
   wie der Steg zwischen zwei Filmkadern. */
.section-pad::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 2 * var(--pad-h), var(--max-w));
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(200, 150, 62, 0.45) 50%,
    transparent 100%
  );
  pointer-events: none;
}

/* Section header: eyebrow + h2 block */
.section-header {
  margin-bottom: 72px;
  position: relative;
  isolation: isolate;          /* eigener Stacking-Context für den Spotlight darunter */
}

/* Sanfter Amber-Spotlight hinter der Überschrift – Bühnenlicht im Dunkeln.
   Bewusst sehr zurückhaltend, damit es professionell bleibt. */
.section-header::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 50%;
  width: 560px;
  height: 360px;
  max-width: 80vw;
  transform: translateY(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(200, 150, 62, 0.11) 0%,
    rgba(200, 150, 62, 0.04) 40%,
    transparent 72%
  );
  pointer-events: none;
  z-index: -1;
}

.section-header .t-eyebrow {
  margin-bottom: 20px;
}

.section-header h2 {
  font-family: var(--f-display);
  font-size: 3.75rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--c-text);
  max-width: none;
  white-space: nowrap;
}


/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity  0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.28s; }
.reveal-delay-4 { transition-delay: 0.38s; }

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


/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════════════════ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  /* transparent at top of page */
  transition:
    background 0.6s var(--ease-out),
    border-color 0.6s;
}

#navbar.scrolled {
  background: rgba(8, 8, 8, 0.90);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--c-border);
}

#navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-img {
  height: 48px;
  width: auto;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--f-body);
  font-size: 0.75rem;               /* 12px */
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-mid);
  transition: color 0.25s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-accent);
  transition: width 0.35s var(--ease-out);
}

.nav-links a:hover {
  color: var(--c-text);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Kontakt CTA in nav */
.nav-links a.nav-cta {
  color: var(--c-text);
  border: 1px solid var(--c-border);
  padding: 0.5rem 1.25rem;
  padding-bottom: 0.5rem;           /* override the ::after offset */
  border-radius: 1px;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.nav-links a.nav-cta::after { display: none; }

.nav-links a.nav-cta:hover {
  border-color: var(--c-accent);
  background: var(--c-accent-dim);
  color: var(--c-accent-lt);
}

/* Mobile toggle — hidden on desktop until responsive phase */
.nav-toggle {
  display: none;
}


/* ═══════════════════════════════════════════════════════════════
   HERO
   Full-viewport, video fills, layered overlays for depth.
════════════════════════════════════════════════════════════════ */

#hero {
  position: relative;
  height: 100dvh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* ── Background video ── */
#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
  opacity: 0.40;
  /* Slight warmth tint on the video itself */
  filter: contrast(1.05) brightness(0.9);
}

/* ── Primary overlay: dark vignette + cinematic framing ── */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* Strong bottom fade to ground the text */
    linear-gradient(
      to bottom,
      rgba(8, 8, 8, 0.50)  0%,
      rgba(8, 8, 8, 0.08) 30%,
      rgba(8, 8, 8, 0.08) 60%,
      rgba(8, 8, 8, 0.88) 100%
    ),
    /* Side vignette */
    linear-gradient(
      to right,
      rgba(8, 8, 8, 0.40) 0%,
      transparent         30%,
      transparent         70%,
      rgba(8, 8, 8, 0.40) 100%
    );
}

/* ── Cinematic letterbox bars (top/bottom) + feines Gitter-Overlay ── */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    /* Ganz feines Gitter (dünne Linien) über dem Video */
    repeating-linear-gradient( 45deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 6px),
    /* Letterbox-Balken oben/unten */
    linear-gradient(to bottom, var(--c-void) 0%, transparent 4.5%),
    linear-gradient(to top,    var(--c-void) 0%, transparent 6%);
  pointer-events: none;
}

/* ── Hero text content ── */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding-inline: 2rem;
  padding-bottom: 5rem;
  max-width: 900px;
}

/* Eyebrow row with flanking lines */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-accent));
}

.hero-eyebrow::after {
  background: linear-gradient(to left, transparent, var(--c-accent));
}

/* Main title — the cinematic statement */
.hero-title {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-text);
  max-width: none;
  white-space: nowrap;
  text-align: center;
}

.hero-title em {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: var(--c-accent-lt);
  /* Slightly larger for emphasis */
  font-size: 1.06em;
}

/* Subtitle / tagline */
.hero-sub {
  font-family: var(--f-body);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(220, 210, 195, 0.85);
  max-width: 50ch;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}

/* CTA row */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0;
}

/* Trust-Zeile direkt unter den Hero-CTAs */
.hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.75rem;
  font-family: var(--f-body);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(220, 210, 195, 0.7);
}

.hero-trust-stars {
  color: var(--c-accent);
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.hero-trust-sep {
  color: var(--c-text-dim);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}

.hero-scroll span {
  font-family: var(--f-body);
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--c-accent), transparent);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%,  100% { opacity: 0.25; transform: scaleY(1)    translateY(0); }
  50%        { opacity: 1;    transform: scaleY(1.12) translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-line { animation: none; opacity: 0.5; }
}


/* ═══════════════════════════════════════════════════════════════
   TICKER STRIP
   CSS-only marquee between hero and services.
   The signature element: cinema credits energy.
════════════════════════════════════════════════════════════════ */

.ticker {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-top:    1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-block: 14px;
  /* Amber edge fades — give illusion of tape passing through */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  /* animate exactly half (the content is duplicated 2×) */
  animation: ticker-scroll 36s linear infinite;
  width: max-content;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

.ticker-track span {
  font-family: var(--f-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6B6460;
  padding-inline: 2.5rem;
  transition: color 0.3s;
}

.ticker-track span:hover {
  color: var(--c-accent);
}

.ticker-dot {
  color: var(--c-accent) !important;
  padding-inline: 0 !important;
  font-size: 1rem !important;
  letter-spacing: 0 !important;
  opacity: 0.7;
}


/* ═══════════════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════════════════ */

/* Primary: amber fill, black text */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--c-accent);
  color: #0A0A0A;
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  border: none;
  border-radius: 1px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.3s,
    transform  0.35s var(--ease-out),
    box-shadow 0.35s;
}

.btn-primary svg {
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
}

.btn-primary:hover {
  background: var(--c-accent-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200, 150, 62, 0.22);
}

.btn-primary:hover svg {
  transform: translateX(5px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Secondary: ghost with amber border */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: transparent;
  color: rgba(220, 210, 195, 0.85);
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1px solid var(--c-border);
  border-radius: 1px;
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color 0.3s,
    color        0.3s,
    transform    0.35s var(--ease-out);
}

.btn-secondary:hover {
  border-color: var(--c-accent);
  color: var(--c-accent-lt);
  transform: translateY(-2px);
}


/* ═══════════════════════════════════════════════════════════════
   SECTION: LEISTUNGEN (Services)
════════════════════════════════════════════════════════════════ */

#leistungen {
  background: var(--c-deep);
  position: relative;
}

/* Top amber rule */
#leistungen::before,
#bewertungen::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--c-accent) 50%, transparent 100%);
  opacity: 0.5;
}

#bewertungen {
  position: relative;
  background: #ffffff;
  padding-block: 56px;
}

#bewertungen .section-header {
  margin-bottom: 2.5rem;
}

#bewertungen .t-eyebrow {
  color: var(--c-accent);
}

#bewertungen h2 {
  color: #1a1612;
}

/* Rating-Badge unter der Bewertungs-Überschrift */
.reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1.25rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(200, 150, 62, 0.35);
  border-radius: 999px;
  background: rgba(200, 150, 62, 0.06);
}

.reviews-badge-stars {
  color: var(--c-accent);
  letter-spacing: 0.08em;
  font-size: 0.8125rem;
}

.reviews-badge-text {
  font-family: var(--f-body);
  font-size: 0.8125rem;
  font-weight: 300;
  color: #4a4440;
}

.reviews-badge-text strong {
  font-weight: 600;
  color: #1a1612;
}

#bewertungen::before {
  background: linear-gradient(to right, transparent 0%, var(--c-accent) 50%, transparent 100%);
  opacity: 0.4;
}

/* ── EDITORIAL INDEX — aufklappbare Zeilen (Leistungen + Branchen) ──
   Ruhig, scannbar, klick-gesteuert. Ersetzt die früheren Flip-Karten. */
.index-list {
  border-top: 1px solid var(--c-border);
}

.index-item {
  position: relative;
  border-bottom: 1px solid var(--c-border);
}

/* Linker Akzentbalken: wächst beim Öffnen ein – ruhiger Fokus-Marker */
.index-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--c-accent), rgba(200, 150, 62, 0));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.55s var(--ease-out);
  pointer-events: none;
}

.index-item.open::before { transform: scaleY(1); }

/* Klickbare Zeile */
.index-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.75rem);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: background 0.4s var(--ease-out), padding-left 0.4s var(--ease-out);
}

.index-row:hover,
.index-item.open .index-row { background: transparent; }

@media (hover: hover) {
  .index-row:hover { padding-left: calc(clamp(1rem, 2vw, 1.75rem) + 0.5rem); }
}

.index-num {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  color: var(--c-accent);
  opacity: 0.55;
  transition: opacity 0.3s;
}

.index-row:hover .index-num,
.index-item.open .index-num { opacity: 1; }

/* Branchen: Symbol statt Nummer */
.index-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--c-accent);
  opacity: 0.55;
  transition: opacity 0.3s;
}

.index-icon svg { width: 100%; height: auto; display: block; }

.index-row:hover .index-icon,
.index-item.open .index-icon { opacity: 1; }

.index-titles {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.index-title {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--c-text);
  transition: color 0.3s;
}

.index-row:hover .index-title,
.index-item.open .index-title { color: var(--c-accent-lt); }

.index-sub {
  font-family: var(--f-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-mid);
}

/* + / − Schalter (rein per CSS, kein Icon-Asset) */
.index-toggle {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.index-toggle::before,
.index-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--c-accent);
  transition: transform 0.4s var(--ease-out), opacity 0.4s;
}

.index-toggle::before {            /* waagerecht */
  width: 18px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.index-toggle::after {             /* senkrecht → verschwindet beim Öffnen (+ wird −) */
  width: 1.5px;
  height: 18px;
  transform: translate(-50%, -50%);
}

.index-item.open .index-toggle::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}

/* Aufklapp-Panel: weiche Auto-Höhe per grid-template-rows */
.index-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease-out);
}

.index-item.open .index-panel { grid-template-rows: 1fr; }

.index-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.index-panel-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 780px;
  padding: 0 clamp(1rem, 2vw, 1.75rem) clamp(2rem, 3.5vw, 2.75rem);
}

.index-desc {
  font-family: var(--f-body);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.75;
  color: #B0A698;
}

.index-desc strong {
  font-weight: 600;
  color: var(--c-text);
}

.index-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 2rem;
}

.index-features li {
  position: relative;
  padding-left: 1.5rem;
  font-family: var(--f-body);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.4;
  color: #E4DDD2;
}

.index-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--c-accent);
  border-bottom: 1.5px solid var(--c-accent);
  transform: rotate(45deg);
}

.index-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  opacity: 0.85;
  transition: gap 0.3s var(--ease-out), opacity 0.3s;
}

.index-cta:hover {
  gap: 1rem;
  opacity: 1;
}

.index-cta svg { flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  .index-panel,
  .index-item::before { transition: none; }
}

@media (max-width: 600px) {
  .index-features { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════
   PROZESS — Schritt für Schritt
════════════════════════════════════════════════════════════════ */

.process {
  margin-top: clamp(6.5rem, 12vw, 11rem);
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.process-intro {
  max-width: 54ch;
  margin: 0 auto clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
  font-family: var(--f-display);
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  font-weight: 300;
  line-height: 1.45;
  color: var(--c-text);
}

.process-intro em,
.accent-em {
  font-style: italic;
  color: var(--c-accent);
}

.process-intro-lead {
  display: inline-block;
  font-size: 1.25em;
}

.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: 1.25rem;
}

/* Nummern-Kreis */
.process-marker {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.process-num {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--c-border-acc);
  background: var(--c-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 1.6rem;
  line-height: 1;
  padding-bottom: 5px;   /* hebt die Serifen-Zahl optisch in die Mitte */
  font-style: italic;
  color: var(--c-accent);
  transition: border-color 0.4s, background 0.4s;
}

.process-step:hover .process-num {
  border-color: var(--c-accent);
  background: var(--c-surface);
}

/* Verbindungslinie von Kreismitte zu Kreismitte (Desktop) */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 50%;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
  z-index: 0;
  /* Basislinie + ein wandernder Lichtpuls (Puls-Layer 300% breit) */
  background-image:
    linear-gradient(90deg, transparent 40%, var(--c-accent-lt) 50%, transparent 60%),
    linear-gradient(var(--c-border-acc), var(--c-border-acc));
  background-size: 300% 100%, 100% 100%;
  background-repeat: no-repeat, no-repeat;
  background-position: 100% 0, 0 0;
  animation: process-pulse 3.6s linear infinite;
}

/* ein einziger Puls, der die Stationen nacheinander durchläuft */
.process-step:nth-child(2)::after { animation-delay: 1.2s; }
.process-step:nth-child(3)::after { animation-delay: 2.4s; }

@keyframes process-pulse {
  0%      { background-position: 100% 0, 0 0; }
  33.333% { background-position: 0% 0, 0 0; }
  100%    { background-position: 0% 0, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .process-step:not(:last-child)::after { animation: none; }
}

.process-step-title {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--c-text);
  margin-bottom: 0.6rem;
}

.process-step-text {
  font-family: var(--f-body);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.65;
  /* gleiche Texthelligkeit wie die Fließtexte der Leistungen */
  color: #B0A698;
  max-width: 26ch;
  margin-inline: auto;
}

/* Tablet & Mobile — vertikale Timeline */
@media (max-width: 1024px) {
  .process-steps {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .process-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1.5rem;
    padding-inline: 0;
    padding-bottom: 2.75rem;
  }

  .process-step:last-child { padding-bottom: 0; }

  .process-marker { margin-bottom: 0; }
  .process-body { padding-top: 0.7rem; }
  .process-step-text { max-width: none; margin-inline: 0; }

  /* horizontale Linie aus, vertikale Linie an */
  .process-step:not(:last-child)::after { display: none; }

  .process-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    bottom: 0;
    width: 1px;
    background-image:
      linear-gradient(180deg, transparent 40%, var(--c-accent-lt) 50%, transparent 60%),
      linear-gradient(var(--c-border-acc), var(--c-border-acc));
    background-size: 100% 300%, 100% 100%;
    background-repeat: no-repeat, no-repeat;
    background-position: 0 100%, 0 0;
    animation: process-pulse-v 3.6s linear infinite;
  }

  .process-step:nth-child(2)::before { animation-delay: 1.2s; }
  .process-step:nth-child(3)::before { animation-delay: 2.4s; }
}

@keyframes process-pulse-v {
  0%      { background-position: 0 100%, 0 0; }
  33.333% { background-position: 0 0%, 0 0; }
  100%    { background-position: 0 0%, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .process-step:not(:last-child)::before { animation: none; }
}


/* ═══════════════════════════════════════════════════════════════
   SECTION: BRANCHEN (Industries)
════════════════════════════════════════════════════════════════ */

#branchen {
  background: var(--c-void);
}

/* Branchen nutzen dasselbe .index-list-Styling wie die Leistungen. */


/* ═══════════════════════════════════════════════════════════════
   SECTION: REFERENZEN
════════════════════════════════════════════════════════════════ */

#referenzen {
  background: var(--c-void);
  position: relative;
}

#referenzen::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--c-accent) 50%, transparent 100%);
  opacity: 0.4;
}

.ref-section-label {
  font-family: var(--f-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.5rem;
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.ref-grid--portrait {
  grid-template-columns: repeat(4, 1fr);
}

.ref-thumb.ref-thumb--portrait {
  aspect-ratio: 9 / 16;
}

.ref-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: transparent;
  transition: transform 0.4s var(--ease-out);
}

.ref-card:hover {
  transform: translateY(-4px);
}

.ref-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  transition: border-color 0.3s;
}

.ref-card:hover .ref-thumb {
  border-color: var(--c-accent);
}

.ref-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out), filter 0.4s;
  filter: brightness(0.85);
}

.ref-card:hover .ref-thumb img {
  transform: scale(1.04);
  filter: brightness(1);
}

.ref-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.45) 100%);
  opacity: 1;
  transition: opacity 0.3s;
}

.ref-play {
  width: 64px;
  height: 64px;
  color: #fff;
  opacity: 0.85;
  transition: color 0.3s, transform 0.4s var(--ease-out);
}

.ref-card:hover .ref-play {
  color: var(--c-accent);
  transform: scale(1.08);
  opacity: 1;
}

.ref-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ref-title {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--c-text);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ref-label {
  font-family: var(--f-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #B0A698;
}

@media (max-width: 1024px) {
  .ref-grid--portrait { grid-template-columns: repeat(3, 1fr); }
  .ref-grid:not(.ref-grid--portrait) { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .ref-grid:not(.ref-grid--portrait) { gap: 1.5rem; }
  .ref-title { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .ref-grid:not(.ref-grid--portrait) { grid-template-columns: 1fr; gap: 1.5rem; }
  .ref-grid--portrait { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* ── Lightbox ── */
.ref-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.ref-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ref-lightbox-close {
  position: absolute;
  top: clamp(1rem, 2vw, 2rem);
  right: clamp(1rem, 2vw, 2rem);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
  z-index: 2;
}

.ref-lightbox-close:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  transform: rotate(90deg);
}

.ref-lightbox-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-lightbox-inner[data-format="9:16"] {
  max-width: 420px;
}

.ref-lightbox-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--c-border-acc);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(200,150,62,0.15);
}

.ref-lightbox-inner[data-format="9:16"] .ref-lightbox-frame {
  aspect-ratio: 9 / 16;
}

.ref-lightbox-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ═══════════════════════════════════════════════════════════════
   SECTION: ABOUT
════════════════════════════════════════════════════════════════ */

#about {
  background: var(--c-deep);
  position: relative;
}

/* Amber hairline separator */
#about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-accent) 50%, transparent);
  opacity: 0.4;
}

.about-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 7rem;
  align-items: center;
}

/* ── Visual column ── */
.about-visual {
  position: relative;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(25%) contrast(1.04);
  display: block;
}

/* Decorative offset frame */
.about-frame {
  position: absolute;
  bottom: -1.75rem;
  right: -1.75rem;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid var(--c-border);
  z-index: -1;
  /* Amber corner accent */
  box-shadow: inset 0 0 0 1px var(--c-border);
}

.about-frame::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 32px; height: 32px;
  border-right: 1px solid var(--c-accent);
  border-bottom: 1px solid var(--c-accent);
  opacity: 0.5;
}

/* ── Content column ── */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.about-content .t-eyebrow {
  margin-bottom: 1rem;
}

.about-content h2 {
  font-family: var(--f-display);
  font-size: 4rem;
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

/* Pull quote — amber left rule */
.about-quote {
  font-family: var(--f-display);
  font-size: 1.375rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  color: var(--c-text);
  padding-left: 1.75rem;
  border-left: 2px solid var(--c-accent);
  opacity: 0.9;
}

/* Body text */
.about-content .t-body {
  font-size: 0.9375rem;
}

/* Stats row */
.about-stats {
  display: flex;
  gap: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--c-border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.25rem 2.5rem 1.25rem 0;
  border-right: 1px solid var(--c-border);
  margin-right: 2.5rem;
}

.stat:last-child {
  border-right: none;
  margin-right: 0;
}

.stat-number {
  font-family: var(--f-display);
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  color: var(--c-text);
  letter-spacing: -0.02em;
}

.stat-number sup {
  font-size: 0.5em;
  color: var(--c-accent);
  vertical-align: super;
}

.stat-label {
  font-family: var(--f-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-mid);
}


/* ═══════════════════════════════════════════════════════════════
   SECTION: KONTAKT
════════════════════════════════════════════════════════════════ */

#kontakt {
  background: var(--c-void);
  position: relative;
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8rem;
  align-items: start;
}

/* Info column */
.kontakt-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 0.5rem;
}

.kontakt-info .t-eyebrow {
  margin-bottom: 1rem;
}

.kontakt-info h2 {
  font-family: var(--f-display);
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

/* Contact items */
.kontakt-detail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.kontakt-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.kontakt-item-icon {
  width: 18px;
  height: 18px;
  color: var(--c-accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
  opacity: 0.8;
}

.kontakt-item-text {
  font-family: var(--f-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--c-text-mid);
  line-height: 1.55;
}

.kontakt-item-text a {
  color: var(--c-text-mid);
  transition: color 0.25s;
}

.kontakt-item-text a:hover {
  color: var(--c-accent);
}

/* ── Form ── */
.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.375rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.form-field label {
  font-family: var(--f-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #B0A698;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 1px;
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.5;
  padding: 0.9375rem 1.125rem;
  outline: none;
  transition:
    border-color 0.3s,
    background   0.3s,
    box-shadow   0.3s;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}

/* Select dropdown arrow */
.form-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23605850' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.125rem center;
  padding-right: 2.75rem;
}

.form-field select option {
  background: #1A1A1A;
  color: var(--c-text);
}

/* Focus: amber border + subtle glow */
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--c-accent);
  background: var(--c-surface-hi);
  box-shadow: 0 0 0 3px var(--c-accent-dim);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--c-text-dim);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

/* Privacy note */
.form-note {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.65;
  /* heller als --c-text-dim für bessere Lesbarkeit */
  color: #6F665B;
}

.form-note a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(200,150,62,0.4);
  transition: text-decoration-color 0.3s, color 0.3s;
}

.form-note a:hover {
  color: var(--c-accent-lt);
  text-decoration-color: var(--c-accent-lt);
}

/* Submit row */
.form-submit {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.375rem;
}

/* ── Success state ── */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.75rem;
  padding: 3.5rem 2rem;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  min-height: 340px;
}

.form-success.show {
  display: flex;
}

.form-success-icon {
  width: 56px;
  height: 56px;
  color: var(--c-accent);
}

.form-success h3 {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--c-text);
}

.form-success p {
  font-size: 0.875rem;
  color: var(--c-text-mid);
  max-width: 36ch;
  line-height: 1.7;
}


/* ═══════════════════════════════════════════════════════════════
   KUNDENBEWERTUNGEN — MARQUEE
════════════════════════════════════════════════════════════════ */

@keyframes reviews-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.reviews-ticker {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.reviews-ticker-track {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  width: max-content;
  animation: reviews-scroll 40s linear infinite;
}


.review-item {
  flex-shrink: 0;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: opacity 0.3s;
}


.review-item:hover .review-item-name {
  color: var(--c-accent);
}

.review-item:hover .review-item-text {
  color: #1a1612;
}

.review-item-header {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  justify-content: space-between;
}

.review-item-stars {
  font-size: 0.75rem;
  color: var(--c-accent);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  margin-left: auto;
}

.review-item-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a908a;
}

.review-item-avatar svg { width: 26px; height: 26px; }

.review-item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.review-item-name {
  font-family: var(--f-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1612;
}

.review-item-company {
  font-family: var(--f-body);
  font-size: 0.75rem;
  color: #7a706a;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.review-item-text {
  font-family: var(--f-body);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: #4a4440;
  font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
  .reviews-ticker-track { animation: none; }
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════ */

footer {
  background: var(--c-void);
  border-top: 1px solid var(--c-border);
  padding-block: 2.75rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}

.footer-logo-img {
  height: 56px;
  width: auto;
  opacity: 0.75;
}

.footer-links {
  display: flex;
  gap: 2.25rem;
}

.footer-links a {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--c-text-dim);
  transition: color 0.25s;
}

.footer-links a:hover {
  color: var(--c-text-mid);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: inline-flex;
  color: var(--c-text-mid);
  transition: color 0.25s var(--ease-out);
}

.footer-social a:hover {
  color: var(--c-accent);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-copy {
  font-family: var(--f-body);
  font-size: 0.75rem;
  color: var(--c-text-dim);
  opacity: 0.55;
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 1024px)
════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* Überschriften umbrechen lassen statt überlaufen */
  .section-header h2,
  .section-header .t-heading { white-space: normal; }
  .br-mobile { display: initial; }

  /* Nav */
  #navbar { --nav-h: 68px; }
  .nav-links { gap: 1.75rem; }

  /* Voll deckender Hintergrund — backdrop-filter ist mobil unzuverlässig,
     sonst scheint die Seite durch die Navbar durch */
  #navbar.scrolled {
    background: var(--c-deep);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Hero */
  .hero-title { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }

  /* About — auf Tablet vertikal stapeln */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-visual { max-width: 400px; margin-inline: auto; }

  /* Kontakt */
  .kontakt-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }

  /* Hero — Tablet */
  .hero-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    white-space: normal;
    max-width: 100%;
  }

  .hero-content {
    padding-inline: 2rem;
    gap: 1.25rem;
  }
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 768px)
════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Gitter-Overlay auf Mobil: kleinere Kästchen + dezentere Linien (Hero) ── */
  #hero::after {
    background:
      repeating-linear-gradient( 45deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 4px),
      repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 4px),
      linear-gradient(to bottom, var(--c-void) 0%, transparent 4.5%),
      linear-gradient(to top,    var(--c-void) 0%, transparent 6%);
  }

  /* ── Variables ── */
  :root { --nav-h: 60px; }

  /* ── Container ── */
  .container { padding-inline: 1.25rem; }

  /* ── Section padding ── */
  .section-pad { padding-block: 4rem; }
  .section-header { margin-bottom: 2.5rem; }
  .t-heading { font-size: clamp(1.75rem, 6vw, 2.5rem); }

  /* ── NAVIGATION ── */
  /* Auf Mobil nicht mitlaufen: Leiste sitzt nur oben und scrollt mit der
     Seite weg (absolute statt fixed) */
  #navbar { position: absolute; }

  .nav-logo-img { height: 40px; }

  /* Hamburger button */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    flex-shrink: 0;
  }

  .nav-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--c-text);
    border-radius: 2px;
    transition: transform 0.35s var(--ease-out), opacity 0.25s;
    transform-origin: center;
  }

  /* Animated X when open */
  .nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  /* Full-screen mobile nav */
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(8, 8, 8, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.18em;
  }

  .nav-links a.nav-cta {
    padding: 0.75rem 2rem;
  }

  /* ── HERO ── */
  .hero-content {
    gap: 1rem;
    padding-inline: 1.5rem;
    padding-bottom: 4.5rem;
  }

  .hero-title {
    font-size: clamp(2.4rem, 8.5vw, 3.4rem);
    line-height: 1.15;
    white-space: normal;
    max-width: 100%;
  }

  .hero-title em { font-size: 1em; }

  .hero-sub {
    font-size: 0.8125rem;
    max-width: 38ch;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-trust {
    justify-content: center;
    margin-top: 1.5rem;
  }

  .hero-eyebrow { gap: 0.625rem; }
  .hero-eyebrow::before,
  .hero-eyebrow::after { width: 1.5rem; }

  /* ── ABOUT — stack ── */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-visual { max-width: 320px; margin-inline: auto; }

  /* Alle 3 Stats in einer Zeile halten */
  .about-stats {
    flex-wrap: nowrap;
    gap: 0;
  }

  .stat {
    flex: 1;
    align-items: center;
    text-align: center;
    padding: 1.25rem 0.5rem;
    margin-right: 0;
  }

  .stat-number { font-size: 2rem; }
  .stat-label { font-size: 0.5625rem; letter-spacing: 0.1em; }

  /* ── KONTAKT — stack ── */
  .kontakt-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* ── FORM — full width ── */
  .form-row {
    grid-template-columns: 1fr;
  }

  .kontakt-form input,
  .kontakt-form select,
  .kontakt-form textarea {
    font-size: 1rem; /* prevents iOS auto-zoom */
  }

  /* ── FOOTER — stack ── */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .footer-logo-img { height: 36px; }

  .footer-links { gap: 1.5rem; }

  /* ── REVIEWS-TICKER — identische Darstellung wie Desktop/Tablet
     (gleiche Kartenbreite, gleicher Abstand) ── */
  .reviews-ticker-track { gap: 4rem; }
  .review-item { width: 320px; }

  /* ── LIGHTBOX — Hochkant-Videos an Viewport-Höhe binden ── */
  .ref-lightbox { padding: 1rem; }
  .ref-lightbox-inner[data-format="9:16"] {
    max-width: min(420px, calc((100svh - 6rem) * 9 / 16));
  }
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE  (≤ 375px)
════════════════════════════════════════════════════════════════ */
@media (max-width: 375px) {

  .container { padding-inline: 1rem; }

  .hero-title {
    font-size: 2.3rem;
    line-height: 1.15;
    white-space: normal;
    max-width: 100%;
  }

  .hero-sub { font-size: 0.775rem; }

  .hero-content {
    padding-inline: 1rem;
    padding-bottom: 4rem;
    gap: 0.875rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    font-size: 0.7rem;
    padding: 0.75rem 1rem;
  }

  .nav-logo-img { height: 34px; }

  .t-heading { font-size: 1.75rem; }
}
