/* Streamster Admin – hell und nüchtern, damit er sich klar von der Website unterscheidet */
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root { --ink: #11151C; --bg: #F2F4F7; --card: #fff; --line: #D9DFE7; --mist: #5E6F84; --accent: #FF6E28; --pink: #FF0057; --live: #FF0057; --grad: linear-gradient(135deg, #FF0057, #FF6E28); --ok: #1E8E5A; --r: 6px; }
* { box-sizing: border-box; }
body { margin: 0; font: 400 15px/1.5 "Barlow", system-ui, sans-serif; color: var(--ink); background: var(--bg); display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1 { font: 700 2rem/1 "Barlow Condensed", sans-serif; margin: 0; }
h1 small { font: 400 1rem "Barlow", sans-serif; color: var(--mist); }
.side { background: var(--ink); color: #fff; padding: 22px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; }
.brand { font: 700 1.5rem/1 "Barlow Condensed", sans-serif; text-decoration: none; padding: 0 10px; display: flex; flex-direction: column; gap: 6px; }
.brand img { height: 30px; width: auto; align-self: flex-start; }
.brand span { font-size: .95rem; letter-spacing: .04em; }
.brand span { color: var(--accent); }
.side nav { display: grid; gap: 2px; }
.side nav a { padding: 10px 12px; border-radius: var(--r); text-decoration: none; font-weight: 600; }
.side nav a:hover { background: rgba(255,255,255,.08); }
.side nav a[aria-current] { background: rgba(255,255,255,.14); box-shadow: inset 3px 0 0 var(--accent); }
.side-foot { margin-top: auto; display: grid; gap: 8px; padding: 0 10px; font-size: .9rem; color: #B8C5D6; }
.side-foot a { color: #fff; }
.main { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: var(--r); background: var(--ink); color: #fff; border: 0; font: 600 .95rem/1 "Barlow", sans-serif; text-decoration: none; cursor: pointer; }
.btn:hover { background: #1B3759; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--bg); }
.btn-danger { background: #fff; color: #B4231B; box-shadow: inset 0 0 0 1px #F0B9B5; }
.btn-danger:hover { background: #FDF0EF; }
.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.danger-link { color: #B4231B; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 10px 14px; text-decoration: none; font-weight: 600; color: var(--mist); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current] { color: var(--ink); border-color: var(--ink); }
.tabs small { background: var(--bg); padding: 1px 6px; border-radius: 10px; font-weight: 400; }
.filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filters input, .filters select { padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r); font: inherit; background: #fff; }
.filters input { min-width: 260px; flex: 1; max-width: 420px; }
.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.table th { text-align: left; font-size: .82rem; color: var(--mist); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FAFBFC; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .title { font-weight: 600; text-decoration: none; }
.table .title:hover { text-decoration: underline; }
.table small { color: var(--mist); }
.table .warn { color: #A15C00; }
.table .nowrap { white-space: nowrap; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions > * { display: inline-block; margin-left: 12px; }
.table .icon { width: 36px; height: 36px; object-fit: contain; display: block; }
.table .noicon { display: block; width: 36px; height: 36px; background: var(--bg); border-radius: 50%; }
.table .order { width: 80px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r); }
.table select { padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r); font: inherit; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: .8rem; font-weight: 600; background: var(--bg); margin: 0 4px 4px 0; }
.pill-live { background: var(--live); color: #fff; }
.pill-upcoming { background: var(--ink); color: #fff; }
.pill-ondemand { background: #E3EAF2; }
.pill-feat { background: var(--grad); color: #fff; }
.empty { background: #fff; padding: 40px; text-align: center; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); }
.pager { display: flex; gap: 6px; margin-top: 16px; }
.pager a, .pager span { padding: 6px 12px; background: #fff; border-radius: var(--r); text-decoration: none; box-shadow: 0 0 0 1px var(--line); }
.pager span { background: var(--ink); color: #fff; }
.notice { padding: 12px 16px; border-radius: var(--r); background: #fff; border-left: 4px solid var(--mist); margin: 0 0 16px; box-shadow: 0 0 0 1px var(--line); }
.notice-success { border-color: var(--ok); }
.notice-error { border-color: var(--live); }
.notice-warn, .notice-info { border-color: var(--accent); }
.form { display: grid; gap: 14px; }
.form.narrow { max-width: 560px; }
.form label { display: grid; gap: 5px; font-weight: 600; font-size: .92rem; }
.form small { font-weight: 400; color: var(--mist); }
.form input:not([type="checkbox"]):not([type="file"]), .form select, .form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); font: 400 15px/1.4 "Barlow", sans-serif; background: #fff; color: var(--ink); }
.form textarea.code { font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; }
.form .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 4px; accent-color: var(--ink); }
.form .error { color: #B4231B; font-weight: 400; font-size: .88rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { justify-self: start; }
fieldset { border: 0; background: var(--card); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); padding: 18px 20px 20px; margin: 0 0 16px; display: grid; gap: 14px; min-width: 0; }
legend { font: 700 1.25rem/1 "Barlow Condensed", sans-serif; padding: 0; float: left; width: 100%; margin-bottom: 2px; }
.grid-form { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 16px; }
.preview { width: 100%; border-radius: var(--r); aspect-ratio: 16/9; object-fit: cover; background: var(--bg); }
.icon-preview { width: 96px; aspect-ratio: 1; object-fit: contain; }
.danger { display: flex; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 1000px) { .grid-form { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  body { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; }
  .side nav { display: flex; flex-wrap: wrap; }
  .side-foot { margin: 0; flex-direction: row; display: flex; gap: 12px; }
  .form .row { grid-template-columns: 1fr; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table td { border: 0; padding: 4px 14px; }
  .table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .table .actions { text-align: left; }
  .table .actions > * { margin: 0 12px 0 0; }
}
/* Installer */
body.install { display: block; }
.install-box { max-width: 520px; margin: 60px auto; background: #fff; padding: 32px; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); }
.install-box h1 { margin-bottom: 16px; }
.hint { color: var(--mist); font-size: .92rem; margin: 0; }
.hint code { background: var(--bg); padding: 1px 5px; border-radius: 3px; }
.colors { display: grid; grid-template-columns: repeat(3, 110px) 1fr; gap: 14px; align-items: end; }
.colors[hidden] { display: none; }
.colors input[type="color"] { width: 100%; height: 44px; padding: 2px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; }
.swatch .sw-bg { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 12px; border-radius: var(--r); background: var(--b); }
.swatch .sw-btn { padding: 7px 12px; border-radius: 4px; background: linear-gradient(135deg, var(--p), var(--s)); color: #fff; font: 700 .85rem/1 "Barlow Condensed", sans-serif; text-transform: uppercase; font-style: italic; }
.swatch .sw-line { flex: 1; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--p), var(--s)); }
.sponsor-row { display: grid; grid-template-columns: 90px 1fr 1.4fr auto; gap: 10px; align-items: center; }
.sponsor-row img { width: 90px; height: 44px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 4px; }
.logo-preview { display: grid; place-items: center; height: 90px; border-radius: var(--r); padding: 12px; }
.logo-preview img { max-height: 60px; max-width: 100%; object-fit: contain; }
@media (max-width: 760px) { .colors { grid-template-columns: repeat(3, 1fr); } .swatch { grid-column: 1 / -1; } .sponsor-row { grid-template-columns: 70px 1fr; } }
.org-logo { display: grid; place-items: center; width: 52px; height: 40px; border-radius: 6px; background: #11151C; padding: 4px; }
.org-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.org-nologo { color: #fff; font: 700 .9rem/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.checker { background-color: #fff; background-image: linear-gradient(45deg, #eef1f5 25%, transparent 25%), linear-gradient(-45deg, #eef1f5 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eef1f5 75%), linear-gradient(-45deg, transparent 75%, #eef1f5 75%);
  background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; border: 1px solid var(--line); }
.form input[type="color"] { height: 42px; padding: 2px; cursor: pointer; }

/* Thumbnail-Editor im Event-Formular */
.thumb-editor { --ink: #11151C; --ink-2: #191E27; --live: #FF0057; --display: "Barlow Condensed", sans-serif; --on-accent: #fff;
  --court-bg1: #1B212C; --court-bg2: #0D1016; --court-glow: #FF0057; --court-glow2: #FF6E28; --court-line: rgba(255,255,255,.55); }
.te-previews { display: grid; grid-template-columns: 1fr 180px; gap: 14px; align-items: end; padding: 16px; border-radius: 10px; background: #11151C; }
.te-label { display: block; margin-bottom: 6px; font-size: .8rem; color: #9EA6B4; }
.te-frame { position: relative; border-radius: 6px; overflow: hidden; background: #191E27; }
.te-land { aspect-ratio: 16 / 9; }
.te-port { aspect-ratio: 4 / 5; }
.te-frame.is-loading { opacity: .6; transition: opacity .15s; }
.te-modes, .te-tabs { display: inline-flex; padding: 3px; border-radius: 8px; background: var(--bg); gap: 2px; }
.te-modes button, .te-tabs button { border: 0; background: none; padding: 7px 12px; border-radius: 6px; font: 600 .88rem "Barlow", sans-serif; color: var(--mist); cursor: pointer; }
.te-modes button.is-on, .te-tabs button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.te-modes button[disabled] { opacity: .45; cursor: not-allowed; }
.te-focus { display: grid; gap: 8px; }
.te-focus-head { display: flex; justify-content: space-between; align-items: center; }
.te-focus-img { position: relative; border-radius: 6px; overflow: hidden; background: var(--bg); cursor: crosshair; min-height: 80px; }
.te-focus-img img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.te-crop { position: absolute; box-shadow: 0 0 0 9999px rgba(17,21,28,.55); outline: 2px solid #fff; pointer-events: none; display: none; }
.te-dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff; background: #FF0057; box-shadow: 0 2px 8px rgba(0,0,0,.5); pointer-events: none; display: none; }
.te-empty { padding: 22px; margin: 0; color: var(--mist); font-size: .9rem; cursor: default; }
@media (max-width: 760px) { .te-previews { grid-template-columns: 1fr 120px; } }
.content-area { margin-bottom: 36px; }
.area-title { font: 700 1.4rem/1 "Barlow Condensed", sans-serif; margin: 0; }
.wl-indent { display: inline-flex; align-items: center; gap: 6px; padding-left: calc(var(--d) * 22px); }
.wl-branch { color: var(--mist); }
.wl-pick { display: grid; gap: 2px; max-height: 340px; overflow-y: auto; padding: 6px; border-radius: var(--r); background: var(--bg); }
.wl-row { padding: 6px 8px 6px calc(8px + var(--d) * 20px); border-radius: 6px; }
.wl-row:hover { background: #fff; }
.wl-row[hidden] { display: none; }
.wl-row.is-suggested { background: #FFF3EC; }
.wl-row small { color: var(--mist); }
.upload-box { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 18px 20px; margin-bottom: 14px; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.upload-box p { margin: 4px 0 0; }
@media (max-width: 760px) { .upload-box { grid-template-columns: 1fr; } }
.te-previews { grid-template-columns: 1fr 180px; align-items: end; }
.te-scales { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; row-gap: 14px; gap: 18px; align-items: end; }
.te-scales label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.te-scales label span { display: flex; justify-content: space-between; }
.te-scales output { color: var(--mist); font-weight: 400; font-variant-numeric: tabular-nums; }
.te-scales input[type=range] { width: 100%; accent-color: #FF0057; }
@media (max-width: 760px) { .te-previews { grid-template-columns: 1fr 120px; } .te-scales { grid-template-columns: 1fr; } }
body, input, select, textarea, button { font-family: "Volte", "Outfit", system-ui, sans-serif; }
h1, h2, .area-title, .admin-brand { font-family: "Volte", "Outfit", system-ui, sans-serif; font-style: normal; text-transform: none; }
/* Ebenen-Auswahl */
.wlc { display: grid; gap: 10px; }
.wlc-levels { display: grid; gap: 8px; }
.wlc-level { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; }
.wlc-level:not(:first-child) { padding-left: 18px; position: relative; }
.wlc-level:not(:first-child)::before { content: "└"; position: absolute; left: 2px; color: var(--mist); }
.wlc-step { font-size: .8rem; color: var(--mist); }
.wlc-new { grid-column: 2; display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.wlc-new input { flex: 1; }
.wlc-add { justify-self: start; }
.wlc-add[disabled] { opacity: .55; cursor: default; }
.wlc-title { font-size: .9rem; margin-top: 8px; }
.wlc-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wlc-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; border-radius: 18px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: .92rem; }
.wlc-chip.is-suggested { background: #FFF3EC; box-shadow: inset 0 0 0 1px #FFC9AE; }
.wlc-chip a { font-size: .8rem; color: var(--mist); }
.wlc-chip button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; font-size: 1rem; line-height: 1; }
.wlc-parent { display: grid; gap: 6px; grid-column: 1 / -1; }
.wlc-lbl { font-weight: 600; font-size: .9rem; }
.wl-mini { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.wl-mini li { padding-left: calc(var(--d) * 16px); }
.te-scales [data-scale-reset] { justify-self: start; }
.te-scales label span { gap: 10px; white-space: nowrap; }
.bulk-col { width: 34px; }
.bulk-col input { width: 18px; height: 18px; cursor: pointer; }
.bulk-bar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; margin-bottom: 12px;
  border-radius: var(--r); background: #11151C; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.bulk-bar[hidden] { display: none; }
.bulk-bar select { min-width: 200px; }
.bulk-bar .linkish { color: #fff; opacity: .8; }
.bulk-bar .btn[disabled] { opacity: .5; }
/* Bezahl-Stream */
.paid-fs { border: 1px solid var(--rule, #2a3140); border-radius: 10px; padding: 12px 14px; display: grid; gap: 10px; }
.paid-admin { margin: 28px 0; padding: 20px; border-radius: 12px; border: 1px solid var(--rule, #2a3140); }
.paid-admin h2 { margin-top: 0; }
.paid-admin h3 small { color: var(--mist, #8a93a3); font-weight: 400; }
.ingest { display: grid; grid-template-columns: 160px 1fr; gap: 8px 14px; align-items: center; margin: 14px 0; }
.ingest dt { color: var(--mist, #8a93a3); font-size: .9rem; }
.ingest dd { margin: 0; }
.ingest input { width: 100%; font-family: ui-monospace, monospace; font-size: .85rem; }
.ticket-grant { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 16px; }
.ticket-grant input { flex: 1 1 260px; }
@media (max-width: 640px) { .ingest { grid-template-columns: 1fr; } }
.pill { display: inline-block; padding: 2px 7px; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.pill-danger { background: rgba(255,0,87,.18); color: #ff6b93; }
.pill-warn { background: rgba(255,170,0,.18); color: #ffc04d; }
.blocked-box { margin-top: 36px; }
.tbl tfoot th { text-align: left; border-top: 1px solid var(--rule, #2a3140); padding-top: 10px; }
.pill-ok { background: rgba(40,200,120,.16); color: #4ade80; }
.pkg-events { display: grid; gap: 8px; }
.pkg-events small { color: var(--mist, #8a93a3); }
.anchor-box { display: grid; gap: 8px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--rule, #2a3140); }
.anchor-box p { margin: 0; }

/* ---- Organisationen: Sportbereiche und Baum ---- */
.crumbs { margin: 0 0 6px; font-size: .9rem; color: var(--mist); }
.crumbs a { color: inherit; }
.head-icon { width: 30px; height: 30px; object-fit: contain; vertical-align: -4px; }
.tree-root { display: flex; align-items: center; gap: 10px; margin: 8px 0 10px; font: 700 1.3rem/1 "Barlow Condensed", sans-serif; }
.tree-root-mark { display: grid; place-items: center; background: var(--ink); border-radius: var(--r); padding: 6px 10px; }
.tree-root-mark img { height: 18px; width: auto; display: block; }
.tree-table td { vertical-align: middle; }
.tree-table .tree-sport td { background: #FAFBFC; }
.tree-table .tree-sport .icon { display: inline-block; width: 24px; height: 24px; vertical-align: middle; margin-right: 6px; }
.tree-table .tree-add { float: right; font-size: .9rem; }
.tree-table .wl-indent { gap: 10px; }
.tree-table .org-logo { width: 40px; height: 32px; flex: none; }
.tree-table tr.is-linked td { color: var(--mist); font-style: italic; }
.tree-table tr.is-linked .title { font-weight: 500; }
.tree-table tr.is-hidden .org-logo { opacity: .5; }
.org-nologo { color: #fff; font: 700 .85rem/1 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.report { background: var(--card); box-shadow: 0 0 0 1px var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); padding: 14px 18px; margin-bottom: 22px; }
.report details { padding: 6px 0; border-top: 1px solid var(--line); }
.report summary { cursor: pointer; }
.report-list { margin: 6px 0 4px; padding-left: 20px; columns: 2 320px; font-size: .92rem; }
.pick-filter { margin-bottom: 8px; }
.pick-list { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); padding: 6px 10px; background: #FAFBFC; }
.pick-list .check { padding-left: calc(var(--d, 0) * 18px); margin: 2px 0; }
.fold { margin: 0 0 18px; }
.fold > summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
.fold > summary small { font-weight: 400; color: var(--mist); }
.wlc-new select { padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r); font: inherit; }
.subnav { margin-top: -6px; }

/* ---- Sammelbearbeitung im Baum ---- */
.tree-table .cb { width: 34px; padding-right: 0; }
.tree-table .cb input { width: 17px; height: 17px; cursor: pointer; }
.tree-table tr:has([data-row-check]:checked) td { background: #FFF4EE; }
.vis-toggle { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font: inherit; color: var(--mist); cursor: pointer; padding: 2px 0; }
.vis-toggle span { width: 30px; height: 17px; border-radius: 9px; background: #C9D2DD; position: relative; transition: background .15s; }
.vis-toggle span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: left .15s; }
.vis-toggle.is-on { color: var(--ink); }
.vis-toggle.is-on span { background: var(--ok); }
.vis-toggle.is-on span::after { left: 15px; }
.bulkbar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: var(--r); box-shadow: 0 -6px 20px rgba(17,21,28,.18); }
.bulkbar[hidden] { display: none; }
.bulkbar label { display: flex; align-items: center; gap: 8px; margin: 0; color: #fff; font-weight: 400; }
.bulkbar select { padding: 7px 8px; border-radius: var(--r); border: 0; font: inherit; max-width: 280px; }
.bulkbar .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.bulkbar .linkish { color: #fff; opacity: .8; }
.bulkbar .sep { width: 1px; align-self: stretch; background: rgba(255,255,255,.2); }

/* ---- Datenbank ---- */
.db-table td { vertical-align: middle; }
.db-table th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; }
.db-table th[data-sort]::after { content: " ↕"; opacity: .35; font-size: .8em; }
.db-table th[aria-sort="ascending"]::after { content: " ↑"; opacity: 1; }
.db-table th[aria-sort="descending"]::after { content: " ↓"; opacity: 1; }
.db-table .db-img { width: 52px; padding-right: 0; }
.db-table .db-img .org-logo, .db-table .db-img .icon { width: 40px; height: 32px; }
.db-table .db-img .icon { object-fit: contain; display: block; }
.db-table .db-go { width: 64px; text-align: right; }
.db-into, .db-plus { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; height: 34px; padding: 0 10px; border-radius: var(--r); text-decoration: none; font-weight: 700; }
.db-into { background: var(--ink); color: #fff; }
.db-into small { font-weight: 400; opacity: .75; }
.db-plus { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); font-size: 1.2rem; }
.db-into:hover, .db-plus:hover { filter: brightness(1.1); }
.db-table tr.is-dup td { background: #FDECEA; }
.db-table tr.is-dup:has([data-row-check]:checked) td { background: #F9D5D1; }
.pill-dup { background: #B4231B; color: #fff; }
.db-table tr.db-empty td { color: var(--mist); text-align: center; padding: 26px; }
.db-table tr.is-linked td { color: var(--mist); font-style: italic; }
.db-table tr:has([data-row-check]:checked) td { background: #FFF4EE; }
.filters .check { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.filters-deep { margin-left: auto; font-size: .92rem; }
.db-count { margin: 8px 0 0; }
.db-add { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; padding: 14px 16px; background: var(--card); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); border-left: 4px solid var(--accent); }
.db-add input, .db-add select { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); font: inherit; }
.db-add input[name="name"] { flex: 1 1 220px; }
.db-add .db-add-year { width: 110px; }
.db-add small { color: var(--mist); flex-basis: 100%; }
.db-upload { margin-bottom: 18px; }
.db-upload[hidden] { display: none; }
.db-upload label { display: flex; flex-direction: column; gap: 4px; }
.tpl-cols td { vertical-align: middle; padding: 8px 10px; }
.tpl-cols input, .tpl-cols select { width: 100%; }
.import-sum { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.import-sum div { background: var(--card); box-shadow: 0 0 0 1px var(--line); border-radius: var(--r); padding: 10px 16px; }
.import-sum b { font-size: 1.4rem; display: block; }
.import-sum .is-dup { border-left: 4px solid #B4231B; }
.import-mode .danger-choice { color: #B4231B; }
.import-mode .check { margin: 8px 0; }
.level-tpl { margin: -6px 0 14px; }
.db-add { display: block; }
.db-add .area-title { margin-top: 0; }
.db-add .tpl-pick { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; font-weight: 600; }
.db-add .tpl-pick select { max-width: 420px; }
.db-add-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.db-add-box { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: #FAFBFC; }
.db-add-box label { display: flex; flex-direction: column; gap: 4px; font-size: .92rem; }
.db-add-box .btn { align-self: flex-start; }
.db-add-box .steps { margin: 0; padding-left: 20px; font-size: .92rem; }
.tpl-warn { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r); background: #FFF6E5; box-shadow: inset 4px 0 0 #E0A100; }
.tpl-warn p { margin: 6px 0; }
.tpl-row-tools { white-space: nowrap; }
.tpl-row-tools .linkish { padding: 4px 6px; font-size: 1rem; }
.tpl-cols tr.tpl-fixed input, .tpl-cols tr.tpl-fixed select { background: #F1F3F5; }
.form.narrow-wide { max-width: 760px; }
.muted { color: var(--mist); }

/* ---- Stammdaten, Import-Zentrale, Startliste ---- */
.pager { display: flex; gap: 14px; align-items: center; margin: 14px 0; }
.import-box { margin-bottom: 18px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.import-box label { display: flex; flex-direction: column; gap: 4px; }
.import-box textarea { width: 100%; font: inherit; }
.import-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: -4px 0 16px; font-size: .9rem; color: var(--mist); }
.import-steps li { padding: 4px 10px; border-radius: 99px; background: #F1F3F5; }
.import-steps li.is-on { background: var(--ink); color: #fff; }
.map-block { margin-bottom: 16px; }
.map-block legend .check { display: inline-flex; font-weight: 700; }
.map-scroll { overflow-x: auto; }
.map-table th { vertical-align: top; min-width: 170px; background: #FAFBFC; }
.map-table .map-head { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.map-table select, .map-table input { width: 100%; font-size: .85rem; padding: 5px 6px; margin-top: 4px; }
.map-table td { font-size: .85rem; color: var(--mist); white-space: nowrap; }
.check-table tr.st-vielleicht td { background: #FFF6E5; }
.check-table tr.st-neu td { background: #F3F7FF; }
.st-pill-sicher { background: #E3F4EA; color: #1F6B3A; } .st-pill-vielleicht { background: #FFE9BF; color: #7A5200; } .st-pill-neu { background: #DCE7FF; color: #23407A; }
.check-table select { max-width: 340px; }
.import-sum .is-ok { border-left: 4px solid #2E9F5B; } .import-sum .is-maybe { border-left: 4px solid #E0A100; }
.startlist-table input, .sections-table input { width: 100%; padding: 5px 6px; }
.startlist-table select { max-width: 200px; }
.startlist-table tr.sec-row td { background: var(--ink); color: #fff; font-weight: 700; padding: 8px 14px; }
.alias-row { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.merge-box { margin-top: 24px; padding: 14px 16px; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.purposes { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.purposes .check { margin: 0; font-size: .85rem; }
.ac-wrap { position: relative; display: block; }
.bulkbar .ac-wrap { display: inline-block; }
.ac-list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px 0; list-style: none; background: #fff; color: var(--ink); border-radius: var(--r); box-shadow: 0 8px 24px rgba(17,21,28,.18), 0 0 0 1px var(--line); max-height: 300px; overflow: auto; min-width: 260px; }
.bulkbar .ac-list { top: auto; bottom: 100%; margin: 0 0 4px; }
.ac-list li { padding: 7px 12px; cursor: pointer; font-size: .92rem; }
.ac-list li small { color: var(--mist); }
.ac-list li:hover, .ac-list li.is-on { background: #FFF4EE; }
.warn-line { color: #8A5A00; background: #FFF6E5; padding: 6px 10px; border-radius: var(--r); }
.dup-form { display: inline; }
.dup-team { position: relative; }
.dup-team > summary { list-style: none; cursor: pointer; }
.dup-team > summary::-webkit-details-marker { display: none; }
.dup-box { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 340px; padding: 14px; background: var(--card); border-radius: var(--r); box-shadow: 0 8px 24px rgba(17,21,28,.16), 0 0 0 1px var(--line); }
.logo-preview.is-inherited { opacity: .55; }
.startlist-table tr.members-row td { padding-top: 0; border-top: 0; color: var(--mist); }
.import-del { float: right; margin-top: 2px; }

/* ---- Tags ---- */
.tags { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; background: #E9EDF2; color: var(--ink); font-size: .84rem; line-height: 1.3; white-space: nowrap; }
.tag a { color: inherit; text-decoration: none; font-weight: 600; }
.tag small { color: var(--mist); font-weight: 400; }
.tag.is-main { box-shadow: inset 0 0 0 1.5px var(--ink); }
.tag.is-derived { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--mist); }
.tag.is-derived a { font-weight: 400; }
.tag.is-new { background: #FFF1D6; }
.tag-team { background: #E3EEFF; } .tag-verein { background: #E5F5EA; } .tag-sport { background: #F1E8FF; }
.tag-liga, .tag-bewerb { background: #FFF0E6; } .tag-multisport { background: #FFE6EF; } .tag-medien, .tag-verband, .tag-sparte, .tag-sonstige { background: #EEF0F3; }
.tag-x { border: 0; background: none; padding: 0 0 0 2px; cursor: pointer; color: var(--mist); font-size: 1rem; line-height: 1; }
.tag-x:hover { color: #B4231B; }
.tagpick { position: relative; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; padding: 5px 7px; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1px var(--line); min-width: 240px; }
.tagpick-chips { display: contents; }
.tagpick-input { flex: 1; min-width: 140px; border: 0 !important; box-shadow: none !important; padding: 4px !important; background: transparent; outline: none; }
.ac-list li .ac-type { display: inline-block; min-width: 92px; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--mist); }
.ac-list li.is-new { background: #FFF8EA; }
.tagblock { margin: 0 0 18px; padding: 14px 16px; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.tagblock h2 { margin: 0 0 8px; font-size: 1rem; }
.tagblock .row-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.tagblock .row-add input:not(.tagpick-input) { width: 110px; }
.tagblock .hint { margin: 6px 0 0; }
.members h3 { margin: 14px 0 6px; font-size: .95rem; color: var(--mist); }
.member-list { display: flex; flex-wrap: wrap; gap: 6px; }
.bulkbar .tagpick { min-width: 260px; }
.legend-tags { font-size: .82rem; color: var(--mist); margin: -6px 0 12px; }
.badge-new { display: inline-block; padding: 1px 7px; border-radius: 99px; background: #FFB020; color: #11151C; font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.map-table th.is-new { background: #FFF6E5; }
/* ---- Zugehörigkeits-Tabelle ---- */
.grid-wrap { overflow-x: auto; margin: 6px 0 4px; }
.grid-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 760px; }
.grid-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--mist); padding: 4px 8px 8px; }
.grid-table td { vertical-align: top; padding: 9px 8px; border-top: 2px solid #D7DEE6; }
.grid-table tr.grid-detail td { border-top: 0; padding-top: 0; color: var(--mist); font-size: .85rem; }
.grid-table tr.grid-new td { border-top: 2px solid #D7DEE6; }
.grid-table td .tag { margin: 0 4px 4px 0; padding: 5px 11px; border-radius: 99px; }
.gc-team .tag, .tag.tag-team { background: #C0521A; color: #fff; } .gc-team .tag a, .tag.tag-team a { color: #fff; }
.gc-verein .tag { background: #0A72C2; color: #fff; } .gc-verein .tag a { color: #fff; }
.gc-org .tag { background: #0FAF54; color: #fff; } .gc-org .tag a { color: #fff; }
.gc-sport .tag { background: #77206F; color: #fff; } .gc-sport .tag a { color: #fff; }
.gc-event .tag { background: #F2E600; color: #11151C; } .gc-event .tag a { color: #11151C; }
.grid-table .tag small, .grid-table .tag .tag-x { color: inherit; opacity: .8; }
.grid-table .tag.is-derived-soft { opacity: .62; }
.grid-plus { width: 100%; min-width: 120px; max-width: 200px; height: 34px; border: 0; border-radius: 99px; background: #B9B9B9; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.grid-plus:hover { background: #9C9C9C; }
.grid-none { display: inline-block; padding: 6px 4px; color: var(--mist); }
.grid-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.grid-add input:not(.tagpick-input), .grid-add select { padding: 6px 8px; }
.grid-add .tagpick { min-width: 200px; }

/* ---- Seiten → White Label: Baum (3.3) ---- */
.wlt-find { width: min(100%, 360px); padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r); font: inherit; margin-bottom: 14px; }
.wlt-box { background: var(--card); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); padding: 14px 16px; margin-bottom: 18px; }
.wlt-unplaced { border: 2px dashed #F0C9B0; box-shadow: none; background: #FFFAF6; }
.wlt-unplaced.is-over { background: #FFEFE4; }
.wlt-unplaced .area-title small { font: 400 .9rem inherit; color: var(--mist); }
.wlt-root { font-weight: 700; padding: 4px 6px 8px; }
.wlt-list { list-style: none; margin: 0; padding: 0 0 0 22px; }
.wlt-sports { padding-left: 0; }
.wlt-list:empty { min-height: 2px; }
.wlt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 8px; margin: 2px 0; border-radius: 6px; cursor: grab; }
.wlt-row:hover { background: var(--bg); }
.wlt-row.is-over { background: #FFF1E8; box-shadow: inset 0 0 0 2px var(--accent); }
.wlt-sport-row { cursor: default; background: #F6F7F9; font-weight: 700; margin-top: 8px; }
.wlt-grip { color: #A9AFB9; font-size: .8rem; }
.wlt-name { font-weight: 600; }
.wlt-kind { color: var(--mist); }
.wlt-refmark { color: var(--accent); font-weight: 700; }
.wlt-item.is-ref > .wlt-row .wlt-name { font-weight: 500; font-style: italic; }
.wlt-item.is-hidden > .wlt-row .wlt-name { opacity: .55; }
.wlt-item.is-dragging { opacity: .4; }
.wlt-domain { padding: 1px 8px; border-radius: 99px; background: #E3EEFF; font-size: .8rem; }
.wlt-flag { padding: 1px 8px; border-radius: 99px; background: #EEF0F3; color: var(--mist); font-size: .8rem; }
.wlt-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85rem; font-weight: 400; }
.wlt-actions a { color: var(--mist); }
.wlt-empty { color: var(--mist); padding: 6px 8px; }
.wlt-mode { display: flex; gap: 8px; align-items: center; font-size: .9rem; }

/* ---- Event: „Erscheint auf“ als Tags (3.4) ---- */
.ev-tags { position: relative; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.ev-tags-chips { display: contents; }
.ev-tag { background: #E3EEFF; }
.ev-tags-input { flex: 1; min-width: 220px; border: 0 !important; padding: 6px 4px !important; outline: none; font: inherit; }
.ev-tags .ac-list { top: 100%; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; background: #E9EDF2; font-size: .88rem; }
.tag-x { border: 0; background: none; padding: 0 0 0 2px; cursor: pointer; color: var(--mist); font-size: 1rem; line-height: 1; }
.ac-list { position: absolute; z-index: 30; left: 0; right: 0; margin: 2px 0 0; padding: 4px 0; list-style: none; background: #fff; border-radius: var(--r); box-shadow: 0 8px 24px rgba(17,21,28,.18), 0 0 0 1px var(--line); max-height: 300px; overflow: auto; }
.ac-list li { padding: 7px 12px; cursor: pointer; font-size: .92rem; }
.ac-list li:hover, .ac-list li.is-on { background: #FFF4EE; }
.ac-list li small { color: var(--mist); }
.ac-list li .ac-type { display: inline-block; min-width: 110px; font-size: .75rem; text-transform: uppercase; color: var(--mist); }

/* ---- 3.6: Event – verknüpfte Seiten neben Titel/Untertitel, Logos per Ziehen, Sponsoren ---- */
.ev-linkrow { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 760px) { .ev-linkrow { grid-template-columns: 1fr; } }
.ev-tags-wrap { display: flex; flex-direction: column; gap: 5px; }
.ev-tags-label { font-weight: 600; font-size: .92rem; }
.ev-tag img { width: 20px; height: 20px; object-fit: contain; border-radius: 3px; }
.ev-tag.is-portal { background: #F1E8FF; }
.ev-portal { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--r); background: #FAFBFC; }
.ev-appears { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 12px 14px; border-radius: var(--r); background: #F6F8FB; margin: 4px 0 12px; }
.ev-appears small { flex-basis: 100%; color: var(--mist); }
.ev-logopool { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }
.ev-poolitem { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 0; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); cursor: grab; font: inherit; text-align: left; }
.ev-poolitem.is-picked { box-shadow: inset 0 0 0 2px var(--accent, #FF6E28); }
.ev-pooltext { display: flex; flex-direction: column; gap: 3px; }
.ev-logo { width: 40px; height: 32px; border-radius: 5px; background: #11151C; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .66rem; font-weight: 700; flex: none; overflow: hidden; }
.ev-logo.is-big { width: 56px; height: 44px; }
.ev-logo img { max-width: 86%; max-height: 86%; object-fit: contain; }
.ev-colors { display: flex; gap: 4px; }
.ev-sw { width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.ev-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .ev-slots { grid-template-columns: 1fr; } }
.ev-slot { display: flex; flex-direction: column; gap: 2px; padding: 12px; min-height: 108px; border-radius: 8px; background: #FAFBFC; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.ev-slot.is-over { box-shadow: inset 0 0 0 2px var(--accent, #FF6E28); background: #FFF4EE; }
.ev-slot small { color: var(--mist); }
.ev-slot-in { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ev-drop { flex: 1; height: 44px; border-radius: 6px; border: 1.5px dashed #C9D2DD; display: flex; align-items: center; justify-content: center; color: var(--mist); font-size: .85rem; }
.ev-sp-list { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 0 10px; }
.ev-sp-list small { color: var(--mist); }
.ev-sp-radios { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 14px; }
.ev-sp-radios label.check { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.ev-sp-radios input { width: auto; margin: 0; }
.btn.is-disabled { opacity: .45; cursor: default; pointer-events: none; }

/* Thumbnail-Editor: Logos ziehen und skalieren */
.te-frame { position: relative; touch-action: none; }
.te-frame .th-logos { pointer-events: none; }
.te-frame .th-logo { pointer-events: auto; cursor: grab; user-select: none; -webkit-user-drag: none; }
.te-frame .th-logo:active { cursor: grabbing; }
.te-frame .th-logo:hover { outline: 1px dashed rgba(255,255,255,.55); outline-offset: 2px; }
.te-sel { position: absolute; z-index: 20; border: 1.5px solid #fff; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.45); pointer-events: none; }
.te-handle { position: absolute; right: -8px; bottom: -8px; width: 16px; height: 16px; border-radius: 50%; background: #FF0057; border: 2px solid #fff; cursor: nwse-resize; pointer-events: auto; }
.te-dnd-hint { margin: 0 0 6px; font-size: .86rem; color: var(--mist, #8a93a3); }
.te-dnd-hint b { color: inherit; }

/* YouTube-Ausschnitt im Editor */
.te-yt-hint { display: none; margin: 4px 0 0; font-size: .86rem; color: var(--mist, #8a93a3); }
.thumb-editor.is-yt .te-yt-hint { display: block; }
.thumb-editor.is-yt .te-dnd-hint { opacity: .5; }
.thumb-editor.is-yt .te-frame { cursor: move; }
/* Werte anzeigen, kopieren, einfügen */
.te-values { margin-top: 10px; }
.te-values summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.te-values-in { display: grid; gap: 10px; margin-top: 10px; }
.te-vtable { border-collapse: collapse; font-size: .82rem; font-variant-numeric: tabular-nums; }
.te-vtable th, .te-vtable td { padding: 3px 4px; border-bottom: 1px solid var(--rule, #2a3140); text-align: right; }
.form .te-vtable td input[data-n-i] { width: 78px; height: 34px; padding: 4px 8px; text-align: right; font: 500 15px/1.2 "Barlow", sans-serif; font-variant-numeric: tabular-nums; }
.form .te-vtable td input[data-n-i]:disabled { opacity: .4; background: #f3f4f6; }
.te-vtable th:first-child { text-align: left; font-weight: 500; }
.te-vtable thead th { text-align: center; font-weight: 600; }
.te-values textarea { width: 100%; font-family: ui-monospace, monospace; font-size: .78rem; }
.te-vbtns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* Logo-Felder: Datei vom Desktop */
.ev-slot-file { display: inline-block; margin-top: 6px; font-size: .8rem; text-decoration: underline; cursor: pointer; color: var(--mist, #8a93a3); }
.ev-slot.is-loading { opacity: .6; pointer-events: none; }

/* Logo-Leiste aktiv: im Querformat fest, Hinweis anzeigen */
.te-bar-note { display: none; margin: 4px 0 0; font-size: .86rem; color: var(--mist, #8a93a3); }
.thumb-editor.is-bar .te-bar-note { display: block; }
.te-frame[data-frame="land"] .th--yt .th-logo { pointer-events: none; }
.te-bar { display: grid; gap: 4px; margin: 0 0 8px; }
.te-bar select { max-width: 260px; }

/* White Label: Baum links, „Noch nicht eingeordnet“ rechts – bleibt beim Scrollen stehen, damit man bis ganz unten ziehen kann */
.wlt-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 20px; align-items: start; }
.wlt-cols > .wlt-box { margin: 0; }
.wlt-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.wlt-side .wlt-row { flex-wrap: wrap; row-gap: 4px; }
.wlt-side .wlt-actions { flex-wrap: wrap; justify-content: flex-start; width: 100%; padding-left: 22px; }
@media (max-width: 1000px) {
  .wlt-cols { grid-template-columns: 1fr; }
  .wlt-cols > .wlt-side { order: -1; position: static; max-height: none; }
}
.wlt-np { display: grid; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--rule, #e3d7c8); }
.wlt-np small { color: var(--mist); }
.wlt-np-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wlt-np-row input { flex: 1; min-width: 160px; }

/* White-Label-Baum (ab 3.8): Suche je Spalte im Kopf der Box */
.wlt-boxhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 8px; }
.wlt-boxhead .wlt-root { padding: 4px 6px; }
.wlt-boxhead .area-title { margin: 0; }
.wlt-boxhead .wlt-find { margin: 0; width: min(100%, 300px); }
.wlt-unplaced .wlt-boxhead { position: sticky; top: -14px; z-index: 2; background: #FFFAF6; padding: 6px 0; }
.wlt-unplaced .wlt-boxhead .wlt-find { flex: 1 1 180px; }
.wlt-item.is-match > .wlt-row { background: #FFF1E8; }
.wlt-sport[hidden], .wlt-item[hidden] { display: none; }
/* Ordner auf- und zuklappen */
.wlt-tog, .wlt-tog-space { flex: none; width: 20px; height: 20px; }
.wlt-tog { display: grid; place-items: center; padding: 0; border: 0; border-radius: 4px; background: none; cursor: pointer; color: var(--mist); }
.wlt-tog::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-1px, -1px); transition: transform .15s; }
.wlt-tog[aria-expanded="false"]::before { transform: rotate(-45deg); }
.wlt-tog:hover { background: #E9ECF1; color: var(--ink); }
.wlt-unplaced .wlt-tog-space { display: none; }
.is-closed > .wlt-list { display: none; }
.wlt-tree.is-filtering .is-closed > .wlt-list { display: block; }   /* beim Suchen ist alles aufgeklappt */
.wlt-folds { display: flex; gap: 12px; margin-left: auto; font-size: .88rem; }
.wlt-sport.is-match > .wlt-sport-row { box-shadow: inset 3px 0 0 var(--accent); }

/* ---------- Mediathek ---------- */
.mx-intro { max-width: 760px; margin: -8px 0 18px; }
.mx-dups { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-color: var(--accent); }
.mx-dups p { margin: 0; max-width: 720px; }
.mx-upload { margin: 0 0 18px; }
.mx-upload > summary { list-style: none; }
.mx-upload > summary::-webkit-details-marker { display: none; }
.mx-upload-form { margin-top: 12px; padding: 16px; background: var(--card); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); }
.mx-dropzone { display: grid; place-items: center; text-align: center; gap: 4px; padding: 26px 16px; border: 2px dashed var(--line); border-radius: var(--r); cursor: pointer; background: #FAFBFC; }
.mx-dropzone.is-over { border-color: var(--accent); background: #FFF6F1; }
.mx-dropzone input { max-width: 100%; }
.mx-upload-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.mx-filters select { min-width: 0; }
.mx-empty { padding: 40px 16px; text-align: center; color: var(--mist); background: var(--card); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); }
.mx-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.mx-card { background: var(--card); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; }
.mx-img { display: block; aspect-ratio: 16 / 9; background: #E9EDF2; }
.mx-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Logos auf Schachbrett, damit Transparenz sichtbar bleibt */
.mx-logo .mx-img { aspect-ratio: 4 / 3; background: repeating-conic-gradient(#EEF1F5 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.mx-logo .mx-img img { object-fit: contain; padding: 14px; }
.mx-body { padding: 10px 12px 12px; display: grid; gap: 2px; min-width: 0; }
.mx-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-meta { font-size: .82rem; color: var(--mist); }
.mx-uses { font-size: .82rem; font-weight: 600; color: var(--ok); }
.mx-uses.is-free { color: var(--mist); font-weight: 400; }
.mx-edit { margin-top: 6px; font-size: .9rem; }
.mx-edit summary { cursor: pointer; color: var(--mist); }
.mx-edit .form { gap: 10px; margin: 10px 0 8px; }
.mx-pages { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.mx-tools { margin-top: 32px; color: var(--mist); }
.mx-tools summary { cursor: pointer; }
.mx-tools form { margin-top: 8px; }

/* Mediathek im Event-Formular */
.te-bg-row { align-items: start; }
.te-bg-pick { display: grid; gap: 6px; justify-items: start; font-weight: 600; font-size: .92rem; }
.te-bg-pick small { font-weight: 400; color: var(--mist); }
.ev-slot-btns { display: flex; gap: 12px; margin-top: auto; }
button.ev-slot-file { background: none; border: 0; padding: 0; font: inherit; font-size: .8rem; }

/* Auswahlfenster */
.mp { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 10px; box-shadow: 0 24px 60px rgba(17,21,28,.35); color: var(--ink); }
.mp::backdrop { background: rgba(17,21,28,.55); }
.mp-in { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.mp-in.is-over { box-shadow: inset 0 0 0 3px var(--accent); }
.mp-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 8px; }
.mp-head h2 { margin: 0; font: 700 1.5rem/1 "Barlow Condensed", sans-serif; }
.mp-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--mist); padding: 4px 8px; }
.mp-tools { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 20px; }
.mp-tools select, .mp-tools input { padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r); font: inherit; background: #fff; }
.mp-tools input { flex: 1; min-width: 160px; }
.mp-upload { cursor: pointer; }
.mp-note { margin: 10px 20px 0; font-size: .88rem; color: var(--mist); }
.mp-note.is-bad { color: #B4231B; }
.mp-grid { list-style: none; margin: 0; padding: 14px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; overflow: auto; flex: 1; min-height: 200px; }
.mp-grid.is-loading { opacity: .5; }
.mp-empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--mist); }
.mp-item { width: 100%; display: grid; gap: 2px; padding: 0 0 8px; text-align: left; background: #fff; border: 0; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); cursor: pointer; font: inherit; overflow: hidden; }
.mp-item:hover, .mp-item:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.mp-img { display: block; aspect-ratio: 16 / 9; background: #E9EDF2; }
.mp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-logo .mp-img { aspect-ratio: 4 / 3; background: repeating-conic-gradient(#EEF1F5 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.mp-logo .mp-img img { object-fit: contain; padding: 10px; }
.mp-name { padding: 6px 10px 0; font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-meta { padding: 0 10px; font-size: .78rem; color: var(--mist); }
.mp-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 20px 14px; border-top: 1px solid var(--line); font-size: .88rem; }
