/* ─────────────────────────────────────────────────────────────────────────
   Gemeinsame Kopfzeile (identisch zur Hauptseite) für Unterbereiche,
   die NICHT das große css/style.css laden – z. B. den Kurs.
   In sich geschlossen: eigene Fonts, alle Regeln auf .header-sticky gescopet,
   damit nichts mit den Stylesheets der jeweiligen Seite kollidiert.
   ───────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/fonts/libre-baskerville-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../assets/fonts/libre-baskerville-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/inter-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/inter-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Kopfzeile selbst (fixiert; ersetzt fixed/top-0/w-full/z-50-Utilities) */
.header-sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background-color: rgba(10, 31, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Platz für die fixierte Kopfzeile schaffen */
body { padding-top: 4.5rem; }

/* Utility-Klassen aus css/style.css, gescopet auf die Kopfzeile */
.header-sticky .container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.header-sticky .mx-auto { margin-left: auto; margin-right: auto; }
.header-sticky .px-4 { padding-left: 1rem; padding-right: 1rem; }
.header-sticky .py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.header-sticky .p-2 { padding: 0.5rem; }
.header-sticky .mt-4 { margin-top: 1rem; }
.header-sticky .pb-4 { padding-bottom: 1rem; }
.header-sticky .flex { display: flex; }
.header-sticky .items-center { align-items: center; }
.header-sticky .justify-between { justify-content: space-between; }
.header-sticky .hidden { display: none; }
.header-sticky .w-6 { width: 1.5rem; }
.header-sticky .h-6 { height: 1.5rem; }
@media (min-width: 768px) {
  .header-sticky .md\:flex { display: flex; }
  .header-sticky .md\:hidden { display: none; }
}

/* Logo und Navigation (identisch zur Hauptseite) */
.header-sticky .site-logo {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #f7931a;
  text-decoration: none;
}

.header-sticky .nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 251, 235, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-sticky .nav-link:hover {
  color: #f7931a;
}

/* Dropdown im Hauptmenü */
.header-sticky .nav-dropdown {
  position: relative;
}

.header-sticky .nav-dropdown-toggle::after {
  content: '▾';
  margin-left: 0.35rem;
  font-size: 0.75em;
}

.header-sticky .nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1.25rem;
  margin: 0;
  list-style: none;
  background-color: rgba(10, 31, 10, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  min-width: 200px;
  flex-direction: column;
  gap: 0.5rem;
}

.header-sticky .nav-dropdown:hover .nav-dropdown-menu,
.header-sticky .nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
}

.header-sticky .nav-dropdown-menu .nav-link {
  display: block;
  padding: 0.25rem 0;
  white-space: nowrap;
}
