* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  text-align: justify;
  line-height: 1.6;
  background: #fff;
  color: #333;
}
html {
  scroll-behavior: smooth;
}
nav {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10; /* erhöht die Sichtbarkeit über dem Header */
  padding: 30px 0;
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: auto;
  flex-direction: row;
  justify-content: space-between;
}
.burger {
  display: none;
  font-size: 30px;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 20px;
    background: white;
    border: 1px solid #ccc;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 99;
  }

  .nav-links.show {
    display: flex;
}
}
.logo img {
  height: 70px;
  object-fit: contain;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
}
nav a {
  text-decoration: none;
  color: #292929;
}
header {
  height: 100vh; /* 100% der Bildschirmhöhe */
  background: url('header.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: rgb(0, 0, 0);
  position: relative;
}
header h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin-bottom: 5px;
  white-space: nowrap; /* verhindert Zeilenumbruch */
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }

  p1 {
    font-size: 1.1rem;
  }
}
.intro {
  background: #f9f9f9;
  text-align: center;
  padding: 150px 20px;
  width: 100%;
  max-width: 100%;
  margin: 0;         /* Kein auto-Zentrieren */
}
.intro h2 {
  font-size: 1.8rem;
}
.about-section {
  background: #ffffff;
  padding: 150px 20px;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  max-width: 1000px;
  margin: auto;
}

.about-content img {
  width: 500px;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
}

.about-text {
  max-width: 500px;
}
.about-text h2 {
  margin-top: 0;
}

@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    align-items: flex-start;
  }
  .about-text {
    padding-left: 30px;
  }
}
.keywords-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1000px;
  margin: 60px auto 0;
  padding: 0 20px;
}

.keyword-block h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #3E8BCC;
  font-weight: 600;
}

.keyword-block p {
  font-size: 1rem;
  color: #555;
  margin: 0;
}

@media (min-width: 768px) {
  .keywords-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .keyword-block {
    flex: 1;
    padding: 0 15px;
    text-align: center; /* zentriert auch auf großen Screens */
  }
}
section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
  background: transparent;
}

input,
textarea {
  background: transparent;
  border: none;
  border-bottom: 2px solid #333;
  padding: 10px 5px;
  font-size: 1rem;
  color: #333;
  outline: none;
  transition: border-color 0.3s ease;
}

input::placeholder,
textarea::placeholder {
  color: #999;
}

input:focus,
textarea:focus {
  border-bottom-color: #000;
}

button {
  padding: 12px;
  font-size: 1rem;
  background-color: #333;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 10px;
  }
}
.form-row {
  display: flex;
  gap: 20px;
}

.form-row input {
  flex: 1;
}
button:hover {
  background-color: #000;
}
input, textarea, button {
  padding: 12px;
  font-size: 1rem;
}
button {
  background-color: #333;
  color: #fff;
  border: none;
  cursor: pointer;
}
footer {
    background: #ffffff;
    padding: 40px 0;
    font-size: 0.95rem;
  }
#contact {
  background: #f9f9f9;
  text-align: center;
  padding: 150px 20px;
  width: 100%;
  max-width: 100%;
  margin: 0; 
}
#contact form {
  max-width: 600px;
  margin: 0 auto;
}
#contact h3 {
  margin-bottom: 100px;
}
.footer-container {
  width: 100%;
  max-width: 1000px; /* gleiche Breite wie deine Sections */
  margin: 0 auto;     /* zentriert den Container */
  padding: 40px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #ffffff;
}

.footer-col {
  flex: 1;
}

.footer-col:nth-child(2) {
  text-align: center;
}

.footer-col:nth-child(3) {
  text-align: right;
}

.footer-logo {
  height: 70px;
  object-fit: contain;
}
.modal {
  display: none; /* Das ist entscheidend! */
  position: fixed;
  z-index: 99;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  position: relative;
}

.close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
}

.close:hover {
  color: #000;
}
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col:nth-child(3) {
    text-align: center;
  }
}