/* -------------------------------
   Base / Tokens - ULTRA MODERN 🔥
----------------------------------*/
:root {
  /* Dark Theme - Premium Look */
  --bg: #0a0a0a;            /* Ultra-dark background */
  --bg-secondary: #111111;  /* Secondary dark */
  --text: #ffffff;          /* Pure white text */
  --text-secondary: #a1a1aa; /* Muted text */
  --muted: #71717a;         /* Secondary text */
  --line: #27272a;          /* Subtle borders */
  --card: #18181b;          /* Card background */
  --card-hover: #1f1f23;    /* Card hover state */
  
  /* Premium Shadows */
  --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);

  /* Premium Colors */
  --primary: #3b82f6;       /* Electric blue */
  --primary-hover: #2563eb; /* Darker blue */
  --primary-light: #60a5fa; /* Light blue */
  --accent: #f59e0b;        /* Golden accent */
  --success: #10b981;       /* Success green */
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  
  /* Premium Border Radius */
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Container */
  --container: 1200px;
  
  /* Animations */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fluid Type Scale */
:root {
  --fz-hero: clamp(2rem, 3.8vw, 3.2rem);
  --fz-h2: clamp(1.4rem, 2.5vw, 2.2rem);
  --fz-h3: clamp(1.125rem, 1.8vw, 1.35rem);
  --fz-body: 1rem;
}

/* Breakpoints */
@media (min-width: 600px) { :root { --container: 1160px; } }
@media (min-width: 1200px){ :root { --container: 1240px; } }

/* Reset/Sane defaults - PREMIUM STYLE */
* { 
  box-sizing: border-box; 
}

html, body { 
  margin: 0; 
  padding: 0; 
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: var(--fz-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Premium Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

img, svg { display: block; max-width: 100%; height: auto; }

/* Links */
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }

/* Container */
.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

/* Utilities */
.section { padding: 80px 0; }
.section.alt { background: #f8fafc; }
h1, h2, h3 { 
  margin: 0 0 20px; 
  line-height: 1.2; 
  position: relative;
  z-index: 1;
}
h2 { 
  font-size: var(--fz-h2); 
  margin-bottom: 24px;
}
h3 { 
  font-size: var(--fz-h3); 
  color: var(--text); 
  margin-bottom: 16px;
}
p { 
  color: var(--muted); 
  margin: 0 0 16px; 
  line-height: 1.6;
}

/* -------------------------------
   Header / Navigation - ULTRA PREMIUM 🔥
----------------------------------*/
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: var(--shadow);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 24px;
}

/* Logo + Text - PREMIUM STYLE */
.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 20px;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

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

.logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.logo:hover::after {
  width: 100%;
}

.logo-icon {
  height: 32px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
  transition: var(--transition);
}

.logo:hover .logo-icon {
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.5));
}

/* Navigation - PREMIUM STYLE */
.main-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 12px 16px;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 1px solid transparent;
}

.main-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.3s ease;
  z-index: -1;
  border-radius: var(--radius);
}

.main-nav a:hover::before {
  left: 0;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  outline: none;
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.1);
}

/* Kontakt-Button - ULTRA PREMIUM */
.main-nav .btn {
  background: var(--gradient-primary);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: var(--shadow-glow);
  border: 1px solid rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

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

.main-nav .btn:hover::before {
  left: 100%;
}

.main-nav .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

/* ===== MOBILE MENU - ULTRA COOL 🔥 ===== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger-line:nth-child(1) {
  margin-bottom: 4px;
}

.hamburger-line:nth-child(2) {
  margin-bottom: 4px;
}

/* Hamburger Animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 80px 20px 20px;
  }
  
  .main-nav.active {
    transform: translateX(0);
  }
  
  .main-nav a {
    font-size: 24px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    min-width: 200px;
    position: relative;
    overflow: hidden;
  }
  
  .main-nav a::before {
    background: var(--gradient-primary);
  }
  
  .main-nav a:hover::before {
    left: 0;
  }
  
  .main-nav a:hover {
    color: var(--text);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
  }
  
  .main-nav .btn {
    font-size: 20px;
    padding: 16px 32px;
    margin-top: 20px;
    min-width: 200px;
  }
  
  /* Mobile Menu Overlay */
  .main-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
  }
  
  /* Logo bleibt sichtbar */
  .logo {
    z-index: 1002;
    position: relative;
  }
  
  /* Mobile Menu Animation */
  .main-nav a {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease-out forwards;
  }
  
  .main-nav a:nth-child(1) { animation-delay: 0.1s; }
  .main-nav a:nth-child(2) { animation-delay: 0.2s; }
  .main-nav a:nth-child(3) { animation-delay: 0.3s; }
  .main-nav a:nth-child(4) { animation-delay: 0.4s; }
  .main-nav a:nth-child(5) { animation-delay: 0.5s; }
}

/* Tablet adjustments */
@media (max-width: 992px) and (min-width: 769px) {
  .main-nav {
    gap: 4px;
  }
  
  .main-nav a {
    padding: 10px 14px;
    font-size: 14px;
  }
  
  .main-nav .btn {
    padding: 10px 16px;
    font-size: 14px;
  }
}


/* Button Styles - ULTRA PREMIUM 🔥 */
.btn {
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  gap: 12px;
  background: var(--gradient-primary);
  color: var(--text);
  padding: 16px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  border: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

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

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

.btn:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
}

.btn:active { 
  transform: translateY(-1px); 
}

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

.btn-small { 
  padding: 12px 16px; 
  font-weight: 600; 
  font-size: 14px;
}

.btn-ghost {
  background: transparent; 
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn-ghost:hover { 
  background: var(--gradient-primary); 
  color: var(--text);
  box-shadow: var(--shadow-glow);
}

/* -------------------------------
   Hero - ULTRA PREMIUM 🔥
----------------------------------*/
.hero { 
  padding: 120px 0 80px; 
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid; 
  gap: 60px; 
  align-items: center;
  grid-template-columns: 1.1fr .9fr;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

.hero-copy p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.cta-row {
  display: flex; 
  gap: 16px; 
  flex-wrap: wrap;
  margin: 32px 0 24px;
}

.trust {
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
  padding: 0; 
  margin: 24px 0 0;
  list-style: none;
}

.trust li {
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-light);
  padding: 10px 16px; 
  border-radius: 999px; 
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.trust li:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

.hero-media .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.hero-media .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.hero-media .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.badge {
  display: inline-block;
  font-size: 12px; 
  font-weight: 700;
  color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
  padding: 8px 12px; 
  border-radius: 999px;
  margin-bottom: 12px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(10px);
}

/* -------------------------------
   Grid 3 (Leistungen / Projekte) - ULTRA PREMIUM 🔥
----------------------------------*/
.grid-3 {
  display: grid; 
  gap: 32px;
  grid-template-columns: repeat(3, 1fr);
}

.tile, .project {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.tile::before, .project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tile:hover::before, .project:hover::before {
  transform: scaleX(1);
}

.tile:hover, .project:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.3);
}

.project img {
  width: 100%; 
  height: auto; 
  margin-bottom: 20px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.project:hover img {
  transform: scale(1.05);
}

/* Project Link - PREMIUM STYLE */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  margin-top: 16px;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.project-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.3s ease;
  z-index: -1;
}

.project-link:hover::before {
  left: 0;
}

.project-link:hover {
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.4);
}


/* -------------------------------
   About / Stats
----------------------------------*/
.about {
  display: grid; gap: 24px; align-items: start;
  grid-template-columns: 1.1fr .9fr;
}
.stat {
  display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr);
}
.stat-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-box strong {
  display: block; font-size: 1.35rem; line-height: 1.2;
}
.stat-box span {
  color: var(--muted); font-size: .9rem;
}

/* -------------------------------
   Pricing - ULTRA PREMIUM 🔥
----------------------------------*/
.pricing {
  display: grid; 
  gap: 32px;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 40px 32px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.price-card:hover::before {
  transform: scaleX(1);
}

.price-card:hover { 
  transform: translateY(-16px); 
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.3);
}

.price { 
  font-size: 2.5rem; 
  font-weight: 900; 
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 16px 0 20px; 
}

.price-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.price-card.featured::before {
  transform: scaleX(1);
}

.price-card.featured:hover {
  transform: scale(1.05) translateY(-16px);
}

.price-card ul { 
  margin: 0; 
  padding-left: 20px; 
  color: var(--text-secondary);
  line-height: 1.8;
}

.price-card ul li {
  margin-bottom: 8px;
  position: relative;
}

.price-card ul li::marker {
  color: var(--primary);
}

.fineprint { 
  color: var(--muted); 
  font-size: .9rem; 
  margin-top: 20px;
  text-align: center;
}

/* -------------------------------
   FAQ
----------------------------------*/
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
details + details { margin-top: 12px; }
summary {
  cursor: pointer; font-weight: 700; color: #c7c8ca;
}
details p { margin-top: 8px; }

/* -------------------------------
   Kontakt / Form - ULTRA PREMIUM 🔥
----------------------------------*/
.contact { }

.contact .contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  display: grid; 
  gap: 24px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.contact .contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

label { 
  font-weight: 600; 
  color: var(--text);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input, textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  font: inherit;
  color: var(--text);
  background: var(--bg-secondary);
  transition: var(--transition);
  font-size: 16px;
}

input::placeholder, textarea::placeholder { 
  color: var(--muted); 
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: var(--card);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-meta { 
  color: var(--muted); 
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}

/* -------------------------------
   Footer
----------------------------------*/
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-grid {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  gap: 16px; flex-wrap: wrap;
}
.footer-nav { display: flex; gap: 14px; }
.footer-nav a { color: #475569; }
.footer-nav a:hover { color: var(--primary-600); }

/* -------------------------------
   COOL ANIMATIONS & EFFECTS 🔥
----------------------------------*/

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Glow Animation */
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
  50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.6); }
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

/* Fade In Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Apply animations */
.hero-copy {
  animation: slideInUp 0.8s ease-out;
}

.hero-media {
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.tile, .project, .price-card {
  animation: fadeIn 0.6s ease-out;
}

/* Hover effects for interactive elements */
.btn:hover {
  animation: pulse 0.6s ease-in-out;
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ULTRA COOL 3D EFFECTS 🔥 ===== */

/* 3D Perspective Container */
body {
  perspective: 1000px;
}

/* 3D Transform for Hero Card */
.hero-media .card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 3D Hero Title Effect */
.hero-copy h1 {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.hero-copy h1:hover {
  transform: rotateX(2deg) rotateY(-2deg) scale(1.02);
}

/* 3D Tilt Effect for Cards */
.tile, .project, .price-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

/* 3D Button Hover */
.btn {
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: translateZ(0);
}

.btn:hover {
  transform: translateY(-3px) rotateX(5deg) rotateY(5deg);
}

/* 3D Card Hover with Depth */
.tile:hover, 
.project:hover, 
.price-card:hover {
  transform: translateY(-12px) rotateX(2deg) rotateY(2deg);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(59, 130, 246, 0.2);
}

/* 3D Hero Card */
.hero-media .card:hover {
  transform: translateY(-8px) rotateX(3deg) rotateY(-3deg) scale(1.02);
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(59, 130, 246, 0.3);
}

/* 3D Navigation Items */
.main-nav a {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.main-nav a:hover {
  transform: translateY(-2px) rotateX(5deg);
}

/* 3D Logo */
.logo {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05) rotateY(10deg);
}

/* 3D Flip Animation */
@keyframes flip3d {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

.flip-on-hover {
  animation: flip3d 0.6s ease-in-out;
}

/* 3D Tilt Animation */
@keyframes tilt {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(10deg); }
}

.tilt-animation {
  animation: tilt 3s ease-in-out infinite;
}

/* 3D Perspective for Sections */
.section {
  transform-style: preserve-3d;
}

/* 3D Stats Boxes */
.stat-box {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-4px) rotateX(5deg) translateZ(10px);
}

/* 3D Form Elements */
input, textarea {
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
}

input:focus, textarea:focus {
  transform: translateZ(5px);
}

/* 3D Trust Badges */
.trust li {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.trust li:hover {
  transform: translateY(-2px) rotateX(5deg) translateZ(5px);
}

/* -------------------------------
   Responsive - ULTRA PREMIUM
----------------------------------*/
/* Tablet */
@media (max-width: 992px) {
  .hero-grid { 
    grid-template-columns: 1fr; 
    text-align: center; 
    gap: 40px;
  }
  .cta-row { justify-content: center; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .stat { grid-template-columns: repeat(3, 1fr); }
  
  .hero { padding: 100px 0 60px; }
}

/* Phone */
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .hero { padding: 80px 0 40px; }
  
  .nav {
    padding: 16px 0;
  }
  
  .logo {
    font-size: 18px;
  }
  
  .logo-icon {
    height: 28px;
  }
  
  .grid-3 { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .stat { grid-template-columns: 1fr; }
  .footer-grid { justify-content: center; text-align: center; }
  
  .hero-copy h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  
  .btn {
    padding: 14px 20px;
    font-size: 14px;
  }
  
  .contact .contact-form {
    padding: 24px;
  }
  
  /* Ensure logo is always visible on mobile */
  .logo {
    position: relative;
    z-index: 1003;
  }
  
  /* Mobile optimizations for hero card */
  .hero-media .card {
    transform: translateY(0) !important;
    will-change: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .hero-media .card:hover {
    transform: translateY(-4px) !important;
  }
}/* ===== FINAL PREMIUM TOUCHES 🔥 ===== */

/* Glassmorphism Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Premium Hover States */
.premium-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-hover:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Gradient Text Effect */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Shimmer Effect */
.shimmer {
  position: relative;
  overflow: hidden;
}

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

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

/* Premium Button Variants */
.btn-premium {
  background: var(--gradient-primary);
  border: none;
  color: var(--text);
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.btn-premium:hover::before {
  left: 100%;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* Premium Card Styles */
.premium-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.premium-card:hover::before {
  transform: scaleX(1);
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.3);
}

/* ---------- Fix: Lesbarkeit in hellen Abschnitten ---------- */
.section.alt { 
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
}

.section.alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Überschriften in hellen Abschnitten */
.section.alt h1,
.section.alt h2,
.section.alt h3 {
  color: #1f2937;
  position: relative;
  z-index: 1;
}

/* Fließtext, Listen, Links in hellen Abschnitten */
.section.alt p,
.section.alt li,
.section.alt a {
  color: #475569;
  position: relative;
  z-index: 1;
}

/* Preiszahl in hellen Abschnitten */
.section.alt .price {
  color: #1f2937;
}
.section.alt .price-card .price {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}/* =========================================================
   Ausnahmen: Preis-Boxen & Kontakt sollen auch im hellen Abschnitt dunkel bleiben
========================================================= */

.section.alt .price-card,
.section.alt .contact-form {
  background: var(--card);      /* dunkles Card-Design */
  border-color: var(--line);
  color: var(--text);
}

.section.alt .price-card h3,
.section.alt .contact-form label {
  color: var(--text);
}

.section.alt .price-card ul li,
.section.alt .contact-form input,
.section.alt .contact-form textarea {
  color: var(--muted);
}

/* Button im Kontakt hell lassen */
.section.alt .contact-form button {
  background: var(--primary);
  color: #fff;
}/* =========================================================
   Projekte-Abschnitt: Überschriften & Texte auf dunkel
========================================================= */

#projekte h2,
#projekte h3 {
  color: var(--text); /* weiß */
}

#projekte p {
  color: var(--muted); /* leichtes Grau */
}

#projekte .project {
  background: var(--card);   /* dunkle Boxen */
  border-color: var(--line);
  color: var(--text);
}

/* Abschnittstitel (h2) in Projekten */
#projekte h2 {
  color: #1f2937;  /* Dunkelgrau für Lesbarkeit auf hell */
}





