@font-face {
  font-family: "PPSupplySans";
  src: url("brand/PPSupplySans-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f7f2;
  --bg-soft: #ecece7;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --ink: #0d0d0f;
  --muted: #5e6169;
  --line: rgba(15, 15, 18, 0.08);
  --line-strong: rgba(15, 15, 18, 0.14);
  --hero: #050505;
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.08);
  --shadow-hero: 0 30px 80px rgba(0, 0, 0, 0.28);
  --pink: #ff6f91;
  --blue: #59a7ff;
  --green: #61c173;
  --yellow: #ffcc59;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "PPSupplySans", Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(255, 111, 145, 0.12), transparent 28%),
    radial-gradient(circle at left 20%, rgba(89, 167, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #fafaf6 0%, #f3f3ef 100%);
}

.quarto-title-block {
  display: none;
}

.dashboard-shell {
  width: min(1520px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 20px 0 72px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
  gap: 28px;
  padding: 36px;
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #090909 0%, #000000 100%);
  box-shadow: var(--shadow-hero);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -50px -80px auto;
  width: 340px;
  height: 340px;
  background: url("brand/spo_bildmarke.500x0-ms.png") center/contain no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 111, 145, 0.12), transparent 22%),
    linear-gradient(135deg, transparent 55%, rgba(89, 167, 255, 0.1));
  pointer-events: none;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.brand-lockup img {
  width: 200px;
  height: auto;
  display: block;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero .eyebrow,
.hero h1,
.hero .lead,
.hero .meta-label,
.hero .meta-card strong {
  color: #ffffff;
}

.hero h1 {
  margin: 0;
  max-width: 9ch;
  font-size: clamp(3.4rem, 7vw, 6rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.lead,
.section-note,
.meta-label,
.kpi span,
.spotlight-item p,
.signal-item p,
.focus-copy {
  color: var(--muted);
}

.hero .lead {
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.04rem;
  line-height: 1.55;
}

.hero-meta {
  display: grid;
  gap: 14px;
  align-content: start;
}

.meta-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
}

.meta-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.5rem;
}

.section-block {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head h2,
.viz-head h3,
.focus-headline h3,
.overview-card h3,
.spotlight-item h3,
.signal-item h3 {
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 500;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.overview-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 248, 244, 0.9));
  box-shadow: var(--shadow-soft);
}

.overview-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.overview-card h3 {
  font-size: 1.55rem;
  font-weight: 500;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.kpi {
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

.kpi strong {
  display: block;
  margin-top: 4px;
  font-size: 1.3rem;
  color: var(--ink);
}

.spotlight-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.spotlight-item {
  padding: 10px 0 0;
  border-top: 3px solid var(--ink);
}

.spotlight-item:nth-child(1) {
  border-top-color: var(--pink);
}

.spotlight-item:nth-child(2) {
  border-top-color: var(--blue);
}

.spotlight-item:nth-child(3) {
  border-top-color: var(--green);
}

.spotlight-item h3 {
  margin-top: 12px;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  font-weight: 500;
}

.spotlight-item p:last-child {
  margin: 10px 0 0;
  font-size: 0.98rem;
  line-height: 1.5;
}

.control-stage,
.viz-stage,
.table-stage,
.signal-stage {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.control-stage {
  display: grid;
  gap: 18px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(252, 252, 249, 0.78));
}

.filter-group {
  display: grid;
  gap: 12px;
}

.filter-label {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.window-switcher,
.pill-filter,
.focus-channel-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.date-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.date-inputs label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.date-inputs input {
  min-width: 170px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  font: 500 0.95rem/1 "PPSupplySans", Arial, sans-serif;
}

.window-button,
.pill-button,
.focus-channel-button,
.export-button {
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 10px 15px;
  font: 700 0.9rem/1 "PPSupplySans", Arial, sans-serif;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.window-button:hover,
.pill-button:hover,
.focus-channel-button:hover,
.export-button:hover {
  transform: translateY(-1px);
  border-color: #000000;
}

.window-button.is-active,
.pill-button.is-active,
.focus-channel-button.is-active {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.pill-button--utility {
  background: rgba(15, 15, 18, 0.05);
}

.export-button {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.viz-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 18px;
  margin-top: 18px;
}

.viz-stage,
.table-stage,
.signal-stage {
  padding: 22px;
}

.viz-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.viz-head h3 {
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 500;
}

.viz-stage canvas {
  min-height: 170px;
  max-height: 170px;
}

.dark-stage,
.dark-band {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.98), rgba(6, 6, 7, 0.98));
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.dark-stage .eyebrow,
.dark-stage h3,
.dark-stage .section-note,
.dark-band .eyebrow,
.dark-band h2,
.dark-band .section-note,
.dark-band h3,
.dark-band h4,
.dark-band p {
  color: #ffffff;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  margin-top: 18px;
}

.signal-list {
  display: grid;
  gap: 14px;
}

.signal-item {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.signal-stage .signal-item {
  border-top-color: var(--line);
}

.signal-item h3 {
  margin-top: 10px;
  font-size: 1.6rem;
  font-weight: 500;
}

.signal-item p:last-child {
  margin: 8px 0 0;
  line-height: 1.5;
}

.dark-band {
  padding-top: 24px;
  padding-bottom: 10px;
  border-radius: 34px;
  padding-left: 26px;
  padding-right: 26px;
  border-top: 0;
}

.focus-slider-shell {
  display: grid;
  gap: 16px;
}

.focus-channel-slider {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--blue), var(--green));
  outline: none;
  appearance: none;
}

.focus-channel-slider::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 0;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.focus-channel-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 0;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.channel-focus-story {
  display: grid;
  gap: 26px;
  margin-top: 24px;
}

.focus-headline h3 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
}

.focus-copy {
  max-width: 72ch;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

.focus-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.focus-points article {
  padding-top: 14px;
  border-top: 2px solid rgba(255, 255, 255, 0.18);
}

.focus-points h4 {
  margin: 10px 0 8px;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
}

.focus-points p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.full-width {
  margin-top: 16px;
}

.table-note {
  margin: 12px 0 0;
}

.dataTable {
  width: 100% !important;
}

table.dataTable {
  margin: 0 !important;
  font-size: 0.94rem;
  border-collapse: separate;
  border-spacing: 0 8px;
}

table.dataTable thead th {
  background: rgba(12, 12, 14, 0.94);
  color: #ffffff;
  border-bottom: 0 !important;
  white-space: nowrap;
}

table.dataTable tbody td {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  background: rgba(255, 255, 255, 0.88);
}

table.dataTable tbody tr:hover td {
  background: rgba(244, 244, 240, 0.98);
}

table.dataTable tbody tr td:first-child {
  border-left: 1px solid rgba(0, 0, 0, 0.04);
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

table.dataTable tbody tr td:last-child {
  border-right: 1px solid rgba(0, 0, 0, 0.04);
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

div.dt-container .dt-layout-row:first-child {
  margin-bottom: 12px;
}

div.dt-container .dt-search input,
div.dt-container .dt-length select {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

div.dt-container .dt-paging .dt-paging-button {
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
}

div.dt-container .dt-paging .dt-paging-button.current {
  background: #111111 !important;
  color: #ffffff !important;
}

div.dt-container .dt-info,
div.dt-container .dt-length,
div.dt-container .dt-search,
div.dt-container .dt-paging {
  color: var(--muted);
}

@media (max-width: 1200px) {
  .hero,
  .viz-grid,
  .analysis-grid,
  .overview-grid,
  .spotlight-list,
  .focus-points {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .dashboard-shell {
    width: min(100vw - 20px, 1520px);
    padding-top: 10px;
  }

  .hero,
  .control-stage,
  .viz-stage,
  .table-stage,
  .signal-stage,
  .overview-card,
  .dark-band {
    border-radius: 24px;
  }

  .hero,
  .control-stage,
  .viz-stage,
  .table-stage,
  .signal-stage {
    padding: 18px;
  }

  .dark-band {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-lockup {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .brand-lockup img {
    width: 160px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .viz-stage canvas {
    min-height: 150px;
    max-height: 150px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .date-inputs {
    flex-direction: column;
  }

  .date-inputs input {
    width: 100%;
  }
}
