* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  line-height: 1.6;
  color: #222;
  background-color: #f9f9f9;
}

header {
  position: relative;
  height: 58vh;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../assets/Logo3_grüne\ Figur_2.png') center/cover no-repeat; /*Bild_alpha_skal_cut.png */ 
  z-index: 0;
}

/* banner */
.banner {
  position: absolute;
  bottom: 2rem;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 1.5rem 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
  z-index: 2;
}

.banner h1 {
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
  color: #005f73;
}

.banner p {
  font-size: 1.2rem;
  color: #333;
}

/* nav */
nav {
  background-color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  /*font-size: large;*/
  /*display: flex;
  justify-content: flex-end;
  align-items: center;*/
}

.nav-container {
  display: flex;
  justify-content: space-between;
  /*flex-direction: column;*/
  align-items: center;
}

.nav-logo {
  height: 40px;
}

.nav-logo-link {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  /*margin-left: auto;*/
}

.nav-desktop {
  margin-left: auto;
}

nav a {
  text-decoration: none;
  color: #005f73;
  font-weight: 500;
}

nav a.active {
  color:  #005f73;
  font-weight: bold;
  /*border-bottom: 2px solid #ba8871;*/
}

nav a:hover {
  color: #0a9396;
}

nav a.active:hover {
  color: #0a9396;
}

.nav-links.mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.nav-active {
  display: flex !important;
}

.nav-logo {
  height: 40px;
  margin-bottom: 0.5rem;
}

/* burger */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: auto;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: #005f73;
  margin: 4px 0;
  transition: all 0.3s;
}

/* section */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0.2rem auto;
  /*font-size: large;*/
}

section#about {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: -1rem auto;
}

/* zusätzlich: Abstand zwischen h1 und Container */
section > h1 {
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* button */
.button {
  background: #005f73;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
}

.button:hover {
  background: #0a9396;
}

/* profile */
.profile-container {
  display: flex;
  flex-direction: row;
  gap: 2rem; /* Für Desktop */
  flex-wrap: wrap;
  align-items: flex-start;
}

.profile-image {
  flex: 0 0 auto;
}

.profile-image img {
  width: 100%;
  border-radius: 8px;
  max-width: 400px; /* Standardgröße auf Desktop */
}
.profile-image2 img {
  width: 100%;
  border-radius: 8px;
  max-width: 500px; /* Standardgröße auf Desktop */
}

.profile-text {
  flex: 1;
}

.profile-list {
  margin: 0 0 2rem 0; /* top, right, bottom, left */
  padding-left: 2rem; /* oder 2rem für mehr Einzug */
  list-style: disc;
}

.profile-list li {
  margin-bottom: 0.6rem;
  padding-left: 0.2rem;
}

.profile-columns {
  display: flex;
  gap: 2rem;
  flex-direction: column; /* Standard: mobil = untereinander */
}

.profile-section {
  flex: 1;
}

/* Auf großen Bildschirmen: nebeneinander */
@media (min-width: 768px) {
  .profile-columns {
    flex-direction: row;
  }
}


/* footer */
footer {
  background-color: white;
  padding: 1rem 2rem;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

footer a {
  text-decoration: none;
  color: #005f73;
  margin-left: 1rem;
}

footer p {
  margin: 0;
  color: #555;
}

/* form */
input, textarea {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

form label {
  font-weight: 600;
  display: block;
  margin-top: 1rem;
}

form .button {
  background: #005f73;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.3s;
}

form .button:hover {
  background: #0a9396;
}

.form-footer {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-wrapper input[type="checkbox"] {
  margin: 0.25rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.checkbox-wrapper label {
  margin: 0;
  line-height: 1.4;
  cursor: pointer;
}


.form-footer .button {
  align-self: flex-start; /* alternativ: center, wenn zentriert gewünscht */
}

.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.form-left,
.form-right {
  flex: 1;
  min-width: 280px;
  max-width: 50%;
}

.form-right {
  display: flex;
  flex-direction: column;
}

textarea#message {
  resize: vertical;
  min-height: 250px; /* falls nötig */
  height: 100%;
}


textarea {
  width: 100%;
  resize: vertical;
}

/* slideshow */
.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 350px;
  height: 230px;             /* feste sichtbare Höhe */
  overflow: hidden;
}

.image-crop {
  position: relative;
  width: 100%;
  height: 300px;             /* tatsächliche Bildhöhe */
  top: -20px;                /* verschiebt Bild nach oben = „abschneiden“ */
  left: -20px;
}

.slideshow-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slideshow-image.active {
  opacity: 1;
  z-index: 1;
}


/* media */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .burger {
    display: flex;
  }

  .burger div {
    width: 25px;
    height: 3px;
    background-color: #005f73;
    margin: 4px 0;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    /*padding-right: 2rem;*/
    margin-top: 0.5rem;
    margin: auto;
  }

  .nav-links.nav-active {
    display: flex;
  }
}
@media (min-width: 769px) {
  .nav-mobile {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .profile-container {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 1rem; /* Weniger Abstand auf kleineren Bildschirmen */
  }
  .profile-container h3 {
    text-align: left;
    width: 100%;         /* NEU: sicherstellen, dass er nicht zentriert dargestellt wird */
    margin: 0.5rem 0 0.5rem;
  }

  .profile-image {
    margin-bottom: 0;
  }

  .profile-image img {
    max-width: 100%; /* besser responsive */
  }

  .profile-text {
    margin-top: 0;
    width: 100%;
    align-items: left;
  }
  .slideshow-container {
    margin: 0 auto; /* zentriert das Bild */
  }
  .button {
    margin-top: 1rem;
  }

  section#contact {
    padding-top: 0rem;
  }

  section#contact form {
    margin-top: 0; /* Sicherheitshalber */
  }
  section p:last-of-type {
    margin-bottom: 0.5rem;
  }

  .form-left,
  .form-right {
    max-width: 100%;
  }
}
