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

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #222;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: #1f2937;
  color: #fff;
  padding: 1rem 1.5rem;
}

.logo {
  font-size: 3.75rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

/* Nav */
.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.site-nav a {
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
}

.site-nav a:hover {
  color: #60a5fa;
}

.site-nav a.active {
  color: #60a5fa;
}

.site-nav li {
  display: flex;
  align-items: center;
}

/* Language switch */
.lang-switch {
  border: 1px solid #fff;
  border-radius: 4px;
  overflow: hidden;
  align-self: center;
}

.lang-switch button {
  font: inherit;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background: none;
  border: none;
  padding: 0.15rem 0.6rem;
  cursor: pointer;
}

.lang-switch button + button {
  border-left: 1px solid #fff;
}

.lang-switch button:hover {
  color: #60a5fa;
}

.lang-switch button.active {
  background: #fff;
  color: #1f2937;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
}

/* Main content */
main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

main section {
  margin-bottom: 2.5rem;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

main h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

main h2 {
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}

#about p {
  font-size: 1.2rem;
}

#about {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-left: max(1.5rem, calc((100vw - 1200px) / 2 + 1.5rem));
  padding-right: max(1.5rem, calc((100vw - 1200px) / 2 + 1.5rem));
}

.about-content {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 4rem;
}

.about-image {
  max-width: 450px;
  width: 100%;
  height: auto;
}

#contact p {
  font-size: 1.2rem;
}

#references p,
#references li {
  font-size: 1.2rem;
}

#references ul {
  list-style-position: inside;
}

/* Services */
.services-content {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.services-content ul {
  flex: 0 1 auto;
}

.services-content li {
  white-space: nowrap;
  font-size: 1.2rem;
}

.services-image {
  display: block;
  max-width: 750px;
  width: 100%;
  height: auto;
  margin: 2rem auto 0;
}


/* Home tagline */
.home-tagline {
  text-align: center;
  margin-bottom: 1.5rem;
  white-space: nowrap;
  font-size: clamp(0.75rem, 4vw, 2rem);
}

/* Home image */
.home-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.home-image img {
  max-width: min(1200px, 90vw);
  max-height: 60vh;
  width: auto;
  height: auto;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  background: #1f2937;
  color: #cbd5e1;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  text-align: left;
}

.impressum,
.kontakt {
  font-style: normal;
  line-height: 1.5;
}

.impressum a,
.kontakt a {
  color: #cbd5e1;
}

.impressum a:hover,
.kontakt a:hover {
  color: #60a5fa;
}

/* Responsive */
@media (max-width: 700px) {
  .logo {
    font-size: 1.75rem;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .lang-switch {
    align-self: flex-start;
  }

  .home-tagline {
    white-space: normal;
    font-size: 1.3rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    justify-self: center;
  }

  .services-content li {
    white-space: normal;
  }

  .footer-content {
    justify-content: center;
    text-align: center;
  }
}
