/*html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}
*/

@font-face {
  font-family: 'Apalu';
  src: url('../assets/fonts/APALU.TTF') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Mona Sans';
  src: url('../assets/fonts/MONASANS-VARIABLEFONT_WDTH,WGHT.TTF') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #ff5a00;
  --blue: #347dc1;
  --darkBlue: #134675;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Make images scale naturally to avoid distortion on small screens */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0a0a0a;
  color: white;
}

/* Prevent accidental horizontal overflow on small screens */
body, html {
  max-width: 100vw;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%) translateY(-100%);
  background: rgba(255, 255, 255, 0.95);
  color: #0a0a0a;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateX(-50%) translateY(0);
}

/* Container */
.container {
  width: 90%;
  max-width: 1350px;
  margin: auto;
}

/* HEADER */
.header {
  position: fixed;
  height: 120px;
  width: 100%;
  top: 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.logo img {
  width: auto;
  height: clamp(40px, 8vw, 96px);
  max-width: 260px;
  display: block;
}

/* keep logo pinned to left inside the nav container */
.logo {
  margin-right: auto;
  display: flex;
  align-items: center;
}

.logo img:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  padding: 8px 0;
}

.nav a {
  margin-left: 30px;
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

.nav a:hover {
  color: rgb(87, 176, 254);
}

.hero {
  position: relative;
  height: 300vh; /* Beibehalten: Schnellerer Scrollweg */
  
  /* GEÄNDERT: Von "clip" oder "hidden" auf "visible" setzen! 
     Das erlaubt dem Text, beim Scrollen frei nach oben/unten zu fließen */
  overflow: visible; 
}

#scrollVideo {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
  z-index: 1;
}

/* ==========================================================================
   HERO CONTENT (Komplett aufgeräumt und zusammengeführt)
   ========================================================================== */
.hero-content {
  position: relative;
  width: min(88vw, 980px);
  
  /* Wir holen den Text noch ein Stück höher (60% statt 68%), 
     damit er definitiv mitten im Video steht */
  top: 50%; 
  left: 8%;
  transform: translateY(-50%);
  z-index: 2;
  
  /* Zwingt den Browser, den Text niemals zu beschneiden */
  overflow: visible !important; 
}

.hero-subtitle {
  font-size: 14px;
  letter-spacing: 4px;
  margin-bottom: 20px;
  color: white;
  backdrop-filter: blur(10px);
  width: min(680px, 90%);
  max-width: 680px;
  height: auto;
}

/* Responsive header/nav behavior */
@media (max-width: 992px) {
  .logo img {
    height: clamp(36px, 9vw, 80px);
  }
  .nav {
    padding: 6px 0;
  }
}

@media (max-width: 768px) {
  .container.nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav {
    width: 100%;
    align-items: center;
  }

  .nav nav {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav a {
    margin-left: 0;
    margin-right: 8px;
    padding: 6px 0;
    font-size: 14px;
  }

  /* Reduce subtitle letter-spacing and ensure it fits */
  .hero-subtitle {
    letter-spacing: 1px;
    font-size: 13px;
    width: 90%;
  }

}
.hero-content p{
  font-size: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content h1 {
  font-family: 'Antonio', sans-serif;
  font-size: clamp(80px, 20vw, 140px);
  text-transform: uppercase;
  line-height: 0.9;
  font-weight: 100;
  margin-bottom: 30px;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

/* Verhindert, dass der Button die Maus-Events für das Video blockiert */
.hero-btn {
  display: inline-block;
  padding: 14px 28px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.2);
  color: white;
  text-decoration: none;
  border-radius: 14px;
  position: relative;
  z-index: 3;
  pointer-events: all; /* Button klickbar lassen */
}

.hero-btn:hover {
  background: var(--blue);;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3),
    rgba(0,0,0,0.6)
  );
  pointer-events: none;
  z-index: 1;
}

.cta {
  display: inline-block;
  padding: 15px 30px;
  border: 1px solid white;
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

.cta:hover {
  background: #cb0ff1;
  border-color: hsl(305, 100%, 38%);
}

/* CONTENT */
.content {
  background: #0f0f0f;
  padding: 180px 0;
}

.block {
  padding: 80px;
  background: #161616;

  border: 1px solid rgba(255,255,255,0.06);

  border-radius: 24px;

  margin-bottom: 40px;
}

.block h2 {
  margin-bottom: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(80px);
  transition: all 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   LEISTUNGEN / SERVICES
========================================= */

.services {
  position: relative;
  padding: 180px 8%;
  background:
    linear-gradient(
      to bottom,
      #0b0f16,
      #101826
    );
  overflow: hidden;
}

/* Hintergrund-Linien / Shapes */
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      120deg,
      rgba(243, 1, 1, 0.08),
      transparent 40%
    );
  pointer-events: none;
}

/* HEADER */
.services-header {
  margin-bottom: 80px;
  max-width: 900px;
}

.services-header p {
  color: var(--blue);
  letter-spacing: 4px;
  font-size: 20px;
  margin-bottom: 20px;
}

.services-header h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.05;
  font-weight: 200;
  color: white;
}

/* GRID */
.services-grid {
  display: grid;
  grid-template-columns:
  repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* CARD */
.service-card {
  position: relative;

  padding: 40px;

  min-height: 320px;

  border-radius: 28px;

  background:
    rgba(255,255,255,0.04);

  border:
    1px solid rgba(255,255,255,0.08);

  backdrop-filter: blur(12px);

  overflow: hidden;

  transition:
    transform 0.4s ease,
    border 0.4s ease,
    background 0.4s ease,
    box-shadow 0.4s ease;
}

/* Hover Glow */
.service-card:hover {
  transform: translateY(-10px);

  border:
    1px solid rgba(52,125,193,0.4);

  background:
    rgba(52,125,193,0.08);

  box-shadow:
    0 0 40px rgba(52,125,193,0.15);
}

/* ==========================================================================
   SERVICES ICONS STYLING
   ========================================================================== */

/* Container für das Icon – ersetzt den Platzhalter der alten Zahlen */
.service-icon-container {
  display: flex;
  align-items: center;
  justify-content: start;
  margin-bottom: 30px;
  height: 70px; /* Gleiche Höhe wie deine alten Zahlen */
}

/* Das eigentliche SVG-Icon */
.service-icon {
  width: 54px;
  height: 54px;
  /* Nutzt deine vordefinierte hellblaue CSS-Variable */
  color: var(--blue); 
  opacity: 0.8;
  transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
}

/* Interaktions-Effekt: Wenn man über die Karte fährt, leuchtet das Icon auf */
.service-card:hover .service-icon {
  opacity: 1;
  transform: scale(1.08);
  /* Erzeugt einen eleganten, subtilen Neon-Glow-Effekt passend zur Karte */
  filter: drop-shadow(0 0 8px rgba(52, 125, 193, 0.5));
}


/* Titel */
.service-card h3 {
  font-size: 28px;

  margin-bottom: 20px;

  color: white;

  line-height: 1.1;
}

/* Text */
.service-card p {
  font-size: 17px;

  line-height: 1.4;

  color:
    rgba(255,255,255,0.75);

  max-width: 320px;
}

/* Dezente Liniengrafik */
.service-card::after {
  content: "";

  position: absolute;

  width: 220px;
  height: 220px;

  right: -60px;
  bottom: -60px;

  border-radius: 50%;

  border:
    1px solid rgba(52,125,193,0.08);
}

/* RESPONSIVE */
@media (max-width: 768px) {

  .services {
    padding: 120px 6%;
  }

  .services-header {
    margin-bottom: 60px;
  }

  .service-card {
    min-height: auto;
  }

  .service-card h3 {
    font-size: 26px;
  }

  .service-card span {
    font-size: 54px;
  }
}


/* =========================================
   PROCESS SECTION
========================================= */

.process {
  position: relative;

  padding: 180px 0;

  background:
    linear-gradient(
      to bottom,
      #0b0f16,
      #101826
    );

  overflow: hidden;
}

/* HEADER */
.process-header {
  padding-left: 8%;
  margin-bottom: 70px;
  max-width: 1000px;
}

.process-header p {
  color: var(--blue);
  letter-spacing: 4px;
  font-size: 20px;
  margin-bottom: 20px;
}

.process-header h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.05;
  font-weight: 200;
  color: white;
}

/* =========================================
   HORIZONTAL TRACK
========================================= */

.process-track {
  display: flex;

  gap: 30px;

  width: max-content;

  padding-left: 100vw;
  padding-right: 15vw;
}

/* =========================================
   CARD
========================================= */

.process-card {
  position: relative;

  width: 260px;
  height: 500px;

  flex-shrink: 0;

  overflow: hidden;

  border-radius: 30px;

  background: #111;

  border:
    1px solid rgba(255,255,255,0.08);
}

/* IMAGE */

.process-card img {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 1.2s ease;
}

/* OVERLAY */

.process-overlay {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.88),
      rgba(0,0,0,0.25)
    );

  z-index: 1;
}

/* CONTENT */

.process-content {
  position: absolute;

  inset: 0;

  z-index: 2;

  display: flex;

  flex-direction: column;

  justify-content: flex-start;

  padding: 20px;
}

/* NUMBER */

.process-content span {
  display: block;

  font-size: 58px;

  font-weight: 700;

  line-height: 1;

  margin-bottom: 20px;

  color:
    rgba(255,255,255,0.16);
}

/* TITLE */

.process-content h3 {
  font-size: 24px;

  line-height: 1.1;

  margin-bottom: 16px;

  color: white;
}

/* TEXT */

.process-content p {
  font-size: 15px;

  line-height: 1.6;

  color:
    rgba(255,255,255,0.78);
}

/* HOVER */

.process-card:hover img {
  transform: scale(1.08);
}

.process-card:hover {
  border:
    1px solid rgba(52,125,193,0.5);

  box-shadow:
    0 0 40px rgba(52,125,193,0.18);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1200px) {

  .process-track {
    padding-left: 10vw;
  }
}

@media (max-width: 768px) {

  .process {
    padding: 120px 0;
  }

  .process-header {
    padding-left: 6%;
    margin-bottom: 50px;
  }

  .process-card {
    width: 240px;
    height: 500px;
  }

  .process-content {
    padding: 25px;
  }

  .process-content h3 {
    font-size: 22px;
  }

  .process-content span {
    font-size: 48px;
  }
}

/* =========================================
   ABOUT
========================================= */

.about-section {
  position: relative;
  
  /* Muss auf 100vh stehen, wenn GSAP pin: true nutzt, damit das Skript 
     die mathematisch exakte Höhe für den Scroll-Weg berechnen kann */
  min-height: 100vh; 

  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 120px 8%;
  background: var(--darkBlue);
}

.reveal-title {
  font-family: 'Mona Sans', 'Antonio', sans-serif;
  font-size: clamp(40px, 6vw, 100px); /* Schutz vor Zeilenumbrüchen */
  line-height: 1.2;
  font-weight: 200;
  color: var(--blue);
  text-transform: uppercase;
  max-width: 1250px;
  text-align: center;
  position: relative;
  height: auto;
}

.reveal-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100px) rotate(8deg);
  filter: blur(8px);
  will-change: transform, opacity;
}

/* =========================================
   ABOUT DETAIL
========================================= */

.about-detail {
  position: relative;

  background: #f4f4f4;

  overflow: hidden;

  padding: 180px 6%;
}

/* Canvas Netzwerk */
#networkCanvas {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  z-index: 1;

  opacity: 0.35;

  pointer-events: none;
}

/* Hintergrundgrafik */
.about-bg {
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(rgba(52,125,193,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52,125,193,0.05) 1px, transparent 1px);

  background-size: 80px 80px;

  opacity: 0.5;

  pointer-events: none;
}

/* Inhalt */
.about-detail-inner {
  position: relative;
  z-index: 3;

  max-width: 1700px;
  margin: auto;
}

/* GRID */
.about-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 80px;
}

/* CARD */
.about-card h2 {
  font-family: 'Montserrat', sans-serif;

  font-size: clamp(28px, 1.9vw, 42px);

  line-height: 0.5;

  font-weight: 300;

  color: #134675;

  margin-bottom: 10px;

  text-transform: uppercase;
}

.about-card h4 {
  font-family: 'Montserrat', sans-serif;

  font-size: 18px;

  color: #347dc1;

  font-weight: 400;

  margin-bottom: 40px;
}

.about-card p {
  font-size: 19px;

  line-height: 1.8;

  color: #111;

  font-weight: 400;
}

.about-card em {
  font-style: italic;
}

/* SIGNATURE */
.about-signature {
  margin-top: 50px;
}

.about-signature h3 {
  font-family: 'Apalu', sans-serif;

  font-size: 28px;

  color: #111;

  font-weight: 100;
}

/* RESPONSIVE */
@media (max-width: 1200px) {

  .about-grid {
    grid-template-columns: 1fr;
    gap: 100px;
  }

  .about-card h2 {
    font-size: 42px;
  }
}

@media (max-width: 768px) {

  .about-detail {
    padding: 120px 8%;
  }

  .about-card h2 {
    font-size: 34px;
  }

  .about-card p {
    font-size: 17px;
  }
}

 /*Sticky CTA*/
.sticky-cta {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);

  border: 2px solid rgba(255,255,255,0.15);

  color:var(--blue);
  text-decoration: none;

  padding: 18px 12px;
  border-radius: 14px;

  writing-mode: vertical-rl;
  text-orientation: mixed;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;

  transition: 0.3s ease;

  z-index: 999;
}


.sticky-cta:hover {
  background: var(--darkBlue);
  transform: translateY(-50%) scale(1.05);
}


.cursor {
  width: 24px;
  height: 24px;

  border: 1px solid rgba(255,255,255,0.5);

  border-radius: 50%;

  position: fixed;

  pointer-events: none;

  z-index: 9999;

  transform: translate(-50%, -50%);

  backdrop-filter: invert(1);

  transition:
    width 0.3s ease,
    height 0.3s ease,
    border 0.3s ease;
}




/* =========================================
   FOOTER
========================================= */

.footer {
  position: relative;
  padding: 120px 7% 50px;
  background:
    linear-gradient(
      180deg,
      #040b16 0%,
      #02050b 100%
    );
  overflow: hidden;
}

/* Glow Effekt */

.footer::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  background:
    radial-gradient(
      circle,
      rgba(52,125,193,0.15),
      transparent 70%
    );
  top: -250px;
  left: -200px;

  pointer-events: none;
}

.footer-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52,125,193,0.18), transparent 55%);
  top: -160px;
  right: -120px;
  pointer-events: none;
  z-index: 1;
}

/* MAIN BOX */

.footer-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns:
    1.5fr
    1fr
    0.9fr;
  gap: 80px;
  padding: 70px;
  border-radius: 40px;
  background:
    rgba(255,255,255,0.03);
  border:
    1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}

/* LEFT */

.footer-label {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--blue);
}

.footer-left h2 {
  max-width: 520px;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.05;
  font-weight: 200;
  color: white;
  margin-bottom: 50px;
}

/* FEATURES */

.footer-features {
  display: flex;
  gap: 50px;
  margin-top: 40px;
}

.footer-feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-feature span {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    rgba(52,125,193,0.12);
  color: #4ea1ef;
  font-size: 20px;
}

.footer-feature p {
  color:
    rgba(255,255,255,0.8);
  font-size: 16px;
}

/* NAVIGATION */

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
}

.footer-nav h3,
.footer-contact h3 {
  font-size: 30px;
  margin-bottom: 35px;
}

.footer-nav a {
  color:
    rgba(255,255,255,0.72);
  text-decoration: none;
  margin-bottom: 18px;
  transition: 0.3s ease;
}

.footer-nav a:hover {
  color: #4ea1ef;
  transform: translateX(6px);
}

/* CONTACT */

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 28px;
}

.footer-contact-item span {
  font-size: 24px;
  color: var(--blue);
  min-width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Dein cooler Glow-Effekt bleibt bestehen */
  text-shadow: 0 0 12px rgba(52,125,193,0.45); 
}

/* NEU: Steuert die Farbe und Größe des SVG-Icons */
.footer-contact-item svg {
  width: 24px;
  height: 24px;
  stroke: var(--blue); /* Färbt die Linien des Icons blau */
  filter: drop-shadow(0 0 8px rgba(52,125,193,0.5)); /* Verstärkt das Leuchten im Web */
}

.footer-contact-item p,
.footer-contact-item a {
  color:
    rgba(255,255,255,0.75);
  text-decoration: none;
  line-height: 1.7;
}

/* KARRIERE BOX */

.footer-career {
  margin-top: 0px;
  padding: 30px;
  border-radius: 26px;
  background:
    linear-gradient(
      135deg,
      rgba(52,125,193,0.16),
      rgba(255,255,255,0.03)
    );
  border:
    1px solid rgba(52,125,193,0.22);
}

.career-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background:
    rgba(52,125,193,0.15);
  color: #4ea1ef;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.footer-career h4 {
  font-size: 26px;
  margin-bottom: 16px;
}

.footer-career p {
  color:
    rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 24px;
}

.career-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 14px;
  background: #347dc1;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.career-btn:hover {
  transform: translateY(-4px);
  background: #4ea1ef;
  box-shadow:
    0 10px 30px rgba(52,125,193,0.35);
}

/* LOGO CENTER */

.footer-logo-center {
  display: flex;
  justify-content: center;
  margin: 70px 0 0px;
}

.footer-logo-center img {
  width: 150px;
  opacity: 0.95;
}

/* BOTTOM */

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color:
    rgba(255,255,255,0.6);
}

.footer-legal {
  display: flex;
  gap: 30px;
}

.footer-legal a {
  color:
    rgba(255,255,255,0.7);
  text-decoration: none;
  transition: 0.3s ease;
}

.footer-legal a:hover {
  color: #4ea1ef;
}

/* RESPONSIVE */

@media (max-width: 992px) {

  .footer-container {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 50px 35px;
  }

  .footer-features {
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {

  .footer {
    padding: 100px 6% 40px;
  }

  .footer-left h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
  }

  .footer-nav h3,
  .footer-contact h3 {
    font-size: 24px;
  }

  .footer-features {
    flex-direction: column;
    gap: 25px;
  }

  .footer-logo-center img {
    width: 120px;
  }
}


/* =========================================
   RECHTLICHE SEITEN (Impressum & Datenschutz)
========================================= */

/* Hintergrund an den Rest der Website anpassen */
body.legal-page {
  background: #0a0a0a;
  color: #cbd5e1;
  font-family: 'Inter', sans-serif;
  padding: 60px 0;
}

/* Zentrierung auf dem Bildschirm */
.legal-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding: 60px 6%;
  margin-top: 100px;
}

/* Die Box im Stil deiner ".block"-Elemente auf der Hauptseite */
.legal-box {
  width: 90%;
  max-width: 800px;
  background: #161616;
  padding: 50px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Hauptüberschrift (Groß und dominant) */
.legal-box h1 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 15px;
}

/* Zwischenüberschriften im Marken-Blau */
.legal-box h2 {
  font-size: 1.25rem;
  color: var(--blue);
  margin-top: 35px;
  margin-bottom: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Textformatierung für hohe Lesbarkeit */
.legal-box p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 20px;
}

/* Listen-Styling in der Datenschutzerklärung */
.legal-box ul {
  margin-left: 20px;
  margin-bottom: 25px;
}

.legal-box li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #cbd5e1;
  margin-bottom: 8px;
}

/* Mobil-Optimierung für kleinere Bildschirme */
@media (max-width: 768px) {
  body.legal-page {
    padding: 30px 0;
  }
  .legal-box {
    padding: 30px 20px;
    border-radius: 16px;
  }
  .legal-box h1 {
    font-size: 2rem;
  }
}

/* end legal-page adjustments */

/* Stronger fix: make footer fully transparent on legal pages to match index visual */
body.legal-page .footer {
  background: transparent !important;
  padding: 40px 7% 20px !important;
}

body.legal-page .footer-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.legal-page .footer::before {
  display: none !important;
}

body.legal-page .footer-bottom,
body.legal-page .footer-logo-center {
  background: transparent !important;
}

/* =========================================
   PRODUCTION RESPONSIVE HARDENING
   Diese Schicht bewahrt das bestehende Branding und stabilisiert Navigation,
   Hero, Touch-Bedienung, iOS Safari und Accessibility.
========================================= */

:root {
  --container: min(90vw, 1350px);
  --header-height: clamp(64px, 8vw, 112px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  body {
    overflow-x: hidden;
  }
}

/* Einheitliche, sichtbare Fokuszustände für Tastaturbedienung. */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #4ea1ef;
  outline-offset: 4px;
  border-radius: 10px;
}

/* Fallback für Browser ohne backdrop-filter, besonders ältere Firefox/Safari-Versionen. */
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .header,
  .hero-btn,
  .service-card,
  .footer-container,
  .sticky-cta {
    background: rgba(4, 11, 22, 0.92);
  }
}

.header {
  min-height: var(--header-height);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.container,
.container.nav {
  width: var(--container);
}

.container.nav {
  position: relative;
  flex-direction: row;
  gap: clamp(16px, 3vw, 42px);
  min-height: var(--header-height);
  padding: max(8px, env(safe-area-inset-top, 0px)) 0 8px;
}

.logo a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.primary-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 40px);
}

.nav .primary-navigation a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-left: 0;
  font-size: clamp(0.92rem, 1vw, 1rem);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#scrollVideo {
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  background: #040b16;
  transform: translateZ(0);
  will-change: transform;
}

.hero-content p {
  justify-content: flex-start;
  font-size: clamp(0.85rem, 2vw, 1.55rem);
}

.hero-content h1 {
  font-size: clamp(3.8rem, 13vw, 8.75rem);
  overflow-wrap: normal;
}

.hero-btn,
.career-btn,
.sticky-cta {
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.services,
.process,
.about-section,
.about-detail,
.footer {
  contain: layout paint;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.service-card {
  border-radius: 18px;
}

.process-track {
  max-width: none;
  will-change: transform;
}

.process-card {
  width: clamp(230px, 22vw, 280px);
  border-radius: 18px;
}

.about-card h2 {
  line-height: 1;
  overflow-wrap: normal;
}

.about-card p,
.footer-contact-item p,
.footer-contact-item a {
  overflow-wrap: normal;
}

.cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
  }
}

@media (max-width: 900px) {
  .container.nav {
    align-items: center;
  }

  .nav-toggle {
    display: inline-block;
    position: relative;
    z-index: 1002;
    margin-left: auto;
    width: clamp(30px, 7.5vw, 36px);
    height: clamp(30px, 7.5vw, 36px);
    padding: 0;
  }

  .primary-navigation {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    background: rgba(4, 11, 22, 0.96);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  body.nav-open .primary-navigation {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav .primary-navigation a {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav .primary-navigation a:hover,
  .nav .primary-navigation a:focus-visible {
    background: rgba(52,125,193,0.16);
  }
}

@media (max-width: 768px) {
  .container.nav {
    flex-direction: row;
  }

  .logo {
    width: auto;
  }

  .logo img {
    max-width: min(46vw, 180px);
  }

  .hero {
    height: 520vh;
  }

  .hero-content {
    position: absolute;
    top: 87%;
    left: 4%;
    right: 4%;
    width: auto;
    transform: translateY(-50%);
    z-index: 2;
    max-width: calc(100vw - 32px);
    overflow: hidden;
  }

  .hero-subtitle {
    letter-spacing: 0.12em;
  }

  .hero-content h1 {
    font-size: clamp(2.5rem, 14vw, 4.8rem);
    word-break: break-word;
    overflow-wrap: break-word;
    width: 100%;
  }

  .hero-btn {
    padding: 12px 20px;
    border-radius: 12px;
  }

  .process {
    padding: 120px 6%;
  }

  .process-header {
    padding-left: 0;
  }

  /* Auf Touch-Geräten wird der Prozess vertikal, damit kein Body-Overflow entsteht. */
  .process-track {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 0;
    transform: none !important;
  }

  .process-card {
    width: 100%;
    height: min(500px, 118vw);
  }

  .about-detail {
    padding-inline: 6%;
  }

  .footer-container {
    padding: 36px 22px;
    border-radius: 18px;
  }

  .sticky-cta {
    top: auto;
    right: 16px;
    bottom: calc(16px + var(--safe-bottom));
    transform: none;
    writing-mode: horizontal-tb;
    padding: 12px 16px;
  }

  .sticky-cta:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .services,
  .about-section,
  .about-detail {
    padding-inline: 5%;
  }

  .services-header p,
  .process-header p,
  .footer-label {
    letter-spacing: 0.16em;
    font-size: 0.78rem;
  }

  .service-card {
    padding: 28px;
  }

  .footer-left h2 {
    font-size: clamp(1.8rem, 10vw, 2.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .hero {
    height: 100svh;
    min-height: 640px;
  }

  #scrollVideo {
    position: absolute;
    inset: 0;
  }
}

/* =========================================
   FINAL REQUEST FIXES
   Nur gezielte Korrekturen für Header-Größe, Android/Mobile-Umbrüche
   und flüssigeres Video-Scrubbing. Farben, Navigation und Animation bleiben erhalten.
========================================= */

:root {
  --header-height: clamp(54px, 5.4vw, 78px);
}

.header {
  min-height: var(--header-height);
}

.container.nav {
  min-height: var(--header-height);
  padding-block: max(3px, env(safe-area-inset-top, 0px)) 3px;
}

.logo a {
  overflow: visible;
}

.logo img {
  width: auto;
  height: clamp(95px, 22vw, 150px);
  max-width: 500px;
  display: block;
  transform: none;
  transition: transform .25s ease;
  /* NEU: Löst das Logo optisch aus dem Balken */
  position: relative;
  z-index: 10;
  /* Verschiebt das Logo leicht nach oben/unten, ohne den Balken zu dehnen */
  margin-top: -15px; 
  margin-bottom: -15px; 
  margin-left: -80px;
  margin-left: -120px; 
}

.logo img:hover {
  transform: scale(1.05);
}

/* Keine Ein-Buchstaben-Umbrüche: alte anywhere-Regeln werden bewusst neutralisiert. */
.hero-content h1,
.hero-subtitle,
.hero-btn,
.nav .primary-navigation a,
.services-header p,
.services-header h2,
.service-card h3,
.service-card p,
.process-header p,
.process-header h2,
.process-content h3,
.process-content p,
.reveal-title,
.about-card h2,
.about-card h4,
.about-card p,
.about-signature h3,
.footer-label,
.footer-left h2,
.footer-feature p,
.footer-contact h3,
.footer-contact-item p,
.footer-contact-item a,
.footer-career h4,
.footer-career p,
.career-badge,
.career-btn,
.footer-bottom p,
.footer-legal a,
.legal-box h1,
.legal-box h2,
.legal-box p,
.legal-box li {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
  line-break: auto;
}

.hero-content h1 {
  white-space: normal;
}

.hero-subtitle {
  display: block;
  width: max-content;
  max-width: calc(100vw - 32px);
  white-space: nowrap;
  text-wrap: nowrap;
  font-size: clamp(0.62rem, 2.55vw, 1.55rem);
  letter-spacing: clamp(0.08em, 0.9vw, 0.24em);
}

.reveal-title .word {
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .container.nav {
    min-height: clamp(52px, 13vw, 68px);
  }

.logo img {
  height: clamp(64px, 18vw, 92px);
  max-width: 280px;
  transform: none;
  margin-left: 0; 
}

  .logo img:hover {
    transform: scale(1.24);
  }
}

@media (max-width: 768px) {
  .hero-subtitle {
    width: max-content;
    max-width: calc(100vw - 24px);
    font-size: clamp(0.58rem, 2.45vw, 0.78rem);
    letter-spacing: clamp(0.055em, 0.55vw, 0.12em);
  }

  .about-card h2 {
    font-size: clamp(1.45rem, 7.4vw, 2.125rem);
  }

  .service-card h3,
  .process-content h3,
  .footer-career h4 {
    font-size: clamp(1.35rem, 5.8vw, 1.625rem);
  }
}

@media (max-width: 380px) {
  .hero-subtitle {
    font-size: clamp(0.52rem, 2.28vw, 0.68rem);
    letter-spacing: 0.045em;
  }

  .about-card h2 {
    font-size: clamp(1.28rem, 6.8vw, 1.75rem);
  }

  .legal-box h1 {
    font-size: clamp(1.8rem, 6.5vw, 2.25rem);
  }
}

/* ==========================================================================
   NACHRECHTS / RESPONSIVE RESPONSIVE (Ganz unten im CSS platziere)
   ========================================================================= */

/* --- TABLETS & KLEINE LAPTOPS (max-width: 992px) --- */
@media (max-width: 992px) {
  /* HIER sammelst du alle Einträge für diese Größe, z. B.: */
  .logo img {
    height: clamp(36px, 9vw, 80px);
  }
  .nav {
    padding: 6px 0;
  }
}

/* --- SMARTPHONES & HOCHFORMAT (max-width: 768px) --- */
@media (max-width: 768px) {
  /* HIER wandern ALLE deine Handy-Anpassungen rein (keine doppelten Blöcken mehr!): */
  .header {
    height: clamp(56px, 14vw, 90px);
  }
  .container.nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: clamp(56px, 14vw, 90px);
    padding-block: 8px;
  }
  .nav {
    width: auto;
    align-items: center;
  }
  .logo {
    flex-shrink: 0;
  }
  .logo img {
    height: clamp(32px, 18vw, 90px);
    max-width: 180px;
    margin-left: 0;
    display: block;
  }
  .nav-toggle {
    width: clamp(28px, 7vw, 34px);
    height: clamp(28px, 7vw, 34px);
    border-radius: 9px;
  }
  .nav-toggle span {
    width: 14px;
    margin: 3px auto;
  }
  .primary-navigation {
    gap: 8px;
    padding: 10px;
    max-width: calc(100vw - 24px);
    top: calc(100% + 6px);
  }
  .nav .primary-navigation a {
    padding: 10px 12px;
  }
  .about-section {
    padding: 100px 6%;
    min-height: 100svh;
  }
  .reveal-title {
    font-size: clamp(32px, 10vw, 70px);
    top: 0;
    margin: 0;
  }

  .services {
    padding: 120px 6%;
  }
  /* ... alle weiteren Handy-Eigenschaften untereinander wegschreiben ... */

  .legal-box h1 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }
}
