:root {
  --c1: #1b7f95;
  --c2: #f7f7f7;
  --br1: 6px;
}

body {
    background-color: var(--c1);
    margin: 0;
    box-sizing: border-box;
    line-height: 1.4rem;
    display: flex;
    justify-content: center;
    /*height: calc(100vh - 30px);*/
    font-family: sans-serif;
    font-size: 1.2rem;
  }
  
  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 500px;
    /*height: 100vh;*/
    justify-content: center;
    box-sizing: border-box;
    margin: 20px 0;
  }
  
  .image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--c2);
    animation: bob 2s ease-in-out infinite;
    box-shadow: 0px 0px 18px -1px rgba(0,0,0,0.5);
}

.profile-header {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    z-index: 100;
}
header::after {
  content: "";
  position: absolute;
  bottom: 25px;
  left: -10%;
  right: -10%;
  height: 100px;
  background: #1b7f95;
  border-radius: 50%;
  z-index: 200;
}

.header-background {
    width: 100%;
    height: 180px;
    background: url('img/header.webp') center/cover no-repeat;
    border-radius: 15px;
}

.profile-pic-wrapper {
  z-index: 300;
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translateY(0%);
    border-radius: 50%;
    padding: 6px;
    border: 10px solid #1b7f95;
    background-color: #1b7f95;
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

@keyframes bob {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.image:hover {
  animation: rotate 3s infinite linear;
}

@keyframes rotate {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

  .text {
    text-align: center;
    margin-top: 1rem;
    color: var(--c2);
    width: 70%;
    margin-bottom: 20px;
    top: -30px;
    position: relative;
  }
  
  .button {
    width: 100%;
    padding: 10px 0;
    background-color: var(--c2);
    color: var(--c1);
    border: none;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--br1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    text-transform: uppercase;
  }
  .btn50 {
    width: 50%!important;
    margin-bottom: inherit;
  }
  .button:hover {
    box-shadow: 0px 0px 18px -1px rgba(0,0,0,0.5);
  }
  object.icon {
    height: 20px;
    margin-right: 10px;
  }
  
  .impressum-link {
    color: var(--c2);
    text-decoration: none;
    margin-top: 1rem;
  }
  
  .impressum-link:hover {
    text-decoration: underline;
  }

 fieldset {
  width: calc(100% - 32px);
  display: flex;
  flex-wrap: wrap; /* Erlaubt den Umbruch der Buttons */
  gap: 10px;
  color: var(--c2);
  border: 3px solid var(--c2);
  border-radius: var(--br1);
  padding: 10px; /* Ein wenig Padding für bessere Abstände */
  justify-content: center; /* Zentriert die Buttons, falls einer alleine steht */
  margin: 22px 0;
}

#partner div {
    display: flex;
    flex-wrap: wrap; /* Erlaubt Umbruch */
    align-items: flex-end; /* Zentriert Logos vertikal */
    justify-content: center; /* Zentriert Logos horizontal */
    background: white;
    border-radius: 5px;
    padding: 10px;
    box-sizing: border-box;
    width: 100%; /* Füllt das Fieldset korrekt aus */
    gap: 10px;
}
/* Die einzelnen Link-Container der Logos */
#partner div a {
    display: flex;
    justify-content: center;
    /* Desktop-Standard: Alle nebeneinander (ca. 18% bei 5 Logos) */
    flex: 1 1 15%; 
    max-width: 100%;
}

#partner div img {
    width: 100%; /* Nutzt den Platz im A-Tag */
    max-width: 70px; /* Begrenzt die Größe auf Desktop */
    height: auto;
}

#partner div img:hover {
    filter: none;
}

/* Mobil-Ansicht: 3 Logos pro Zeile */
@media (max-width: 550px) {
    #partner div a {
        flex: 1 1 calc(33.33% - 10px); /* Exakt 3 pro Zeile minus Gap */
    }
    
    #partner div img {
        max-width: 75px; /* Etwas kleiner für Mobile */
    }
}

div#hinweis {
  color: white;
  font-size: 14px;
}

fieldset .button {
  width: calc(50% - 5px); /* Setzt die Breite auf fast 50%, minus die Hälfte des Gaps */
  margin-bottom: 10px; /* Abstand nach unten für die nächste Reihe */
}
  fieldset legend {
    font-weight: 600;
    text-align: center;
    padding: 0 12px;
  }

  .darkpatterns {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }

  .lang {
    position: fixed;
    top: 14px;
    display: flex;
    gap: 20px;
    flex-direction: row;
    z-index: 900;
    background-color: #1b7f95;
    padding: 10px 20px;
    border-radius: 10px;
    height: 20px;
    align-items: center;
    padding-top: 15px;
    transition: opacity 0.3s ease; /* Sanfte Animation */
    border: 3px solid white;
    box-shadow: 0px 0px 18px -1px rgba(0,0,0,0.5);
  }

  .lang a img {
    height: 40px;
  }
  .lang.hidden {
      opacity: 0;
      pointer-events: none; /* Verhindert Klicks auf unsichtbares Element */
  }

  @media (max-width: 550px) {
    .container {
        width: 100vw;
        padding: 20px 40px;
        justify-content: inherit;
    }
    .text {
      width: 80%;
      font-size: 1rem;
      font-weight: 400;
    }
  }
  @media (max-width: 420px) {
    .container {
        padding: 20px 40px;
    }
  }

  @media (max-width: 370px) {
    .icon {
      display: none;
    }
  }

  @media (max-height: 620px) {
    .container {
      height: inherit;
      padding: 40px;
      box-sizing: border-box;
    }
  }