/* ========== GLOBAL ========== */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #152f4a;
}

/* ========== NAVIGATION ========== */
.navbar {
  background-color: #b3d9f2;
  padding: 10px 0;
  position: relative;
  z-index: 10;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-link {
  display: flex;
  align-items: center;  
  gap: 12px;            
  text-decoration: none; 
}

.logo img {
  height: 40px;
  display: block;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #152f4a;
}

.logo-link:hover .logo-text {
  text-decoration: underline; 
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links li a {
  text-decoration: none;
  color: #152f4a;
  font-weight: 600;
}

/* Burger-Menü */
.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  margin-left: 20px;
}

.burger span {
  width: 25px;
  height: 3px;
  background: #152f4a;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}

.burger.toggle span:nth-child(1) {
  transform: translateX(-1px) translateY(9px) rotate(45deg);
}

.burger.toggle span:nth-child(2) {
  opacity: 0;
}

.burger.toggle span:nth-child(3) {
  transform: translateX(-1px) translateY(-9px) rotate(-45deg);
}

/* ========== HERO-BANNER ========== */
.hero-banner {
  position: relative;
  background: url('banner.png') no-repeat center center/cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  color: #152f4a;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ffffff;
  color: #152f4a;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #152f4a;
  border-radius: 50px;
  font-size: 18px;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #152f4a;
  color: #ffffff;
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero-banner {
    min-height: 60vh;
    justify-content: center;
    text-align: center;
    padding: 20px;
  }

  .hero-content {
    padding: 20px;
    border-radius: 8px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content .cta-button {
    padding: 10px 20px;
    font-size: 16px;
  }
}

/* ========== LEISTUNGEN (Startseite) ========== */
.leistungen {
  text-align: center;
  padding: 40px 20px;
}

.leistungen h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
}

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.leistung {
  display: block;
  background-color: #f8f8f8;
  border: 1px solid rgba(21, 47, 74, 0.1);
  border-radius: 12px;
  padding: 30px 25px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(21, 47, 74, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  color: inherit;
  text-decoration: none;
}

.leistung:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(21, 47, 74, 0.1);
  background-color: #ffffff;
}

.leistung h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
}

.leistung p {
  font-size: 15px;
  line-height: 1.6;
  color: #333333;
}

/* SPEZIALCARD: Mehr erfahren */
.leistung-mehr {
  text-align: left;
  background-color: #152f4a;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.leistung-mehr h2 {
  font-size: 26px;
  margin-bottom: 15px;
}

.leistung-mehr p {
  font-size: 16px;
  color: #e6f2fa;
}

.leistung-mehr:hover {
  background-color: #ffffff;
  color: #152f4a;
}

.leistung-mehr:hover h2,
.leistung-mehr:hover p {
  color: #152f4a;
}

/* ========== LEISTUNGEN DETAILSEITE ========== */
.leistungen-seite {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.leistungen-seite h1 {
  text-align: center;
  font-size: 36px;
  color: #152f4a;
  margin-bottom: 20px;
}

.leistungen-seite .intro {
  text-align: left;
  max-width: 1200px;
  margin: 0 auto 60px;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.leistung-block {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 40px;
}

.leistung-block.reverse {
  flex-direction: row-reverse;
}

.leistung-block .image {
  flex: 0 0 auto;
}

.leistung-block .image img {
  height: 300px;
  width: auto;
  object-fit: contain;
  display: block;
}

.leistung-block .text {
  flex: 1;
  text-align: left;
}

.leistung-block h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #152f4a;
}

.leistung-block p {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

/* Responsive für Leistungen */
@media (max-width: 768px) {
  .leistung-block,
  .leistung-block.reverse {
    flex-direction: column;
    text-align: center;
  }

  .leistung-block .image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }

  .leistung-block .text {
    flex: none;
    text-align: left;
  }
}

/* ========== ÜBER MICH ========== */
.ueber-mich {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: left;
}

.ueber-mich h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.ueber-mich p {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 20px;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

/* ========== KONTAKT ========== */
.kontakt {
  text-align: center;
  padding: 40px 20px;
  background-color: #f8f8f8;
  margin-bottom: 0;
}

.kontakt h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.kontakt-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #152f4a;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #152f4a;
  outline: none;
  box-shadow: 0 0 0 3px rgba(21, 47, 74, 0.15);
}

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

.error-message {
  color: #c0392b;
  font-size: 14px;
  margin-top: 4px;
  display: block;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.15);
}

.kontakt-form button {
  align-self: flex-start;
  padding: 12px 24px;
  background-color: #152f4a;
  color: #ffffff;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.kontakt-form button:hover {
  background-color: #0f2137;
}

/* --- Success & Error Messages --- */
.success-message, .error-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 30px;
  border-radius: 8px;
}

.success-message {
  background-color: #e6f9f0;
  color: #2e7d32;
}

.error-box {
  background-color: #fdecea;
  color: #c0392b;
}

.error-box button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #c0392b;
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
}

.error-box button:hover {
  background-color: #922b21;
}

/* --- Animationen für Formularwechsel --- */
.fade-out {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-enter {
  opacity: 0;
  transform: translateY(10px);
}

.fade-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ========== TEXTSEITEN (Datenschutz, Impressum) ========== */
.datenschutz,
.impressum {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.datenschutz h1,
.impressum h1 {
  font-size: 32px;
  margin-bottom: 30px;
  text-align: center;
  color: #152f4a;
}

.datenschutz h2,
.impressum h2 {
  font-size: 22px;
  margin-top: 30px;
  margin-bottom: 12px;
  color: #152f4a;
}

.datenschutz p,
.impressum p {
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.datenschutz ul,
.impressum ul {
  padding-left: 20px;
  margin: 0 0 20px;
}

.datenschutz a,
.impressum a {
  color: #152f4a;
  text-decoration: underline;
}

/* ========== FOOTER ========== */
footer {
  background: #152f4a;
  color: #ffffff;
  text-align: center;
  padding: 40px 20px;
  margin-top: 0;
  font-size: 15px;
}

footer p {
  margin: 0;
}

footer a {
  color: #b3d9f2;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ffffff;
}

footer .footer-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

/* ========== RESPONSIVE NAV/HERO ========== */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    background: #b3d9f2;
    flex-direction: column;
    align-items: center;
    display: none;
    padding: 20px 0;
  }

  .nav-links.nav-active {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }

  footer .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}
