/* layout.css – einheitlicher Seitenkopf und Kennzahlen (erzeugt von website_deploy/layout/make_layout_css.py) */
/* :root-Variablen (--tc-hero-radius, --tc-tone-1..5) stehen seit 18.11.2026 in styles/tokens.css (Rebuild #50 P1) */
/* ---------- Seitenkopf: Box ---------- */
html body .wishlist-header-row,
html body .tc-logs-header,
html body .mm-page-head,
html body .mu-header,
html body .ds-head,
html body .pl-head,
html body .jd-head,
html body .admin-log-hero,
html body .system-status > .tc-page-copy,
html body .profile-title,
html body .recent-title-card,
html body .mdv-head,
html body .gs-head {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid var(--border, rgba(148,163,184,.24));
  border-radius: var(--tc-hero-radius);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(56,189,248,.16), transparent 55%),
    radial-gradient(90% 120% at 100% 100%, rgba(37,99,235,.18), transparent 60%),
    var(--surface, #111827);
  box-shadow: var(--shadow, 0 18px 45px rgba(2,6,23,.34));
}
/* Dashboard (Home) bewusst nicht angefasst: components.css legt seinen Kopf mit !important fest. */

/* Flex-Köpfe: Symbol, Text, Aktion rechts */
html body .wishlist-header-row,
html body .tc-logs-header,
html body .mm-page-head,
html body .mu-header,
html body .ds-head,
html body .pl-head,
html body .jd-head {
  display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 14px 16px;
}
html body .wishlist-header-row > div:first-child { flex: 1 1 280px; min-width: 0; }
html body .wishlist-header-row .wishlist-add-button { margin-left: auto; }
html body .tc-logs-header .tc-logs-title { flex: 1 1 280px; min-width: 0; }
html body .tc-logs-header .tc-log-actions { margin-left: auto; }
html body .mm-page-head .mm-title-wrap { flex: 1 1 280px; min-width: 0; }
html body .mm-page-head .mm-count-card { margin-left: auto; }
html body .mu-header .mu-title { flex: 1 1 280px; min-width: 0; }
html body .mu-header .mu-primary-btn { margin-left: auto; }
html body .ds-head > div:first-child { flex: 1 1 280px; min-width: 0; }
html body .ds-head > div:last-child { margin-left: auto; }
html body .pl-head > div:first-child { flex: 1 1 280px; min-width: 0; }
html body .pl-head > .pl-pill { margin-left: auto; }
html body .jd-head > div:first-child { flex: 1 1 280px; min-width: 0; }
html body .jd-head .jd-state { margin-left: auto; }

/* Grid-Köpfe: Symbol links über zwei Zeilen */
html body .admin-log-hero,
html body .system-status > .tc-page-copy,
html body .profile-title,
html body .recent-title-card,
html body .mdv-head,
html body .gs-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; align-content: center;
}
html body .admin-log-hero > *,
html body .system-status > .tc-page-copy > *,
html body .profile-title > *,
html body .recent-title-card > *,
html body .mdv-head > *,
html body .gs-head > * { grid-column: 2; }

/* ---------- Symbol-Kachel ---------- */
html body .wishlist-header-row::before,
html body .tc-logs-header::before,
html body .mm-page-head::before,
html body .mu-header::before,
html body .ds-head::before,
html body .pl-head::before,
html body .jd-head::before,
html body .admin-log-hero::before,
html body .system-status > .tc-page-copy::before,
html body .profile-title::before,
html body .recent-title-card::before,
html body .mdv-head::before,
html body .gs-head::before {
  content: "";
  flex: 0 0 auto;
  width: 52px; height: 52px; border-radius: 14px;
  background-image: var(--tc-hero-icon), linear-gradient(135deg, var(--primary, #2563eb), var(--primary-2, #38bdf8));
  background-repeat: no-repeat; background-position: center; background-size: 26px 26px, 100% 100%;
  box-shadow: 0 10px 24px rgba(37,99,235,.35);
}
html body .admin-log-hero::before,
html body .system-status > .tc-page-copy::before,
html body .profile-title::before,
html body .recent-title-card::before,
html body .mdv-head::before,
html body .gs-head::before { grid-column: 1; grid-row: 1 / span 3; }
html body .wishlist-header-row { --tc-hero-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z%22/%3E%3C/svg%3E"); }
html body .tc-logs-header { --tc-hero-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01%22/%3E%3C/svg%3E"); }
html body .mm-page-head { --tc-hero-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z%22/%3E%3C/svg%3E"); }
html body .mu-header { --tc-hero-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%229%22 cy=%227%22 r=%224%22/%3E%3Cpath d=%22M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2M16 3.13a4 4 0 0 1 0 7.75M21 21v-2a4 4 0 0 0-3-3.85%22/%3E%3C/svg%3E"); }
html body .ds-head { --tc-hero-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M22 12H2%22/%3E%3Cpath d=%22M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z%22/%3E%3Cpath d=%22M6 16h.01M10 16h.01%22/%3E%3C/svg%3E"); }
html body .pl-head { --tc-hero-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%223%22 width=%226%22 height=%226%22 rx=%221%22/%3E%3Crect x=%2215%22 y=%2215%22 width=%226%22 height=%226%22 rx=%221%22/%3E%3Cpath d=%22M6 9v3a3 3 0 0 0 3 3h6%22/%3E%3C/svg%3E"); }
html body .jd-head { --tc-hero-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4%22/%3E%3Cpath d=%22M7 10l5 5 5-5%22/%3E%3Cpath d=%22M12 15V3%22/%3E%3C/svg%3E"); }
html body .admin-log-hero { --tc-hero-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3l7 4v5c0 4.2-2.7 7.4-7 9-4.3-1.6-7-4.8-7-9V7l7-4z%22/%3E%3Cpath d=%22M9.5 12l1.7 1.7 3.8-4%22/%3E%3C/svg%3E"); }
html body .system-status > .tc-page-copy { --tc-hero-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M22 12h-4l-3 9L9 3l-3 9H2%22/%3E%3C/svg%3E"); }
html body .profile-title { --tc-hero-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%228%22 r=%224%22/%3E%3Cpath d=%22M4 21v-1a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v1%22/%3E%3C/svg%3E"); }
html body .recent-title-card { --tc-hero-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3l1.9 5.8L20 11l-6.1 2.2L12 19l-1.9-5.8L4 11l6.1-2.2z%22/%3E%3Cpath d=%22M19 3v4M21 5h-4%22/%3E%3C/svg%3E"); }
html body .mdv-head { --tc-hero-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 6h18M8 6V4h8v2M19 6l-1 14H6L5 6M10 11v6M14 11v6%22/%3E%3C/svg%3E"); }
html body .gs-head { --tc-hero-icon: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2211%22 cy=%2211%22 r=%227%22/%3E%3Cpath d=%22m21 21-4.3-4.3%22/%3E%3C/svg%3E"); }

/* ---------- Titel und Untertitel ---------- */
html body .wishlist-title,
html body .tc-logs-title h2,
html body .mm-title,
html body .mu-title h1,
html body .admin-log-hero .tc-title,
html body .system-status > .tc-page-copy .tc-title,
html body .profile-title h1,
html body .recent-title-card .tc-title,
html body .ds-head h2,
html body .mdv-head h1,
html body .pl-head h1,
html body .jd-head h1,
html body .gs-head h1 {
  margin: 0; color: #fff; font-size: 26px; line-height: 1.15; font-weight: 900; letter-spacing: 0;
}
html body .wishlist-subtitle,
html body .tc-logs-title p,
html body .mm-subtitle,
html body .mu-title p,
html body .admin-log-hero .tc-subtitle,
html body .system-status > .tc-page-copy .tc-subtitle,
html body .profile-title p,
html body .recent-title-card .tc-subtitle,
html body .ds-head > div:first-child p,
html body .mdv-head .mdv-page-back,
html body .pl-head p,
html body .jd-head p,
html body .gs-head > p {
  margin: 6px 0 0; color: #94a3b8; font-size: 14px; line-height: 1.5; max-width: 760px;
}

/* ---------- Kennzahlen-Kacheln: Farbstreifen und Punkt ---------- */
html body .admin-status-card,
html body .sys-card,
html body .mu-stat-card,
html body .recent-mini-stat,
html body .pl-kpis > div {
  --tone: var(--tc-tone-1);
  position: relative; overflow: hidden;
  border: 1px solid var(--border, rgba(148,163,184,.24));
  border-radius: var(--tc-hero-radius);
  background: var(--surface, #111827);
  transition: border-color .15s ease, transform .15s ease;
}
html body .admin-status-card::before,
html body .sys-card::before,
html body .mu-stat-card::before,
html body .recent-mini-stat::before,
html body .pl-kpis > div::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--tone);
}
html body .admin-status-card:nth-child(5n+2),
html body .sys-card:nth-child(5n+2),
html body .mu-stat-card:nth-child(5n+2),
html body .recent-mini-stat:nth-child(5n+2),
html body .pl-kpis > div:nth-child(5n+2) { --tone: var(--tc-tone-2); }
html body .admin-status-card:nth-child(5n+3),
html body .sys-card:nth-child(5n+3),
html body .mu-stat-card:nth-child(5n+3),
html body .recent-mini-stat:nth-child(5n+3),
html body .pl-kpis > div:nth-child(5n+3) { --tone: var(--tc-tone-3); }
html body .admin-status-card:nth-child(5n+4),
html body .sys-card:nth-child(5n+4),
html body .mu-stat-card:nth-child(5n+4),
html body .recent-mini-stat:nth-child(5n+4),
html body .pl-kpis > div:nth-child(5n+4) { --tone: var(--tc-tone-4); }
html body .admin-status-card:nth-child(5n+5),
html body .sys-card:nth-child(5n+5),
html body .mu-stat-card:nth-child(5n+5),
html body .recent-mini-stat:nth-child(5n+5),
html body .pl-kpis > div:nth-child(5n+5) { --tone: var(--tc-tone-5); }
html body a.mu-stat-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tone) 55%, transparent); }
html body .admin-status-card strong,
html body .sys-card strong,
html body .mu-stat-card strong,
html body .recent-mini-stat strong,
html body .pl-kpis > div strong,
html body .mu-stat-card .mu-stat-number { color: #fff; font-variant-numeric: tabular-nums; }

@media (max-width: 700px) {
  html body .wishlist-header-row,
html body .tc-logs-header,
html body .mm-page-head,
html body .mu-header,
html body .ds-head,
html body .pl-head,
html body .jd-head,
html body .admin-log-hero,
html body .system-status > .tc-page-copy,
html body .profile-title,
html body .recent-title-card,
html body .mdv-head,
html body .gs-head { padding: 16px; }
  html body .wishlist-header-row::before,
html body .tc-logs-header::before,
html body .mm-page-head::before,
html body .mu-header::before,
html body .ds-head::before,
html body .pl-head::before,
html body .jd-head::before,
html body .admin-log-hero::before,
html body .system-status > .tc-page-copy::before,
html body .profile-title::before,
html body .recent-title-card::before,
html body .mdv-head::before,
html body .gs-head::before { width: 42px; height: 42px; background-size: 22px 22px, 100% 100%; }
  html body .wishlist-title,
html body .tc-logs-title h2,
html body .mm-title,
html body .mu-title h1,
html body .admin-log-hero .tc-title,
html body .system-status > .tc-page-copy .tc-title,
html body .profile-title h1,
html body .recent-title-card .tc-title,
html body .ds-head h2,
html body .mdv-head h1,
html body .pl-head h1,
html body .jd-head h1,
html body .gs-head h1 { font-size: 21px; }
  html body .wishlist-header-row .wishlist-add-button,
html body .tc-logs-header .tc-log-actions,
html body .mm-page-head .mm-count-card,
html body .mu-header .mu-primary-btn,
html body .ds-head > div:last-child,
html body .pl-head > .pl-pill,
html body .jd-head .jd-state { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html body .admin-status-card,
html body .sys-card,
html body .mu-stat-card,
html body .recent-mini-stat,
html body .pl-kpis > div { transition: none; } }

/* Medienverwaltung: Tabelle als kompakte Zeilen-Karten (Name | Grösse / Neuer Name · Pfad / Votes | Aktionen).
   Reines CSS auf dem bestehenden Markup, JS-Hooks bleiben. Wird an layout.css angehängt. */
html body .media-management-modern .mm-table { display: block; min-width: 0; width: 100%; table-layout: auto; }
html body .media-management-modern .mm-table colgroup { display: none; }
html body .media-management-modern .mm-table-scroll { overflow: visible; }
html body .media-management-modern .mm-table thead,
html body .media-management-modern .mm-table tbody { display: block; }

/* Kopf: nur noch die sortierbaren Spalten als kleine Leiste */
html body .media-management-modern .mm-table thead tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 18px; }
html body .media-management-modern .mm-table thead tr::before { content: "Sortieren:"; color: #94a3b8; font-size: 12px; font-weight: 700; margin-right: 4px; }
html body .media-management-modern .mm-table th { display: none; padding: 0; border: 0; }
html body .media-management-modern .mm-table th:nth-child(1),
html body .media-management-modern .mm-table th:nth-child(4) { display: block; }
html body .media-management-modern .mm-table th a { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border: 1px solid rgba(148,163,184,.24); border-radius: 999px; background: #1f2937; color: #cbd5e1; font-size: 11px; letter-spacing: .08em; }
html body .media-management-modern .mm-table th a:hover { color: #fff; border-color: #38bdf8; }

/* Zeile als Raster */
html body .media-management-modern .mm-table tbody tr {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  grid-template-areas: "name name size" "new path path" "votes votes actions";
  gap: 6px 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(148,163,184,.10);
}
html body .media-management-modern .mm-table td { display: block; padding: 0; border: 0; min-width: 0; overflow: hidden; }
html body .media-management-modern .mm-table td:nth-child(1) { grid-area: name; }
html body .media-management-modern .mm-table td:nth-child(2) { grid-area: new; }
html body .media-management-modern .mm-table td:nth-child(3) { grid-area: path; }
html body .media-management-modern .mm-table td:nth-child(4) { grid-area: size; align-self: start; text-align: right; }
html body .media-management-modern .mm-table td:nth-child(5) { grid-area: votes; overflow: visible; white-space: normal; }
html body .media-management-modern .mm-table td:nth-child(6) { grid-area: actions; align-self: center; }

html body .media-management-modern .mm-name-main { white-space: normal; overflow-wrap: anywhere; font-size: 14px; line-height: 1.35; color: #fff; }
html body .media-management-modern .mm-new-name,
html body .media-management-modern .mm-path { font-size: 12px; }
html body .media-management-modern .mm-new-name::before { content: "Neu: "; color: #64748b; font-weight: 700; }
html body .media-management-modern .mm-path { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; color: #94a3b8; }
html body .media-management-modern .mm-size { display: inline-block; padding: 3px 9px; border-radius: 999px; background: rgba(56,189,248,.12); color: #e0f2fe; font-size: 12px; white-space: nowrap; }

/* Abstimmung in einer Zeile */
html body .media-management-modern .mm-table .mdv-control { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; }
html body .media-management-modern .mm-table .mdv-summary,
html body .media-management-modern .mm-table .mdv-actions { margin: 0; gap: 5px; }
html body .media-management-modern .mm-table .mdv-summary span { padding: 2px 8px; border: 1px solid rgba(148,163,184,.22); border-radius: 999px; background: rgba(148,163,184,.08); color: #cbd5e1; white-space: nowrap; }
html body .media-management-modern .mm-table .mdv-summary span:first-child { border-color: rgba(56,189,248,.40); color: #bae6fd; background: rgba(56,189,248,.10); }
html body .media-management-modern .mm-table .mdv-actions > span { color: #94a3b8; }
html body .media-management-modern .mm-table .mdv-action { padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid rgba(148,163,184,.30); background: #1f2937; color: #e2e8f0; }
html body .media-management-modern .mm-table .mdv-action[data-action="vote_for"] { border-color: rgba(248,113,113,.45); color: #fecaca; background: rgba(248,113,113,.10); }
html body .media-management-modern .mm-table .mdv-action[data-action="vote_against"] { border-color: rgba(34,197,94,.45); color: #bbf7d0; background: rgba(34,197,94,.10); }
html body .media-management-modern .mm-table .mdv-action:hover { filter: brightness(1.2); }
html body .media-management-modern .mm-table .mdv-history { margin: 0; }
html body .media-management-modern .mm-table .mdv-history summary { font-size: 12px; color: #7dd3fc; }
html body .media-management-modern .mm-table .mdv-history[open] { flex-basis: 100%; padding: 6px 10px; border-radius: 8px; background: rgba(3,7,18,.45); }

@media (max-width: 760px) {
  html body .media-management-modern .mm-table tbody tr {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name size" "new new" "path path" "votes votes" "actions actions";
    padding: 12px 14px;
  }
  html body .media-management-modern .mm-table td:nth-child(6) { justify-self: start; }
}
