:root {
  --primary: #cfdbd5;
  --bg: #242423;
  --accent: #f5cb5c;
  --nav-height: 96px;
  --logo-size: 60px;
  --nav-icon-size: 2rem;
  --nav-title-size: 2.0rem;
  --nav-link-size: 1.3rem;
}

header {
  background: var(--primary);
  height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  width: 100%;
  max-width: 100%;
  background: var(--primary);
  box-sizing: border-box;
  gap: 0;
  padding: 0 36px;
  position: relative;
}

/* Linke Section: Logo + Links */
.nav-section-left {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

/* Logo ganz links */
.nav-logo-container {
  display: flex;
  align-items: center;
  margin-right: 18px;
}
.nav-logo {
  width: var(--logo-size);
  height: var(--logo-size);
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 8px rgba(0,0,0,0.09);
}

/* Links */
.nav-links.nav-left {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links.nav-left li a {
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--nav-link-size);
  letter-spacing: 0.5px;
  opacity: 0.89;
  transition: opacity 0.2s, border-bottom 0.2s;
}
.nav-links.nav-left li a:hover,
.nav-links.nav-left li.active a {
  border-bottom: 2.5px solid var(--accent);
  opacity: 1;
}

/* Name exakt zentriert, unabhängig von Links/Socials */
.nav-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
}

.site-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: var(--nav-title-size);
  letter-spacing: 2px;
  color: var(--bg);
  background: transparent;
  text-decoration: none;
  transition: opacity 0.2s;
  text-align: center;
  padding: 0 24px;
  white-space: nowrap;
}
.site-title:hover {
  opacity: 0.7;
  cursor: pointer;
}

/* Rechte Section: Socials */
.nav-section-right {
  display: flex;
  align-items: center;
  min-width: 0;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-right a {
  color: var(--bg);
  font-size: var(--nav-icon-size);
  opacity: 0.88;
  transition: opacity 0.2s, color 0.2s;
}
.nav-right a:hover {
  color: var(--accent);
  opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
  :root { --nav-height: 68px; --logo-size: 30px; }
  .navbar { padding: 0 10px; }
  .site-title { font-size: 1.2rem; padding: 0 6px; }
  .nav-links.nav-left { gap: 14px; }
  .nav-right { gap: 12px; }
}
@media (max-width: 600px) {
  .site-title { font-size: 1.01rem; padding: 0 2px; }
  .nav-links.nav-left { gap: 7px; }
  .nav-logo { width: 22px; height: 22px; }
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: transparent;
  border-radius: 22px;
  padding: 1.5px 2px;
  margin-left: 32px;          /* Abstand zu den Socials */
  min-width: 76px;
  height: 34px;
  box-shadow: none;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--bg);           /* dunkles Grau (deine Schriftfarbe) */
  font-family: inherit;
  font-weight: 600;
  font-size: 1.01em;
  padding: 4px 16px;
  border-radius: 17px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.5px;
}

.lang-btn.active {
  background: var(--accent);  /* Gelb als aktiver Hintergrund */
  color: var(--bg);           /* dunkle Schrift */
  box-shadow: 0 1px 4px rgba(245,203,92,0.11);
}

/* Sichtbares Hover für nicht aktive Buttons */
.lang-btn:not(.active):hover {
  background: rgba(207,219,213,0.28);
  color: var(--accent);
}

/* Kompakter auf Handy */
@media (max-width: 900px) {
  .lang-toggle {
    min-width: 58px;
    height: 24px;
    padding: 0 1px;
    margin-left: 10px;
  }
  .lang-btn {
    font-size: 0.93em;
    padding: 2.5px 7px;
  }
}
