html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #0a2c3e;
}


/* ======================
   HEADER & NAVIGATION
====================== */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
  gap: 2rem;
}

/* Neuer Wrapper für Header-Inhalt */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 2px solid #6db3e8;
  background: white;
}

/* Logo-Gruppe */
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-link img {
  height: 36px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

/* Optional: Abstand zur Sprache verkleinern */
.lang-select-wrapper select {
  padding: 0.4rem 0.7rem;
  font-size: 0.95rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0a2c3e;
  font-size: 1.5rem;
  font-weight: bold;
}
.logo-link img {
  height: 40px;
  width: auto;
  max-height: 40px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  flex-grow: 1;
  justify-content: flex-start;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1.25rem 2.5rem;
  background: #fff;
  border-bottom: 2px solid #6db3e8;
}
/* Navigation + CTA in der Mitte */
.header-center {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1 1 auto;
  justify-content: center;
  flex-wrap: wrap;
}



/* Logo links */
.header-left {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

.menu-toggle {
  display: flex;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #0a2c3e;
  align-items:center;
  transition: transform 0.3s ease, color 0.3s ease;
}

.menu-toggle:hover {
  transform: translateY(-2px) rotate(15deg);
  color: #6db3e8;
}

/* ======================
   SPRACHAUSWAHL
====================== */
.lang-select-wrapper {
  position: static;
  z-index: 10;
}

.lang-dropdown {
  padding: 0.5rem 0.75rem;
  border: 0.125rem solid #0a2c3e;
  border-radius: 0.25rem;
  background: white;
  color: #0a2c3e;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-items: center;
  margin-right: 1rem;
}

.lang-dropdown:hover {
  background: #6db3e8;
  color: #0a2c3e;
  transform: translateY(-2px);
}

.lang-dropdown:focus {
  outline: none;
}

/* ======================
   BURGER-MENÜ
====================== */
.nav-links {
  position: absolute;
  top: 5rem;
  left: 0;
  right: 0;
  background: white;
  flex-direction: column;
  gap: 0.9375rem;
  transform: translateY(-1.25rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 99;
  padding: 1.25rem;
  border-top: 0.125rem solid #6db3e8;
  box-shadow: 0 0.625rem 1.25rem rgba(0, 0, 0, 0.05);
  border-radius: 0 0 0.5rem 0.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  max-height: 18.75rem;
}

.nav-links a {
  text-decoration: none;
  color: #0a2c3e;
  font-weight: 500;
}

.nav-links a.main-nav {
  font-weight: 700;
  font-size: 1rem;
}

.nav-links a.sub-nav {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.85;
  line-height: 1.2;
  margin-bottom: 0;
}

.nav-link {
  position: relative;
  display: inline-block;
  color: #0a2c3e;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background-color: #6db3e8;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #6db3e8;
  font-weight: 600;
  transform: translateY(-2px);
}

.nav-link:hover::after {
  width: 100%;
}

@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }

  .headline-with-button {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-left {
    font-size: 1.25rem;
  }

  .full-width-image {
    height: 35vh;
    background-position: center -10vh;
  }

  .intro-section,
  .services {
    padding: 3rem 2rem;
  }

  .card {
    width: 100%;
    max-width: 25rem;
  }

  .site-footer .footer-content {
    gap: 15px;
  }
}

/* ============================
   MEDIA QUERY: Mobil (≤ 768px)
============================ */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  header {
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .menu-toggle {
    font-size: 1.8rem;
	align-items: center;
  }

  .lang-select-wrapper {
    right: 1rem;
    top: 1rem;
  }

  .full-width-image {
    height: 30vh;
    background-position: center -5vh;
  }

  .headline-button {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .intro-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .intro-section img,
  .intro-text {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .services {
    padding: 2.5rem 1.5rem;
  }

  .card-grid {
    gap: 1rem;
  }

  .card {
    max-width: 100%;
  }

  .site-footer .footer-content {
    flex-direction: column;
    text-align: center;
  }

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

/* ============================
   MEDIA QUERY: Kleine Geräte (≤ 480px)
============================ */
@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  .header-left {
    font-size: 1.1rem;
    justify-content: center;
    width: 100%;
  }

  .lang-dropdown {
    font-size: 0.85rem;
  }

  .headline-with-button {
    gap: 0.5rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .full-width-image {
    height: 25vh;
    background-position: center;
  }

  .nav-links {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .nav-links a.main-nav {
    font-size: 1.05rem;
  }

  .nav-links a.sub-nav {
    font-size: 0.75rem;
  }

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

  .hero p {
    font-size: 1rem;
  }

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

  .intro-section,
  .services {
    padding: 2rem 1rem;
  }

  .services h2 {
    font-size: 1.5rem;
  }

  .card-content h3 {
    font-size: 1.1rem;
  }

  .card-content p {
    font-size: 0.85rem;
  }

  .scroll-to-top {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 20px;
    right: 20px;
  }
}
/* ========== DESKTOP NAVIGATION ========= */
@media (min-width: 768px) {
  /* Burger-Button ausblenden */
  .menu-toggle {
    display: none !important;
  }

  /* Navigation horizontal anzeigen */
  .nav-links {
    position: static !important;
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
    max-height: none;
  }

  /* Overlay entfernen */
  #overlay {
    display: none !important;
  }


}
/* ========== DROPDOWN DESKTOP VS. MOBIL ========== */

/* Desktop: ab 768px */
@media (min-width: 768px) {
  .desktop-only {
    display: block;
  }
  .mobile-only {
    display: none!important;
  }

  .nav-item {
    position: relative;
  }

  .has-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    z-index: 1000;
    min-width: 200px;
    border-radius: 0.25rem;
  }

  .has-dropdown:hover .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #0a2c3e;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .dropdown-menu a:hover {
    background-color: #f0f2f4;
    color: #0a2c3e;
  }
}

/* Mobil: unter 768px */
@media (max-width: 767px) {
  .desktop-only {
    display: none !important ;
  }
  .mobile-only {
    display: block;
  }

  .header-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .nav-links {
    justify-content: flex-start;
    flex-direction: column;
  }

.header-right {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  
}


.menu-toggle {
  margin-top: -0.25rem; /* oder -0.75rem oder -1rem nach Wunsch */
}
}