/* ---------------------- */
/*      Grund-Settings    */
/* ---------------------- */

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --primary-color: #5C9E71;
  --primary-color-dark: #4A7C59;
  --text-dark: #444444;
  --text-light: #333333;
  --white: #EAE7DC;
  --max-width: 1200px;
  --header-font: "Bebas Neue", sans-serif;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
}

/* ---------------------- */
/*       Navigation       */
/* ---------------------- */

nav {
  position: fixed;
  isolation: isolate;
  width: 100%;
  z-index: 999; /* damit das Menü über allem liegt */
  top: 0;
  left: 0;
}

.nav__header {
  padding: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--primary-color);
}

.nav__header img {
  width: 100px;
  height: auto;
}

.nav__logo a {
  font-size: 1.75rem;
  font-weight: 400;
  font-family: var(--header-font);
  color: var(--white);
}

.nav__logo a span {
  color: var(--white);
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

/* Dropdown-Menü standardmäßig ausgeblendet */
.nav__links {
  position: absolute;
  top: 64px;
  left: 0;
  width: 100%;
  padding: 2rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  background-color: var(--primary-color);
  transition: transform 0.5s;
  z-index: -1;
  transform: translateY(-100%);
}

.nav__links.open {
  transform: translateY(0);
  z-index: 999;
}

.nav__links a {
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
}

.nav__links a:hover {
  color: var(--text-dark);
}

/* ---------------------- */
/*      Header-Bereich    */
/* ---------------------- */

/* Grundlayout: mobile-first (einspaltig) */
.header__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8rem 1rem 2rem;
  display: grid;
  gap: 2rem;
  text-align: center;
}

.header__image img {
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.header__content h1 {
  margin-bottom: 1rem;
  font-size: 3rem;
  font-family: var(--header-font);
  line-height: 1.2;
}

.header__content h1 span {
  color: var(--primary-color);
}

.header__content p {
  margin-bottom: 2rem;
  line-height: 1.75rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Button-Stil */
.header__content form {
  display: flex;
  justify-content: center;
}

.header__content button {
  background-color: var(--primary-color-dark);
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 1rem 2rem;
  border: none;
  border-radius: 30px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.header__content button:hover {
  background-color: var(--primary-color);
}

/* ---------------------- */
/*   Über dich-Bereich    */
/* ---------------------- */

.ueberdich {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1rem;
  display: grid;
  gap: 2rem;
  text-align: center;
}

.ueberdich h1 {
  font-size: 2.5rem;
  font-family: var(--header-font);
  margin-bottom: 2rem;
}

.person-container {
  display: flex;
  flex-direction: column; /* mobile-first: übereinander */
  align-items: center;
  gap: 1.5rem;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 200px;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.5rem;
}

.profile h2 {
  margin: 0.5rem 0 0;
}

.speech-bubble {
  position: relative;
  background: var(--primary-color);
  color: #333;
  border-radius: 15px;
  padding: 1rem 1.5rem;
  max-width: 600px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  overflow: visible;
}

.speech-bubble p {
  margin: 0;
  line-height: 1.5rem;
  text-align: left;
}

/* Pfeil links */
.speech-bubble::after {
  content: "";
  position: absolute;
  /* Von links außerhalb der Sprechblase */
  left: -15px; 
  /* In der Mitte der Sprechblase (anpassbar) */
  top: 50%; 
  transform: translateY(-50%);
  
  width: 0;
  height: 0;
  border-style: solid;
  /* Reihenfolge: oben, rechts, unten, links */
  border-width: 15px 15px 15px 0;
  /* Pfeil zeigt nach links (Farbe an der rechten Seite) */
  border-color: transparent var(--primary-color) transparent transparent;
}

/* CTA-Container */
.cta-container {
  text-align: center;
  margin-top: 2rem;
}

.cta-container form {
  display: flex;
  justify-content: center;
}

.cta-container button {
  background-color: var(--primary-color-dark);
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 1rem 2rem;
  border: none;
  border-radius: 30px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-container button:hover {
  background-color: var(--primary-color);
}

/* ---------------------- */
/*    Über uns-Bereich    */
/* ---------------------- */

.ueberuns {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1rem;
  display: block; /* mobile-first: einspaltig */
}

.ueberuns-img {
  text-align: center;
  margin-bottom: 2rem;
}

.ueberuns-img h1 {
  font-family: var(--header-font);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.ueberuns-img img {
  max-width: 150px;
  height: auto;
  object-fit: contain;
}

.ueberuns-text-container {
  width: 100%;
}

.ueberuns-text {
  padding: 20px;
  text-align: justify;
}

/* ---------------------- */
/*        Footer          */
/* ---------------------- */

footer {
  background-color: #f5f5f5;
  padding: 1rem;
}

footer .bar {
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
}

/* ---------------------- */
/*    Ab breiteren Screens*/
/* ---------------------- */

/* Tablet-Größe aufwärts */
@media screen and (min-width: 768px) {
  /* Navigation: Desktop-Ansicht */
  nav {
    position: static;
  }
  .nav__header {
    background-color: transparent;
  }
  .nav__menu__btn {
    display: none;
  }
  .nav__links {
    position: static;
    width: auto;
    padding: 0;
    flex-direction: row;
    background-color: transparent;
    transform: none;
    z-index: 0;
  }
  .nav__links a {
    color: var(--text-dark);
    border-bottom: 4px solid transparent;
  }
  .nav__links a:hover {
    border-color: var(--primary-color);
  }

  /* Header: 2 Spalten */
  .header__container {
    padding: 4rem 1rem 2rem;
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .header__image img {
    margin: 0 auto 0 0;
  }

  /* Person-Container: 2 Spalten */
  .person-container {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }

  /* Über uns: Bild & Text nebeneinander */
  .ueberuns {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
  }
  .ueberuns-img {
    flex: 1;
    position: sticky; /* Falls du das Sticky-Verhalten willst */
    top: 2rem;
    text-align: center;
  }
  .ueberuns-text-container {
    flex: 2;
  }
}

/* Ab Desktop-Größe (ca. 1024px) */
@media screen and (min-width: 1024px) {
  .header__content h1 {
    font-size: 4rem;
  }
}

@media screen and (max-width: 767px) {
  .speech-bubble::after {
    content: "";
    position: absolute;
    /* Pfeil an der oberen Kante der Sprechblase zentrieren */
    top: -15px;               
    left: 50%;
    transform: translateX(-50%);
    
    /* Dreieck erstellen */
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 15px 15px 15px; 
    /*  ^^^^ =  oben, rechts, unten, links (Dreieck nach oben) */

    border-color: transparent transparent var(--primary-color) transparent;
  }
}
