/* ============================================================
   DDT Website - site.css
   Statische Umsetzung des DDT Design Systems (siehe assets/css/styles.css
   für Tokens). Komponenten sind 1:1 aus _ds_bundle.js (window.DDT)
   nachgebaut; Werte referenzieren die CSS-Custom-Properties der Tokens.
   ============================================================ */

/* ---------- Layout-Grundlagen ---------- */
:root {
  --gutter: clamp(20px, 5vw, 64px);   /* horizontales Seitenmaß (Design: 64px) */
  --page-max: 1440px;                 /* zentrierte Inhaltsbreite (Design-Canvas bis 1600px) */
}

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

body {
  overflow-x: hidden;
  /* Ganz leichte Streifentextur im Weißraum (aus der alten Seite: DDT_Line_BG_Light.svg).
     Fixiert hinter allem; dunkle Sektionen decken sie mit eigenem Hintergrund ab. */
  background-color: var(--surface-page);
  background-image: url("../media/DDT_Line_BG_Light.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

img, video { max-width: 100%; display: block; }

a { color: var(--ddt-navy); text-decoration: none; }
a:hover { color: var(--ddt-red); }

strong { color: var(--text-primary); }

/* Sektion: volle Breite, Inhalt zentriert + gekappt. */
.section { padding: 72px var(--gutter); }
.section > * { width: 100%; max-width: var(--page-max); margin-inline: auto; }

.section--framed {
  background: var(--surface-card);
  border-top: 1px solid var(--border-line);
  border-bottom: 1px solid var(--border-line);
}
.section--dark {
  background: var(--surface-dark);
  color: var(--text-on-dark);
}

.section__lead {
  margin: 16px 0 32px;
  /* Linke Kante auf die page-max-Spalte ausrichten (wie Kicker/Headline),
     statt an den Content-Rand - sonst Versatz auf breiten Screens. */
  margin-left: max(0px, calc((100% - var(--page-max)) / 2));
  margin-right: 0;
  font-size: 1rem;
  line-height: var(--line-body);
  color: var(--text-muted);
  max-width: 640px;
}

/* Grids ---------------------------------------------------- */
.grid { display: grid; gap: var(--gap-card); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two-col__col { display: flex; flex-direction: column; gap: 20px; }

/* ============================================================
   KOMPONENTEN  (nachgebaut aus window.DDT)
   ============================================================ */

/* SkewBar - Signatur-Motiv: rechteckiger Balken, skewX(var(--skew)) = 10° (Logo-Neigung), rot. */
.skewbar {
  display: inline-block;
  width: var(--accent-bar-w);
  height: var(--accent-bar-h);
  background: var(--ddt-red);
  transform: skewX(var(--skew));
  flex: none;
}

/* Kicker - roter, kursiver UPPERCASE-Eyebrow mit vorangestelltem SkewBar. */
.kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: var(--type-small);
  text-transform: uppercase;
  letter-spacing: var(--kicker-tracking);
  color: var(--ddt-red);
  white-space: nowrap;
}
.kicker::before {
  content: "";
  width: var(--accent-bar-w);
  height: var(--accent-bar-h);
  background: currentColor;
  transform: skewX(var(--skew));
  flex: none;
}
.kicker--on-dark { color: var(--kicker-on-dark); }

/* Wordmark - DDT-Logotype: SkewBar + kursiv 800 UPPERCASE. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}
.wordmark::before {
  content: "";
  width: 0.7em;
  height: 0.32em;
  background: var(--ddt-red);
  transform: skewX(var(--skew));
  flex: none;
}
.wordmark__mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  font-size: 1.5rem;
  color: var(--text-primary);
}
.wordmark:hover { color: inherit; }
.wordmark--on-dark .wordmark__mark { color: var(--text-on-dark); }

/* SectionHeader - Kicker + Display-Titel. */
.section-header {
  display: flex;
  flex-direction: column;
  gap: var(--gap-header);
}
.section-header__title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: var(--type-title);
  text-transform: uppercase;
  line-height: var(--line-tight);
  color: var(--text-primary);
}
.section--dark .section-header__title { color: var(--text-on-dark); }

/* Button - rechteckig, radius 0, UPPERCASE, Skew-Hover (Signatur). */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  cursor: pointer;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  background: var(--ddt-red);
  color: #FFFFFF;
  border: none;
  transition: transform .22s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: skewX(var(--skew)); color: #FFFFFF; }
.btn--navy { background: var(--ddt-navy); color: #FFFFFF; }
.btn--outline {
  background: transparent;
  color: var(--ddt-navy);
  border: 1px solid var(--ddt-navy);
}
.btn--outline:hover { color: var(--ddt-navy); }
.btn--sm { padding: 9px 20px; font-size: 14px; }

/* Card - weiße Fläche, 1px Rahmen, radius 0, KEIN Schatten. */
.card {
  padding: var(--pad-card);
  display: flex;
  flex-direction: column;
  gap: var(--gap-item);
  border-radius: var(--radius);
  border: 1px solid var(--border-line);
  background: var(--surface-card);
  color: var(--text-primary);
}
.card--navy { border-top: 6px solid var(--ddt-navy); }
.card--red { border-top: 6px solid var(--ddt-red); }
.card__title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 20px;
  color: var(--text-primary);
}
.card__text {
  margin: 0;
  font-size: 15px;
  line-height: var(--line-body);
  color: var(--text-muted);
}

/* Chip - rechteckiger Tag. */
.chips { display: flex; flex-wrap: wrap; gap: var(--gap-chip); }
.chip {
  font-family: var(--font-body);
  font-size: var(--type-small);
  font-weight: 600;
  padding: var(--pad-chip);
  white-space: nowrap;
  display: inline-block;
  border-radius: var(--radius);
  background: var(--surface-card);
  color: var(--text-primary);
  border: 1px solid var(--border-line);
}
.chip--navy { background: var(--ddt-navy); color: #FFFFFF; border: none; }

/* Stat - große rote kursive Zahl + Label + Beschreibung. */
.stats { display: flex; gap: 72px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.stat__value {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: var(--type-stat);
  line-height: 1;
  color: var(--ddt-red);
}
.stat__label {
  font-family: var(--font-body);
  font-size: var(--type-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.stat__desc {
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: var(--line-body);
  color: var(--text-muted);
}
/* Kontrast-Fix ggü. Design-System: auf dunklem Grund heller Muted-Ton. */
.stat--on-dark .stat__label,
.stat--on-dark .stat__desc { color: var(--text-on-dark-muted); }

/* ChecklistItem - Statuszeile mit rotem Marker. */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: var(--line-body);
  color: var(--text-primary);
}
.check::before {
  content: "\2713"; /* ✓ */
  color: var(--ddt-red);
  font-weight: 800;
  flex: none;
}
.check--planned::before { content: "\2192"; } /* → */
.section--dark .check { color: var(--text-on-dark); }

/* ============================================================
   NAVBAR  - semitransparentes dunkles Band mit abgesetztem Logo-Band.
   Bleibt dunkel über dem Hero; wird weiß (Menü dunkel), sobald man
   über den Hero hinaus in den hellen Bereich scrollt (.is-light).
   Werte aus deepdyntech.com (Band #0E0E16B3, Weiß #FFFFFF).
   ============================================================ */
.nav-outer {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0;
  transition: padding .4s ease;
}
/* Beim Scrollen fährt das Band zu einem schwebenden, schmaleren Band zusammen. */
.nav-outer.is-scrolled { padding: 10px 16px 0; }
/* Seiten ohne dunklen Hero: Platz für die fixe Navbar freihalten. */
body:not(.has-dark-hero) main { padding-top: 60px; }

.nav-inner {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: rgba(14, 16, 22, 0.60);          /* semitransparent dunkel (10% transparenter) */
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: max-width .4s ease, background .4s ease, border-color .4s ease;
}
/* Weicher Schatten im Weiß-Zustand - liegt auf .nav-outer (kein clip-path, kein
   backdrop-filter-Konflikt), sonst würde der Band-Clip den Schatten kappen. */
.nav-outer::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  /* liegt bewusst ~14px INNERHALB der Bandkanten, damit die quadratischen Ecken
     nicht über die schräge Bandkante hinausragen (sonst sichtbarer „Kasten" auf
     hellem Grund); nur der weiche Schlagschatten quillt unten heraus. */
  top: 2px; left: 24px; right: 24px; height: 58px; max-width: none; margin-inline: auto;
  box-shadow: 0 10px 26px rgba(17, 28, 46, 0);
  transition: box-shadow .4s ease, top .4s ease, left .4s ease, right .4s ease, max-width .4s ease, height .4s ease;
}
.nav-outer.is-scrolled::before { top: 12px; left: 30px; right: 30px; max-width: 1176px; height: 50px; }
.nav-outer.is-light::before { box-shadow: 0 10px 26px rgba(17, 28, 46, 0.13); }
/* Feine Silber-Linie (Gradient) am Bandfuß - hebt das Band über dem Hero ab
   und fährt beim Scrollen ein. */
.nav-inner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg,
    rgba(150, 175, 230, 0) 0%,
    rgba(158, 180, 232, 0.05) 16%,
    rgba(178, 198, 242, 0.5) 50%,
    rgba(158, 180, 232, 0.05) 84%,
    rgba(150, 175, 230, 0) 100%);
  opacity: 0; transform: scaleX(0.6); transform-origin: center;
  transition: opacity .45s ease, transform .55s ease;
  pointer-events: none;
}
/* Über dem Hero (dunkles Band, nicht gescrollt): Silberlinie sichtbar, voll ausgefahren. */
.nav-outer:not(.is-scrolled):not(.is-light) .nav-inner::after { opacity: 1; transform: scaleX(1); }
.nav-outer.is-scrolled .nav-inner {
  max-width: 1200px;
  /* geschrägte Seiten im 10°-Winkel (= Logo-Neigung); 9px ≈ 10° bei ~52px Bandhöhe */
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
/* Zusammengefahren: Logo-Täbchen bündig (kein Überhang, sonst würde der Clip es kappen),
   und der CTA-Button neigt sich mit, damit seine Kante zur schrägen Bandkante passt. */
.nav-outer.is-scrolled .nav-logo-link { margin-bottom: 0; }
.nav-outer.is-scrolled .navbar > .btn { transform: skewX(var(--skew)); }
/* Über den Hero hinaus → weißes Band (Schatten via .nav-outer::before). */
.nav-outer.is-light .nav-inner {
  background: rgba(247, 248, 250, 0.74);       /* 20% transparenter + Glass */
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--border-line);
}

.navbar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 0 24px 0 0;          /* links 0 → Logo-Täbchen bündig an der Kante */
  min-height: 60px;
  transition: min-height .35s ease;
}
.nav-outer.is-scrolled .navbar { min-height: 52px; }

/* Abgesetztes Logo-Band ("Täbchen") - Logos gestapelt, Zustandswechsel = reines
   Opacity-Crossfade (kein horizontales max-width-Wischen → nahtloser Bandwechsel).
   Nur beim Einklappen animiert die Breite (Voll-Logo → Marke). */
.nav-logo-link {
  position: relative; overflow: hidden; flex: none; align-self: flex-start;
  width: 290px; height: 66px;                   /* 6px höher als das 60px-Band → dezenter Überhang = Dynamik */
  background: #13161F;                          /* solides dunkles Täbchen */
  margin-bottom: -6px;                          /* zieht den 6px-Überhang aus dem Fluss → Band bleibt 60px */
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.26);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: width .4s ease, height .35s ease, background .4s ease, box-shadow .4s ease;
}
.nav-outer.is-scrolled .nav-logo-link { width: 92px; height: 52px; }
.nav-outer.is-light .nav-logo-link {
  background: #FFFFFF;
  box-shadow: 0 6px 14px rgba(17, 28, 46, 0.10);
}

.nav-logo {
  position: absolute; top: 50%; left: 26px; transform: translateY(-50%);
  display: block; height: 26px; width: auto; opacity: 0;
  transition: opacity .35s ease;
}
/* Sichtbarkeit rein über opacity (gestapelt) - je Zustand genau ein Logo an. */
.nav-logo--full-light { opacity: 1; }                                      /* dunkles Band, oben */
.nav-outer.is-light .nav-logo--full-light { opacity: 0; }
.nav-outer.is-light:not(.is-scrolled) .nav-logo--full-dark { opacity: 1; } /* helles Band, oben */
.nav-outer.is-scrolled .nav-logo--full-light { opacity: 0; }
.nav-outer.is-scrolled .nav-logo--mark-light { opacity: 1; }               /* gescrollt, dunkel */
.nav-outer.is-scrolled.is-light .nav-logo--mark-light { opacity: 0; }
.nav-outer.is-scrolled.is-light .nav-logo--mark-dark { opacity: 1; }       /* gescrollt, hell */

.navbar__links {
  list-style: none; display: flex; align-items: center; gap: 28px;
  margin: 0; padding: 0;
  /* echt mittig im Band (unabhängig von Logo-Breite links / Aktionen rechts) */
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.navbar__links a {
  font-family: var(--font-body); font-size: var(--type-small); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; color: #FFFFFF;
  transition: color .3s ease;
}
.navbar__links a:hover { color: var(--ddt-red); }
.nav-outer.is-light .navbar__links a { color: var(--text-primary); }
.nav-outer.is-light .navbar__links a:hover { color: var(--ddt-red); }

.navbar > .btn { align-self: center; }
.btn--mail { display: inline-flex; align-items: center; justify-content: center; padding-left: 13px; padding-right: 13px; }
.btn--mail svg { width: 17px; height: 17px; flex: none; }

/* Sprach-Umschalter  EN | DE */
.nav-lang { display: flex; align-items: center; gap: 13px; align-self: center; flex: none; margin-left: auto;
  font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.6px; }
.nav-lang__opt { position: relative; color: rgba(255,255,255,0.55); text-transform: uppercase; transition: color .3s ease; }
.nav-lang__opt.is-active { color: #fff; }
a.nav-lang__opt:hover { color: var(--ddt-red); }
.nav-lang__opt:first-child::after { content: "/"; position: absolute; right: -8px; color: rgba(255,255,255,0.3); pointer-events: none; }
.nav-outer.is-light .nav-lang__opt { color: var(--text-muted); }
.nav-outer.is-light .nav-lang__opt.is-active { color: var(--text-primary); }
.nav-outer.is-light .nav-lang__opt:first-child::after { color: rgba(17,28,46,0.25); }

.navbar__burger {
  display: none; flex-direction: column; gap: 5px; align-self: center;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.navbar__burger span {
  width: 24px; height: 2px; background: #FFFFFF; display: block;
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
}
.nav-outer.is-light .navbar__burger span { background: var(--ddt-navy); }

/* Footer-Logo (langes Logo, weiß, auf dunklem Grund). */
.footer-logo { display: inline-block; }
.footer-logo img { display: block; height: 26px; width: auto; }

/* ============================================================
   SEKTIONEN
   ============================================================ */

/* Hero */
.hero { padding: 80px var(--gutter) 56px; }
.hero__inner {
  width: 100%; max-width: var(--page-max); margin-inline: auto;
  display: flex; flex-direction: column; gap: 24px;
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.05;
  color: var(--text-primary);
}
.hero__lead {
  margin: 0;
  font-size: 18px;
  line-height: var(--line-body);
  color: var(--text-muted);
  max-width: 640px;
}
.hero__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero__trust {
  list-style: none; margin: 8px 0 0; padding: 20px 0 0;
  display: flex; gap: 28px; flex-wrap: wrap;
  font-size: 14px; color: var(--text-muted);
  border-top: 1px solid var(--border-line);
}
.hero__trust li { white-space: nowrap; }

/* Leistungen - überlappen den Hero leicht (~20px) */
.leistungen { padding-top: 0; padding-bottom: 72px; margin-top: -20px; position: relative; z-index: 3; }

/* Branchen - Kachel-Karten */
.branche {
  border: 1px solid var(--border-line);
  background: var(--surface-page);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-primary);
  transition: border-color .2s ease, transform .2s ease;
}
.branche:hover, .branche.is-active { border-color: var(--ddt-navy); }
.branche__kicker {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ddt-red); font-weight: 600;
}
.branche__title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: 21px; color: var(--text-primary);
}
.branche__text {
  margin: 0; font-size: 14.5px; line-height: var(--line-body); color: var(--text-muted);
}
.branche__more { font-size: 14px; font-weight: 600; margin-top: auto; color: var(--ddt-navy); }
.branche:hover .branche__more, .branche.is-active .branche__more { color: var(--ddt-red); }

/* Branchen-Kacheln mit Hover-Video: default blurry + weiß überblendet, bei Hover scharf. */
.branche { position: relative; overflow: hidden; min-height: 210px; isolation: isolate; }
.branche__video, .branche__tint { position: absolute; inset: 0; }
.branche__video {
  width: 100%; height: 100%; object-fit: cover; z-index: 0;
  filter: blur(12px) saturate(1.05); transform: scale(1.12); opacity: .82;
  transition: filter .9s ease, opacity .9s ease, transform .9s ease;
}
/* Grund-Schleier: erster Frame bleibt leicht sichtbar */
.branche__tint { z-index: 1; background: rgba(247, 248, 250, 0.60); transition: background .9s ease; }
/* Weißer Verlauf links→rechts, blendet nur beim Abspielen ein: Kontrast für den Text */
.branche::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to right,
    rgba(247, 248, 250, 0.95) 0%,
    rgba(247, 248, 250, 0.72) 34%,
    rgba(247, 248, 250, 0.28) 66%,
    rgba(247, 248, 250, 0.04) 100%);
  opacity: 0; transition: opacity .9s ease;
}
.branche > .branche__kicker, .branche > .branche__title,
.branche > .branche__text, .branche > .branche__more { position: relative; z-index: 3; }
.branche:hover .branche__video, .branche.is-active .branche__video { filter: blur(0) saturate(1.06); opacity: 1; transform: scale(1.02); }
.branche:hover .branche__tint, .branche.is-active .branche__tint { background: rgba(247, 248, 250, 0.14); }
.branche:hover::after, .branche.is-active::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .branche__video { transition: none; }
}

/* Technologie */
.technologie { position: relative; overflow: hidden; isolation: isolate; min-height: 480px; }
.technologie > .section-header,
.technologie > .technologie__grid { position: relative; z-index: 1; }
.technologie__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  margin-top: 32px; align-items: start;
  width: 100%; max-width: var(--page-max); margin-inline: auto;
}
.technologie__col { display: flex; flex-direction: column; gap: 22px; }
/* Nur-Text-Layout über dem Detection-Hintergrund. */
.technologie__grid--text { grid-template-columns: 1fr; }
.technologie__grid--text .technologie__col { max-width: 520px; }
.technologie__intro { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-muted); }

.media { margin: 0; }
.media--rect { width: 100%; height: 340px; position: relative; }
.media__placeholder {
  width: 100%; height: 100%;
  border: 1px dashed var(--border-line);
  background: repeating-linear-gradient(-45deg, #fff, #fff 12px, #fbfcfe 12px, #fbfcfe 24px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 24px; font-size: 13px; color: var(--text-muted);
}
.media__caption { margin: 0; font-size: 13px; color: var(--text-muted); }

/* Zahlen (dunkel) */
.zahlen { padding-block: 56px; }

/* Referenzen */
.referenzen { display: flex; flex-direction: column; gap: var(--gap-card); }
.referenz {
  border: 1px solid var(--border-line);
  background: var(--surface-card);
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.referenz__branche {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ddt-red); font-weight: 600;
}
.referenz__text { margin: 0; font-size: 14.5px; line-height: var(--line-body); color: var(--text-muted); }

/* Referenzen-Karussell: eine Referenz sichtbar, Auto-Cycle + Countdownbar + Pfeile */
.ref-carousel { display: flex; flex-direction: column; gap: 14px; }
.ref-carousel__viewport { position: relative; }
.ref-carousel .referenz { display: none; }
.ref-carousel .referenz.is-active { display: flex; animation: refIn .5s ease; }
@keyframes refIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ref-carousel__bar { height: 3px; background: var(--border-line); overflow: hidden; }
.ref-carousel__bar-fill { display: block; height: 100%; width: 100%; background: var(--ddt-red); transform: scaleX(0); transform-origin: left; }
.ref-carousel__bar-fill.run { animation: refBar var(--ref-interval, 6000ms) linear forwards; }
.ref-carousel.is-paused .ref-carousel__bar-fill.run { animation-play-state: paused; }
@keyframes refBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ref-carousel__controls { display: flex; align-items: center; gap: 14px; }
.ref-carousel__arrow {
  width: 34px; height: 34px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-line); background: var(--surface-card); color: var(--text-primary);
  font-size: 16px; line-height: 1; cursor: pointer; transition: border-color .2s ease, color .2s ease;
}
.ref-carousel__arrow:hover { border-color: var(--ddt-red); color: var(--ddt-red); }
.ref-carousel__count { font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .ref-carousel .referenz.is-active { animation: none; }
}

/* CTA (dunkel) */
.cta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 40px; flex-wrap: wrap;
}
.cta > * { max-width: none; margin-inline: 0; }
.cta__text { display: flex; flex-direction: column; gap: 10px; }
.cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: 36px; line-height: 1.1; color: var(--text-on-dark);
}
.cta__lead { margin: 0; font-size: 16px; line-height: var(--line-body); color: var(--text-on-dark-muted); max-width: 560px; }

/* Footer (schlicht - wird im 2. Durchgang durch den Blue-Gradient-Footer ersetzt) */
.site-footer {
  padding: 40px var(--gutter);
  border-top: 1px solid var(--border-line);
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.site-footer__links { display: flex; gap: 24px; align-items: center; font-size: 13.5px; }
.site-footer__lang { color: var(--text-muted); }
.site-footer__copy { font-size: 13px; color: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .technologie__grid { grid-template-columns: 1fr; gap: 32px; }
  .stats { gap: 40px; }
}

@media (max-width: 720px) {
  .navbar__links,
  .navbar > .btn { display: none; }
  .navbar__burger { display: flex; }
  .navbar__links.is-open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0; transform: none;
    background: var(--surface-card); border-bottom: 1px solid var(--border-line);
    margin: 0; padding: 16px 24px; gap: 16px;
  }
  .grid--3 { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .cta { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   ELEMENTE VON DER ALTEN SEITE - an das neue Design angepasst
   (Hero-Video, Edge/Rack, Tracking-Demo, Speed, Blue/Streifen-Footer)
   ============================================================ */

/* (Navbar-Theming siehe NAVBAR-Block oben: dunkles Band, .is-light → weiß.) */

/* ---- HERO mit Hintergrundvideo ---- */
.hero--video {
  position: relative;
  overflow: hidden;
  background: var(--ddt-navy);
  color: var(--text-on-dark);
  min-height: min(88vh, 840px);
  display: flex;
  align-items: center;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  /* Nur links ganz leicht abdunkeln (20 % → 0 %), Rest gibt das Video frei. */
  background: linear-gradient(90deg, rgba(17,28,46,0.20) 0%, rgba(17,28,46,0) 50%);
}
.hero--video .hero__inner { position: relative; z-index: 2; }
.hero--video .hero__title { color: var(--text-on-dark); }
.hero--video .hero__lead { color: var(--text-on-dark-muted); }
.hero__trust--on-dark { border-top-color: var(--border-on-dark); color: var(--text-on-dark-muted); }

.btn--outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.55); }
.btn--outline-light:hover { color: #fff; border-color: #fff; }

/* ---- EDGE / RACK (interaktiv, dunkel) ---- */
/* Detection-Reveal: Rohbild → KI-Erkennung, beim Scrollen von links aufgedeckt */
.detect {
  position: relative; width: 100%; height: 100%; min-height: 360px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 20%);
          mask-image: linear-gradient(to right, transparent 0%, #000 20%);
}
/* Background-Variante: nur die rechten ~60% des Streifens, Text links daneben. */
.detect--bg {
  position: absolute; top: 0; bottom: 0; right: 0; left: 40%;
  z-index: 0; width: auto; height: auto; min-height: 0; max-width: none; margin: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%);
          mask-image: linear-gradient(to right, transparent 0%, #000 22%);
}
/* Sanfter heller Blend an der linken Bildkante. */
.detect--bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to right, rgba(247,248,250,.75) 0%, rgba(247,248,250,0) 34%);
}
.detect--bg .detect__scan { z-index: 3; }
.detect--bg .detect__cap { z-index: 4; }
@media (max-width: 700px) {
  .detect--bg { left: 0; -webkit-mask-image: none; mask-image: none; }
  .detect--bg::after { background: linear-gradient(to bottom, rgba(247,248,250,.55), rgba(247,248,250,.90)); }
}
.detect__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* Annotierte Ebene wird per clip-path von links nach rechts freigelegt (--p: 0→1). */
/* Automatisch hin und her: annotierte Ebene rein-/raus-scannen (Endlosschleife). */
.detect__img--anno { clip-path: inset(0 100% 0 0); animation: detectReveal 9s ease-in-out infinite; }
@keyframes detectReveal {
  0%, 8%    { clip-path: inset(0 100% 0 0); }
  46%, 56%  { clip-path: inset(0 0 0 0); }
  94%, 100% { clip-path: inset(0 100% 0 0); }
}
.detect__scan {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px; transform: translateX(-1px);
  background: linear-gradient(180deg, rgba(230,51,41,0), #E63329 45%, rgba(230,51,41,0));
  box-shadow: 0 0 18px 3px rgba(230,51,41,.55);
  opacity: 1; pointer-events: none;
  animation: detectScanLine 9s ease-in-out infinite;
}
@keyframes detectScanLine {
  0%, 8%    { left: 0%; }
  46%, 56%  { left: 100%; }
  94%, 100% { left: 0%; }
}
.detect__cap {
  position: absolute; right: 0; bottom: 0; margin: 0; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: rgba(17,28,46,0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--text-on-dark); font-size: 12px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase;
}
.detect__cap-dot { width: 8px; height: 8px; flex: none; background: var(--ddt-red); border-radius: 50%; animation: detectPulse 1.8s infinite; }
@keyframes detectPulse {
  0% { box-shadow: 0 0 0 0 rgba(230,51,41,.55); }
  70% { box-shadow: 0 0 0 8px rgba(230,51,41,0); }
  100% { box-shadow: 0 0 0 0 rgba(230,51,41,0); }
}
@media (prefers-reduced-motion: reduce) {
  .detect__img--anno { animation: none; clip-path: inset(0 0 0 0); }
  .detect__scan { display: none; }
  .detect__cap-dot { animation: none; }
}

.systems { background: var(--ddt-navy); color: var(--text-on-dark); padding: 72px var(--gutter); }
.systems__head { width: 100%; max-width: var(--page-max); margin: 0 auto 32px; display: flex; flex-direction: column; gap: var(--gap-header); }
.systems__title {
  margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 800;
  text-transform: uppercase; font-size: var(--type-title); line-height: var(--line-tight); color: var(--text-on-dark);
}
.systems__row { width: 100%; max-width: var(--page-max); margin-inline: auto; display: flex; gap: 4px; overflow: hidden; }
.systems__item {
  position: relative; flex: 0 0 calc(50% - 2px); min-width: 0; aspect-ratio: 16 / 10; overflow: hidden;
  border: 1px solid var(--border-on-dark); cursor: pointer;
  transition: flex-basis 1s cubic-bezier(0.85, 0, 0, 1), border-color .4s ease;
  outline: none;
}
.systems__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Zwei gestapelte Ebenen: Vorlauf sichtbar, Rücklauf-Clip beim Verlassen eingeblendet (harter Cut, Frames sind deckungsgleich). */
.systems__video--rev { opacity: 0; }
.systems__item.is-rev .systems__video--fwd { opacity: 0; }
.systems__item.is-rev .systems__video--rev { opacity: 1; }
.systems__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,28,46,0) 40%, rgba(17,28,46,0.92) 100%); }
.systems__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 32px; display: flex; flex-direction: column; gap: 8px; }
.systems__name { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 24px; color: var(--text-on-dark); }
.systems__text { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-on-dark-muted); max-width: 460px; }
@media (min-width: 861px) {
  /* Feste Zeilenhöhe: beim Auffahren ändert sich nur die Breite, nicht die Höhe
     → kein Layout-Thrash pro Frame, gleichmäßige Animation. */
  .systems__row { height: clamp(340px, 32vw, 440px); }
  .systems__item { aspect-ratio: auto; height: 100%; }
}
@media (hover: hover) and (min-width: 861px) {
  .systems__row:hover .systems__item { flex-basis: calc(42% - 2px); }
  .systems__row .systems__item:hover, .systems__item:focus-visible { flex-basis: calc(58% - 2px); }
  .systems__item:hover .systems__scrim { background: linear-gradient(180deg, rgba(17,28,46,0) 45%, rgba(17,28,46,0.85) 100%); }
  .systems__item:hover, .systems__item:focus-visible { border-color: #B6BCFF; }
}

/* ---- TRACKING-DEMO (interaktiv, hell) ---- */
.tracker {
  position: relative; width: 100%; max-width: var(--page-max); margin-inline: auto;
  aspect-ratio: 16 / 8; overflow: hidden; cursor: none;
  border: 1px solid var(--border-line); background: transparent;
}
.tracker__cursor {
  position: absolute; top: 0; left: 0; z-index: 5; pointer-events: none;
  transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center;
  opacity: 0; transition: opacity .2s ease;
}
.tracker.is-active .tracker__cursor { opacity: 1; }
.tracker__cursor-label {
  font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: .5px;
  text-transform: uppercase; color: var(--ddt-red); margin-bottom: 4px; white-space: nowrap;
}
.tracker__cursor-box { width: 56px; height: 56px; border: 2px solid var(--ddt-red); background: transparent; animation: tracker-pulse 1.5s infinite ease-in-out; }
.tracker__trail { position: absolute; width: 48px; height: 48px; border-radius: 50%; z-index: 4; pointer-events: none; transform: translate(-50%, -50%); filter: blur(10px); animation: tracker-fade 1.8s ease-out forwards; }
.tracker__log {
  position: absolute; top: 50%; right: 24px; transform: translateY(-50%); z-index: 6;
  width: 230px; max-height: 60%; padding: 18px 20px; overflow: hidden;
  color: #fff; font-family: var(--font-body); font-size: 12px; line-height: 1.5;
  background-color: rgba(17,28,46,0.72);
  background-image: url("../media/DDT_Line_BG.svg"); background-size: cover; background-position: center;
  border-top: 1px solid; border-bottom: 1px solid;
  border-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, #B6BCFF 35%, rgba(0,0,0,0) 100%) 1;
  opacity: 0; transition: opacity .2s ease;
}
.tracker.is-active .tracker__log { opacity: 1; }
.tracker__log-title { font-family: var(--font-display); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--ddt-red); margin-bottom: 8px; font-size: 12px; }
.tracker__log-list { list-style: none; margin: 0; padding: 0; }
.tracker__log-list li { margin-bottom: 5px; color: rgba(255,255,255,0.85); font-variant-numeric: tabular-nums; }
.tracker__hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3;
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.78);
  background: rgba(17,28,46,0.6); padding: 6px 14px; transition: opacity .2s ease;
}
.tracker.is-active .tracker__hint { opacity: 0; }
@keyframes tracker-pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .7; } 100% { transform: scale(1); opacity: 1; } }
@keyframes tracker-fade { 0% { background: var(--ddt-red); opacity: .85; } 55% { background: #FFC24B; opacity: .5; } 100% { background: #4B6BFF; opacity: 0; } }

/* ---- SPEED (Video, dunkel) ---- */
.speed { position: relative; overflow: hidden; background: var(--ddt-navy); color: var(--text-on-dark); padding: 96px var(--gutter); min-height: 52vh; display: flex; align-items: center; }
.speed__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.speed__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(88deg, rgba(17,28,46,0.95) 25%, rgba(17,28,46,0.30) 100%); }
.speed__inner { position: relative; z-index: 2; width: 100%; max-width: var(--page-max); margin-inline: auto; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.speed__title { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(32px, 4.5vw, 52px); line-height: 1.05; color: var(--text-on-dark); max-width: 720px; }
.speed__lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-on-dark-muted); max-width: 560px; }

/* ---- FOOTER (blau/Streifen + schwebende CTA-Card) ---- */
.footer { position: relative; }
.footer__cta {
  position: relative; z-index: 2;
  width: 100%; max-width: 1040px; margin: 0 auto -90px;
  padding: 40px 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  background-color: #141A29;
  background-image: url("../media/DDT_Line_BG_Center.svg"); background-size: cover; background-position: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  border-top: 1px solid; border-bottom: 1px solid;
  border-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, #B6BCFF 35%, rgba(0,0,0,0) 100%) 1;
}
.footer__cta-title { margin: 0 0 8px; font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 28px; line-height: 1.1; color: #fff; }
.footer__cta-lead { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.8); max-width: 520px; }
.footer__cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }
.footer__main {
  position: relative;
  background-color: var(--ddt-navy);
  background-image: url("../media/DDT_Line_BG.svg"); background-position: top right; background-repeat: no-repeat; background-size: cover;
  color: var(--text-on-dark);
  border-top: 1px solid;
  border-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, #B6BCFF 35%, rgba(0,0,0,0) 100%) 1;
  padding: calc(90px + 56px) var(--gutter) 40px;
}
.footer__main::before {
  content: ""; position: absolute; inset: 0; opacity: .03; pointer-events: none;
  background-image: url("../media/DDT-Logotype-White.svg"); background-position: bottom right; background-repeat: no-repeat; background-size: 48% auto;
}
.footer__cols { position: relative; z-index: 1; width: 100%; max-width: var(--page-max); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border-on-dark); }
.footer__tagline { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-on-dark-muted); }
.footer__nav, .footer__contact { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a, .footer__contact a { font-size: 14px; color: var(--text-on-dark-muted); }
.footer__nav a:hover, .footer__contact a:hover { color: #fff; }
.footer__nav-title { font-family: var(--font-display); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; color: #fff; margin-bottom: 2px; }
.footer__addr { font-size: 13px; line-height: 1.5; color: var(--text-on-dark-muted); }
.footer__bottom { position: relative; z-index: 1; width: 100%; max-width: var(--page-max); margin: 0 auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__copy { font-size: 13px; color: var(--text-on-dark-muted); }
.footer__legal { display: flex; gap: 20px; align-items: center; font-size: 13px; margin-left: auto; }
.footer__legal a { color: var(--text-on-dark-muted); }
.footer__legal a:hover { color: #fff; }
.footer__lang { color: var(--text-on-dark-muted); }
/* „Developed in Germany" - halbe Größe, in die untere rechte Ecke des Footers gepinnt
   (nicht in die Copyright-Leiste). */
.footer__badge { position: absolute; right: var(--gutter); bottom: 16px; z-index: 2; height: 21px; width: auto; opacity: 0.85; }

/* Rechtstexte (Impressum / Datenschutz) */
.legal-prose { font-size: 15.5px; line-height: 1.7; color: var(--text-muted); }
.legal-prose h2 { font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 20px; color: var(--text-primary); margin: 34px 0 10px; }
.legal-prose h3 { font-size: 15px; font-weight: 700; color: var(--text-primary); margin: 22px 0 6px; }
.legal-prose p { margin: 0 0 14px; }
.legal-prose a { color: var(--ddt-red); }
.legal-prose a:hover { text-decoration: underline; }
.legal-prose ul { margin: 0 0 14px; padding-left: 20px; }
.legal-prose li { margin: 0 0 6px; }
.legal-prose strong { color: var(--text-primary); }

/* Full-Bleed Bild-Hintergrund je Sektion, nach links (bei .flip nach rechts)
   transparent ausfadend - gleiches Konzept wie die Branchen-Seite. */
.mediableed { position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 560px; padding-top: 88px; padding-bottom: 88px; }
.mediableed__bg { position: absolute; top: 0; bottom: 0; left: 50%; right: 0; z-index: 0; pointer-events: none; max-width: none; margin: 0;
  background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 74%, transparent 100%);
          mask-image: linear-gradient(to left, #000 0%, #000 74%, transparent 100%); }
.mediableed__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(247,248,250,0) 0%, rgba(247,248,250,0) 66%, #F7F8FA 100%); }
.mediableed__inner { position: relative; z-index: 1; }
.mediableed__text { max-width: 560px; }
.mediableed.flip .mediableed__text { margin-left: auto; }
.mediableed.flip .mediableed__bg { left: 0; right: 50%; background-position: center;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 74%, transparent 100%);
          mask-image: linear-gradient(to right, #000 0%, #000 74%, transparent 100%); }
.mediableed.flip .mediableed__bg::after { background: linear-gradient(to right, rgba(247,248,250,0) 0%, rgba(247,248,250,0) 66%, #F7F8FA 100%); }
@media (max-width: 900px) {
  .mediableed { min-height: 0; }
  .mediableed__bg, .mediableed.flip .mediableed__bg { left: 0; right: 0; background-position: center;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.5) 55%, transparent 92%);
            mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.5) 55%, transparent 92%); }
  .mediableed__bg::after, .mediableed.flip .mediableed__bg::after {
    background: linear-gradient(to bottom, rgba(247,248,250,.55), rgba(247,248,250,.8)); }
  .mediableed__text, .mediableed.flip .mediableed__text { max-width: none; margin: 0; }
}
@media (max-width: 640px) { .footer__badge { position: static; height: 18px; margin: 6px 0 0 auto; } }

/* ---- Responsive für die neuen Elemente ---- */
@media (max-width: 860px) {
  .systems__row { flex-direction: column; }
  .systems__item { flex: 0 0 auto; width: 100%; aspect-ratio: 16 / 9; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .speed__video { display: none; }
  .speed__overlay { background: var(--ddt-navy); }
  .tracker { aspect-ratio: 4 / 3; cursor: auto; }
  .footer__cta { flex-direction: column; align-items: flex-start; margin-bottom: -70px; padding: 28px 24px; }
  .footer__main { padding-top: calc(70px + 40px); }
  .footer__cols { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .tracker__cursor-box { animation: none; }
  .btn:hover, .systems__item:hover { transform: none; }
}
