/* =========================================================
   Formeta Dental – Custom Styles (v0.3.5)
   Erweiterungen zu Tailwind Play CDN.
   Brand Tokens:
     #001E43 Brand Blue (Primary, Service)
     #BF214C Brand Red (Equipment, CTA)
     #858A8E Metal/Grey (Material, Sekundärtext)
     #FEFEFE White (Software)
   Font: Outfit (300/400/500/700/800)
   ========================================================= */

:root {
  --brand-blue:        #001E43;
  --brand-blue-dark:   #00132B;
  --brand-blue-light:  #032656;
  --brand-red:         #BF214C;
  --brand-red-bright:  #D8294F;
  --brand-red-on-dark: #BF214C;   /* v0.4.1: Hell-/Korallrot (#FF5E7A) verbannt — jetzt Brand-Rot auf Dunkelblau */
  --brand-metal:       #858A8E;
  --brand-light:       #FEFEFE;
  --glass-border:      rgba(255, 255, 255, 0.08);
  --glass-border-strong: rgba(255, 255, 255, 0.18);
  --glass-bg:          rgba(255, 255, 255, 0.04);
  --glass-bg-strong:   rgba(255, 255, 255, 0.07);
}

/* ----- Basis ----- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background-color: var(--brand-blue);
  color: var(--brand-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Selection: rote Markierung passend zum Brand */
::selection {
  background: var(--brand-red);
  color: #fff;
}

/* Custom dark scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--brand-blue-dark); }
::-webkit-scrollbar-thumb {
  background: rgba(191, 33, 76, 0.45);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-red); }

/* ----- Glassmorphism Cards ----- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 28px -26px rgba(0,0,0,0.4);
}
.glass-strong {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border-strong);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 16px 36px -30px rgba(0,0,0,0.45);
}

/* Hover-Lift für Bento Cards */
.bento-card {
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s, border-color 0.5s, background 0.5s;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.22);
}

/* Icon-Glow (v0.3.4): weisses Icon + weiter, weicher roter Blur-Schein statt Box.
   Halo via ::before (radial, geblurrt); Icon liegt per z-index darueber. */
.icon-glow {
  position: relative;
  isolation: isolate;
}
.icon-glow > svg {
  position: relative;
  z-index: 1;
}
.icon-glow::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 320%;
  height: 320%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(191, 33, 76, 0.55), rgba(191, 33, 76, 0.22) 38%, transparent 70%);
  filter: blur(10px);
}

/* Flat Icons (v0.3.7): flacher, brand-getoenter Chip mit Hairline statt Glas/Glow.
   Kein Gloss, kein Schlagschatten, keine Schwebe-Animation. Hierarchie ueber
   Farbe + duennen Strich. Hover (von der Card getriggert): Brand-Akzent zieht an. */
.icon-flat {
  position: relative;
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid; place-items: center;
  flex: 0 0 auto;
  background: rgba(191,33,76,0.10);
  border: 1px solid rgba(191,33,76,0.22);
  color: var(--brand-red-on-dark);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.icon-flat .flat-glyph { width: 23px; height: 23px; }
.bento-card:hover .icon-flat {
  background: rgba(191,33,76,0.16);
  border-color: rgba(191,33,76,0.45);
  color: #fff;
}

/* ----- Hero Background: Subtle Mesh / Spotlight ----- */
.hero-mesh {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-mesh::before {
  content: ''; position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(191,33,76,0.32), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(3,38,86,0.7), transparent 65%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(191,33,76,0.12), transparent 70%);
  filter: blur(20px);
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.18; pointer-events: none;
  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);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
}

/* Floating 3D-Mark Animation */
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(2deg); }
}
.float-slow { animation: floaty 8s ease-in-out infinite; }
.float-medium { animation: floaty 6s ease-in-out infinite; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.5rem; border-radius: 9999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1.15;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: normal; max-width: 100%; text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand-red);
  color: #fff;
  box-shadow: 0 6px 18px -12px rgba(191,33,76,0.45), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover {
  background: var(--brand-red-bright);
  box-shadow: 0 10px 26px -14px rgba(191,33,76,0.55), inset 0 1px 0 rgba(255,255,255,0.22);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.4);
}

.btn-light {
  background: #fff;
  color: var(--brand-blue);
}
.btn-light:hover {
  background: #f1f3f7;
  transform: translateY(-2px);
}

/* Blauer Voll-Button (FTC-Pendant zum roten btn-primary) — aktuell nur Lösungen-Hero */
.btn-fdblue {
  background: #0f3c87;
  color: #fff;
  box-shadow: 0 6px 18px -12px rgba(15,60,135,0.55), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-fdblue:hover {
  background: #164a9e;
  box-shadow: 0 10px 26px -14px rgba(15,60,135,0.65), inset 0 1px 0 rgba(255,255,255,0.22);
  transform: translateY(-2px);
}

/* ----- Mobil: alle Buttons full-width (CTA-Reihen nutzen flex-wrap → stapeln) ----- */
@media (max-width: 640px) {
  .btn { width: 100%; max-width: 100%; }
}

/* ----- Headlines ----- */
.h-display {
  font-family: 'Outfit', sans-serif;
  font-weight: 300; /* Outfit Light – wie im Brand Manual */
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.h-section {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.h-emphasis {
  font-weight: 700;
}

/* Hero- & CTA-Headline: Zeilenhoehe verengt (v0.3.5). Element+Attribut-Selektor
   schlaegt Tailwinds gebundelte text-6xl-line-height (:1), die sonst leading-[..]
   ueberstimmt, weil das Play-CDN-<style> nach style.css injiziert wird. */
h1[data-hero-headline],
#termin h2.h-section {
  line-height: 0.95;
}

/* Balance-Wrap fuer alle Headings (verhindert Waisen & unsch\u00f6ne Umbr\u00fcche).
   Browser-Support: Chrome 114+, Safari 17.5+, Firefox 121+ \u2014 progressive enhancement. */
h1, h2, h3,
.h-display, .h-section {
  text-wrap: balance;
}

/* ----- Headline-Highlight: animierte Unterstreichung (v0.3.2) -----
   Weisse Schrift + dicke rote Marker-Unterstreichung in Brand-Rot.
   Beim Scrollen in den View zeichnet sich die Linie von links nach rechts
   durch (Klasse .is-marked, gesetzt per JS/IntersectionObserver bzw. in der
   Hero-Timeline). Die Linie ist em-relativ (skaliert mit der Schriftgroesse).
   `box-decoration-break: clone` → sauber auch ueber Zeilenumbruch.
   Schrift ist weiss auf Dunkelblau (~16:1), die rote Linie ist dekorativer
   Akzent (kein Textkontrast noetig). */
.headline-accent {
  color: #fff;
  font-style: normal;
  padding: 0 0.04em 0.1em;
  /* Verlauf laengs der Linie: links transparent → rechts Brand-Rot.
     Transparentes Rot (Alpha 0) statt `transparent`, sonst Grau-Stich im Fade. */
  background-image: linear-gradient(90deg, rgba(191, 33, 76, 0), var(--brand-red));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.6s cubic-bezier(.2, .8, .2, 1);
}
.headline-accent.is-marked {
  background-size: 100% 0.12em;
}

/* Stat-Zahlen (100%, 0 €): solides Korall statt Marker — grosse, leichte
   Display-Ziffern; ein roter Block dahinter waere zu schwer. */
.stat-figure {
  color: var(--brand-red-on-dark);
}

/* Reduced-Motion: Unterstreichung sofort voll, kein Wisch */
@media (prefers-reduced-motion: reduce) {
  .headline-accent {
    background-size: 100% 0.12em;
    transition: none;
  }
}

/* ----- Reveal on Scroll ----- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-slow, .float-medium { animation: none; }
  html { scroll-behavior: auto; }
}

/* ----- Form Fields ----- */
.input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  color: #fff;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: rgba(255,255,255,0.45); }
.input:focus {
  outline: none;
  border-color: var(--brand-red);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 4px rgba(191,33,76,0.18);
}
textarea.input { min-height: 140px; resize: vertical; }

/* Custom checkbox */
.check {
  appearance: none;
  width: 1.1rem; height: 1.1rem;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
  display: inline-grid; place-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.check:checked {
  background: var(--brand-red);
  border-color: var(--brand-red);
}
.check:checked::after {
  content: ''; width: 0.45rem; height: 0.7rem;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px,-1px);
}
/* Mobil: runde Checkbox mit ausreichend großer Tap-Fläche */
@media (max-width: 640px) {
  .check {
    width: 1.6rem; height: 1.6rem;
    border-radius: 50%;
    border-width: 1.5px;
    flex: 0 0 auto;
  }
  .check:checked::after { width: 0.55rem; height: 0.85rem; border-width: 0 2.5px 2.5px 0; }
}

/* ---- Kontaktformular: Spamschutz-Honeypot + Validierungs-States ---- */
/* Honeypot: für Menschen unsichtbar, von Bots ausgefüllt */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
/* Ungültiges Feld: roter Rahmen (Grafik, kein roter Text) */
.input.input--err { border-color: var(--brand-red); }
/* Fehlermeldung: weiß (keine rote Schrift auf Blau) */
.form-err {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
}
.form-err::before { content: '⚠ '; }
[data-form-status] { margin-top: 1rem; font-size: 0.875rem; color: rgba(255,255,255,0.9); }
[data-form-status].is-err { color: #fff; border-left: 3px solid var(--brand-red); padding-left: 0.75rem; }

/* ---- Scroll-to-top Button ---- */
.to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 60;
  width: 46px; height: 46px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--brand-red); color: #fff; border: none; cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s, transform .25s, background .2s;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand-red-bright); }
@media (max-width: 640px) { .to-top { bottom: 1rem; right: 1rem; width: 42px; height: 42px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .2s; transform: none; } }

/* ----- Bento Grid Hilfen ----- */
.bento-tag {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
  color: #fff;
}
.bento-tag .dot {
  width: 0.45rem; height: 0.45rem; border-radius: 999px; background: currentColor;
}

/* Diagonal Stripe für Card-Akzent (Equipment / Service) */
.accent-stripe {
  position: absolute; top: 0; right: 0;
  width: 130px; height: 130px;
  pointer-events: none; opacity: 0.25;
  background: repeating-linear-gradient(135deg,
    currentColor 0 2px, transparent 2px 12px);
  mask-image: radial-gradient(circle at top right, black, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at top right, black, transparent 70%);
}

/* ----- Header ----- */
.header-shell {
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.header-shell.scrolled {
  background: rgba(0, 19, 43, 0.78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: rgba(255,255,255,0.08);
}

/* ----- Nav: Triggers & Direktlinks ----- */
.nav-trigger,
.nav-link {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: 0.5rem 0;
  background: transparent; border: 0;
  cursor: pointer;
  transition: color 0.2s;
  font-family: inherit;
  position: relative;
}
.nav-trigger:hover,
.nav-link:hover,
.nav-trigger[aria-expanded="true"] { color: #fff; }
.nav-chevron { transition: transform 0.25s cubic-bezier(.2,.8,.2,1); }
.nav-trigger[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

/* Aktiver Trigger bekommt eine subtile Glow-Line unten (wie in frame.io) */
.nav-trigger[aria-expanded="true"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -0.3rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(191,33,76,0.9), transparent);
  filter: drop-shadow(0 0 4px rgba(191,33,76,0.7));
}

/* ----- Nav Megapanel (frame.io-Style, Full-Width) -----
   Ein einziges Panel, das von Header-Kante zu Kante spannt.
   Inhalt wird per .nav-mp-content[data-active] gewechselt.
   Oben/unten Laser-Kanten (rote Gradient-Linien). */
.nav-megapanel {
  /* v0.2.9: position fixed + top 5rem (= Header h-20 = 80px).
     Vorher absolute innerhalb <header> — scheiterte am verschachtelten
     backdrop-filter (Header.scrolled hat selbst backdrop-filter, das
     den Child-Filter neutralisiert). Jetzt Sibling zum Header. */
  position: fixed;
  top: 5rem;
  left: 0; right: 0;
  width: 100%;
  background: rgba(3, 38, 86, 0.72);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  border-top: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 28px 56px -44px rgba(0,0,0,0.55),
              0 1px 0 rgba(255,255,255,0.04) inset;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.22s cubic-bezier(.2,.8,.2,1),
              transform 0.22s cubic-bezier(.2,.8,.2,1);
  z-index: 45;
  overflow: hidden;
}

/* v0.2.9: Page-Dim Scrim bei offenem Megapanel (leichte Abdunklung der
   restlichen Seite bei Menue-Hover). Liegt unter Header und Megapanel. */
.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 10, 28, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(.2,.8,.2,1);
  z-index: 40;
}
.nav-scrim[data-open="true"] {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .nav-scrim { transition: none; }
}
.nav-megapanel::before,
.nav-megapanel::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  pointer-events: none;
}
.nav-megapanel::before {
  top: 0;
  background: linear-gradient(90deg, transparent 10%, rgba(191,33,76,0.45) 50%, transparent 90%);
}
.nav-megapanel::after {
  bottom: 0;
  background: linear-gradient(90deg, transparent 20%, rgba(191,33,76,0.22) 50%, transparent 80%);
}
.nav-megapanel[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-mp-inner {
  max-width: 88rem;
  margin: 0 auto;
  padding: 2.5rem 1.75rem;
  position: relative;
}

.nav-mp-content {
  display: none;
  grid-template-columns: 1fr 1fr 1fr 1.35fr;
  gap: 3rem;
  animation: nav-mp-fade-in 0.18s ease;
}
.nav-mp-content[data-active="true"] { display: grid; }

@keyframes nav-mp-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-mp-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.nav-mp-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fff;
  margin: 0 0 1rem;
  font-family: 'Outfit', sans-serif;
  text-wrap: normal;
}
.nav-mp-col-title::after {
  content: '';
  display: block;
  width: 1.6rem;
  height: 2px;
  margin-top: 0.5rem;
  background: linear-gradient(90deg, var(--brand-red), rgba(191, 33, 76, 0));
}
.nav-mp-link {
  display: block;
  padding: 0.55rem 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.18s, border-color 0.18s, padding-left 0.18s;
}
.nav-mp-link:last-child { border-bottom: none; }
.nav-mp-link:hover {
  color: #fff;
  padding-left: 0.4rem;
  border-bottom-color: rgba(191, 33, 76, 0.35);
}

/* Featured-Cell (rechts) mit Thumbnail */
.nav-mp-featured {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1),
              border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.nav-mp-featured:hover {
  transform: translateY(-2px);
  border-color: rgba(191, 33, 76, 0.35);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 26px -22px rgba(191,33,76,0.26);
}
.nav-mp-featured-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.65rem;
  overflow: hidden;
  margin-bottom: 0.35rem;
  background: rgba(0,0,0,0.3);
}
.nav-mp-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), filter 0.5s;
}
.nav-mp-featured:hover .nav-mp-featured-img img {
  transform: scale(1.04);
  filter: brightness(1.05) saturate(1.1);
}
.nav-mp-featured-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fff;
  margin-top: 0.2rem;
}
.nav-mp-featured-eyebrow::after {
  content: '';
  display: block;
  width: 1.4rem;
  height: 2px;
  margin-top: 0.35rem;
  background: linear-gradient(90deg, var(--brand-red), rgba(191, 33, 76, 0));
}
.nav-mp-featured-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.nav-mp-featured-desc {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* Reduced-Motion: Megapanel sofort einblenden */
@media (prefers-reduced-motion: reduce) {
  .nav-megapanel {
    transition: none;
    transform: none;
  }
  .nav-mp-content { animation: none; }
}

/* ----- Mobile Menu: Accordion für Nav-Dropdowns ----- */
.m-nav-group {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.m-nav-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 0;
  font-size: 1.5rem;
  font-weight: 500;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.m-nav-trigger:hover { color: var(--brand-red-on-dark); }
.m-nav-trigger .nav-chevron {
  width: 14px; height: 14px;
  opacity: 0.6;
}
.m-nav-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(.2,.8,.2,1);
}
.m-nav-group[data-open="true"] .m-nav-panel {
  max-height: 320px;
}
.m-nav-group[data-open="true"] .m-nav-trigger .nav-chevron {
  transform: rotate(180deg);
}
.m-nav-panel a {
  display: block;
  padding: 0.5rem 0 0.5rem 1rem;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  border-left: 2px solid rgba(191,33,76,0.25);
  margin-left: 0.25rem;
  margin-bottom: 0.25rem;
}
.m-nav-panel a:hover { color: var(--brand-red-on-dark); }

/* ----- Mobile Menu Slide-In ----- */
#mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
#mobile-menu.open {
  transform: translateX(0);
}

/* ----- Marquee / Trust Strip ----- */
.trust-strip {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  align-items: center; justify-content: center;
}
.trust-item {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.04em;
}
.trust-item svg { color: var(--brand-red); }

/* ----- Play Button ----- */
.play-btn {
  width: 88px; height: 88px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: var(--brand-red);
  color: #fff;
  /* v0.7.0: statischer, sauberer Play-Button — keine Pulse-/Hover-/Maus-Animation */
  box-shadow: 0 14px 34px -12px rgba(191,33,76,0.6);
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(191,33,76,0.55); }
  70%  { box-shadow: 0 0 0 30px rgba(191,33,76,0); }
  100% { box-shadow: 0 0 0 0 rgba(191,33,76,0); }
}

/* ----- Section Divider ----- */
.section-edge-top {
  background: linear-gradient(180deg, var(--brand-blue-dark) 0%, var(--brand-blue) 30%);
}

/* ----- Utility: noscroll bei offenem Mobile-Menu ----- */
body.no-scroll { overflow: hidden; }

/* =========================================================
   HERO VIDEO SECTION (Variante A & B)
   Vollbild-Video, dunkles Tint-Overlay, Reveal-Layer
   nach Video-Ende per GSAP eingeblendet.
   ========================================================= */
.hero-video-section {
  /* Background-Schwarz, falls Video langsam lädt */
  background: #000;
}
.hero-video {
  /* object-cover via Tailwind, hier nur Performance-Hints */
  will-change: transform;
}
/* Tint: während Video unsichtbar, wird per GSAP nach `video.ended`
   vollflächig eingeblendet. Der "Blur" wird NICHT via backdrop-filter
   gemacht (greift nicht über HW-decoded <video>), sondern direkt
   per filter:blur() aufs Video selbst — siehe .hero-video. */
.hero-tint {
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 55%, rgba(0,19,67,0.65), rgba(0,15,36,0.92) 75%);
  opacity: 0;
}

/* Hero-Video: filter ist GSAP-tween-bar (blur + leichte Abdunkelung beim Reveal) */
.hero-video {
  will-change: transform, filter;
  filter: blur(0px) brightness(1) saturate(1);
}

/* Reveal-Layer initial unsichtbar — JS-Sicherheit, falls GSAP versagt */
.hero-reveal { opacity: 0; }
.hero-reveal [data-hero-eyebrow],
.hero-reveal [data-hero-headline],
.hero-reveal [data-hero-sub],
.hero-reveal [data-hero-cta] {
  opacity: 0;
  transform: translateY(24px);
}

/* Hero-Slider + Punkt-Navigation (ersetzt die 3 Scroll-Sections) — gleicher Look, Crossfade */
.hero-slider { display: grid; }
.hero-slide { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.hero-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hero-dots { display: flex; justify-content: center; align-items: center; gap: .6rem; margin-top: 2.2rem; }
.hero-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.28); cursor: pointer; transition: background .3s ease, width .3s cubic-bezier(.2,.8,.2,1); }
.hero-dot:hover { background: rgba(255,255,255,.55); }
.hero-dot.is-active { width: 30px; background: var(--brand-red); }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: opacity .25s linear; transform: none; } }

/* (entfernt) .hero-reveal-card – kein Box-Container mehr.
   Inhalte liegen frei zentriert auf dem vollflächigen Tint-Layer. */
/* Word-Splitter Output: jedes Wort ein span */
[data-hero-headline] .word,
[data-usp-content] .word {
  display: inline-block;
  overflow: hidden;
  /* leichter Padding-Bottom vermeidet Descender-Clipping */
  padding-bottom: 0.04em;
  margin-bottom: -0.04em;
}
[data-hero-headline] .word > span,
[data-usp-content] .word > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}

/* CTA Glow-Pulse (1× nach Reveal) */
@keyframes ctaGlow {
  0%   { box-shadow: 0 10px 30px -10px rgba(191,33,76,0.6), 0 0 0 0 rgba(191,33,76,0.55); }
  50%  { box-shadow: 0 14px 40px -12px rgba(191,33,76,0.85), 0 0 0 18px rgba(191,33,76,0); }
  100% { box-shadow: 0 10px 30px -10px rgba(191,33,76,0.6), 0 0 0 0 rgba(191,33,76,0); }
}
.hero-reveal [data-hero-cta].pulse-once {
  animation: ctaGlow 1.4s ease-out 1;
}

/* =========================================================
   USP SCROLL-SECTIONS (Scroll-gescrubbtes Hintergrundvideo)
   Section ist 100svh hoch — die Pin-Distance kommt von GSAP
   (`end: '+=300%'` = 3 Viewports zusätzlicher Scroll während gepinnt).
   GSAP hängt einen 300vh-Spacer NACH der Section an, sodass wir die
   volle Hold-Phase visuell halten können (CSS-Sticky kann das nicht,
   weil sich Sticky immer bei `section.height - viewport` löst).
   Phasen via GSAP-Master-Timeline:
     0  – 55 %  Pin-Progress  →  Video-Scrub
    55  – 75 %  Pin-Progress  →  Reveal (Filter aufs Video, Tint, Text)
    75  – 100% Pin-Progress  →  Hold (alles bleibt sichtbar)
   Voraussetzung: Videos sind mit jedem Frame als Keyframe encoded
   (siehe project/videos/_originals/ für Master-Files).
   ========================================================= */
.usp-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  background: var(--brand-blue-dark);
  overflow: hidden;          /* clip object-cover video */
}
.usp-pin {
  /* Reine logische Hülle (kein eigenes Pin-Verhalten mehr — die ganze
     Section wird via GSAP gepinnt). 100% × 100% innerhalb der Section. */
  position: relative;
  width: 100%;
  height: 100%;
}

/* USP-Video: filter ist GSAP-tween-bar (analog Hero) */
.usp-video {
  will-change: transform, filter;
  filter: blur(0px) brightness(1) saturate(1);
}

/* Tint analog Hero – initial unsichtbar, kommt nach Video-Scrub */
.usp-tint {
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 55%, rgba(0,19,67,0.65), rgba(0,15,36,0.92) 75%);
  opacity: 0;
}

.usp-content [data-usp-eyebrow],
.usp-content [data-usp-headline],
.usp-content [data-usp-sub] {
  opacity: 0;
  transform: translateY(28px);
}

/* Section-Connector */
.usp-section + .usp-section { border-top: 1px solid rgba(255,255,255,0.05); }

/* =========================================================
   GSAP Initial-States (verhindert FOUC vor JS-Boot)
   ========================================================= */
.gsap-fade-up   { opacity: 0; transform: translateY(40px); }
.gsap-fade-left { opacity: 0; transform: translateX(-40px); }
.gsap-fade-right{ opacity: 0; transform: translateX(40px); }
.gsap-scale-in  { opacity: 0; transform: scale(0.96); }

/* News card 3D-Tilt (Hover via JS) */
.news-card { transform-style: preserve-3d; perspective: 800px; will-change: transform; }


/* Cursor Spotlight (optional Design-Spell, ein/aus per .has-spotlight auf body) */
body.has-spotlight {
  --spot-x: 50%; --spot-y: 50%;
}
body.has-spotlight::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(420px circle at var(--spot-x) var(--spot-y),
              rgba(191,33,76,0.08), transparent 60%);
  transition: opacity 0.4s;
}

/* Reduced-Motion Failsafe */
@media (prefers-reduced-motion: reduce) {
  .hero-reveal,
  .hero-reveal [data-hero-eyebrow],
  .hero-reveal [data-hero-headline],
  .hero-reveal [data-hero-sub],
  .hero-reveal [data-hero-cta],
  .usp-content [data-usp-eyebrow],
  .usp-content [data-usp-headline],
  .usp-content [data-usp-sub],
  .gsap-fade-up, .gsap-fade-left, .gsap-fade-right, .gsap-scale-in {
    opacity: 1 !important;
    transform: none !important;
  }
  [data-hero-headline] .word > span,
  [data-usp-content] .word > span {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-tint { opacity: 0.55 !important; }
}

/* ----- Numeric / Step number style (Pattern aus MEMORY.md) ----- */
.step-num {
  font-size: 3rem;
  font-weight: 900;
  color: #fff; /* v0.7.0: Step-Zahlen in reinem Weiss (Kundenwunsch) */
  line-height: 1;
  letter-spacing: -0.04em;
}
@media (min-width: 768px) {
  .step-num { font-size: 3.75rem; }
}

/* =========================================================
   CTA SECTION (#termin) — vollflaechig, Mesh-Gradient + Laser-Beam
   Layout analog USP-Sections (Content zentriert auf vollfl. Hintergrund).
   Mesh-Koordinaten werden von GSAP animiert (slow drift der Farbflecken).
   ========================================================= */

/* @property fuer saubere Custom-Property-Animation der Mesh-Positionen */
@property --mx1 { syntax: '<percentage>'; initial-value: 20%; inherits: false; }
@property --my1 { syntax: '<percentage>'; initial-value: 20%; inherits: false; }
@property --mx2 { syntax: '<percentage>'; initial-value: 80%; inherits: false; }
@property --my2 { syntax: '<percentage>'; initial-value: 75%; inherits: false; }
@property --mx3 { syntax: '<percentage>'; initial-value: 50%; inherits: false; }
@property --my3 { syntax: '<percentage>'; initial-value: 50%; inherits: false; }

.cta-section {
  min-height: 80vh;
  min-height: 80svh;
  width: 100%;
  background: var(--brand-blue-dark);
  position: relative;
  isolation: isolate;
}

.cta-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at var(--mx1, 20%) var(--my1, 20%), rgba(191, 33, 76, 0.55), transparent 62%),
    radial-gradient(ellipse 50% 45% at var(--mx2, 80%) var(--my2, 75%), rgba(3, 38, 86, 1), transparent 66%),
    radial-gradient(ellipse 70% 55% at var(--mx3, 50%) var(--my3, 50%), rgba(216, 41, 79, 0.22), transparent 62%),
    linear-gradient(135deg, #00132B 0%, #032656 55%, #001E43 100%);
  filter: saturate(1.08);
  z-index: 0;
  animation:
    cta-mesh-drift-1 14s ease-in-out infinite alternate,
    cta-mesh-drift-2 18s ease-in-out infinite alternate,
    cta-mesh-drift-3 22s ease-in-out infinite alternate;
}

/* v0.2.9.1: Image-Backed Hintergrund fuer den Haupt-CTA.
   Content in .cta-content bleibt zentriert (Layout aus v0.2.8.1),
   nur Hintergrund wird statt Mesh-Gradient ein Foto (NCL-M180A) + radiales Overlay. */
.cta-image-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url('../assets/img/gallery-ncl-m180a.jpg');
  background-size: cover;
  background-position: center center;
  z-index: 0;
}
/* Radial-Overlay: Zentrum heller (Foto bleibt erahnbar), Raender stark abgedunkelt.
   Sorgt dafuer dass zentrierte Headline + CTA-Button lesbar bleiben. */
.cta-image-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(0, 19, 43, 0.55) 0%, rgba(0, 19, 43, 0.85) 45%, rgba(0, 15, 36, 0.96) 100%),
    linear-gradient(180deg, rgba(0, 15, 36, 0.35) 0%, transparent 22%, transparent 78%, rgba(0, 15, 36, 0.6) 100%);
  pointer-events: none;
}
@keyframes cta-mesh-drift-1 {
  to { --mx1: 38%; --my1: 45%; }
}
@keyframes cta-mesh-drift-2 {
  to { --mx2: 55%; --my2: 55%; }
}
@keyframes cta-mesh-drift-3 {
  to { --mx3: 35%; --my3: 65%; }
}

/* v0.7.0: Laser-Beam (Scan-Linie oben->unten) entfernt — Kundenwunsch. */

.cta-content {
  position: relative;
  z-index: 2;
  /* Inhalt vertikal mittig im vollflaechigen CTA (analog USP-Sections) */
  min-height: 80vh;
  min-height: 80svh;
  display: grid;
  place-items: center;
}

/* CTA Button: staerkerer Glow als btn-primary */
.cta-button {
  box-shadow:
    0 10px 28px -14px rgba(191, 33, 76, 0.6),
    0 0 40px -14px rgba(191, 33, 76, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.cta-button:hover {
  box-shadow:
    0 14px 34px -16px rgba(191, 33, 76, 0.68),
    0 0 54px -14px rgba(191, 33, 76, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 0 0 6px rgba(191, 33, 76, 0.12);
}

/* Reduced-Motion: Mesh statisch */
@media (prefers-reduced-motion: reduce) {
  .cta-mesh { animation: none; }
}

/* =========================================================
   PARALLAX GALLERY (Section #einblicke, nach #warum)
   Horizontaler Scroll via GSAP ScrollTrigger-Pin auf Desktop.
   Vertikales Scrollen → horizontale Track-Translation.
   Mobile/Touch: native overflow-x mit scroll-snap.
   ========================================================= */

.gallery-section {
  position: relative;
  width: 100%;
  /* Normale horizontale Galerie (kein Pin-Scroll-Hijack mehr) — Section auf Inhaltshöhe. */
  height: auto;
  padding: clamp(3rem, 6vw, 6rem) 0;
  background: var(--brand-blue-dark);
  isolation: isolate;
}

/* v0.2.9.1: Gallery-Mesh-Layer — weiche radial-gradient-Wolken im Brand-Dark.
   Liegt hinter .gallery-pin (z-index der Panels ist hoeher durch normal flow). */
.gallery-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 45% 42% at var(--gx1, 15%) var(--gy1, 25%), rgba(191, 33, 76, 0.32), transparent 65%),
    radial-gradient(ellipse 52% 55% at var(--gx2, 85%) var(--gy2, 75%), rgba(3, 38, 86, 0.85), transparent 68%),
    radial-gradient(ellipse 40% 45% at var(--gx3, 75%) var(--gy3, 18%), rgba(216, 41, 79, 0.16), transparent 66%),
    radial-gradient(ellipse 55% 50% at var(--gx4, 25%) var(--gy4, 80%), rgba(0, 30, 67, 0.9), transparent 70%),
    linear-gradient(180deg, #00132B 0%, #001E43 50%, #00132B 100%);
  filter: saturate(1.08);
  animation:
    gallery-mesh-drift-1 24s ease-in-out infinite alternate,
    gallery-mesh-drift-2 30s ease-in-out infinite alternate;
}

/* Leichter Laser-Akzent oben (analog anderen Sections) */
.gallery-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 15%, rgba(191, 33, 76, 0.35) 50%, transparent 85%);
  filter: drop-shadow(0 0 6px rgba(191, 33, 76, 0.4));
  z-index: 3;
  pointer-events: none;
}

/* @property fuer smooth Custom-Property-Animation */
@property --gx1 { syntax: '<percentage>'; initial-value: 15%; inherits: false; }
@property --gy1 { syntax: '<percentage>'; initial-value: 25%; inherits: false; }
@property --gx2 { syntax: '<percentage>'; initial-value: 85%; inherits: false; }
@property --gy2 { syntax: '<percentage>'; initial-value: 75%; inherits: false; }
@property --gx3 { syntax: '<percentage>'; initial-value: 75%; inherits: false; }
@property --gy3 { syntax: '<percentage>'; initial-value: 18%; inherits: false; }
@property --gx4 { syntax: '<percentage>'; initial-value: 25%; inherits: false; }
@property --gy4 { syntax: '<percentage>'; initial-value: 80%; inherits: false; }

@keyframes gallery-mesh-drift-1 {
  to { --gx1: 28%; --gy1: 38%; --gx3: 62%; --gy3: 32%; }
}
@keyframes gallery-mesh-drift-2 {
  to { --gx2: 68%; --gy2: 62%; --gx4: 38%; --gy4: 68%; }
}

/* Reduced-Motion: Mesh statisch */
@media (prefers-reduced-motion: reduce) {
  .gallery-section::before { animation: none; }
}

.gallery-pin {
  position: relative;
  width: 100%;
}

.gallery-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 1.5rem 6rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(191,33,76,0.45) transparent;
  cursor: grab;
}
.gallery-track::-webkit-scrollbar { height: 8px; }
.gallery-track::-webkit-scrollbar-thumb { background: rgba(191,33,76,0.45); border-radius: 99px; }
.gallery-track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.gallery-panel, .gallery-quote-card { scroll-snap-align: center; }
@media (min-width: 1280px) {
  .gallery-track { gap: 4rem; padding: 1.5rem 8rem; }
}

/* Einzelnes Panel (Bild-Wrapper) */
.gallery-panel {
  position: relative;
  flex-shrink: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px -30px rgba(0,0,0,0.5),
              0 1px 0 rgba(255,255,255,0.04) inset;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1),
              box-shadow 0.4s cubic-bezier(.2,.8,.2,1);
  background: var(--brand-blue-dark);
}
.gallery-panel:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 50px -32px rgba(0,0,0,0.6),
              0 0 0 1px rgba(191,33,76,0.2);
}

/* Panel-Größen: alle auf gleiche Höhe (480px), kein Zig-Zag-Stagger mehr */
.gallery-panel--landscape-md,
.gallery-panel--landscape-lg,
.gallery-panel--landscape-sm { width: 640px; height: 480px; margin-top: 0; }
.gallery-panel--portrait-md,
.gallery-panel--portrait-sm  { width: 360px; height: 480px; margin-top: 0; }

.gallery-panel__img {
  position: absolute;
  inset: -40px 0;
  width: 100%;
  height: calc(100% + 80px);
  object-fit: cover;
  will-change: transform;
  transition: filter 0.5s cubic-bezier(.2,.8,.2,1);
}
.gallery-panel:hover .gallery-panel__img {
  filter: brightness(1.05) saturate(1.1);
}

/* Zitat-Panel (Finale Gallery-Card) */
.gallery-quote-card {
  position: relative;
  flex-shrink: 0;
  width: 760px;
  height: 620px;
  margin-top: 0;
  border-radius: 24px;
  padding: 3.5rem 3rem;
  background:
    linear-gradient(135deg, rgba(3,38,86,0.7), rgba(0,19,43,0.85) 55%, rgba(0,15,36,0.95));
  border: 1px solid var(--glass-border-strong);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset,
              0 18px 40px -30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Portrait-Variante: Freisteller ist unten buendig mit der Card (kein Anschnitt) */
.gallery-quote-card--with-portrait {
  overflow: hidden;
  padding-right: 18rem;
  width: 820px;
}

.gallery-quote-portrait {
  position: absolute;
  right: -1rem;
  bottom: 0;
  width: auto;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: flex-end;
}
.gallery-quote-portrait img {
  width: auto;
  height: 100%;
  max-width: 22rem;
  object-fit: contain;
  object-position: bottom right;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.4))
          drop-shadow(0 0 32px rgba(191,33,76,0.12));
}

.gallery-quote-body {
  position: relative;
  z-index: 2;
  max-width: 36rem;
}

.gallery-quote-mark {
  position: absolute;
  top: -0.15em;
  left: 0.3rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 16rem;
  line-height: 0.8;
  color: rgba(191, 33, 76, 0.18);
  pointer-events: none;
  user-select: none;
}

.gallery-quote-text {
  position: relative;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  letter-spacing: -0.015em;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.25;
  color: var(--brand-light);
  max-width: 42ch;
  margin: 0 0 2.25rem;
}
.gallery-quote-text em {
  font-style: normal;
  font-weight: 500;
  color: #fff;
}

.gallery-quote-divider {
  width: 56px;
  height: 2px;
  background: var(--brand-red);
  border: none;
  margin: 0 0 1.5rem;
}

.gallery-quote-attrib {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.gallery-quote-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  color: #fff;
  display: block;
  line-height: 1.2;
}
.gallery-quote-role {
  font-size: 0.85rem;
  color: var(--brand-metal);
  letter-spacing: 0.02em;
  display: block;
  margin-top: 0.2rem;
}

.gallery-quote-cta {
  align-self: flex-start;
}

/* Mobile: Pin deaktiviert, native overflow-x + snap */
@media (max-width: 1023px) {
  .gallery-section {
    height: auto;
    padding: 1rem 0 3rem;
  }
  .gallery-pin {
    position: static;
    height: auto;
    overflow: visible;
  }
  .gallery-track {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding: 1rem 1.5rem 2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(191,33,76,0.4) transparent;
  }
  .gallery-track::-webkit-scrollbar { height: 6px; }
  .gallery-track::-webkit-scrollbar-thumb {
    background: rgba(191,33,76,0.4);
    border-radius: 99px;
  }
  .gallery-panel,
  .gallery-quote-card {
    scroll-snap-align: center;
    margin-top: 0 !important;
  }
  .gallery-panel--landscape-md,
  .gallery-panel--landscape-lg,
  .gallery-panel--landscape-sm {
    width: 82vw; max-width: 420px; height: 280px;
  }
  .gallery-panel--portrait-md,
  .gallery-panel--portrait-sm {
    width: 68vw; max-width: 320px; height: 440px;
  }
  .gallery-quote-card,
  .gallery-quote-card--with-portrait {
    width: 86vw; max-width: 460px; height: auto;
    padding: 2.5rem 2rem;
    padding-bottom: 14rem;
    padding-right: 2rem;
  }
  .gallery-quote-portrait {
    right: 50%;
    transform: translateX(50%);
    width: 14rem;
    height: auto;
    max-width: none;
    bottom: 0;
    display: block;
  }
  .gallery-quote-portrait img {
    height: auto;
    width: 100%;
    max-width: none;
  }
  .gallery-quote-body { max-width: 100%; }
  .gallery-quote-mark { font-size: 10rem; }
  .gallery-quote-text { font-size: 1.35rem; margin-bottom: 1.75rem; }
  .gallery-panel__img {
    inset: 0;
    height: 100%;
    transform: none !important;
  }
}

/* Reduced-Motion Failsafe */
@media (prefers-reduced-motion: reduce) {
  .gallery-section {
    height: auto;
    padding: 2rem 0;
  }
  .gallery-pin {
    position: static;
    height: auto;
    overflow: visible;
  }
  .gallery-track {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    transform: none !important;
  }
  .gallery-panel,
  .gallery-quote-card {
    margin-top: 0 !important;
  }
  .gallery-panel__img {
    inset: 0;
    height: 100%;
    transform: none !important;
    transition: none !important;
  }
  .gallery-panel { transition: none !important; }
}

/* =========================================================
   BRANCHEN-KONTEXT — "Die Industrie ist zerrissen" (v0.2.11)
   Mesh-Gradient-Atmosphäre + animierte SVG-Risslinien +
   Converge-Beam + Formeta-Pill-Lockup
   ========================================================= */

/* Mesh-Gradient-Layer: 4 radiale Wolken (rot/blau) die langsam driften.
   Liegt hinter den Risslinien + Cards (z-index 0), gibt der Section
   atmosphärische Tiefe ohne die Bruch-Metapher zu überlagern. */
.bk-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* v0.7.0: ruhiges Navy-Mesh — rote Farbkleckse entfernt (Kundenwunsch) */
  background:
    radial-gradient(ellipse 50% 45% at var(--bkx1, 18%) var(--bky1, 22%), rgba(3, 38, 86, 0.55), transparent 65%),
    radial-gradient(ellipse 55% 50% at var(--bkx2, 82%) var(--bky2, 78%), rgba(3, 38, 86, 0.8), transparent 68%),
    radial-gradient(ellipse 40% 40% at var(--bkx3, 70%) var(--bky3, 18%), rgba(0, 30, 67, 0.5), transparent 66%),
    radial-gradient(ellipse 50% 48% at var(--bkx4, 30%) var(--bky4, 82%), rgba(0, 30, 67, 0.9), transparent 70%);
  filter: saturate(1.05);
  animation:
    bk-mesh-drift-a 22s ease-in-out infinite alternate,
    bk-mesh-drift-b 28s ease-in-out infinite alternate;
}

@property --bkx1 { syntax: '<percentage>'; initial-value: 18%; inherits: false; }
@property --bky1 { syntax: '<percentage>'; initial-value: 22%; inherits: false; }
@property --bkx2 { syntax: '<percentage>'; initial-value: 82%; inherits: false; }
@property --bky2 { syntax: '<percentage>'; initial-value: 78%; inherits: false; }
@property --bkx3 { syntax: '<percentage>'; initial-value: 70%; inherits: false; }
@property --bky3 { syntax: '<percentage>'; initial-value: 18%; inherits: false; }
@property --bkx4 { syntax: '<percentage>'; initial-value: 30%; inherits: false; }
@property --bky4 { syntax: '<percentage>'; initial-value: 82%; inherits: false; }

@keyframes bk-mesh-drift-a {
  to { --bkx1: 32%; --bky1: 38%; --bkx3: 58%; --bky3: 34%; }
}
@keyframes bk-mesh-drift-b {
  to { --bkx2: 70%; --bky2: 62%; --bkx4: 42%; --bky4: 66%; }
}

/* Converge-Abschluss mit pulsierendem Lichtstrahl */
.bk-converge {
  margin-top: 7rem;
  text-align: center;
  position: relative;
}
.bk-converge-heading {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300;
  margin-top: 1.2rem;
  color: #FEFEFE;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.bk-converge-heading em {
  font-style: normal;
  font-weight: 500;
}

/* Formeta-Logo unter der Converge-Headline (schlichtes Original-Logo, kein Button) */
/* v0.7.0: deutlich groesser (Kundenwunsch) */
.bk-logo {
  display: inline-block;
  height: 4rem;
  width: auto;
  margin-top: 2.75rem;
}

@media (max-width: 640px) {
  .bk-logo { height: 2.85rem; }
  .bk-converge { margin-top: 5rem; }
}

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

/* Anker-Sprünge: Offset für fixen Header (Feedback #792928) */
section[id] { scroll-margin-top: 96px; }
