/* ==========================================================================
   SEOTHON – Dashboard-Demo Stylesheet (ergänzt style.css)
   ========================================================================== */

.demo-shell {
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: 16px;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.demo-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.demo-topbar-title {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--ink);
}
.demo-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--lime); flex: none; box-shadow: 0 0 0 5px rgba(132,204,22,.15); }
.demo-badge {
  font-family: var(--body); font-weight: 600; font-size: .84rem; letter-spacing: .03em;
  color: var(--lime); background: rgba(132,204,22,.1);
  border: 1px solid rgba(132,204,22,.3); border-radius: 999px;
  padding: .4rem .85rem; white-space: nowrap;
}

.demo-kpis {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 2rem;
}
.demo-kpi {
  background: rgba(15,23,42,.6); border: 1px solid var(--dark-line);
  border-radius: 12px; padding: 1.3rem 1.4rem;
}
.demo-kpi .n {
  font-family: var(--mono); font-size: 2.3rem; color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.demo-kpi .l { font-size: .9rem; color: var(--ink-dim); margin-top: .55rem; }

.demo-pipeline {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 2.2rem;
}
@media (max-width: 760px) { .demo-pipeline { grid-template-columns: repeat(2, 1fr); } }
.demo-stage {
  background: rgba(15,23,42,.6); border: 1px solid var(--dark-line);
  border-top: 3px solid var(--stage-color, var(--cyan));
  border-radius: 12px; padding: 1.3rem;
}
.demo-stage .st-label {
  font-family: var(--body); font-weight: 600; font-size: .8rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-dim); margin-bottom: .6rem;
}
.demo-stage .st-num { font-family: var(--mono); font-size: 2.1rem; color: var(--ink); }
.demo-stage .st-note { font-size: .85rem; color: var(--ink-dim); margin-top: .4rem; }

.demo-gsc {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 2rem;
}
/* Abschluss im Demo-Container: Weg vom statischen Ausschnitt ins echte
   Demo-Dashboard (app.seothon.com/demo, dasselbe Beispielprojekt). */
.demo-live {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark-line);
}
.demo-live p {
  margin: 0; max-width: 42em;
  color: var(--ink-dim); font-size: .88rem; line-height: 1.6;
}
.demo-spark {
  height: 58px; margin-top: .7rem;
}
.demo-spark svg { width: 100%; height: 100%; display: block; }

.demo-shell--light { background: #fff; border-color: var(--paper-line); }
.demo-table-wrap { overflow-x: auto; margin-bottom: .4rem; }
.demo-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.demo-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.demo-table th, .demo-table td {
  padding: .9rem 1.05rem; text-align: left; font-size: .97rem;
  border-bottom: 1px solid var(--dark-line); white-space: nowrap;
}
.demo-table th {
  font-family: var(--body); font-size: .8rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-dim); font-weight: 600;
}
.demo-table td.num { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.demo-table .qa { font-weight: 600; }
.demo-table .qa.good { color: var(--lime); }
.demo-table--light tbody { color: var(--text); }
.demo-table--light th, .demo-table--light td { border-color: var(--paper-line); }
.demo-table--light th { color: var(--text-dim); }
.idx-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.idx-dot.on { background: var(--lime); }
.idx-dot.off { background: var(--ink-dim); }
.idx-value { display: inline-flex; align-items: center; gap: .45rem; }
.idx-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 680px) {
  .demo-shell--table {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .demo-table-wrap { overflow: visible; margin: 0; }
  .demo-table {
    display: block;
    min-width: 0;
    border-collapse: separate;
  }
  .demo-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .demo-table tbody {
    display: grid;
    gap: .9rem;
  }
  .demo-table tr {
    display: block;
    padding: 1rem 1.05rem;
    border: 1px solid var(--dark-line);
    border-radius: 12px;
    background: rgba(19, 30, 54, .72);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .14);
  }
  .demo-table td {
    display: grid;
    grid-template-columns: minmax(5.6rem, .72fr) minmax(0, 1.28fr);
    gap: .75rem;
    align-items: start;
    padding: .65rem 0;
    border-bottom: 1px solid var(--dark-line);
    white-space: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
    text-align: left;
  }
  .demo-table td::before {
    content: attr(data-label);
    font-family: var(--body);
    font-weight: 600;
    font-size: .7rem;
    line-height: 1.5;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-dim);
  }
  .demo-table td:first-child {
    display: block;
    padding-top: 0;
    color: var(--ink);
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.45;
  }
  .demo-table td:first-child::before {
    display: block;
    margin-bottom: .35rem;
    font-weight: 400;
  }
  .demo-table td:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .demo-table td.num { text-align: left; }
  .demo-table .cr-status {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
  .idx-text {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    color: var(--ink-dim);
  }
  .demo-table--light tr {
    border-color: var(--paper-line);
    background: #fff;
    box-shadow: 0 14px 34px rgba(50, 55, 64, .08);
  }
  .demo-table--light td {
    color: var(--text);
    border-color: var(--paper-line);
  }
  .demo-table--light td::before,
  .demo-table--light .idx-text { color: var(--text-dim); }
  .demo-table--light td:first-child { color: var(--charcoal); }
}

.demo-callout {
  position: relative;
}
.callout-tag {
  position: absolute; z-index: 5;
  background: var(--cyan); color: #fff;
  font-family: var(--mono); font-size: .68rem; font-weight: 700;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 0 0 4px rgba(39,161,232,.25);
  cursor: default;
}
.callout-list { display: grid; gap: 1.2rem; margin-top: 1.8rem; }
.callout-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.callout-item .num {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--cyan); color: #fff; font-family: var(--mono); font-size: .76rem; font-weight: 700;
  display: grid; place-items: center;
}
.callout-item p { color: var(--text-dim); font-size: 1.02rem; }
.callout-item strong { color: var(--charcoal); }

.cr-status {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--body); font-weight: 600; font-size: .86rem; padding: .34rem .8rem;
  border-radius: 999px; white-space: nowrap;
}
.cr-status.wait { background: rgba(245,158,11,.12); color: #F59E0B; }
.cr-status.active { background: rgba(39,161,232,.12); color: var(--cyan); }
.cr-status.done { background: rgba(132,204,22,.12); color: var(--lime); }

.report-cards { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }
.report-card {
  background: #fff; border: 1px solid var(--paper-line); border-radius: 12px;
  padding: 1.6rem; border-left: 4px solid var(--card-color, var(--cyan));
}
.report-card h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.report-card p { font-size: .97rem; color: var(--text-dim); }
