/* === Reset & Basis === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  line-height: 1.7;
  background: #fff;
}

a {
  color: #7b9bb7;
  text-decoration: none;
}
a:hover {
  color: #5a7d9a;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* === Header === */
.site-header {
  background: #7b9bb7;
  padding: 20px 0 0 0;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 40px;
}

.logo img {
  width: 280px;
}

.header-info {
  background: #89a6bf;
  border-radius: 20px;
  padding: 25px 40px;
  box-shadow: 5px 5px 0 #7492ad;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-text {
  color: #fff;
  font-size: 18px;
  text-align: right;
}
.contact-text p {
  margin-bottom: 4px;
}
.contact-text a {
  color: #fff;
}
.contact-text a:hover {
  color: #e8f0f7;
}

.portrait img {
  width: 180px;
  border-radius: 8px;
}

/* === Wellenübergang === */
.wave-divider {
  background: #7b9bb7;
  line-height: 0;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* === Hauptinhalt === */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 30px 60px;
}

h1 {
  color: #7b9bb7;
  font-size: 28px;
  margin-bottom: 30px;
}

h2 {
  color: #7b9bb7;
  font-size: 24px;
  margin: 30px 0 15px;
}

h3 {
  color: #5a7d9a;
  font-size: 20px;
  margin: 25px 0 10px;
}

h4 {
  color: #5a7d9a;
  font-size: 17px;
  margin: 20px 0 8px;
}

p {
  margin-bottom: 12px;
}

/* === Kontaktformular === */
.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #c0d0de;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #7b9bb7;
  box-shadow: 0 0 0 3px rgba(123, 155, 183, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.consent-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.consent-group input[type="checkbox"] {
  margin-top: 4px;
  width: 24px;
  height: 24px;
  min-width: 24px;
  cursor: pointer;
}
.consent-group label {
  font-weight: normal;
  font-size: 14px;
}

.btn-submit {
  background: #7b9bb7;
  color: #fff;
  border: none;
  padding: 12px 36px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover {
  background: #5a7d9a;
}

/* === Footer === */
.site-footer {
  background: #9ab2c7;
  color: #fff;
  padding: 15px 30px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: #fff;
  margin-left: 15px;
}
.footer-links a:hover {
  color: #e8f0f7;
}

.footer-brand {
  font-size: 12px;
  background: #7b9bb7;
  width: 100%;
  text-align: center;
  padding: 8px;
  color: #fff;
}
.footer-brand a {
  color: #fff;
}

/* === Unterseiten === */
.page-content {
  min-height: 50vh;
}

.page-content ul {
  margin: 10px 0 15px 25px;
}
.page-content li {
  margin-bottom: 6px;
}

/* === Nutzungsbedingungen Modal === */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: #fff;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 10px;
  padding: 30px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
}

/* === Nach-oben-Button === */
.to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #7b9bb7;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 500;
}
.to-top.visible {
  opacity: 1;
}
.to-top:hover {
  background: #5a7d9a;
  color: #fff;
  text-decoration: none;
}

/* === Responsive === */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 20px;
  }
  .header-info {
    flex-direction: column;
    text-align: center;
  }
  .contact-text {
    text-align: center;
  }
  .logo img {
    width: 220px;
  }
  .portrait img {
    width: 150px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links a {
    margin: 0 8px;
  }
  main {
    padding: 25px 20px 40px;
  }
}
