/* CSS für den Header */

/* Header-Bereich, Hintergrundfarbe, Layout und Ausrichtung */
header {
  min-height: 100px;
  background-color: #59769C;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  padding: 1rem;
  flex-wrap: wrap;
  /* Falls Elemente zu breit sind */
  text-align: center;
  overflow: visible;
}

/* Container für Logo und Button im Header */
.logo-container {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  justify-content: start;
  width: auto;
}

/* Header-Button-Stil */
.button-container button {
  padding: 15px 30px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  border-width: 3px;
}

/* Logo richtig anzeigen (Höhe, Abstand) */
.logo {
  height: 60px;
  width: auto;
  margin-right: 1rem;
}

/* Text im Header */
.header-text {
  display: block;
}

/* Responsive Anpassung */
@media (max-width: 1300px) {
  header {
    position: relative;
    z-index: 10;
    flex-direction: row;
    /* Logo und Buttons nebeneinander */
    min-height: auto;
    /* Passt die Höhe automatisch an */
    gap: 12px;
    align-items: center;
    /* Vertikal zentrieren */
    justify-content: space-between;
    /* Verteilt Logo und Profil-Button */
    padding: 1rem;
    /*overflow: hidden;*/
    text-align: center;
  }


  /* Logo und Button bleiben sichtbar */
  .logo-container,
  .button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  h1 {
    display: none;
    /* Blendet THF aus wenn Header zu klein */
  }

  .button-container button {
    width: auto;
    display: block;
    margin: 0 auto;
  }

  .logo {
    margin-right: 0;
  }
}