/* ===== OpsDeck360 Header (dark, touch-freundlich, CSP-konform) ===== */

:root{
  --header-h: 72px;
  --c-bg: #0b1321;
  --c-bg-2:#121b2c;
  --c-fg: #dfe7ff;
  --c-fg-dim:#9fb0d6;
  --c-accent:#58a6ff;
  --br: 12px;
}

html { scroll-padding-top: var(--header-h); }

.app-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(0deg, var(--c-bg-2), var(--c-bg));
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

#header-inner{
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  color: var(--c-fg);
  font: 500 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
}

/* kompatibel zu deinem neuen Header-Layout */
:root { --content-max: 1200px; }
.app-header #header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-brand { display:flex; align-items:center; gap:10px; min-width:0; }
.header-title { display:flex; flex-direction:column; min-width:0; }
.header-title-main { font-weight:700; }
.header-nav { display:flex; gap:8px; margin-left:16px; }
.header-right { margin-left:auto; display:flex; gap:8px; align-items:center; }

.header-select {
  background: rgba(2, 6, 23, 0.50);
  color: rgba(226, 232, 240, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  height: 34px;
  padding: 0 34px 0 12px;
  font-size: 13px;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.2;
  color-scheme: dark;
}

.header-select:focus {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
  outline: none;
}

.header-select-wrapper { position: relative; display: inline-block; }
.header-select-wrapper::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: rgba(148, 163, 184, 0.85);
  pointer-events: none;
}

.header-select option,
.header-select optgroup {
  background: rgba(15, 23, 42, 0.98);
  color: rgba(226, 232, 240, 0.96);
}
/* ===== Header bigger typography ===== */
.header-title-main{ font-size: 18px !important; }
.header-title-sub{ font-size: 12.5px !important; opacity: .85; }

.header-pill{
  font-size: 13.5px !important;
  padding: 6px 12px !important;
}
/* ===== iPhone / Glass Header (Override) ===== */
.app-header{
  background: linear-gradient(180deg, rgba(2,6,23,.72), rgba(2,6,23,.52)) !important;
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.35) !important;

  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

/* dünner “Glow”-Strich unten wie iOS */
.app-header::after{
  content:"";
  display:block;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.30), rgba(168,85,247,.22), transparent);
}

/* Pills / Buttons im Header gläsern */
.header-pill{
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(15,23,42,.35) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 14px 28px rgba(0,0,0,.30) !important;

  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);

  transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease;
}
.header-pill:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.22) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 36px rgba(0,0,0,.40) !important;
}

/* Brand/Title etwas “cleaner” */
.header-title-main{
  letter-spacing: -0.02em !important;
}
.header-title-sub{
  color: rgba(226,232,240,.75) !important;
}

/* Info-Pill (das “i”) – nur wenn du ihm class="is-info" gibst */
.header-pill.is-info{
  border-color: rgba(56,189,248,.40) !important;
  background: rgba(56,189,248,.10) !important;
  color: rgba(226,232,240,.95) !important;
}
/* Info "i" hervorheben */
#opsHdrInfoBtn.is-info{
  border: 1px solid rgba(56,189,248,.40) !important;
  background: rgba(56,189,248,.10) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 14px 28px rgba(0,0,0,.30) !important;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
#opsHdrInfoBtn{
  border: 1px solid rgba(56,189,248,.40) !important;
  background: rgba(56,189,248,.10) !important;
}
header.app-header #header-inner{ flex-wrap: wrap !important; row-gap: 10px !important; }
header.app-header .header-right{ flex-wrap: wrap !important; }
