/* HypeClips – dunkel, Apple-Stil, genau eine Akzentfarbe. Hex-Werte nur hier in :root. */
:root {
  --bg: #000000;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --frame: #3a3a3c;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --accent: #2997ff;
  --accent-hover: #5eb0ff;
  --btn: #0071e3;
  --btn-text: #ffffff;
  --ok: #30d158;
  --warn: #ff9f0a;
  --seg-active: #636366;
  --seg-text: #d1d1d6;
}

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/Inter-Regular.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(fonts/Inter-Medium.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/Inter-SemiBold.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(fonts/Inter-Bold.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(fonts/Inter-ExtraBold.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 900; font-display: swap; src: url(fonts/Inter-Black.woff2) format("woff2"); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.47 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }

/* Navigation */
.site-header { border-bottom: 1px solid var(--surface); }
.nav { max-width: 1280px; margin: 0 auto; padding: 18px 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.logo, .logo:hover { color: var(--text); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; }
.nav-links a { color: var(--text-2); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-links a[aria-current] { font-weight: 600; }
.worker { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; }
.dot.off { background: var(--warn); }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font-size: 15px; font-weight: 500; cursor: pointer; }
.link-btn:hover { color: var(--accent-hover); }

/* Layout */
.page { max-width: 1280px; margin: 0 auto; padding: 0 40px 96px; }
.section { padding-top: 112px; }
.hero { padding: 96px 0 64px; }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--accent); margin-bottom: 16px; }
h1 { font-size: 88px; line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
h1.quote { font-size: 60px; line-height: 1.05; overflow-wrap: anywhere; }
.lead { margin-top: 24px; max-width: 820px; font-size: 30px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; color: var(--text-3); }
.lead.small { margin: 8px 0 24px; font-size: 24px; line-height: 1.3; letter-spacing: -0.015em; }
h2 { margin-bottom: 40px; font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.strong { color: var(--text); }
.rest { color: var(--text-3); }
.muted { color: var(--text-2); }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.accent { color: var(--accent); }
.back { display: inline-block; margin-top: 40px; font-size: 16px; font-weight: 500; }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.stat { background: var(--surface); border-radius: 22px; padding: 28px; }
.stat-value { font-size: 52px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.stat-label { margin-top: 6px; font-size: 15px; color: var(--text-2); }

/* Buttons */
.btn { display: inline-block; text-align: center; border: 0; cursor: pointer; font-size: 16px; font-weight: 600; padding: 14px 20px; border-radius: 980px; background: var(--surface-2); color: var(--text); }
.btn:hover { color: var(--text); opacity: 0.88; }
.btn-primary, .btn-primary:hover { background: var(--btn); color: var(--btn-text); }
.btn-outline, .btn-outline:hover { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-big { display: block; width: 100%; font-size: 18px; padding: 18px; border-radius: 14px; }
.btn-action { flex: 1; min-width: 200px; padding: 15px; border-radius: 14px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row form { display: contents; }
.grow { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); color: var(--text); border: 0; font-size: 15px; padding: 10px 18px; border-radius: 980px; cursor: pointer; }
.pill input[type=number] { width: 64px; background: transparent; border: 0; border-bottom: 1px solid var(--frame); text-align: right; font-weight: 600; }
.pill input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.chip { background: var(--surface-2); color: var(--text); padding: 7px 14px; border-radius: 980px; }
a.chip:hover { color: var(--text); opacity: 0.85; }
a.chip[aria-current] { background: var(--text); color: var(--bg); font-weight: 600; }

/* Clip-Karten */
.clip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; }
.clip-card { background: var(--surface); border-radius: 30px; padding: 36px 32px 32px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.clip-card { padding-left: 28px; padding-right: 28px; }
.clip-card .btn { font-size: 15px; padding: 14px 16px; white-space: nowrap; }
.clip-card > .clip-info, .clip-card > .btn-row { align-self: stretch; }
.clip-title { font-size: 21px; line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.clip-title .rest { color: var(--text-2); font-weight: 600; }
.clip-meta { display: flex; gap: 16px; margin-top: 14px; font-size: 14px; color: var(--text-2); flex-wrap: wrap; }
.clip-meta b { color: var(--text); font-weight: 600; }
.empty { background: var(--surface); border-radius: 30px; padding: 48px 32px; color: var(--text-2); text-align: center; }

/* Handy-Vorschau */
.phone { width: 236px; height: 500px; flex: none; border: 9px solid var(--frame); border-radius: 46px; background: var(--bg); overflow: hidden; position: relative; }
.phone::before { content: ""; position: absolute; top: 10px; left: 50%; margin-left: -38px; width: 76px; height: 22px; border-radius: 12px; background: var(--bg); z-index: 2; }
.phone video, .phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; font-size: 13px; color: var(--text-2); }
.phone-lg { width: 340px; height: 720px; border-width: 11px; border-radius: 60px; max-width: 100%; }
.phone-lg::before { top: 14px; margin-left: -54px; width: 108px; height: 30px; border-radius: 16px; }
.play { position: absolute; left: 50%; top: 50%; margin: -30px 0 0 -30px; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--text); color: var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3; }

/* Clip-Detail */
.detail { display: flex; flex-wrap: wrap; gap: 64px; margin-top: 40px; align-items: flex-start; }
.detail-preview { flex: 1 1 360px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.detail-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--surface); border-radius: 18px; padding: 18px 22px; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.label { font-size: 13px; color: var(--text-2); }
.value { margin-top: 4px; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.card .label + .seg, .card .label + .chips { margin-top: 12px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; background: var(--surface-2); border-radius: 12px; padding: 4px; }
.seg button { flex: 1; min-width: 120px; border: 0; font-size: 15px; font-weight: 600; padding: 10px 12px; border-radius: 9px; cursor: pointer; background: transparent; color: var(--seg-text); }
.seg button[aria-pressed=true] { background: var(--seg-active); color: var(--btn-text); }
.seg.compact button { min-width: 0; padding: 8px 10px; font-size: 14px; white-space: nowrap; }
.score-big { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.signals { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.signal-head { display: flex; justify-content: space-between; font-size: 15px; }
.bar { height: 6px; border-radius: 3px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.bar > span { display: block; height: 6px; border-radius: 3px; background: var(--accent); }
.hint { margin-top: 4px; font-size: 14px; color: var(--text-2); text-align: center; }
.field { width: 100%; background: var(--surface-2); border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; font-size: 16px; }
.field:focus { border-color: var(--accent); outline: none; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.inline-form .field { flex: 1; min-width: 180px; }
.notice { background: var(--surface); border-radius: 18px; padding: 16px 22px; margin-top: 24px; font-weight: 600; }

/* Tabellen */
.table-card { background: var(--surface); border-radius: 26px; padding: 8px 32px; overflow-x: auto; }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 17px; }
th { text-align: left; padding: 18px 16px 18px 0; font-size: 13px; font-weight: 600; color: var(--text-2); border-bottom: 1px solid var(--surface-2); white-space: nowrap; }
td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--surface-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { color: var(--text-2); font-weight: 600; width: 56px; }
td.small { font-size: 15px; }
td.b, td .b { font-weight: 600; }
td.wrap { overflow-wrap: anywhere; font-size: 14px; color: var(--text-2); }

/* Login und signierte Seiten */
.center { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 40px 24px; text-align: center; }
.center h2 { margin-bottom: 0; }
.center form { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 12px; }
.center .lead { margin-top: 0; font-size: 22px; }
.stack { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 12px; }
.error { color: var(--warn); font-size: 15px; font-weight: 600; }

@media (max-width: 700px) {
  .nav { padding: 16px 20px; }
  .page { padding: 0 20px 72px; }
  .hero { padding: 56px 0 40px; }
  .section { padding-top: 72px; }
  h1 { font-size: 53px; }
  h1.quote { font-size: 36px; }
  h2 { font-size: 26px; margin-bottom: 28px; }
  .lead { font-size: 21px; }
  .lead.small { font-size: 18px; }
  .stat-value { font-size: 40px; }
  .clip-grid { grid-template-columns: 1fr; }
  .clip-card { padding: 28px 20px 24px; }
  .table-card { padding: 4px 20px; }
  .detail { gap: 40px; }
}

/* Live-Ansicht */
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; }
.live-card { background: var(--surface); border-radius: 30px; padding: 32px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.live-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.spark { width: 100%; height: 72px; display: block; background: var(--surface-2); border-radius: 12px; }
.spark rect { fill: var(--text-3); }
.spark rect.hot { fill: var(--accent); }
.live-axis { display: flex; justify-content: space-between; margin-top: -10px; font-size: 13px; color: var(--text-2); }
.live-jobs { margin-bottom: 24px; }
