/* Social Seed Reporting (rep-01) · mobil zuerst */
@font-face { font-family: "PJS"; src: url("/a/schrift/pjs-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PJS"; src: url("/a/schrift/pjs-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "PJS"; src: url("/a/schrift/pjs-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PJS"; src: url("/a/schrift/pjs-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "SG"; src: url("/a/schrift/sg-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "SG"; src: url("/a/schrift/sg-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --blau: #2563EB; --hellblau: #0EA5E9; --tiefblau: #1A3A8F; --text: #161823; --marine: #0A1530;
  --tuerkis: #69C9D0; --weiss: #FFFFFF; --flaeche: #F3F5F8; --linie: #E5E8EB; --grau: #62626F;
  --gut: #047857; --gut-bg: #E7F6EF; --schlecht: #C2410C; --schlecht-bg: #FDEEE6;
  --verlauf: linear-gradient(to right, #2563EB, #0EA5E9);
  --schrift: "PJS", system-ui, -apple-system, "Segoe UI", sans-serif;
  --zahl: "SG", "PJS", system-ui, sans-serif;
  --radius: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--flaeche); color: var(--text); font-family: var(--schrift); font-size: 16px; line-height: 1.5; word-spacing: .06em; }
a { color: var(--blau); }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }

/* ── Anmeldung ─────────────────────────────────────────── */
.seite-login { min-height: 100vh; background: radial-gradient(1200px 600px at 100% -10%, rgba(14,165,233,.16), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(37,99,235,.14), transparent 60%), var(--flaeche); }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-karte { width: 100%; max-width: 400px; background: var(--weiss); border: 1px solid var(--linie); border-radius: 24px; padding: 32px 24px 24px; box-shadow: 0 24px 60px -30px rgba(10,21,48,.35); }
.login-karte .logo { width: 168px; margin-bottom: 28px; }
.login-karte h1 { font-size: 26px; line-height: 1.2; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.01em; }
.leise { color: var(--grau); margin: 0; }
.klein { color: var(--grau); font-size: 13px; margin: 18px 0 0; }
form label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
form input { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 1px solid var(--linie); border-radius: 12px; background: var(--weiss); color: var(--text); }
form input:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.knopf { display: block; width: 100%; margin-top: 22px; padding: 14px 18px; border: 0; border-radius: 12px; background: var(--verlauf); color: var(--weiss); font-weight: 700; font-size: 16px; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(37,99,235,.8); }
.knopf:hover { filter: brightness(1.05); }
.meldung { margin: 18px 0 0; padding: 11px 14px; border-radius: 12px; background: var(--schlecht-bg); color: #9A3412; font-size: 14px; font-weight: 600; }
.meldung.gut { background: var(--gut-bg); color: var(--gut); }

/* ── Kopf ──────────────────────────────────────────────── */
.kopf { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--linie); }
.kopf .logo { width: 132px; }
.konto { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.konto .name { display: none; color: var(--grau); }
.konto a, .link { color: var(--text); text-decoration: none; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; }
.konto a:hover, .link:hover { color: var(--blau); }
.konto form { margin: 0; }
.konto a[href="/passwort"] { display: none; }

/* ── Bericht ───────────────────────────────────────────── */
.bericht { max-width: 1120px; margin: 0 auto; padding: 22px 16px 40px; }
.titel h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.titel h1 .verlauf { display: block; background: linear-gradient(135deg, #0EA5E9, #2563EB, #1A3A8F); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 2px; }
.titel .leise { margin-top: 8px; font-size: 14px; }

.tabs { display: flex; gap: 8px; margin: 22px -16px 18px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--linie); background: var(--weiss); color: var(--text); font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; }
.tab[aria-selected="true"] { background: var(--marine); border-color: var(--marine); color: var(--weiss); }

.raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.kachel { position: relative; min-width: 0; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px; }
.kachel.breit-mobil { grid-column: span 2; }
.k-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.k-titel { font-weight: 600; font-size: 14px; color: var(--grau); line-height: 1.3; }
.k-wert { margin-top: 8px; font-family: var(--zahl); font-weight: 700; font-size: 26px; line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.k-unter { margin-top: 6px; font-size: 13px; color: var(--grau); line-height: 1.35; }
.k-unter b { color: var(--text); font-weight: 600; }

.delta { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 999px; font-family: var(--zahl); font-weight: 600; font-size: 12px; line-height: 1.2; white-space: nowrap; background: var(--flaeche); color: var(--grau); }
.delta svg { width: 10px; height: 10px; }
.delta.gut { background: var(--gut-bg); color: var(--gut); }
.delta.schlecht { background: var(--schlecht-bg); color: var(--schlecht); }
.k-unter .delta { padding: 1px 6px; font-size: 11px; margin-left: 4px; vertical-align: 1px; }

.kachel.leads { border: 0; background: var(--verlauf); color: var(--weiss); box-shadow: 0 16px 34px -20px rgba(37,99,235,.9); }
.kachel.leads .k-titel, .kachel.leads .k-unter, .kachel.leads .k-unter b { color: rgba(255,255,255,.92); }
.kachel.leads .delta { background: rgba(255,255,255,.2); color: var(--weiss); }

.kachel.zeitraum { grid-column: span 2; order: -1; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.segment { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--flaeche); }
.segment button { padding: 10px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--grau); font-weight: 600; font-size: 15px; cursor: pointer; }
.segment button[aria-pressed="true"] { background: var(--weiss); color: var(--text); box-shadow: 0 1px 3px rgba(10,21,48,.12); }
.spanne { display: grid; gap: 8px; font-size: 14px; color: var(--grau); }
.sp-zeile { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.sp-label { font-weight: 600; color: var(--grau); }
.sp-wert { color: var(--text); }
.sp-wert b { font-weight: 700; }
.sp-klein { display: block; margin-top: 1px; font-size: 12.5px; color: var(--grau); }
.kachel.spend { grid-column: span 2; }
.kachel.spend .k-wert { font-size: 30px; }

.hinweis { margin: 4px 0 16px; padding: 12px 14px; border-radius: 14px; background: #FFF7ED; color: #9A3412; font-size: 14px; }
.leer { padding: 28px 20px; text-align: center; background: var(--weiss); border: 1px dashed var(--linie); border-radius: var(--radius); color: var(--grau); }
.laedt { height: 420px; border-radius: var(--radius); background: linear-gradient(90deg, #ECEFF3 0%, #F6F7F9 50%, #ECEFF3 100%); background-size: 200% 100%; animation: glanz 1.4s linear infinite; }
@keyframes glanz { to { background-position: -200% 0; } }

.fuss { margin-top: 28px; }
.legende { background: var(--weiss); border: 1px solid var(--linie); border-radius: 22px; padding: 22px 18px; }
.legende h2 { margin: 0 0 14px; font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.legende h3 { margin: 22px 0 10px; font-size: 16px; font-weight: 700; }
.leg-vergleich { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 12px 14px; border-radius: 14px; background: var(--flaeche); font-size: 13.5px; color: var(--grau); }
.leg-chip { display: inline-flex; align-items: center; gap: 10px; }
.leg-chip .delta { min-width: 56px; justify-content: center; }
.leg-chip .delta:not(.gut):not(.schlecht) { background: var(--weiss); }
.begriffe { margin: 14px 0 0; }
.begriffe div { padding: 11px 0; border-bottom: 1px solid var(--linie); break-inside: avoid; }
.begriffe div:last-child { border-bottom: 0; }
.begriffe dt { font-weight: 700; font-size: 14.5px; color: var(--text); }
.begriffe dd { margin: 2px 0 0; font-size: 14px; color: var(--grau); line-height: 1.45; }
.quellen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.quellen li { position: relative; padding: 12px 14px 12px 40px; border: 1px solid var(--linie); border-radius: 14px; font-size: 14px; line-height: 1.45; color: var(--grau); }
.quellen li::before { content: ""; position: absolute; left: 14px; top: 15px; width: 14px; height: 14px; border-radius: 50%; background: var(--verlauf); }
.quellen li.q-tracking::before { background: var(--tuerkis); }
.quellen li.q-pixel::before { background: conic-gradient(from 0deg, #0EA5E9, #2563EB, #1A3A8F, #06B6D4, #3B82F6, #0EA5E9); }
.quellen b { display: block; color: var(--text); font-weight: 700; }
.leg-stand { margin: 16px 0 0; font-size: 13px; color: var(--grau); }
.marke { margin: 22px 2px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--grau); }
.marke img { width: 112px; }
.marke a { color: var(--grau); text-decoration: none; font-weight: 600; }
.marke a:hover { color: var(--blau); }

@media (min-width: 560px) {
  .k-wert { font-size: 30px; }
  .kachel { padding: 18px 20px; }
  .begriffe div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: baseline; }
  .begriffe dd { margin: 0; }
  .legende { padding: 26px 24px; }
}

@media (min-width: 860px) {
  .kopf { padding: 14px 28px; }
  .kopf .logo { width: 150px; }
  .konto .name, .konto a[href="/passwort"] { display: inline; }
  .bericht { padding: 34px 28px 56px; }
  .titel h1 { font-size: 40px; }
  .titel h1 .verlauf { display: inline; }
  .tabs { margin: 26px 0 22px; padding: 0; flex-wrap: wrap; }
  .raster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
  .kachel.breit-mobil { grid-column: auto; }
  .kachel.spend { grid-column: 1; }
  .kachel.zeitraum { grid-column: 2 / span 2; order: 0; }
  .kachel { padding: 20px 22px; min-height: 132px; }
  .k-wert { font-size: 34px; }
  .kachel.spend .k-wert { font-size: 38px; }
  .begriffe { columns: 2; column-gap: 44px; }
  .begriffe div:last-child { border-bottom: 1px solid var(--linie); }
  .quellen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .legende { padding: 30px 30px 26px; }
  .sp-zeile { grid-template-columns: 82px minmax(0, 1fr); }
  .sp-klein { display: inline; margin: 0 0 0 8px; }
}

@media (prefers-reduced-motion: reduce) { .laedt { animation: none; } }
