/* Grundlayout */
body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #f0f0f0;
  color: #222;
  overflow-x: hidden;
}

/* Preloader */
#preloader {
  background: #fff;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 9999;
  text-align: center;
  line-height: 100vh;
  font-size: 20px;
}

/* Header */
header, .sticky-header {
  background: #111;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  top: 0;
  z-index: 1000;
  text-align: center;
}

.logo-img {
  height: 100px;
  margin-bottom: 10px;
}

/* Slogan */
#slogan {
  font-size: 32px;
  color: #f5b400;
  font-weight: bold;
  margin-top: 10px;
  opacity: 0;
  animation: sloganFlyIn 2s ease-out forwards;
}

/* Navigation */
nav ul.nav-buttons {
  display: flex;
  justify-content: center;
  list-style: none;
  margin-top: 10px;
  padding: 0;
  gap: 20px;
}

nav ul.nav-buttons li a {
  background: linear-gradient(#f5b400, #e09b00);
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

nav ul.nav-buttons li a:hover {
  background: linear-gradient(#ffd700, #f0a500);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Hero */
.hero-wrapper {
  background: white;
  padding: 30px 0;
}

.hero {
  background: url('hintergrund_safetyzone.jpg') no-repeat center center/cover;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
}

#hero-title {
  font-size: 48px;
  font-weight: 800;
  color: #000;
  opacity: 0;
  transform: translateY(-50px);
  animation: heroTitleFly 1.5s ease-out 1s forwards;
}

#hero-subtitle {
  font-size: 24px;
  font-weight: 600;
  margin-top: 10px;
  color: #222;
  opacity: 0;
  transform: translateY(50px);
  animation: heroSubtitleFly 1.5s ease-out 1.8s forwards;
}

/* Animationen */
@keyframes sloganFlyIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTitleFly {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSubtitleFly {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button 3D */
.button {
  margin-top: 20px;
  padding: 12px 30px;
  background: linear-gradient(#f00a15, #f5b400);
  color: black;
  font-size: 20px;
  font-weight: bold;
  border-radius: 30px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-3px);
  background: linear-gradient(#ee0f0f, #ffd700);
}

/* Bereich */
.section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.light-bg {
  background: #f8f8f8;
}

/* SAFETY Buchstaben */
.safety-letters {
  max-width: 400px;
  margin: auto;
  text-align: left;
}

.safety-letters .letter {
  font-size: 22px;
  font-weight: bold;
  color: #f00a15;
  margin-right: 10px;
}

/* Leistungen / Shop */
.services-grid, .shop-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.service-box, .product-box {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 280px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Kontaktformular */
.contact-box {
  background: white;
  padding: 40px;
  margin: auto;
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.contact-form button {
  background: #f5b400;
  padding: 15px;
  border: none;
  font-weight: bold;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #e0a200;
}

/* Footer */
footer {
  background: #222;
  color: white;
  padding: 20px;
  text-align: center;
  font-size: 14px;
}

footer p {
  margin: 5px 0;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #f5b400;
  color: black;
  border: none;
  padding: 12px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: none;
}

/* ========== MOBILE ANPASSUNGEN ========== */
@media (max-width: 768px) {
  html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .sticky-header {
    position: relative;
    padding: 15px 10px;
  }

  .logo-img {
    height: 50px;
  }

  #slogan {
    font-size: 20px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  nav ul li a {
    font-size: 16px;
    padding: 10px 20px;
  }

  .hero {
    height: 200px;
    background-position: center;
    background-size: cover;
  }

  .hero-text {
    padding: 10px;
  }

  #hero-title {
    font-size: 28px;
    animation: none;
    opacity: 1;
    transform: none;
  }

  #hero-subtitle {
    font-size: 18px;
    animation: none;
    opacity: 1;
    transform: none;
  }
}
