/*CSS*/
body { 
  margin: 0; 
  font-family: "Segoe UI", sans-serif; 
  scroll-behavior: smooth;
}
html {
  scroll-padding-top: 80px;
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

section {
   padding: 80px 20px;
   min-height: 50vh;
}

h4 {
  font-size: 150%;
  line-height: 1.5;
  margin-left: 15px;
  font-weight: normal;
}

main {
  padding-top: 60px;
}

h1 {
  color: rgb(0, 0, 0);
  text-align: left;
  font-family: Arial;
  font-size: 500%;
  margin-left: 15px;
}

html, body {
  overflow-x: hidden;
}

.spacing {
  height: 100px;
}

h2 {
  color: rgb(0, 0, 0);
  text-align: left;
  font-family: Arial;
  font-size: 150%;
}

p {
  text-align: center;
  font-size: 18px;
}

img {
  width: 100%;
  height: 50%;
  display: block;
  margin-left: 0;
  margin-right: 0;
}

.dicke-linie {
  border:none;
  height:65px;
  background-color:#222222;
  width: 100%;
  margin: 0px 0;
}

/* -------------------------
  NAVBAR
-------------------------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #000;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
}

.logo img {
  height: 60px;
  cursor: pointer;
  margin-left: 10px;
}

/* -------------------------
  NAV LINKS
-------------------------- */

.navbar {
  padding-left: 5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
  margin-right: 40px; 
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.nav-links a:hover {
  background: #333;
  border-radius: 6px;
}

.navbar.scrolled {
  background-color: rgba(0,0,0,0.8);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* -------------------------
  DROPDOWN
-------------------------- */

.dropdown {
  position: relative;
}

.dropbtn {
  padding: 10px;
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  background: #222222;
  list-style: none;
  padding: 10px 10px;
  min-width: 220px;
  max-width: 220px;
  border-radius: 4px;
  z-index: 9999;
  width: 220px;
  white-space: normal !important;
}


.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: block !important;
}

.dropdown-menu li a {
  color: white;
  padding: 10px 20px;
  display: block;
  white-space: normal !important;
  line-height: 1.3;
  word-break: break-word;
}

.dropdown-menu li a:hover {
  background: #333333;
}

/* -------------------------
  MOBILE NAVIGATION BEHAVIOR
-------------------------- */
@media (max-width: 768px) { /* Hamburger-Button sichtbar */ 
  .menu-toggle {
     display: block; 
     font-size: 30px; 
     cursor: pointer; 
     margin-right: 10px;
    } /* Nav-Links mobil: vertikal, über gesamte Breite, zentriert */ 
    .nav-links { 
      display: none; /* standardmäßig versteckt */ 
      flex-direction: column; 
      position: absolute; 
      top: 60px; 
      /* direkt unter Navbar */ 
      left: 0; 
      width: 100%; /* volle Breite */ 
      background: #000; 
      list-style: none; 
      padding: 0;
      margin: 0; 
      text-align: center; 
      z-index: 999; 
    } /* sichtbar bei Hamburger-Click */ 
    .nav-links.active { 
      display: flex; 
      justify-content: center; 
      align-items: center; 
    } 
    .nav-links li { 
      width: 100%; 
      padding: 10px 0; 
      position: relative; /* für Dropdown */ 
    } 
    .nav-links a { 
      display: block; 
      width: 100%; 
      text-align: center; 
      color: white; 
      text-decoration: none; 
      font-weight: bold; 
      padding: 10px 0; 
    } 
    .nav-links a:hover { 
      background: #333; 
    }

  /* Dropdown im Flow: kein fixed/absolute, bleibt im Dokumentfluss */
  .dropdown-menu {
    display: none;             /* standardmäßig versteckt */
    flex-direction: column;
    width: 100%;               /* volle Breite */
    background: #222;
    padding: 0;
    margin: 0;
    text-align: center;
    box-sizing: border-box;    /* wichtig für Scrollbar */
  }

  .dropdown.open .dropdown-menu {
    display: flex;             /* sichtbar bei Click */
  }

  .dropdown-menu li a {
    width: 100%;
    padding: 10px 16px;        /* Abstand von rechts, Scrollbar sichtbar */
    color: white;
    text-align: center;
    box-sizing: border-box;    /* verhindert Text unter Scrollbar */
  }

  .dropdown-menu li a:hover {
    background: #333;
  }
}


/* Desktop: Hamburger-Button unsichtbar */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}

/* -------------------------
  BUTTON
-------------------------- */
/* --- Kontakt Button Hover & Click --- */ 
#kontaktBtn { 
  font-size: 22px;
  cursor: pointer;
  transition: text-decoration 0.2s;
} 

#kontaktBtn:hover { 
  text-decoration: underline;
}

#emojiRotateButton {
  position: fixed;
  bottom: 20px; right: 20px; 
  font-size: 55px; background: none; 
  border: none; 
  cursor: pointer; 
  transition: transform 0.2s ease; 
  z-index: 2000;
} 

#emojiRotateButton:hover { 
  transform: scale(1.3); 
} 

.hidden { 
  display: none; 
}
.rotating {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


#kontaktWrapper { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 12px; 
  margin-top: 40px;
} 

.footerText { 
  font-size: 22px; 
  color: black; 
} 

.divider { 
  font-size: 22px; 
  color: black; 
  user-select: none; 
} 

#kontaktWrapper { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 14px; 
  margin-top: 40px; 
} 

.footerLink { 
  font-size: 22px; 
  cursor: pointer; 
  transition: color 0.2s, text-decoration 0.2s; 
} 

.footerLink:hover {
  text-decoration: underline; 
  color: #333; 
} 

.divider { 
  font-size: 22px; 
  user-select: none; 
}


/* -------------------------
AUDIO PLAYER
-------------------------- */

.audioBox {
  margin-top: 30px;
  text-align: center;
}

.audioImage {
  width: 200px;
  margin-bottom: 20px;
}

.player {
  width: 80%;
  max-width: 600px;
  margin: auto;
}

.controls button {
  font-size: 18px;
  padding: 10px 20px;
  margin: 5px;
}

.playPauseBtn {
  font-size: 22px;
}

.progress {
  width: 100%;
  margin-top: 20px;
}

.time {
  margin-top: 10px;
  font-size: 18px;
}

/* -------------------------
Logos
-------------------------- */

.idee-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.idee-header h1 {
  font-size: 5rem;
  margin: 0;
}

.Lampe img {
  width: 150px;
  height: auto;
  margin-left: 0px;
}

.naturparkHeader {
  display: flex;
  align-items: center;
  gap: 30px;
}

#baumLogo {
  width: 160px;
  height: 160px;
}
#kleidungWrapper {
position: relative;
width: 150px;
height: 150px;
}

/* p5 Canvas */
#kleidungLogo canvas {
position: absolute;
top: 0;
left: 0;
}

/* Adidas-Logo relativ zum Shirt */
#adidasLogo {
position: absolute;

/* AUS SHIRT-FORM ABGELEITET */
top: 42px;        /* Schulterhöhe */
left: 92px;       /* rechte Schulter, nicht Rand */

width: 20px;
height: auto;

pointer-events: none;
}


/* -------------------------
Unsichtbarer / klickbarer Text
-------------------------- */
h4 span#moreText,
h4 span.clickable { 
font-weight: normal;
font-size: 1em;
color: inherit;
cursor: default;  
text-decoration: none; 
}
