* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary: #1a3a5f;
  --secondary: #2c5c8a;
  --accent: #d32f2f;
  --light: #f8f9fa;
  --dark: #333;
  --gray: #6c757d;
  --white: #ffffff;
}

body {
  background-color: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  /* Mindest-Schriftgröße für Mobile */
  font-size: 16px;
}

#background-3d {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: rgba(26, 58, 95, 0.97);
  backdrop-filter: blur(12px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}
.logo h1 {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
}
.logo span {
  color: var(--accent);
}
nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}
nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  position: relative;
  /* Touch-Ziel vergrößern */
  min-height: 48px;
  display: flex;
  align-items: center;
}
nav a:hover { color: var(--accent); }
nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
nav a:hover::after { width: 100%; }

/* Dunkelmodus Toggle (wenn vorhanden) */
.dark-mode-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
  min-width: 44px;
  min-height: 44px;
}
.dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  animation: fadeInUp 1s ease;
}
.hero h2 {
  font-size: 3.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  line-height: 1.25;
}
.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 24px;
  line-height: 1.65;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 18px rgba(211, 47, 47, 0.35);
  /* Touch-Ziel */
  min-height: 52px;
  min-width: 180px;
}
.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(211, 47, 47, 0.45);
}
.btn-outline {
  background: transparent;
  border: 2px solid white;
  margin-left: 15px;
  color: white;
  box-shadow: none;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-3px);
}

/* Services */
.services {
  padding: 100px 0 80px;
  background: white;
}
.section-title {
  text-align: center;
  margin-bottom: 60px;
}
.section-title h3 {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 16px;
  display: inline-block;
  position: relative;
}
.section-title h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 20px auto 0;
  line-height: 1.7;
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.service-card-link {
  text-decoration: none;
  color: inherit;
}
.service-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  min-height: 350px;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.15);
}
.service-card img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  transition: transform 0.4s ease;
}
.service-card:hover img {
  transform: scale(1.02);
}
.service-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-content h4 {
  font-size: 1.45rem;
  color: var(--primary);
  margin-bottom: 14px;
  font-weight: 700;
}
.service-content p {
  color: var(--gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* About */
.about {
  padding: 100px 0;
  background-color: #f9fbfd;
}
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.about-text h3 {
  font-size: 2.3rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.about-text p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1.05rem;
}
.about-text ul {
  list-style: none;
  margin: 20px 0;
}
.about-text ul li {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  color: var(--dark);
  font-weight: 500;
}
.about-text ul li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
  margin-right: 10px;
  font-size: 1rem;
}
.about-image {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.about-image:hover img {
  transform: scale(1.01);
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 40px 0;
}
.stat-item {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.25s ease;
}
.stat-item:hover {
  transform: translateY(-4px);
}
.stat-item h4 {
  font-size: 2.3rem;
  color: var(--accent);
  margin: 10px 0;
  font-weight: 700;
}
.stat-item p {
  color: var(--gray);
  font-weight: 600;
}

/* Contact */
.contact {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #152a45 100%);
  color: white;
}
.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.contact-info h3,
.contact-method h3 {
  font-size: 2.3rem;
  margin-bottom: 22px;
}
.contact-info p,
.contact-method p {
  line-height: 1.75;
  margin-bottom: 28px;
  font-size: 1.05rem;
}
.contact-details {
  margin: 30px 0;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 18px;
}
.contact-item span {
  font-size: 1.4rem;
  color: var(--accent);
  margin-right: 14px;
  min-width: 28px;
  margin-top: 4px;
}
.contact-item a {
  color: white;
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.3s;
  font-weight: 500;
}
.contact-item a:hover {
  color: var(--accent);
}
.contact-method {
  padding: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}
.quote {
  font-style: italic;
  color: rgba(255,255,255,0.85);
  margin-top: 20px;
  font-weight: 500;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 16px;
  margin-top: 30px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.12);
  color: white;
  border-radius: 50%;
  font-size: 1.4rem;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 52px;
  min-height: 52px;
}
.social-links a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

/* Footer */
footer {
  background: #0c1e30;
  color: rgba(255,255,255,0.75);
  padding: 40px 0 30px;
  text-align: center;
}
.footer-content {
  max-width: 700px;
  margin: 0 auto;
}
.footer-content p {
  line-height: 1.75;
  font-size: 1rem;
}
.copyright {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.9rem;
}

/* WhatsApp & Back-to-Top Buttons */
.whatsapp-float,
.back-to-top-btn {
  position: fixed;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  z-index: 1000;
  text-decoration: none;
  cursor: pointer;
  min-width: 56px;
  min-height: 56px;
  /* Safe Area für iPhones */
  bottom: calc(20px + env(safe-area-inset-bottom));
}

.whatsapp-float {
  right: 20px;
  background: #25D366;
  color: white;
  box-shadow: 0 4px 15px rgba(37,211,102,0.5);
  transition: all 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 20px rgba(37,211,102,0.6);
}

.back-to-top-btn {
  right: 90px;
  background: var(--accent);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
  transition: all 0.3s ease;
}
.back-to-top-btn:hover {
  transform: translateY(-3px) scale(1.05);
  background: #b71c1c;
}

 /* Dunkelmodus Stile */
 body.dark-mode {
  background-color: #0f172a;
  color: #e2e8f0;
}

body.dark-mode header {
  background-color: rgba(15, 23, 42, 0.95);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .logo h1 {
  color: #f8fafc;
}

body.dark-mode nav a {
  color: #f1f5f9;
}

body.dark-mode .services,
body.dark-mode .about {
  background-color: #0f172a;
}

body.dark-mode .service-card,
body.dark-mode .stat-item,
body.dark-mode .about-image,
body.dark-mode .contact-method {
  background: #1e293b;
  color: #f1f5f9;
}

body.dark-mode .service-content h4,
body.dark-mode .about-text h3,
body.dark-mode .section-title h3,
body.dark-mode .contact-info h3,
body.dark-mode .contact-method h3 {
  color: #f8fafc;
}

body.dark-mode .service-content p,
body.dark-mode .about-text p,
body.dark-mode .section-title p,
body.dark-mode .stat-item p,
body.dark-mode .contact-info p,
body.dark-mode .contact-method p {
  color: #cbd5e1;
}

body.dark-mode .about-text ul li {
  color: #f1f5f9;
}

body.dark-mode footer {
  background: #0b111f;
  color: #94a3b8;
}

body.dark-mode .footer-content p,
body.dark-mode .copyright {
  color: #94a3b8;
}

body.dark-mode .back-to-top-btn {
  background: var(--accent);
  color: white;
}

/* Dunkelmodus für Buttons */
body.dark-mode .btn-outline {
  border-color: #cbd5e1;
  color: #f1f5f9;
}
body.dark-mode .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}
  /* Farbanpassungen wie in vorherigem Code */

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.floating {
  animation: floating 4s ease-in-out infinite;
}
@keyframes floating {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

/* 📱 Mobile-First: Tablet & Smartphone */
@media (min-width: 769px) {
  /* Nur auf Desktop: 2-Spalten-Layout für About & Contact */
  .about-content,
  .contact-content {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .about-image {
    order: initial;
  }
  .hero h2 {
    font-size: 3.6rem;
  }
  .section-title h3 {
    font-size: 2.6rem;
  }
}

/* Optional: Extra für sehr kleine Handys */
@media (max-width: 480px) {
  .header-content {
    padding: 14px 0;
  }
  .logo h1 {
    font-size: 1.6rem;
  }
  nav ul {
    gap: 18px;
  }
  nav a {
    font-size: 1rem;
  }
  .btn {
    min-width: 160px;
    padding: 14px 24px;
    font-size: 1rem;
  }
  .btn-outline {
    margin-left: 0;
    margin-top: 12px;
  }
  .hero h2 {
    font-size: 2rem;
  }
  .whatsapp-float,
  .back-to-top-btn {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
  .back-to-top-btn {
    right: 80px;
  }
}
  
 /* Mobile Menü-Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1100;
}
.mobile-menu-toggle span {
  width: 28px;
  height: 3px;
  background: white;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Header-Rechte Seite (Nav + Toggle) */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile-First: Menü standardmäßig versteckt */
@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .header-right {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(26, 58, 95, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding-top: 80px;
    transition: right 0.4s ease;
    z-index: 1050;
  }

  .header-right.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  nav a {
    font-size: 1.3rem;
    padding: 10px 0;
  }

  .dark-mode-toggle {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}