/* ========================================
   GLOBAL STYLES
======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* verhindert horizontales Scrollen */
  position: relative;
  scroll-behavior: smooth;

}

body {
  font-family: Arial, sans-serif;
  background-color: #f7f7f7;
  color: #333;
  line-height: 1.6;
}

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

li i {
  font-size: 1.2em;
  vertical-align: middle;
  color: #003060;
}

/* ========================================
   HEADER
======================================== */
header {
  font-size: 30px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: black;
}

header p {
  margin-top: -10px; /* Desktop-Abstand */
}

/* Startseite Header */
.startseite header {
  height: 80vh;
  min-height: 400px;
  background: url("Bilder/Bild2.jpg") center center/cover no-repeat;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 150px; /* Header-Inhalt nach oben verschieben */
}

.startseite header h1 {
  margin-bottom: -0.5em;
}

.startseite header p {
  margin-top: 0;
}

.startseite header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.startseite header * {
  position: relative;
  z-index: 1;
  height: 150px;
}

/* Unterseiten Header */
.unterseite header {
  color: #004080;
  padding: 2em 1em;
}

/* H1 Links global */
header h1 a {
  text-decoration: none;
  font-weight: 1000;
  color: inherit;
  text-shadow: none;
}

/* Startseite H1 */
.startseite header h1 a {
  color: white;
  text-shadow: 3px 3px 8px rgba(0,0,0,0.6);
}

/* Unterseiten H1 */
.unterseite header h1 a {
  color: #004080;
}



/* ========================================
   TOP-BAR (Navigation)
======================================== */
.top-bar {
  background-color: #004080;
  display: flex;
  justify-content: space-between; /* Desktop: Logo links, Menü rechts */
  align-items: center;
  padding: 0 40px;
  height: 120px;
  border-bottom: 2px solid #003060;
  position: relative;
  z-index: 10;
}

/* Logo */
.top-bar .logo {
  height: 130px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  position: relative;
  top: 1px;
  z-index: 11;
  margin-left: 80px;
}

/* Navigation Links */
.top-bar .nav-links {
  display: flex;
  gap: clamp(1em, 2.5vw, 2.5em);
}

.top-bar .nav-links a {
  color: white;
  font-size: 25px;
  text-decoration: none;
  padding: 10px 15px;
  position: relative;
  transition: color 0.3s ease;
}

/* Hover-Effekt */
.top-bar .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: lightgrey;
  transition: width 0.3s ease;
}

.top-bar .nav-links a:hover {
  color: lightgrey;
}

.top-bar .nav-links a:hover::after {
  width: 100%;
}

/* Burger Icon (nur mobil sichtbar) */
.menu-toggle {
  font-size: 2.5rem;
  cursor: pointer;
  color: white;
  display: none;
  z-index: 50;
}

/* Close-Button standardmäßig verstecken */
.close-btn {
  display: none;
}

/* ========================================
   MAIN CONTENT
======================================== */
main {
  width: clamp(90%, 100%, 1200px);
  max-width: 1200px;
  margin: 2em auto;
  padding: 2.5em;
  background-color: white;
  box-shadow: 0 0 20px rgba(0,0,0,0.08);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  border-radius: 16px;
}

/* UL Listen */
main ul {
  padding-left: 30px;
  list-style-position: inside;
  margin-bottom: 1em;
}

main ul li {
  margin-bottom: 0.5em;
}

/* Abschnittsüberschriften */
main h2 {
  margin-top: 1.8em;
  margin-bottom: 1em;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: #004080;
  position: relative;
}

main h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: #004080;
  border-radius: 2px;
}

/* ========================================
   GALERIE
======================================== */
.bilder-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
}

.bild-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  cursor: pointer;
  background: #eee;
  transition: transform 0.3s, box-shadow 0.3s;
}

.bild-container img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s;
}

.bild-container:hover img {
  transform: scale(1.07);
}

.bild-container:hover {
  box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}

.label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 12px;
  font-size: 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ========================================
   KONTAKT
======================================== */
.kontakt-container {
  max-width: 750px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.kontakt-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #004080;
  font-size: 1.6rem;
}

.kontakt-container label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
  color: #333;
}

.kontakt-container input,
.kontakt-container textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #bbb;
  background: #f9f9f9;
  font-size: 1rem;
  outline: none;
}

.kontakt-container textarea {
  resize: vertical;
  min-height: 120px;
}

.kontakt-container button {
  margin-top: 15px;
  width: 100%;
  padding: 14px;
  background-color: #004080;
  border: none;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.kontakt-container button:hover {
  background-color: #003366;
}

.kontakt-text {
  text-align: center;
}

/* ========================================
   CALL TO ACTION
======================================== */
.ltext {
  text-align: center;
  font-size: 1.2em;
}

.cta-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #007BFF;
  color: #fff;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 15px 0;
  text-align: center;
}

p .cta-button {
  display: block;
  width: fit-content;
  margin: 15px auto;
}

.cta-container {
  text-align: center;
  margin: 20px 0;
}

.cta-text {
  margin-top: 10px;
  font-size: 1.1em;
  color: #333;
}

.cta-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/* ========================================
   LEISTUNGEN GRID
======================================== */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin: 60px 0;
  text-align: center;
}

.leistung {
  padding: 20px;
}

.leistung i {
  font-size: 5em;
  color: #004080;
  margin-bottom: 20px;
}

.leistung h3 {
  font-size: 1.5em;
  font-weight: bold;
  color: #004080;
  margin-bottom: 15px;
}

.leistung p {
  font-size: 1.2em;
  line-height: 1.6;
  color: #333;
}

/* ========================================
   FOOTER
======================================== */
footer {
  background-color: #004080;
  color: white;
  text-align: center;
  padding: 25px;
  margin-top: 2em;
  font-size: 15px;
  width: 100vw;
  overflow-x: hidden;
  position: relative; /* vorher evtl. nicht gesetzt */
  z-index: 1; /* sicherstellen, dass es über anderen Elementen liegt */
}




footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ========================================
   RESPONSIVE
======================================== */

/* Tablets */
@media (max-width: 900px) {
  main {
    padding: 1.5em;
  }
}


/* Smartphones */
@media (max-width: 600px) {
  
  main, footer {
    padding: 1em;
    margin: 0.5em;
  }
  .bild-container img {
    height: 160px;
  }
}

/* Mobile Navigation & Layout */
@media (max-width: 767px) {
  
  body.unterseite.datenschutz header h1 {
    font-size: 2rem !important; /* !important zwingt die Überschreibung */

  }

  /* Unterseiten H1 */
  body.unterseite header h1 a {
    font-size: 3rem;
  }

  /* Startseite Header anpassen */
  body.startseite header {
    padding-top: 130px;
  }
  body.startseite header h1 {
    font-size: 2.5rem;
    margin-bottom: -2em;
  }
  body.startseite header p {
    font-size: 30px;
    margin-top: 0;
  }

  header h1 {
    margin-bottom: -50px;
  }
  header p {
    margin-top: -10px;
  }

  /* Top-Bar Layout */
  .top-bar {
    justify-content: space-between;
    padding: 50px 10px;
  }
  .top-bar .logo {
    position: relative;
    top: 10px;
    height: 105px;
    margin-left: 10px;
  }

  /* Burger sichtbar */
  .menu-toggle {
    display: block;
    position: absolute;
    right: 30px;
    top: 35px;
  }

  /* Mobile Menü */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: #004080;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 80px;
    gap: 2em;
    transition: right 0.4s ease;
    z-index: 100;
  }
  .nav-links.active {
    right: 0;
  }

  /* Close Button nur auf Handy sichtbar */
  .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    display: block;
  }

  /* Footer Mobile */
  footer {
    width: 100vw;
    padding: 20px 0;
    margin: 0;
    border-radius: 0;
    text-align: center;
    position: relative; /* vorher evtl. nicht gesetzt */
  	z-index: 1; /* sicherstellen, dass es über anderen Elementen liegt */
  }
  footer p {
    margin: 0;
    font-size: 1rem;
  }
  footer a {
    display: inline-block;
    margin: 0 5px;
  }

  /* Mobile UL */
  main ul {
    padding-left: 20px;
  }

  /* Leistungen Grid einspaltig */
  .leistungen-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .leistung i {
    font-size: 2.8em;
  }
}

/* ========================================
   FORMULAR MELDUNGEN
======================================== */
#form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
