/* Basis-Layout */
body {
  font-family: sans-serif;
  background: #f9f9f9;
  color: #333;
  margin: 0;
  line-height: 1.6;
  position: relative;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
  padding: 0 1rem;
}

/* Navigation */
.site-header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav .logo {
  font-weight: bold;
  color: #f8941d;
  text-decoration: none;
  font-size: 1.2rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
  transition: transform 0.3s ease;               /* gleitendes Einfahren */
  z-index: 1050;
}

/* ► NEU: Fallback, damit das Menü bei jedem Viewport sichtbar wird,
         sobald „show“ gesetzt ist – praktisch fürs Debuggen */
.main-nav ul.show {
  display: flex;
  transform: translateX(0);
}

.main-nav a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #f8941d;
}

/* Burger-Menü */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  z-index: 1100;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: #333;
  transition: all 0.3s ease;
}

.burger.open div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.open div:nth-child(2) {
  opacity: 0;
}

.burger.open div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999; /* Geändert von 1000 auf 999 */
  animation: fadeIn 0.3s ease-in-out;
}

.menu-overlay.show {
  display: block;
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    display: none;                      /* mobil standardmäßig verstecken */
    width: 100%;
    transform: translateX(-100%);
    background: #fff;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: fixed;
    top: 60px;
    left: 0;
    transition: transform 0.3s ease;    /* ► NEU: Animation auch hier sicherstellen */
  }

  .main-nav ul.show {
    display: flex;
    transform: translateX(0);
  }

  .main-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .section {
    padding: 2rem 1rem;
  }
}

/* Hero-Bereich */
.hero {
  text-align: center;
  padding: 2rem 0;
  animation: fadeIn 1s ease-in-out;
}

.hero-digital {
  background-color: #eef3f7;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Sektionen */
.section {
  padding: 3rem 0;
  animation: slideUp 0.8s ease-in-out;
}

.section img {
  margin-bottom: 1rem;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.service-list li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  color: #f8941d;
  font-size: 1rem;
}

/* Scroll-to-top Button */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #f8941d;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease;
}

.scroll-top.show {
  display: block;
  opacity: 1;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #ddd;
  background: #fff;
}

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

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