/* Dudes Business Intelligence — Stil wie Fucky Creative Studio */
@font-face { font-family: Celmates; src: url("/static/fonts/celmates.woff2") format("woff2"); font-display: swap; }
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
:root { --ink: #111; --paper: #f1efe9; --white: #fff; --grey: #8a867e; --line: 2px solid var(--ink); --live: #e0261b; --ok: #1f9d55; --warn: #d08a00; --brick: #e8632a; --b2b: #111; --b2c: #e8632a; color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.35 Poppins, "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; }
.brand, .title { font-family: Celmates, Poppins, sans-serif; letter-spacing: .02em; }
.h { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; font-weight: 600; }
.fine { font-size: 12px; color: #5d5a54; margin: 8px 0 0; }
.error { color: var(--live); font-weight: 600; min-height: 1.4em; }
.btn { appearance: none; border: var(--line); background: var(--white); color: var(--ink); font: 600 13px/1.15 Poppins, sans-serif; padding: 9px 12px; min-height: 40px; cursor: pointer; border-radius: 0; box-shadow: 3px 3px 0 var(--ink); transition: transform .08s, box-shadow .08s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.is-on, .btn--solid { background: var(--ink); color: var(--white); }
.btn--big { min-height: 52px; font-size: 16px; width: 100%; justify-content: center; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
input, select, textarea { font: inherit; border: var(--line); background: var(--white); padding: 9px 12px; min-height: 42px; border-radius: 0; width: 100%; color: var(--ink); }
textarea { font-family: ui-monospace, Menlo, monospace; font-size: 13px; min-height: 120px; }
label { display: block; font-weight: 600; font-size: 13px; margin: 10px 0; }
/* Login */
#login { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; background: var(--ink) repeating-linear-gradient(0deg, transparent 0 38px, #000 38px 42px), repeating-linear-gradient(90deg, transparent 0 86px, #000 86px 90px); background-color: var(--brick); }
.login { width: min(420px, 100%); background: var(--paper); border: var(--line); padding: 24px; box-shadow: 6px 6px 0 #444; }
.login .title { text-align: center; font-size: 30px; line-height: 1.05; margin: 8px 0 16px; }
.login .sub { text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: -10px 0 18px; }
/* Kopf */
.top { position: sticky; top: 0; z-index: 5; background: var(--ink); color: var(--white); padding: 10px 14px; }
.top__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.top .brand { font-size: 24px; }
.top .sub { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .85; border-left: 1px solid #555; padding-left: 14px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.tab { flex: 0 0 auto; border: 2px solid #555; background: transparent; color: var(--white); font: 600 12px Poppins, sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.tab.is-on { background: var(--white); color: var(--ink); border-color: var(--white); }
.schalter { display: flex; gap: 0; border: 2px solid var(--brick); }
.tab--kanal { border: 0; border-right: 2px solid var(--brick); font-size: 11px; padding: 7px 10px; } .tab--kanal:last-child { border-right: 0; }
.tab--kanal.is-on { background: var(--brick); color: var(--white); border-color: var(--brick); }
.wer { font-size: 12px; opacity: .85; }
.wer a { margin-left: 8px; }
/* Fläche */
.main { padding: 14px; display: grid; gap: 14px; max-width: 1280px; margin: 0 auto; }
.card { background: var(--white); border: var(--line); padding: 14px; box-shadow: 4px 4px 0 var(--ink); min-width: 0; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.row--2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.kpi { display: grid; gap: 4px; }
.kpi .wert { font-family: Celmates, Poppins, sans-serif; font-size: 30px; line-height: 1; }
.kpi .teil { display: flex; gap: 10px; font-size: 12px; flex-wrap: wrap; }
.kpi .teil b { font-weight: 700; }
.delta { font-size: 12px; font-weight: 700; padding: 2px 6px; border: 1px solid; display: inline-block; }
.delta.up { color: var(--ok); border-color: var(--ok); } .delta.down { color: var(--live); border-color: var(--live); } .delta.flat { color: var(--grey); border-color: var(--grey); }
.punkt { display: inline-block; width: 10px; height: 10px; border: 1px solid var(--ink); vertical-align: middle; margin-right: 4px; }
.punkt.b2b { background: var(--b2b); } .punkt.b2c { background: var(--b2c); }
/* Tabellen */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #ddd; vertical-align: middle; }
th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border-bottom: var(--line); }
td.z, th.z { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:hover td { background: #faf9f5; }
.thumb { width: 56px; height: 56px; object-fit: cover; border: var(--line); background: var(--paper); display: block; }
.rang { font-family: Celmates, Poppins, sans-serif; font-size: 20px; width: 36px; text-align: center; }
.name { font-weight: 600; } .name small { display: block; font-weight: 400; color: var(--grey); font-size: 11px; }
.balken { height: 10px; background: var(--paper); border: 1px solid var(--ink); position: relative; min-width: 80px; }
.balken i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.tabelle-scroll { overflow-x: auto; }
.chip { font-size: 11px; font-weight: 700; padding: 3px 7px; border: 1px solid var(--ink); letter-spacing: .04em; white-space: nowrap; }
.chip.ok { color: var(--ok); border-color: var(--ok); } .chip.bad { color: var(--live); border-color: var(--live); }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1 1 200px; }
pre { white-space: pre-wrap; font-size: 12px; }
.matrix td.sum, .matrix th.sum { font-weight: 700; border-left: var(--line); }
@media (max-width: 720px) { .top .sub { display: none; } .kpi .wert { font-size: 24px; } .main { padding: 10px; } }
