
}html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}
html, body {
  min-height: 100%;
  overflow-x: hidden;
}

#services,
#about,
#contact {
  scroll-margin-top: 140px;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  max-width: 100%;
  color: var(--text);
}

p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #000000; /* Jetzt schwarz */
  box-shadow: 0 1px 8px rgba(0, 212, 255, 0.05); /* optional Cyan-Schimmer */
   min-height: 80px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.theme-toggle-below {
  cursor: pointer;
  font-size: 20px;
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  padding: 0;
}

/* Menü standardmäßig sichtbar auf Desktop */
.menu-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.menu a {
  text-decoration: none;
  color: var(--text-color, #fff);
  font-weight: 500;
}

/* Burger + Toggle nur auf Mobile */
.burger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .menu-container {
    display: none;
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding-top: 1rem;
  }

  .menu a {
    font-size: 1.2rem;
  }

  .burger {
    display: block;
  }

  /* Toggle sichtbar, wenn Checkbox aktiv */
  .menu-toggle:checked ~ .menu-container {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
  }
}

/* Optional: sanftes Einblenden */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}


.hero {
  background-color: #000000;
  padding: 100px 80px;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.hero-image img {
  max-width: 460px;
  height: auto;
  border-radius: 12px;

  mask-image: linear-gradient(to right, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);

  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero-text {
  flex: 1 1 500px;
}

.hero-text h1 {
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero-text p {
  font-size: 20px;
  color: #aaaaaa;
  max-width: 600px;
  margin-bottom: 32px;
}

.btn-primary {
  background-color: #00D4FF;
  color: white;
  border: none;
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  width: fit-content;
  transition: background-color 0.3s, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  background-color: #00b8e0;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 40px rgba(0, 212, 255, 0.3);
}
.services {
  background-color: #111111;
  padding: 100px 20px;
  text-align: center;
}

.services h2 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 48px;
}

/* Dynamisches Grid mit Abstand */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px; /* Abstand zwischen allen Karten */
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* Service-Karte */
.service-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.3);
}

.service-card .icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 16px;
  color: var(--secondary);
  line-height: 1.4;
  max-width: 90%;
}

/* Extra große Bildschirme */
@media (min-width: 1600px) {
  .services-grid {
    gap: 60px;
    max-width: 1600px;
  }

  .service-card {
    padding: 40px 28px;
  }

  .service-card h3 {
    font-size: 22px;
  }

  .service-card p {
    font-size: 17px;
  }
}
.about {
  background-color: #0f0f0f;
  padding: 140px 80px;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.about-text {
  flex: 1 1 55%;
  max-width: 700px;
  text-align: left;
}

.about-text h2 {
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  text-align: left;
  position: relative;
}

.about-text h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--primary);
  margin-top: 16px;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.about-text p {
  font-size: 20px;
  line-height: 1.8;
  color: var(--secondary);
}

.about-visual {
  flex: 1 1 35%;
  text-align: center;
}

/* === Animiertes AI Grid === */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(4, 28px);
  grid-gap: 20px;
  justify-content: center;
  padding: 20px;
  position: relative;
}

/* === AI Grid Zellen === */
.cell {
  width: 28px;
  height: 28px;
  background-color: rgba(0, 212, 255, 0.15);
  border-radius: 4px;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* Aktive Leuchtzelle */
.cell.active-glow {
  background-color: rgba(0, 212, 255, 0.95);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.8);
  transition: background-color 1.2s ease-out, box-shadow 1.2s ease-out;
}

/* Bei Hover über Grid: alle anderen dimmen */
.ai-grid:hover .cell:not(.active-glow) {
  background-color: rgba(0, 212, 255, 0.05);
  box-shadow: none;
}

/* Hover-Effekt direkt auf der Zelle */
.cell:hover {
  background-color: rgba(0, 212, 255, 0.95);
  box-shadow: 0 0 26px rgba(0, 212, 255, 0.8);
  transition: none;
  animation: none !important;
}

/* Wenn über dem Grid gehovert wird – alle anderen Zellen deaktivieren */
.ai-grid:hover .cell:not(:hover):not(.active-glow) {
  background-color: rgba(0, 212, 255, 0.05);
  box-shadow: none;
  animation: none;
}
transition: background-color 0.3s ease, box-shadow 0.3s ease 0.2s;
}
/* Automatisches Pulsieren, wenn nichts passiert */
@keyframes pulseCell {
  0%, 100% {
    background-color: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.1);
  }
  50% {
    background-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  }
}

@keyframes hoverHold {
  0%, 65% {
    background-color: rgba(0, 212, 255, 0.95);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.8);
  }
  100% {
    background-color: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.05);
    filter: blur(1px);
  }
}

@keyframes hoverGlow {
  0% {
    background-color: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.25);
  }
  20% {
    background-color: rgba(0, 212, 255, 0.9);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.6);
  }
  80% {
    background-color: rgba(0, 212, 255, 0.9);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.6);
  }
  100% {
    background-color: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.2);
  }
}

/* Schnelleres Hover-Leuchten */
@keyframes pulseHover {
  0%, 100% {
    background-color: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.25);
  }
  50% {
    background-color: rgba(0, 212, 255, 0.9);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.6);
  }
}

/* === Responsive Anpassungen === */
@media (max-width: 1024px) {
  .about-container {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .about-visual {
    align-self: center;
  }
}
.contact {
  position: relative;
  overflow: hidden;
  padding: 160px 40px;
  background-color: #000; /* Fallback */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
}

/* Videohintergrund */
.contact-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Textcontainer */
.contact-text {
  position: relative;
  z-index: 1;
  max-width: 680px;
  color: var(--text);
}

.contact-text h2 {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.contact-text p {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 32px;
  color: var(--secondary);
}

.contact-text a {
  color: #000;
  background-color: var(--primary);
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.contact-text a:hover {
  background-color: #00b8e0;
}

/* Tablet */
@media (max-width: 1199px) {
  .contact {
    padding: 120px 32px;
  }

  .contact-text h2 {
    font-size: 36px;
  }

  .contact-text p {
    font-size: 18px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .contact {
    padding: 100px 24px;
    background-color: #111;
  }

  .contact-video-bg {
    display: none;
  }

  .contact-text h2 {
    font-size: 28px;
  }

  .contact-text p {
    font-size: 16px;
  }

  .contact-text a {
    font-size: 16px;
    padding: 14px 28px;
  }
}

/* XL Desktop */
@media (min-width: 1600px) {
  .contact-text h2 {
    font-size: 52px;
  }

  .contact-text p {
    font-size: 22px;
  }

  .contact-text a {
    font-size: 20px;
    padding: 18px 40px;
  }
}

.footer {
  background-color: #1A1A1A;
  color: #ffffff;
  padding: 60px 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.footer-logo {
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #00D4FF;
}
.logo-img {
  height: 122px;
  width: auto;
  display: block;
  }

/* Burger Icon */
.burger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #00D4FF; /* Reines Cyan */
}
.burger:hover {
  color: #00b8e0;
}

/* Menü Standardzustand */
.menu {
  display: flex;
  gap: 32px;
  transition: all 0.4s ease;
}
/* Menü Toggle verstecken */
#menu-toggle {
  display: none;
}

/* Menü-Container Standardzustand: versteckt */
.menu-container {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 0 16px;
}
/* Wenn das Burger-Menü (Checkbox) aktiviert ist → Menü zeigen */
.menu-toggle:checked ~ .menu-container {
  display: flex;
  }
/* Responsive Menü */
@media (max-width: 768px) {
  html, body {
    font-size: 18px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .logo-img {
    height: 64px;
  }

  .burger {
    display: block;
    font-size: 32px;
    color: #00D4FF;
    cursor: pointer;
  }

  .menu-toggle {
    display: none;
  }

  .menu-container {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 20px;
    margin-top: 12px;
  }

  #menu-toggle:checked ~ .menu-container {
    display: flex;
  }

  .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0 16px;
  }

  .menu a {
    font-size: 22px;
    padding: 10px 0;
  }

  .language-theme-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    padding: 0 16px;
  }

  .language-switch img {
    width: 28px;
  }

  .theme-toggle-below span {
    font-size: 26px;
    padding-right: 16px;
  }

  .hero {
    padding: 40px 16px;
    text-align: center;
  }

  .hero-container {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .hero-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-text h1 {
    font-size: 32px;
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 18px;
    line-height: 1.5;
    max-width: 90%;
  }

  .btn-primary {
    font-size: 18px;
    padding: 16px 24px;
    margin-top: 16px;
  }
}
html {
  scroll-behavior: smooth;
}
.menu {
  padding-right: 16px;
}
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 100px 80px;
  flex-wrap: wrap;
}

.hero-image img {
  max-width: 460px;
  height: auto;
  border-radius: 12px;
}

.hero-text {
  flex: 1 1 500px;
}

.hero-text h1 {
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 20px;
  color: #666666;
  max-width: 600px;
  margin-bottom: 32px;
}
.language-switch {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  justify-content: flex-end;
  padding: 16px;
}

.language-switch img {
  width: 24px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.language-switch img:hover {
  transform: scale(1.1);
}
.section-divider {
  height: 2px;
  background-color: var(--divider-color);
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
}
:root {
  --divider-color: #00D4FF;
}
/
.language-theme-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding: 0 16px;
  margin-top: 8px;
}

.theme-toggle-below {
  cursor: pointer;
  font-size: 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  }
.theme-toggle-below span {
  padding-right: 0px;
  }
body {
  font-size: 18px;
  line-height: 1.6;
}

.menu a {
  font-size: 20px;
}

.hero-text h1 {
  font-size: 36px;
}

.hero-text p,
.about-text p,
.contact p {
  font-size: 18px;
}
@media (max-width: 480px) {
  body {
    font-size: 20px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .menu a {
    font-size: 22px;
  }
}
/* === Zahnrad-Container === */
.header-settings {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 16px;
}

/* === Zahnrad-Button === */
.settings-icon {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #00D4FF;
  transition: transform 0.4s ease;
  padding: 6px;
}

.settings-icon.active {
  transform: rotate(180deg);
}

/* === Dropdown-Menü === */
.settings-dropdown {
  display: none;
  position: absolute;
  top: 36px;
  right: 0;
  background-color: #111111;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2);
  z-index: 999;
  flex-direction: column;
  gap: 10px;
  min-width: 100px;
}

/* Sichtbar wenn aktiv */
.settings-dropdown.active {
  display: flex;
}

/* Sprachen */
.settings-dropdown .language-switch {
  padding: 0;
  margin: 0;
  justify-content: flex-start;
}

/* Nur auf großen Bildschirmen sichtbar */
@media (max-width: 768px) {
  .header-settings {
    display: none;
  }
}
.gear-wrapper {
  position: relative;
  margin-left: 16px;
  display: flex;
  align-items: center;
}

#gear-icon {
  font-size: 24px;
  display: inline-block;
  cursor: pointer;
  animation: spin 6s linear infinite;
  filter: drop-shadow(0 0 6px #00d4ff);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.gear-dropdown {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background-color: #1a1a1a;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,212,255,0.2);
  padding: 12px;
  z-index: 999;
}

.gear-wrapper {
  position: relative;
  margin-left: 16px;
}

.gear-wrapper.open .gear-dropdown {
  display: block;
}
.gear-wrapper:hover .gear-dropdown {
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.5), 0 0 28px rgba(0, 212, 255, 0.25);
  background-color: rgba(26, 26, 26, 0.98); /* etwas mehr Kontrast */
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
#gear-icon:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px #00d4ff);
  transition: transform 0.3s ease, filter 0.3s ease;
}
  /* === GEAR DROPDOWN - DARK MODE === */
.gear-dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  background-color: #1a1a1a;
  border-radius: 8px;
  box-shadow: 0 0 14px rgba(0,212,255,0.45), 0 0 24px rgba(0,212,255,0.25);
  padding: 12px;
  display: none;
  z-index: 999;
}

/* Rotate Icon mit Glow */
#gear-icon {
  animation: spin 6s linear infinite;
  filter: drop-shadow(0 0 6px #00d4ff);
}

/* === LIGHT MODE DROPDOWN === */
.light-mode .gear-dropdown {
  background-color: var(--card-bg); /* gleiche Farbe wie Service Cards */
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.25), 0 6px 20px rgba(0, 212, 255, 0.12);
}
.light-mode .gear-wrapper:hover .gear-dropdown {
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.4), 0 0 28px rgba(0, 212, 255, 0.2);
  background-color: #e0faff;
}
.custom-mail-button {
  color: #000000 !important; /* schwarzer Text */
  background-color: #00D4FF;
  text-decoration: none;
}

.custom-mail-button:hover {
  background-color: #00b8e0;
}

.mail-icon {
  font-size: 24px;
  margin-top: 8px;
  color: #00D4FF;
  text-align: center;
}
.custom-mail-button {
  color: #000000 !important; /* schwarzer Text */
  background-color: #00D4FF;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4), 0 4px 12px rgba(0, 212, 255, 0.2);
  transition: box-shadow 0.3s ease;
}

.custom-mail-button:hover {
  background-color: #00b8e0;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.6), 0 6px 20px rgba(0, 212, 255, 0.3);
}
.language-switch a {
  display: inline-block;
  border-radius: 8px;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  padding: 6px;
}

.language-switch a:hover {
  background-color: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}
.theme-toggle-below {
  cursor: pointer;
  font-size: 20px;
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  padding: 6px;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.theme-toggle-below:hover {
  background-color: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}
/* LIGHT MODE STYLES (überschreibt Dark Mode) */
:root {
  --bg: #000000;
  --text: #ffffff;
  --primary: #00D4FF;
  --secondary: #aaaaaa;
  --section-bg: #111111;
  --card-bg: #1a1a1a;
}

.light-mode {
  --bg: #ffffff;
  --text: #1A1A1A;
  --primary: #00D4FF;
  --secondary: #444444;
  --section-bg: #f5f5f5;
  --card-bg: #e6f9fc;
}
/* Global Styles mit Variablen */
body {
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.4s, color 0.4s;
}

.nav,
.footer {
  background-color: #000000 !important;
  color: #ffffff;
}

.menu a {
  color: var(--primary);
}

.menu a:hover {
  color: #008db3;
}

.services,
.about,
.contact {
  background-color: var(--section-bg);
  color: var(--text);
}

.service-card {
  background-color: var(--card-bg);
  color: var(--text);
}
.light-mode .service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.25), 0 8px 24px rgba(0, 212, 255, 0.12);
}

.service-card p {
  color: var(--secondary);
}

.hero-text p,
.about-text p,
.contact p {
  color: var(--secondary);
}

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

.btn-primary:hover {
  background-color: #00b8e0;
}

/* Toggle Icon */
.theme-toggle {
  cursor: pointer;
  font-size: 20px;
  margin-right: 16px;
}

.light-mode body {
  background-color: #ffffff;
  color: #1A1A1A;
}

.light-mode .hero {
  background-color: #ffffff;
}

.light-mode .hero-text h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 212, 255, 0.3) !important;
}

.light-mode .hero-text p {
  color: #bbbbbb !important;
}

.light-mode .btn-primary {
  background-color: #00D4FF;
  color: white;
}

.light-mode .nav,
.light-mode .footer {
  background-color: #000000;
}

.light-mode .menu a {
  color: #00D4FF;
}

.light-mode .section-divider {
  background-color: #00D4FF;
}
/* LIGHT MODE: Überschriften schwarz, Texte grau */
.light-mode h1,
.light-mode h2,
.light-mode h3 {
  color: #000000;
}

.light-mode p,
.light-mode a,
.light-mode span,
.light-mode li,
.light-mode .btn-primary {
  color: #444444;
}

/* Optional: Kontrastreicher Button-Text */
.light-mode .btn-primary {
  color: white;
}
.light-mode .services {
  background-color: #e0e0e0;
  border-top: 1px solid #d0d0d0;
  border-bottom: 1px solid #d0d0d0;
}
.light-mode .contact {
  background-color: #f8f8f8;
}
}
.contact a {
  color: var(--primary) !important;
}
scroll-padding-top: 100px;
}
#services,
#about,
#contact {
  scroll-margin-top: 140px; /* oder exakt die Höhe deiner .nav */
}
.legal-page {
  padding: 100px 40px;
  background-color: #0f0f0f; /* sehr dunkles Grau */
  color: #cccccc; /* Standard-Textfarbe: hellgrau/silber */
}

/* Impressum / Legal Styles */
.legal-page h1 {
  color: #ffffff;
}

.legal-section p {
  font-size: 18px;
  line-height: 1.6;
  color: #222222; /* Text: sehr dunkles Grau */
}
.email-link {
  color: #cccccc; /* Standardgrau */
  text-decoration: none;
  transition: color 0.3s ease;
}

.email-link:hover {
  color: #00D4FF; /* Cyan beim Hover */
  text-decoration: underline;
}
.legal-page main {
  flex: 1;
  padding-top: 120px;
  padding-bottom: 140px; /* Abstand zum Footer */

}
.legal-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background-color: #000;
  padding: 16px 0;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0, 212, 255, 0.1);
}

.legal-header a {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-logo {
  height: 60px;
  width: auto;
}
/* Glow-Effekt */
.glow-effect {
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.2), 0 0 16px rgba(0, 212, 255, 0.1);
}


/* Position für Zurück-Button über dem Footer */
.back-button-wrapper {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.btn-back {
  background-color: #00D4FF;
  color: #ffffff;
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-back:hover {
  background-color: #00b8e0;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4), 0 0 24px rgba(0, 212, 255, 0.2);
}
body.legal-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.legal-page main {
  flex: 1;
  padding-top: 120px;
}
/* Light Mode für Impressum */
.light-mode .legal-page {
  background-color: #eeeeee; /* hellgrau */
  color: #1A1A1A;
}

.light-mode .legal-page h1 {
  color: #000000;
}

.light-mode .legal-page a {
  color: #1A1A1A;
}

.light-mode .legal-header,
.light-mode .legal-footer {
  background-color: #000000;
  color: #ffffff;
}

.cookie-banner {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 28px 32px;
  border-radius: 12px;
  max-width: 90%;
  width: 600px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  z-index: 9999;
  text-align: center;
}

.cookie-banner p {
  font-size: 18px;
  margin-bottom: 16px;
}

.cookie-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-buttons button {
  background-color: #00D4FF;
  color: #000;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cookie-buttons button:hover {
  background-color: #00b8e0;
  transform: scale(1.05);
}

/* Responsiv */
@media (max-width: 480px) {
  .cookie-banner {
    width: 90%;
    padding: 20px;
  }

  .cookie-buttons {
    flex-direction: column;
  }

  .cookie-buttons button {
    width: 100%;
  }
}
.cookie-table th {
  background-color: #00D4FF; /* Cyan */
  color: #000000;            /* Schwarze Schrift */
}
.light-mode .legal-page p {
  color: #444444;
}

.light-mode .email-link {
  color: #1A1A1A;
}

.light-mode .email-link:hover {
  color: #00D4FF;
}

.light-mode .btn-back {
  background-color: #00D4FF;
  color: #ffffff;
}

.light-mode .btn-back:hover {
  background-color: #00b8e0;
}

.light-mode .back-button-wrapper {
  background-color: transparent;
}

/* Footer im Light Mode anpassen */
.light-mode .legal-footer {
  background-color: transparent !important;
  color: #1A1A1A !important;
}

/* Optional: auch den Text innerhalb des Footers sicher schwarz setzen */
.legal-footer-inner {
  text-align: center;
  font-size: 14px;
  color: var(--text);
  padding: 40px 20px;
}

.legal-footer-inner a {
  color: var(--primary);
  text-decoration: none;
  margin: 0 8px;
}

.legal-footer-inner a:hover {
  color: #00b8e0;
}

.footer .footer-logo {
  color: #ffffff !important;
}
/* FMA Mediagroup Text im dunklen Footer weiß */
.footer-logo {
  color: #ffffff !important;
}
.legal-footer-inner {
  color: white !important;
}

/* Impressum & Datenschutz im Footer immer Cyan */
.footer-links a,
.legal-footer-inner a {
  color: #00D4FF !important;
  text-decoration: none;
}

.footer-links a:hover,
.legal-footer-inner a:hover {
  color: #00b8e0 !important;
}

.legal-footer-inner {
  text-align: center;
  font-size: 14px;
  padding: 40px 20px;
  color: #ffffff !important; /* wirklich reines Weiß */
}

.legal-footer-inner a {
  color: #00D4FF !important;
  text-decoration: none;
  margin: 0 8px;
}

.legal-footer-inner a:hover {
  color: #00b8e0 !important;
}
.legal-brand {
  color: #ffffff !important;
}
/* Standard: Dark Mode */
.legal-brand {
  color: #ffffff !important;
}

/* Light Mode explizit überschreiben */
.light-mode .legal-brand {
  color: #1A1A1A !important;
}

/* Rest bleibt wie du es hast */
.legal-footer-inner a {
  color: #00D4FF !important;
  text-decoration: none;
}

.legal-footer-inner a:hover {
  color: #00b8e0 !important;
}
.light-mode .footer {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
/* Footer in Light Mode (Index.html) – transparent & schwarzer Text */
.light-mode .footer {
  background-color: transparent !important;
  color: #1A1A1A !important;
  box-shadow: none !important;
  border: none !important;
}

.light-mode .footer-logo {
  color: #1A1A1A !important;
}

.light-mode .footer-links a {
  color: #00D4FF !important;
}

.light-mode .footer-links a:hover {
  color: #00b8e0 !important;
}

.footer-divider {
  color: #ffffff; /* Weiß im Darkmode */
  padding: 0 8px;
}

.light-mode .footer-divider {
  color: #1A1A1A !important; /* Schwarz im Lightmode */
}
.service-card {
  opacity: 0;
  transform: translateX(-60px) scale(0.98);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.service-card.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.section-title {
  font-size: 40px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary);
  margin: 20px auto 0;
  border-radius: 2px;
}

.hero-title {
  font-size: 64px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 24px;
}
.hero-text h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text);
  text-align: center;
  position: relative;
}

.hero-text h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary);
  margin: 20px auto 0;
  border-radius: 2px;
}
.light-mode .hero-text h1 {
  color: #1A1A1A;
  text-shadow: none;
}

.dark-mode .hero-text h1 {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 212, 255, 0.3);
}
/* ===== Optimierte Hero Sektion ===== */
.hero {
  background-color: var(--bg);
  padding: 120px 80px;
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-image {
  max-width: 460px;
  width: 100%;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.hero-image.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 1.8s ease;
  mask-image: linear-gradient(to right, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

/* Basis: Startzustand für Fade-in */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

/* Sobald sichtbar */
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Extra für das Bild (optional etwas langsamer) */
.hero-image img {
  transition: transform 1.6s ease;
}

/* Basis: Startzustand für Fade-in */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

/* Sobald sichtbar */
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Extra für das Bild (optional etwas langsamer) */
.hero-image img {
  transition: transform 1.6s ease;
}

.fade-in-section.visible .hero-image img {
  transform: scale(1.03);
}
.hero-text {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.hero-text h1 {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 24px;
  text-shadow: 0 2px 6px rgba(0, 212, 255, 0.1);
  position: relative;
}

.hero-text h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary);
  margin: 20px auto 0;
  border-radius: 2px;
}

.hero-text p {
  font-size: 20px;
  color: var(--secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}
/* Button */
.btn-primary {
  background-color: var(--primary);
  color: var(--bg); /* Dynamisch: Weiß im Dark Mode, Schwarz im Light Mode */
  border: none;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.25);
  text-decoration: none; /* Kein Unterstrich */
}

.btn-primary:hover {
  text-decoration: underline; /* Nur beim Hover */
  background-color: #00b8e0;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 40px rgba(0, 212, 255, 0.3);
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.5);
  }
}
@media (min-width: 768px) {
  .hero {
    padding: 120px 80px;
    text-align: left;
  }

  .hero-container {
    flex-direction: row;
    justify-content: space-between;
    gap: 60px;
  }

  .hero-text h1 {
    font-size: 64px;
    text-align: left;
  }

  .hero-text h1::after {
    margin-left: 0;
  }

  .hero-text p {
    font-size: 20px;
  }

  .hero-image img {
    max-width: 460px;
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
  }
}
.btn-primary {
  font-size: 18px;
  padding: 18px 36px;
  animation: pulse 2.5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.5);
  }
}
.hero-image {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.hero-image.visible {
  opacity: 1;
  transform: translateY(0);
}
body {
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.fade-in {
  opacity: 1;
}
h2 {
  font-size: 40px;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text);
}

h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--text);
}
.nav {
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.15), 0 2px 8px rgba(0, 212, 255, 0.25);
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.9); /* Leicht transparent für Glow-Reflexion */
  transition: box-shadow 0.3s ease;
}

/* Optional: Intensiverer Glow beim Hover */
.nav:hover {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), 0 4px 12px rgba(0, 212, 255, 0.4);
}
@media (min-width: 768px) {
  .nav {
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.15), 0 2px 8px rgba(0, 212, 255, 0.25);
    backdrop-filter: blur(10px);
  }

  .nav:hover {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), 0 4px 12px rgba(0, 212, 255, 0.4);
  }
}
p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--secondary);
  max-width: 700px;
  margin: 0 auto 24px auto;
}
.hero-text h1 {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -1px;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 212, 255, 0.1);
  position: relative;
}

.hero-text h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary);
  margin: 20px auto 0;
  border-radius: 2px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg); /* Dynamisch: Weiß im Dark Mode, Schwarz im Light Mode */
  border: none;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.25);
  text-decoration: none; /* Kein Unterstrich */
}

.btn-primary:hover {
  text-decoration: underline; /* Nur beim Hover */
  background-color: #00b8e0;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 40px rgba(0, 212, 255, 0.3);
}
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-indicator {
  font-size: 32px;
  color: #00D4FF;
  animation: bounce 2s infinite;
  cursor: pointer;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 60px;
  transition: transform 0.3s ease;
}

.scroll-indicator:hover {
  transform: scale(1.2);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
.contact-background {
  background-image: url(https://i.postimg.cc/J4bpVMvP/2-ED1-F10-D-73-D8-41-D2-A1-FF-E491-B14-B5-CC6.png);
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 160px 80px; /* mehr Padding für Atmosphäre */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 600px;
}

.contact-background {
  background-image: url('https://i.postimg.cc/J4bpVMvP/2-ED1-F10-D-73-D8-41-D2-A1-FF-E491-B14-B5-CC6.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
  overflow: hidden;
   /* Macht Cyan kräftiger & Bild heller */
}
.contact-background::before,
.contact-background::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 20%;
  z-index: 1;
  pointer-events: none;
}

.contact-background::before {
  top: 0;
  background: linear-gradient(to bottom, black 0%, transparent 100%);
}

.contact-background::after {
  bottom: 0;
  background: linear-gradient(to top, black 0%, transparent 100%);
}
.custom-mail-button {
  background-color: #00C9F5;
  color: black;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.custom-mail-button:hover {
  background-color: #00C9F5;
  color: black;
}
:root {
  --primary-blue: #00C9F5;
}
.custom-mail-button {
  background-color: var(--primary-blue);
  transition: all 0.3s ease;
  filter: none;
}

.custom-mail-button:hover {
  filter: drop-shadow(0 0 10px #00d4ff) brightness(1.2);
}.contact {
  transition: filter 0.3s ease;
  filter: none;
}

.custom-mail-button:hover ~ .glow-target {
  filter: drop-shadow(0 0 30px #00d4ff) brightness(1.3);
}
.contact-wrapper:hover .eye-glow,
.contact-wrapper:hover .laser-line {
  filter: drop-shadow(0 0 20px #00d4ff) brightness(1.3);
}
.slide-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.fade-in-section.visible .slide-up {
  opacity: 1;
  transform: translateY(0);
}
.hero-image img {
  transition: transform 2s ease;
}

.fade-in-section.visible .hero-image img {
  transform: scale(1.03);
}

.slide-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
  transition-delay: 0.2s;
}
.light-mode .contact h2,
.light-mode .contact p,
.light-mode .custom-mail-button {
  color: #ffffff !important;
}

.light-mode .contact p {
  color: #cccccc !important;
}
.ai-grid {
  display: grid;
  grid-template-columns: repeat(4, 24px);
  grid-gap: 16px;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.cell {
  width: 24px;
  height: 24px;
  background-color: rgba(0, 212, 255, 0.1);
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(0, 212, 255, 0.2);
  animation: pulseCell 2.5s infinite ease-in-out;
}

.cell:nth-child(3n) { animation-delay: 0.3s; }
.cell:nth-child(5n) { animation-delay: 0.6s; }
.cell:nth-child(7n) { animation-delay: 0.9s; }
.cell:nth-child(11n) { animation-delay: 1.2s; }

@keyframes pulseCell {
  0%, 100% {
    background-color: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 4px rgba(0, 212, 255, 0.1);
  }
  50% {
    background-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
  }
}
@media (max-width: 600px) {
  .ai-grid {
    grid-template-columns: repeat(4, 16px);
    grid-gap: 12px;
  }

  .cell {
    width: 16px;
    height: 16px;
  }
}

#custom-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: #00D4FF;
  border-radius: 50%;
  animation: rotateDots 1.6s linear infinite;
}

.dot1 { --i: 0; }
.dot2 { --i: 1; }
.dot3 { --i: 2; }
.dot4 { --i: 3; }
.contact {
  position: relative;
  overflow: hidden;
  padding: 160px 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Text linksbündig */
  min-height: 600px;
  background-color: #000;
}

.contact-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.contact-text {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.fade-delay-1, .fade-delay-2, .fade-delay-3 {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.visible .fade-delay-1 {
  transition-delay: 0.2s;
  opacity: 1;
  transform: translateY(0);
}

.visible .fade-delay-2 {
  transition-delay: 0.4s;
  opacity: 1;
  transform: translateY(0);
}

.visible .fade-delay-3 {
  transition-delay: 0.6s;
  opacity: 1;
  transform: translateY(0);
}

@keyframes rotateDots {
  0% {
    transform: rotate(calc(var(--i) * 90deg)) translateX(50px) rotate(calc(-1 * var(--i) * 90deg));
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    transform: rotate(calc(var(--i) * 90deg + 360deg)) translateX(50px) rotate(calc(-1 * (var(--i) * 90deg + 360deg)));
    opacity: 0;
  }
}
.hero-text h1 {
  font-size: 64px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  text-align: center;
  color: var(--text);
}

.hero-text p {
  font-size: 20px;
  line-height: 1.7;
  color: var(--secondary);
  max-width: 700px;
  margin: 0 auto 32px auto;
  text-align: center;
}

.btn-primary {
  font-size: 18px;
  padding: 16px 32px;
  font-weight: 600;
  border-radius: 8px;
  background-color: var(--primary);
  color: var(--bg);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.25);
  transition: all 0.3s ease;
}
@media (max-width: 768px) {
  .slide-up {
    transition-delay: 0.4s;
  }
}
@media (min-width: 1200px) {
  .hero-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 80px;
    padding: 140px 100px;
  }

  .hero-text {
    flex: 1;
    text-align: left;
  }

  .hero-image {
    flex: 1;
  }

  .hero-text h1 {
    font-size: 80px;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 32px;
    max-width: 1000px;
    text-align: left;
  }

  .hero-text p {
    font-size: 22px;
    line-height: 1.8;
    max-width: 800px;
    margin-bottom: 40px;
    text-align: left;
  }

  .btn-primary {
    font-size: 20px;
    padding: 18px 40px;
  }
}
.hero-text {
  text-align: left;
}

.hero-text h1::after {
  content: "";
  display: block;
  width: 332px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  margin-top: 20px;
  margin-left: 0;
}
@media (min-width: 1200px) {
  .hero-text {
    text-align: left;
    margin-left: 0;
  }

  .hero-text h1::after {
    content: "";
    display: block;
    width: 332px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    margin-top: 20px;
    margin-left: 0;
  }
}
@media (max-width: 768px) {
  .hero-text {
    text-align: center;
  }

  .hero-text h1::after {
    content: "";
    display: block;
    width: 120px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    margin: 20px auto 0;
  }
}
.contact-form-embed {
  padding: 100px 20px;
  background-color: var(--bg); /* Dark Mode-kompatibel */
}

.contact-form-embed iframe {
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.08);
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.9);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  overflow: auto;
}

.modal-content.tall-form {
  max-width: 95vw;
  width: 100%;
  height: 95vh;
  padding: 40px 20px;
  background: #111;
  border-radius: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-content.tall-form iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #00D4FF;
  font-size: 28px;
  cursor: pointer;
  z-index: 10000;
}

.modal-close:hover {
  color: #00b8e0;
}
/* Hero Bild für mobile Ansicht */
@media (max-width: 767px) {
  .hero {
    background-image: url('https://i.postimg.cc/vmJYkq4f/F6-ED52-D4-251-C-4-DA3-B721-87-E195337-C56.png') !important;
    background-size: cover;
    background-position: center;
  }
}
.nav {
  z-index: 1001;
  position: sticky;
  top: 0;
}


.menu-container {
  display: flex;
  gap: 2rem;
  align-items: center;
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
}

.menu a {
  text-decoration: none;
  color: #00d4ff;
  font-weight: 600;
  font-size: 1.1rem; /* vorher 1rem, jetzt größer */
  letter-spacing: 0.5px;
  padding: 8px 12px;
  position: relative;
  transition: color 0.2s ease;
}


.menu a:hover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 2px;
  width: 100%;
  background: #00d4ff;
}
/* Desktop – Menü sichtbar */
.menu-container {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  align-items: center;
}

/* Basis-Burger ist nur in Mobile sichtbar */
.burger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2000; /* über allem */
  position: absolute;
  right: 50%;
  transform: translateX(50%);
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
    height: 80px;
    overflow: hidden;
    transition: height 0.4s ease;
    position: relative;
    z-index: 100;
  }

  .nav.expanded {
    height: 420px;
    z-index: 100;
  }

  .nav-top {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 20px;
  }

  .logo {
    position: absolute;
    left: 20px;
  }

  .gear-wrapper {
    position: absolute !important;
    right: 24px !important; /* weiter nach links geschoben */
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1100 !important;
  }

  .gear-dropdown {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background: #111;
    border-radius: 6px;
    padding: 0.5rem;
    z-index: 9999;
  }

  .gear-dropdown.visible {
    display: block;
  }

  .burger {
    display: block;
    font-size: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #00D4FF;
    background: none;
    border: none;
    z-index: 1100;
    cursor: pointer;
  }

  .menu-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1rem 1rem;
    width: 100%;
    background-color: #000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    z-index: 1000;
  }

  .nav.expanded .menu-container {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .menu a {
    font-size: 1.25rem;
    color: white;
    text-decoration: none;
  }

  .burger::before {
    content: '';
  }

  /* Hero Mobile Optimierung */
  .hero .hero-container {
    align-items: center;
    text-align: center;
    padding: 3rem 1.5rem;
  }

  .hero .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero .hero-text p {
    font-size: 1rem;
  }
}
#gearWrapper {
  position: relative;
  z-index: 4000;
}

.gear-dropdown {
  position: absolute;
  top: 2.5rem;
  right: 0;
  display: none;
  flex-direction: column;
  background-color: #111;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #333;
  z-index: 9999;
}

.gear-dropdown.show {
  display: flex;
}
@media (max-width: 768px) {
  .hero {
    position: relative;
  }

  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
    pointer-events: none;
  }

  .hero-container {
    position: relative;
    z-index: 3; /* damit Text über dem Fade liegt */
  }
}
.contact-video-bg,
.contact-fallback-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.contact-fallback-image {
  display: none;
}

@media (max-width: 768px) {
  .contact-video-bg {
    display: none;
  }
  .contact-fallback-image {
    display: block;
  }

  .contact {
    position: relative;
    overflow: hidden;
  }

  .contact .contact-text {
    position: relative;
    z-index: 2;
  }
}
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-text,
  .about-visual {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

.about-text h2.section-title-left {
  text-align: left;
  margin: 0 auto;
  position: relative;
  display: inline-block;
}

.about-text h2.section-title-left::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: #00D4FF; 
  margin: 12px auto 0 auto;
  border-radius: 2px;
}

  .about-visual {
    margin-top: 24px;
    justify-content: center;
  }

  .ai-grid {
    justify-content: center;
  }

  .contact-text h2 {
    font-size: 1.6rem;
    line-height: 1.3;
    text-align: center;
    padding: 0 1rem;
    word-break: break-word;
    margin: 0 auto;
  }

  .contact-text p {
    text-align: center;
  }

  .section-title-left {
    text-align: center;
    margin-left: 0;
  }
}

/* Zahnrad-Wrapper */
.gear-wrapper {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 9999 !important;
}

/* Zahnrad-Button */
#gear-toggle {
  width: 70px !important;
  height: 70px !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(6px) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: transform 0.3s ease !important;
}

/* Zahnrad-Icon */
#gear-icon {
  font-size: 30px !important;
  color: white !important;
}

/* Dropdown über dem Zahnrad */
#gear-dropdown {
  position: fixed !important;
  right: 24px !important; /* gleiche rechte Kante wie Zahnrad */
  bottom: 100px !important; /* 70px Zahnrad + 6px Abstand + 24px Margin = ca. 100px */
  width: 100px !important;
  height: 130px !important;
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(6px) !important;
  border-radius: 12px !important;
  padding: 12px 8px 16px 8px !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3) !important;
  display: none !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  z-index: 99999 !important;
}

/* Aktiviertes Dropdown */
#gear-dropdown.show {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Sprachumschalter */
.language-switch {
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
}

.language-switch img {
  width: 24px !important;
  height: auto !important;
  cursor: pointer !important;
  border-radius: 3px !important;
  transition: transform 0.2s ease !important;
}

.language-switch img:hover {
  transform: scale(1.1) !important;
}

/* Theme-Switcher */
.theme-toggle-below {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  cursor: pointer !important;
  font-size: 22px !important;
  color: white !important;
  padding-bottom: 6px !important;
  margin-bottom: 4px !important;
}

@media screen and (max-width: 768px) {
  /* NAV-TOP BAR */
  .nav-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 16px !important;
    height: 60px !important;
    position: relative !important;
    z-index: 1001 !important;
  }


  /* BURGER ICON RECHTS */
  .burger {
  position: absolute !important;
  top: 50% !important;
  right: 16px !important;
  transform: translateY(-50%) !important;
  font-size: clamp(20px, 6vw, 28px) !important;
  color: #00D4FF !important;
  z-index: 1002 !important;
  padding: 0 110px  !important; /* Links Touch-Fläche lassen */
  cursor: pointer !important; /* <<< Wichtig für Touchgeräte */
  user-select: none !important; /* Kein Text markieren */
}

  /* BURGER MENU CONTAINER */
  .menu-container {
    position: absolute !important;
    top: 60px !important;
    left: 0 !important;
    width: 100% !important;
    background-color: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    display: none !important;
    flex-direction: column !important;
    padding: 24px 0 !important;
    z-index: 1000 !important;
  }

  .menu-toggle:checked ~ .menu-container {
    display: flex !important;
  }

  .menu a {
    text-align: center !important;
    color: white !important;
    font-size: 18px !important;
    padding: 14px 0 !important;
    width: 100% !important;
  }

  /* ZAHNRAD FEST UNTEN RECHTS */
  .gear-wrapper {
  position: fixed !important;
  bottom: clamp(16px, 5vw, 24px) !important;
  right: clamp(8px, 5vw, 20px) !important;
  width: 50px !important;
  height: 50px !important;
  padding-top: 550px !important;
  z-index: 9999 !important;
}

  #gear-toggle {
  width: 50px !important;
  height: 50px !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  backdrop-filter: blur(6px) !important;
    
}

  #gear-icon {
    font-size: 24px !important;
    color: white !important;
  }

  /* DROPDOWN ÜBER DEM ZAHNRAD */
  #gear-dropdown {
  position: fixed !important;
  bottom: 100px !important; /* etwas höher für bessere Zentrierung */
  right: 20px !important;
  width: 120px !important;
  background: rgba(0, 0, 0, 0.92) !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 12px !important;
  padding: 16px 12px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
  display: none !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important; /* vertikal zentriert */
  gap: 12px !important; /* gleichmäßiger Abstand zwischen Elementen */
  z-index: 10000 !important;
}

#gear-dropdown.show {
  display: flex !important;
}

.language-switch {
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
}

.language-switch img {
  width: 28px !important;
  height: auto !important;
  cursor: pointer !important;
  border-radius: 3px !important;
}

.theme-toggle-below {
  color: white !important;
  font-size: 22px !important;
  cursor: pointer !important;
}
#cookie-banner {
  position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: 24px !important;
  width: 92vw !important;
  max-width: 600px !important;
  background-color: rgba(0, 0, 0, 0.92) !important;
  color: #fff !important;
  padding: 18px 16px !important;
  border-radius: 12px !important;
  z-index: 2147483647 !important; /* Maximum z-index */
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5) !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#cookie-banner h4 {
  margin-bottom: 8px !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
}

#cookie-banner p {
  margin: 0 0 10px 0 !important;
  line-height: 1.5 !important;
  max-width: 700px !important;
}

#cookie-banner a {
  color: inherit !important;
  text-decoration: none !important;
  font-weight: inherit !important;
}

.cookie-buttons {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  margin-top: 10px !important;
}

.cookie-buttons button {
  background-color: #333 !important;
  color: white !important;
  border: none !important;
  padding: 10px 20px !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  font-weight: 500 !important;
  transition: background 0.3s ease !important;
}

.cookie-buttons button:hover {
  background-color: #555 !important;
}
.cookie-banner .cookie-content a {
  color: #00c2ff !important;  /* Carolina-Blau */
  text-decoration: underline !important;
  font-weight: 500 !important;
}

.cookie-banner .cookie-content a:hover {
  color: #33dcff !important; /* etwas heller beim Hover */
}
 .cookie-link {
  color: #00c2ff !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
}

.cookie-link:hover,
.cookie-link:visited {
  color: #33dcff !important;
}
  .cookie-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 20px 0 !important;
  color: white !important;
  background-color: transparent !important;
}

.cookie-table th,
.cookie-table td {
  padding: 10px !important;
  border: 1px solid white !important;
  text-align: left !important;
}

.cookie-table thead {
  background-color: #00D4FF !important;
  color: white !important;
}

.table-wrapper {
  overflow-x: auto !important;
  width: 100% !important;
}
  .scroll-indicator {
  z-index: 99 !important;
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  cursor: pointer;
  pointer-events: auto !important;
}
  @media screen and (max-width: 600px) {
  .hero {
    padding-bottom: 8rem !important; /* Platz schaffen für Scroll Indicator */
  }

  .scroll-indicator {
    margin-top: 5rem !important;
    font-size: 2rem !important;
    text-align: left !important;
    display: block !important;
    color: #00D4FF !important;
    cursor: pointer !important;
    z-index: 10 !important;
    position: relative !important;
  }

  .section-divider {
    margin-top: 1rem !important;
    width: 90% !important;
    border: none !important;
    border-top: 1px solid white !important;
    opacity: 0.4 !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative !important;
  }
}
  #cookie-banner {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 92vw !important;
  max-width: 600px !important;
  background-color: rgba(0, 0, 0, 0.92) !important;
  color: #fff !important;
  padding: 18px 16px !important;
  border-radius: 12px !important;
  z-index: 2147483647 !important;
  display: none !important;
  flex-direction: column !important;
  gap: 1rem !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5) !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.table-wrapper {
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  overflow-x: auto !important;
  width: 100% !important;
}

.cookie-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 20px 0 !important;
  color: white !important;
  background-color: transparent !important;
}

.cookie-table th,
.cookie-table td {
  padding: 10px !important;
  border: 1px solid white !important;
  text-align: left !important;
}

.cookie-table thead {
  background-color: #00D4FF !important;
  color: white !important;
}
  .datenschutz-wrapper {
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}