/*
===========================================
BENJAMIN GILLMANN PHOTOGRAPHY
Ultra-Modern Design System 2025
Kreatives, Responsives & Elegantes Design
===========================================
*/

/* === ROOT VARIABLES === */
:root {
  /* Colors - Pure Black & White Design */
  --color-primary: #000000;
  --color-secondary: #ffffff;
  --color-accent: #000000;
  --color-accent-2: #404040;
  --color-accent-3: #808080;

  /* Grayscale */
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;

  /* Theme Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f5f5f5;
  --text-primary: #171717;
  --text-secondary: #525252;
  --text-tertiary: #a3a3a3;
  --border-color: #e5e5e5;

  /* Gradients - Black & White Only */
  --gradient-primary: linear-gradient(135deg, #000000 0%, #404040 100%);
  --gradient-warm: linear-gradient(135deg, #1a1a1a 0%, #4d4d4d 100%);
  --gradient-cool: linear-gradient(135deg, #0a0a0a 0%, #333333 100%);
  --gradient-sunset: linear-gradient(135deg, #262626 0%, #595959 100%);
  --gradient-dark: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 30px rgba(0, 0, 0, 0.4);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Poppins', var(--font-sans);

  /* Z-Index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-tooltip: 1050;
}

/* Dark Theme - Optimiert für Schwarz-Weiß Design */
[data-theme="dark"] {
  /* Reine Schwarz-Weiß Farbpalette */
  --bg-primary: #000000;
  --bg-secondary: #0f0f0f;
  --bg-tertiary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-tertiary: #a0a0a0;
  --border-color: #333333;

  /* Verbesserte Schatten für Dark Mode */
  --shadow-sm: 0 2px 4px 0 rgba(255, 255, 255, 0.08);
  --shadow-md: 0 4px 8px -1px rgba(255, 255, 255, 0.12);
  --shadow-lg: 0 10px 20px -3px rgba(255, 255, 255, 0.15);
  --shadow-xl: 0 20px 30px -5px rgba(255, 255, 255, 0.18);
  --shadow-2xl: 0 30px 60px -12px rgba(255, 255, 255, 0.25);

  /* Futuristischer Glow-Effekt für Dark Mode */
  --shadow-glow: 0 0 20px rgba(255, 255, 255, 0.15),
                 0 0 40px rgba(255, 255, 255, 0.1),
                 0 0 60px rgba(255, 255, 255, 0.05);

  /* Akzent-Highlights */
  --accent-glow: 0 0 30px rgba(255, 255, 255, 0.4);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  transition: background var(--transition-base), color var(--transition-base);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h4 { font-size: clamp(1.5rem, 3vw, 2rem); }
h5 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h6 { font-size: clamp(1.125rem, 2vw, 1.25rem); }

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  opacity: 0.8;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
}

section {
  padding: var(--space-4xl) 0;
}

@media (max-width: 768px) {
  section {
    padding: var(--space-2xl) 0;
  }
}

/* === HEADER/NAVIGATION - FUTURISTIC GLASSMORPHISM === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  /* Futuristic Glassmorphism Effect */
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease;
}

/* Animated Border Glow */
.header::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 25%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.1) 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: headerBorderGlow 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.header.scrolled::before {
  opacity: 1;
}

@keyframes headerBorderGlow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

[data-theme="dark"] .header {
  background: rgba(0, 0, 0, 0.7);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .header::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.1) 75%,
    transparent 100%
  );
  background-size: 200% 100%;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
              0 0 1px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .header.scrolled {
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.08),
              0 0 60px rgba(255, 255, 255, 0.03);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  gap: var(--space-xl);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.logo:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

[data-theme="dark"] .logo:hover {
  filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.3));
}

.logo-image {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.logo:hover .logo-image {
  transform: scale(1.05);
}

/* Mobile Logo Size */
@media (max-width: 768px) {
  .logo-image {
    width: 40px;
    height: 40px;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  padding: 0.5rem 0.25rem; /* Symmetrisches Padding */
  display: inline-block;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* PERFEKT KORRIGIERT: Futuristic Animated Underline - präzise zentriert */
.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-150%); /* Start außerhalb links */
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--text-primary),
    transparent
  );
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* PERFEKT KORRIGIERT: Underline exakt unter Text, zentriert */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--text-primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.nav-link:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.nav-link:hover::before {
  transform: translateX(50%); /* Gleitet durch zur rechten Seite */
}

.nav-link:hover::after {
  width: 100%; /* Exakte Breite des Link-Textes */
}

/* PERFEKT KORRIGIERT: Active Link Underline - genau zentriert */
.nav-link.active {
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
}

.nav-link.active::before {
  display: none; /* Keine Animation bei aktiven Links */
}

.nav-link.active::after {
  width: 100%; /* Volle Breite bei aktiven Links */
  background: var(--text-primary);
  box-shadow: 0 0 10px var(--text-primary);
}

[data-theme="dark"] .nav-link.active::after {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Theme Toggle */
.theme-toggle {
  position: relative;
  width: 60px;
  height: 32px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
}

.theme-toggle:hover {
  border-color: var(--text-primary);
}

.theme-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-bounce);
  font-size: 0.875rem;
}

[data-theme="dark"] .theme-toggle-slider {
  transform: translateX(28px);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    /* Größerer Touch-Target für bessere Usability */
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
  }

  .nav-menu {
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-xl) var(--space-lg);
    gap: var(--space-lg);
    transform: translateX(-100%);
    opacity: 0;
    transition: all var(--transition-base);
    /* Bessere Performance auf Mobile */
    will-change: transform, opacity;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
  }

  /* PERFEKT: Stagger Animation für Mobile Menu Links */
  .nav-menu .nav-link {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-menu.active .nav-link {
    opacity: 1;
    transform: translateX(0);
  }

  /* Gestaffelte Verzögerungen für smooth cascade effect */
  .nav-menu.active .nav-link:nth-child(1) { transition-delay: 0.05s; }
  .nav-menu.active .nav-link:nth-child(2) { transition-delay: 0.1s; }
  .nav-menu.active .nav-link:nth-child(3) { transition-delay: 0.15s; }
  .nav-menu.active .nav-link:nth-child(4) { transition-delay: 0.2s; }
  .nav-menu.active .nav-link:nth-child(5) { transition-delay: 0.25s; }
  .nav-menu.active .nav-link:nth-child(6) { transition-delay: 0.3s; }

  /* KORRIGIERT: Mobile Navigation Links */
  .nav-link {
    font-size: 1.125rem;
    /* Größerer Touch-Target */
    padding: var(--space-md) var(--space-sm);
    min-height: 44px;
    display: flex;
    align-items: center;
    width: 100%;
  }

  /* KORRIGIERT: Underline auf Mobile korrekt positionieren */
  .nav-link::after,
  .nav-link::before {
    bottom: 0;
    left: var(--space-sm);
    right: var(--space-sm);
    width: auto;
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: auto;
  }

  /* Logo auf Mobile optimieren */
  .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.logo:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

[data-theme="dark"] .logo:hover {
  filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.3));
}

  .logo-image {
    width: 28px;
    height: 28px;
  }

  /* Header Höhe auf Mobile anpassen */
  .nav {
    height: 70px;
  }
}

/* === HERO SECTION - FUTURISTIC ANIMATED === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Animated Gradient Mesh Background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(0, 0, 0, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(128, 128, 128, 0.05) 0%,
      transparent 70%
    );
  animation: heroMeshMove 15s ease-in-out infinite;
  pointer-events: none;
}

/* Floating Particles Effect */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 90% 60%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 33% 80%, rgba(255,255,255,0.3), transparent);
  background-size: 200% 200%;
  background-position: 0% 0%;
  animation: heroParticles 20s linear infinite;
  opacity: 0.3;
  pointer-events: none;
}

[data-theme="dark"] .hero::before {
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 70%
    );
}

[data-theme="dark"] .hero::after {
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 90% 60%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 33% 80%, rgba(255,255,255,0.6), transparent);
  background-size: 200% 200%;
  opacity: 0.5;
}

@keyframes heroMeshMove {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
    opacity: 0.8;
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
    opacity: 0.9;
  }
}

@keyframes heroParticles {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease, badgePulse 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

/* Animated Shine Effect */
.hero-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: badgeShine 3s ease-in-out infinite;
}

[data-theme="dark"] .hero-badge::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

@keyframes badgeShine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05);
  }
}

[data-theme="dark"] .hero-badge {
  animation: fadeInUp 0.6s ease, badgePulseDark 3s ease-in-out infinite;
}

@keyframes badgePulseDark {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 30px 0 rgba(255, 255, 255, 0.15);
  }
}

.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: var(--space-lg);
  /* Schwarz-Weiß Gradient */
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--text-secondary) 50%,
    var(--text-primary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation:
    fadeInUp 0.6s ease 0.2s both,
    gradientShift 8s ease infinite;
}

/* Dark Mode Hero Title mit Glow */
[data-theme="dark"] .hero-title {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #e0e0e0 50%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.2));
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.6s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === BUTTONS - FUTURISTIC === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
}

/* Animated Background Gradient */
.btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    45deg,
    var(--text-primary),
    var(--text-secondary),
    var(--text-primary)
  );
  background-size: 300% 300%;
  border-radius: var(--radius-full);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  animation: btnGradientFlow 3s ease infinite;
}

.btn:hover::before {
  opacity: 1;
}

/* Shine Effect */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s ease;
}

.btn:hover::after {
  left: 100%;
}

@keyframes btnGradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn:active {
  transform: translateY(0px) scale(0.96);
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.btn-primary:hover {
  transform: translateY(-6px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.2),
    0 0 0 4px var(--bg-primary),
    0 0 0 6px var(--text-primary);
}

[data-theme="dark"] .btn-primary:hover {
  box-shadow:
    0 12px 40px rgba(255, 255, 255, 0.15),
    0 0 40px rgba(255, 255, 255, 0.2),
    0 0 0 4px var(--bg-primary),
    0 0 0 6px var(--text-primary);
}

.btn-primary:active {
  transform: translateY(-2px) scale(0.98);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
  border-width: 2px;
}

.btn-secondary:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(-6px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 0 0 4px var(--bg-primary),
    0 0 0 6px var(--text-primary);
}

[data-theme="dark"] .btn-secondary:hover {
  box-shadow:
    0 12px 40px rgba(255, 255, 255, 0.15),
    0 0 30px rgba(255, 255, 255, 0.2),
    0 0 0 4px var(--bg-primary),
    0 0 0 6px var(--text-primary);
}

.btn-gradient {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.btn-gradient:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.2),
    0 0 60px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .btn-gradient:hover {
  box-shadow:
    0 12px 40px rgba(255, 255, 255, 0.15),
    0 0 60px rgba(255, 255, 255, 0.2);
}

/* Loading State für Buttons */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* === CARDS - Schwarz-Weiß Design === */
.card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

/* Subtiler Gradient-Overlay */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.03) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

/* Light Mode Card Hover */
.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    var(--shadow-2xl),
    0 20px 40px -10px rgba(0, 0, 0, 0.2);
  border-color: var(--text-primary);
}

.card:hover::before {
  opacity: 1;
}

/* Dark Mode Card mit Glow */
[data-theme="dark"] .card {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .card::before {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
}

[data-theme="dark"] .card:hover {
  box-shadow:
    var(--shadow-glow),
    0 20px 40px -10px rgba(0, 0, 0, 0.8);
  border-color: #ffffff;
}

.card:active {
  transform: translateY(-8px) scale(1.01);
}

/* Card Icon mit Glow im Dark Mode */
.card-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  display: inline-block;
  transition: all var(--transition-bounce);
}

.card:hover .card-icon {
  transform: scale(1.15) rotate(5deg);
}

[data-theme="dark"] .card:hover .card-icon {
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  transition: all var(--transition-base);
}

[data-theme="dark"] .card:hover .card-title {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === GRID LAYOUTS === */
.grid {
  display: grid;
  gap: var(--space-xl);
}

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

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

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

@media (max-width: 768px) {
  .grid {
    gap: var(--space-lg);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* === GALLERY - Optimiert für Schwarz-Weiß === */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  transition: all var(--transition-base);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-slow);
  /* Schwarz-Weiß Filter bereits in HTML, hier Backup */
  filter: grayscale(100%) contrast(1.1);
}

.gallery-item:hover {
  border-color: var(--text-primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: grayscale(100%) contrast(1.2);
}

/* Dark Mode Gallery Glow */
[data-theme="dark"] .gallery-item:hover {
  box-shadow: var(--shadow-glow);
  border-color: #ffffff;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.6) 30%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

[data-theme="dark"] .gallery-item::after {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.7) 30%,
    transparent 70%
  );
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  color: #ffffff;
  z-index: 1;
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.gallery-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.gallery-info p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
}

/* Dark Mode Gallery Text Glow */
[data-theme="dark"] .gallery-info h3 {
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.8);
}

/* === FORMS - Mit Writing-Effekten === */
.form-group {
  margin-bottom: var(--space-lg);
  position: relative;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-base);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
}

/* Typing Cursor Effekt */
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--text-primary);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
  background: var(--bg-primary);
  transform: translateY(-2px);
  animation: typingBorderPulse 1.5s ease-in-out infinite;
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05),
              0 0 20px rgba(255, 255, 255, 0.1);
  animation: typingBorderPulseDark 1.5s ease-in-out infinite;
}

.form-select:focus {
  outline: none;
  border-color: var(--text-primary);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
  background: var(--bg-primary);
}

/* Writing Animation beim Tippen */
.form-input.typing,
.form-textarea.typing {
  border-color: var(--text-primary);
  animation: typingGlow 0.6s ease infinite;
}

[data-theme="dark"] .form-input.typing,
[data-theme="dark"] .form-textarea.typing {
  animation: typingGlowDark 0.6s ease infinite;
}

@keyframes typingBorderPulse {
  0%, 100% {
    border-color: var(--text-primary);
  }
  50% {
    border-color: var(--text-secondary);
  }
}

@keyframes typingBorderPulseDark {
  0%, 100% {
    border-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05),
                0 0 20px rgba(255, 255, 255, 0.1);
  }
  50% {
    border-color: #e0e0e0;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08),
                0 0 30px rgba(255, 255, 255, 0.2);
  }
}

@keyframes typingGlow {
  0%, 100% {
    box-shadow: 0 0 0 0px rgba(0, 0, 0, 0);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1),
                0 4px 12px rgba(0, 0, 0, 0.08);
  }
}

@keyframes typingGlowDark {
  0%, 100% {
    box-shadow: 0 0 0 0px rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2),
                0 4px 16px rgba(255, 255, 255, 0.15);
  }
}

/* Character Counter */
.form-character-counter {
  position: absolute;
  bottom: -24px;
  right: 0;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
}

.form-character-counter.limit-approaching {
  color: var(--text-primary);
  font-weight: 600;
}

/* Typing Indicator */
.typing-indicator {
  display: none;
  position: absolute;
  bottom: -28px;
  left: 0;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-style: italic;
  animation: fadeInOut 1.5s ease-in-out infinite;
}

.typing-indicator.active {
  display: block;
}

.typing-indicator::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 12px;
  background: var(--text-primary);
  margin-left: 4px;
  animation: cursorBlink 1s step-end infinite;
}

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

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

.form-textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

/* Success State */
.form-input.success,
.form-textarea.success {
  border-color: var(--text-primary);
  background: var(--bg-primary);
}

/* Error State */
.form-input.error,
.form-textarea.error {
  border-color: #ff4444;
  animation: shakeError 0.5s ease;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.error-message {
  color: #ff4444;
  font-size: 0.875rem;
  margin-top: var(--space-xs);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === FOOTER KOMPLETT ÜBERARBEITET === */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-4xl) 0 var(--space-md);
  position: relative;
  margin-top: var(--space-4xl);
}

[data-theme="dark"] .footer {
  background: var(--bg-primary);
  border-top-color: rgba(255, 255, 255, 0.1);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--text-primary) 50%,
    transparent 100%
  );
  opacity: 0.2;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
  max-width: 400px;
}

@media (max-width: 768px) {
  .footer-text {
    max-width: 100%;
  }
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--text-primary);
}

@media (max-width: 768px) {
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-md);
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  position: relative;
  text-decoration: none;
}

.footer-links a::before {
  content: '→';
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover {
  color: var(--text-primary);
  transform: translateX(5px);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-bottom {
  text-align: center;
  padding: var(--space-xl) 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer-bottom {
    padding: var(--space-lg) 0;
    font-size: 0.8rem;
  }
}

/* === UTILITIES === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.hidden { display: none; }
.visible { display: block; }

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in { animation: fadeIn 0.5s ease; }
.animate-slide-up { animation: slideInUp 0.6s ease; }
.animate-slide-down { animation: slideInDown 0.6s ease; }
.animate-scale-in { animation: scaleIn 0.5s ease; }

/* === SCROLL ANIMATIONS === */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  :root {
    --space-3xl: 4rem;
    --space-4xl: 6rem;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 3rem;
    --space-4xl: 4rem;
  }

  body {
    font-size: 0.9375rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    /* Größere Touch-Targets auf Mobile */
    min-height: 48px;
    padding: 1rem 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: var(--space-md);
  }

  /* Forms auf Mobile optimieren */
  .form-input,
  .form-textarea,
  .form-select {
    /* Verhindert Zoom auf iOS beim Fokus */
    font-size: 16px;
    min-height: 48px;
    padding: 0.875rem 1rem;
  }

  /* Hero Section auf Mobile */
  .hero {
    min-height: calc(100vh - 70px);
    padding: var(--space-2xl) var(--space-md);
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  /* Cards auf Mobile */
  .card {
    padding: var(--space-lg);
  }

  .card-icon {
    font-size: 2.5rem;
  }

  /* Grid auf Mobile */
  .grid {
    gap: var(--space-md);
  }

  /* Container Padding */
  .container {
    padding: 0 var(--space-md);
  }

  section {
    padding: var(--space-2xl) 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

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

  .btn {
    font-size: 0.9rem;
    padding: 0.875rem 1.25rem;
  }
}

/* Tablet Landscape Optimierung */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 var(--space-xl);
  }

  .nav-menu {
    gap: var(--space-lg);
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Touch Device Optimierungen */
@media (hover: none) and (pointer: coarse) {
  /* Alle interaktiven Elemente haben größere Touch-Targets */
  a, button, input, select, textarea {
    min-height: 44px;
  }

  /* Deaktiviere Hover-Effekte auf Touch-Geräten */
  .card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }

  /* Aktiviere stattdessen Active-States für Touch-Feedback */
  .card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  .btn:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
  }

  .nav-link:active {
    opacity: 0.7;
  }
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: var(--z-tooltip);
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
}

/* === PRELOADER - FUTURISTIC MODERN DESIGN === */
.preloader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  overflow: hidden;
}

/* Animierter Hintergrund-Grid */
.preloader::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  opacity: 0.5;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

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

/* Futuristische Spinner-Animation */
.preloader-spinner {
  position: relative;
  width: 150px;
  height: 150px;
  margin-bottom: var(--space-xl);
}

/* Äußerer Ring mit Neon-Glow */
.preloader-spinner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #ffffff;
  border-right-color: #ffffff;
  animation: spinOuter 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Mittlerer Ring */
.preloader-spinner::after {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: rgba(255, 255, 255, 0.8);
  border-left-color: rgba(255, 255, 255, 0.8);
  animation: spinInner 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite reverse;
  box-shadow:
    0 0 15px rgba(255, 255, 255, 0.2),
    inset 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Logo in der Mitte mit Glow-Effekt - KOMPLETT STATISCH */
.preloader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  width: 100px;
  height: 100px;
  /* KEINE ANIMATION - nur statischer Glow-Effekt */
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8))
          drop-shadow(0 0 40px rgba(255, 255, 255, 0.6))
          drop-shadow(0 0 60px rgba(255, 255, 255, 0.4));
  z-index: 10;
  /* Alle Animationen blockieren */
  animation: none !important;
  transition: none !important;
}

.preloader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Keine Animationen für das Bild */
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

/* PERFEKT KORRIGIERT: Progress Bar Container - zentriert & präzise */
.preloader-progress {
  --progress: 0%;
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%); /* Perfekt zentriert */
  width: 400px; /* Größere, ausgewogenere Breite */
  max-width: 85vw; /* Mehr Platz auf Mobile */
  height: 8px; /* Etwas dicker für bessere Sichtbarkeit */
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px; /* Rundere Ecken */
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 255, 255, 0.1);
}

/* Mobile Optimierung für Progress Bar */
@media (max-width: 480px) {
  .preloader-progress {
    bottom: 80px;
    width: 320px;
    max-width: 90vw;
    height: 6px;
  }

  .preloader-percentage {
    bottom: 120px;
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }

  .preloader-text {
    margin-top: 160px;
    font-size: 0.7rem;
  }
}

/* Innerer Progress Bar - wird von JavaScript über --progress CSS Variable gesteuert */
.preloader-progress::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: var(--progress, 0%); /* Verwendet CSS Variable --progress */
  height: 100%;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 1) 100%
  );
  border-radius: 12px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 0 15px rgba(255, 255, 255, 0.7),
    0 0 30px rgba(255, 255, 255, 0.5),
    0 2px 8px rgba(255, 255, 255, 0.3);
  animation: progressGlow 2s ease-in-out infinite;
}

/* Gleitender Licht-Effekt */
.preloader-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  animation: progressSlide 2s ease-in-out infinite;
  pointer-events: none;
}

/* Glow-Animation für Progress Bar */
@keyframes progressGlow {
  0%, 100% {
    box-shadow:
      0 0 15px rgba(255, 255, 255, 0.7),
      0 0 30px rgba(255, 255, 255, 0.5),
      0 2px 8px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow:
      0 0 20px rgba(255, 255, 255, 0.9),
      0 0 40px rgba(255, 255, 255, 0.7),
      0 2px 12px rgba(255, 255, 255, 0.5);
  }
}

/* KORRIGIERT: Futuristischer Text - Responsive & Optimiert */
.preloader-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.75rem, 2vw, 0.875rem); /* Responsive */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: clamp(0.2em, 1vw, 0.3em); /* Responsive letter-spacing */
  margin-top: 200px;
  animation: textPulse 2s ease-in-out infinite;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(255, 255, 255, 0.3);
  user-select: none;
  pointer-events: none;
  text-align: center;
  padding: 0 var(--space-md);
  max-width: 90vw;
}

/* Zusätzliche Partikel-Effekte */
.preloader-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Animationen */
@keyframes spinOuter {
  0% {
    transform: rotate(0deg);
    border-top-color: #ffffff;
    border-right-color: #ffffff;
  }
  50% {
    border-top-color: rgba(255, 255, 255, 0.5);
    border-right-color: rgba(255, 255, 255, 0.5);
  }
  100% {
    transform: rotate(360deg);
    border-top-color: #ffffff;
    border-right-color: #ffffff;
  }
}

@keyframes spinInner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

/* Logo Float Animation ENTFERNT - Logo ist statisch */

@keyframes progressSlide {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes textPulse {
  0%, 100% {
    opacity: 0.6;
    letter-spacing: 0.3em;
  }
  50% {
    opacity: 1;
    letter-spacing: 0.35em;
  }
}

/* KORRIGIERT: Percentage Counter - Responsive & Optimiert */
/* PERFEKT KORRIGIERT: Percentage Display - zentriert & responsive */
.preloader-percentage {
  position: absolute;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%); /* Perfekt horizontal zentriert */
  font-size: clamp(1.5rem, 4vw, 2rem); /* Responsive */
  font-weight: 900;
  color: rgba(255, 255, 255, 1);
  font-family: var(--font-display);
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.8),
    0 0 40px rgba(255, 255, 255, 0.5),
    0 0 60px rgba(255, 255, 255, 0.3);
  letter-spacing: 0.1em;
  user-select: none;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Glowing Effect bei Fortschritt - mit Zentrierung kombiniert */
.preloader-percentage[data-progress="100"] {
  color: rgba(255, 255, 255, 1);
  text-shadow:
    0 0 30px rgba(255, 255, 255, 1),
    0 0 60px rgba(255, 255, 255, 0.8),
    0 0 90px rgba(255, 255, 255, 0.6);
  transform: translateX(-50%) scale(1.1); /* Zentrierung + Scale */
}

/* Partikel-Effekte um das Logo */
.preloader-spinner::after {
  content: '';
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: particleRotate 6s linear infinite;
  pointer-events: none;
}

@keyframes particleRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile Optimierung für Preloader */
@media (max-width: 768px) {
  .preloader-spinner {
    width: 120px;
    height: 120px;
  }

  .preloader-logo {
    width: 70px;
    height: 70px;
  }

  .preloader-progress {
    width: 80%;
    max-width: 250px;
  }

  .preloader-text {
    font-size: 0.75rem;
    margin-top: 150px;
  }

  .preloader-percentage {
    font-size: 1.25rem;
    bottom: 120px;
  }
}

/* ===========================================
   ERWEITERTE RESPONSIVE BREAKPOINTS
   Optimiert für alle Gerätegrößen
   =========================================== */

/* Kleine Mobile Geräte (320px - 480px) */
@media (max-width: 480px) {
  :root {
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;
    --space-4xl: 4rem;
  }

  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem) !important;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 3vw, 1rem) !important;
  }

  .btn {
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    min-height: 44px;
  }

  .header {
    height: 70px;
  }

  .nav {
    height: 70px;
  }

  .nav-menu {
    top: 70px;
    max-height: calc(100vh - 70px);
  }

  .logo-image {
    width: 36px;
    height: 36px;
  }

  /* Karten responsiv */
  .card {
    padding: var(--space-lg);
  }

  .grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Footer responsiv */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

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

/* Tablets im Hochformat (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .hero-title {
    font-size: clamp(3rem, 10vw, 4rem) !important;
  }

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

  .gallery-grid,
  .grid-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    padding: var(--space-xl);
  }
}

/* Tablets im Querformat / Kleine Laptops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 900px;
  }

  .hero-title {
    font-size: clamp(4rem, 8vw, 5rem) !important;
  }

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

  .gallery-grid,
  .grid-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-menu {
    gap: var(--space-lg);
  }

  .nav-link {
    font-size: 0.85rem;
  }
}

/* Große Bildschirme (1441px+) */
@media (min-width: 1441px) {
  .container {
    max-width: 1400px;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-title {
    font-size: 6rem !important;
  }

  .hero-subtitle {
    font-size: 1.5rem !important;
  }

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

  .gallery-grid,
  .grid-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Sehr große Bildschirme (1920px+) */
@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }

  .gallery-grid,
  .grid-gallery {
    grid-template-columns: repeat(5, 1fr);
  }

  .hero-title {
    font-size: 7rem !important;
  }
}

/* Landscape Orientation Optimierung */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .preloader-spinner {
    width: 100px;
    height: 100px;
  }

  .preloader-logo {
    width: 60px;
    height: 60px;
  }

  .preloader-percentage {
    bottom: 80px;
    font-size: 1.5rem;
  }

  .preloader-text {
    margin-top: 120px;
    font-size: 0.7rem;
  }

  .preloader-progress {
    bottom: 60px;
  }
}

/* Touch Device Optimierungen */
@media (hover: none) and (pointer: coarse) {
  /* Alle interaktiven Elemente mindestens 44x44px */
  .btn,
  .nav-link,
  .menu-toggle,
  .theme-toggle,
  button {
    min-width: 44px;
    min-height: 44px;
  }

  /* Keine Hover-Effekte auf Touch-Geräten */
  .nav-link:hover::before {
    transform: translateX(-100%);
  }

  /* Touch Feedback */
  .btn:active,
  .nav-link:active,
  button:active {
    transform: scale(0.98);
    opacity: 0.8;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .nav,
  .menu-toggle,
  .theme-toggle,
  .preloader {
    display: none !important;
  }

  .hero {
    min-height: auto;
    page-break-after: always;
  }

  .card {
    page-break-inside: avoid;
  }

  body {
    background: white;
    color: black;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .preloader-spinner::before,
  .preloader-spinner::after,
  .preloader-text {
    animation: none !important;
  }

  .nav-link::before {
    transition: none !important;
    transform: none !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
  }

  [data-theme="dark"] {
    --border-color: #ffffff;
  }

  .nav-link,
  .btn,
  .card {
    border-width: 2px;
  }

  .nav-link.active::after {
    height: 3px;
  }
}

/* ===========================================
   DURCHDACHTE ZUSÄTZLICHE VERBESSERUNGEN
   =========================================== */

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Verbessertes Focus Styling für Accessibility */
*:focus-visible {
  outline: 3px solid var(--text-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

[data-theme="dark"] *:focus-visible {
  outline-color: rgba(255, 255, 255, 0.8);
}

/* Skip Link für bessere Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: var(--space-md);
  outline: 3px solid var(--bg-primary);
}

/* Smooth Loading States für Bilder */
img {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

img:not([src]),
img[src=""] {
  opacity: 0;
}

img.loading {
  opacity: 0.5;
  filter: blur(5px);
}

img.loaded {
  opacity: 1;
  filter: blur(0);
}

img.error {
  opacity: 0.3;
  filter: grayscale(100%);
}

/* Hover Micro-Interactions für Buttons */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

[data-theme="dark"] .btn::before {
  background: rgba(0, 0, 0, 0.2);
}

/* Verbesserte Card Hover-Effekte */
.card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
}

[data-theme="dark"] .card:hover {
  box-shadow: 0 25px 50px -12px rgba(255, 255, 255, 0.15);
}

/* Selection Styling */
::selection {
  background: var(--text-primary);
  color: var(--bg-primary);
}

[data-theme="dark"] ::selection {
  background: rgba(255, 255, 255, 0.9);
  color: #000000;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-secondary);
  border-radius: 6px;
  border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-primary);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--text-secondary) var(--bg-secondary);
}

/* Loading Spinner für asynchrone Inhalte */
.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Skeleton Loading Screens */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 0%,
    var(--bg-tertiary) 50%,
    var(--bg-secondary) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Pulse Animation für wichtige Elemente */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Slide In Animation */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-up {
  animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Zoom In Animation */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.zoom-in {
  animation: zoomIn 0.4s ease-out;
}

/* Form Error States */
input.invalid,
textarea.invalid,
select.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

input.valid,
textarea.valid,
select.valid {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.error-message::before {
  content: '⚠';
  font-size: 1rem;
}

/* Success Message */
.success-message {
  color: #10b981;
  font-size: 0.875rem;
  margin-top: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.success-message::before {
  content: '✓';
  font-size: 1rem;
  font-weight: bold;
}

/* Toast Notifications */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2xl);
  border: 2px solid var(--border-color);
  max-width: 400px;
  z-index: 10000;
  animation: slideInUp 0.3s ease-out;
}

.notification-success {
  border-color: #10b981;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.notification-error {
  border-color: #ef4444;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.notification-warning {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.notification-info {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-top: 2px solid var(--border-color);
  padding: var(--space-xl);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  animation: slideInUp 0.4s ease-out;
}

[data-theme="dark"] .cookie-consent-banner {
  box-shadow: 0 -10px 30px rgba(255, 255, 255, 0.1);
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.cookie-consent-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Verbesserte Gallery Item Transitions */
.gallery-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.gallery-item:hover {
  transform: scale(1.02);
  z-index: 10;
}

.gallery-item img {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2xl);
}

/* PWA Install Button */
.pwa-install-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  animation: slideInUp 0.3s ease;
}

/* Optimierte Mobile Navigation Transitions */
@media (max-width: 768px) {
  .nav-menu {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .nav-menu.active {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  }

  [data-theme="dark"] .nav-menu.active {
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
  }
}

/* Optimierte Performance für Animationen */
.preloader,
.preloader-spinner,
.nav-link,
.btn,
.card,
.gallery-item {
  will-change: transform, opacity;
}

/* Hover-Effekte nur auf Non-Touch Devices */
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover,
  .btn:hover,
  .card:hover,
  .gallery-item:hover {
    cursor: pointer;
  }
}

/* Dark Mode spezifische Verbesserungen */
[data-theme="dark"] .skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
}

[data-theme="dark"] .notification {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Print Optimierungen */
@media print {
  .notification,
  .cookie-consent-banner,
  .back-to-top,
  .pwa-install-btn,
  .spinner {
    display: none !important;
  }
}

/* ===========================================
   PRELOADER DESIGN VERBESSERUNGEN
   =========================================== */

/* Verbesserte Zentrierung für alle Preloader-Elemente */
.preloader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Percentage - Verbesserte Position */
.preloader-percentage {
  position: absolute;
  bottom: 160px; /* Mehr Abstand zur Progress Bar */
  left: 50%;
  transform: translateX(-50%);
}

/* Progress Bar - Garantiert zentriert */
.preloader-progress {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
}

/* Preloader Text - Verbessert */
.preloader-text {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* Mobile Anpassungen */
@media (max-width: 480px) {
  .preloader-percentage {
    bottom: 140px;
    font-size: 1.5rem;
  }

  .preloader-progress {
    bottom: 80px;
    width: 90vw;
    max-width: 280px;
  }

  .preloader-text {
    bottom: 40px;
    font-size: 0.7rem;
  }

  .preloader-spinner {
    width: 100px;
    height: 100px;
  }

  .preloader-logo {
    width: 60px;
    height: 60px;
  }
}

/* ===========================================
   MENÜ VERBESSERUNGEN
   =========================================== */

/* Hamburger Menu Animation verbessern */
.menu-toggle {
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:focus {
  outline: 2px solid var(--text-primary);
  outline-offset: 4px;
}

.menu-toggle span {
  display: block;
  transform-origin: center;
}

/* Verbesserte Mobile Menu Animation */
@media (max-width: 768px) {
  .nav-menu {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  }

  [data-theme="dark"] .nav-menu {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.active {
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes slideInRight {
    from {
      transform: translateX(-100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  /* Stagger Animation für Nav-Links */
  .nav-menu.active .nav-link {
    animation: fadeInUp 0.4s ease-out backwards;
  }

  .nav-menu.active .nav-link:nth-child(1) { animation-delay: 0.05s; }
  .nav-menu.active .nav-link:nth-child(2) { animation-delay: 0.1s; }
  .nav-menu.active .nav-link:nth-child(3) { animation-delay: 0.15s; }
  .nav-menu.active .nav-link:nth-child(4) { animation-delay: 0.2s; }
  .nav-menu.active .nav-link:nth-child(5) { animation-delay: 0.25s; }
  .nav-menu.active .nav-link:nth-child(6) { animation-delay: 0.3s; }
}

/* ===========================================
   CARD & BUTTON VERBESSERUNGEN
   =========================================== */

/* Cards - Einheitliches Design */
.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.card:hover::before {
  left: 100%;
}

[data-theme="dark"] .card::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

/* Card Icon verbessern */
.card-icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Buttons - Verbesserte Transitions */
.btn {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible {
  outline: 3px solid var(--text-primary);
  outline-offset: 3px;
}

/* ===========================================
   GALLERY VERBESSERUNGEN
   =========================================== */

/* Gallery Items - Smoother Hover */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  z-index: 10;
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
}

/* ===========================================
   ACCESSIBILITY VERBESSERUNGEN
   =========================================== */

/* Keyboard Focus Improvements */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--text-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ===========================================
   UTILITY CLASSES
   =========================================== */

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Margin Utilities */
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

/* Display Utilities */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }

/* Grid Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
