@import "shared/fonts.css";

:root {
  font-family: "Montserrat";
}

a {
  text-decoration: none;
  color: black;
}

button {
  background-color: rgb(16, 68, 120);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: "Montserrat";
  font-weight: 600;

  /* Zusätzliche optische Feinheiten */
  padding: 0.6em 1em; /* Innenabstand */
  font-size: 1rem; /* Schriftgröße */
  cursor: pointer; /* Mauszeiger als „Hand“ */
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: rgb(36, 88, 140);
}

html,
body {
  width: 100%;
  height: 100%;
  min-width: 250px;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0;
  top: 0;
}

.primary-header {
  z-index: 1000;
  background: white;
  position: fixed;
  width: 100%;
  margin: 0 auto;
  min-width: 250px;
  max-width: 1920px;
  top: 0;
  margin-top: 0;
  padding-top: 0;
  justify-content: space-between;
  align-items: center;
  height: 150px;
  font-size: 1em;
  max-height: min(25vw, 20vh);
  min-height: 150px;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.5);
  transition: top 0.3s ease;
  display: flex;
}

.primary-header.hidden {
  top: -150px; /* Versteckt den Header außerhalb des Bildschirms */
}

.primary-header.sticky {
  top: 0; /* Bringt den Header wieder ins Bild */
}

.primary-header > * {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.sociallinkcontainer {
  flex: 4;
  background-color: transparent;
}

.logocontainer {
  flex: 2;
  height: 100%;
  width: 100%;
  background-color: transparent;
}

.menucontainer {
  flex: 4;
  background-color: transparent;
}

#logo {
  margin: 10px;
  width: 90%;
  height: auto;
  max-width: 100%;
  max-height: calc(100% - 40px);
  transition: transform 0.3s ease;
}

#logo:hover {
  cursor: pointer;
  transform: scale(1.02);
  transform-origin: top;
}

.menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu a {
  text-decoration: none;
  color: black;
  padding: 15px;
  margin: 0;
  transition: 0.1s ease;
}

.nav {
  display: flex;
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1.2em;
}

.legal_information_footer {
  width: 100%;
  background-color: white;
  color: #24588c;
  justify-content: center;
  display: flex;
  font-size: 0.7em;
  height: 100px;
}

.legal_wrapper {
  max-width: 1500px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  text-align: center;
  align-items: center;
  padding: 20px;
}

.legal_information_footer > * {
  flex: 1;
  text-align: center;
  align-self: center;
  margin: 0 5px;
  box-sizing: border-box;
}

.copyrightlink:hover {
  text-decoration: underline;
}

#impressum,
#datenschutz,
#lizenzen,
#copyrightlink {
  color: #24588c;
}

.legal_information_link:hover {
  text-decoration: underline;
}

.sociallinkcontainer {
  width: 100%;
  display: flex;
  justify-content: center;
}

.sociallinkcontainer > ul {
  display: flex;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  justify-content: center;
}

.sociallinkcontainer > ul > li {
  list-style: none;
  display: flex;
  padding: 0;
  background-size: contain;
  background-color: transparent;
}

.sociallinkcontainer > ul > li > a {
  margin: 15px 15px 10px 15px;
  width: 20px;
  height: 20px;
  background-size: cover;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: 0.1s ease;
}

.sociallinkcontainer > ul > li > a:hover {
  width: 30px;
  height: 30px;
  margin: 10px 10px 5px 10px;
}

#mail {
  background-image: url("/icons/envelope-line-icon.svg");
}

#whatsapp {
  background-image: url("/icons/whatsapp-icon.svg");
}

#insta {
  background-image: url("/icons/black-instagram-icon.svg");
}

.menu {
  display: flex;
  padding: 10px;
  color: black;
  white-space: nowrap;
  font-size: 1.1em;
}

.menu li {
  background-color: transparent;
  border-radius: 5px;
}

.menu li a {
  display: inline-block;
  text-decoration: none;
}

.dropdown {
  display: none;
  position: relative;
}

.dropdown-btn {
  background-color: transparent;
  color: rgb(16, 68, 120);
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.4em;
}

.dropdown-btn:hover {
  color: rgb(0, 0, 0);
  background-color: transparent;
}

.menucontainer a {
  position: relative;
  text-decoration: none;
  color: black;
  padding: 15px;
  margin: 0;
  transition: 0.1s ease;
}

.menucontainer a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 0;
  height: 2px;
  background-color: rgb(16, 68, 120);
  transition: width 0.2s ease-in-out;
  transform: translateX(-50%);
}

.menu a:hover::after {
  width: 80%;
}

.dropdown-content {
  width: 150px;
  position: absolute;
  right: -100px;
  top: 100px;
  background: white;
  padding: 10px;
  padding-right: 100px;
  border-radius: 20px;
  list-style-type: none;
  transform: translateX(100%); /* Startet rechts außerhalb des Sichtfelds */
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 0; /* Unsichtbar, wenn ausgeblendet */
  pointer-events: none; /* Keine Interaktion möglich, wenn unsichtbar */
}

.dropdown-content.show {
  transform: translateX(0); /* Schiebt das Dropdown ins Sichtfeld */
  opacity: 1; /* Sichtbar */
  pointer-events: auto; /* Interaktion möglich */
}

.dropdown-content li {
  display: flex;
  align-items: center;
  border-bottom: 1px solid black;
}

.dropdown-content li:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.dropdown-content li a {
  text-decoration: none;
  height: 20px;
  margin-left: auto;
  display: inline-block;
}

.dropdown-content a:hover::after {
  width: 80%;
}

@media (max-width: 1077px) {
  .socialheader {
    display: none;
  }
  .logocontainer {
    padding-left: 20px;
    min-width: 170px;
  }
}

@media (max-width: 699px) {
  #menu {
    display: none;
    border: 1px solid black;
  }
  .dropdown-btn {
    font-size: 2em;
  }
  nav {
    margin-right: 20%;
  }
  .menucontainer {
    justify-content: end;
    min-width: 75px;
  }
}

body {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}
