/* RandomSecurity24 – Lagezentrum (Dashboard) */

.lage { background: var(--bg); }

.lage-kopf { background: var(--navy); color: #e8ecf6; padding: 56px 0 90px; position: relative; overflow: hidden; }
.lage-kopf::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent);
}
.lage-kopf .container { position: relative; }
.lage-kopf h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.lage-kopf .lead { color: #aab4cc; }
.lage-kopf-zeile { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.lage-uhr { text-align: right; font-family: var(--mono); }
.lage-uhr b { display: block; font-size: 2rem; color: #fff; letter-spacing: .04em; }
.lage-uhr span { font-size: .78rem; color: #7d89a8; }
.live-punkt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; animation: blinken 1.4s infinite; }
@keyframes blinken { 50% { opacity: .2; } }

.akut {
  display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 14px 18px;
  border-radius: 12px; background: rgba(255,59,85,.12); border: 1px solid rgba(255,59,85,.35); color: #ffd5db;
}
.akut:hover { text-decoration: none; background: rgba(255,59,85,.2); }
.akut-tag { background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.akut-text { flex: 1; font-weight: 600; }
.akut-pfeil { font-size: 1.2rem; }

/* Raster */
.lage-raster { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: -56px; position: relative; padding-bottom: 20px; }
.kachel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.kachel-gross { grid-column: span 7; }
.kachel-radar { grid-column: span 5; }
.kacheln-zahlen { grid-column: span 12; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.kachel-breit { grid-column: span 12; }
.kachel-halb { grid-column: span 6; }
@media (max-width: 960px) {
  .kachel-gross, .kachel-radar, .kachel-halb { grid-column: span 12; }
  .kacheln-zahlen { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .kacheln-zahlen { grid-template-columns: 1fr; } }

.kachel-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.kachel-kopf h2 { font-size: 1.05rem; margin: 0; }
.kachel-sub { color: var(--ink-mute); font-size: .8rem; }
.kachel-fuss { color: var(--ink-soft); font-size: .88rem; margin: 14px 0 0; }
.info { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-mute); font-size: .72rem; display: grid; place-items: center; cursor: help; }
.badge-live { font-size: .68rem; font-weight: 800; letter-spacing: .1em; color: var(--accent); border: 1px solid var(--accent); border-radius: 6px; padding: 2px 6px; animation: blinken 1.4s infinite; }

/* Gauge */
.gauge-wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.gauge { width: 260px; max-width: 100%; }
#gauge-bogen { transition: stroke-dasharray 1.4s cubic-bezier(.2,.8,.2,1); }
#gauge-nadel { transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.gauge-wert b { display: block; font-size: 3.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.gauge-wert span { display: inline-block; margin-top: 8px; font-weight: 700; font-size: .9rem; padding: 4px 10px; border-radius: 999px; background: var(--bg); }

/* Radar */
.radar {
  position: relative; aspect-ratio: 1; max-width: 300px; margin: 0 auto; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 24%, rgba(18,183,106,.25) 24.5% 25%, transparent 25.5% 49%, rgba(18,183,106,.25) 49.5% 50%, transparent 50.5% 74%, rgba(18,183,106,.25) 74.5% 75%, transparent 75.5%),
    linear-gradient(rgba(18,183,106,.2), rgba(18,183,106,.2)) center / 1px 100% no-repeat,
    linear-gradient(rgba(18,183,106,.2), rgba(18,183,106,.2)) center / 100% 1px no-repeat,
    #06140d;
  border: 2px solid rgba(18,183,106,.4); overflow: hidden;
}
.radar-strahl {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(18,183,106,.55), rgba(18,183,106,0) 22%, transparent);
  animation: kreisen 4s linear infinite;
}
@keyframes kreisen { to { transform: rotate(360deg); } }
.blip {
  position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; z-index: 2;
}
.blip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.blip.rot::before { background: #ff6b81; box-shadow: 0 0 10px #ff6b81; }
.blip::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid #4ade80; animation: ping 2.4s infinite; opacity: 0; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }

/* Kennzahlen */
.zahl { display: flex; flex-direction: column; gap: 4px; }
.zahl-label { font-size: .78rem; font-weight: 700; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .06em; }
.zahl b { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.zahl-deutung { font-size: .85rem; color: var(--ink-soft); }

/* Diagramme (SVG) */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .achse { stroke: var(--line); stroke-width: 1; }
.chart .achse-text { fill: var(--ink-mute); font-size: 11px; font-family: var(--font); }
.chart .linie { fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .flaeche { fill: url(#flaeche-grad); }
.chart .punkt { fill: var(--surface); stroke: var(--accent-2); stroke-width: 2; }
.chart .balken { fill: var(--accent-2); }
.chart .balken.leer { fill: var(--line); }
.chart .treffer { fill: transparent; cursor: crosshair; }
.chart .fadenkreuz { stroke: var(--ink-mute); stroke-width: 1; stroke-dasharray: 3 3; }
.tooltip {
  position: absolute; pointer-events: none; z-index: 5; background: var(--navy); color: #fff;
  padding: 8px 11px; border-radius: 8px; font-size: .8rem; line-height: 1.35; white-space: nowrap;
  box-shadow: var(--shadow-lg); transform: translate(-50%, calc(-100% - 12px)); display: none;
}
.tooltip b { font-size: .95rem; }
.tooltip small { color: #aab4cc; display: block; }

/* Wetter */
.wetter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.wetter-tag { text-align: center; padding: 14px 8px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.wetter-tag .symbol { font-size: 2rem; line-height: 1.2; }
.wetter-tag b { display: block; font-size: 1.5rem; font-weight: 800; }
.wetter-tag span { font-size: .78rem; color: var(--ink-mute); }
.wetter-balken { display: flex; height: 10px; border-radius: 6px; overflow: hidden; margin-top: 14px; gap: 2px; }
.wetter-balken div { height: 100%; }
@media (max-width: 520px) { .wetter { grid-template-columns: repeat(2, 1fr); } }

/* Hersteller-Charts */
.charts-liste { display: flex; flex-direction: column; gap: 10px; }
.charts-zeile { display: grid; grid-template-columns: 44px 180px 1fr 60px; align-items: center; gap: 12px; font-size: .92rem; }
.charts-platz { font-weight: 800; font-size: 1.2rem; color: var(--ink-mute); text-align: center; }
.charts-zeile:first-child .charts-platz { color: #d4a017; }
.charts-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.charts-bahn { height: 12px; background: var(--bg); border-radius: 6px; overflow: hidden; }
.charts-bahn div { height: 100%; background: var(--accent-2); border-radius: 0 4px 4px 0; width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.charts-wert { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
@media (max-width: 620px) { .charts-zeile { grid-template-columns: 30px 1fr 50px; } .charts-bahn { grid-column: 2 / 4; } }

/* Ticker */
.ticker { list-style: none; margin: 0; padding: 0; }
.ticker li { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ticker li:last-child { border-bottom: 0; }
.ticker .zeit { font-family: var(--mono); font-size: .78rem; color: var(--ink-mute); padding-top: 2px; }
.ticker a { color: var(--ink); font-weight: 600; }
.ticker .kommentar { display: block; color: var(--ink-soft); font-size: .85rem; margin-top: 3px; }
.ticker .kommentar::before { content: "RS24-Analyse: "; font-weight: 700; color: var(--accent); }
.schwere { display: inline-block; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; margin-right: 6px; vertical-align: 2px; }
.schwere-niedrig { background: #e9fbf2; color: #0b7a47; }
.schwere-mittel { background: #fff4dc; color: #8a5a00; }
.schwere-hoch { background: #ffe8eb; color: #c4162f; }
.schwere-kritisch { background: #3a0d0d; color: #fff; }
.art { display: inline-block; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 1px 6px; border-radius: 999px; margin-right: 6px; vertical-align: 2px; border: 1px solid var(--line); color: var(--ink-mute); }
.art-neu { border-color: #2f6bff; color: #2f6bff; }
@media (max-width: 620px) { .ticker li { grid-template-columns: 1fr; gap: 4px; } }

/* Tabelle */
.tabelle-wrap { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabelle th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabelle td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle .cve { font-family: var(--mono); font-size: .82rem; white-space: nowrap; }
.tabelle .klein { display: block; color: var(--ink-mute); font-size: .8rem; }
.tabelle td a.loesung { font-weight: 700; white-space: nowrap; }

.quellen { font-size: .8rem; color: var(--ink-mute); max-width: 900px; }

/* Ladezustand */
.laedt { color: var(--ink-mute); font-size: .9rem; padding: 30px 0; text-align: center; }

/* Reiter: Lagebild | CVE-Horoskop */
.lage-reiter { display: flex; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.lage-reiter a { color: #aab4cc; font-weight: 700; font-size: .9rem; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); }
.lage-reiter a:hover { color: #fff; border-color: rgba(255,255,255,.4); text-decoration: none; }
.lage-reiter a.aktiv { background: #fff; color: var(--navy); border-color: #fff; }

/* NetScaler-Schild */
.ns-kachel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; align-items: center; }
@media (max-width: 860px) { .ns-kachel { grid-template-columns: 1fr; } }
.ns-schild { background: #fff; border: 3px solid #111; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 26px rgba(10,20,48,.12); }
.ns-streifen { height: 22px; background: repeating-linear-gradient(-45deg, #ffcc00 0 18px, #111 18px 36px); }
.ns-innen { padding: 18px 22px 20px; }
.ns-oben { display: block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: #6b7280; margin-bottom: 10px; }
.ns-zeile { display: flex; align-items: center; gap: 20px; }
.ns-tafel { background: #111; border-radius: 10px; padding: 8px 18px; min-width: 128px; text-align: center; box-shadow: inset 0 -4px 0 rgba(255,255,255,.08), inset 0 0 0 2px #2a2a2a; }
.ns-tafel b { font-family: var(--mono); font-size: 4.2rem; line-height: 1.05; color: #ffcc00; letter-spacing: .04em; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(255,204,0,.35); }
.ns-kachel.null .ns-tafel b { color: #ff3b55; text-shadow: 0 0 22px rgba(255,59,85,.6); animation: blinken 1s infinite; }
.ns-text span { display: block; font-weight: 700; font-size: 1.05rem; color: #111; }
.ns-text strong { display: block; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; color: #111; line-height: 1.05; }
.ns-text small { display: block; margin-top: 6px; color: #6b7280; font-size: .8rem; font-weight: 600; }
.ns-kommentar { font-size: 1.05rem; font-weight: 700; margin: 0 0 12px; }
.ns-fakten { list-style: none; margin: 0 0 16px; padding: 0; font-size: .9rem; color: var(--ink-soft); }
.ns-fakten li { padding: 5px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 12px; }
.ns-fakten li b { color: var(--ink); text-align: right; }
.ns-aktionen { display: flex; gap: 10px; flex-wrap: wrap; }
.ns-fuss { font-size: .75rem; color: var(--ink-mute); margin: 14px 0 0; }
.ns-kachel.wackeln .ns-schild { animation: shake .5s; }
@media (max-width: 520px) { .ns-zeile { flex-direction: column; align-items: flex-start; gap: 12px; } .ns-tafel b { font-size: 3.4rem; } }
.ns-kachel[hidden] { display: none; }

/* Ende der Unix-Zeit (y2038.js) */
.y38-countdown { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent); letter-spacing: -.01em; }
.y38-bits { margin: 12px 0 8px; overflow: hidden; }
.y38-bits code { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; color: var(--ink-soft); word-break: break-all; }
.y38-bits .eins { color: var(--accent); }
.y38-balken { height: 10px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.y38-balken div { height: 100%; background: linear-gradient(90deg, var(--ok), var(--warn), var(--accent)); }
