/* NAVBAR */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 3%;
  background: rgba(13, 17, 23, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--teal);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo span {
  color: var(--text);
  font-weight: 300;
}

.logo img {
  height: 40px;
  width: 40px;
  min-width: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}

nav a:hover {
  color: var(--teal);
}

.nav-btn {
  background: var(--teal) !important;
  color: var(--dark) !important;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  font-weight: 500 !important;
  white-space: nowrap;
}

/* Sprach-Toggle DE/PL */
.lang-switcher {
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
  padding-left: 0.8rem;
  border-left: 1px solid var(--border);
  margin-left: 0.3rem;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted) !important;
  font-weight: 500;
  padding: 0.3rem 0.4rem !important;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
}

.lang-link:hover {
  color: var(--teal) !important;
}

.lang-link.active {
  color: var(--teal) !important;
}

.lang-divider {
  color: var(--muted);
  font-size: 0.85rem;
  opacity: 0.5;
}

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6rem 8% 4rem;
  position: relative;
  gap: 4rem;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/img/background.jpg') center/cover no-repeat;
  opacity: 0.12;
  overflow: hidden;
  z-index: 0;
}

#hero>* {
  position: relative;
  z-index: 1;
}

#hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6vw, 6rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

#hero h1 em {
  font-style: italic;
  color: var(--teal);
}

#hero>div>p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 400px;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-logo {
  width: 350px;
  max-width: 35vw;
  opacity: 0.9;
  flex-shrink: 1;
  min-width: 0;
}


.btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: all 0.2s;
  display: inline-block;
  white-space: nowrap;
}

.btn-fill {
  background: var(--teal);
  color: var(--dark);
  font-weight: 500;
}

.btn-fill:hover {
  background: #4DDEDE;
}

.btn-out {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-out:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.lang-badges {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.lang-badge {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--teal);
  font-size: 0.78rem;
  padding: 0.3rem 0.85rem;
  border-radius: 2rem;
}


/* FOOTER */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 3rem 8% 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

footer h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.8rem;
}

footer p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-col .logo {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-bottom ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.footer-bottom a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--teal);
}

@media (max-width: 768px) {
  footer {
    grid-template-columns: 1fr 1fr;
  }
}

/* HAMBURGER BUTTON */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.3rem;
  z-index: 101;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* SPRACHEN AKKORDEON */
.sprachen-mehr {
  display: none;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1.5rem;
  line-height: 2;
}

.sprachen-mehr.open {
  display: block;
}

.sprachen-toggle {
  background: none;
  border: 1px solid var(--border);
  color: #4DDEDE;
  font-size: 0.8rem;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: all 0.2s;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sprachen-toggle:hover {
  background: #4DDEDE;
  color: var(--dark);
  border-color: #4DDEDE;
}

@media (max-width: 1250px) {
  nav {
    padding: 1.1rem 4%;
  }

  .hamburger {
    display: flex;
  }

  nav ul {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    margin-left: 0;
    background-color: #0D1820;
    background-image: linear-gradient(160deg, #0D1820 0%, #132334 60%, #0D1820 100%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 100;
    padding: 2rem;
  }

  nav ul.open {
    display: flex;
  }

  /* Wenn Menü offen: nav-blur deaktivieren, damit Hintergrund solid bleibt */
  nav:has(ul.open) {
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
  }

  nav ul li a {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    color: var(--text);
  }

  nav ul li a:hover {
    color: var(--teal);
  }

  /* Sprach-Toggle auf Mobile: border entfernen, mittig */
  .lang-switcher {
    border-left: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    margin-top: 1rem;
  }

  .lang-link {
    font-size: 1rem !important;
  }

  .nav-btn {
    font-size: 1rem !important;
    padding: 0.7rem 2rem !important;
  }

  section {
    padding: 4rem 5%;
  }
}

@media (max-width: 900px) {
  .hero-logo {
    display: none;
  }
}

/* KLEINE PHONES (≤480px) */
@media (max-width: 480px) {
  #hero {
    gap: 0;
  }

  /* Buttons volle Breite, leichter zu treffen */
  .btns .btn {
    flex: 1 1 100%;
    text-align: center;
    padding: 0.95rem 1rem;
  }

  /* Footer einspaltig statt gequetscht zweispaltig */
  footer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}