/* CompanyOS · Oberfläche: kühles Grüngrau, Verlaufs-Seitenleiste mit Punktraster,
   Serif-Kennzahlen, Mono-Mikrolabels, gestaffelte Einblendungen, Remix Icons, Mobil-Drawer. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  /* MJK Media: Weiß & klar, Blau #3b6bff nur als Akzent (Namen der Vorlage beibehalten, Werte MJK) */
  --green: #3b6bff; --green-mid: #2f5ae0; --green-dark: #0e1116;
  --white: #ffffff; --black: #0e1116;
  --cyan: #7d9cff; --cyan-bright: #3b6bff; --cyan-deep: #3b6bff;
  --text-56: #3a4048; --text-32: #6b7280;
  --white-72: #ffffffb8; --white-48: #ffffff7a; --white-32: #ffffff52;
  --white-16: #ffffff29; --white-10: #ffffff1a; --white-6: #ffffff0f;
  --border-light: #e5e7ec;
  --canvas: #f6f7f9; --tint: #f6f7f9; --tint-deep: #eaf0ff;
  --blau-soft: #eaf0ff; --linie: #e5e7ec;
  --grad-green-cyan-d: #ffffff;
  --r-card: 10px; --r-control: 7px; --r-chip: 6px; --r-pill: 999px;
  --card-shadow: 0 1px 2px rgba(14,17,22,.04), 0 10px 24px -10px rgba(14,17,22,.10);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --meta: #2a63a8; --meta-bg: #2a63a814;
  --google: #b07c2a; --google-bg: #b07c2a14;
  --organic: #2a8f85; --organic-bg: #2a8f8514;
  --nl: #a8386f; --nl-bg: #a8386f12;
}
html { font-family: 'Roboto', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
body { background: var(--canvas); color: var(--black); line-height: 1.5; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; background: none; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
.mono { font-family: 'Roboto', system-ui, sans-serif; }
.serif { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.08em; }
.ic { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; flex-shrink: 0; }
.ic i { font-size: 1em; line-height: 1; font-style: normal; }

/* ════════ Shell + Sidebar ════════ */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sb {
  background: var(--grad-green-cyan-d); color: var(--white);
  padding: 1.5rem 0 1.25rem; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; height: 100dvh;
}
.sb::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 0.75px, transparent 0.75px);
  background-size: 18px 18px; opacity: 0.5; pointer-events: none;
}
.sb > * { position: relative; z-index: 1; }
.sb-brand { padding: 0 1.3rem; margin-bottom: 1.35rem; display: flex; align-items: center; gap: 0.6rem; }
.sb-wordmark { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.sb-badge {
  font-family: 'Roboto', system-ui, sans-serif; font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 0.22rem 0.5rem;
  background: var(--white-10); border: 1px solid var(--white-16);
  border-radius: 4px; color: var(--cyan-bright);
}
.sb-scroll { flex: 1; overflow-y: auto; }
.sb-scroll::-webkit-scrollbar { width: 0; }
.sb-grouphead {
  width: 100%; padding: 0.5rem 1.25rem 0.35rem; text-align: left;
  font-family: 'Roboto', system-ui, sans-serif; font-size: 0.56rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--white-32);
}
.sb-nav { display: flex; flex-direction: column; padding: 0 0.6rem; gap: 0.34rem; margin-bottom: 0.6rem; }
.sb-nav a {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.5rem 0.72rem; border-radius: 0.5rem;
  font-size: 0.82rem; color: var(--white-48);
  transition: color 0.25s var(--ease-smooth), background 0.25s var(--ease-smooth);
}
.sb-nav a .ic { font-size: 1.02rem; }
.sb-nav a:hover { color: var(--white); background: var(--white-10); }
.sb-nav a.active { color: var(--white); background: var(--white-6); }
.sb-nav a.active::after {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan-bright); box-shadow: 0 0 8px var(--cyan-bright);
  margin-left: auto; flex-shrink: 0;
  animation: dot-in 0.45s var(--ease-spring) backwards;
}
@keyframes dot-in { from { transform: scale(0); opacity: 0; } }
.sb-user {
  margin: 0.8rem 1rem 0; padding-top: 0.9rem; border-top: 1px solid var(--white-10);
  display: flex; align-items: center; gap: 0.6rem;
}
.avatar {
  width: 2rem; height: 2rem; border-radius: var(--r-pill); flex-shrink: 0;
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 600;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-bright)); color: var(--green);
}
.sb-user .info { line-height: 1.25; flex: 1; min-width: 0; }
.sb-user strong { display: block; font-size: 0.8rem; font-weight: 500; }
.sb-user span { font-size: 0.68rem; color: var(--white-48); }
.sb-logout { color: var(--white-32); transition: color 0.2s; display: grid; place-items: center; }
.sb-logout:hover { color: var(--white); }
.scrim {
  position: fixed; inset: 0; z-index: 54; background: rgba(14,17,22,0.45);
  backdrop-filter: blur(2px); opacity: 0; pointer-events: none;
  transition: opacity 0.32s var(--ease-smooth);
}
body.drawer-open .scrim, body.lead-open .scrim { opacity: 1; pointer-events: auto; }

/* ════════ Main + Header ════════ */
.main { min-width: 0; display: flex; flex-direction: column; }
.view { display: none; flex-direction: column; flex: 1; }
.view.cur { display: flex; }
.page-header {
  background: var(--white); border-bottom: 1px solid var(--border-light);
  padding: 1.6rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.view.cur .page-header { animation: fade-down 0.55s var(--ease-smooth) backwards; }
@keyframes fade-down { from { opacity: 0; transform: translateY(-8px); } }
.page-header h1 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.page-header h1 .serif { color: var(--green-dark); font-weight: 400; }
.page-header p { font-size: 0.85rem; color: var(--text-56); margin-top: 0.1rem; }
.page-header .actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.52rem 0.95rem; border-radius: var(--r-control);
  font-size: 0.82rem; font-weight: 500;
  transition: all 0.22s var(--ease-smooth);
}
.btn:active { transform: scale(0.96); }
.btn .ic { font-size: 0.92rem; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-mid); box-shadow: 0 6px 16px -6px rgba(14,17,22,0.4); }
.btn-secondary { background: var(--white); border: 1px solid var(--border-light); color: var(--black); }
.btn-secondary:hover { border-color: var(--cyan-deep); color: var(--cyan-deep); }

.content { padding: 1.6rem 2rem 2.5rem; display: flex; flex-direction: column; gap: 1.15rem; }

/* ════════ Filterleiste ════════ */
.filters { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.view.cur .filters { animation: fade-down 0.55s 0.08s var(--ease-smooth) backwards; }
.seg { display: inline-flex; gap: 0.2rem; background: var(--white); border-radius: var(--r-control); padding: 0.18rem; box-shadow: var(--card-shadow); }
.seg button {
  padding: 0.32rem 0.75rem; border-radius: var(--r-chip);
  font-size: 0.76rem; font-weight: 500; color: var(--text-56);
  transition: all 0.25s var(--ease-smooth);
}
.seg button.active { background: var(--green); color: var(--white); }
.seg button:not(.active):hover { color: var(--green-dark); }
.filters .hint { font-size: 0.72rem; color: var(--text-32); margin-left: auto; }
.filters .hint .livedot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; margin-right: 0.35rem; box-shadow: 0 0 0 3px rgba(34,197,94,0.15); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(34,197,94,0.06); } }
.search {
  display: flex; align-items: center; gap: 0.5rem; min-width: 240px;
  background: var(--white); border-radius: var(--r-control); padding: 0.42rem 0.7rem;
  box-shadow: var(--card-shadow); border: 1.5px solid transparent; transition: border-color 0.2s;
}
.search:focus-within { border-color: var(--cyan-deep); }
.search .ic { color: var(--text-32); font-size: 0.9rem; }
.search input { border: none; outline: none; background: none; font-family: inherit; font-size: 0.8rem; flex: 1; min-width: 0; color: var(--black); }
.search input::placeholder { color: var(--text-32); }

/* ════════ Karten / Bento ════════ */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.15rem; }
.w {
  background: var(--white); border-radius: var(--r-card); box-shadow: var(--card-shadow);
  padding: 1.15rem 1.25rem; min-width: 0;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.65s var(--ease-smooth), transform 0.65s var(--ease-smooth),
              box-shadow 0.3s var(--ease-smooth);
}
.w.in { opacity: 1; transform: none; }
.w:hover { box-shadow: 0 2px 4px rgba(14,17,22,.05), 0 20px 36px -16px rgba(14,17,22,.16); }
.w .l {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-56); display: flex; align-items: center; gap: 0.45rem;
}
.w .l .ic { font-size: 0.95rem; color: var(--cyan-deep); }
.w .l .n { margin-left: auto; font-family: 'Roboto', system-ui, sans-serif; font-size: 0.6rem; text-transform: none; letter-spacing: 0; color: var(--text-32); font-weight: 400; }
.w .v {
  font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 400;
  font-size: 2rem; margin-top: 0.4rem; color: var(--green-dark);
  font-variant-numeric: tabular-nums;
}
.w .d { font-size: 0.74rem; font-weight: 500; margin-top: 0.15rem; }
.w .d.up { color: var(--cyan-deep); } .w .d.down { color: #dc2626; }

/* Hero (Spend) */
.w.hero {
  grid-column: span 4;
  background: radial-gradient(circle at 85% 8%, rgba(59,107,255,0.16) 0%, transparent 55%), var(--green-dark);
  color: var(--white);
}
.w.hero .l { color: var(--white-72); }
.w.hero .l .ic { color: var(--cyan-bright); }
.w.hero .v { font-size: 2.7rem; color: var(--white); }
.w.hero .v .euro { color: var(--cyan-bright); }
.w.hero .d.up { color: var(--cyan-bright); }
.w.hero .spark i { background: rgba(59,107,255,0.28); }
.w.hero .spark i:last-child { background: var(--cyan-bright); }

.w.kpi3 { grid-column: span 8; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0; }
.w.kpi3 > div { padding: 1.15rem 1.25rem; min-width: 0; }
.w.kpi3 > div + div { border-left: 1px solid var(--tint-deep); }

.spark { display: flex; align-items: flex-end; gap: 3px; height: 38px; margin-top: 0.7rem; }
.spark i {
  flex: 1; background: rgba(59,107,255,0.35); border-radius: 2px 2px 0 0;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.7s var(--ease-smooth);
}
.spark i:last-child { background: var(--cyan-deep); }
.w.in .spark i { transform: scaleY(1); }

/* Balken-Chart */
.w.chart { grid-column: span 8; }
.chart-bars { display: flex; align-items: flex-end; gap: 0.55rem; height: 150px; margin-top: 1.1rem; }
.chart-bars .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 100%; min-width: 0; }
.chart-bars .fill {
  background: var(--tint-deep); border-radius: 3px 3px 0 0;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.75s var(--ease-smooth);
}
.chart-bars .fill.good { background: var(--cyan-deep); border-radius: 0 0 3px 3px; }
.w.in .chart-bars .fill { transform: scaleY(1); }
.chart-days { display: flex; gap: 0.55rem; margin-top: 0.4rem; }
.chart-days span { flex: 1; font-family: 'Roboto', system-ui, sans-serif; font-size: 0.58rem; color: var(--text-32); text-align: center; }
.legend { display: flex; gap: 1rem; margin-top: 0.9rem; font-size: 0.72rem; color: var(--text-56); }
.legend .li { display: flex; align-items: center; gap: 0.4rem; }
.legend .dot { width: 8px; height: 8px; border-radius: 2px; }
.legend .dot.total { background: var(--tint-deep); }
.legend .dot.good { background: var(--cyan-deep); }

/* Activity-Feed */
.w.feed { grid-column: span 4; display: flex; flex-direction: column; }
.feed-list { display: flex; flex-direction: column; gap: 0.15rem; margin-top: 0.8rem; }
.feed .it {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.4rem;
  border-radius: var(--r-control);
  opacity: 0; transform: translateX(10px);
  transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth), background 0.15s;
}
.w.in .feed-list .it { opacity: 1; transform: none; }
.w.in .feed-list .it:nth-child(1) { transition-delay: 0.15s; }
.w.in .feed-list .it:nth-child(2) { transition-delay: 0.24s; }
.w.in .feed-list .it:nth-child(3) { transition-delay: 0.33s; }
.w.in .feed-list .it:nth-child(4) { transition-delay: 0.42s; }
.w.in .feed-list .it:nth-child(5) { transition-delay: 0.51s; }
.feed .it:hover { background: var(--tint); }
.feed .ico {
  width: 1.9rem; height: 1.9rem; border-radius: var(--r-chip); flex-shrink: 0;
  display: grid; place-items: center; background: var(--tint-deep); color: var(--green-mid);
}
.feed .ico .ic { font-size: 0.98rem; }
.feed .tx { flex: 1; min-width: 0; }
.feed .tx .t { font-size: 0.8rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .fd-camp {
  display: inline-block; margin-top: 0.22rem; padding: 0.06rem 0.42rem;
  background: var(--tint); border-radius: var(--r-pill); font-size: 0.66rem; color: var(--text-56);
}
.feed .tm { font-family: 'Roboto', system-ui, sans-serif; font-size: 0.62rem; color: var(--text-32); flex-shrink: 0; }

/* ════════ Tabellen ════════ */
.w.tablew { grid-column: span 12; padding: 0; overflow: hidden; }
.w.tablew .head { padding: 1.05rem 1.25rem 0.9rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.w.tablew .head .hl { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-56); display: flex; align-items: center; gap: 0.45rem; }
.w.tablew .head .hl .ic { font-size: 0.95rem; color: var(--cyan-deep); }
.w.tablew .head .n { font-family: 'Roboto', system-ui, sans-serif; font-size: 0.6rem; color: var(--text-32); }
.tbl-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
thead th {
  background: var(--white); text-align: left; padding: 0.55rem 1.25rem;
  border-top: 1px solid var(--tint-deep); border-bottom: 1px solid var(--tint-deep);
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-56);
  white-space: nowrap;
}
tbody td { padding: 0.7rem 1.25rem; border-top: 1px solid var(--tint); white-space: nowrap; }
tbody tr:first-child td { border-top: none; }
tbody tr { transition: background 0.14s; cursor: pointer; }
tbody tr:hover { background: var(--tint); }
td .mono, th .mono { font-size: 0.74rem; }
.pill { display: inline-flex; align-items: center; gap: 0.32rem; padding: 0.18rem 0.6rem; border-radius: var(--r-pill); font-size: 0.7rem; font-weight: 500; }
.pill.hot { background: rgba(59,107,255,0.14); color: var(--cyan-deep); }
.pill.warm { background: var(--tint-deep); color: var(--text-56); }
.pill.new { background: rgba(42,99,168,0.1); color: var(--meta); }
.pill.live { background: rgba(34,197,94,0.12); color: #15803d; }
.pill.paused { background: rgba(176,124,42,0.12); color: var(--google); }
.pill.draft { background: var(--tint-deep); color: var(--text-56); }
.pill .pdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.src-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.76rem; font-weight: 500;
}
.src-chip .sic {
  width: 1.55rem; height: 1.55rem; border-radius: var(--r-chip);
  display: grid; place-items: center; font-size: 0.8rem;
}
.sic.meta { background: var(--meta-bg); color: var(--meta); }
.sic.google { background: var(--google-bg); color: var(--google); }
.sic.organic { background: var(--organic-bg); color: var(--organic); }
.sic.nl { background: var(--nl-bg); color: var(--nl); }
.scorebar { display: inline-flex; align-items: center; gap: 0.5rem; }
.scorebar .track { width: 64px; height: 5px; border-radius: var(--r-pill); background: var(--tint-deep); overflow: hidden; }
.scorebar .fillb { height: 100%; border-radius: var(--r-pill); background: var(--cyan-deep); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease-smooth); }
.w.in .scorebar .fillb { transform: scaleX(1); }
.scorebar .sv { font-family: 'Roboto', system-ui, sans-serif; font-size: 0.68rem; color: var(--text-56); }

/* ════════ Funnels-Grid ════════ */
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.15rem; }
.fcard {
  background: var(--white); border-radius: var(--r-card); box-shadow: var(--card-shadow);
  padding: 1.15rem 1.25rem 1.25rem; cursor: pointer; text-align: left;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.65s var(--ease-smooth), transform 0.65s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
  display: flex; flex-direction: column; gap: 0.85rem; min-width: 0;
}
.fcard.in { opacity: 1; transform: none; }
.fcard:hover { box-shadow: 0 2px 4px rgba(14,17,22,.05), 0 20px 36px -16px rgba(14,17,22,.16); transform: translateY(-2px); }
.fcard .top { display: flex; align-items: flex-start; gap: 0.7rem; }
.fcard .fico {
  width: 2.3rem; height: 2.3rem; border-radius: var(--r-chip); flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.05rem;
  background: var(--tint-deep); color: var(--green-mid);
}
.fcard .tt { flex: 1; min-width: 0; }
.fcard h3 { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.fcard .slug { font-family: 'Roboto', system-ui, sans-serif; font-size: 0.64rem; color: var(--text-32); margin-top: 0.12rem; }
.fcard .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.fcard .k { min-width: 0; }
.fcard .k b { display: block; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.28rem; color: var(--green-dark); font-variant-numeric: tabular-nums; }
.fcard .k span { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-32); }
.fcard .stagebar { display: flex; gap: 3px; height: 6px; }
.fcard .stagebar i { border-radius: var(--r-pill); background: var(--tint-deep); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease-smooth); }
.fcard.in .stagebar i { transform: scaleX(1); }
.fcard .stagebar i.s1 { background: var(--green-mid); }
.fcard .stagebar i.s2 { background: var(--cyan-deep); }
.fcard .stagebar i.s3 { background: var(--cyan); }
.fcard .stagelbl { display: flex; justify-content: space-between; font-family: 'Roboto', system-ui, sans-serif; font-size: 0.58rem; color: var(--text-32); }

/* ════════ Analytics: Quellen-Balken ════════ */
.w.sources { grid-column: span 4; }
.srcrow { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0; }
.srcrow + .srcrow { border-top: 1px solid var(--tint); }
.srcrow .bd { flex: 1; min-width: 0; }
.srcrow .nm { display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 500; margin-bottom: 0.3rem; }
.srcrow .nm .val { font-family: 'Roboto', system-ui, sans-serif; font-size: 0.68rem; color: var(--text-56); }
.srcrow .track { height: 6px; border-radius: var(--r-pill); background: var(--tint); overflow: hidden; }
.srcrow .fillb { height: 100%; border-radius: var(--r-pill); transform: scaleX(0); transform-origin: left; transition: transform 0.85s var(--ease-smooth); }
.w.in .srcrow .fillb { transform: scaleX(1); }

/* ════════ Platzhalter-View ════════ */
.stub { flex: 1; display: grid; place-items: center; padding: 3rem 2rem; }
.stub-card {
  background: var(--white); border-radius: var(--r-card); box-shadow: var(--card-shadow);
  padding: 3rem 3.5rem; text-align: center; max-width: 460px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.65s var(--ease-smooth), transform 0.65s var(--ease-smooth);
}
.stub-card.in { opacity: 1; transform: none; }
.stub-card .bico {
  width: 3.4rem; height: 3.4rem; border-radius: var(--r-card); margin: 0 auto 1.1rem;
  display: grid; place-items: center; font-size: 1.5rem;
  background: var(--tint-deep); color: var(--green-mid);
}
.stub-card h2 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.015em; }
.stub-card h2 .serif { color: var(--green-dark); font-weight: 400; }
.stub-card p { font-size: 0.85rem; color: var(--text-56); margin: 0.5rem 0 1.4rem; }
.stub-card .tag {
  display: inline-block; margin-bottom: 1.1rem; padding: 0.2rem 0.6rem;
  font-family: 'Roboto', system-ui, sans-serif; font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--tint); border-radius: var(--r-pill); color: var(--text-32);
}

/* ════════ Lead-Slide-Over ════════ */
.leadpanel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); z-index: 60;
  background: var(--white); box-shadow: -24px 0 60px rgba(14,17,22,0.18);
  transform: translateX(103%); transition: transform 0.42s var(--ease-smooth);
  display: flex; flex-direction: column;
}
body.lead-open .leadpanel { transform: none; }
.lp-head {
  padding: 1.4rem 1.5rem 1.2rem; border-bottom: 1px solid var(--tint-deep);
  display: flex; align-items: center; gap: 0.85rem;
}
.lp-head .avatar { width: 2.7rem; height: 2.7rem; font-size: 0.88rem; }
.lp-head .tt { flex: 1; min-width: 0; }
.lp-head h2 { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; }
.lp-head .sub { font-size: 0.74rem; color: var(--text-56); margin-top: 0.05rem; }
.lp-close { width: 2rem; height: 2rem; border-radius: var(--r-control); display: grid; place-items: center; color: var(--text-56); transition: all 0.2s; flex-shrink: 0; }
.lp-close:hover { background: var(--tint); color: var(--black); }
.lp-body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.lp-body::-webkit-scrollbar { width: 0; }
.lp-sec {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-32); margin: 1.3rem 0 0.55rem;
}
.lp-sec:first-child { margin-top: 0; }
.lp-kv { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; font-size: 0.82rem; }
.lp-kv .ic { color: var(--cyan-deep); font-size: 0.95rem; }
.lp-kv .mono { font-size: 0.74rem; }
.lp-score { display: flex; align-items: center; gap: 0.8rem; background: var(--tint); border-radius: var(--r-control); padding: 0.75rem 0.9rem; }
.lp-score .big { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 1.7rem; color: var(--green-dark); }
.lp-score .bd { flex: 1; }
.lp-score .track { height: 6px; border-radius: var(--r-pill); background: var(--tint-deep); overflow: hidden; margin-top: 0.3rem; }
.lp-score .fillb { height: 100%; border-radius: var(--r-pill); background: var(--cyan-deep); transition: transform 0.8s var(--ease-smooth); transform-origin: left; }
.lp-score span { font-size: 0.68rem; color: var(--text-56); }
.tl { position: relative; padding-left: 1.35rem; }
.tl::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--tint-deep); }
.tl-it { position: relative; padding: 0.45rem 0; }
.tl-it::before {
  content: ''; position: absolute; left: -1.35rem; top: 0.85rem;
  width: 8px; height: 8px; border-radius: 50%; margin-left: 2px;
  background: var(--cyan-deep); box-shadow: 0 0 0 3px rgba(59,107,255,0.18);
}
.tl-it .t { font-size: 0.8rem; font-weight: 500; }
.tl-it .m { font-family: 'Roboto', system-ui, sans-serif; font-size: 0.62rem; color: var(--text-32); margin-top: 0.1rem; }
.lp-foot { padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--tint-deep); display: flex; gap: 0.55rem; }
.lp-foot .btn { flex: 1; justify-content: center; }

/* ════════ Toast ════════ */
.toast {
  position: fixed; bottom: 1.6rem; left: 50%; transform: translate(-50%, 20px); z-index: 80;
  background: var(--green-dark); color: var(--white); border-radius: var(--r-pill);
  padding: 0.6rem 1.1rem; font-size: 0.8rem; display: flex; align-items: center; gap: 0.5rem;
  box-shadow: 0 12px 32px rgba(14,17,22,0.4); opacity: 0; pointer-events: none;
  transition: all 0.35s var(--ease-spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { color: var(--cyan-bright); }

/* ════════ Mobile ════════ */
.mob-bar {
  display: none; position: sticky; top: 0; z-index: 52;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.7rem 1rem; padding-top: calc(0.7rem + env(safe-area-inset-top));
  align-items: center; gap: 0.8rem;
}
.hb { width: 2.3rem; height: 2.3rem; border-radius: var(--r-control); background: var(--green-dark); display: grid; place-items: center; flex-shrink: 0; position: relative; }
.hb i { position: absolute; left: 0.62rem; right: 0.62rem; height: 2px; border-radius: 2px; background: var(--white); transition: transform 0.32s var(--ease-smooth), opacity 0.2s; }
.hb i:nth-child(1) { top: 0.83rem; }
.hb i:nth-child(2) { bottom: 0.83rem; }
body.drawer-open .hb i:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
body.drawer-open .hb i:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.mob-bar .mtitle { flex: 1; min-width: 0; }
.mob-bar .mtitle strong { display: block; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mob-bar .mtitle span { display: block; font-size: 0.64rem; color: var(--text-32); font-family: 'Roboto', system-ui, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; }
.mob-bar .avatar { width: 2.1rem; height: 2.1rem; font-size: 0.7rem; }

@media (max-width: 1100px) {
  .w.hero { grid-column: span 12; }
  .w.kpi3 { grid-column: span 12; }
  .w.chart { grid-column: span 12; }
  .w.feed { grid-column: span 12; }
  .w.sources { grid-column: span 12; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .mob-bar { display: flex; }
  .sb {
    position: fixed; inset: 0 18% 0 0; z-index: 55;
    transform: translateX(-102%);
    transition: transform 0.38s var(--ease-smooth);
    box-shadow: 0 0 60px rgba(14,17,22,0.4);
    padding-top: calc(1.5rem + env(safe-area-inset-top));
  }
  body.drawer-open .sb { transform: none; }
  body.drawer-open { overflow: hidden; }
  .page-header { padding: 1.15rem 1rem; }
  .page-header h1 { font-size: 1.2rem; }
  .page-header .actions { display: none; }
  .content { padding: 1rem 1rem calc(4.5rem + env(safe-area-inset-bottom)); }
  .w.kpi3 { grid-template-columns: 1fr; }
  .w.kpi3 > div + div { border-left: none; border-top: 1px solid var(--tint-deep); }
  .filters .hint { display: none; }
  .search { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .w, .fcard, .stub-card { opacity: 1 !important; transform: none !important; }
  .spark i, .chart-bars .fill, .scorebar .fillb, .srcrow .fillb, .fcard .stagebar i { transform: none !important; }
}

/* ════════════════════════════════════════════════════════════════
   Ergänzungen für die echte App (Formulare, Modale, Aufgaben, Team, Einstellungen)
   ════════════════════════════════════════════════════════════════ */
[hidden] { display: none !important; }
.sb-wordmark { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.sb-nav a .zahl {
  margin-left: auto; font-family: 'Roboto', system-ui, sans-serif; font-size: 0.6rem; color: var(--white-48);
  background: var(--white-10); border-radius: var(--r-pill); padding: 0.05rem 0.45rem;
}
.sb-nav a.active .zahl { display: none; }
.lade { padding: 3rem 2rem; color: var(--text-32); font-size: 0.82rem; display: flex; align-items: center; gap: 0.5rem; }
.lade::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--tint-deep); border-top-color: var(--cyan-deep); animation: dreh 0.8s linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }

/* KPI-Leiste mit vier Kennzahlen */
.w.kpi4 { grid-column: span 8; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; }
.w.kpi4 > div { padding: 1.15rem 1.15rem; min-width: 0; }
.w.kpi4 > div + div { border-left: 1px solid var(--tint-deep); }
.w.kpi4 .v { font-size: 1.85rem; }
.w .d.flat { color: var(--text-32); }
.w.feed .feed-list { max-height: 318px; overflow-y: auto; margin-right: -0.4rem; padding-right: 0.2rem; }
.w.feed .feed-list::-webkit-scrollbar { width: 4px; }
.w.feed .feed-list::-webkit-scrollbar-thumb { background: var(--tint-deep); border-radius: 4px; }
.feed .it.klickbar { cursor: pointer; }
.chart-bars .col { position: relative; }
.chart-bars .col:hover .fill { filter: brightness(0.94); }
.w.chart .leer, .w.sources .leer { margin-top: 1rem; }

/* Auswahlfelder in der Filterleiste */
.sel {
  appearance: none; -webkit-appearance: none; font-family: inherit; font-size: 0.78rem; color: var(--black);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230c161580' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 0.7rem center;
  border: 1.5px solid transparent; border-radius: var(--r-control); padding: 0.42rem 2rem 0.42rem 0.75rem;
  box-shadow: var(--card-shadow); cursor: pointer; transition: border-color 0.2s; max-width: 220px;
}
.sel:focus { outline: none; border-color: var(--cyan-deep); }
.seg button .cnt { font-family: 'Roboto', system-ui, sans-serif; font-size: 0.6rem; opacity: 0.6; margin-left: 0.25rem; }

/* Weitere Status- und Quellenfarben */
.pill.qualifiziert { background: rgba(59,107,255,0.12); color: var(--green-mid); }
.pill.kunde { background: var(--green); color: var(--white); }
.pill.verloren { background: rgba(220,38,38,0.08); color: #b91c1c; }
.pill.admin { background: rgba(59,107,255,0.14); color: var(--cyan-deep); }
.pill.mitglied { background: var(--tint-deep); color: var(--text-56); }
.sic.empfehlung { background: rgba(59,107,255,0.08); color: var(--green-mid); }
.sic.sonstige, .sic.linkedin, .sic.tiktok { background: var(--tint-deep); color: var(--text-56); }
.lnk { color: var(--cyan-deep); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 2px; transition: text-decoration-color 0.2s; }
.lnk:hover { text-decoration-color: currentColor; }
.klein { font-size: 0.72rem; color: var(--text-56); }
.mono-klein { font-family: 'Roboto', system-ui, sans-serif; font-size: 0.66rem; color: var(--text-32); }
td .unter { font-family: 'Roboto', system-ui, sans-serif; color: var(--text-32); font-size: 0.66rem; }
td.rechts, th.rechts { text-align: right; }

/* Buttons */
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn-ghost { color: var(--text-56); }
.btn-ghost:hover { color: var(--black); background: var(--tint); }
.btn-danger { background: var(--white); border: 1px solid rgba(220,38,38,0.25); color: #b91c1c; }
.btn-danger:hover { background: rgba(220,38,38,0.06); }
.btn-klein { padding: 0.32rem 0.6rem; font-size: 0.74rem; }
.icon-btn { width: 1.9rem; height: 1.9rem; border-radius: var(--r-control); display: inline-grid; place-items: center; color: var(--text-32); transition: all 0.2s; }
.icon-btn:hover { background: var(--tint); color: var(--black); }
.icon-btn.gefahr:hover { color: #b91c1c; background: rgba(220,38,38,0.06); }

/* Leerer Zustand */
.leer { padding: 2.2rem 1.25rem; text-align: center; color: var(--text-56); font-size: 0.82rem; }
.leer .ic { font-size: 1.6rem; color: var(--cyan-deep); display: block; margin: 0 auto 0.6rem; width: auto; height: auto; }
.leer b { display: block; color: var(--black); font-weight: 600; margin-bottom: 0.2rem; }
.mehr { display: flex; justify-content: center; padding: 0.9rem; border-top: 1px solid var(--tint); }

/* Formulare */
.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 0.9rem; }
.felder .breit { grid-column: 1 / -1; }
.feld label { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-56); margin-bottom: 0.3rem; }
.feld input, .feld select, .feld textarea, .lp-body select, .lp-body input, .lp-body textarea {
  width: 100%; font-family: inherit; font-size: 0.84rem; color: var(--black); background: var(--white);
  border: 1px solid var(--border-light); border-radius: var(--r-control); padding: 0.55rem 0.7rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feld textarea, .lp-body textarea { resize: vertical; min-height: 4.5rem; line-height: 1.45; }
.feld input:focus, .feld select:focus, .feld textarea:focus, .lp-body select:focus, .lp-body input:focus, .lp-body textarea:focus {
  outline: none; border-color: var(--cyan-deep); box-shadow: 0 0 0 3px rgba(59,107,255,0.15);
}
.feld .hilfe { font-size: 0.7rem; color: var(--text-32); margin-top: 0.25rem; }
.formfehler { color: #b91c1c; font-size: 0.78rem; min-height: 1.1em; }

/* Modal */
.modal-bg {
  position: fixed; inset: 0; z-index: 70; background: rgba(14,17,22,0.45); backdrop-filter: blur(2px);
  display: grid; place-items: center; padding: 1rem; opacity: 0; transition: opacity 0.25s var(--ease-smooth);
}
.modal-bg.offen { opacity: 1; }
.modal {
  width: min(560px, 100%); max-height: calc(100dvh - 2rem); display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--r-card); box-shadow: 0 30px 80px rgba(14,17,22,0.35);
  transform: translateY(14px) scale(0.98); transition: transform 0.35s var(--ease-smooth);
}
.modal.gross { width: min(860px, 100%); }
.modal-bg.offen .modal { transform: none; }
.modal-kopf { padding: 1.2rem 1.4rem 1rem; border-bottom: 1px solid var(--tint-deep); display: flex; align-items: center; gap: 0.75rem; }
.modal-kopf h2 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; flex: 1; }
.modal-kopf h2 .serif { color: var(--green-dark); font-weight: 400; }
.modal-inhalt { padding: 1.2rem 1.4rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }
.modal-fuss { padding: 0.9rem 1.4rem; border-top: 1px solid var(--tint-deep); display: flex; gap: 0.5rem; align-items: center; }
.modal-fuss .links { margin-right: auto; }

/* Code-/Snippet-Kästen */
.code {
  position: relative; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.7rem; line-height: 1.55;
  background: var(--tint); border: 1px solid var(--tint-deep); border-radius: var(--r-control);
  padding: 0.7rem 2.6rem 0.7rem 0.8rem; white-space: pre-wrap; word-break: break-all; color: var(--green-dark);
}
.code .kopieren { position: absolute; top: 0.35rem; right: 0.35rem; }
.zwischen-titel { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-56); }

/* Lead-Panel: Status, Felder, Aufgaben, Notizen */
.lp-status { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.lp-status button {
  padding: 0.28rem 0.7rem; border-radius: var(--r-pill); font-size: 0.72rem; font-weight: 500;
  background: var(--tint); color: var(--text-56); border: 1px solid transparent; transition: all 0.2s var(--ease-smooth);
}
.lp-status button:hover { border-color: var(--cyan-deep); color: var(--cyan-deep); }
.lp-status button.active { background: var(--green); color: var(--white); }
.lp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.lp-grid label { display: block; font-size: 0.64rem; color: var(--text-32); margin-bottom: 0.2rem; }
.lp-grid select, .lp-grid input { padding: 0.42rem 0.55rem; font-size: 0.78rem; }
.lp-kv a { color: inherit; }
.lp-kv a:hover { color: var(--cyan-deep); }
.lp-utm { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.35rem; }
.lp-utm span { font-family: 'Roboto', system-ui, sans-serif; font-size: 0.62rem; background: var(--tint); border-radius: var(--r-pill); padding: 0.1rem 0.5rem; color: var(--text-56); }
.aufg { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0; border-top: 1px solid var(--tint); }
.aufg:first-child { border-top: none; }
.aufg .tx { flex: 1; min-width: 0; font-size: 0.8rem; }
.aufg .tx .m { font-size: 0.66rem; color: var(--text-32); font-family: 'Roboto', system-ui, sans-serif; }
.aufg.fertig .tx > span { text-decoration: line-through; color: var(--text-32); }
.chk {
  width: 1.1rem; height: 1.1rem; border-radius: 4px; border: 1.5px solid var(--border-light); background: var(--white);
  display: inline-grid; place-items: center; flex-shrink: 0; transition: all 0.2s var(--ease-smooth); color: transparent; font-size: 0.75rem;
}
.chk:hover { border-color: var(--cyan-deep); }
.chk.an { background: var(--cyan-deep); border-color: var(--cyan-deep); color: var(--white); }
.aufg-neu { display: grid; grid-template-columns: 1fr auto auto; gap: 0.4rem; margin-top: 0.5rem; }
.aufg-neu input[type="date"] { width: 8.6rem; }
.notiz-neu { display: flex; flex-direction: column; gap: 0.4rem; }
.notiz-neu .btn { align-self: flex-end; }
.tl-it .t .zitat { display: block; font-weight: 400; color: var(--text-56); margin-top: 0.1rem; white-space: pre-wrap; }
.ueberfaellig { color: #b91c1c !important; }
.heute { color: var(--cyan-deep) !important; font-weight: 600; }

/* Einstellungen */
.einst { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 1.15rem; align-items: start; }
.einst .w { display: flex; flex-direction: column; gap: 0.8rem; }
.einst .w p { font-size: 0.82rem; color: var(--text-56); }
.einst .w .zeile { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; font-size: 0.82rem; }

/* Ausbau-Karte (nächste Module) */
.stub-card.ausbau { max-width: 640px; text-align: left; padding: 2.2rem 2.4rem; }
.stub-card.ausbau .bico { margin: 0 0 1rem; }
.stub-card.ausbau .code { margin: 0.4rem 0 1.2rem; font-size: 0.72rem; }

@media (max-width: 1100px) {
  .w.kpi4 { grid-column: span 12; }
}
@media (max-width: 900px) {
  .w.kpi4 { grid-template-columns: 1fr 1fr; }
  .w.kpi4 > div:nth-child(3) { border-left: none; }
  .w.kpi4 > div:nth-child(n+3) { border-top: 1px solid var(--tint-deep); }
  .felder, .lp-grid { grid-template-columns: 1fr; }
  .einst { grid-template-columns: 1fr; }
  .sel { max-width: none; flex: 1; }
  .page-header .actions { display: flex; }
  .page-header { flex-wrap: wrap; }
  .page-header .actions .btn .txt { display: none; }
  .stub-card.ausbau { padding: 1.6rem 1.3rem; }
  .chart-bars, .chart-days { gap: 0.2rem !important; }
  .chart-days span { font-size: 0.5rem; }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg button { flex-shrink: 0; }
  .w.tablew .head { flex-wrap: wrap; }
}

/* ════════ MJK-Schicht (Design-System Runde 4): weiße Seitenleiste, Roboto Light für Zahlen, gesperrte blaue Labels ════════ */
body { font-weight: 400; }
h1, h2, h3 { letter-spacing: -0.025em; }
.page-header h1 { font-weight: 300; font-size: 1.85rem; letter-spacing: -0.03em; }
.page-header h1 .serif, .stub-card h2 .serif, .modal-kopf h2 .serif { color: var(--green); }
.serif { color: var(--green); }
/* Seitenleiste hell statt Verlauf */
.sb { background: #fff; color: var(--black); border-right: 1px solid var(--linie); }
.sb::before { display: none; }
.sb-brand img { height: 26px; width: auto; display: block; }
.sb-badge { background: var(--blau-soft); border: 0; color: var(--green); border-radius: 999px; letter-spacing: 0.2em; }
.sb-grouphead { color: #6b7280; font-weight: 500; letter-spacing: 0.2em; }
.sb-nav a { color: var(--text-56); font-size: 0.86rem; }
.sb-nav a:hover { color: var(--black); background: var(--tint); }
.sb-nav a.active { color: var(--green); background: var(--blau-soft); font-weight: 500; }
.sb-nav a.active::after { background: var(--green); box-shadow: none; }
.sb-nav a .zahl { color: #fff; background: var(--green); }
.sb-user { border-top-color: var(--linie); }
.sb-user span, .sb-logout { color: #6b7280; }
.sb-logout:hover { color: var(--black); }
.avatar { background: var(--blau-soft); color: var(--green); font-weight: 500; }
/* Kennzahlen: Roboto Light groß statt Serif-Kursive */
.w .v, .fcard .k b, .lp-score .big { font-family: 'Roboto', system-ui, sans-serif; font-style: normal; font-weight: 300; letter-spacing: -0.03em; color: var(--black); }
.w .v { font-size: 2.2rem; }
.w .l { color: var(--green); font-weight: 500; letter-spacing: 0.2em; font-size: 0.64rem; }
.w .l .ic { color: var(--green); }
/* Hero ohne dunkle Fläche: hellblau */
.w.hero { background: var(--blau-soft); color: var(--black); }
.w.hero .l, .w.hero .l .ic, .w.hero .d.up, .w.hero .v .euro { color: var(--green); }
.w.hero .v { color: var(--black); font-size: 2.9rem; }
.w.hero .spark i { background: rgba(59,107,255,0.25); }
.w.hero .spark i:last-child { background: var(--green); }
/* Buttons: blaue Pille */
.btn { border-radius: 999px; }
.btn-primary:hover { background: var(--green-mid); }
.seg button { border-radius: 999px; }
.seg { border-radius: 999px; }
.hb { background: #fff; border: 1px solid var(--linie); }
.hb i { background: var(--black) !important; }
.toast { background: var(--black); }

/* ════════ Optimierung (MJK) ════════ */
.lab { font-size: 0.64rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green); }
.w.kpi3.optkpi { grid-column: span 12; }
.optliste { display: flex; flex-direction: column; gap: 0.9rem; }
.optkarte { padding: 0; }
.optkarte.fertig { box-shadow: 0 0 0 2px var(--ok, #16a34a), var(--card-shadow); }
.optkarte > summary { list-style: none; cursor: pointer; padding: 1.1rem 1.25rem; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0.3rem 0.8rem; align-items: start; }
.optkarte > summary::-webkit-details-marker { display: none; }
.optkarte .kopf h2 { font-size: 1.35rem; font-weight: 300; letter-spacing: -0.025em; }
.optkarte .kopf .sub { font-size: 0.8rem; color: var(--text-32); }
.optkarte .kern { grid-column: 1 / -1; font-size: 0.88rem; color: var(--text-56); margin: 0; }
.pill.offen { background: var(--tint); color: var(--text-56); }
.pill.teil, .pill.teilweise { background: #fdf3e2; color: #b45309; }
.pill.fertig { background: #e3f5e9; color: #166534; }
.pill.umgesetzt { background: var(--blau-soft); color: var(--green); }
.pill.blockiert { background: #fde8e8; color: #b91c1c; }
.optbody { border-top: 1px solid var(--linie); padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 1.15rem; }
.optbody .stand { background: var(--tint); border-radius: 10px; padding: 0.8rem 0.95rem; font-size: 0.84rem; color: var(--text-56); display: grid; gap: 0.25rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.punkt { display: grid; gap: 0.6rem; }
.punkt-kopf { display: flex; gap: 0.75rem; align-items: baseline; }
.punkt-kopf .nr { font-weight: 300; font-size: 1.35rem; color: var(--green); width: 2rem; flex: none; font-variant-numeric: tabular-nums; }
.punkt-kopf h3 { font-size: 1.05rem; font-weight: 400; letter-spacing: -0.01em; }
.befund { margin: 0 0 0 2.75rem; font-size: 0.88rem; color: var(--text-56); }
.optionen { display: grid; gap: 0.5rem; margin-left: 2.75rem; }
.opt { text-align: left; display: grid; grid-template-columns: 1.8rem minmax(0,1fr); gap: 0.65rem; align-items: start; border: 1px solid var(--linie); border-radius: 10px; padding: 0.65rem 0.8rem; background: #fff; cursor: pointer; width: 100%; transition: border-color 0.2s, background 0.2s; }
.opt:hover { border-color: var(--text-56); }
.opt .k { width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1px solid var(--linie); display: grid; place-items: center; font-weight: 500; font-size: 0.8rem; color: var(--text-56); }
.opt .t { font-size: 0.88rem; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.opt .emp { display: block; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green); margin-bottom: 0.15rem; }
.opt.on { border-color: var(--green); background: var(--blau-soft); }
.opt.on .k { background: var(--green); border-color: var(--green); color: #fff; }
.optbody .fazit { font-size: 0.88rem; color: var(--text-56); border-left: 2px solid var(--green); padding-left: 0.8rem; }
.optbody .notiz { width: 100%; font: inherit; font-size: 0.86rem; border: 1px solid var(--linie); border-radius: 10px; padding: 0.6rem 0.75rem; resize: vertical; min-height: 3rem; }
.optbody .notiz:focus { outline: none; border-color: var(--green); }
.optaktionen { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.optaktionen .rechts { margin-left: auto; font-size: 0.82rem; }
.optbody .umsetzung { background: var(--blau-soft); border-radius: 10px; padding: 0.8rem 0.95rem; font-size: 0.86rem; white-space: pre-wrap; display: grid; gap: 0.3rem; }
@media (max-width: 640px) { .befund, .optionen { margin-left: 0; } .w.kpi3.optkpi { grid-template-columns: repeat(3, 1fr); } .w.kpi3.optkpi > div { padding: 0.8rem; } .w.kpi3.optkpi > div + div { border-top: 0; border-left: 1px solid var(--tint-deep); } .w.kpi3.optkpi .v { font-size: 1.7rem; } }
.sb-nav a .ext { margin-left: auto; font-size: 0.8rem; color: var(--text-32); }
.seg-optim { flex-wrap: wrap; border-radius: 14px; }
.opt.eigen { border-style: dashed; }
.opt.eigen .k { font-size: 0.85rem; }
.opt:disabled { cursor: default; opacity: 0.85; }
.optionen .feld { width: 100%; font: inherit; font-size: 0.86rem; border: 1px solid var(--linie); border-radius: 10px; padding: 0.6rem 0.75rem; resize: vertical; min-height: 2.8rem; background: #fff; }
.optionen .feld:focus { outline: none; border-color: var(--green); }
.optionen .feld.warum { background: var(--tint); }
.w.kpi3.optkpi .l { letter-spacing: 0.14em; }
.pill.review { background: var(--blau-soft); color: var(--green); }
.optbody .umsetzung.autonom { border: 1px solid var(--blau-rand, #c9d6ff); }
.optbody .umsetzung .review { display: grid; gap: 0.5rem; margin-top: 0.4rem; padding-top: 0.7rem; border-top: 1px solid rgba(59,107,255,0.18); }
.optbody .umsetzung .feld { width: 100%; font: inherit; font-size: 0.86rem; border: 1px solid var(--linie); border-radius: 10px; padding: 0.6rem 0.75rem; resize: vertical; min-height: 2.8rem; background: #fff; white-space: normal; }
.btn.rot { background: #b91c1c !important; }
.stufenkopf { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.6rem; font-size: 0.8rem; color: var(--text-32); }
.stufenkopf:first-child { margin-top: 0; }
.stufenkopf .stufe { font-size: 0.64rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green); }
.stufenkopf .stufe.s-a { color: #166534; }

/* Zahlen je Entscheidung */
.zahlen { margin-left: 2.75rem; overflow-x: auto; border: 1px solid var(--linie); border-radius: 10px; }
.zahlen table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.zahlen th { text-align: right; font-weight: 500; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-56); padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--linie); white-space: nowrap; background: #fafbff; }
.zahlen th:first-child, .zahlen td:first-child { text-align: left; }
.zahlen td { padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.zahlen td.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zahlen td:first-child { min-width: 14rem; }
.zahlen tr:last-child td { border-bottom: 0; }
.zahlen .hinweis { margin: 0; padding: 0.5rem 0.6rem; font-size: 0.75rem; color: var(--text-56); border-top: 1px solid var(--linie); }
.agentwarum { margin: 0 0 0 2.75rem; font-size: 0.85rem; color: var(--black); background: #f5f8ff; border-left: 2px solid #3b6bff; padding: 0.6rem 0.8rem; border-radius: 0 8px 8px 0; }
.agentwarum .lab { display: block; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: #3b6bff; margin-bottom: 0.2rem; }
@media (max-width: 640px) { .zahlen, .agentwarum { margin-left: 0; } }

/* Fehler melden */
.fehlerform { display: grid; gap: 0.5rem; padding: 0.8rem; border: 1px solid var(--linie); border-radius: 10px; background: #fff; }
.fehlerliste { display: grid; gap: 0.5rem; }
.fehlermeldung { font-size: 0.85rem; padding: 0.6rem 0.8rem; border-radius: 8px; background: #fff7ed; border-left: 2px solid #d97706; }
.fehlermeldung.behoben, .fehlermeldung.abgelehnt { background: #f5f8ff; border-left-color: #3b6bff; }
.fehlermeldung .lab { display: block; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: #b45309; margin-bottom: 0.2rem; }
.fehlermeldung.behoben .lab, .fehlermeldung.abgelehnt .lab { color: #3b6bff; }
.fehlermeldung .antwort { margin-top: 0.35rem; color: var(--text-56); }
.pill.fehleroffen { background: #fff7ed; color: #b45309; }

/* Stand als Zeitraum-Spalten */
.standgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.6rem; margin: 0.3rem 0 0.5rem; }
.standspalte { display: grid; gap: 0.15rem; background: #fff; border: 1px solid var(--linie); border-radius: 8px; padding: 0.6rem 0.75rem; align-content: start; }
.standspalte .zt { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: #3b6bff; font-weight: 500; margin-bottom: 0.2rem; }
.standspalte .sw { font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.optkarte summary .pills { display: flex; gap: 0.35rem; flex-wrap: wrap; justify-content: flex-end; align-self: start; }

/* Überspringen */
.optaktionen .skip { display: inline-flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.optaktionen .skip .lab { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-32); margin: 0 0.15rem 0 0.4rem; }

/* Aufklappbare Gruppe in der Seitenleiste */
.sb-klapp > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.sb-klapp > summary::-webkit-details-marker { display: none; }
.sb-klapp > summary i { font-size: 0.9rem; transition: transform .2s; }
.sb-klapp:not([open]) > summary i { transform: rotate(-90deg); }
/* Mehr Kontext, standardmäßig zu */
.mehrkontext { margin-left: 2.75rem; }
.stand .mehrkontext { margin-left: 0; }
.mehrkontext > summary { cursor: pointer; font-size: 0.78rem; color: #3b6bff; list-style: none; }
.mehrkontext > summary::-webkit-details-marker { display: none; }
.mehrkontext > summary::before { content: '+ '; }
.mehrkontext[open] > summary::before { content: '− '; }
.mehrkontext[open] > summary { margin-bottom: 0.4rem; }
@media (max-width: 640px) { .mehrkontext { margin-left: 0; } }

/* Design-System */
.ds { gap: 1.15rem; }
.ds-sprung { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; }
.ds-sprung a { white-space: nowrap; font-size: 0.8rem; color: var(--text-56); padding: 0.3rem 0.75rem; border: 1px solid var(--linie); border-radius: 999px; background: #fff; }
.ds-sprung a:hover { color: var(--green); border-color: var(--green); }
.ds-block { display: flex; flex-direction: column; gap: 0.75rem; scroll-margin-top: 1rem; }
.ds-block > h2 { font-size: 1.6rem; font-weight: 300; letter-spacing: -0.03em; line-height: 1.15; }
.ds-unter { font-size: 0.86rem; color: var(--text-56); }
.ds code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; }
.ds .d { font-size: 0.8rem; color: var(--text-32); }
.ds .t { font-size: 0.9rem; font-weight: 500; }
.ds-grund { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.2rem 1.5rem; }
.ds-grund > div { display: flex; gap: 0.8rem; padding: 0.7rem 0; border-top: 1px solid var(--linie); }
.ds-nr { font-weight: 300; font-size: 1.3rem; color: var(--green); width: 2rem; flex: none; font-variant-numeric: tabular-nums; line-height: 1.2; }
.ds-farben { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.6rem; }
.ds-farbe { display: flex; flex-direction: column; text-align: left; border: 1px solid var(--linie); border-radius: 10px; overflow: hidden; background: #fff; transition: border-color .2s; }
.ds-farbe:hover { border-color: var(--green); }
.ds-farbe .fl { height: 3.4rem; border-bottom: 1px solid var(--linie); }
.ds-farbe .tx { display: grid; gap: 0.15rem; padding: 0.6rem 0.75rem 0.75rem; }
.ds-farbe .tx b { font-weight: 500; font-size: 0.88rem; }
.ds-farbe code { color: var(--text-56); }
.ds-verlauf { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem; align-items: center; border: 1px solid var(--linie); border-radius: 10px; padding: 0.75rem; }
.ds-verlauf .fl { height: 3rem; border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 18px -8px rgba(59,107,255,.55); }
.ds-verlauf b { font-weight: 500; font-size: 0.9rem; }
.ds-code { display: block; width: 100%; text-align: left; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.74rem; color: var(--text-56); background: var(--tint); border-radius: 8px; padding: 0.45rem 0.6rem; margin-top: 0.4rem; overflow-wrap: anywhere; }
.ds-code:hover { color: var(--green); }
.ds-schriften { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.6rem; }
.ds-schrift { border: 1px solid var(--linie); border-radius: 10px; padding: 0.8rem 0.9rem; display: flex; flex-direction: column; gap: 0.4rem; }
.ds-schrift .kopf { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.ds-schrift .probe { font-size: 1.6rem; color: var(--black); }
.ds-schrift:nth-child(2) .probe { font-size: 0.95rem; }
.ds-schrift:nth-child(3) .probe { font-size: 0.66rem; }
.ds-zusammen { background: var(--tint); border-radius: 10px; padding: 1.2rem 1.25rem; }
.ds-zusammen .h { font-weight: 300; font-size: 2.2rem; letter-spacing: -0.03em; line-height: 1.1; margin-top: 0.5rem; }
.ds-zusammen p { color: var(--text-56); margin-top: 0.6rem; }
.ds-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.6rem; }
.ds-logos > div { border: 1px solid var(--linie); border-radius: 10px; min-height: 7rem; display: grid; place-content: center; background: #fff; }
.ds-logos img { height: 2.6rem; width: auto; display: block; }
.ds-logos .klein { display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; font-size: 0.78rem; color: var(--text-56); }
.ds-logos .klein img { height: 1.3rem; }
.ds-regeln { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 1.5rem; }
.ds-regeln > div { display: grid; gap: 0.1rem; padding: 0.55rem 0; border-top: 1px solid var(--linie); font-size: 0.86rem; }
.ds-demos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0.75rem; margin-top: 0.4rem; }
.ds-demo { border: 1px solid var(--linie); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.ds-demo.breit { grid-column: 1 / -1; }
.ds-demo .buehne { padding: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; justify-content: center; flex: 1; background: #fff; min-width: 0; }
.ds-demo .buehne.spalte { flex-direction: column; align-items: stretch; }
.ds-demo .unter { font-size: 0.78rem; color: var(--text-56); padding: 0.55rem 0.8rem; border-top: 1px solid var(--linie); background: #fafbfc; }
.ds-pille { display: inline-flex; align-items: center; gap: 0.5rem; background: #3b6bff; color: #fff; border-radius: 999px; padding: 0.6rem 1.1rem; font-size: 0.8rem; font-weight: 500; white-space: nowrap; }
.ds-pille.klein { padding: 0.4rem 0.85rem; font-size: 0.74rem; }
.ds-pille.rand { background: transparent; color: #0e1116; border: 1px solid #0e1116; }
.ds-pille.dunkel { background: #0e1116; padding: 0.35rem 0.35rem 0.35rem 1rem; }
.ds-pille.dunkel i { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #3b6bff; display: grid; place-items: center; font-style: normal; }
.ds-pille.verlauf { background: linear-gradient(100deg, #2f5cf0 0%, #4f86ff 55%, #9fd0ff 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 18px -8px rgba(59,107,255,.6); }
.ds-feld { font: inherit; font-size: 0.86rem; border: 1px solid var(--linie); border-radius: 8px; padding: 0.6rem 0.75rem; background: #fff; }
.ds-feld.grau { background: var(--tint); border-color: transparent; }
.ds-feld:focus { outline: none; border-color: var(--green); }
.ds-check { display: flex; gap: 0.55rem; align-items: center; font-size: 0.86rem; }
.ds-check input { appearance: none; width: 1rem; height: 1rem; border: 1px solid #0e1116; border-radius: 2px; display: grid; place-items: center; margin: 0; }
.ds-check input:checked::after { content: ''; width: 0.5rem; height: 0.5rem; background: #3b6bff; }
.ds-hinweis { display: flex; gap: 0.6rem; background: #eaf0ff; border-radius: 10px; padding: 0.75rem 0.9rem; font-size: 0.84rem; }
.ds-hinweis .ic { color: #3b6bff; margin-top: 0.15rem; }
.ds-fort .st { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-32); margin-bottom: 0.4rem; }
.ds-fort .st b { color: #0e1116; font-weight: 500; }
.ds-fort .seg { display: flex; gap: 0.35rem; background: none; border: 0; padding: 0; }
.ds-fort .seg i { flex: 1; height: 4px; border-radius: 2px; background: var(--linie); }
.ds-fort .seg i.on { background: #3b6bff; }
.ds-balken { display: flex; align-items: flex-end; gap: 0.45rem; height: 5.5rem; border-bottom: 1px solid var(--linie); }
.ds-balken span { flex: 1; background: #cfdcff; border-radius: 4px 4px 0 0; }
.ds-balken span.hi { background: #3b6bff; }
.ds-linie { width: 100%; height: 5.5rem; display: block; }
.ds-tab { width: 100%; border-collapse: collapse; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.ds-tab th { text-align: left; font-weight: 500; color: var(--text-32); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.5rem 0.65rem; }
.ds-tab td { padding: 0.55rem 0.65rem; }
.ds-tab tbody tr:nth-child(odd) { background: var(--tint); }
.ds-tab td:last-child, .ds-tab th:last-child { text-align: right; }
.ds-tab .up { color: #16a34a; }
.ds-liste { display: flex; gap: 0.9rem; align-items: center; padding: 0.55rem 0; border-top: 1px solid var(--linie); }
.ds-liste b { font-weight: 300; color: #3b6bff; font-size: 1.3rem; width: 2rem; font-variant-numeric: tabular-nums; }
.ds-karte { border: 1px solid var(--linie); border-radius: 10px; padding: 0.8rem 0.95rem; display: grid; gap: 0.1rem; box-shadow: 0 1px 2px rgba(14,17,22,.05), 0 4px 12px rgba(14,17,22,.04); min-width: 9rem; }
.ds-karte b { font-weight: 300; font-size: 1.6rem; letter-spacing: -0.03em; }
.ds-vergleich { display: flex; gap: 0.5rem; }
.ds-vergleich > div { background: var(--tint); border-radius: 8px; padding: 0.7rem 0.85rem; font-size: 0.75rem; color: var(--text-32); }
.ds-vergleich > div.nach { background: #eaf0ff; }
.ds-vergleich b { display: block; font-weight: 300; font-size: 1.3rem; color: #0e1116; letter-spacing: -0.02em; }
.ds-vergleich .nach b { color: #3b6bff; }
.ds-kopfz, .ds-fussz { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; border: 1px solid var(--linie); border-radius: 10px; padding: 0.75rem 1rem; font-size: 0.8rem; color: var(--text-56); }
.ds-kopfz img { height: 1.3rem; width: auto; }
.ds-kopfz .links { display: flex; gap: 1rem; }
.ds-fussz img { height: 0.85rem; width: auto; }
.ds-fussz { font-size: 0.74rem; color: var(--text-32); }
.ds-nein { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 1.5rem; }
.ds-nein li { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.55rem 0; border-top: 1px solid var(--linie); font-size: 0.86rem; }
.ds-nein .ic { color: #b91c1c; margin-top: 0.15rem; }
.ds-offen { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.6rem; }
.ds-offen .pkt { border: 1px solid var(--linie); border-radius: 10px; padding: 0.75rem 0.9rem; display: grid; gap: 0.45rem; align-content: start; }
.ds-offen .opts { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.ds-offen .opts span { font-size: 0.74rem; border: 1px solid #d5dbe5; border-radius: 999px; padding: 0.15rem 0.55rem; color: var(--text-56); }
.ds-block > .btn { align-self: flex-start; }
.ds-pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.76rem; background: var(--tint); border-radius: 10px; padding: 0.9rem 1rem; overflow-x: auto; white-space: pre; }
@media (max-width: 640px) {
  .ds-verlauf { grid-template-columns: 1fr; }
  .ds-demos { grid-template-columns: 1fr; }
  .ds-block > h2 { font-size: 1.35rem; }
  .ds-zusammen .h { font-size: 1.7rem; }
}
/* Animations-Galerie */
.anim-seg { flex-wrap: wrap; border-radius: 12px; }
.anim-seg button { border-radius: 9px; }
.anim-hinweis { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0 0 1.1rem; padding: 0.7rem 0.9rem; font-size: 0.85rem; color: var(--text-56); background: var(--blau-soft); border-left: 2px solid #3b6bff; border-radius: 0 8px 8px 0; }
.anim-hinweis .ic { color: #3b6bff; }
.anim-hinweis a { color: #3b6bff; }
.anim-hinweis code { font-size: 0.78rem; }
.anim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.anim-karte { background: var(--white); border: 1px solid var(--linie); border-radius: var(--r-card); box-shadow: var(--card-shadow); overflow: hidden; display: flex; flex-direction: column; }
.anim-media { position: relative; aspect-ratio: 9 / 16; background: var(--canvas); }
.anim-media video, .anim-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.anim-ton { position: absolute; right: 0.7rem; bottom: 0.7rem; font: 500 0.72rem 'Roboto', system-ui, sans-serif; color: var(--black); background: rgba(255,255,255,0.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--linie); border-radius: var(--r-pill); padding: 0.4rem 0.75rem; cursor: pointer; }
.anim-ton:hover { color: #3b6bff; }
.anim-ton:focus-visible, .anim-seg button:focus-visible { outline: 2px solid #3b6bff; outline-offset: 2px; }
.anim-leer { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; color: var(--text-32); font-size: 0.8rem; text-decoration: none; }
.anim-leer .ic { font-size: 1.6rem; color: #3b6bff; }
.anim-leer:hover span { color: #3b6bff; }
.anim-body { padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.anim-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.anim-kat { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #3b6bff; }
.anim-karte h2 { font-size: 1rem; font-weight: 500; line-height: 1.3; margin: 0; color: var(--black); }
.anim-desc { margin: 0; font-size: 0.85rem; color: var(--text-56); line-height: 1.5; }
.anim-karte dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.75rem; font-size: 0.8rem; }
.anim-karte dt { color: var(--text-32); }
.anim-karte dd { margin: 0; color: var(--black); }
.anim-karte code { font-size: 0.72rem; color: var(--text-32); word-break: break-all; }
.anim-fuss { color: var(--text-32); font-size: 0.8rem; margin: 2rem 0 0; max-width: 70ch; }
@media (max-width: 640px) { .anim-grid { grid-template-columns: 1fr; } }
/* KI-Ad-Formate */
.adf-howto { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.adf-howto .lab, .adf-sagen .lab { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: #3b6bff; font-weight: 500; margin-right: 0.2rem; }
.adf-howto code { font-family: inherit; font-size: 0.78rem; background: var(--white); color: var(--text-56); padding: 0.4rem 0.65rem; border-radius: var(--r-chip); box-shadow: var(--card-shadow); }
.adf-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.adf-seg button { white-space: nowrap; }
.adf-liste { display: grid; gap: 1.15rem; }
.adf-film { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 1.8rem; padding: 1.4rem; scroll-margin-top: 1rem; }
.adf-player { position: relative; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: var(--tint); border: 1px solid var(--linie); }
.adf-player video, .adf-player iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; background: #0e1116; }
.adf-fehlt { height: 100%; display: grid; place-content: center; justify-items: center; gap: 0.7rem; padding: 1.2rem; text-align: center; color: var(--text-56); font-size: 0.8rem; }
.adf-fehlt > .ic { font-size: 1.8rem; color: #3b6bff; width: auto; height: auto; }
.adf-info { display: grid; gap: 0.9rem; align-content: start; min-width: 0; }
.adf-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.adf-key { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; background: var(--blau-soft); color: #3b6bff; padding: 0.3rem 0.55rem; border-radius: var(--r-chip); }
.adf-meta { font-size: 0.76rem; color: var(--text-32); }
.adf-info h2 { font-size: 1.5rem; font-weight: 300; margin: 0; letter-spacing: -0.01em; }
.adf-pitch { margin: 0; color: var(--text-56); font-size: 0.88rem; max-width: 62ch; }
.adf-rezept { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0.55rem 1.1rem; margin: 0; border-top: 1px solid var(--linie); padding-top: 0.9rem; font-size: 0.84rem; }
.adf-rezept dt { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-32); font-weight: 500; padding-top: 0.15rem; }
.adf-rezept dd { margin: 0; }
.adf-rezept dd.kosten { font-variant-numeric: tabular-nums; }
.adf-refs { display: flex; flex-wrap: wrap; gap: 0.9rem; font-size: 0.82rem; }
.adf-refs a { color: #3b6bff; display: inline-flex; align-items: center; gap: 0.2rem; }
.adf-refs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.adf-sagen { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; border-top: 1px solid var(--linie); padding-top: 0.8rem; }
@media (max-width: 760px) {
  .adf-film { grid-template-columns: 1fr; padding: 1rem; gap: 1.1rem; }
  .adf-player { max-width: 300px; width: 100%; justify-self: center; }
  .adf-rezept { grid-template-columns: 1fr; gap: 0.1rem; }
  .adf-rezept dd { margin-bottom: 0.55rem; }
}
/* Creative-Lichttisch */
.lt-hint { font-size: 0.82rem; color: var(--text-56); max-width: 75ch; margin: 0 0 0.9rem; }
.lt-zahlen { margin-left: auto; display: flex; gap: 0.9rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-32); font-variant-numeric: tabular-nums; }
.lt-zahlen b { font-weight: 300; font-size: 1rem; color: var(--black); margin-right: 0.15rem; }
.lt-zahlen .z-bib b { color: var(--green); }
.lt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.lt-card { background: var(--white); border: 1px solid var(--linie); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; min-width: 0; box-shadow: var(--card-shadow); }
.lt-card[data-s="bibliothek"] { outline: 2px solid var(--green); outline-offset: -1px; }
.lt-card[data-s="gut"] { outline: 2px solid #9db4ff; outline-offset: -1px; }
.lt-card[data-s="raus"] .lt-shot img { opacity: 0.35; }
.lt-shot { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; background: var(--tint); border: 0; padding: 0; cursor: zoom-in; overflow: hidden; }
.lt-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lt-shot .lt-ohne { display: none; position: absolute; inset: 0; place-content: center; text-align: center; gap: 0.3rem; font-size: 0.74rem; color: var(--text-32); }
.lt-shot .lt-ohne .ic { font-size: 1.4rem; color: var(--text-32); display: block; margin: 0 auto; }
.lt-shot.ohnebild img { display: none; }
.lt-shot.ohnebild .lt-ohne { display: grid; }
.lt-meta { padding: 0.65rem 0.75rem 0; display: grid; gap: 0.15rem; min-width: 0; }
.lt-row { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.lt-nr { font-size: 0.72rem; color: var(--text-32); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lt-bf { font-size: 0.6rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-kunde { font-weight: 500; font-size: 0.84rem; overflow-wrap: anywhere; }
.lt-sub { font-size: 0.74rem; color: var(--text-56); overflow-wrap: anywhere; }
.lt-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; padding: 0.65rem 0.75rem 0.5rem; margin-top: auto; }
.lt-act { font: inherit; font-size: 0.76rem; font-weight: 500; border: 1px solid var(--linie); background: var(--white); color: var(--black); border-radius: var(--r-control); padding: 0.4rem 0.2rem; cursor: pointer; transition: all 0.15s; }
.lt-act:hover { border-color: var(--green); }
.lt-act[data-v="bibliothek"][aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
.lt-act[data-v="gut"][aria-pressed="true"] { background: var(--blau-soft); border-color: #9db4ff; color: var(--green-mid); }
.lt-act[data-v="raus"][aria-pressed="true"] { background: #fdecea; border-color: #e7a59f; color: #b3362e; }
.lt-note { margin: 0 0.75rem 0.75rem; font: inherit; font-size: 0.76rem; border: 1px solid var(--linie); border-radius: var(--r-control); padding: 0.35rem 0.5rem; background: var(--canvas); color: var(--black); resize: vertical; min-height: 2rem; }
.lt-note:focus { outline: none; border-color: var(--green); background: var(--white); }
.lt-gross img { display: block; width: 100%; height: auto; max-height: 68vh; object-fit: contain; border-radius: 8px; background: var(--tint); }
.lt-gross .lt-hl { font-weight: 500; margin: 0.8rem 0 0.2rem; }
.lt-gross .lt-kb { font-size: 0.8rem; color: var(--text-56); margin: 0.2rem 0; }
.lt-gross a { color: var(--green); font-size: 0.82rem; display: inline-flex; align-items: center; gap: 0.2rem; }
@media (max-width: 640px) { .lt-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; } .lt-zahlen { margin-left: 0; } }
/* Winner-Bibliothek */
.wb .wb-sp { flex: 1; }
.wb .sel.an { border-color: var(--cyan-deep); color: var(--cyan-deep); }
.wb .seg button .ic { font-size: 0.85rem; }
.wb-badge { display: inline-grid; place-items: center; min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem; margin-left: 0.3rem; border-radius: var(--r-pill); background: var(--cyan-deep); color: #fff; font-size: 0.62rem; font-weight: 500; }
.seg button.active .wb-badge { background: #fff; color: var(--cyan-deep); }
.wb-stats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #fff; border-radius: var(--r-card); box-shadow: var(--card-shadow); }
.wb-stats > div { padding: 0.85rem 1.1rem; display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.wb-stats > div + div { border-left: 1px solid var(--tint-deep); }
.wb-stats span { font-size: 0.6rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan-deep); }
.wb-stats b { font-weight: 300; font-size: 1.45rem; font-variant-numeric: tabular-nums; color: var(--black); }
.wb-stats b.acc { color: var(--cyan-deep); }
.wb-stats b.warn { color: #b45309; }
.wb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.1rem; }
.wb-grid.klein { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem; }
.wb-card { display: flex; flex-direction: column; text-align: left; background: #fff; border-radius: var(--r-card); box-shadow: var(--card-shadow); overflow: hidden; transition: transform 0.2s var(--ease-smooth), box-shadow 0.2s; cursor: pointer; font: inherit; color: inherit; padding: 0; border: 0; }
.wb-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(14,17,22,.05), 0 20px 36px -16px rgba(14,17,22,.16); }
.wb-card:focus-visible { outline: 2px solid var(--cyan-deep); outline-offset: 2px; }
.wb-thumb { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--tint); }
.wb-bild { position: relative; display: grid; place-items: center; width: 100%; height: 100%; background: var(--tint); overflow: hidden; }
.wb-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wb-bild .ph { display: none; font-size: 0.72rem; color: var(--text-32); padding: 0.75rem; text-align: center; }
.wb-bild.ohne .ph { display: block; }
.wb-bild.mini { width: 34px; height: 42px; border-radius: 5px; }
.wb-bild.mini .ph { display: none; }
.wb-bild.gross img { object-fit: contain; background: var(--tint); }
.wb-bild.prev { height: auto; max-height: 420px; }
.wb-bild.prev img { max-height: 420px; object-fit: cover; }
.wb-bild.prev.ohne { display: none; }
.wb-tag { position: absolute; font-size: 0.66rem; font-weight: 500; padding: 0.15rem 0.5rem; border-radius: var(--r-pill); background: #fff; color: var(--text-56); box-shadow: 0 1px 2px rgba(14,17,22,.12); }
.wb-tag.tl { top: 0.5rem; left: 0.5rem; }
.wb-tag.tr { top: 0.5rem; right: 0.5rem; }
.wb-tag.rang { bottom: 0.5rem; left: 0.5rem; background: var(--cyan-deep); color: #fff; }
.wb-tag.drive { bottom: 0.5rem; right: 0.5rem; background: #fff7ed; color: #b45309; }
.wb-tag.st-pausiert { background: #fff7ed; color: #b45309; }
.wb-tag.st-archiviert { background: var(--tint-deep); color: var(--text-56); }
.wb-cbody { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem 0.85rem 0.85rem; }
.wb-cbody .t { font-weight: 500; font-size: 0.84rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.wb-who { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.74rem; color: var(--text-56); min-width: 0; }
.wb-who > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-av { width: 1.3rem; height: 1.3rem; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: var(--blau-soft); color: var(--cyan-deep); font-size: 0.56rem; font-weight: 600; }
.wb-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--tint-deep); padding-top: 0.5rem; }
.wb-metrics > span { display: flex; flex-direction: column; }
.wb-metrics small { font-size: 0.58rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-32); }
.wb-metrics b { font-weight: 300; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.wb-metrics b.acc { color: var(--cyan-deep); font-weight: 400; }
.wb-tab th.sortierbar { cursor: pointer; }
.wb-tab th.sortierbar:hover { color: var(--black); }
.wb-tab td.wb-wrap { white-space: normal; min-width: 240px; font-weight: 500; }
.wb-tab td.wb-acc { color: var(--cyan-deep); font-weight: 500; }
.wb-tab .tbl-scroll { max-height: calc(100vh - 300px); overflow: auto; }
.wb-tab thead th { position: sticky; top: 0; z-index: 1; }
.wb-pop { position: relative; }
.wb-popbox { position: absolute; right: 0; top: calc(100% + 6px); z-index: 15; background: #fff; border-radius: var(--r-card); box-shadow: var(--card-shadow), 0 12px 30px -12px rgba(14,17,22,.25); padding: 0.45rem; width: 220px; max-height: 60vh; overflow: auto; }
.wb-popbox label { display: flex; gap: 0.5rem; align-items: center; padding: 0.3rem 0.4rem; border-radius: 6px; font-size: 0.8rem; cursor: pointer; }
.wb-popbox label:hover { background: var(--tint); }
.wb-intro { display: flex; gap: 0.8rem; align-items: flex-start; background: var(--blau-soft); border-radius: var(--r-card); padding: 0.85rem 1rem; font-size: 0.82rem; color: var(--text-56); }
.wb-intro .ic { color: var(--cyan-deep); font-size: 1.05rem; margin-top: 0.05rem; }
.wb-intro b { color: var(--black); font-weight: 500; }
.wb-inbox { padding: 0; overflow: hidden; }
.wb-prop { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 1.1rem; align-items: center; padding: 1rem 1.1rem; }
.wb-prop + .wb-prop { border-top: 1px solid var(--tint-deep); }
.wb-pimg { position: relative; width: 96px; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--tint); cursor: pointer; padding: 0; border: 0; }
.wb-pimg .wb-tag { font-size: 0.6rem; }
.wb-ptxt { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.wb-ptxt .meta1 { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; font-size: 0.74rem; color: var(--text-32); }
.wb-ptxt > b { font-size: 0.95rem; font-weight: 500; line-height: 1.3; }
.wb-ptxt > b a { color: inherit; text-decoration: none; }
.wb-ptxt > b a:hover { color: var(--cyan-deep); }
.wb-ptxt .why { color: var(--text-56); font-size: 0.8rem; max-width: 72ch; }
.wb-chips { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.wb-chips .chip { font-size: 0.72rem; padding: 0.1rem 0.5rem; border-radius: 6px; background: var(--tint); color: var(--text-56); font-variant-numeric: tabular-nums; }
.wb-chips .chip.acc { background: var(--blau-soft); color: var(--cyan-deep); font-weight: 500; }
.wb-chips .chip.gut { background: rgba(34,197,94,0.12); color: #15803d; }
.wb-pill { display: inline-flex; align-items: center; font-size: 0.66rem; font-weight: 500; padding: 0.1rem 0.5rem; border-radius: var(--r-pill); background: var(--tint-deep); color: var(--text-56); }
.wb-pill.ja { background: rgba(34,197,94,0.12); color: #15803d; }
.wb-pill.nein { background: rgba(220,38,38,0.08); color: #b91c1c; }
.wb-pill.warten { background: #fff7ed; color: #b45309; }
.wb-decide { display: inline-flex; border: 1px solid var(--border-light); border-radius: var(--r-control); overflow: hidden; background: #fff; }
.wb-decide button { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.45rem 0.7rem; font-size: 0.78rem; font-weight: 500; color: var(--text-56); white-space: nowrap; border-left: 1px solid var(--border-light); transition: background 0.15s; }
.wb-decide button:first-child { border-left: 0; }
.wb-decide button:hover { background: var(--tint); }
.wb-decide button.ja.an { background: var(--cyan-deep); color: #fff; }
.wb-decide button.nein.an { background: #b91c1c; color: #fff; }
.wb-decide button.warten.an { background: #b45309; color: #fff; }
/* Winner-Bibliothek: Detail-Panel */
.wb-scrim { position: fixed; inset: 0; background: rgba(14,17,22,0.28); z-index: 58; opacity: 0; transition: opacity 0.3s; }
.wb-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(820px, 100vw); z-index: 59; background: #fff; box-shadow: -24px 0 60px rgba(14,17,22,0.18); display: flex; flex-direction: column; transform: translateX(103%); transition: transform 0.42s var(--ease-smooth); }
body.wb-offen .wb-panel { transform: none; }
body.wb-offen .wb-scrim { opacity: 1; }
.wb-phead { padding: 1.1rem 1.5rem 0; border-bottom: 1px solid var(--tint-deep); display: flex; flex-direction: column; gap: 0.6rem; }
.wb-phead .row1 { display: flex; align-items: flex-start; gap: 0.75rem; }
.wb-phead .tt { min-width: 0; flex: 1; }
.wb-phead .crumb { font-size: 0.72rem; color: var(--text-32); display: flex; gap: 0.3rem; align-items: center; flex-wrap: wrap; }
.wb-phead h2 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin-top: 0.15rem; }
.wb-phead .acts { display: flex; gap: 0.4rem; align-items: center; flex: none; }
.wb-phead .acts .sel { box-shadow: none; border: 1px solid var(--border-light); }
.wb-tabs { display: flex; gap: 0.1rem; margin-bottom: -1px; overflow-x: auto; }
.wb-tabs button { padding: 0.55rem 0.75rem; font-size: 0.8rem; font-weight: 500; color: var(--text-32); border-bottom: 2px solid transparent; white-space: nowrap; }
.wb-tabs button[aria-selected="true"] { color: var(--black); border-bottom-color: var(--cyan-deep); }
.wb-tabs .n { font-size: 0.66rem; margin-left: 0.25rem; color: var(--text-32); }
.wb-pbody { flex: 1; overflow-y: auto; padding: 1.3rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.wb-pbody .lp-sec { margin: 0.4rem 0 0; }
.wb-pfoot { border-top: 1px solid var(--tint-deep); padding: 0.8rem 1.5rem calc(0.8rem + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.wb-pfoot > span { color: var(--text-56); font-size: 0.82rem; margin-right: auto; }
.wb-ov { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: 1.3rem; align-items: start; }
.wb-ovr { display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }
.wb-media { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 5; background: var(--tint); }
.wb-play { position: absolute; inset: 0; display: grid; place-items: center; text-decoration: none; background: linear-gradient(transparent 55%, rgba(14,17,22,.35)); }
.wb-play span { display: inline-flex; align-items: center; gap: 0.4rem; background: #fff; color: var(--black); padding: 0.55rem 0.95rem; border-radius: var(--r-pill); font-size: 0.8rem; font-weight: 500; box-shadow: var(--card-shadow); }
.wb-kgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--tint-deep); border: 1px solid var(--tint-deep); border-radius: var(--r-card); overflow: hidden; }
.wb-kgrid > div { background: #fff; padding: 0.6rem 0.75rem; display: flex; flex-direction: column; gap: 0.1rem; }
.wb-kgrid span { font-size: 0.58rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-32); }
.wb-kgrid b { font-weight: 300; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.wb-kgrid b.acc { color: var(--cyan-deep); font-weight: 400; }
.wb-links { display: flex; flex-direction: column; border: 1px solid var(--tint-deep); border-radius: var(--r-card); overflow: hidden; }
.wb-links > a, .wb-links > div { display: flex; align-items: center; gap: 0.55rem; padding: 0.6rem 0.75rem; font-size: 0.8rem; color: var(--text-56); text-decoration: none; }
.wb-links > * + * { border-top: 1px solid var(--tint-deep); }
.wb-links > a:hover { background: var(--tint); color: var(--black); }
.wb-links .ic { color: var(--cyan-deep); }
.wb-links .r { margin-left: auto; font-size: 0.72rem; color: var(--text-32); text-align: right; }
.wb-links .r.ok { color: #15803d; }
.wb-links .r.no { color: #b45309; }
.wb-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.4rem 1rem; font-size: 0.8rem; margin: 0; }
.wb-meta dt { color: var(--text-32); }
.wb-meta dd { margin: 0; color: var(--text-56); overflow-wrap: anywhere; }
.wb-meta dd.mono { font-size: 0.74rem; }
.wb-del { padding-top: 0.4rem; }
.wb-vtabs { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.wb-vtabs button { border: 1px solid var(--border-light); background: #fff; border-radius: var(--r-pill); padding: 0.22rem 0.7rem; font-size: 0.76rem; color: var(--text-56); }
.wb-vtabs button.an { background: var(--cyan-deep); border-color: var(--cyan-deep); color: #fff; }
.wb-adprev { border: 1px solid var(--tint-deep); border-radius: var(--r-card); overflow: hidden; max-width: 520px; background: #fff; }
.wb-adprev .ah { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 0.85rem; }
.wb-adprev .ah .wb-av { width: 2rem; height: 2rem; font-size: 0.7rem; }
.wb-adprev .ah b { font-size: 0.84rem; font-weight: 500; }
.wb-adprev .ah small { display: block; color: var(--text-32); font-size: 0.7rem; }
.wb-adprev .txt { padding: 0 0.85rem 0.75rem; white-space: pre-wrap; font-size: 0.86rem; line-height: 1.5; }
.wb-adprev .hl { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.85rem; background: var(--tint); }
.wb-adprev .hl b { flex: 1; font-size: 0.86rem; font-weight: 500; }
.wb-heads { display: flex; flex-direction: column; gap: 0.35rem; }
.wb-head { display: flex; gap: 0.6rem; align-items: center; border: 1px solid var(--tint-deep); border-radius: var(--r-control); padding: 0.35rem 0.35rem 0.35rem 0.75rem; font-size: 0.84rem; }
.wb-head span { flex: 1; font-weight: 500; }
.wb .miss, .wb-panel .miss { color: var(--text-32); font-style: italic; font-size: 0.82rem; }
.wb-notes { display: flex; flex-direction: column; gap: 0.75rem; }
.wb-note { display: flex; gap: 0.6rem; }
.wb-note .wb-av { width: 1.75rem; height: 1.75rem; font-size: 0.62rem; }
.wb-note .bubble { background: var(--tint); border-radius: var(--r-card); padding: 0.6rem 0.75rem; flex: 1; min-width: 0; }
.wb-note small { color: var(--text-32); display: block; margin-bottom: 0.15rem; font-size: 0.72rem; }
.wb-note p { margin: 0; white-space: pre-wrap; font-size: 0.84rem; }
.wb-addnote { display: flex; gap: 0.5rem; align-items: flex-end; }
.wb-addnote textarea { flex: 1; min-width: 0; min-height: 4rem; font-family: inherit; font-size: 0.84rem; padding: 0.55rem 0.7rem; border: 1px solid var(--border-light); border-radius: var(--r-control); resize: vertical; }
.wb-addnote textarea:focus { outline: none; border-color: var(--cyan-deep); box-shadow: 0 0 0 3px rgba(59,107,255,0.15); }
.wb-form .wb-vars { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 0.45rem; }
.wb-var { display: flex; gap: 0.4rem; align-items: flex-start; }
.wb-var textarea, .wb-var input { flex: 1; }
.wb-var textarea { min-height: 6rem; }
.wb-form .lp-sec { margin: 0.6rem 0 -0.2rem; }
@media (max-width: 1100px) {
  .wb-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wb-stats > div:nth-child(5) { border-left: 0; }
  .wb-stats > div:nth-child(n+5) { border-top: 1px solid var(--tint-deep); }
}
@media (max-width: 820px) {
  .wb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-stats > div { border-left: 0 !important; border-top: 1px solid var(--tint-deep); }
  .wb-stats > div:nth-child(-n+2) { border-top: 0; }
  .wb-stats > div:nth-child(even) { border-left: 1px solid var(--tint-deep) !important; }
  .wb-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
  .wb-prop { grid-template-columns: 72px minmax(0, 1fr); gap: 0.8rem; padding: 0.85rem; }
  .wb-pimg { width: 72px; }
  .wb-prop .wb-decide { grid-column: 1 / -1; justify-self: start; }
  .wb-ov { grid-template-columns: minmax(0, 1fr); }
  .wb-media { max-width: 340px; }
  .wb-kgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-phead, .wb-pbody, .wb-pfoot { padding-left: 1rem; padding-right: 1rem; }
  .wb-phead .row1 { flex-wrap: wrap; }
  .wb-phead .tt { flex: 1 1 100%; order: 2; }
  .wb-phead .acts { order: 1; width: 100%; justify-content: flex-end; }
  .wb .search { min-width: 0; flex: 1; }
}
