body,
html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, sans-serif;
  scroll-behavior: smooth;
}

a {
  cursor: pointer;
}

.navbar {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1000px;
  border-radius: 50px;
  height: 80px;
  background: linear-gradient(to right, #1a3c5e, #0a6e77);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

.navbar.shrink {
  top: 5px;
  width: calc(100% - 60px);
  height: 65px;
}

.navbar img {
  height: 30px;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 5px 8px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 25px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
  transition: background 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.4));
  box-shadow: 0 0 10px rgba(224, 247, 250, 0.7);
}

.nav-links a.active {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.5));
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-icon {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 4px 0;
  transition: all 0.3s ease;
}

.content {
  padding: 20px;
  max-width: 1000px;
  margin: auto;
  margin-top: 110px;
}

.hero-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(to bottom, #f0f4f8, #ffffff);
  border-radius: 20px;
  margin-bottom: 40px;
}

.hero-section h1 {
  font-size: 2.8em;
  background: linear-gradient(to right, #1a3c5e, #0a6e77);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-section p {
  font-size: 1.2em;
  color: #333;
  margin: 20px 0;
}

.leistung-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
  height: 400px;
}

.leistung-section-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}

.leistung-bild,
.leistung-text {
  flex: 2;
  height: 100%;
  border-radius: 20px;
  box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.leistung-bild img {
  height: 100%;
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  transition: none;
}

.leistung-text {
  flex: 1;
  padding: 15px;
  margin-right: 20px;
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.leistung-section-stacked .leistung-text {
  flex: none;
  width: 100%;
  max-width: 800px;
  margin: 0 0 20px 0;
  padding: 20px;
}

.leistung-section-stacked .leistung-bild {
  flex: none;
  width: 100%;
  max-width: 800px;
  height: 300px;
}

.leistung-text h3 {
  margin-top: 0;
  color: #1a3c5e;
  font-size: 1.8em;
}

.leistung-text p {
  color: #333;
  line-height: 1.6;
  margin: 10px 0;
  flex-grow: 1;
  font-size: 0.95em;
}

.leistung-text ul {
  margin: 10px 0;
  padding-left: 20px;
  color: #333;
  line-height: 1.6;
  font-size: 0.95em;
}

.leistung-section.reversed {
  flex-direction: row-reverse;
}

.leistung-section.reversed .leistung-text {
  margin-left: 20px;
  margin-right: 0;
}

.leistung-section-stacked.reversed .leistung-text {
  margin: 0 0 20px 0;
}

.button {
  display: inline-block;
  background-color: #0a6e77;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 25px;
  transition: background-color 0.3s ease;
  font-size: 1em;
  align-self: flex-start;
  margin-bottom: 10px;
}

.button:hover {
  background-color: #1a3c5e;
}

.kontaktformular, .impressum {
  margin-top: 40px;
  padding: 20px;
  background-color: #f8fafc;
  border-radius: 20px;
  text-align: center;
}

.kontaktformular form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: auto;
}

.kontaktformular label {
  margin-top: 10px;
  text-align: left;
  color: #1a3c5e;
}

.kontaktformular input,
.kontaktformular textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-family: 'Segoe UI', Roboto, sans-serif;
}

.kontaktformular button {
  width: fit-content;
  margin: 20px auto;
}

#formMessage {
  margin-top: 20px;
  color: #1a3c5e;
}

.impressum p {
  color: #333;
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .nav-links li {
    margin: 5px 6px;
  }

  .nav-links a {
    font-size: 0.9em;
    padding: 5px 10px;
  }
}

@media (max-width: 768px) {
  .navbar {
    justify-content: space-between;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1000px;
    background: #0a6e77;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .nav-links a {
    font-size: 1.1em;
    padding: 10px 20px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
  }

  .nav-links a:hover {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.4));
    box-shadow: 0 0 10px rgba(224, 247, 250, 0.7);
  }

  .menu-toggle {
    display: flex;
  }

  .leistung-section {
    flex-direction: column;
    height: auto;
  }

  .leistung-bild,
  .leistung-text {
    flex: none;
    width: 100%;
    height: 300px;
    margin: 10px 0;
  }

  .leistung-text {
    height: auto;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .leistung-section.reversed {
    flex-direction: column;
  }

  .leistung-section.reversed .leistung-text {
    margin-left: 0;
  }

  .leistung-section-stacked .leistung-text {
    margin: 0 0 10px 0;
  }

  .leistung-section-stacked .leistung-bild {
    height: 200px;
  }
}