/* ======================================================
   CLEAN GLOBAL LAYOUT.CSS – MT Coaching
   ====================================================== */

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Trebuchet MS', Arial, sans-serif;
}

body {
  line-height: 1.6;
  color: #2a2a2a;
  background: white;
  font-size: 18px;
}

/* ---------- Blue top stripe ---------- */
.top-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #2938c0;
  z-index: 0;
  transition: opacity .35s ease;
}

body.scrolled .top-background {
  opacity: 0;
}

/* ======================================================
   NAVIGATION
   ====================================================== */

nav {
  position: sticky;
  top: 0;
  height: 70px;
  padding: 6px 40px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 2px 8px rgba(0,0,0,.25);

  z-index: 1000;
  overflow: visible;
}

/* ⭐ Desktop-Nav beim Scrollen dunkel */
body.scrolled nav {
  background: rgba(0,0,0,0.85) !important;
}

/* ⭐ NEU — Dropdownbereich weiter unten schwarz statt blau */
body.scrolled #nav-links {
  background: rgba(0,0,0,0.85) !important;
}

/* ---------- Logo ---------- */
.logo-container {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo-container img {
  height: 70px;
  filter: drop-shadow(0 0 6px rgba(0,0,0,.45));
}

/* ---------- Desktop nav links ---------- */
#nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}

#nav-links li { position: relative; }

#nav-links a {
  text-decoration: none;
  color: white;
  text-shadow: 0 0 5px rgba(0,0,0,.6);
  padding: 4px 2px;
  transition: .2s;
}

/* Desktop: genau wie früher */
#nav-links a:hover { color: #b7c9ff; }

#nav-links a.active {
  color: #b7c9ff;
  border-bottom: 2px solid #b7c9ff;
}

/* ======================================================
   DESKTOP DROPDOWN
   ====================================================== */

.dropdown { position: relative; }

.chevron {
  font-size: 0.75rem;
  opacity: .95;
  color: #dfe6ff;
  transition: .2s ease;
}

.dropdown.open .chevron {
  transform: rotate(180deg);
}

/* Desktop dropdown menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;

  display: none;
  flex-direction: column;

  background: rgba(41,56,192,.95);
  border-radius: 8px;
  padding: 6px 0;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);

  z-index: 2000;
}

/* Scroll = dark */
body.scrolled .dropdown-menu {
  background: rgba(0,0,0,.9);
}

/* show on hover only on desktop */
@media (min-width: 769px) {
  .dropdown:hover > .dropdown-menu {
    display: flex;
  }
}

.dropdown-menu li {
  list-style: none; /* removes bullets */
}

.dropdown-menu li a {
  padding: 10px 16px;
  color: white;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background: rgba(255,255,255,.1);
}

/* ======================================================
   BURGER MENU (mobile)
   ====================================================== */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 34px;
  height: 26px;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  height: 4px;
  background: white;
  border-radius: 2px;
  transition: .25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ======================================================
   MOBILE NAVIGATION
   ====================================================== */

@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  #nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(41,56,192,0.95);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }

  #nav-links.open {
    max-height: 650px;
  }

  /* MOBILE – Hauptlinks */
  #nav-links li {
    width: 100%;
    border-bottom: none;
  }

  #nav-links a {
    display: block;
    width: 100%;
    padding: 16px 0;
    text-align: center;
    font-size: 1.1rem;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  #nav-links a.active {
    color: #b7c9ff;
    font-weight: 600;
    border-bottom: none;
  }

  #nav-links a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 4px;
    width: 45%;
    height: 3px;
    border-radius: 2px;
    background: #b7c9ff;
  }

  /* MT Coaching row */
  .dropdown-row {
    position: relative;
    width: 100%;
    padding: 0;
  }

  .nav-main-link {
    display: block;
    width: 100%;
    padding: 16px 40px 16px 20px;
    text-align: center;
    font-size: 1.1rem;
  }

  .dropdown-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: #dfe6ff;
    cursor: pointer;
  }

  /* MOBILE – Untermenü */
  .dropdown-menu {
    position: static;
    width: 100%;
    background: rgba(0,0,0,0.75);
    padding: 0;
    display: none;
  }

  .dropdown.open > .dropdown-menu {
    display: flex;
    flex-direction: column;
  }

  .dropdown-menu li {
    width: 100%;
    list-style: none;
  }

  .dropdown-menu li a {
    padding: 14px 0;
    font-size: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .dropdown-menu li:last-child a {
    border-bottom: none;
  }
}

/* ======================================================
   FOOTER (unchanged)
   ====================================================== */

footer {
  background: #2938c0;
  color: white;
  padding: 16px 40px;
  margin-top: 60px;
  text-align: center;

  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .9rem;
}

footer a {
  color: #dfe6ff;
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }
