* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  /* Fonts */
  --font-main: "Karla", sans-serif;
  --font-code: "Fira Code", monospace;
}

body {
  font-family: var(--font-main);
  overflow-x: hidden;
  width: 100%;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 98px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(
    to bottom,
    #000000 0%,
    #000000 30%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 40;
  padding: 0 96px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.lang-switch {
  width: 84px;
  height: 28px;
  background-color: transparent;
  border: 1px solid #3dcfb6;
  border-radius: 100px;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  font-family: var(--font-main);
  font-weight: bold;
  font-size: 16px;
  line-height: 120%;
  overflow: hidden;
}

.switch-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-color: #3dcfb6;
  border-radius: 100px;
  transition: transform 0.3s ease;
  z-index: 1;
}

.lang-option {
  flex: 1;
  text-align: center;
  z-index: 2;
  color: #3dcfb6;
  transition: color 0.3s ease;
}

.lang-option.active {
  color: #ffffff;
}

.switch-de .switch-bg {
  transform: translateX(100%);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  font-family: var(--font-code);
  font-weight: 400;
  font-size: 20px;
  line-height: 100%;
  color: #ffffff;
  letter-spacing: -3%;
  transition: color 0.3s ease;
  cursor: pointer;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translate(-50%) scale(0);
  width: 8px;
  height: 8px;
  background-color: #3dcfb6;
  border-radius: 50%;
  transition: transform 300ms ease-out;
}

.nav a:hover::after {
  transform: translateX(-50%) scale(1);
}

.nav a:hover {
  color: #3dcfb6;
}

.logo-container {
  position: relative;
  width: 132px;
  height: 48px;
  overflow: hidden;
  cursor: pointer;
}

.logo-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 300ms ease-in;
}

.logo-solid {
  opacity: 1;
  z-index: 2;
}

.logo-outline {
  opacity: 0;
  z-index: 1;
}

.logo-container:hover .logo-solid {
  opacity: 0; /* Solid wird unsichtbar */
}

.logo-container:hover .logo-outline {
  opacity: 1; /* Outline wird sichtbar */
}