/* === GRUNDLAYOUT === */
body {
  margin: 0;
  font-family: arial;
}

#header {
  position: sticky;
  top: 0;
  z-index: 99999; /* über allen Bildern/Ads */
  background: #f4f4f4;
  transition: all 0.3s ease;
}


.topbar {
  height: 140px;
  transition: height 0.3s ease, padding 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center; /* statt flex-end */
    position: relative; /* wichtig, damit z-index der Burger funktioniert */
  padding: 0 2em 10px 2em; /* etwas mehr Abstand unten */
  background: #f4f4f4;
}

.logo {
  display: inline-block;
  transition: transform 0.2s ease;
}
 

.logo:hover {
  transform: scale(1.1);
}

.logo img {
  width: 200px; /* oder deine gewünschte Desktop-Breite */
  max-width: 90%;
  margin: 0 0 5px 30px;
  transform: scale(1);
  transform-origin: left center;
  transition: transform 0.8s ease;
}

/* === HEADER RECHTS === */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  transition: transform 0.3s ease;
  width: auto;
}
.header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  transition: transform 0.3s ease;
  width: auto;
}
/* SUCHFELD */
.searchbox {
  position: relative;                 /* NEU: für absolut positionierte Lupe */
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 140ms linear, visibility 0s linear 0s;
  will-change: opacity, transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}


.searchbox input {
  font-size: 1.25em;
  padding: 0.6em 1.2em;
  padding-right: 2.8em;              /* NEU: Platz für die Lupe */
  width: 290px;
  border: 1px solid #ccc;
  border-radius: 20px;
  box-sizing: border-box;
}


/* === NAVIGATION === */
.mainnav ul {
  list-style: none;
  display: flex;
  gap: 1.5em;
  margin: 0;
  padding: 0;
  margin-right: 10px;
}

.mainnav a {
  font-size: 1.25em;
  font-weight: bold;
  text-decoration: none;
  color: #111;
  transition: transform 0.2s ease, color 0.2s ease;
  margin-top: -5px; /* 5px höher platziert */
}

.mainnav a:hover {
  transform: scale(1.1);
  color: #FE9900;
}

.mainnav a.active {
  color: #FE9900;
}

/* === SHRINK-ZUSTAND === */
#header.shrink .topbar {
  height: 100px; /* vorher 72px → jetzt 10px mehr */
  padding-bottom: 5px; /* optional, für optischen Abstand */
}

#header.shrink .logo img {
    transform: none;
  transform-origin: left center;
}

#header.shrink .header-right {
  transform: translateY(-5px);
}
#header.shrink .desktop-search {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  margin-top: 0;
  transition: opacity 0.3s ease, margin-top 0.3s ease;
}


/* Burger Menü */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  position: absolute;
  top: 1em;
  right: 1.5em;
    z-index: 9999;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: #333;
  transition: all 0.3s ease;
}

footer {
  background: #f0f0f0;
  text-align: center;
  padding: 2em;
  font-size: 0.9em;
  color: #555;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
}

  
.footer-links {
  display: flex;
  gap: 1.5em;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

.footer-links a {
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  color: #111;
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
  transform: scale(1.1);
  color: #fb6003;
}



footer .social-icons a {
  background-color: #FE9900;
  border-radius: 50%;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, filter 0.2s ease;
  margin-right: 10px; /* Abstand nach rechts */
}

footer .social-icons a:last-child {
  margin-right: 0; /* Kein Abstand beim letzten Icon */
}

footer .social-icons a {
  background-color: #FE9900;
  border-radius: 50%;
  padding: 10px;
  display: inline-block;
  transition: transform 0.2s ease, filter 0.2s ease;
}

footer .social-icons img {
  width: 30px;
  height: 30px;
  display: block;
  filter: brightness(1) invert(0);
}

footer .social-icons a:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}


/* MOBILE ANSICHT ########################################################### */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: center;
    padding: 0 1em;
    height: 140px;
    transition: height 0.3s ease, padding 0.3s ease;
    width: 100%;
    box-sizing: border-box;
  }

  .header-left {
    display: flex;
    justify-content: center;
    width: 100%;
  }

 #header.shrink .header-left {
  justify-content: flex-start;
  padding-left: 1em;
  padding-right: 0;
  width: 100%;
}
  .logo {
    display: inline-block;           /* wichtig: kein flex */
    max-width: fit-content;
    margin: 0 auto;
    padding-left: 0;
    z-index: 1;
    transition: all 0.3s ease;
  }

  .logo:hover {
    transform: none;
  }

  .logo img {
    width: 190px;
    margin: 14px auto 5px auto;
    display: block;
    opacity: 1;
    transform: scale(1);
    transform-origin: center center;
    transition:
      opacity 0.6s ease,
      transform 0.6s ease,
      margin 0.6s ease;
  }

  .logo.hide-on-scroll img {
    opacity: 0;
    transform: scale(0.8);
  }

 #header.shrink .topbar {
  height: 50px;
  padding: 0 1em;
}

#header.shrink .mainnav.open {
  padding-top: 60px; /* passt zum Shrink-Header */
  }

.mainnav.open .mobile-search2 { display:block !important; }
.mainnav.open .mobile-search2 .searchbox{
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
}




#header.shrink .logo {
  position: absolute;
  left: 1em;
  top: 4px;         /* 👈 statt 10px → höher */
  margin: 0;
  text-align: left;
  z-index: 10;
}


#header.shrink .logo img {
  width: 75px;
  height: auto;
  margin: 0;
  transform: none;
  transform-origin: left center;
}

  #header.shrink .searchbox {
    transform: none;
    opacity: 1;
    margin-top: 1em;
  }
 
  .header-right {
    align-items: center;
    width: 100%;
  }

  .mainnav {
    display: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: #f4f4f4;
    width: 100vw;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  .mainnav.open {
    display: block;
    max-height: 500px;
    padding: 1em 0 8px 0;
    padding-top: 10px;
    margin: 0;
    background: #f4f4f4;
    border-top: none;
  }

  .mainnav ul {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.2em;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .mainnav li {
    width: 100%;
    text-align: center;
  }

  .mainnav a {
    display: block;
    width: 100%;
    padding: 0.4em 0;
    font-size: 1.1em;
  }

  .mainnav a:hover {
    background: #eee;
  }

  .mobile-search2 {
    padding: 1em;
    display: none;
    margin-top: 10px;
    padding-top: 0;
    background: #f4f4f4;
    width: 100vw;
    box-sizing: border-box;
  }

  .mainnav.open .mobile-search2 {
    display: block;
  }

  #mobileSearch2 {
    transition: opacity 0.3s ease;
    opacity: 0;
  }

  .mainnav.open #mobileSearch2 {
    opacity: 1;
  }

  .mobile-search2 input[type="text"] {
    width: 90%;
    padding: 0.6em 1.2em;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 1.05em;
    margin: 0 auto;
    display: block;
    box-sizing: border-box;
  }

  .desktop-search {
    display: none;
  }

  .burger {
    height: 44px;
    display: flex;
    align-items: center;
  }

  .burger div {
    width: 28px;
    height: 4px;
  }

  footer {
    text-align: center;
    padding: 1em;
  }

  .footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
  }

  .footer-links a {
    display: block;
  }

  .social-icons {
    display: flex;
    gap: 1em;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
  }

  footer .social-icons a {
    background-color: #FE9900;
    border-radius: 50%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, filter 0.2s ease;
    margin-right: 10px;
  }

  footer .social-icons a:last-child {
    margin-right: 0;
  }

  .footer-links img {
    margin: 1em 0;
    height: 50px;
  }

  .copyright {
    margin-top: 1em;
    font-size: 0.9em;
  }
}
.searchbox .search-icon{
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);       /* exakt mittig */
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.searchbox .search-icon img{
  display: block;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: .7;
}
 