@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: "Inter", sans-serif;
  background-color: #f9f9f9;
  scroll-behavior: smooth;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  position: relative;
  z-index: 1001;
  height: 120px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: #002244;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.hamburger {
  display: none;
 font-size: 2rem;
  cursor: pointer;
  color: white;
  user-select: none;
  padding: 5px;
  z-index: 1002;
  display: block;
}

nav {
  display: flex;
  gap: 2rem;
  transition: max-height 0.3s ease-in-out;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 200px;
  height: 130px;
  margin-right: 10px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: white;
  margin-right: 50px;
  font-size: 20px;
}

nav ul li a:hover {
  color: #66ccff;
  text-decoration: none;
}

.logo span {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  margin-right: 10px;
}

section {
  min-height: 100vh;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #fff;
  scroll-margin-top: 80px;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  background-image: url(/image/home.webp);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding-top: 80px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.hero .btn {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 12px 25px;
  margin-top: 20px;
  border-radius: 5px;
}

.hero .subtitle {
  font-size: 2rem;
  font-weight: 400;
  margin-top: 10px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.hero .services-keywords {
  font-size: 1.7rem;
  font-weight: 400;
  margin-top: 15px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}

.about-text {
  max-width: 800px;
  text-align: left;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #002244;
  text-align: center;
}

.about-text p {
  font-size: 1.3rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #333;
  text-align: center;
}

.about-image {
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.02);
}

.services {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.services h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #222;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 0;
  margin: 0 auto;
  list-style: none;
  max-width: 1200px;
}

.service {
  background-color: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  width: calc(50% - 20px); /* 2 u redu */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

.text {
  text-align: center;
}

.service h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.service p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.contact {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contact p {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.contact i {
  margin-right: 10px;
}

footer {
  background-color: #333;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
}

footer p {
  margin-left: 20px;
  font-size: 1.2rem;
}

.dat-imp {
  display: flex;
  gap: 40px;
  margin-right: 60px;
}

.datenschutz {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}

.dat-imp a {
  font-size: 1.2rem;
  text-decoration: none;
  color: white;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.dat-imp a:hover {
  color: #66ccff;
}

.impressum {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 30px;
  margin: 10px;
  height: 100vh;
}

@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 75%;
    max-width: 300px;
    background-color: #0d2845;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
    transition: right 0.5s ease-in-out;
    z-index: 1000;
  }

  nav.active {
    right: 0;
    margin-top: 50px;
  }

  nav.open {
    max-height: 200px;
  }

  .hamburger {
    display: block;
    font-size: 2rem;
    cursor: pointer;
  }

  nav ul {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  nav li {
    list-style: none;
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
  }

  nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 10px 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .subtitle {
    font-size: 1.5rem;
  }

  .hero .services-keywords {
    font-size: 1.5rem;
  }

  .about-grid {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    flex: 1 1 100%;
  }

  .about-image {
    flex: 1 1 100%;
    margin-top: 30px;
  }

  .about-text h2 {
    font-size: 1.6rem;
  }

  .about-text p {
    font-size: 1.2rem;
  }

  .service {
    width: 100%;
  }

  .contact p {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
  }

  .footer {
    height: auto;
  }

  .dat-imp {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column-reverse;
    gap: 6px;
    padding: 20px 10;
    margin: 10px;
  }

  .dat-imp a,
  .dat-imp p {
    font-size: 1rem;
    margin: 0;
    padding: 0;
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none;
  }

  nav {
   position: static;
    display: flex !important;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    height: auto;
    background: none;
    padding: 0;
    right: 0;
    transform: none;
  }

  nav ul {
       display: flex;
    flex-direction: row;
    gap: 20px;
  }

  nav li {
    margin-bottom: 0;
  }

  nav a {
       font-size: 1rem;
    padding: 0;
    color: white;
  }
}
