/* ==========================================================
   digital-world.dev — Multipage Neon Tech Design
   ========================================================== */

:root {
  --bg: #05070d;
  --panel: rgba(10, 18, 34, 0.78);
  --panel-strong: rgba(8, 13, 26, 0.94);
  --line: rgba(0, 217, 255, 0.24);
  --line-strong: rgba(0, 217, 255, 0.55);
  --text: #e7f8ff;
  --muted: #8aa3b8;
  --cyan: #00d9ff;
  --blue: #247cff;
  --green: #39ff88;
  --magenta: #d946ef;
  --violet: #8b5cf6;
  --orange: #ff9f1c;
  --max: 1180px;
  --radius: 18px;
  --shadow-cyan: 0 0 30px rgba(0, 217, 255, 0.22);
  --shadow-magenta: 0 0 30px rgba(217, 70, 239, 0.17);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% -10%, rgba(36, 124, 255, 0.23), transparent 34%),
    radial-gradient(circle at 78% 6%, rgba(217, 70, 239, 0.18), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(57, 255, 136, 0.08), transparent 32%),
    var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(0, 217, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at top, #000, transparent 78%);
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
p { color: var(--muted); }
ul { list-style: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
  padding: 16px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 7, 13, 0.74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .04em; }
.brand-mark {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  border: 1px solid rgba(0, 217, 255, .58);
  border-radius: 50%;
  box-shadow: var(--shadow-cyan);
  text-shadow: 0 0 18px var(--cyan);
}
.brand-text span { color: var(--magenta); text-shadow: 0 0 16px rgba(217,70,239,.65); }
.main-nav { display: flex; align-items: center; gap: 20px; color: #c7d9e5; font-size: .94rem; }
.main-nav a { position: relative; padding: 6px 0; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transition: width .2s ease;
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.nav-toggle { display: none; width: 44px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.25); }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--cyan); }

.section { max-width: var(--max); margin: 0 auto; padding: 82px 24px; }
.eyebrow { margin-bottom: 14px; color: var(--cyan); font-size: .78rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.hero { min-height: calc(100vh - 78px); display: grid; align-items: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); gap: 48px; align-items: center; }
.hero h1, .page-hero h1 {
  color: var(--text);
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: .96;
  letter-spacing: -.075em;
  text-transform: uppercase;
  text-shadow: 0 0 34px rgba(0,217,255,.15);
}
.page-hero h1 { max-width: 900px; font-size: clamp(2.7rem, 6vw, 5rem); }
.hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-text, .page-hero p { max-width: 760px; margin-top: 24px; font-size: 1.12rem; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 900;
  letter-spacing: .03em;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { color: #001018; background: linear-gradient(135deg, var(--cyan), var(--green)); box-shadow: var(--shadow-cyan); }
.btn.secondary { color: #fff; border: 1px solid rgba(217,70,239,.55); background: rgba(217,70,239,.1); box-shadow: var(--shadow-magenta); }
.btn.ghost { color: var(--cyan); border: 1px solid rgba(0,217,255,.26); background: rgba(0,217,255,.055); }

.trust-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 34px; }
.trust-row div, .metric-card, .dashboard-grid article, .book-row article, .blog-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10,18,34,.56);
}
.trust-row div { padding: 14px; }
.trust-row strong { display: block; color: #fff; }
.trust-row span { color: var(--muted); font-size: .82rem; }

.hero-panel, .monitoring-panel, .contact-card, .blog-block, .about-section {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10,18,34,.82), rgba(6,10,20,.74));
  box-shadow: var(--shadow-cyan);
  overflow: hidden;
}
.panel-topline, .panel-header, .block-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-topline { margin-bottom: 22px; color: var(--cyan); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.status-dot { color: var(--green); }
.status-dot::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.network-visual {
  position: relative;
  min-height: 310px;
  border: 1px solid rgba(0,217,255,.14);
  border-radius: 16px;
  background: radial-gradient(circle at center, rgba(0,217,255,.16), transparent 42%), linear-gradient(135deg, rgba(0,217,255,.08), transparent 45%, rgba(217,70,239,.09));
}
.globe {
  position: absolute;
  width: 210px;
  height: 210px;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  border: 1px solid rgba(0,217,255,.82);
  border-radius: 50%;
  background: linear-gradient(0deg, transparent 48%, rgba(0,217,255,.34) 49% 51%, transparent 52%), linear-gradient(90deg, transparent 48%, rgba(0,217,255,.34) 49% 51%, transparent 52%), repeating-radial-gradient(circle, transparent 0 18px, rgba(0,217,255,.16) 19px 20px);
  box-shadow: inset 0 0 30px rgba(0,217,255,.25), 0 0 44px rgba(0,217,255,.25);
}
.globe::after { content: "▣"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--cyan); font-size: 3rem; text-shadow: 0 0 22px var(--cyan); }
.node { position: absolute; width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(5,7,13,.9); font-weight: 900; box-shadow: 0 0 24px rgba(0,217,255,.24); }
.node-a { left: 12%; top: 22%; color: var(--green); }
.node-b { right: 14%; top: 20%; color: var(--cyan); }
.node-c { left: 17%; bottom: 16%; color: var(--orange); }
.node-d { right: 18%; bottom: 13%; color: var(--magenta); }

.metrics-grid, .dashboard-grid { display: grid; gap: 12px; margin-top: 14px; }
.metrics-grid { grid-template-columns: repeat(2, 1fr); }
.dashboard-grid { grid-template-columns: repeat(4, 1fr); }
.metric-card, .dashboard-grid article { padding: 16px; background: rgba(2,8,18,.78); }
.metric-card span, .dashboard-grid span { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; }
.metric-card strong, .dashboard-grid strong { display: block; margin: 6px 0; color: var(--green); font-size: 1.75rem; }
.metric-card.warning strong { color: var(--orange); }
.metric-card i { display: block; height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--green)); }

.section-heading { max-width: 820px; margin: 0 auto 38px; text-align: center; }
.section-heading h2, .monitoring-panel h2, .contact-card h2, .blog-block h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -.04em; margin-bottom: 16px; }
.cards { display: grid; gap: 18px; }
.cards.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-card, .project-card, .ops-card {
  position: relative;
  min-height: 245px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10,18,34,.66);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.service-card:hover, .project-card:hover, .ops-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-cyan); }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid currentColor; border-radius: 16px; font-size: 1.55rem; }
.service-card h3, .project-card h3, .ops-card h3, .blog-item h3, .book-row h3 { color: #fff; font-size: 1.18rem; margin-bottom: 10px; }
.service-card p, .project-card p, .ops-card p { margin-bottom: 16px; }
.service-card a, .project-card a, .text-link { color: var(--cyan); font-weight: 900; }
.cyan { color: var(--cyan); } .green { color: var(--green); } .magenta { color: var(--magenta); } .orange { color: var(--orange); } .blue { color: var(--blue); } .violet { color: var(--violet); }

.ops-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.ops-card { min-height: unset; }
.ops-card span { color: var(--cyan); font-weight: 900; letter-spacing: .12em; }
.ops-card.featured { border-color: rgba(57,255,136,.45); box-shadow: 0 0 30px rgba(57,255,136,.12); }
.ops-card ul { margin-top: 16px; }
.ops-card li { color: #c7d9e5; font-size: .92rem; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.06); }
.ops-card li::before { content: "›"; color: var(--green); margin-right: 8px; }

.tag, .blog-item span, .book-row span { display: inline-flex; margin-bottom: 12px; color: var(--green); font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.content-grid.single { grid-template-columns: 1fr; }
.blog-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0; }
.blog-tabs span { padding: 7px 10px; border: 1px solid rgba(0,217,255,.24); border-radius: 999px; color: #cfeeff; font-size: .8rem; }
.blog-item + .blog-item { margin-top: 12px; }
.blog-item, .book-row article { padding: 18px; background: rgba(2,8,18,.56); }
.book-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 22px; }
.book-row.wide { grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 0; }

.sparkline { height: 40px; border-radius: 8px; background: linear-gradient(135deg, transparent 0 12%, rgba(57,255,136,.38) 13% 18%, transparent 19% 34%, rgba(57,255,136,.45) 35% 40%, transparent 41% 56%, rgba(57,255,136,.55) 57% 63%, transparent 64%), rgba(57,255,136,.06); }
.sparkline.alt { background: linear-gradient(135deg, transparent 0 14%, rgba(0,217,255,.4) 15% 21%, transparent 22% 38%, rgba(0,217,255,.52) 39% 45%, transparent 46%), rgba(0,217,255,.06); }
.sparkline.purple { background: linear-gradient(135deg, transparent 0 18%, rgba(217,70,239,.42) 19% 25%, transparent 26% 48%, rgba(217,70,239,.52) 49% 57%, transparent 58%), rgba(217,70,239,.06); }
.sparkline.orange { background: linear-gradient(135deg, transparent 0 18%, rgba(255,159,28,.42) 19% 27%, transparent 28% 52%, rgba(255,159,28,.58) 53% 61%, transparent 62%), rgba(255,159,28,.06); }

.contact-card { max-width: 900px; margin: 0 auto; padding: 42px; text-align: center; }
.contact-card p { max-width: 690px; margin: 0 auto; }
.site-footer { max-width: var(--max); margin: 20px auto 0; padding: 42px 24px 34px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, .7fr); gap: 28px; }
.footer-brand { margin-bottom: 16px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; }
.site-footer a:not(.brand) { display: block; color: var(--muted); margin: 7px 0; }
.site-footer a:hover { color: var(--cyan); }
.copyright { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.07); text-align: center; color: #637486; font-size: .88rem; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; left: 18px; right: 18px; top: 74px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(5,7,13,.96); box-shadow: var(--shadow-cyan); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; }
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .cards.six, .cards.three, .ops-grid, .dashboard-grid, .footer-grid, .book-row.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: auto; }
}
@media (max-width: 680px) {
  .section { padding: 58px 18px; }
  .brand-text { font-size: .92rem; }
  .hero h1 { font-size: clamp(2.6rem, 16vw, 4rem); }
  .page-hero h1 { font-size: clamp(2.4rem, 14vw, 3.8rem); }
  .hero-actions, .contact-actions { flex-direction: column; }
  .btn { width: 100%; }
  .trust-row, .cards.six, .cards.three, .ops-grid, .dashboard-grid, .footer-grid, .metrics-grid, .book-row, .book-row.wide { grid-template-columns: 1fr; }
  .network-visual { min-height: 250px; }
  .globe { width: 165px; height: 165px; }
  .panel-header, .block-header { align-items: flex-start; flex-direction: column; }
}

/* -------------------------------------------------
   Hero Layout Fix - digital-world.dev
   verhindert Überschneidung von Headline und Panel
------------------------------------------------- */

.hero-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.88fr);
  gap: 72px;
}

.hero h1 {
  max-width: 690px;
  font-size: clamp(2.8rem, 5.65vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
}

.hero-text {
  max-width: 680px;
}

.hero-panel {
  justify-self: end;
  width: 100%;
  max-width: 560px;
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero h1 {
    max-width: 820px;
    font-size: clamp(2.8rem, 8vw, 5.4rem);
  }

  .hero-panel {
    justify-self: stretch;
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.8rem);
  }
}

/* -------------------------------------------------
   FIX: Live Threat Observatory Grafana iframe
   Erzwingt volle Dashboard-Größe statt Mini-Embed
------------------------------------------------- */

.live-threat-page,
.live-threat-preview {
  width: 100%;
}

.live-threat-page .section,
.live-threat-preview.section {
  max-width: var(--max);
  width: 100%;
}

.threat-dashboard-frame {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 980px !important;
  height: 980px !important;
  margin: 42px auto 0 !important;
  border: 1px solid rgba(0, 217, 255, 0.28) !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  background: #05070d !important;
  box-shadow:
    0 0 36px rgba(0, 217, 255, 0.14),
    0 20px 60px rgba(0, 0, 0, 0.35) !important;
}

.threat-dashboard-frame iframe,
.live-threat-page iframe,
iframe[src*="threats.digital-world.dev"],
iframe[src*="grafana"],
iframe[src*="/d/"],
iframe[src*="/d-solo/"] {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: 980px !important;
  min-height: 980px !important;
  border: 0 !important;
  background: #05070d !important;
}

/* Falls der iframe direkt in einer Section liegt und keinen Wrapper hat */
.live-threat-page .section > iframe,
.section iframe[src*="threats.digital-world.dev"] {
  width: 100% !important;
  height: 980px !important;
  min-height: 980px !important;
  margin-top: 42px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(0, 217, 255, 0.28) !important;
}

/* Mobile Anpassung */
@media (max-width: 1100px) {
  .threat-dashboard-frame,
  .threat-dashboard-frame iframe,
  .live-threat-page iframe,
  iframe[src*="threats.digital-world.dev"] {
    height: 1100px !important;
    min-height: 1100px !important;
  }
}

@media (max-width: 720px) {
  .threat-dashboard-frame,
  .threat-dashboard-frame iframe,
  .live-threat-page iframe,
  iframe[src*="threats.digital-world.dev"] {
    height: 1250px !important;
    min-height: 1250px !important;
    border-radius: 14px !important;
  }
}


/* -------------------------------------------------
   FIX: Grafana Dashboard Höhe - Scrollbalken entfernen
   Live-Angriffe / Threat Observatory
------------------------------------------------- */

.threat-dashboard-frame {
  height: 1320px !important;
  min-height: 1320px !important;
  max-height: none !important;
  overflow: hidden !important;
}

.threat-dashboard-frame iframe,
.live-threat-page iframe,
iframe[src*="threats.digital-world.dev"],
iframe[src*="/d/dw-threat-public-v1"] {
  height: 1320px !important;
  min-height: 1320px !important;
  max-height: none !important;
  overflow: hidden !important;
}

/* Grafana etwas besser in den Rahmen setzen */
.threat-dashboard-frame {
  max-width: 1080px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Tablet */
@media (max-width: 1100px) {
  .threat-dashboard-frame,
  .threat-dashboard-frame iframe,
  .live-threat-page iframe,
  iframe[src*="threats.digital-world.dev"] {
    height: 1500px !important;
    min-height: 1500px !important;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .threat-dashboard-frame,
  .threat-dashboard-frame iframe,
  .live-threat-page iframe,
  iframe[src*="threats.digital-world.dev"] {
    height: 1750px !important;
    min-height: 1750px !important;
  }
}


/* -------------------------------------------------
   FINAL FIX: Grafana iframe ohne inneren Scrollbalken
   Live-Angriffe / digital-world.dev
------------------------------------------------- */

/* Der äußere Dashboard-Rahmen */
.threat-dashboard-frame {
  width: 100% !important;
  max-width: 1080px !important;
  height: 1580px !important;
  min-height: 1580px !important;
  max-height: none !important;
  margin: 42px auto 0 auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background: #05070d !important;
}

/* Wirklich jedes iframe auf der Live-Angriffe-Seite hart hochziehen */
.threat-dashboard-frame iframe,
.live-threat-page iframe,
main iframe,
section iframe,
iframe[src*="threats.digital-world.dev"],
iframe[src*="grafana"],
iframe[src*="/d/dw-threat-public-v1"],
iframe[src*="/d/"] {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;

  height: 1580px !important;
  min-height: 1580px !important;
  max-height: none !important;

  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #05070d !important;
}

/* Falls ein iframe-Attribut oder Inline-Style dagegen arbeitet */
iframe {
  max-height: none !important;
}

/* Auf großen Bildschirmen etwas kompakter */
@media (min-width: 1400px) {
  .threat-dashboard-frame,
  .threat-dashboard-frame iframe,
  .live-threat-page iframe,
  main iframe,
  section iframe,
  iframe[src*="threats.digital-world.dev"] {
    height: 1500px !important;
    min-height: 1500px !important;
  }
}

/* Tablet */
@media (max-width: 1100px) {
  .threat-dashboard-frame,
  .threat-dashboard-frame iframe,
  .live-threat-page iframe,
  main iframe,
  section iframe,
  iframe[src*="threats.digital-world.dev"] {
    height: 1750px !important;
    min-height: 1750px !important;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .threat-dashboard-frame,
  .threat-dashboard-frame iframe,
  .live-threat-page iframe,
  main iframe,
  section iframe,
  iframe[src*="threats.digital-world.dev"] {
    height: 2100px !important;
    min-height: 2100px !important;
    border-radius: 14px !important;
  }
}


/* -------------------------------------------------
   FINAL TUNE: Live-Angriffe Dashboard kompakter
   Entfernt leeren Bereich unter dem Grafana-Dashboard
------------------------------------------------- */

.threat-dashboard-frame {
  height: 820px !important;
  min-height: 820px !important;
  max-height: 820px !important;
  overflow: hidden !important;
}

.threat-dashboard-frame iframe,
iframe[src*="threats.digital-world.dev"],
iframe[src*="/d/dw-threat-public-v1"] {
  height: 820px !important;
  min-height: 820px !important;
  max-height: 820px !important;
  overflow: hidden !important;
}

/* Etwas sauberere optische Breite */
.threat-dashboard-frame {
  max-width: 1040px !important;
}

/* Tablet */
@media (max-width: 1100px) {
  .threat-dashboard-frame,
  .threat-dashboard-frame iframe,
  iframe[src*="threats.digital-world.dev"] {
    height: 980px !important;
    min-height: 980px !important;
    max-height: 980px !important;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .threat-dashboard-frame,
  .threat-dashboard-frame iframe,
  iframe[src*="threats.digital-world.dev"] {
    height: 1250px !important;
    min-height: 1250px !important;
    max-height: 1250px !important;
  }
}


/* -------------------------------------------------
   FINAL TUNE: Live-Angriffe Dashboard kompakter
   Entfernt leeren Bereich unter dem Grafana-Dashboard
------------------------------------------------- */

.threat-dashboard-frame {
  height: 820px !important;
  min-height: 820px !important;
  max-height: 820px !important;
  overflow: hidden !important;
}

.threat-dashboard-frame iframe,
iframe[src*="threats.digital-world.dev"],
iframe[src*="/d/dw-threat-public-v1"] {
  height: 820px !important;
  min-height: 820px !important;
  max-height: 820px !important;
  overflow: hidden !important;
}

/* Etwas sauberere optische Breite */
.threat-dashboard-frame {
  max-width: 1040px !important;
}

/* Tablet */
@media (max-width: 1100px) {
  .threat-dashboard-frame,
  .threat-dashboard-frame iframe,
  iframe[src*="threats.digital-world.dev"] {
    height: 980px !important;
    min-height: 980px !important;
    max-height: 980px !important;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .threat-dashboard-frame,
  .threat-dashboard-frame iframe,
  iframe[src*="threats.digital-world.dev"] {
    height: 1250px !important;
    min-height: 1250px !important;
    max-height: 1250px !important;
  }
}


/* -------------------------------------------------
   FINAL: Live-Angriffe Dashboard passgenau
   etwas mehr Höhe, damit die unteren Panels nicht abgeschnitten werden
------------------------------------------------- */

.threat-dashboard-frame,
.threat-dashboard-frame iframe,
iframe[src*="threats.digital-world.dev"],
iframe[src*="/d/dw-threat-public-v1"] {
  height: 900px !important;
  min-height: 900px !important;
  max-height: 900px !important;
  overflow: hidden !important;
}

/* Footer etwas luftiger unter dem Dashboard */
.live-threat-page + .site-footer,
.threat-dashboard-frame + .site-footer,
.site-footer {
  margin-top: 48px;
}


/* -------------------------------------------------
   Tor Relay Stats
------------------------------------------------- */

.relay-flags,
[data-relay-flags] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}

.relay-flag {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 10px;
  background: rgba(2, 8, 18, 0.72);
  box-shadow: 0 0 16px rgba(0, 217, 255, 0.10);
  font-size: 1.15rem;
}

.relay-meta-line {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.relay-highlight {
  color: var(--green);
  font-weight: 900;
}
