/* Clipping-Dashboard: Bausteine und Geruest (BAUPLAN-lang.md 3.2 und 3.3).
   Klassennamen wie in der NEX-Vorlage. Handy zuerst; ab 781px Seitenleiste, ab 900px Raster. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg-2);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: color-mix(in srgb, var(--lilac) 70%, transparent); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--blue-ink); }
.num, .stat-value, .gr-tile-wert, .hero-number, .gr-tabelle { font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- Hintergrund */
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70rem 50rem at 0% 0%, var(--bg-1), transparent 62%),
    radial-gradient(60rem 46rem at 100% 100%, var(--bg-3), transparent 60%),
    var(--bg-2);
}

/* ---------------------------------------------------------------- Geruest */
.app {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px 14px;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 100vh;
}
.main { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 781px) {
  .app { padding: 14px 18px 18px; }
}
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Kopfzeile */
.topbar { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar .spacer { flex: 1; min-width: 0; }
.logo {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: #17141f; color: #ffffff; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; letter-spacing: -0.02em;
}
.logo-chip { margin-left: -2px; }
.conn {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0;
  font-size: 11.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px;
  background: var(--glass); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--edge);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.conn .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--muted); }
.conn.online .dot { background: var(--ok); animation: beat 2.2s var(--ease-soft) infinite; }
.conn.offline .dot { background: var(--bad); }
@keyframes beat {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
  50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 0%, transparent); }
}
.icon-btn {
  width: 38px; height: 38px; border-radius: 999px; flex: none; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--ink);
  background: var(--glass); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--edge);
  transition: transform var(--dur-micro) var(--ease-standard);
}
.icon-btn:hover { transform: translateY(-2px); }
.icon-btn:active { transform: scale(0.96); }
.person {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 4px 11px 4px 4px; border-radius: 999px;
  background: var(--glass); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--edge);
  font-size: 12.5px; font-weight: 600;
}
.person .initial {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lilac); color: var(--lilac-ink); font-weight: 700;
}
@media (max-width: 420px) { .person .name { display: none; } .person { padding-right: 4px; } }
/* Sehr schmal (320px): nur der Punkt der Verbindungs-Pille, Text steht im title. */
/* Am Handy kurz „online“/„offline“ statt nur des Punkts (Befund U8). */
.conn .conn-kurz { display: none; }
@media (max-width: 440px) { .conn .conn-text { display: none; } .conn .conn-kurz { display: inline; } .conn { padding: 6px 9px; } }

/* Reiter */
.toptabs {
  position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: var(--glass); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--edge);
  overflow-x: auto; scrollbar-width: none; min-width: 0; max-width: 100%;
}
.toptabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; z-index: 1; flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 999px;
  color: var(--muted); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: color var(--dur-text) var(--ease-standard);
}
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { color: var(--on-accent); }
/* Handy: die fünf Reiter teilen sich die Breite, ohne Wischen (Befund U4, 351 px). */
@media (max-width: 780px) {
  .toptabs { width: 100%; overflow: visible; }
  .tab { flex: 1 1 0; min-width: 0; justify-content: center; font-size: 13px; padding: 9px 2px; min-height: 40px; }
  .tab > span:first-child { overflow: hidden; text-overflow: ellipsis; }
  .tab .subtab-badge { position: absolute; top: -3px; right: -1px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
  .tab .live-dot { position: absolute; top: 4px; right: 4px; }
}
.pill {
  position: absolute; top: 4px; bottom: 4px; left: 0; z-index: 0; border-radius: 999px;
  background: var(--accent); box-shadow: var(--shadow-pill);
  transition: transform 0.5s var(--ease-pill), width 0.5s var(--ease-pill);
}
.subtab-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: inline-grid; place-items: center;
  background: linear-gradient(180deg, #ee5a82, var(--bad)); color: #ffffff;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.tab .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
/* Handy: Reiter in eigener Zeile unter der Kopfzeile; Laptop: in der Kopfzeile. */
.topbar { flex-wrap: wrap; }
.tabs-slot { order: 10; flex: 1 1 100%; min-width: 0; display: flex; }
@media (min-width: 781px) {
  .tabs-slot { order: 0; flex: 1 1 auto; }
  .topbar .spacer { display: none; }
}
.person { border: 0; cursor: pointer; color: var(--ink); }
.person-wrap { position: relative; flex: none; }
.person-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(260px, 80vw);
  background: var(--surface); border-radius: 14px; padding: 12px; box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--edge);
}
.person-menu .note { margin: 0; }

/* Beispiel-Streifen */
.gr-beispiel {
  background: var(--glass); border-left: 4px solid var(--warn); border-radius: 12px;
  padding: 9px 13px; font-size: 12.5px; box-shadow: var(--shadow-sm);
}
.gr-beispiel.spoiler { border-left-color: var(--bad); }

/* ---------------------------------------------------------------- Titel */
.scene-head { margin: 8px 2px 4px; }
.scene-title {
  margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -0.035em; line-height: 1.2;
  padding-bottom: 0.06em;
  background: linear-gradient(100deg, var(--ink) 0 55%, var(--lilac-ink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (min-width: 781px) { .scene-title { font-size: 34px; } }
.scene-hint { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- Karten */
.stack { display: flex; flex-direction: column; gap: var(--gap); }
.grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card, .stat {
  background: var(--surface); border-radius: var(--radius-card); padding: 18px; min-width: 0;
  box-shadow: var(--shadow), inset 0 1px 0 var(--hi), inset 0 0 0 1px var(--edge);
}
.card h2 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.card h3 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; overflow-wrap: anywhere; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head .grow { flex: 1; min-width: 0; }
.card-sub, .note { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
/* Inaktive Accounts abblenden. Nicht über `opacity`: die Einblend-Animation `.reveal` (fill-mode both)
   hält opacity: 1 fest und würde das überschreiben. `filter` animiert sie nicht. */
.card.off { filter: grayscale(0.7) opacity(0.5); }
.card.off:hover, .card.off:focus-within { filter: grayscale(0.3) opacity(0.8); }
/* Accounts ohne verbundenen Upload (setup anzulegen/angelegt): leiser als aktiv, lauter als inaktiv.
   Gleicher Weg wie `.card.off` (filter statt opacity). Inaktiv gewinnt (steht danach). */
.card.unverbunden { filter: grayscale(0.35) opacity(0.8); }
.card.unverbunden:hover, .card.unverbunden:focus-within { filter: none; }
.card.unverbunden.off { filter: grayscale(0.7) opacity(0.5); }
.card-hero {
  color: #ffffff;
  background:
    radial-gradient(120% 90% at 100% 0%, var(--orange-2), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, #c8401c, transparent 60%),
    var(--orange);
  box-shadow: 0 2px 4px rgb(23 20 31 / 6%), 0 20px 40px -14px var(--glow-orange), inset 0 1px 0 rgb(255 255 255 / 30%);
}
.card-hero .card-sub, .card-hero .note { color: rgb(255 255 255 / 85%); }
.hero-number { font-size: 60px; font-weight: 650; letter-spacing: -0.045em; line-height: 1; margin: 10px 0 4px; }
@media (min-width: 781px) { .hero-number { font-size: 72px; } }
.gr-eb { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.085em; color: var(--muted); margin: 0; }
.card-hero .gr-eb { color: rgb(255 255 255 / 80%); }
.section-eb { margin: 10px 4px 0; }

/* Kennzahlen */
.gr-kpis { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .gr-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gr-tile { position: relative; overflow: hidden; padding: 16px 18px 15px; }
.gr-tile::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--lilac-ink), var(--blue-ink));
  transform-origin: left; animation: grow-x 0.9s var(--ease-standard) 0.35s both;
}
.gr-kpis > :nth-child(2)::before { background: linear-gradient(90deg, var(--blue-ink), var(--mint-ink)); }
.gr-kpis > :nth-child(3)::before { background: linear-gradient(90deg, var(--mint-ink), #b8d64a); }
.gr-kpis > :nth-child(4)::before { background: linear-gradient(90deg, var(--peach-ink), var(--orange)); }
.gr-tile-wert { font-size: 32px; font-weight: 650; letter-spacing: -0.04em; line-height: 1.1; margin-top: 6px; overflow-wrap: anywhere; }
.gr-tile-wert.small { font-size: 22px; }
.stat-value { font-size: 44px; font-weight: 650; letter-spacing: -0.04em; line-height: 1.1; }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gr-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 650; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}
.gr-chip.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.gr-chip.w { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.gr-chip.b { background: color-mix(in srgb, var(--bad) 13%, transparent); color: var(--bad); }
.gr-chip.a { background: var(--surface-2); color: var(--ink-2); }
.chip-button {
  font-size: 12.5px; font-weight: 600; padding: 8px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-height: 40px;
  transition: transform var(--dur-micro) var(--ease-standard);
}
.chip-button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: var(--shadow-pill); }
.chip-button:active { transform: scale(0.96); }

/* Knoepfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; padding: 8px 15px; font-weight: 550; cursor: pointer; min-height: 44px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform var(--dur-micro) var(--ease-standard), opacity var(--dur-micro);
  text-decoration: none;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:active:not(:disabled) { transform: scale(0.96); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: var(--shadow-pill); }
.btn-danger { background: var(--bad); color: #ffffff; border-color: var(--bad); }
.btn-quiet { background: transparent; border-color: transparent; box-shadow: none; }
.actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.actions .btn { min-height: 48px; padding: 8px 6px; font-size: 14px; }
.gr-mini {
  min-height: 34px; padding: 0 13px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 650;
}

/* Zeilen und Tabellen */
.gr-zeile { display: flex; align-items: flex-start; gap: 11px; padding: 10px 8px; border-top: 1px solid var(--line); min-width: 0; }
.gr-zeile:first-child { border-top: 0; }
.gr-zeile .grow { flex: 1; min-width: 0; }
.gr-zeile .titel { font-weight: 650; overflow-wrap: anywhere; }
.gr-zeile .klein { font-size: 12.5px; color: var(--muted); }
.gr-zeile .rechts { text-align: right; flex: none; font-size: 12.5px; }
.gr-zeile .zeit { font-weight: 650; font-variant-numeric: tabular-nums; flex: none; width: 46px; }
.gr-tabelle { width: 100%; border-collapse: collapse; font-size: 13px; }
.gr-tabelle th { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); text-align: left; padding: 6px 8px; }
.gr-tabelle td { padding: 9px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.gr-tabelle td.r, .gr-tabelle th.r { text-align: right; }
.only-wide { display: none; }
@media (min-width: 900px) { .only-wide { display: block; } .only-narrow { display: none; } }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
@media (min-width: 900px) { .kv.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kv > div { background: var(--surface-2); border-radius: var(--radius-sub); padding: 9px 11px; min-width: 0; }
.kv dt { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.kv dd { margin: 2px 0 0; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Balken und Fortschritt */
.gr-balken { display: flex; flex-direction: column; gap: 8px; }
.gr-balken-zeile { display: grid; grid-template-columns: minmax(0, 118px) minmax(0, 1fr) 76px; gap: 10px; align-items: center; font-size: 12.5px; }
.gr-balken-zeile .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-balken-zeile .wert { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.bahn { height: 12px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.fuellung { height: 100%; border-radius: 6px; transform-origin: left; animation: grow-x 0.9s var(--ease-standard) both; }
.s-youtube, .s1 { background: var(--g-s1); }
.s-instagram, .s2 { background: var(--g-s2); }
.s-tiktok, .s3 { background: var(--g-s3); }
.s4 { background: var(--g-s4); }
.frei { background: var(--surface-3); }
.track { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--lilac-ink), var(--blue-ink)); transform-origin: left; animation: grow-x 0.9s var(--ease-standard) both; }
.stapel { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: var(--surface-3); margin-top: 10px; }
.stapel > span { height: 100%; transform-origin: left; animation: grow-x 0.9s var(--ease-standard) both; }
.legende { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Video */
.video {
  position: relative; margin-top: 12px; border-radius: var(--radius-sub); overflow: hidden;
  background: var(--surface-3); aspect-ratio: 9 / 16; max-height: 62vh; width: 100%;
  margin-inline: auto; display: grid; place-items: center;
}
@supports (aspect-ratio: 9 / 16) { .video { width: auto; height: min(62vh, calc((100vw - 60px) * 16 / 9)); max-width: 100%; } }
.video .novideo { padding: 20px; text-align: center; color: var(--muted); font-size: 13.5px; }
.video video { width: 100%; height: 100%; object-fit: contain; background: #000000; }

/* Kasten, leer, Blatt */
.gr-kasten { background: var(--surface-2); border-radius: 14px; padding: 12px; margin-top: 10px; }
.gr-kasten.bad { background: color-mix(in srgb, var(--bad) 9%, transparent); color: var(--bad); }
.empty {
  border: 1.5px dashed color-mix(in srgb, var(--lilac-ink) 30%, transparent); border-radius: 20px;
  min-height: 180px; display: grid; place-items: center; text-align: center;
  padding: 20px; color: var(--muted); font-size: 13.5px;
}
.empty p { margin: 0; }
.schleier { position: fixed; inset: 0; z-index: 40; background: rgb(15 13 23 / 45%); animation: fade-in var(--dur-card) var(--ease-standard); }
.gr-blatt {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 88vh; overflow-y: auto;
  background: var(--surface); border-radius: 28px 28px 0 0; padding: 10px 18px 26px;
  box-shadow: 0 -20px 60px -20px rgb(23 20 31 / 35%);
  animation: sheet-in var(--dur-card) var(--ease-standard);
}
.gr-blatt .griff { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 12px; }
.gr-blatt h2 { margin: 0 0 12px; font-size: 18px; font-weight: 650; }
@media (min-width: 781px) {
  .gr-blatt { left: 50%; right: auto; bottom: auto; top: 50%; width: min(420px, 92vw); border-radius: 28px; transform: translate(-50%, -50%); animation: fade-in var(--dur-card) var(--ease-standard); }
}
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.field input, .field textarea, .field select {
  border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 9px 12px; font-size: 15px; color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; background: var(--surface);
  border-color: color-mix(in srgb, var(--lilac-ink) 60%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--lilac-ink) 16%, transparent);
}
.choice-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.choice-list .chip-button { text-align: left; border-radius: 14px; }
.blatt-actions { display: flex; gap: 8px; margin-top: 16px; }
.blatt-actions .btn { flex: 1; min-height: 48px; }

details summary { cursor: pointer; font-weight: 600; font-size: 13px; margin-top: 10px; }
.vote-line { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.suggest { margin-top: 10px; display: grid; gap: 4px; }
.suggest .row { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; }
.suggest .row .gr-eb { width: 76px; flex: none; }
.muted { color: var(--muted); }

/* Segment innerhalb einer Ansicht */
.gr-seg {
  display: flex; gap: 2px; padding: 4px; border-radius: 999px; align-self: flex-start; max-width: 100%;
  background: var(--glass); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--edge);
  overflow-x: auto; scrollbar-width: none;
}
.gr-seg::-webkit-scrollbar { display: none; }
.seg-btn {
  flex: none; border: 0; cursor: pointer; background: transparent; color: var(--muted);
  padding: 7px 14px; border-radius: 999px; font-weight: 550; min-height: 36px; white-space: nowrap;
  transition: background var(--dur-text) var(--ease-standard), color var(--dur-text) var(--ease-standard);
}
.seg-btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-pill); }

/* Hinweis-Streifen (wie .gr-beispiel, Kante lila) */
.gr-hinweis {
  background: var(--glass); border-left: 4px solid var(--lilac-ink); border-radius: 12px;
  padding: 9px 13px; font-size: 12.5px; box-shadow: var(--shadow-sm);
}

/* Einreichfrist (submit_by, 0007): Hinweis oben, Zeile je geposteten Kampagnen-Post */
.frist-hint {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--glass); border-left: 4px solid var(--orange); border-radius: 12px;
  padding: 9px 13px; font-size: 13px; box-shadow: var(--shadow-sm); min-width: 0;
}
.frist-hint p { margin: 0; flex: 1 1 200px; font-weight: 600; overflow-wrap: anywhere; }
.frist { margin-top: 6px; font-size: 12.5px; overflow-wrap: anywhere; }
.frist.offen {
  display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline;
  background: color-mix(in srgb, var(--orange) 14%, transparent); color: var(--ink);
  border-radius: 10px; padding: 6px 9px; font-weight: 650;
}
.frist-rest { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.frist.abgelaufen { color: color-mix(in srgb, var(--bad) 80%, var(--muted)); }

/* „Fehlt noch“ (A5): ruhiger Streifen wie .gr-beispiel, Kante lila, ein Eintrag je Zeile */
.fehlt {
  background: var(--glass); border-left: 4px solid var(--lilac-ink); border-radius: 12px;
  padding: 4px 13px; font-size: 13px; box-shadow: var(--shadow-sm); min-width: 0;
}
.fehlt-row { padding: 9px 0; border-top: 1px solid var(--line); min-width: 0; }
.fehlt > .fehlt-row:first-child { border-top: 0; }
.fehlt-text { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.fehlt-wer { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.fehlt-eb { font-weight: 650; color: var(--ink-2); }
.fehlt-wer .fehlt-eb { color: var(--muted); }
.fehlt code, .konnektor code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.92em;
  background: var(--surface-2); border-radius: 6px; padding: 1px 5px; white-space: nowrap;
}
.fehlt details summary { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--lilac-ink); }
.fehlt-grund p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.fehlt-alle { border-top: 1px solid var(--line); padding: 8px 0 6px; }
.fehlt > .fehlt-alle:first-child { border-top: 0; }
.fehlt-alle > summary { margin: 0 !important; font-size: 10.5px !important; font-weight: 700; text-transform: uppercase; letter-spacing: 0.085em; color: var(--muted) !important; display: flex; align-items: center; gap: 6px; min-height: 28px; }
.fehlt-alle > summary::before { content: "▸"; transition: transform var(--dur-icon) var(--ease-standard); }
.fehlt-alle[open] > summary::before { transform: rotate(90deg); }
.fehlt-alle > .fehlt-row:first-of-type { border-top: 0; }

/* Live (A6): Geräte, Aufgaben, Konnektoren */
.geraete { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .geraete { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .geraete { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.geraet {
  text-align: left; cursor: pointer; border: 0; font: inherit; color: inherit; width: 100%;
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px;
}
.geraet[aria-pressed="true"] { box-shadow: var(--shadow), inset 0 0 0 2px var(--lilac-ink); }
.geraet .titel { font-weight: 650; overflow-wrap: anywhere; }
.geraet .chips { margin-top: 4px; }
.konnektor h3 { font-size: 16px; }
.konnektor .card-sub { overflow-wrap: anywhere; }
.konnektor .fehlt { margin-top: 10px; box-shadow: none; background: var(--surface-2); }
.konnektor .kv { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Aufklappbare Zeilen in „Geplant“ und der Abschnitt „Von Opus abgelehnt“ */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.plan-row { border-top: 1px solid var(--line); }
.plan-row:first-child { border-top: 0; }
.plan-row > summary.gr-zeile { border-top: 0; margin: 0; font-weight: inherit; font-size: inherit; align-items: center; }
.plan-row[open] > summary .titel { color: var(--lilac-ink); }
.plan-body { padding: 0 8px 12px; display: flex; flex-direction: column; gap: 8px; }
.btn.wide { width: 100%; min-height: 48px; }
details.opus > summary { margin: 0; display: flex; align-items: center; gap: 8px; }
details.opus > summary::before { content: "▸"; color: var(--muted); transition: transform var(--dur-icon) var(--ease-standard); }
details.opus[open] > summary::before { transform: rotate(90deg); }
details.opus .gr-kasten .titel { font-weight: 650; margin: 0; overflow-wrap: anywhere; }
details.opus .gr-kasten .note { margin-top: 6px; }
.details { margin-top: 4px; }

/* Meldungen */
.toast-wrap { position: fixed; left: 12px; right: 12px; bottom: 14px; z-index: 60; display: flex; pointer-events: none; }
.toast {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 9px; max-width: 420px;
  background: var(--glass); border-radius: 14px; padding: 11px 14px; font-size: 13.5px;
  box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--edge);
  animation: toast-in var(--dur-card) var(--ease-spring);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lilac-ink); flex: none; }
.toast.bad .dot { background: var(--bad); }
.toast.bad { color: var(--bad); }
@keyframes toast-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Start- und Fehlerseiten */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 20px 16px; }
.gate-box {
  width: 100%; max-width: 400px; background: var(--glass); border-radius: 28px; padding: 30px 28px 26px;
  box-shadow: var(--shadow-lift); animation: gate-in 0.6s var(--ease-standard);
}
.gate-box .logo { width: 48px; height: 48px; border-radius: 15px; font-size: 22px; }
.gate-box h1 { margin: 14px 0 6px; font-size: 30px; font-weight: 650; letter-spacing: -0.03em; }
.gate-error { background: color-mix(in srgb, var(--bad) 9%, transparent); color: var(--bad); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-top: 12px; }
.login { margin-top: 4px; }
.login .login-btn { margin-top: 18px; }
.login .forgot-btn { margin-top: 8px; min-height: 40px; font-size: 13.5px; color: var(--muted); }
.gate-info { background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-top: 12px; }
@keyframes gate-in { from { transform: translateY(16px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }

/* Einblenden mit Versatz */
.reveal { animation: reveal 0.6s var(--ease-standard) both; animation-delay: calc(var(--i, 0) * var(--stagger-cards)); }
@keyframes reveal { from { transform: translateY(16px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }

/* Bewegung abschalten, wenn gewuenscht. Muss am Ende stehen. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Bereich Konten */
.konto-regel p { margin: 0; }
.konto-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
@media (max-width: 780px) { .konto-grid { grid-template-columns: 1fr; } }
.konto-art { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 14px; }
.konto-kampagnen { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.konto-kampagnen legend { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; padding: 0; }
.konto-id { margin: 14px 0 10px; }
.konto-auftraege { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.konto-auftrag { border-top: 1px solid color-mix(in srgb, var(--muted) 18%, transparent); padding-top: 12px; }
.konto-auftrag:first-child { border-top: 0; padding-top: 0; }
.konto-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.steckbrief { margin-top: 8px; }
.steckbrief summary { cursor: pointer; font-weight: 600; }
.steckbrief h4 { margin: 14px 0 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.steckbrief blockquote { margin: 0; padding: 8px 12px; border-left: 3px solid var(--accent); }
.steckbrief ol, .steckbrief ul { margin: 0; padding-left: 20px; }

/* ---------------------------------------------------------------- Aufgaben (19.11.2026) */
.aufg-gruppe { padding: 14px 18px 8px; }
.aufg-gruppe.claude { border-left: 4px solid var(--lilac-ink); }
.aufg-titel { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.aufg-zahl {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
details.aufg-gruppe > summary { margin: 0; display: flex; align-items: center; gap: 8px; min-height: 32px; }
details.aufg-gruppe > summary::before { content: "▸"; color: var(--muted); transition: transform var(--dur-icon) var(--ease-standard); }
details.aufg-gruppe[open] > summary::before { transform: rotate(90deg); }
details.aufg-gruppe > summary .aufg-titel { margin: 0; }
.aufg-karte { padding: 11px 0; border-top: 1px solid var(--line); min-width: 0; }
.aufg-titel + .aufg-karte, summary + .aufg-karte { border-top: 0; }
.aufg-text { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; line-height: 1.4; }
.aufg-grund, .aufg-wer { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.aufg-wer { color: var(--ink-2); }
.aufg-start { margin: 7px 0 0; font-size: 12px; font-weight: 600; color: var(--lilac-ink); overflow-wrap: anywhere; }
.aufg-karte .chips { margin-top: 7px; }
.aufg-karte.fertig .aufg-text { font-weight: 500; color: var(--ink-2); }
.aufg-karte.fertig .aufg-start { color: var(--ok); }
.aufg-karte code, .gr-hinweis code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.92em;
  background: var(--surface-2); padding: 1px 5px; border-radius: 6px;
}
a.aufg-link { text-decoration: none; }
a.aufg-link:hover, a.aufg-link:focus-visible { background: var(--surface-3); color: var(--ink); }
.aufg-leer { margin: 4px 0 8px; }
.gruppe-plattformen { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gruppe-zeile { display: flex; align-items: center; gap: 8px; }
.gruppe-plattformen .note { margin: 2px 0 0; }
.gruppe-profil { font-weight: 600; }

/* Sichtbare Läufe auf dem Server (Konto-Assistent, Upload verbinden, erster Post): „Jetzt du“ mit Antwort-Knöpfen */
.lauf {
  margin-top: 12px; padding: 10px 12px; border-radius: 12px; min-width: 0;
  background: var(--surface-2); border-left: 4px solid var(--muted); font-size: 13px;
}
.lauf.jetzt-du { border-left-color: var(--orange); background: color-mix(in srgb, var(--orange) 10%, var(--surface)); }
.lauf.gut { border-left-color: var(--ok); }
.lauf.schlecht { border-left-color: var(--bad); }
.lauf-titel { margin: 0; font-weight: 650; color: var(--ink); overflow-wrap: anywhere; line-height: 1.4; }
.lauf .konto-actions { margin-top: 8px; }
.lauf-ergebnis { margin: 6px 0 0; padding-left: 18px; overflow-wrap: anywhere; }
.lauf-verlauf { margin-top: 6px; font-size: 12px; color: var(--muted); }
.lauf-verlauf summary { cursor: pointer; }
.lauf-verlauf ul { margin: 4px 0 0; padding-left: 18px; overflow-wrap: anywhere; }
.gruppe-start { align-items: center; }
.gruppe-plattform { min-height: 40px; border-radius: 10px; padding: 0 10px; max-width: 100%; }
.erster-post { margin-top: 10px; }

/* ---------------------------------------------------------------- 21.11.2026: einfacher steuern */
/* Menü „Mehr“ (Streamer, Kampagnen, Stile) */
.mehr-wrap { position: relative; flex: none; }
.mehr-btn span { font-size: 20px; line-height: 1; transform: translateY(-3px); }
.mehr-btn.aktiv { background: var(--accent); color: var(--on-accent); }
.mehr-menu { width: min(220px, 80vw); display: grid; gap: 2px; padding: 6px; }
.mehr-link { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.mehr-link:hover, .mehr-link[aria-current="page"] { background: var(--surface-2); }

/* Karte nach einer Stimme (Befund U1) */
.entschieden-liste { margin-bottom: 4px; }
.card.entschieden { border-left: 4px solid var(--ok); animation: entschieden-weg 6s linear both; }
.card.entschieden.verworfen { border-left-color: var(--bad); }
.entschieden-text { margin: 0 0 6px; font-weight: 700; color: var(--ok); }
.entschieden.verworfen .entschieden-text { color: var(--bad); }
.card.entschieden .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card.entschieden a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
@keyframes entschieden-weg { 0%, 85% { opacity: 1; } 100% { opacity: 0.35; } }

/* Noch nicht gebaute Knöpfe (Befund M2) */
.btn.nicht-gebaut { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1.15; }
.btn.nicht-gebaut small { font-size: 10.5px; font-weight: 500; opacity: 0.9; }

/* Handy: Posten/Verwerfen am unteren Rand festhalten (Befund U7) */
@media (max-width: 780px) {
  .sticky-actions {
    position: sticky; bottom: 0; z-index: 5; margin: 12px -12px 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line); border-radius: 0 0 16px 16px;
  }
}

/* Ersten Post bestätigen (Befund S1) */
.gr-kasten.bestaetigen { border: 1px solid var(--warn); }
.gr-kasten.bestaetigen .titel { margin: 0; font-weight: 700; }

/* Konten: Kennungen nur im Aufklapp-Detail (Befund U5) */
details.kennung, details.konto-detail { margin-top: 8px; }
details.kennung > summary, details.konto-detail > summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted); min-height: 32px; display: flex; align-items: center; }
details.konto-detail[open] { padding: 8px 10px 10px; border-radius: 12px; background: var(--surface-2); }
.konto-zahlen { margin-top: 10px; }

/* Aufgaben: jeder Eintrag einmal, Namens-Chips (Befund U9) */
.aufg-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.aufg-kopf .gr-chip { margin: 0; }
.aufg-name { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.aufg-name.fabian { background: color-mix(in srgb, #3d7bd9 16%, transparent); color: #2f66b8; }
.aufg-name.raoul { background: color-mix(in srgb, #d9822b 18%, transparent); color: #a55d12; }
.aufg-name.claude { background: var(--lilac); color: var(--lilac-ink); }
.aufg-erledigt { font-size: 13px; font-weight: 800; color: var(--ok); text-transform: uppercase; letter-spacing: 0.04em; }
.aufg-karte.fertig .aufg-text { text-decoration: line-through; text-decoration-thickness: 1.5px; }
/* Handy: Tippflächen mindestens 40 px */
@media (max-width: 780px) {
  .icon-btn { width: 40px; height: 40px; }
  .person { min-height: 40px; }
  .seg-btn { min-height: 40px; }
}
.aufg-gruppe > .aufg-karte:first-child { border-top: 0; }

/* ---------------------------------------------------------------- 21.11.2026 (Nacht): Freigeben je Streamer, 3 pro Reihe */
/* Kopfzeile bleibt oben stehen: von jeder Seite (auch Server/Kommandozentrale) jeden Bereich anklicken */
.topbar {
  position: sticky; top: 0; z-index: 25; margin: -6px -8px 0; padding: 6px 8px; border-radius: 0 0 18px 18px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.grid.three { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bereich-leiste { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 2px 0; }
.bereich-knopf { min-height: 38px; }
.streamer-bereich { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; scroll-margin-top: 80px; }
.streamer-bereich + .streamer-bereich { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.bereich-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bereich-kopf h2 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.bereich-kopf .note { margin: 0; }
.bereich-av {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--lilac); color: var(--lilac-ink); font-weight: 700; font-size: 15px;
}
.card.clip-karte { padding: 14px; display: flex; flex-direction: column; }
.clip-karte .clip-kopf { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.clip-karte h3 { font-size: 16px; line-height: 1.3; }
.clip-karte .video { margin-top: 10px; height: min(56vh, calc((100vw - 60px) * 16 / 9)); }
.clip-karte .actions { margin-top: 10px; }
.clip-karte .actions .btn { font-size: 13.5px; }
.clip-karte .gruende { margin-top: 10px; padding: 9px 11px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 8%, var(--surface-2)); }
.clip-karte .gruende ul { margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); }
.clip-karte .gruende li + li { margin-top: 2px; }
.clip-karte .gruende .note { margin-top: 6px; }
.clip-karte .vote-line { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
details.clip-mehr { margin-top: 8px; }
details.clip-mehr > summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted); min-height: 32px; display: flex; align-items: center; }
details.clip-mehr[open] { padding: 4px 10px 10px; border-radius: 12px; background: var(--surface-2); }
.gr-blatt .field small.note { display: block; font-weight: 400; margin: 2px 0 6px; }

/* ---------------------------------------------------------------- 21.11.2026: Knöpfe erkennbar (Wunsch Fabian) */
/* Ein Primärknopf je Karte/Zeile (gefüllt, Akzent, mind. 44 px), Nebenaktionen sekundär (Rahmen, kein Text-Link). */
.btn-primary { font-weight: 650; padding: 10px 18px; }
.btn-primary > span[aria-hidden="true"], .btn > span[aria-hidden="true"] { font-size: 1.05em; line-height: 1; }
.btn-sek-warn { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.zeile-aktion { margin-top: 8px; align-items: center; }
.zeile-hinweis { flex-basis: 100%; }
.zeile-knopf { min-height: 44px; }
/* Aufklappbares klar als solches: Pfeil vor dem Text, der sich beim Öffnen dreht */
details.kennung > summary::before, details.konto-detail > summary::before, .lauf-verlauf > summary::before {
  content: "▸"; display: inline-block; margin-right: 6px; transition: transform var(--dur-icon) var(--ease-standard);
}
details.kennung[open] > summary::before, details.konto-detail[open] > summary::before, .lauf-verlauf[open] > summary::before { transform: rotate(90deg); }
.lauf-verlauf > summary { min-height: 32px; display: flex; align-items: center; }
/* Abbruch eines Laufs: roter Kasten, darunter was zu tun ist */
.lauf-abbruch { margin-top: 0; }
.lauf-abbruch .lauf-titel { color: var(--bad); }
.lauf-hilfe { margin: 6px 0 0; color: var(--ink); line-height: 1.45; }
/* Aufgaben: Erledigt */
.aufg-erledigt-btn { margin-top: 8px; }
.aufg-stand { margin: 8px 0 0; font-weight: 650; color: var(--ok); }
.aufg-stand.bad { color: var(--bad); }

/* ---------------------------------------------------------------- Alles im Dashboard (21.11.2026) */
.lauf { position: relative; }
.lauf-weg { float: right; min-height: 32px; padding: 4px 10px; font-size: 12.5px; margin: -4px -6px 4px 8px; }
.wuensche-karte { margin-top: 14px; }
.wuensche-zeile select { min-height: 44px; border-radius: 12px; padding: 6px 10px; font: inherit; }
.post-zeile { align-items: flex-start; }
.post-einreichen { margin-top: 8px; flex-wrap: wrap; }
.post-einreichen a.btn { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.post-eingereicht { color: var(--ok, inherit); font-weight: 600; }
.post-views { margin-top: 8px; }
.post-views > summary, .kampagne-form > summary, .streamer-form > summary { cursor: pointer; font-weight: 600; font-size: 13px; min-height: 40px; display: flex; align-items: center; color: var(--accent); }
.post-views > summary.btn { display: inline-flex; width: auto; color: inherit; list-style: none; }   /* U4: als Knopf */
.post-views > summary.btn::-webkit-details-marker { display: none; }
.post-views[open] > summary.btn { margin-bottom: 8px; }
.knopf-grund { align-self: center; color: var(--muted, inherit); }   /* U3: warum der Knopf gesperrt ist */
.post-views-form { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; align-items: center; max-width: 360px; }
.post-views-form .btn { grid-column: 1 / -1; justify-self: start; }
.post-views-form input, .kampagne-form select, .streamer-form select, .kampagne-form input, .streamer-form input {
  min-height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface, transparent); color: inherit; padding: 6px 10px; font: inherit; width: 100%;
}
.kampagne-form, .streamer-form { margin-top: 10px; }
.kampagne-sperre { margin-top: 10px; }
.kampagne-sperre .chips { margin: 6px 0; }
.note.bad { color: var(--bad); }

/* ---------------------------------------------------------------- 22.11.2026: Tab „Posts“ mit Views */
.mehr-btn { position: relative; }
.mehr-btn .mehr-zahl {
  position: absolute; top: -4px; right: -4px; transform: none;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; display: inline-grid; place-items: center;
  background: linear-gradient(180deg, #ee5a82, var(--bad)); color: #ffffff;
  font-size: 10.5px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
}
.mehr-link { justify-content: space-between; gap: 8px; }
.posts-aktualisieren { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.posts-aktualisieren .note { overflow-wrap: anywhere; min-width: 0; }
.posts-filter { display: grid; gap: 8px; min-width: 0; }
.posts-filter-zeile { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.posts-filter .gr-seg { min-width: 0; }
.posts-summen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap, 12px); }
.posts-summen .gr-tile { padding: 12px 14px; min-width: 0; }
.posts-summen .gr-tile-wert { font-size: 24px; }
.posts-liste { display: grid; gap: var(--gap, 12px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-karte { padding: 14px 16px; display: grid; gap: 8px; min-width: 0; align-content: start; }
.post-kopf { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.post-kopf .grow { min-width: 0; }
.post-titel { margin: 0; font-size: 15px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.post-kopf .klein { margin: 2px 0 0; overflow-wrap: anywhere; }
.post-zahlen { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.post-zahlen .note { margin: 0; }
.post-views-zahl { font-size: 30px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.post-views-einheit { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.post-trend { font-size: 12.5px; font-weight: 650; color: var(--ok); white-space: nowrap; }
.post-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; }
.post-ansehen { margin-left: auto; font-weight: 600; color: var(--accent); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.post-ansehen:hover { text-decoration: underline; }
@media (max-width: 420px) {
  .posts-summen .gr-tile { padding: 10px 10px; }
  .posts-summen .gr-tile-wert { font-size: 19px; }
  .seg-btn { padding: 7px 11px; }
}
