/* ============================================================
   ARIVA11 HEADER — header-newBall.css
   NUR -newBall Klassen. Keine alten Klassen.
   Einbinden in <head>:
   <link rel="stylesheet" href="header-newBall.css">
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Rajdhani:wght@400;600&display=swap');

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --nb-royal:       #4169e1;
  --nb-royal-dark:  #2a4bbf;
  --nb-royal-light: #6a8ff5;
  --nb-black:       #0a0a0f;
  --nb-white:       #f0f4ff;
  --nb-accent:      #00d4ff;
  --nb-gold:        #ffd700;
  --nb-bar-h:       52px;
  --nb-main-h:      68px;
  --nb-font-head:   'Orbitron', sans-serif;
  --nb-font-body:   "Lato", "Helvetica Neue", Arial, sans-serif;
  --nb-font-size:   15px;
  --nb-body-color:  #000000;
  --nb-body-bg:     #ffffff;
  --nb-body-pad:    70px;
  --nb-ease:        0.25s cubic-bezier(0.4, 0, 0.2, 1);
}


body {
  font-family: var(--nb-font-body);
  padding-top: var(--nb-body-pad);
  font-size: var(--nb-font-size);
  color: var(--nb-body-color);
  background-color: var(--nb-body-bg);
  position: relative;
}


/* ══════════════════════════════════════════════════════════
   1. BLACK-BAR
   ══════════════════════════════════════════════════════════ */

.black-bar-newBall {
  background: var(--nb-black);
  border-bottom: 1px solid rgba(65, 105, 225, .25);
  height: var(--nb-bar-h);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, .6);
  height: auto;
}

/* Mobile: Hamburger links, Icons rechts */
@media (max-width: 767px) {
  .black-bar-newBall {
    justify-content: space-between;
  }
}

/* ── Icon-Container ─────────────────────────────────────── */
.icon-container-newBall {
  display: flex;
  align-items: center;
  gap: 4px;
  
}

@media (min-width: 992px) {

  .icon-container-newBall {
    display: flex;
    align-items: center;
    gap: 4px;
    transform: translate(-25%, 0%);
  }

}

@media (min-width: 992px) {

  a.dropdown.dropdown-toggle.user-menu {
            transform: translate(53%, 8%);
  }

}


.navbar-wrapper-newBall ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Jedes Icon (li > a oder li > div) */
.navbar-wrapper-newBall ul li > a,
.navbar-wrapper-newBall ul li > div.pointer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--nb-white);
  cursor: pointer;
  transition: background var(--nb-ease), transform var(--nb-ease), color var(--nb-ease);
  position: relative;
  text-decoration: none;
}

.navbar-wrapper-newBall ul li > a:hover,
.navbar-wrapper-newBall ul li > div.pointer:hover {
  background: rgba(65, 105, 225, .3);
  transform: scale(1.12);
  color: var(--nb-accent);
}

/* Badge (Zähler auf Icons) */
.navbar-wrapper-newBall .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #e53935;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--nb-black);
}

/* User-Avatar im black-bar */
.navbar-wrapper-newBall .user-menu img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .3);
  object-fit: cover;
}

/* ── Hamburger-Button (nur Mobile) ──────────────────────── */
.hamburger-newBall {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger-newBall span {
  display: block;
  height: 2px;
  background: var(--nb-white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

@media (max-width: 767px) {
  .hamburger-newBall {
    display: flex;
  }
}


/* ══════════════════════════════════════════════════════════
   2. MAIN-HEADER (Royal-Blue, Logo links, Navbar center)
   ══════════════════════════════════════════════════════════ */

.main-header-newBall {
  background: linear-gradient(45deg, #0000ff, #02025a);
  box-shadow: 0 4px 24px rgba(65, 105, 225, .45);
  position: sticky;
  top: 0;
  z-index: 999;
}

/* ── Logo ────────────────────────────────────────────────── */
.logo-wrapper-newBall {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  flex-shrink: 0;
}

.animated-gradient-circle-newBall {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: conic-gradient(var(--nb-accent), var(--nb-gold), var(--nb-royal-light), var(--nb-accent));
  animation: nb-spin 4s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  flex-shrink: 0;
}

@keyframes nb-spin {
  to { transform: rotate(360deg); }
}

.overlay-image-newBall {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.logo-container-stary-newBall {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text-newBall {
  font-family: var(--nb-font-head);
  font-size: 20px;
  font-weight: 900;
  color: var(--nb-white);
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(0, 212, 255, .5);
}

/* ── Navbar-Menu (Desktop, center) ─────────────────────── */
.navbar-menu-newBall {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 2px;
  gap: 0px;
  flex-wrap: nowrap;
}

.navbar-menu-newBall li > a {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 24px;
  font-family: var(--nb-font-body);
  font-size: 16px;
  font-weight: 600;
  color: rgba(240, 244, 255, .85);
  text-decoration: none;
  transition: background var(--nb-ease), color var(--nb-ease), transform var(--nb-ease);
  white-space: nowrap;
  letter-spacing: .4px;
}

.navbar-menu-newBall li > a:hover {
  background: rgba(255, 255, 255, .18);
  color: var(--nb-white);
  transform: translateY(-1px);
}

.navbar-menu-newBall li.active > a {
  background: rgba(0, 212, 255, .2);
  border: 1px solid rgba(0, 212, 255, .4);
  color: var(--nb-accent);
}

/* Mobile: Navbar verstecken */
@media (max-width: 767px) {
  .navbar-menu-newBall {
    display: none;
  }
}


/* ══════════════════════════════════════════════════════════
   3. MOBILE MENU MODAL — Overlay
   ══════════════════════════════════════════════════════════ */

.menu-modal-overlay-newBall {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.menu-modal-overlay-newBall.open-newBall {
  opacity: 1;
  pointer-events: all;
}

/* ── Modal Box ──────────────────────────────────────────── */
.menu-modal-newBall {
  width: min(92vw, 520px);
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #0d1a3a 0%, #0a0a0f 100%);
  border: 1px solid rgba(65, 105, 225, .35);
  border-radius: 24px;
  padding: 20px 20px 28px;
  box-shadow: 0 0 60px rgba(65, 105, 225, .35), 0 24px 60px rgba(0, 0, 0, .6);
  transform: scale(0.88) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-modal-overlay-newBall.open-newBall .menu-modal-newBall {
  transform: scale(1) translateY(0);
}

/* ── Modal Header ───────────────────────────────────────── */
.menu-modal-head-newBall {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.menu-modal-title-newBall {
  font-family: var(--nb-font-head);
  font-size: 14px;
  font-weight: 900;
  color: var(--nb-accent);
  letter-spacing: 3px;
}

.menu-modal-close-btn-newBall {
  background: rgba(255, 255, 255, .08);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: var(--nb-white);
  font-size: 18px;
  cursor: pointer;
  transition: background var(--nb-ease), transform var(--nb-ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-modal-close-btn-newBall:hover {
  background: rgba(255, 0, 80, .3);
  transform: rotate(90deg);
}

/* ── Modal Grid ─────────────────────────────────────────── */
.menu-modal-grid-newBall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 8px;
}

/* ── Kreis-Item ─────────────────────────────────────────── */
.menu-item-circle-newBall {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
}

/* Einflug-Animation wenn Modal offen */
.menu-modal-overlay-newBall.open-newBall .menu-item-circle-newBall {
  animation: nb-pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes nb-pop-in {
  from { opacity: 0; transform: scale(0.5) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Gestaffelte Delays */
.menu-modal-grid-newBall .menu-item-circle-newBall:nth-child(1)  { animation-delay: .04s; }
.menu-modal-grid-newBall .menu-item-circle-newBall:nth-child(2)  { animation-delay: .07s; }
.menu-modal-grid-newBall .menu-item-circle-newBall:nth-child(3)  { animation-delay: .10s; }
.menu-modal-grid-newBall .menu-item-circle-newBall:nth-child(4)  { animation-delay: .13s; }
.menu-modal-grid-newBall .menu-item-circle-newBall:nth-child(5)  { animation-delay: .16s; }
.menu-modal-grid-newBall .menu-item-circle-newBall:nth-child(6)  { animation-delay: .19s; }
.menu-modal-grid-newBall .menu-item-circle-newBall:nth-child(7)  { animation-delay: .22s; }
.menu-modal-grid-newBall .menu-item-circle-newBall:nth-child(8)  { animation-delay: .25s; }
.menu-modal-grid-newBall .menu-item-circle-newBall:nth-child(9)  { animation-delay: .28s; }
.menu-modal-grid-newBall .menu-item-circle-newBall:nth-child(10) { animation-delay: .31s; }
.menu-modal-grid-newBall .menu-item-circle-newBall:nth-child(11) { animation-delay: .34s; }
.menu-modal-grid-newBall .menu-item-circle-newBall:nth-child(12) { animation-delay: .37s; }
.menu-modal-grid-newBall .menu-item-circle-newBall:nth-child(13) { animation-delay: .40s; }
.menu-modal-grid-newBall .menu-item-circle-newBall:nth-child(14) { animation-delay: .43s; }
.menu-modal-grid-newBall .menu-item-circle-newBall:nth-child(15) { animation-delay: .46s; }
.menu-modal-grid-newBall .menu-item-circle-newBall:nth-child(16) { animation-delay: .49s; }

/* ── Kreis-Icon ─────────────────────────────────────────── */
.circle-icon-newBall {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(65, 105, 225, .18);
  border: 2px solid rgba(65, 105, 225, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nb-accent);
  transition: background var(--nb-ease), border-color var(--nb-ease), transform var(--nb-ease), box-shadow var(--nb-ease);
  position: relative;
  overflow: hidden;
}

/* Shine-Effekt beim Hover */
.circle-icon-newBall::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 60%;
  height: 200%;
  background: rgba(255, 255, 255, .1);
  transform: skewX(-20deg);
  transition: left 0.4s ease;
}

.menu-item-circle-newBall:hover .circle-icon-newBall::after {
  left: 120%;
}

.menu-item-circle-newBall:hover .circle-icon-newBall {
  background: rgba(65, 105, 225, .45);
  border-color: var(--nb-accent);
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 24px rgba(65, 105, 225, .5), 0 0 0 4px rgba(0, 212, 255, .12);
}

/* Aktiver Zustand */
.menu-item-circle-newBall.active-newBall .circle-icon-newBall {
  background: rgba(0, 212, 255, .2);
  border-color: var(--nb-accent);
  box-shadow: 0 0 20px rgba(0, 212, 255, .4);
}

/* SVG-Icons im Kreis anpassen */
.circle-icon-newBall svg,
.circle-icon-newBall img {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ── Kreis-Label ────────────────────────────────────────── */
.circle-label-newBall {
  font-family: var(--nb-font-body);
  font-size: 11px;
  font-weight: 600;
  color: rgba(240, 244, 255, .7);
  text-align: center;
  letter-spacing: .3px;
  line-height: 1.2;
  transition: color var(--nb-ease);
}

.menu-item-circle-newBall:hover .circle-label-newBall {
  color: var(--nb-white);
}

.menu-item-circle-newBall.active-newBall .circle-label-newBall {
  color: var(--nb-accent);
}

/* ── Divider ────────────────────────────────────────────── */
.menu-modal-divider-newBall {
  height: 1px;
  background: rgba(65, 105, 225, .25);
  margin: 20px 0;
}

/* ── Theme-Grid (unter Divider) ─────────────────────────── */
.menu-modal-theme-newBall {
  margin-top: 0;
}

/* ── Auth Buttons ───────────────────────────────────────── */
.menu-modal-auth-newBall {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-auth-newBall {
  flex: 1;
  max-width: 160px;
  padding: 10px 0;
  border-radius: 24px;
  border: none;
  font-family: var(--nb-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--nb-ease), box-shadow var(--nb-ease);
}

.btn-auth-newBall.signin-newBall {
  background: var(--nb-royal);
  color: var(--nb-white);
  box-shadow: 0 4px 16px rgba(65, 105, 225, .4);
}

.btn-auth-newBall.signup-newBall {
  background: rgba(255, 255, 255, .08);
  color: var(--nb-white);
  border: 1px solid rgba(255, 255, 255, .2);
}

.btn-auth-newBall:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(65, 105, 225, .5);
}


/* Search */
.search-wrapper-newBall {
  position: relative;
  margin-left: 100px;
}

.search-wrapper-newBall input {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 24px;
  color: var(--nb-white);
  font-family: var(--nb-font-body);
  font-size: 14px;
  padding: 7px 16px 7px 36px;
  outline: none;
  width: 200px;
  transition: background var(--nb-transition), width var(--nb-transition);
}

.search-wrapper-newBall input::placeholder { color: rgba(240,244,255,.5); }

.search-wrapper-newBall input:focus {
  background: rgba(255,255,255,.22);
  width: 260px;
}

.search-wrapper-newBall .search-icon-newBall {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(240,244,255,.6);
  pointer-events: none;
}



/* ══════════════════════════════════════════════════════════
   6. main-wrapper-newBall
   ══════════════════════════════════════════════════════════ */

.main-wrapper-newBall {
 
  flex-direction: column;
  min-height: 100vh;

  font-family: var(--nb-font-body);
  color: var(--nb-white);
}

/* Stellt sicher dass sticky Header oben klebt und Content darunter fließt */
.main-wrapper-newBall > .main-header-newBall {
  position: sticky;
  top: 0;
  z-index: 999;
  flex-shrink: 0;
}

/* Top-Bar (Aktivierungs-Hinweis) */
.main-wrapper-newBall > .top-bar {
  background: rgba(65, 105, 225, .15);
  border-bottom: 1px solid rgba(65, 105, 225, .3);
  padding: 8px 0;
  font-family: var(--nb-font-body);
  font-size: 13px;
  color: var(--nb-white);
  flex-shrink: 0;
  z-index: 1001;
}

/* Top-Bar Danger (System offline) */
.main-wrapper-newBall > .top-bar.danger {
  background: rgba(229, 57, 53, .15);
  border-bottom: 1px solid rgba(229, 57, 53, .4);
  color: #ff8a80;
}

.main-wrapper-newBall > .top-bar.danger a {
  color: #ff8a80;
  text-decoration: underline;
}

.main-wrapper-newBall > .top-bar a {
  color: var(--nb-accent);
}

/* Bottom-Bar (Login-as Hinweis) */
.main-wrapper-newBall > .bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 193, 7, .12);
  border-top: 1px solid rgba(255, 193, 7, .4);
  padding: 10px 0;
  font-family: var(--nb-font-body);
  font-size: 13px;
  color: #ffe082;
  z-index: 1002;
}

.main-wrapper-newBall > .bottom-bar a {
  color: var(--nb-gold);
  font-weight: 700;
  text-decoration: none;
}

.main-wrapper-newBall > .bottom-bar a:hover {
  text-decoration: underline;
}

.logged-as-container {
  display: flex;
  align-items: center;
  gap: 8px;
}
