/* =========================================================
   Außergewöhnliches Tech-Menü mit Logo-Gradient & Server-LED
   ========================================================= */

:root {
  --ph-header-top: #062343;      /* Dunkles Mitternachtsblau aus dem Banner */
  --ph-header-bottom: #0a3460;   /* Weicher Übergang nach unten */
  --ph-logo-dark: #0b4a8c;       /* Tiefes Logo-Blau */
  --ph-logo-mid: #1479c9;        /* Mittleres Logo-Blau */
  --ph-logo-cyan: #38bdf8;       /* Leuchtendes Digital-Cyan aus dem Globus */
  --ph-server-led: #10b981;      /* Lebendiges Server-Online-Grün */
}

/* 1. Fließender Hintergrund mit animierter Cyber-Lichtlinie unten */
.container-header,
header.header {
  background-color: var(--ph-header-top) !important;
  background-image: linear-gradient(180deg, var(--ph-header-top) 0%, var(--ph-header-bottom) 100%) !important;
  border-bottom: 3px solid var(--ph-logo-cyan);
  box-shadow: 0 6px 20px rgba(6, 35, 67, 0.35);
  position: relative;
}

/* 2. Menü-Container */
.container-header .mod-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 11px !important;
  padding: 11px 0 13px 0 !important;
  margin: 0 !important;
  align-items: center;
}

.container-header .mod-menu > li {
  display: inline-flex;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
}

/* 3. Buttons mit edlem Logo-Farbverlauf & Licht-Sweep-Effekt */
.container-header .mod-menu > li > a,
.container-header .mod-menu > li > button {
  position: relative;
  overflow: hidden; /* Wichtig für den durchlaufenden Lichtstrahl */
  background: linear-gradient(135deg, rgba(11, 74, 140, 0.85) 0%, rgba(20, 121, 201, 0.55) 100%) !important;
  color: #ffffff !important;
  padding: 7px 17px !important;
  margin: 0 !important;
  font-size: 0.88rem;
  line-height: 1.3;
  border-radius: 22px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-decoration: none !important;
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* Animierter Daten-Lichtstrahl, der beim Hover über den Button wischt */
.container-header .mod-menu > li > a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.38),
    transparent
  );
  transform: skewX(-25deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.container-header .mod-menu > li > a:hover::before {
  left: 140%;
}

/* Dropdown-Buttons ("Fachbegriffe" & "Über PHNETZ") sauber verbinden */
.container-header .mod-menu > li.deeper > a,
.container-header .mod-menu > li.parent > a {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  padding-right: 10px !important;
  border-right: none !important;
}

.container-header .mod-menu > li.deeper > button,
.container-header .mod-menu > li.parent > button {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  padding: 7px 11px 7px 7px !important;
  margin-left: 0 !important;
  border-left: 1px solid rgba(56, 189, 248, 0.4) !important;
}

/* Hover-Effekt: Kräftiger Logo-Farbverlauf mit Cyan-Glow */
.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > button:hover,
.container-header .mod-menu > li > a:focus {
  background: linear-gradient(135deg, #1479c9 0%, #38bdf8 100%) !important;
  border-color: #ffffff;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(56, 189, 248, 0.55);
}

/* Aktiver Menüpunkt mit animierter Server-LED */
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%) !important;
  color: #062343 !important;
  border-color: var(--ph-logo-cyan);
  font-weight: 700;
  padding-left: 26px !important; /* Platz für die Server-Status-LED */
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.45);
}

/* Blinkende / pulsierende Server-Status-LED im aktiven Button */
.container-header .mod-menu > li.active > a::after,
.container-header .mod-menu > li.current > a::after {
  content: "" !important;
  display: inline-block !important;
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--ph-server-led);
  box-shadow: 0 0 6px var(--ph-server-led);
  animation: serverPulse 1.8s infinite ease-in-out;
}

@keyframes serverPulse {
  0%, 100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    box-shadow: 0 0 4px #10b981, 0 0 8px #10b981;
  }
  50% {
    opacity: 0.35;
    transform: translateY(-50%) scale(0.85);
    box-shadow: 0 0 1px #10b981;
  }
}

/* Aktiver Zustand auch für die Dropdown-Pfeile */
.container-header .mod-menu > li.active > button,
.container-header .mod-menu > li.current > button {
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%) !important;
  color: #062343 !important;
  border-color: var(--ph-logo-cyan);
  border-left: 1px solid rgba(6, 35, 67, 0.2) !important;
}

/* Standard-Unterstriche von Cassiopeia für nicht-aktive Links ausblenden */
.container-header .mod-menu > li:not(.active):not(.current) > a::after,
.container-header .mod-menu > li > button::after {
  display: none !important;
}

/* Untermenüs (Dropdowns) im passenden Glas-Tech-Look */
.container-header .mod-menu .mod-menu__sub {
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 10px 25px rgba(6, 35, 67, 0.3);
  padding: 6px;
  margin-top: 7px;
  background-color: #ffffff;
}

.container-header .mod-menu .mod-menu__sub a {
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.86rem;
  color: #062343 !important;
  transition: all 0.2s ease;
}

.container-header .mod-menu .mod-menu__sub a:hover {
  background: linear-gradient(135deg, #0b4a8c 0%, #1479c9 100%);
  color: #ffffff !important;
}