/* =========================================================================
   DD INSIGHTS · Look von Digitale Dinge (digitaledin.ge)
   Farben: Navy #051B3F, Violett #7F75F8, Gelb #FED13F, Rosé #FBECFF.
   Schrift: Montserrat als Ersatz für FF Mark Pro (Lizenzschrift von DD).
   Lädt nach theme.css und überschreibt dessen Variablen, damit auch
   Login, Verwaltung und Antwortdetails im DD-Look erscheinen.
   ========================================================================= */

/* ---- SCHRIFT ----------------------------------------------------------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url("/static/fonts/montserrat-latin.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url("/static/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 500 900; font-display: swap;
  src: url("/static/fonts/montserrat-latin-italic.woff2") format("woff2"); }

/* ---- VARIABLEN (überschreiben theme.css) -------------------------------- */
:root, :root[data-theme] {
  --dd-navy: #051B3F; --dd-navy-2: #0C2A50; --dd-violet: #7F75F8; --dd-violet-2: #6A5FF0;
  --dd-lilac: #B9B3FB; --dd-yellow: #FED13F; --dd-rose: #FBECFF; --dd-ground: #F3F1FF;
  --dd-line: #EDEAFB; --dd-muted: #4A5878;
  --bg: var(--dd-ground); --panel: #FFFFFF; --deep: var(--dd-line); --line: var(--dd-line);
  --ink: var(--dd-navy); --ink-dim: var(--dd-muted); --lav: var(--dd-lilac); --on-lav: var(--dd-navy);
  --lav-ink: #4B3FD9; --link-hover: var(--dd-navy); --action: var(--dd-yellow); --action-hover: #F2C21C;
  --head-bg: var(--dd-violet); --red: #C2185B; --red-ink: #A3124B; --red-soft: #FCE4EE;
  --f-display: "Montserrat", system-ui, sans-serif; --f-brand: "Montserrat", system-ui, sans-serif;
  --f-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 22px; --radius-s: 14px;
}
body.dd { background: var(--dd-ground); color: var(--dd-navy); font-family: var(--f-body); margin: 0; }
.dd a { color: var(--lav-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.is-white { color: #FFFFFF; } .is-yellow { color: var(--dd-yellow); } .is-violet { color: var(--dd-violet); }

/* ---- RAHMEN: Seitenleiste + Inhalt -------------------------------------- */
.dd-frame { min-height: 100vh; box-sizing: border-box; padding: 18px; display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.dd-rail { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--dd-navy);
  border-radius: 26px; padding: 18px 0; flex: 1 0 72px; max-width: 72px; }
.dd-rail__mark { width: 44px; height: 44px; border-radius: 999px; background: var(--dd-violet); color: var(--dd-navy);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-style: italic; font-size: 15px; margin-bottom: 10px; }
.dd-rail__btn { width: 44px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  color: var(--dd-lilac) !important; background: none; border: 0; cursor: pointer; }
.dd-rail__btn:hover { background: var(--dd-navy-2); }
.dd-rail__btn.is-on { background: var(--dd-yellow); color: var(--dd-navy) !important; }
.dd-rail__end { margin: auto 0 0; }
.dd-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; max-width: none; padding: 0; margin: 0; }
.dd-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--dd-muted); padding: 4px 6px 10px; }

/* ---- KOPF --------------------------------------------------------------- */
.dd-head { background: var(--dd-violet); border-radius: 26px; padding: 28px 34px; display: flex; flex-wrap: wrap; gap: 22px;
  justify-content: space-between; align-items: center; }
.dd-head--dark { background: var(--dd-navy); }
.dd-head__text { display: flex; flex-direction: column; gap: 12px; min-width: 0; flex: 1 1 420px; }
.dd-head__brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dd-head .logo { height: 34px; width: auto; }
.dd-head__label { font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--dd-navy); }
.dd-head--dark .dd-head__label { color: var(--dd-lilac); }
.dd-head__title { margin: 0; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.02; font-weight: 900; font-style: italic;
  text-transform: uppercase; letter-spacing: -.01em; color: var(--dd-navy); }
.dd-head--dark .dd-head__title { color: #FFFFFF; }
.dd-head__sub { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--dd-navy); max-width: 64ch; }
.dd-head--dark .dd-head__sub { color: #E4E1FF; }
.dd-head__side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.dd-head__row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.dd-head__state { margin: 0; font-size: 12px; font-weight: 700; color: var(--dd-navy); }
.dd-head--dark .dd-head__state { color: var(--dd-lilac); }
.dd-seg { display: flex; flex-wrap: wrap; gap: 6px; background: var(--dd-violet-2); border-radius: 999px; padding: 5px; }
.dd-head--dark .dd-seg { background: var(--dd-navy-2); }
.dd-seg__btn { font-size: 13px; font-weight: 700; color: #FFFFFF !important; text-decoration: none; border-radius: 999px; padding: 10px 16px; min-height: 20px; }
.dd-seg__btn.is-on { background: #FFFFFF; color: var(--dd-navy) !important; font-weight: 800; }
.dd-month { display: flex; gap: 6px; align-items: center; }
.dd-month__select { font: 700 13px var(--f-body); color: var(--dd-navy); background: #FFFFFF; border: 0; border-radius: 999px; padding: 11px 14px; min-height: 44px; }
.dd-month__go { font: 700 13px var(--f-body); color: var(--dd-navy); background: var(--dd-rose); border: 0; border-radius: 999px; padding: 11px 14px; min-height: 44px; cursor: pointer; }
.dd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box;
  font: italic 900 13px var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--dd-navy) !important;
  background: var(--dd-yellow); border: 0; border-radius: 999px; padding: 12px 24px; text-decoration: none; align-self: flex-start; }
.dd-btn:hover { background: #F2C21C; }

/* ---- KENNZAHLEN --------------------------------------------------------- */
.dd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.dd-kpi { background: #FFFFFF; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.dd-kpi--dark { background: var(--dd-navy); }
.dd-kpi__label { margin: 0; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dd-muted); }
.dd-kpi--dark .dd-kpi__label { color: var(--dd-lilac); }
.dd-kpi__value { margin: 0; font-size: 44px; font-weight: 900; font-style: italic; color: var(--dd-navy); font-variant-numeric: tabular-nums; }
.dd-kpi--dark .dd-kpi__value { color: var(--dd-yellow); }
.dd-kpi__value.is-empty { color: #A4ADC2; }
.dd-kpi__sub { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--dd-muted); }
.dd-kpi--dark .dd-kpi__sub { color: #E4E1FF; }

/* ---- SPALTEN UND KARTEN ------------------------------------------------- */
.dd-cols { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.dd-col { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.dd-col--wide { flex: 999 1 460px; }
.dd-card { background: #FFFFFF; border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.dd-card--navy { background: var(--dd-navy); }
.dd-card--rose { background: var(--dd-rose); }
.dd-card--flush { padding: 8px 20px 16px; }
.dd-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dd-card__meta { font-size: 12px; font-weight: 700; color: var(--dd-muted); }
.dd-card__meta--light { color: var(--dd-lilac); }
.dd-h2 { margin: 0; font-size: 21px; font-weight: 900; font-style: italic; text-transform: uppercase; color: var(--dd-navy); }
.dd-h2--light { color: #FFFFFF; font-size: 23px; }
.dd-eyebrow { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dd-muted); }
.dd-pill { font-size: 12px; font-weight: 800; color: var(--dd-navy); background: var(--dd-rose); border-radius: 999px; padding: 5px 12px; }
.dd-fine { margin: 0; font-size: 13px; line-height: 1.5; color: var(--dd-muted); }
.dd-fine--dark { color: #3C4A6B; } .dd-fine--light { color: #E4E1FF; }
.dd-link { font-size: 13.5px; font-weight: 800; text-decoration: none; }

/* ---- RAKETEN: Quote je Marke -------------------------------------------- */
.rockets { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 12px; align-items: end; }
.rocket { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.rocket__pct { font-size: 20px; font-weight: 900; font-style: italic; color: var(--dd-yellow); font-variant-numeric: tabular-nums; }
.rocket__track { position: relative; width: 100%; max-width: 64px; height: 220px; border-radius: 999px; background: var(--dd-navy-2); }
.rocket__fill { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 999px; background: var(--dd-violet); }
.rocket__prev { position: absolute; left: 8%; right: 8%; border-top: 2px dashed var(--dd-rose); opacity: .7; }
.rocket__ship { position: absolute; left: 50%; transform: translateX(-50%); line-height: 0; }
.rocket__name { font-size: 12.5px; font-weight: 800; color: #FFFFFF; text-align: center; line-height: 1.25; }
.rocket__n { font-size: 11px; font-weight: 700; color: var(--dd-lilac); }

/* ---- PLATTFORM-BALKEN --------------------------------------------------- */
.dd-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dd-bars__row { display: grid; grid-template-columns: 110px 1fr 56px; gap: 12px; align-items: center; }
.dd-bars__name { font-size: 14.5px; font-weight: 700; }
.dd-bars__track { height: 14px; border-radius: 999px; background: var(--dd-line); overflow: hidden; }
.dd-bars__fill { display: block; height: 100%; border-radius: 999px; background: var(--dd-violet); }
.dd-bars__value { font-size: 14px; font-weight: 900; font-style: italic; text-align: right; font-variant-numeric: tabular-nums; }
.dd-bars__value.is-empty { color: #A4ADC2; }

/* ---- ORBIT: Wettbewerb -------------------------------------------------- */
.orbit { position: relative; height: 300px; width: 100%; max-width: 360px; align-self: center; }
.orbit__ring { position: absolute; left: 50%; top: 50%; border-radius: 999px; border: 1.5px dashed var(--dd-lilac); }
.orbit__ring--out { width: 270px; height: 270px; margin: -135px 0 0 -135px; }
.orbit__ring--in { width: 170px; height: 170px; margin: -85px 0 0 -85px; }
.orbit__core { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 999px;
  background: var(--dd-navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.orbit__core span { font-size: 12px; font-weight: 900; font-style: italic; color: var(--dd-yellow); }
.orbit__core small { font-size: 11px; font-weight: 700; color: #E4E1FF; }
.orbit__sat { position: absolute; border-radius: 999px; background: #FFFFFF; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 2px; box-sizing: border-box; }
.orbit__sat.is-rival { background: var(--dd-lilac); }
.orbit__sat span { font-size: 10.5px; font-weight: 800; line-height: 1.1; }
.orbit__sat small { font-size: 10.5px; font-weight: 700; }

/* ---- QUELLEN UND STAND -------------------------------------------------- */
.dd-hosts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; counter-reset: h; }
.dd-hosts li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; border-bottom: 1px solid var(--dd-line); padding-bottom: 6px; }
.dd-hosts span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-hosts b { font-weight: 900; font-style: italic; }
.dd-facts { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.dd-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.dd-facts dt { color: var(--dd-muted); } .dd-facts dd { margin: 0; font-weight: 800; text-align: right; }

/* ---- ERGEBNISRASTER ----------------------------------------------------- */
.dd-grid { border-collapse: collapse; width: 100%; min-width: 820px; }
.dd-grid thead th { text-align: center; padding: 16px 8px 10px; border-bottom: 2px solid var(--dd-navy); font-size: 10.5px;
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.dd-grid thead th.dd-grid__q { text-align: left; }
.dd-grid tbody th.dd-grid__q { text-align: left; font-weight: 500; padding: 10px; border-bottom: 1px solid var(--dd-ground); font-size: 14px; }
.dd-grid__num { font-weight: 800; color: var(--dd-violet); margin-right: 10px; font-variant-numeric: tabular-nums; }
.dd-grid__c { text-align: center; padding: 8px; border-bottom: 1px solid var(--dd-ground); }
.dd-grid__group th { text-align: left; padding: 20px 10px 8px; border-bottom: 1px solid var(--dd-line); }
.dd-grid__site { font-size: 12px; font-weight: 700; color: var(--dd-muted); margin-left: 10px; }
.dd-tag { font-size: 13px; font-weight: 900; font-style: italic; text-transform: uppercase; border-radius: 999px; padding: 5px 12px; }
.dd-tag--0 { background: var(--dd-lilac); } .dd-tag--1 { background: var(--dd-violet); }
.dd-tag--2 { background: var(--dd-rose); } .dd-tag--3 { background: var(--dd-yellow); }
.chip { border-radius: 999px !important; font-family: var(--f-body); font-weight: 800; min-width: 44px; display: inline-block; text-align: center; padding: 5px 9px; }
.chip--pos { background: var(--dd-violet) !important; color: var(--dd-navy) !important; }
.chip--ja { background: var(--dd-lilac) !important; color: var(--dd-navy) !important; }
.chip--nein, .chip--none { background: var(--dd-ground) !important; color: var(--dd-muted) !important; }
.chip--fehler { background: none !important; border: 1px solid #C9CEDB; color: var(--dd-muted) !important; }
.dd-empty { align-items: center; text-align: center; }
.dd-empty__dash { font-size: 44px; font-weight: 900; color: #A4ADC2; margin: 0; }

/* ---- ANDERE SEITEN (Login, Verwaltung, Details) ------------------------- */
.dd .pagehead h1, .dd h1 { font-family: var(--f-body); font-weight: 900; font-style: italic; text-transform: uppercase; }
.dd .card { border-radius: 22px; border: 0; }
.dd .btn--red, .dd .btn { border-radius: 999px; }


/* ---- LOGIN: Navy-Bühne, weißes Logo bleibt weiß --------------------------- */
body.dd.is-login { background: var(--dd-navy); }
body.dd.is-login .dd-frame { background: var(--dd-navy); }
body.dd.is-login .page { background: var(--dd-navy); min-height: 100vh; padding: 24px; }
body.dd.is-login .login__brand .eyebrow { color: #fff; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: 0.02em; }
body.dd.is-login .login__card { border-radius: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
body.dd.is-login .login__title { font-weight: 900; font-style: italic; text-transform: uppercase; color: var(--dd-navy); }
body.dd.is-login .btn--red { background: var(--dd-yellow); color: var(--dd-navy); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .04em; }
body.dd.is-login .btn--red:hover { background: var(--dd-violet); color: #fff; }
body.dd.is-login .footer, body.dd.is-login .login + footer, body.dd.is-login footer { color: var(--dd-lilac); }
body.dd.is-login footer a { color: #fff; }

/* ---- MOBIL -------------------------------------------------------------- */
@media (max-width: 720px) {
  .dd-frame { padding: 10px; gap: 10px; }
  .dd-rail { flex-direction: row; max-width: none; padding: 8px 12px; border-radius: 22px; }
  .dd-rail__mark { margin: 0 6px 0 0; }
  .dd-rail__end { margin: 0 0 0 auto; }
  .dd-head { padding: 20px; border-radius: 22px; }
  .dd-head__side { align-items: stretch; width: 100%; }
  .dd-seg { justify-content: space-between; }
  .dd-seg__btn { flex: 1; text-align: center; padding: 10px 8px; }
  .dd-head__row { justify-content: stretch; }
  .dd-btn { align-self: stretch; }
  .rocket__track { height: 150px; }
  .rocket__pct { font-size: 15px; }
  .rocket__name { font-size: 10.5px; }
  .dd-bars__row { grid-template-columns: 92px 1fr 48px; }
  .dd-kpi__value { font-size: 36px; }
}
