/* ========================================
   Mardi Gras Theme für New HairLeans
   Farben: Lila (#6a0dad), Grün (#3eb489), Gold (#ffd700)
======================================== */

/* === Grundeinstellungen === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
  
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #1b1b1b;
    color: #f0f0f0;
    line-height: 1.6;
}
  
a {
    color: #ffd700;
    text-decoration: none;
}
  
a:hover {
    color: #6a0dad;
}
  
.h2 {
  text-shadow:
    1px 1px 2px #000,
    0 0 6px rgba(255, 215, 0, 0.3),
    0 0 10px rgba(255, 215, 0, 0.2);
}
.text-center {
    text-align: center;
}

/* Haupt-Layout */
.main-nav {
  background-color: #1b1b1b;
  border-bottom: 1px solid #3eb489;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  flex-wrap: wrap;
}

.logo-img {
  height: 40px;
}

/* Menü + Login rechts */
.nav-right {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links li a {
  color: #f0f0f0;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #ffd700;
}


.user-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.username {
  color: #f0f0f0;
  font-weight: 500;
}
/* Logo-Kreis in der Navigation */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #000;
  padding: 5px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.login-btn, .logout-btn {
  background-color: #444;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s;
}

.login-btn:hover, .logout-btn:hover {
  background-color: #666;
}

/* Grundstruktur für Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #222;
  min-width: 200px;
  z-index: 1000;
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown:hover > .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  position: relative;
}

/* Submenu – Pfeil rechtsbündig */
.dropdown-submenu > a {
  position: relative;
  padding-right: 25px; /* Platz für Pfeil */
}

.dropdown-submenu > a::after {
  content: "▸";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
}

/* Submenü-Container */
.dropdown-submenu-menu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background-color: #333;
  min-width: 200px;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 1000;
  border: 1px solid #222;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

/* Hover-Logik für Submenu */
.dropdown-submenu:hover > .dropdown-submenu-menu {
  display: block;
}

/* Einträge innerhalb Dropdowns */
.dropdown-menu a,
.dropdown-submenu-menu a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

.dropdown-menu a:hover,
.dropdown-submenu-menu a:hover {
  background-color: #444;
}

/* === Responsive === */
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  margin-left: auto;
}

@media (max-width: 900px) {
  .nav-right {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    display: none;
    margin-top: 1rem;
    background-color: #1b1b1b;
  }

  .nav-links li {
    text-align: center;
    padding: 0.5rem 0;
  }

  .menu-toggle:checked + .hamburger + .nav-right .nav-links,
  .menu-toggle:checked + .hamburger + .nav-right .user-controls {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .user-controls {
    display: none;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    gap: 0.5rem;
  }

  .user-controls a,
  .user-controls span {
    text-align: center;
  }

  .dropdown:hover .dropdown-menu {
    position: static;
  }
}

@media (max-width: 900px) {
  /* Submenüs als vertikale Listen */
  .dropdown,
  .dropdown-submenu {
    width: 100%;
  }

  .dropdown-menu,
  .dropdown-submenu-menu {
    position: static;
    display: none;
    background-color: #222;
    border: none;
    box-shadow: none;
  }

  .dropdown.open > .dropdown-menu,
  .dropdown-submenu.open > .dropdown-submenu-menu {
    display: block;
  }

  .dropdown-menu a,
  .dropdown-submenu-menu a {
    padding: 12px 20px;
    text-align: left;
    width: 100%;
    font-size: 1rem;
  }

  /* Entferne Pfeil im Submenü */
  .dropdown-submenu > a::after {
    content: "";
  }

  /* Optional: Visualisierung auf Mobilgerät */
  .dropdown-toggle-btn {
    background: none;
    border: none;
    color: #ffd700;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    text-align: left;
    width: 100%;
  }

  .dropdown-toggle-btn:focus {
    outline: none;
    background-color: #333;
  }
}

.caret-mobile {
  display: none;
  margin-left: 5px;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .caret-mobile {
    display: inline;
  }
}

/* ========================================
     Footer
  ======================================== */

footer {
  background-color: #111;
  color: #f0e68c;
  padding: 30px 20px;
  font-size: 14px;
  border-top: 3px solid #800080;
  text-align: center;
  margin-top: 40px;
}

footer .container {
  max-width: 1000px;
  margin: 0 auto;
}

footer .footer-links {
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-weight: 500;
}

footer .footer-links a {
  color: #f0e68c;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .footer-links a:hover {
  color: #ffffff;
}

footer a {
  color: #f0e68c;
  text-decoration: none;
}

footer a:hover {
  color: #ffffff;
}

/* ========================================
   Reveal / Fade-In Effekt beim Scrollen
======================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Optional für zusätzliche Animationstypen */
.fade-in {
  transform: translateY(100px);
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.fade-in.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  transform: translateY(100px);
}

/* Slide-Richtungen */
.reveal.slide-up {
  transform: translateY(60px);
}

.reveal.slide-left {
  transform: translateX(-60px);
}

.reveal.slide-right {
  transform: translateX(60px);
}

.reveal.active.slide-up,
.reveal.active.slide-left,
.reveal.active.slide-right {
  transform: translate(0, 0);
  opacity: 1;
}

.badge {
  background-color: #ffd700;
  color: #111;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  margin-left: 6px;
  display: none;
}

@media (max-width: 768px) {
  .badge {
    font-size: 0.65rem;
    padding: 1px 5px;
  }
}

.fc-event.selected-slot {
  background-color: #f1c40f !important; /* goldener Akzent */
  border-color: #d4ac0d !important;
  color: #000 !important;
}