/* ==========================================================================
   CSS RESET & BASISSTYLES - MIT VOLLSTÄNDIGEM DARK MODE
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  font-family: "EB Garamond", Garamond, serif;
  background-color: #000000;
  color: #cfd2d6;
  line-height: 1.65;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-y: auto;
  position: relative;
}

/* ==========================================================================
   VOLLSTÄNDIGER DARK MODE FÜR DIE GANZE SEITE
   ========================================================================== */
body.dark-mode {
  background-color: #0a0a0a !important; /* Dunkleres Schwarz */
  color: #e8e8e8;
}

/* Dark Mode Übergänge für alle Elemente */
body.dark-mode,
body.dark-mode *:not(.preloader-logo):not(.logo) {
  transition: background-color 0.4s ease, 
              color 0.4s ease, 
              border-color 0.4s ease, 
              box-shadow 0.4s ease !important;
}

/* ==========================================================================
   PRELOADER - MIT DEUTLICHEM DARK MODE KONTRAST
   ========================================================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease, background-color 0.4s ease !important;
}

/* DEUTLICHER KONTRAST IM DARK MODE */
body.dark-mode #preloader {
  background: #050505 !important; /* Fast Schwarz */
}

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

.preloader-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.preloader-logo {
  width: 200px;
  height: auto;
  margin-bottom: clamp(60px, 15vh, 150px);
  display: block;
  filter: brightness(1.1) drop-shadow(0 0 10px rgba(192, 192, 192, 0.3));
  animation: preloaderLogoPulse 3s infinite ease-in-out;
  transform-origin: center;
}

/* DEUTLICH HELLER IM DARK MODE FÜR KONTRAST */
body.dark-mode .preloader-logo {
  filter: brightness(1.4) drop-shadow(0 0 15px rgba(192, 192, 192, 0.4)) !important;
}

.preloader-text {
  font-family: "Cinzel", serif;
  font-size: clamp(28px, 6vw, 45px);
  letter-spacing: 0.2em;
  color: #e0e0e0;
  text-shadow: 0 0 10px rgba(200, 200, 200, 0.3);
  margin-bottom: clamp(100px, 25vh, 200px);
  min-height: 50px;
  position: relative;
}

body.dark-mode .preloader-text {
  color: #ffffff !important; /* Weiß für maximalen Kontrast */
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5) !important;
}

/* Typewriter Cursor - HELLER IM DARK MODE */
.preloader-text::after {
  content: '|';
  animation: blink 1s infinite;
  margin-left: 5px;
  color: #c0c0c0;
}

body.dark-mode .preloader-text::after {
  color: #ffffff !important; /* Weiß für Kontrast */
}

/* ==========================================================================
   PRELOADER SILBERNER STRICH - VERBESSERT
   ========================================================================== */
.preloader-line {
  position: absolute;
  top: calc(70% + 40px);
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    #c0c0c0,
    #ffffff,
    #c0c0c0,
    transparent
  );
  opacity: 0;
  border-radius: 2px;
  box-shadow: 
    0 0 15px rgba(192, 192, 192, 0.6),
    0 0 30px rgba(192, 192, 192, 0.4),
    inset 0 0 10px rgba(255, 255, 255, 0.3);
  z-index: 10000;
}

body.dark-mode .preloader-line {
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    #ffffff,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  box-shadow: 
    0 0 20px rgba(255, 255, 255, 0.6),
    0 0 40px rgba(255, 255, 255, 0.3),
    inset 0 0 15px rgba(255, 255, 255, 0.4);
}

.preloader-line.active {
  animation: 
    lineExpand 2s cubic-bezier(0.4, 0, 0.2, 1) forwards,
    lineGlow 2s ease-in-out;
}

/* ==========================================================================
   ANIMATIONEN - VERBESSERT
   ========================================================================== */
@keyframes preloaderLogoPulse {
  0%, 100% { 
    transform: scale(1); 
    filter: brightness(1.1) drop-shadow(0 0 10px rgba(192, 192, 192, 0.3)); 
  }
  50% { 
    transform: scale(1.08); 
    filter: brightness(1.4) drop-shadow(0 0 25px rgba(192, 192, 192, 0.7)); 
  }
}

@keyframes lineExpand {
  0% { 
    width: 0; 
    opacity: 0; 
  }
  10% {
    width: 20%;
    opacity: 0.4;
  }
  50% { 
    width: 80%; 
    opacity: 1; 
  }
  100% { 
    width: 100%; 
    opacity: 0.7; 
  }
}

@keyframes lineGlow {
  0%, 100% { 
    box-shadow: 
      0 0 15px rgba(192, 192, 192, 0.6),
      0 0 30px rgba(192, 192, 192, 0.4),
      inset 0 0 10px rgba(255, 255, 255, 0.3); 
  }
  50% { 
    box-shadow: 
      0 0 25px rgba(255, 255, 255, 0.9),
      0 0 50px rgba(255, 255, 255, 0.6),
      inset 0 0 20px rgba(255, 255, 255, 0.6); 
  }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes logoPulse {
  0%, 100% { 
    transform: scale(1); 
    filter: brightness(1.1) drop-shadow(0 0 15px rgba(192, 192, 192, 0.2)); 
  }
  50% { 
    transform: scale(1.03); 
    filter: brightness(1.25) drop-shadow(0 0 20px rgba(192, 192, 192, 0.5)); 
  }
}

@keyframes logoGlow {
  0%, 100% { 
    transform: scale(1.05); 
    filter: brightness(1.2) drop-shadow(0 0 20px rgba(192, 192, 192, 0.4)); 
  }
  50% { 
    transform: scale(1.08); 
    filter: brightness(1.6) drop-shadow(0 0 35px rgba(192, 192, 192, 0.9)); 
  }
}

@keyframes silverGlow {
  0%, 100% { 
    box-shadow: 
      0 5px 20px rgba(192, 192, 192, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 0 10px rgba(192, 192, 192, 0.3); 
  }
  50% { 
    box-shadow: 
      0 5px 30px rgba(192, 192, 192, 0.9),
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      0 0 25px rgba(192, 192, 192, 0.7); 
  }
}

/* ==========================================================================
   HEADER - MIT DARK MODE UND ANIMATIONEN
   ========================================================================== */
.header {
  padding: 35px 20px 25px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.95);
  position: relative;
  opacity: 1 !important;
  visibility: visible !important;
  transition: background-color 0.4s ease;
  border-bottom: 1px solid rgba(192, 192, 192, 0.1);
}

/* DEUTLICHER DARK MODE KONTRAST FÜR HEADER */
body.dark-mode .header {
  background-color: rgba(20, 20, 20, 0.98) !important; /* Helleres Grau für Kontrast */
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.logo {
  width: min(75vw, 420px);
  max-width: 380px;
  height: auto;
  margin: 0 auto 25px;
  display: block;
  filter: brightness(1.1) drop-shadow(0 0 15px rgba(192, 192, 192, 0.2));
  animation: logoPulse 5s infinite ease-in-out; /* PULSIERENDE ANIMATION */
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

/* HOVER EFFECT MIT GLOW */
.logo:hover {
  animation: logoGlow 1.2s infinite ease-in-out; /* STÄRKERE HOVER ANIMATION */
  transform: scale(1.05);
}

/* DEUTLICH HELLER IM DARK MODE */
body.dark-mode .logo {
  filter: brightness(1.3) drop-shadow(0 0 20px rgba(255, 255, 255, 0.3)) !important;
}

body.dark-mode .logo:hover {
  filter: brightness(1.7) drop-shadow(0 0 40px rgba(255, 255, 255, 0.7)) !important;
}

/* ==========================================================================
   DARK MODE TOGGLE - MIT BESSEREM KONTRAST
   ========================================================================== */
.dark-mode-toggle {
  position: absolute;
  top: 35px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(200, 205, 215, 0.4);
  color: #d6d9de;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10002;
  padding: 0;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-appearance: none;
  touch-action: manipulation;
}

.dark-mode-toggle:hover {
  background: rgba(20, 20, 20, 0.9);
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* DARK MODE TOGGLE STYLES */
body.dark-mode .dark-mode-toggle {
  background: rgba(40, 40, 40, 0.9) !important; /* HELLER FÜR KONTRAST */
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
}

body.dark-mode .dark-mode-toggle:hover {
  background: rgba(60, 60, 60, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

.moon-icon, .sun-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: all 0.3s ease;
}

/* STANDARD: Mond anzeigen, Sonne verstecken */
.moon-icon {
  display: block;
}

.sun-icon {
  display: none;
}

/* DARK MODE: Sonne anzeigen, Mond verstecken */
body.dark-mode .moon-icon {
  display: none;
}

body.dark-mode .sun-icon {
  display: block;
}

/* ==========================================================================
   BURGER MENÜ - DARK MODE ANPASSUNG
   ========================================================================== */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  margin: 0;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  position: absolute;
  z-index: 10002;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-appearance: none;
  touch-action: manipulation;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #cfd2d6;
  transition: all 0.3s ease;
  border-radius: 1px;
  transform-origin: center;
}

body.dark-mode .burger span {
  background-color: #ffffff; /* WEIß FÜR KONTRAST */
}

.burger.aktiv span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger.aktiv span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.burger.aktiv span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.burger:hover span {
  background-color: rgba(192, 192, 192, 0.9);
  box-shadow: 0 0 8px rgba(192, 192, 192, 0.5);
}

body.dark-mode .burger:hover span {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   NAVIGATION - MIT DARK MODE KONTRAST
   ========================================================================== */
.hauptnavigation {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 15px 30px;
  z-index: 100;
  background: rgba(10, 10, 10, 0.96); /* HELLER FÜR KONTRAST */
  backdrop-filter: blur(12px);
  border-radius: 8px;
  margin: 0 auto;
  max-width: fit-content;
  border: 1px solid rgba(192, 192, 192, 0.3);
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 20px rgba(192, 192, 192, 0.2);
}

/* DEUTLICH DUNKLER IM DARK MODE */
body.dark-mode .hauptnavigation {
  background: rgba(30, 30, 30, 0.97) !important; /* HELLERES GRAU */
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 25px rgba(255, 255, 255, 0.3) !important;
}

body.scrolled .hauptnavigation {
  background: rgba(8, 8, 8, 0.98);
  backdrop-filter: blur(18px);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 25px rgba(192, 192, 192, 0.25);
  border: 1px solid rgba(192, 192, 192, 0.35);
}

.hauptnavigation a {
  font-family: "Cinzel", serif;
  color: rgba(232, 234, 236, 0.95) !important;
  text-decoration: none;
  letter-spacing: 0.15em;
  font-size: 0.95rem;
  padding: 10px 18px;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
  text-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.7),
    0 0 8px rgba(192, 192, 192, 0.4);
  -webkit-tap-highlight-color: rgba(192, 192, 192, 0.2);
  touch-action: manipulation;
  background: rgba(20, 20, 20, 0.5);
  border-radius: 4px;
}

body.dark-mode .hauptnavigation a {
  background: rgba(50, 50, 50, 0.7) !important; /* HELLER FÜR KONTRAST */
  color: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hauptnavigation a:hover {
  color: #ffffff !important;
  text-shadow: 
    0 0 20px rgba(192, 192, 192, 0.9),
    0 0 30px rgba(192, 192, 192, 0.6);
  transform: translateY(-2px);
  background: linear-gradient(45deg, 
    rgba(192, 192, 192, 0.25), 
    rgba(192, 192, 192, 0.15));
  box-shadow: 
    0 8px 25px rgba(192, 192, 192, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 15px rgba(192, 192, 192, 0.4);
}

body.dark-mode .hauptnavigation a:hover {
  background: linear-gradient(45deg, 
    rgba(255, 255, 255, 0.25), 
    rgba(255, 255, 255, 0.15)) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 
    0 8px 30px rgba(255, 255, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 20px rgba(255, 255, 255, 0.5) !important;
}

.hauptnavigation a.active {
  color: #ffffff !important;
  font-weight: 600;
  text-shadow: 
    0 0 15px rgba(192, 192, 192, 0.9),
    0 0 25px rgba(192, 192, 192, 0.5),
    0 2px 3px rgba(0, 0, 0, 0.6);
  background: linear-gradient(45deg, 
    rgba(192, 192, 192, 0.3), 
    rgba(192, 192, 192, 0.2));
  border: 1px solid rgba(192, 192, 192, 0.4);
  animation: silverGlow 3s infinite ease-in-out;
  box-shadow: 
    0 5px 25px rgba(192, 192, 192, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 15px rgba(192, 192, 192, 0.4);
}

body.dark-mode .hauptnavigation a.active {
  background: linear-gradient(45deg, 
    rgba(255, 255, 255, 0.3), 
    rgba(255, 255, 255, 0.2)) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 
    0 5px 30px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 20px rgba(255, 255, 255, 0.6) !important;
}

/* ==========================================================================
   LICHTKANTEN - MIT DARK MODE KONTRAST
   ========================================================================== */
.lichtkante,
.footer-lichtkante,
.social-lichtkante {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(192, 192, 192, 0.9),
    rgba(192, 192, 192, 0.6),
    rgba(192, 192, 192, 0.9),
    transparent
  );
  margin: 25px 0;
  box-shadow: 0 0 10px rgba(192, 192, 192, 0.3);
}

body.dark-mode .lichtkante,
body.dark-mode .footer-lichtkante,
body.dark-mode .social-lichtkante {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.8),
    transparent
  );
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   INHALT - MIT VOLLSTÄNDIGEM DARK MODE
   ========================================================================== */
.inhalt {
  padding: 60px 20px;
  max-width: 720px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
  will-change: opacity, transform;
  background-color: rgba(5, 5, 5, 0.9); /* DUNKLER HINTERGRUND */
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-top: 20px;
  margin-bottom: 20px;
}

/* DEUTLICH HELLER IM DARK MODE */
body.dark-mode .inhalt {
  background-color: rgba(25, 25, 25, 0.95) !important; /* HELLER FÜR KONTRAST */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.loaded .inhalt {
  opacity: 1;
  transform: translateY(0);
}

h1 {
  font-family: "Cinzel", serif;
  letter-spacing: 0.1em;
  color: #e4e6ea;
  text-align: center;
  margin-bottom: 35px;
  font-size: 2.3rem;
  line-height: 1.3;
}

body.dark-mode h1 {
  color: #ffffff !important; /* WEIß FÜR KONTRAST */
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

p {
  margin-bottom: 28px;
  font-size: 1.15rem;
  line-height: 1.75;
  color: #b0b5bc;
  text-align: left;
}

body.dark-mode p {
  color: #e0e0e0 !important; /* HELLER FÜR KONTRAST */
}

/* ==========================================================================
   FOOTER - MIT VOLLSTÄNDIGEM DARK MODE
   ========================================================================== */
.footer {
  text-align: center;
  padding: 35px 20px;
  font-size: 0.9rem;
  color: #9da2a8;
  background-color: rgba(0, 0, 0, 0.95); /* DUNKLER HINTERGRUND */
  width: 100%;
  border-top: 1px solid rgba(192, 192, 192, 0.1);
  margin-top: 40px;
}

/* DEUTLICH HELLER IM DARK MODE */
body.dark-mode .footer {
  background-color: rgba(20, 20, 20, 0.98) !important; /* HELLER FÜR KONTRAST */
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer p {
  text-align: center;
  margin: 0;
  font-size: 0.9rem;
}

body.dark-mode .footer p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: "Cinzel", serif;
  color: #9da2a8;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  border-radius: 3px;
}

body.dark-mode .footer-links a {
  color: rgba(255, 255, 255, 0.7) !important;
  background: rgba(40, 40, 40, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a:hover {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
  background: rgba(192, 192, 192, 0.1);
}

body.dark-mode .footer-links a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   SOCIAL MEDIA - MIT DARK MODE KONTRAST
   ========================================================================== */
.social-section {
  margin: 50px 0;
  padding: 40px 20px;
  text-align: center;
  background-color: rgba(5, 5, 5, 0.9); /* DUNKLER HINTERGRUND */
  border-radius: 8px;
}

body.dark-mode .social-section {
  background-color: rgba(25, 25, 25, 0.95) !important; /* HELLER FÜR KONTRAST */
}

.social-title {
  font-family: "Cinzel", serif;
  color: #e4e6ea;
  margin-bottom: 35px;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-shadow: 0 0 8px rgba(200, 200, 200, 0.3);
}

body.dark-mode .social-title {
  color: #ffffff !important;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.social-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  max-width: 800px;
  margin: 0 auto;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #9da2a8;
  transition: all 0.3s ease;
  width: 80px;
}

body.dark-mode .social-link {
  color: rgba(255, 255, 255, 0.7) !important;
}

.social-icon-wrapper {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200, 205, 215, 0.3);
  border-radius: 50%;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  background: rgba(15, 15, 15, 0.6);
}

body.dark-mode .social-icon-wrapper {
  background: rgba(40, 40, 40, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.social-icon {
  width: 26px;
  height: 26px;
  fill: #9da2a8;
  transition: all 0.3s ease;
}

body.dark-mode .social-icon {
  fill: rgba(255, 255, 255, 0.7) !important;
}

.social-name {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.social-link:hover {
  color: #ffffff !important;
  transform: translateY(-3px);
}

.social-link:hover .social-icon-wrapper {
  border-color: rgba(192, 192, 192, 0.8);
  background: rgba(192, 192, 192, 0.2);
  box-shadow: 0 0 20px rgba(192, 192, 192, 0.5);
}

body.dark-mode .social-link:hover .social-icon-wrapper {
  border-color: rgba(255, 255, 255, 0.6) !important;
  background: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6) !important;
}

.social-link:hover .social-icon {
  fill: #ffffff !important;
}

/* ==========================================================================
   STARTSEITE SPEZIFISCHE STYLES - DARK MODE
   ========================================================================== */
.startseite .credo-headline {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 40px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 0 10px rgba(200, 200, 200, 0.3);
}

body.dark-mode .startseite .credo-headline {
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.einleitung {
  margin-bottom: 50px;
}

.lead-text {
  font-size: 1.4rem;
  text-align: center;
  color: #e4e6ea;
  margin-bottom: 15px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body.dark-mode .lead-text {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
}

.sub-lead-text {
  text-align: center;
  color: #b0b5bc;
  line-height: 1.6;
  font-size: 1.1rem;
}

body.dark-mode .sub-lead-text {
  color: #e0e0e0 !important;
}

.kerninhalt p {
  margin-bottom: 25px;
}

.kerninhalt .highlight {
  font-size: 1.3rem;
  color: #e4e6ea;
  text-align: center;
  font-style: italic;
  margin: 40px 0;
  padding: 20px;
  border-left: 2px solid rgba(200, 205, 215, 0.4);
  border-right: 2px solid rgba(200, 205, 215, 0.4);
  background: rgba(20, 20, 20, 0.4);
  border-radius: 4px;
}

body.dark-mode .kerninhalt .highlight {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(40, 40, 40, 0.6) !important;
}

.kerninhalt .zitat {
  text-align: center;
  font-size: 1.4rem;
  color: #e4e6ea;
  margin: 50px 0;
  padding: 30px 20px;
  position: relative;
  background: rgba(20, 20, 20, 0.4);
  border-radius: 8px;
}

body.dark-mode .kerninhalt .zitat {
  color: #ffffff !important;
  background: rgba(40, 40, 40, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.zitat-autor {
  display: block;
  margin-top: 15px;
  font-size: 1rem;
  color: #b0b5bc;
  font-style: normal;
}

body.dark-mode .zitat-autor {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ==========================================================================
   KALLIGRAFIE ZITAT - DARK MODE
   ========================================================================== */
.credo-container {
  margin: 4rem auto 5rem;
  max-width: 900px;
  position: relative;
}

.credo-quote-wrapper {
  position: relative;
  padding: 2rem 1rem;
  margin-bottom: 2.5rem;
}

.kalligrafie-text {
  font-family: 'Great Vibes', 'Dancing Script', cursive;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.2;
  color: #ffffff;
  text-align: center;
  margin: 0 auto 1.5rem;
  letter-spacing: 1.5px;
  text-shadow: 
    0 2px 4px rgba(0,0,0,0.8),
    0 0 20px rgba(192, 192, 192, 0.5);
  position: relative;
  padding: 0 2rem;
  max-width: 800px;
}

body.dark-mode .kalligrafie-text {
  text-shadow: 
    0 2px 4px rgba(0,0,0,0.9),
    0 0 25px rgba(255, 255, 255, 0.6) !important;
}

/* ==========================================================================
   CTA BUTTONS - DARK MODE
   ========================================================================== */
.cta-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 50px 0 30px;
  flex-wrap: wrap;
}

.silber-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 35px;
  background: transparent;
  color: #d6d9de;
  border: 1px solid rgba(200, 205, 215, 0.5);
  border-radius: 4px;
  font-family: "Cinzel", serif;
  letter-spacing: 0.1em;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  background: rgba(15, 15, 15, 0.7);
}

body.dark-mode .silber-button {
  background: rgba(40, 40, 40, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
}

.silber-button:hover {
  background: rgba(200, 205, 215, 0.15) !important;
  color: #ffffff !important;
  border-color: rgba(200, 205, 215, 0.8) !important;
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(192, 192, 192, 0.5),
    0 0 20px rgba(192, 192, 192, 0.3);
}

body.dark-mode .silber-button:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  box-shadow: 
    0 8px 30px rgba(255, 255, 255, 0.4),
    0 0 25px rgba(255, 255, 255, 0.3) !important;
}

.button-arrow {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.silber-button:hover .button-arrow {
  transform: translateX(5px);
}

/* ==========================================================================
   MOBILE NAVIGATION - MIT DARK MODE
   ========================================================================== */
@media screen and (max-width: 768px) {
  .header {
    padding: 20px 15px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-height: auto;
    background-color: rgba(0, 0, 0, 0.98);
  }
  
  body.dark-mode .header {
    background-color: rgba(25, 25, 25, 0.98) !important;
  }
  
  .logo {
    width: min(65vw, 280px);
    margin: 0 auto 15px;
    order: 1;
  }
  
  .burger {
    display: flex;
    position: absolute;
    top: 25px;
    right: 15px;
    z-index: 10002;
    order: 3;
  }
  
  .dark-mode-toggle {
    position: absolute;
    top: 25px;
    left: 15px;
    right: auto;
    z-index: 10001;
    order: 2;
    width: 36px;
    height: 36px;
  }
  
  /* MOBILE NAVIGATION */
  .hauptnavigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    height: 100dvh;
    background: rgba(15, 15, 15, 0.99) !important;
    backdrop-filter: blur(15px) !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    padding: 100px 20px 40px;
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 40px rgba(0, 0, 0, 0.9);
    border: none !important;
    border-radius: 0 !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  
  body.dark-mode .hauptnavigation {
    background: rgba(35, 35, 35, 0.99) !important; /* HELLER FÜR KONTRAST */
  }
  
  .hauptnavigation.aktiv {
    right: 0;
  }
  
  .hauptnavigation a {
    font-size: 1.1rem;
    padding: 16px 24px;
    width: 100%;
    max-width: 260px;
    text-align: center;
    border: 1px solid rgba(200, 205, 215, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgba(25, 25, 25, 0.9);
    margin: 3px 0;
    color: rgba(232, 234, 236, 0.95) !important;
    font-weight: 500;
    text-shadow: 
      0 1px 3px rgba(0, 0, 0, 0.6),
      0 0 8px rgba(192, 192, 192, 0.4);
  }
  
  body.dark-mode .hauptnavigation a {
    background: rgba(50, 50, 50, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
  }
  
  .hauptnavigation a:hover {
    background: linear-gradient(45deg, 
      rgba(192, 192, 192, 0.2), 
      rgba(192, 192, 192, 0.1));
    border-color: rgba(192, 192, 192, 0.5);
    box-shadow: 
      0 8px 25px rgba(192, 192, 192, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.15),
      0 0 15px rgba(192, 192, 192, 0.3);
  }
  
  body.dark-mode .hauptnavigation a:hover {
    background: linear-gradient(45deg, 
      rgba(255, 255, 255, 0.25), 
      rgba(255, 255, 255, 0.15)) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
  }
  
  /* MENU OVERLAY */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(3px);
    touch-action: none;
    cursor: pointer;
  }
  
  body.dark-mode .menu-overlay {
    background: rgba(0, 0, 0, 0.85);
  }
  
  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Scroll-Verhalten FIX */
  html.menu-open,
  body.menu-open {
    overflow: hidden;
    height: 100%;
  }
  
  /* MOBILE PRELOADER KORREKTUREN */
  #preloader {
    background: #000000 !important;
    transition: opacity 0.4s ease, visibility 0.4s ease !important;
  }
  
  body.dark-mode #preloader {
    background: #050505 !important;
  }
  
  .preloader-logo {
    width: 160px !important;
    margin-bottom: 80px !important;
  }
  
  .preloader-text {
    font-size: 24px !important;
    margin-bottom: 120px !important;
  }
  
  /* Inhalt Anpassungen für Mobile */
  .inhalt {
    padding: 40px 15px;
    background-color: rgba(8, 8, 8, 0.95);
  }
  
  body.dark-mode .inhalt {
    background-color: rgba(30, 30, 30, 0.97) !important;
  }
  
  h1 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  
  p {
    font-size: 1.05rem;
    text-align: center;
    line-height: 1.7;
  }
  
  .lichtkante {
    margin: 20px 0;
  }
  
  .footer {
    padding: 25px 15px;
    background-color: rgba(0, 0, 0, 0.98);
  }
  
  body.dark-mode .footer {
    background-color: rgba(25, 25, 25, 0.98) !important;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media screen and (max-width: 1024px) {
  .preloader-logo {
    width: 160px;
  }
  
  .preloader-text {
    font-size: 28px;
  }
  
  .logo {
    width: min(70vw, 320px);
  }
  
  .hauptnavigation {
    gap: 25px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  p {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 480px) {
  .preloader-logo {
    width: 120px;
  }
  
  .preloader-text {
    font-size: 20px;
    letter-spacing: 0.15em;
  }
  
  .logo {
    width: min(60vw, 220px);
  }
  
  .hauptnavigation {
    width: 250px;
    padding-top: 100px;
  }
  
  .hauptnavigation a {
    font-size: 1.1rem;
    padding: 16px 25px;
  }
  
  .burger {
    top: 25px;
    right: 15px;
    width: 28px;
    height: 28px;
  }
  
  .dark-mode-toggle {
    top: 25px;
    left: 15px;
    width: 32px;
    height: 32px;
  }
  
  .inhalt {
    padding: 30px 12px;
  }
  
  h1 {
    font-size: 1.6rem;
    margin-bottom: 25px;
  }
  
  p {
    font-size: 1rem;
    margin-bottom: 22px;
  }
  
  .footer {
    padding: 20px 12px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   PERFORMANCE OPTIMIERUNGEN
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .preloader-logo,
  .logo,
  .hauptnavigation a.active {
    animation: none !important;
  }
}

/* ==========================================================================
   DARK MODE MEDIA QUERY FÜR SYSTEMPREFERENZ
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  body:not(.light-mode) {
    background-color: #0a0a0a;
    color: #e8e8e8;
  }
  
  body:not(.light-mode) .preloader-logo {
    filter: brightness(1.4) drop-shadow(0 0 15px rgba(192, 192, 192, 0.4));
  }
  
  body:not(.light-mode) .preloader-text {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  }
}

/* ==========================================================================
   DRUCK STYLES
   ========================================================================== */
@media print {
  #preloader,
  .burger,
  .hauptnavigation,
  .dark-mode-toggle,
  .social-section,
  .cta-container {
    display: none;
  }
  
  body {
    background-color: white !important;
    color: black !important;
    font-size: 12pt;
  }
  
  .logo {
    filter: invert(1);
  }
  
  .inhalt {
    padding: 20px 0 !important;
    max-width: 100% !important;
    background: none !important;
    box-shadow: none !important;
  }
  
  h1 {
    color: black !important;
    font-size: 18pt !important;
  }
  
  p {
    color: #333 !important;
    text-align: justify !important;
  }
}
/* ================= KONTAKT PAGE STYLES ================= */
.kontakt-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.kontakt-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148, 148, 148, 0.2);
}

.kontakt-header h1 {
  font-family: 'Cinzel', serif;
  font-size: 2.8rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.untertitel {
  font-size: 1.2rem;
  color: #9da2a8;
  font-style: italic;
  margin-top: 0;
}

/* Layout mit zwei Spalten */
.kontakt-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .kontakt-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Linke Spalte */
.kontakt-info {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(148, 148, 148, 0.15);
}

.kontakt-info h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kontakt-info h2 .icon {
  width: 24px;
  height: 24px;
  color: var(--accent-color);
}

/* E-Mail Button Styling */
.email-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(148, 148, 148, 0.1);
  transition: all 0.3s ease;
}

.email-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.label {
  font-size: 0.9rem;
  color: #9da2a8;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.email-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent-color);
  color: #1a1a1a;
  text-decoration: none;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  width: 100%;
  border: none;
  cursor: pointer;
  gap: 1rem;
}

.email-button:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.email-button .arrow {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

.hinweis {
  font-size: 0.85rem;
  color: #9da2a8;
  margin-top: 0.75rem;
  text-align: center;
}

/* Kontakt Details */
.kontakt-details {
  margin-top: 2rem;
}

.kontakt-details h3 {
  font-size: 1.3rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tipp-liste {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tipp-liste li {
  padding: 0.5rem 0;
  color: var(--text-color);
  border-bottom: 1px solid rgba(148, 148, 148, 0.1);
  font-size: 0.95rem;
}

.tipp-liste li:last-child {
  border-bottom: none;
}

.tipp-liste li strong {
  color: var(--accent-color);
  margin-right: 0.5rem;
}

/* Rechte Spalte */
.kontakt-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.text-block {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(148, 148, 148, 0.15);
}

.text-block h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.text-block h3 .icon {
  width: 22px;
  height: 22px;
  color: var(--accent-color);
}

.text-block p {
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.highlight {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Antwortzeit Info */
.antwortzeit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  background: rgba(148, 148, 148, 0.05);
  border-radius: 8px;
  color: var(--text-color);
  font-size: 0.95rem;
}

.clock-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-color);
}

/* Aktionsbuttons im Textblock */
.kontakt-aktionen {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(148, 148, 148, 0.15);
}

.kontakt-aktionen h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  color: var(--text-color);
  margin-bottom: 0.75rem;
}

.kontakt-aktionen p {
  color: #9da2a8;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.aktions-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Dark Mode Anpassungen */
.dark-mode .email-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .tipp-liste li {
  border-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .antwortzeit {
  background: rgba(255, 255, 255, 0.03);
}

/* Animation für Hover Effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kontakt-info, .text-block, .kontakt-aktionen {
  animation: fadeInUp 0.6s ease-out;
}

.text-block:nth-child(2) {
  animation-delay: 0.2s;
}

.kontakt-aktionen {
  animation-delay: 0.4s;
}
/* ==========================================================================
   LICHTBALKEN ANIMATION - SANFTES SILBERNES PULSIEREN
   ========================================================================== */

/* Haupt-Animation für die Lichtbalken */
@keyframes lichtbalkenPuls {
  0%, 100% { 
    opacity: 0.6;
    box-shadow: 
      0 0 10px rgba(192, 192, 192, 0.3),
      0 0 5px rgba(192, 192, 192, 0.2); 
  }
  50% { 
    opacity: 1;
    box-shadow: 
      0 0 20px rgba(192, 192, 192, 0.6),
      0 0 15px rgba(192, 192, 192, 0.4),
      0 0 8px rgba(192, 192, 192, 0.3); 
  }
}

/* Noch elegantere Variante mit Gradienten-Animation */
@keyframes lichtbalkenFlow {
  0% { 
    background-position: -200% 0;
    opacity: 0.7;
  }
  50% { 
    background-position: 200% 0;
    opacity: 1;
  }
  100% { 
    background-position: -200% 0;
    opacity: 0.7;
  }
}

/* Verbesserte Version mit Schimmer-Effekt */
@keyframes silberSchimmer {
  0%, 100% {
    background: linear-gradient(
      90deg,
      transparent,
      rgba(192, 192, 192, 0.7),
      rgba(192, 192, 192, 0.9),
      rgba(192, 192, 192, 0.7),
      transparent
    );
    box-shadow: 0 0 12px rgba(192, 192, 192, 0.3);
  }
  50% {
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.9),
      #ffffff,
      rgba(255, 255, 255, 0.9),
      transparent
    );
    box-shadow: 
      0 0 25px rgba(255, 255, 255, 0.5),
      0 0 15px rgba(255, 255, 255, 0.3);
  }
}

/* Erweiterte Animation für sanfte Bewegung */
@keyframes silberWelle {
  0% {
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(192, 192, 192, 0.4) 20%,
      rgba(192, 192, 192, 0.8) 50%,
      rgba(192, 192, 192, 0.4) 80%,
      transparent 100%
    );
    background-size: 200% 100%;
    background-position: -200% 0;
  }
  100% {
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(192, 192, 192, 0.4) 20%,
      rgba(192, 192, 192, 0.8) 50%,
      rgba(192, 192, 192, 0.4) 80%,
      transparent 100%
    );
    background-size: 200% 100%;
    background-position: 200% 0;
  }
}

/* ==========================================================================
   ANIMIERTE LICHTKANTEN - HEADER, SOCIAL, FOOTER
   ========================================================================== */

/* Gemeinsame Basis für alle Lichtkanten */
.lichtkante,
.footer-lichtkante,
.social-lichtkante {
  animation: lichtbalkenPuls 3s infinite ease-in-out;
  transition: all 0.4s ease;
  background-size: 200% 100% !important;
  background-position: 0% 0% !important;
}

/* Spezifische Animationen für jeden Balken */
.lichtkante {
  animation: silberWelle 8s infinite linear;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(192, 192, 192, 0.4) 20%,
    rgba(192, 192, 192, 0.8) 50%,
    rgba(192, 192, 192, 0.4) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  height: 1px;
  margin: 25px 0;
  box-shadow: 
    0 0 15px rgba(192, 192, 192, 0.3),
    inset 0 0 5px rgba(255, 255, 255, 0.1);
}

.footer-lichtkante {
  animation: silberWelle 10s infinite linear;
  animation-delay: 1s;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(192, 192, 192, 0.5) 25%,
    rgba(192, 192, 192, 0.9) 50%,
    rgba(192, 192, 192, 0.5) 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  height: 1px;
  margin: 25px 0;
  box-shadow: 
    0 0 18px rgba(192, 192, 192, 0.4),
    inset 0 0 6px rgba(255, 255, 255, 0.15);
}

.social-lichtkante {
  animation: silberWelle 12s infinite linear;
  animation-delay: 2s;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(192, 192, 192, 0.6) 30%,
    rgba(192, 192, 192, 1) 50%,
    rgba(192, 192, 192, 0.6) 70%,
    transparent 100%
  );
  background-size: 200% 100%;
  height: 1px;
  margin: 25px 0;
  box-shadow: 
    0 0 20px rgba(192, 192, 192, 0.5),
    inset 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Hover-Effekt für alle Lichtkanten */
.lichtkante:hover,
.footer-lichtkante:hover,
.social-lichtkante:hover {
  animation-duration: 2s !important;
  box-shadow: 
    0 0 30px rgba(192, 192, 192, 0.8),
    inset 0 0 12px rgba(255, 255, 255, 0.3);
  height: 2px;
  transform: scaleX(1.05);
  filter: brightness(1.5);
}

/* ==========================================================================
   DARK MODE ANIMATIONEN - INTENSIVERES PULSIEREN
   ========================================================================== */

body.dark-mode .lichtkante {
  animation: silberWelle 6s infinite linear;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 20%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0.3) 80%,
    transparent 100%
  );
  box-shadow: 
    0 0 20px rgba(255, 255, 255, 0.4),
    0 0 30px rgba(255, 255, 255, 0.2),
    inset 0 0 8px rgba(255, 255, 255, 0.2);
}

body.dark-mode .footer-lichtkante {
  animation: silberWelle 8s infinite linear;
  animation-delay: 1s;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 25%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0.4) 75%,
    transparent 100%
  );
  box-shadow: 
    0 0 25px rgba(255, 255, 255, 0.5),
    0 0 35px rgba(255, 255, 255, 0.3),
    inset 0 0 10px rgba(255, 255, 255, 0.3);
}

body.dark-mode .social-lichtkante {
  animation: silberWelle 10s infinite linear;
  animation-delay: 2s;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 30%,
    #ffffff 50%,
    rgba(255, 255, 255, 0.5) 70%,
    transparent 100%
  );
  box-shadow: 
    0 0 30px rgba(255, 255, 255, 0.6),
    0 0 40px rgba(255, 255, 255, 0.4),
    inset 0 0 12px rgba(255, 255, 255, 0.4);
}

/* Hover-Effekt im Dark Mode */
body.dark-mode .lichtkante:hover,
body.dark-mode .footer-lichtkante:hover,
body.dark-mode .social-lichtkante:hover {
  animation-duration: 1.5s !important;
  box-shadow: 
    0 0 40px rgba(255, 255, 255, 0.9),
    0 0 50px rgba(255, 255, 255, 0.6),
    inset 0 0 15px rgba(255, 255, 255, 0.5);
  height: 2px;
  transform: scaleX(1.1);
  filter: brightness(2);
}

/* ==========================================================================
   RESPONSIVE ANPASSUNGEN FÜR ANIMATIONEN
   ========================================================================== */

@media screen and (max-width: 768px) {
  /* Langsamere Animationen auf Mobile für bessere Performance */
  .lichtkante,
  .footer-lichtkante,
  .social-lichtkante {
    animation-duration: 12s !important;
  }
  
  body.dark-mode .lichtkante,
  body.dark-mode .footer-lichtkante,
  body.dark-mode .social-lichtkante {
    animation-duration: 8s !important;
  }
  
  /* Reduzierte Schatten auf Mobile */
  .lichtkante,
  .footer-lichtkante,
  .social-lichtkante {
    box-shadow: 
      0 0 8px rgba(192, 192, 192, 0.2),
      inset 0 0 3px rgba(255, 255, 255, 0.05);
  }
  
  body.dark-mode .lichtkante,
  body.dark-mode .footer-lichtkante,
  body.dark-mode .social-lichtkante {
    box-shadow: 
      0 0 12px rgba(255, 255, 255, 0.3),
      0 0 8px rgba(255, 255, 255, 0.2),
      inset 0 0 4px rgba(255, 255, 255, 0.1);
  }
}

@media screen and (max-width: 480px) {
  .lichtkante,
  .footer-lichtkante,
  .social-lichtkante {
    margin: 15px 0;
    animation-duration: 15s !important;
  }
  
  body.dark-mode .lichtkante,
  body.dark-mode .footer-lichtkante,
  body.dark-mode .social-lichtkante {
    animation-duration: 10s !important;
  }
}

/* ==========================================================================
   PERFORMANCE OPTIMIERUNGEN FÜR ANIMATIONEN
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .lichtkante,
  .footer-lichtkante,
  .social-lichtkante,
  body.dark-mode .lichtkante,
  body.dark-mode .footer-lichtkante,
  body.dark-mode .social-lichtkante {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   SPEZIELLE VERBESSERUNGEN FÜR FOOTER LICHTKANTE
   ========================================================================== */

/* Verbesserte Footer-Lichtkante für mehr Kontrast */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 300px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(192, 192, 192, 0.3),
    rgba(192, 192, 192, 0.6),
    rgba(192, 192, 192, 0.3),
    transparent
  );
  animation: lichtbalkenPuls 4s infinite ease-in-out;
  animation-delay: 0.5s;
}

body.dark-mode .footer::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: lichtbalkenPuls 3s infinite ease-in-out;
}

/* ==========================================================================
   FEINABSTIMMUNG DER ANIMATIONEN
   ========================================================================== */

/* Sanfter Start und Ende der Animationen */
.lichtkante,
.footer-lichtkante,
.social-lichtkante {
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Verzögerte Animationen für ein organischeres Aussehen */
.footer-lichtkante {
  animation-delay: 0.8s;
}

.social-lichtkante {
  animation-delay: 1.6s;
}

/* Subtile Schicht-Effekte für mehr Tiefe */
.lichtkante::after,
.footer-lichtkante::after,
.social-lichtkante::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  opacity: 0;
  animation: lichtbalkenPuls 6s infinite ease-in-out;
  animation-delay: 1s;
  pointer-events: none;
}

body.dark-mode .lichtkante::after,
body.dark-mode .footer-lichtkante::after,
body.dark-mode .social-lichtkante::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: lichtbalkenPuls 4s infinite ease-in-out;
}
/* ==========================================================================
   Änderung Header und Footer 
   ========================================================================== */
.lichtkante,
.footer-lichtkante,
.social-lichtkante,
.footer::before,
.lichtkante::after,
.footer-lichtkante::after,
.social-lichtkante::after {
    animation: none !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
}

/* Hover-Animationen deaktivieren */
.lichtkante:hover,
.footer-lichtkante:hover,
.social-lichtkante:hover {
    animation: none !important;
    transform: none !important;
    filter: none !important;
}
