/* ============================================================
   style.css – Haupt-Stylesheet
   ============================================================
   Alle Design-Werte zentral in :root ändern.
   ============================================================ */

:root {
  /* Farben */
  --clr-bg: #0d0f14;
  --clr-surface: #161920;
  --clr-surface2: #1e222b;
  --clr-border: rgba(255, 255, 255, 0.08);
  --clr-text: #e8eaf0;
  --clr-text-muted: #8a8fa8;
  --clr-accent: #b7ff00;
  /* ← Hauptakzentfarbe */
  --clr-accent2: #ff0000;
  /* ← Sekundärfarbe    */
  --clr-cta: #b7ff00;
  /* ← Button-Farbe     */
  --clr-cta-hover: #1aff00;

  /* Typografie */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.75rem;
  --fs-4xl: 3.5rem;

  /* Abstände */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 4vw, 2.5rem);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Navbar */
  --nav-height: 70px;
  --nav-bg: rgba(13, 15, 20, 0.85);
  --nav-bg-scrolled: rgba(13, 15, 20, 0.97);

  /* Übergänge */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --duration: 260ms;
  --duration-slow: 600ms;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--clr-accent);
  text-decoration: none;
}

ul {
  list-style: none;
}

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

code {
  font-family: 'Courier New', monospace;
  background: var(--clr-surface2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: var(--fs-sm);
  color: var(--clr-accent2);
}

/* ============================================================ LAYOUT */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-1 {
  grid-template-columns: 1fr;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}


/* ============================================================ SECTION BASIS */
.section {
  position: relative;
  padding-block: var(--space-24);
  overflow: hidden;
}

/* Hintergrund-Layer (Farbe / Bild / Video per JS gefüllt) */
.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  overflow: hidden;
  /* verhindert Lücken bei Video-Parallax */
}

/* Scroll-Tint Overlay (Farbe + Stärke per JS via CSS-Variablen) */
.section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--scroll-tint-color, transparent);
  opacity: var(--tint-opacity, 0);
  transition: opacity .4s var(--ease);
  pointer-events: none;
}

/* Dunkle Basis-Überlagerung */
.bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(13, 15, 20, .82) 0%, rgba(13, 15, 20, .65) 100%);
}

.bg-overlay--dark {
  background: linear-gradient(135deg, rgba(13, 15, 20, .95) 0%, rgba(13, 15, 20, .85) 100%);
}

.bg-overlay--medium {
  background: linear-gradient(135deg, rgba(13, 15, 20, .65) 0%, rgba(13, 15, 20, .45) 100%);
}

.bg-overlay--light {
  background: linear-gradient(135deg, rgba(13, 15, 20, .35) 0%, rgba(13, 15, 20, .20) 100%);
}

.bg-overlay--none {
  display: none;
}

/* Kinder über BG-Layer */
.section>.container {
  position: relative;
  z-index: 2;
}

/* ── Jarallax: Container korrekt positionieren ── */
.jarallax-container {
  z-index: 0 !important;
}

.jarallax>.bg-overlay,
.jarallax>.container {
  position: relative;
  z-index: 2;
}

/* YouTube iFrame */
.yt-iframe-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.yt-iframe-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 100vh;
  min-width: 100%;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  border: none;
}

/* Lokales Video */
.section-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ============================================================ SECTION HEADER */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--clr-accent);
  background: rgba(91, 140, 247, .12);
  border: 1px solid rgba(91, 140, 247, .25);
  padding: var(--space-1) var(--space-4);
  border-radius: 99px;
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-3xl));
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.section-desc {
  color: var(--clr-text-muted);
  max-width: 560px;
  margin-inline: auto;
  margin-top: var(--space-4);
}

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .04em;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    background-color var(--duration) var(--ease);
}

.btn-primary {
  background: var(--clr-cta);
  color: #000;
}

.btn-primary:hover {
  background: var(--clr-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(91, 140, 247, .35);
}

.btn-ghost {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
}

.btn-ghost:hover {
  background: var(--clr-surface2);
  transform: translateY(-2px);
}

/* ============================================================ PRELOADER */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s var(--ease), visibility .5s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-ring {
  width: 44px;
  height: 44px;
  border: 3px solid var(--clr-border);
  border-top-color: var(--clr-accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

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

/* ============================================================ BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  width: 44px;
  height: 44px;
  background: var(--clr-accent);
  color: #000;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  box-shadow: 0 4px 16px rgba(91, 140, 247, .4);
  transition: opacity var(--duration) var(--ease),
    visibility var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    background-color var(--duration) var(--ease);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--clr-cta-hover);
}

/* ============================================================ NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  /* Alle Transitions in einer Regel */
  transition: background-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    transform 0.45s cubic-bezier(.4, 0, .2, 1),
    opacity 0.45s cubic-bezier(.4, 0, .2, 1);
}

.navbar.scrolled {
  background: var(--nav-bg-scrolled);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .4);
}

/* Navbar ausbleneden beim Scrollen – JS setzt Klasse "nav-hidden" */
.navbar.nav-hidden {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

.nav-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--clr-text);
  letter-spacing: -.02em;
  flex-shrink: 0;
}

.logo-icon {
  color: var(--clr-accent);
  font-size: 1.4em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease), background-color var(--duration) var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--clr-text);
  background: var(--clr-surface2);
}

.nav-cta {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #151414;
  background: var(--clr-cta);
  padding: .5rem 1.25rem;
  border-radius: var(--radius-md);
  margin-left: var(--space-4);
  transition: background-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.nav-cta:hover {
  background: var(--clr-cta-hover);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================ HERO */
.hero-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + var(--space-12));
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--space-4);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-3xl), 6vw, var(--fs-4xl));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: var(--space-6);
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: var(--fs-lg);
  font-weight: 300;
  color: var(--clr-text-muted);
  max-width: 540px;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, .2);
  border-radius: 99px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 4px;
  height: 10px;
  background: var(--clr-accent);
  border-radius: 2px;
  animation: scrollBounce 1.8s var(--ease) infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1
  }

  60% {
    transform: translateY(12px);
    opacity: .3
  }
}

/* ============================================================ CARDS */
.card {
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  z-index: 2;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-card);
  border-color: rgba(91, 140, 247, .35);
}

.card-icon {
  font-size: 2rem;
  color: var(--clr-accent);
  margin-bottom: var(--space-4);
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.card-text {
  color: var(--clr-text-muted);
  margin-bottom: var(--space-6);
}

.card-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-accent);
}

.card-link:hover {
  text-decoration: underline;
}

/* ============================================================ WOW SLIDER */
.wow-slider {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  aspect-ratio: 16/7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-surface2);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
  user-select: none;
}

.ws-track {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.77, 0, .175, 1);
  will-change: transform;
}

.ws-slide {
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
}

.ws-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 6s linear;
  cursor: zoom-in;
}

.ws-bg.kb-active {
  transform: scale(1.08);
}

.ws-placeholder-text {
  color: rgba(255, 255, 255, .25);
  font-size: var(--fs-sm);
  letter-spacing: .05em;
  pointer-events: none;
}

.ws-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6) var(--space-8);
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  transform: translateY(8px);
  opacity: 0;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  z-index: 3;
}

.ws-slide.ws-active .ws-caption {
  opacity: 1;
  transform: translateY(0);
}

.ws-caption h3 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.ws-caption p {
  color: rgba(255, 255, 255, .75);
  font-size: var(--fs-sm);
}

.ws-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  background: rgba(13, 15, 20, .55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.ws-btn:hover {
  background: var(--clr-accent);
  transform: translateY(-50%) scale(1.08);
}

.ws-prev {
  left: var(--space-4);
}

.ws-next {
  right: var(--space-4);
}

.ws-dots {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: var(--space-2);
}

.ws-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.ws-dot.active {
  background: var(--clr-accent);
  transform: scale(1.35);
}

.ws-counter {
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  z-index: 4;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .1em;
}

.ws-play-pause {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 4;
  background: rgba(13, 15, 20, .55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background-color var(--duration) var(--ease);
}

.ws-play-pause:hover {
  background: var(--clr-accent);
}

.ws-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--clr-accent);
  z-index: 5;
  transform-origin: left;
  transition: none;
}

.ws-progress.animating {
  transition: width linear;
}

/* ============================================================ VIDEO SECTION */
.video-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.video-section .container {
  position: relative;
  z-index: 2;
}

/* ============================================================ GLB VIEWER */
.glb-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  aspect-ratio: 16/9;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 2;
}

#glbCanvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.glb-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.8;
  pointer-events: none;
  padding: var(--space-8);
}

/* ============================================================ SPLIT */
.split-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 2;
}

.media-placeholder {
  aspect-ratio: 4/3;
  background: rgba(255, 255, 255, .04);
  border: 2px dashed var(--clr-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  text-align: center;
}

/* YouTube Video in Split-Sektion */
.media-video {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
  width: 100%;
}

.media-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.check-list li {
  color: var(--clr-text-muted);
  cursor: default;
  padding-left: var(--space-2);
}

/* ============================================================ CONTACT */
.contact-section .container {
  position: relative;
  z-index: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.contact-info p {
  color: var(--clr-text-muted);
  margin-bottom: var(--space-8);
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--clr-text-muted);
  cursor: default;
}

.contact-icon {
  font-size: 1.3rem;
  color: var(--clr-accent);
}

.contact-form {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.form-group label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  resize: vertical;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(91, 140, 247, .15);
}

.form-feedback {
  margin-top: var(--space-4);
  font-size: var(--fs-sm);
  min-height: 1.2em;
}

/* ============================================================ FOOTER */
.footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding-block: var(--space-12);
  margin-top: 0; /* überschreibt margin-top aus ral-farben.css (Balken über dem Footer) */
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer-brand p {
  width: 100%;
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

.footer-nav {
  display: flex;
  gap: var(--space-6);
}

.footer-nav a {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  transition: color var(--duration) var(--ease);
}

.footer-nav a:hover {
  color: var(--clr-text);
}

.footer-copy {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  text-align: center;
}

/* ============================================================ TOOLTIP */
.tooltip {
  position: fixed;
  z-index: 9999;
  background: var(--clr-surface2);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--clr-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
}

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

/* ============================================================ SCROLL ANIMATIONEN
   Klassen: reveal-up | reveal-left | reveal-right | reveal-fade | reveal-scale
   + data-delay="200"  (Verzögerung in ms)
*/
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-fade,
.reveal-scale {
  opacity: 0;
  will-change: opacity, transform;
}

.reveal-up {
  transform: translateY(50px);
}

.reveal-left {
  transform: translateX(-60px);
}

.reveal-right {
  transform: translateX(60px);
}

.reveal-fade {
  transform: none;
}

.reveal-scale {
  transform: scale(0.88);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-fade.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}


/* ============================================================ LIGHTBOX */
#ws-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .94);
  align-items: center;
  justify-content: center;
}

#ws-lightbox.active {
  display: flex;
  animation: lbFadeIn .2s ease;
}

@keyframes lbFadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

#ws-lb-img {
  max-width: 94vw;
  max-height: 92vh;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 60px rgba(0, 0, 0, .8);
  object-fit: contain;
  animation: lbZoom .25s cubic-bezier(.22, 1, .36, 1);
}

@keyframes lbZoom {
  from {
    transform: scale(.88);
    opacity: 0
  }

  to {
    transform: scale(1);
    opacity: 1
  }
}

#ws-lb-close {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  z-index: 10000;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.8rem;
  line-height: 1;
  cursor: pointer;
  opacity: .75;
  transition: opacity .15s;
}

#ws-lb-close:hover {
  opacity: 1;
}

#ws-lb-prev,
#ws-lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10000;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .75;
  transition: opacity .15s, background-color .15s;
}

#ws-lb-prev:hover,
#ws-lb-next:hover {
  opacity: 1;
  background: var(--clr-accent);
  border-color: transparent;
}

#ws-lb-prev {
  left: 1rem;
}

#ws-lb-next {
  right: 1rem;
}

#ws-lb-counter {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .55);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  z-index: 10000;
}

/* ============================================================ RESPONSIVE */
@media (max-width:1024px) {
  .split-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:768px) {

  /* ── Navbar: auf Mobile IMMER vollständig sichtbar ── */
  .navbar.nav-hidden {
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* ── Nav-Container: kein großes Gap, alles explizit ── */
  .nav-container {
    gap: 0;
  }

  /* ── Hamburger anzeigen ── */
  .nav-hamburger {
    display: flex;
    margin-left: auto;
    /* drückt ihn an den rechten Rand */
    flex-shrink: 0;
    position: relative;
    z-index: 1100;
    /* über allem im Navbar */
  }

  /* ── Desktop-Elemente ausblenden ── */
  .nav-cta {
    display: none !important;
  }

  /* ── Nav-Menu: als ausgeklapptes Panel über transform verstecken ──
     display:flex bleibt damit .open korrekt funktioniert,
     aber es ist aus dem Stacking Context raus (z-index < navbar) ── */
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--nav-bg-scrolled);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: var(--space-4) var(--container-pad) var(--space-6);
    gap: var(--space-1);
    border-bottom: 1px solid var(--clr-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
    transform: translateY(-130%);
    visibility: hidden;
    /* ← NEU: komplett unsichtbar wenn zu */
    transition: transform .35s var(--ease),
      visibility 0s .35s;
    /* ← verzögert bis Animation fertig */
  }

  .nav-menu.open {
    transform: translateY(0);
    visibility: visible;
    /* ← NEU: sofort sichtbar beim Öffnen */
    transition: transform .35s var(--ease),
      visibility 0s 0s;
    /* ← keine Verzögerung beim Öffnen */
    transition: transform .35s var(--ease);
    z-index: 1050;
    /* unter Hamburger, über Seite */
    margin-left: 0;
    /* kein auto mehr */
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
  }

  /* ── Sonstige Mobile-Anpassungen ── */
  :root {
    --space-24: 4rem;
  }

  .hero-title {
    font-size: clamp(var(--fs-2xl), 9vw, var(--fs-3xl));
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .wow-slider {
    aspect-ratio: 4/3;
  }

  .ws-btn {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
  }
}

@media (max-width:480px) {
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}

@media (prefers-reduced-motion:reduce) {
  .ws-bg {
    transition: none !important;
  }

  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-fade,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media print {

  .navbar,
  .scroll-indicator,
  .tooltip,
  .preloader,
  .back-to-top,
  .side-nav {
    display: none;
  }

  .section {
    padding-block: 2rem;
  }

  .section-bg {
    background-image: none !important;
  }
}

.imgArGla {
  border-radius: 0px;
  border: #b7ff00 5px;
  background-clip: content-box;
  filter: drop-shadow(#b7ff00 0px 0px 25px);
  width: 60px;
  height: 60px;
}

.imgArGlaMenue {
  border-radius: 0px;
  background-clip: content-box;
  filter: drop-shadow(#b7ff00 0px 0px 25px);
  width: 60px;
  height: 60px;
}