/* header.css - gemeinsame Statusbar/Navigation + "nach oben"-Button fuer ALLE
   Seiten (Startseite/Tool, Spiel-Detailseiten, Blog, Blog-Beitrag, Kord-Breach-
   Planer). Erwartet die Design-Tokens (--bg-void, --accent-red* usw.) vom
   jeweiligen Seiten-CSS (index.php inline, legal.css, planner.css). Wird als
   LETZTES Stylesheet eingebunden, damit es evtl. aeltere Kopien ueberschreibt. */

.statusbar{
  border-bottom: 1px solid var(--line-soft);
  background: rgba(26,26,26,0.9);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
}
.statusbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-transform: uppercase;
  text-decoration: none;
}
a.brand:hover{ color: var(--accent-red-bright); }
a.brand:hover .brand-logo{ color: var(--text-muted); }
.brand-logo{
  width: 30px; height: 30px;
  flex-shrink: 0;
  color: var(--text-dim);
}
.brand-logo .needle-n{ fill: var(--accent-red-bright); }
.brand-logo .needle-s{ fill: var(--accent-red-dim); stroke: var(--accent-red); stroke-width: 0.75; }
.brand small{
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--text-dim);
  text-transform: none;
  font-size: 11px;
  margin-left: 4px;
}

.statusbar-right{
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-blog-link{
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  background: var(--accent-red);
  border: 1.5px solid var(--accent-red);
  transition: background .15s, border-color .15s, transform .15s;
}
.nav-blog-link:hover{
  background: var(--accent-red-bright);
  border-color: var(--accent-red-bright);
  transform: translateY(-1px);
}
.nav-blog-link[aria-current="page"]{
  background: var(--accent-red-dim);
  color: var(--accent-red-bright);
}

.status-live{
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}
.dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse{
  0%, 100%{ opacity: 1; }
  50%{ opacity: 0.35; }
}

.lang-dropdown{ position: relative; }
.lang-dd-toggle{
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  background: var(--bg-panel-raised);
  border: 1px solid var(--line);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.lang-dd-toggle:hover{ border-color: var(--text-dim); color: var(--text-primary); }
.lang-dropdown.open .lang-dd-toggle{
  background: var(--accent-red-dim);
  border-color: var(--accent-red-bright);
  color: var(--accent-red-bright);
}
.lang-flag{ font-size: 13px; line-height: 1; }
.lang-caret{
  font-size: 8px;
  color: var(--text-dim);
  transition: transform .15s ease;
}
.lang-dropdown.open .lang-caret{ transform: rotate(180deg); color: var(--accent-red-bright); }
.lang-dd-menu{
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 130px;
  background: var(--bg-panel-raised);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px -8px rgba(0,0,0,0.6);
  list-style: none;
  margin: 0;
  padding: 4px;
  z-index: 50;
}
.lang-dd-menu[hidden]{ display: none; }
.lang-dd-option{
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
}
.lang-dd-option a{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.lang-dd-option a:hover{ background: var(--bg-panel); color: var(--text-primary); }
.lang-dd-option[aria-selected="true"] a{ color: var(--accent-red-bright); }

/* "nach oben"-Button - nur Desktop (>768px), erscheint erst nach dem Scrollen */
.scroll-top-btn{
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent-red);
  border: 1px solid var(--accent-red);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, background .15s ease;
}
.scroll-top-btn.visible{ display: flex; opacity: 1; transform: translateY(0); }
.scroll-top-btn:hover{ background: var(--accent-red-bright); border-color: var(--accent-red-bright); }

@media (max-width: 768px){
  .scroll-top-btn,
  .scroll-top-btn.visible{ display: none !important; }
}
@media (max-width: 640px){
  .statusbar-inner{ flex-wrap: wrap; gap: 8px; padding: 12px 0; }
  .brand{ font-size: 13px; }
  .brand-logo{ width: 26px; height: 26px; }
  .brand small{ display: none; }
  .statusbar-right{ gap: 10px; }
  .status-live{ display: none; }
  .nav-blog-link{ padding: 6px 10px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce){
  .dot{ animation: none; }
  .scroll-top-btn{ transition: none; }
}
