/* ==========================================================================
   OpenSourceSignage – Verwaltungsoberfläche
   Helles, ruhiges SaaS-Design. Keine externen Ressourcen, keine Frameworks.
   ========================================================================== */

:root {
    --bg:            #f5f7fb;
    --surface:       #ffffff;
    --surface-alt:   #fafbfd;
    --border:        #e5e8f0;
    --border-strong: #d3d8e5;
    --text:          #14192b;
    --text-soft:     #384056;
    --muted:         #687185;
    --accent:        #4f46e5;
    --accent-hover:  #4338ca;
    --accent-soft:   #eef2ff;
    --accent-border: #c7d0fd;
    --success:       #0c8051;
    --success-soft:  #e7f8f0;
    --warning:       #b45309;
    --warning-soft:  #fef4e6;
    --danger:        #d02b1e;
    --danger-soft:   #fdeceb;
    --info-soft:     #eaf3ff;

    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 14px;

    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-md: 0 4px 12px rgba(16, 24, 40, .08), 0 2px 4px rgba(16, 24, 40, .04);
    --shadow-lg: 0 16px 40px rgba(16, 24, 40, .14);

    --sidebar-width: 248px;
    --header-height: 62px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
            Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* --- Grundlagen ---------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

/* Eigene Klassen (etwa .card__footer mit display:flex) würden das
   hidden-Attribut sonst aushebeln. */
[hidden] { display: none !important; }

/* --- Barrierefreiheit ----------------------------------------------------- */

/* Nur für Screenreader: nicht sichtbar, aber vorlesbar. */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip-path: inset(50%);
    overflow: hidden; white-space: nowrap;
}

/* Erste Station beim Tabben: überspringt die Navigation. */
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    background: var(--surface); color: var(--accent-hover);
    border: 1px solid var(--accent); border-radius: var(--radius-sm);
    padding: 9px 14px; font-weight: 600;
    transition: top .12s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* Der Inhaltsbereich bekommt beim Sprung den Fokus, soll ihn aber nicht
   sichtbar umranden – der Sprung selbst ist die Rückmeldung. */
.content:focus { outline: none; }

/* Wer Bewegung reduziert haben möchte, bekommt keine. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

html, body { height: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 20px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p  { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

code, kbd, pre { font-family: var(--mono); font-size: 12.5px; }
code {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1px 5px;
}
pre {
    background: #101828; color: #e4e7ec; padding: 14px 16px;
    border-radius: var(--radius); overflow-x: auto; margin: 0 0 12px;
}
pre code { background: none; border: 0; color: inherit; padding: 0; }

::selection { background: var(--accent-soft); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Grundgerüst --------------------------------------------------------- */

.app { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
}

.sidebar__brand {
    display: flex; align-items: center; gap: 10px;
    height: var(--header-height);
    padding: 0 18px;
    border-bottom: 1px solid var(--border);
    flex: 0 0 auto;
}
.sidebar__brand a { display: flex; align-items: center; gap: 10px; color: var(--text); }
.sidebar__brand a:hover { text-decoration: none; }
.sidebar__logo {
    width: 30px; height: 30px; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), #7c6cf5);
    display: grid; place-items: center; color: #fff; flex: 0 0 auto;
}
.sidebar__name { font-weight: 650; font-size: 14.5px; line-height: 1.15; }
.sidebar__sub { font-size: 11px; color: var(--muted); }

.sidebar__nav { flex: 1 1 auto; overflow-y: auto; padding: 12px 10px; }

.nav-group { margin-bottom: 16px; }
.nav-group__title {
    font-size: 10.5px; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: #8d94a6;
    padding: 0 10px 6px;
}

.nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; margin-bottom: 2px;
    border-radius: var(--radius-sm);
    color: #3f465c; font-weight: 500;
    transition: background .12s ease, color .12s ease;
}
.nav-link:hover { background: var(--surface-alt); color: var(--text); text-decoration: none; }
.nav-link.is-active { background: var(--accent-soft); color: var(--accent-hover); font-weight: 600; }
.nav-link svg { width: 17px; height: 17px; flex: 0 0 auto; opacity: .85; }
/* Ein Eintrag der Navigation, der keinen Ort öffnet, sondern einen Dialog –
   deshalb ein echter Knopf. Fokus und Tastatur bringt der Browser dann mit;
   aussehen soll er wie die Verweise daneben. */
.nav-link--knopf {
    width: 100%; background: none; border: 0; cursor: pointer;
    font: inherit; font-weight: 500; text-align: left;
}

.nav-link .nav-count {
    margin-left: auto; font-size: 11px; font-weight: 600;
    background: var(--surface-alt); border: 1px solid var(--border);
    border-radius: 20px; padding: 0 7px; color: var(--muted);
}
/* Etwas wartet auf eine Entscheidung – das darf auffallen. */
.nav-link .nav-count--accent {
    background: var(--accent); border-color: var(--accent); color: #fff;
}

.sidebar__footer { border-top: 1px solid var(--border); padding: 10px; flex: 0 0 auto; }
.user-chip {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 8px; border-radius: var(--radius-sm);
}
.user-chip:hover { background: var(--surface-alt); text-decoration: none; }
.avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent-hover);
    display: grid; place-items: center; font-weight: 650; font-size: 12px;
    flex: 0 0 auto;
}
.user-chip__name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.2; }
.user-chip__role { font-size: 11px; color: var(--muted); }

.main {
    flex: 1 1 auto;
    margin-left: var(--sidebar-width);
    min-width: 0;
    display: flex; flex-direction: column;
}

.topbar {
    height: var(--header-height);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 14px;
    padding: 0 24px;
    position: sticky; top: 0; z-index: 30;
}
.topbar__title { font-size: 17px; font-weight: 650; }
.topbar__sub { font-size: 12.5px; color: var(--muted); }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.content { padding: 24px; max-width: 1500px; width: 100%; }

.sidebar-toggle { display: none; }

/* --- Sofortfilter für Listen --------------------------------------------- */

.list-filter { display: flex; align-items: center; gap: 10px; }
.list-filter__field {
    position: relative; display: flex; align-items: center;
    color: var(--muted);
}
.list-filter__field svg { position: absolute; left: 10px; pointer-events: none; }
.list-filter__field .input { padding-left: 32px; width: 260px; height: 36px; }
.list-filter__count { white-space: nowrap; }
@media (max-width: 720px) {
    .list-filter__field .input { width: 100%; }
}

/* --- Wochenraster „Was läuft wann?" -------------------------------------- */

.week-grid { width: 100%; border-collapse: collapse; font-size: 11px; }
.week-grid th { font-weight: 600; color: var(--muted); padding: 4px 6px; text-align: center; }
.week-grid thead th { font-size: 10.5px; border-bottom: 1px solid var(--border); }
.week-grid__corner { width: 96px; }
.week-grid__day {
    text-align: left !important; white-space: nowrap;
    border-right: 1px solid var(--border); color: var(--text-soft);
}
.week-grid__day.is-today { color: var(--accent-hover); font-weight: 700; }
.week-grid__cell {
    height: 26px; border: 1px solid var(--surface);
    background: var(--surface-alt); cursor: help;
}
.week-grid__cell.is-now { box-shadow: inset 0 0 0 2px var(--accent); }
/* c0 ist immer der Standardinhalt und bleibt deshalb ruhig */
.week-grid__cell--c0 { background: #eceff5; }
.week-grid__cell--c1 { background: #c7d2fe; }
.week-grid__cell--c2 { background: #bbf7d0; }
.week-grid__cell--c3 { background: #fde68a; }
.week-grid__cell--c4 { background: #fbcfe8; }
.week-grid__cell--c5 { background: #bae6fd; }
.week-grid__cell--c6 { background: #fed7aa; }
.week-grid__cell--c7 { background: #d9f99d; }
/* Von einem Zeitplan gesetzt – hebt sich auch bei gleicher Farbe ab */
.week-grid__cell.is-schedule { border-top: 2px solid rgba(16, 24, 40, .28); }
/* Außerhalb der Betriebszeit: schraffiert, damit es nicht nur die Farbe ist */
.week-grid__cell.is-off {
    background-image: repeating-linear-gradient(
        45deg, rgba(16, 24, 40, .16) 0 2px, transparent 2px 6px);
}

.week-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; margin-right: 14px; }
.week-legend__dot { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--border); }

/* Aufklappbarer Block, etwa für die Betriebszeiten einer Gruppe */
.hours-details > summary {
    cursor: pointer; font-weight: 600; font-size: 13px; color: var(--text-soft);
    padding: 6px 0; list-style-position: inside;
}
.hours-details > summary:hover { color: var(--accent-hover); }
.hours-details[open] > summary { margin-bottom: 8px; }
.hours-details .card { margin-bottom: 0; }

/* --- Karten -------------------------------------------------------------- */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    margin-bottom: 18px;
    overflow: hidden;
}
.card__header {
    padding: 15px 18px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
}
.card__header h2, .card__header h3 { margin: 0; }
.card__header .card__actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card__desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
/* Karte mit Handlungsbedarf – dezent, aber nicht zu übersehen */
.card--warning { border-color: #f5dcb3; }
.card--warning > .card__header { background: var(--warning-soft); border-bottom-color: #f5dcb3; color: #92400e; }
.card--warning > .card__header h2 { color: #92400e; }
.card--warning > .card__header .card__desc { color: #a16207; }
.card__body { padding: 18px; }
.card__body--tight { padding: 0; }
/* Umbrechen, nicht überlaufen: In einer schmalen Kachel stünde die letzte
   Schaltfläche sonst außerhalb und wäre nicht mehr zu treffen. */
.card__footer {
    padding: 13px 18px; border-top: 1px solid var(--border);
    background: var(--surface-alt);
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}

/* --- Raster -------------------------------------------------------------- */

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }

@media (max-width: 1200px) {
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--sidebar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
}

/* --- Kennzahlen ---------------------------------------------------------- */

.stat {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 16px 18px;
    box-shadow: var(--shadow-xs);
}
.stat__label { font-size: 12px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.stat__value { font-size: 26px; font-weight: 680; letter-spacing: -.02em; margin-top: 4px; }
.stat__hint { font-size: 12px; color: var(--muted); }

/* Eine Kennzahl, die keine Zahl ist („unbefristet“, „vor 2 Stunden“). Sie
   bekommt weniger Größe, sonst bricht der Satz um und die Kachel wird hoch. */
.stat__value--text { font-size: 19px; font-weight: 640; }
/* Der Nenner einer Kennzahl: „3 von 10“ – klein, damit die Zahl trägt. */
.stat__of { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; }

/* Kennzahlen nebeneinander – etwa in der Kiosk-Auswertung */
.stats-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* Ein Formular, das die Regel nicht braucht: eingeklappt, bis jemand etwas
   ändern will. Die Auskunft darüber ist der Normalfall. */
.lz-form { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
/* Steht das Formular allein da – ohne Lizenz gibt es nichts zu berichten –,
   trennt die Linie nichts und fällt weg. */
.lz-form--solo { margin-top: 0; border-top: 0; padding-top: 0; }
.lz-form > summary {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-soft);
    list-style: none; width: fit-content; border-radius: var(--radius); padding: 2px 4px;
}
.lz-form > summary::-webkit-details-marker { display: none; }
.lz-form > summary:hover { color: var(--accent); }
.lz-form > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lz-form[open] > summary { margin-bottom: 4px; }

/* Ein farbiger Punkt vor einem Zustand. Er trägt die Aussage nie allein –
   daneben steht immer der Text, und er ist für Screenreader unsichtbar. */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot--success { background: var(--success); }
.dot--warning { background: var(--warning); }
.dot--danger  { background: var(--danger); }

/* Wertepaare untereinander: Beschriftung links, Angabe rechts. Für kurze
   Auskünfte, die keine Tabelle rechtfertigen – eine Tabelle mit einer Spalte
   Beschriftung ist keine Tabelle, sondern eine Liste. */
.deflist { display: grid; grid-template-columns: 190px minmax(0, 1fr); margin: 0; font-size: 13.5px; }
.deflist > dt { color: var(--muted); padding: 10px 12px 10px 0; border-top: 1px solid var(--border); }
.deflist > dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--border); min-width: 0; }
.deflist > dd code { word-break: break-all; }
@media (max-width: 640px) {
    .deflist { grid-template-columns: minmax(0, 1fr); }
    .deflist > dt { padding-bottom: 0; }
    .deflist > dd { padding-top: 2px; border-top: 0; }
}

/* Ein waagerechter Anteilsbalken. Die Zahl steht immer daneben: Ein Balken
   allein ist für Screenreader und bei Farbenblindheit keine Aussage. */
.bar { height: 6px; border-radius: 3px; background: var(--surface-alt); border: 1px solid var(--border); overflow: hidden; }
.bar__fill { height: 100%; background: var(--accent); }
/* Voll ist eine Aussage – aber nie die einzige: Daneben steht „alle belegt“. */
.bar__fill--voll { background: var(--warning); }

/* Reihe schmaler Säulen (Tage, Stunden). Bewusst ohne Diagrammbibliothek. */
.spark { display: flex; align-items: flex-end; gap: 2px; height: 84px; }
.spark__bar { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 2px; }
.spark__fill { width: 100%; background: var(--accent); border-radius: 2px 2px 0 0; opacity: .85; }
.spark__bar:hover .spark__fill { opacity: 1; background: var(--accent-hover); }

/* --- Schaltflächen ------------------------------------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 36px; padding: 0 14px;
    border-radius: var(--radius-sm); border: 1px solid transparent;
    background: var(--accent); color: #fff;
    font: inherit; font-size: 13.5px; font-weight: 570;
    cursor: pointer; white-space: nowrap;
    transition: background .12s ease, border-color .12s ease, box-shadow .12s ease, color .12s ease;
    text-decoration: none;
}
.btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(.5px); }
.btn svg { width: 16px; height: 16px; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }

.btn--secondary {
    background: var(--surface); color: var(--text); border-color: var(--border-strong);
    box-shadow: var(--shadow-xs);
}
.btn--secondary:hover { background: var(--surface-alt); color: var(--text); border-color: var(--muted); }

.btn--ghost { background: transparent; color: var(--muted); }
.btn--ghost:hover { background: var(--surface-alt); color: var(--text); }

.btn--danger { background: var(--danger); }
.btn--danger:hover { background: #b42318; }

.btn--danger-soft { background: var(--danger-soft); color: var(--danger); border-color: #f7c9c5; }
.btn--danger-soft:hover { background: #fbdcd9; color: #b42318; }

.btn--sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn--icon { width: 34px; padding: 0; }
.btn--icon.btn--sm { width: 30px; }
.btn--block { width: 100%; }
.btn--lg { height: 42px; padding: 0 20px; font-size: 15px; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* --- Formulare ----------------------------------------------------------- */

.field { margin-bottom: 15px; }
.field:last-child { margin-bottom: 0; }
.field > label, .label {
    display: block; font-size: 12.5px; font-weight: 600;
    color: #384056; margin-bottom: 5px;
}
.field__hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

.input, .select, .textarea {
    width: 100%; height: 38px; padding: 0 11px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text);
    font: inherit; font-size: 13.5px;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.textarea { height: auto; min-height: 96px; padding: 9px 11px; line-height: 1.5; resize: vertical; }
.textarea--code { font-family: var(--mono); font-size: 12.5px; min-height: 240px; white-space: pre; }

.input:focus, .select:focus, .textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
.input[readonly] { background: var(--surface-alt); color: var(--muted); }
.input--sm, .select--sm { height: 32px; font-size: 12.5px; }

.select {
    appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7488' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.input-color { height: 38px; width: 52px; padding: 3px; cursor: pointer; }

.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row > .field { flex: 1 1 180px; margin-bottom: 15px; }

.check {
    display: flex; align-items: flex-start; gap: 9px;
    font-size: 13.5px; cursor: pointer; margin-bottom: 9px;
}
.check input[type="checkbox"], .check input[type="radio"] {
    width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer;
    flex: 0 0 auto;
}
.check__text small { display: block; color: var(--muted); font-size: 12px; }

.switch-row {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 11px 0; border-bottom: 1px solid var(--border);
}
.switch-row:last-child { border-bottom: 0; }
.switch-row__label { font-size: 13.5px; font-weight: 550; display: block; cursor: pointer; }
.switch-row__hint { font-size: 12px; color: var(--muted); }

.segmented {
    display: inline-flex; background: var(--surface-alt);
    border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; gap: 3px;
}
.segmented label {
    padding: 5px 12px; border-radius: 5px; font-size: 12.5px; font-weight: 550;
    cursor: pointer; color: var(--muted);
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented input:checked + span,
.segmented label.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }
.segmented label span { display: block; padding: 5px 12px; margin: -5px -12px; border-radius: 5px; }

.weekdays { display: flex; gap: 5px; flex-wrap: wrap; }
.weekdays label {
    width: 40px; height: 34px; display: grid; place-items: center;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    font-size: 12.5px; font-weight: 600; color: var(--muted);
    cursor: pointer; background: var(--surface); user-select: none;
}
.weekdays input { position: absolute; opacity: 0; width: 0; height: 0; }
.weekdays input:checked + span { color: #fff; }
.weekdays label:has(input:checked) { background: var(--accent); border-color: var(--accent); color: #fff; }

/* --- Tabellen ------------------------------------------------------------ */

.table-wrap { overflow-x: auto; }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
    text-align: left; font-size: 11.5px; font-weight: 650; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted);
    padding: 10px 16px; background: var(--surface-alt);
    border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
/* Schmale Tabelle mitten in einer Karte – etwa der Vergleich bei Freigaben */
.table--compact th, .table--compact td { padding: 6px 10px; }
.table--compact th:first-child, .table--compact td:first-child { padding-left: 0; }
.table tbody tr:hover { background: #fbfcfe; }
.table .cell-actions { text-align: right; white-space: nowrap; }
.table .cell-tight { width: 1%; white-space: nowrap; }
.table__title { font-weight: 600; color: var(--text); }
.table__meta { font-size: 12px; color: var(--muted); }

/* --- Abzeichen ----------------------------------------------------------- */

.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 9px; border-radius: 20px;
    font-size: 11.5px; font-weight: 600; line-height: 1.7;
    background: var(--surface-alt); color: var(--muted);
    border: 1px solid var(--border);
    white-space: nowrap;
}
.badge--success { background: var(--success-soft); color: var(--success); border-color: #bfe9d5; }
.badge--danger  { background: var(--danger-soft);  color: var(--danger);  border-color: #f7c9c5; }
.badge--warning { background: var(--warning-soft); color: var(--warning); border-color: #f5dcb3; }
.badge--accent  { background: var(--accent-soft);  color: var(--accent-hover); border-color: var(--accent-border); }
.badge--info    { background: var(--info-soft);    color: #175cd3; border-color: #cfe2fd; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.dot--pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* --- Meldungen ----------------------------------------------------------- */

/* Meldungen liegen zwischen Dialog und Rückfrage – wie bisher, nur eine Ebene
   höher, seit die Dialoge über dem Folien-Editor liegen müssen. */
.flash-stack { position: fixed; top: 14px; right: 20px; z-index: 10010; display: grid; gap: 8px; width: 380px; max-width: calc(100vw - 40px); }

.alert {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--surface);
    box-shadow: var(--shadow-md); font-size: 13.5px;
    animation: slide-in .25s ease;
}
@keyframes slide-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.alert svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }
.alert__close { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--muted); padding: 0 2px; font-size: 16px; line-height: 1; }
.alert--success { border-color: #bfe9d5; background: var(--success-soft); color: #05603a; }
.alert--error   { border-color: #f7c9c5; background: var(--danger-soft);  color: #912018; }
.alert--info    { border-color: #cfe2fd; background: var(--info-soft);    color: #175cd3; }

.notice {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 14px; border-radius: var(--radius);
    background: var(--info-soft); border: 1px solid #cfe2fd; color: #1a4c9c;
    font-size: 13px; margin-bottom: 16px;
}
.notice--warning { background: var(--warning-soft); border-color: #f5dcb3; color: #92400e; }
.notice svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }

/* --- Leerzustand --------------------------------------------------------- */

.empty {
    text-align: center; padding: 46px 24px; color: var(--muted);
}
.empty__icon {
    width: 46px; height: 46px; border-radius: 12px; margin: 0 auto 14px;
    background: var(--accent-soft); color: var(--accent);
    display: grid; place-items: center;
}
.empty h3 { color: var(--text); margin-bottom: 5px; }
.empty p { max-width: 420px; margin: 0 auto 16px; font-size: 13.5px; }

/* --- Display-Kacheln ----------------------------------------------------- */

.display-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
    padding: 16px; display: flex; flex-direction: column; gap: 11px;
    transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.display-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-1px); }
.display-card__head { display: flex; align-items: flex-start; gap: 10px; }
.display-card__name { font-weight: 640; font-size: 14.5px; color: var(--text); }
.display-card__name a { color: inherit; }
.display-card__meta { font-size: 12px; color: var(--muted); }
.display-card__screen {
    aspect-ratio: 16 / 9; border-radius: var(--radius);
    background: linear-gradient(135deg, #1e2338, #2f3550);
    display: grid; place-items: center; color: #fff;
    font-size: 12.5px; text-align: center; padding: 12px; overflow: hidden;
    position: relative;
}
.display-card__screen--portrait { aspect-ratio: 9 / 16; max-height: 220px; margin: 0 auto; width: auto; }
.display-card__screen small { display: block; opacity: .7; margin-top: 3px; }
.display-card__footer { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }

.pairing-code {
    font-family: var(--mono); font-size: 26px; font-weight: 700; letter-spacing: .22em;
    background: var(--accent-soft); color: var(--accent-hover);
    border: 1px dashed var(--accent-border); border-radius: var(--radius);
    padding: 14px 18px; text-align: center;
}

/* --- Medien -------------------------------------------------------------- */

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }

.media-item {
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface); overflow: hidden;
    transition: border-color .12s ease, box-shadow .12s ease;
    position: relative;
}
.media-item:hover { border-color: var(--accent-border); box-shadow: var(--shadow-sm); }
/* Die Kacheln der Medienauswahl sind Schaltflächen – damit sie sich auch mit
   der Tastatur bedienen lassen. */
.media-item--pick {
    font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 0;
    display: block; width: 100%;
}
.media-item.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.media-item__thumb {
    aspect-ratio: 4 / 3; background: var(--surface-alt);
    display: grid; place-items: center; overflow: hidden;
    background-image: linear-gradient(45deg, #f0f2f7 25%, transparent 25%, transparent 75%, #f0f2f7 75%),
                      linear-gradient(45deg, #f0f2f7 25%, transparent 25%, transparent 75%, #f0f2f7 75%);
    background-size: 16px 16px; background-position: 0 0, 8px 8px;
}
.media-item__thumb img, .media-item__thumb video { width: 100%; height: 100%; object-fit: contain; }
.media-item__info { padding: 8px 10px; border-top: 1px solid var(--border); }
.media-item__name { font-size: 12.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-item__meta { font-size: 11px; color: var(--muted); }
.media-item__actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .12s; }
.media-item:hover .media-item__actions { opacity: 1; }

/* Die Ablagefläche ist ein <label>, damit ein Klick das Dateifeld öffnet.
   Ein Label ist von Haus aus `inline` – dann zerfällt der gestrichelte Rahmen
   in einzelne Fetzen um die Textzeilen, und anklickbar ist nur, was innerhalb
   dieser Fetzen liegt. */
.dropzone {
    display: block;
    border: 2px dashed var(--border-strong); border-radius: var(--radius-lg);
    padding: 28px; text-align: center; color: var(--muted);
    background: var(--surface-alt); transition: all .15s ease; cursor: pointer;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hover); }

/* --- Modale Dialoge ------------------------------------------------------ */

/* Die Ebenen ganz oben. Sie liegen bewusst über allem, was der Folien-Editor
   auf die Bühne zeichnet (Anfasser, Hilfslinien, Auswahlrahmen – 9996 bis
   9999 in editor.css): Sonst ragen die Anfasser des gerade gewählten Elements
   in den Medien-Dialog hinein und lassen sich dort sogar anfassen. */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(16, 24, 40, .55);
    backdrop-filter: blur(2px); z-index: 10000;
    display: grid; place-items: center; padding: 24px;
    animation: fade-in .15s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal-backdrop[hidden] { display: none; }
/* Die Rückfrage muss über allen anderen Dialogen liegen – sonst lässt sie
   sich aus einem Dialog heraus nicht bestätigen. */
#confirm-dialog { z-index: 10020; }

.modal {
    background: var(--surface); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); width: 100%; max-width: 560px;
    max-height: calc(100vh - 48px); display: flex; flex-direction: column;
    animation: modal-in .18s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.modal--wide { max-width: 900px; }
.modal--full { max-width: 1180px; }
.modal__header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.modal__header h2 { font-size: 16px; }
.modal__close { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--muted); padding: 4px; border-radius: 5px; display: grid; place-items: center; }
.modal__close:hover { background: var(--surface-alt); color: var(--text); }
.modal__body { padding: 20px; overflow-y: auto; }
.modal__footer { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-alt); display: flex; gap: 8px; justify-content: flex-end; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* --- Reiter -------------------------------------------------------------- */

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tab {
    padding: 9px 14px; font-size: 13.5px; font-weight: 550; color: var(--muted);
    border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap;
    background: none; border-top: 0; border-left: 0; border-right: 0; font-family: inherit;
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel[hidden] { display: none; }

/* --- Anmeldung ----------------------------------------------------------- */

.auth-wrap {
    min-height: 100vh; display: grid; place-items: center; padding: 24px;
    background: radial-gradient(1100px 520px at 50% -10%, #e9ecfb 0%, var(--bg) 62%);
}
.auth-card {
    width: 100%; max-width: 400px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-md); padding: 30px;
}
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 22px; text-align: center; }
.auth-brand .sidebar__logo { width: 42px; height: 42px; border-radius: 11px; }
.auth-brand h1 { font-size: 19px; }
.auth-brand p { color: var(--muted); font-size: 13px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 12px; color: var(--muted); }

/* --- Hilfsklassen -------------------------------------------------------- */

.muted   { color: var(--muted); }
.small   { font-size: 12.5px; }
.tiny    { font-size: 11.5px; }
.strong  { font-weight: 600; }
.mono    { font-family: var(--mono); }
.nowrap  { white-space: nowrap; }
.center  { text-align: center; }
.right   { text-align: right; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.stack   { display: grid; gap: 12px; }
.stack--sm { gap: 8px; }
.row     { display: flex; align-items: center; gap: 10px; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.spacer  { margin-left: auto; }

.mt-0 { margin-top: 0; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 26px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; } .mb-4 { margin-bottom: 26px; }

.divider { height: 1px; background: var(--border); margin: 16px 0; }

.color-swatch { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0,0,0,.12); display: inline-block; vertical-align: -2px; }

.list-reset { list-style: none; margin: 0; padding: 0; }

/* Notfallmeldung: steht auf jeder Seite, solange sie läuft. Auffällig, aber
   nicht blinkend – ein Band, das zappelt, wird schlechter gelesen. */
.alarmband {
    display: flex; align-items: center; gap: 12px;
    background: #fef2f2; border: 1px solid #fecaca; border-left: 4px solid #dc2626;
    color: #7f1d1d; border-radius: 10px; padding: 12px 14px; margin-bottom: 18px;
}
.alarmband svg { flex: 0 0 auto; color: #dc2626; }
.alarmband__text { flex: 1 1 auto; min-width: 0; font-size: 14px; }
.alarmband__ziel { display: block; font-size: 12.5px; opacity: .8; margin-top: 2px; }
.alarmband .btn { flex: 0 0 auto; background: #dc2626; border-color: #dc2626; }
.alarmband .btn:hover { background: #b91c1c; border-color: #b91c1c; }

/* Fernblick: die Anzeige eines Displays im Seitenverhältnis des Geräts */
.mirror {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    background: #0f172a; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--border);
}
.mirror--portrait { aspect-ratio: 9 / 16; max-width: 420px; margin: 0 auto; }
.mirror__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mirror__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mirror__leer {
    position: absolute; inset: 0; margin: 0; display: grid; place-items: center;
    padding: 8%; text-align: center; color: #94a3b8; font-size: 13.5px; line-height: 1.6;
}
.btn.is-active { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent-hover); }

/* Zweiter Faktor: QR-Code, Codefeld und die Liste der Ersatzcodes */
.qr-box {
    display: inline-block; padding: 10px; background: #fff;
    border: 1px solid var(--border); border-radius: 10px; line-height: 0;
}
.input--code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 20px; letter-spacing: .28em; text-align: center;
}
.backup-codes {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px;
    margin: 0; padding-left: 24px; font-size: 15px; letter-spacing: .05em;
}
.backup-codes li { padding: 2px 0; }

/* Wandansicht: alle Displays nebeneinander, jede Kachel ein kleiner Fernblick */
.wall {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.wall-tile {
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    overflow: hidden; display: flex; flex-direction: column;
}
.wall-tile--down { border-color: #fecaca; }
.wall-tile__screen {
    position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
    background: #0f172a; overflow: hidden;
}
.wall-tile__screen--portrait { aspect-ratio: 3 / 4; }
.wall-tile__frame {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
    /* Die Kachel selbst ist der Link – der Rahmen darf keine Klicks fangen. */
    pointer-events: none;
}
.wall-tile__leer {
    position: absolute; inset: 0; display: grid; place-items: center;
    color: #64748b; font-size: 12.5px;
}
.wall-tile__dot {
    position: absolute; top: 8px; right: 8px; width: 11px; height: 11px;
    border-radius: 50%; background: #94a3b8; box-shadow: 0 0 0 2px rgba(15, 23, 42, .55);
}
.wall-tile__dot.is-ok { background: #16a34a; }
.wall-tile__dot.is-danger { background: #dc2626; }
.wall-tile__dot.is-warning { background: #d97706; }
.wall-tile__dot.is-muted { background: #94a3b8; }
.wall-tile__foot { padding: 9px 12px 11px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wall-tile__name { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; min-width: 0; }
.wall-tile__name a { font-weight: 600; font-size: 13.5px; color: var(--text); text-decoration: none; }
.wall-tile__name a:hover { color: var(--accent); }
.wall-tile__state {
    font-size: 12.5px; color: var(--muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wall-tile__state.is-danger { color: #b91c1c; font-weight: 600; }
.wall-tile__state.is-warning { color: #b45309; }
.wall-summary { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.wall-summary__item strong { color: var(--text); font-size: 15px; }

.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* --- Mobil --------------------------------------------------------------- */

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
    body.nav-open .sidebar { transform: none; }
    .main { margin-left: 0; }
    .sidebar-toggle { display: inline-flex; }
    .content { padding: 16px; }
    .topbar { padding: 0 16px; }
    .flash-stack { right: 12px; left: 12px; width: auto; }
    .kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
    .kv dd { margin-bottom: 8px; }
}

@media print {
    .sidebar, .topbar, .btn, .flash-stack { display: none !important; }
    .main { margin: 0; }
    .card { box-shadow: none; break-inside: avoid; }
}

/* --- Badge-Gestaltung (Kiosk-Sets) --------------------------------------- */

.badge-shapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }

.badge-shape {
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    padding: 12px 8px; text-align: center; cursor: pointer; background: var(--surface);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    transition: border-color .12s ease, background .12s ease;
}
.badge-shape:hover { border-color: var(--accent-border); background: var(--surface-alt); }
.badge-shape.is-active { border-color: var(--accent); background: var(--accent-soft); }
.badge-shape { position: relative; }
/* Der Auswahlknopf bleibt bedienbar und mit der Tastatur erreichbar,
   ist aber optisch durch die Kachel ersetzt. */
.badge-shape input {
    position: absolute; inset: 0; width: 100%; height: 100%;
    margin: 0; opacity: 0; cursor: pointer;
}
.badge-shape:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.badge-shape__label { font-size: 11.5px; font-weight: 600; color: var(--text); }

.badge-shape__figure { width: 46px; height: 26px; background: var(--muted); display: block; }
.badge-shape.is-active .badge-shape__figure { background: var(--accent); }
.badge-shape__figure--pill    { border-radius: 999px; }
.badge-shape__figure--square  { border-radius: 6px; width: 30px; height: 26px; }
.badge-shape__figure--circle  { border-radius: 50%; width: 28px; height: 28px; }
.badge-shape__figure--quarter { border-radius: 100% 0 0 0; width: 30px; height: 26px; }
.badge-shape__figure--bar     { border-radius: 2px; width: 52px; height: 14px; }

.badge-preview {
    border-radius: var(--radius); overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    background-image:
        linear-gradient(135deg, rgba(79,70,229,.35), transparent 60%),
        linear-gradient(315deg, rgba(15,157,99,.25), transparent 55%),
        linear-gradient(135deg, #1e293b, #0f172a);
}
.badge-preview__stage { position: relative; aspect-ratio: 16 / 9; }
.badge-preview__hint {
    position: absolute; inset: 0; display: grid; place-items: center;
    color: rgba(255,255,255,.6); font-size: 13px; padding: 20px; text-align: center;
}

/* Ziehgriff in Tabellen */
.drag-handle { color: var(--muted); cursor: grab; }
.drag-handle:active { cursor: grabbing; }

/* --- Fußzeile mit Version und Entwicklervermerk --------------------------- */

.app-footer {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    margin-top: 28px; padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 12px; color: var(--muted);
}
.app-footer strong { font-weight: 600; color: var(--text-soft); }
.app-footer a { color: var(--accent); }
/* Ein Knopf, der aussieht wie ein Verweis – für eine Handlung, die keine
   Adresse hat. */
.linkknopf {
    background: none; border: 0; padding: 0; cursor: pointer;
    font: inherit; color: var(--accent); text-decoration: none;
}
.linkknopf:hover { text-decoration: underline; }
.linkknopf:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.sidebar__meta {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 8px; font-size: 11px; color: var(--muted);
}
.sidebar__meta a { color: var(--muted); }
.sidebar__meta a:hover { color: var(--accent); }

/* --- Aktualisierung ------------------------------------------------------- */

.progress {
    height: 10px; border-radius: 999px; overflow: hidden;
    background: var(--surface-alt); border: 1px solid var(--border);
}
.progress__bar {
    height: 100%; width: 0;
    background: var(--accent);
    transition: width .3s ease;
}
.progress__bar.is-error { background: var(--danger); width: 100% !important; }
@media (prefers-reduced-motion: reduce) { .progress__bar { transition: none; } }

.changelog-entry + .changelog-entry { border-top: 1px solid var(--border); }
/* Fließtext bleibt lesbar, auch wenn die Karte die volle Breite hat. */
.changelog-body { color: var(--text-soft); font-size: 13.5px; max-width: 78ch; }
.changelog-body h4, .changelog-body h5 {
    margin: 12px 0 4px; font-size: 12px; text-transform: uppercase;
    letter-spacing: .04em; color: var(--muted);
}
.changelog-body ul { margin: 0 0 8px; padding-left: 18px; }
.changelog-body li { margin-bottom: 4px; }
.changelog-body p { margin: 0 0 8px; }
.changelog-body code {
    font-family: var(--mono); font-size: 12px;
    background: var(--surface-alt); border: 1px solid var(--border);
    border-radius: 4px; padding: 1px 4px;
}

/* Bereitschaftsprüfung vor der Aktualisierung */
.preflight { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.preflight__item { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.preflight__mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px;
    background: var(--success-soft); color: var(--success);
}
.preflight__item--warnung .preflight__mark { background: var(--warning-soft); color: var(--warning); }
.preflight__item--fehler  .preflight__mark { background: var(--danger-soft);  color: var(--danger); }

/* Ergebnis eines Verbindungstests */
.ok-text     { color: var(--success); font-weight: 600; }
.fehler-text { color: var(--danger);  font-weight: 600; }

/* Freigaben: beide Fassungen einer Folie nebeneinander */
.gegenueber {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.gegenueber .label { margin-bottom: 6px; }
/* Der Fernblick gibt die Hülle her; das Seitenverhältnis kommt aber aus der
   Foliengröße und wird deshalb per Skript gesetzt. */
.gegenueber .mirror { aspect-ratio: auto; background: #f1f5f9; }
.gegenueber .mirror--beantragt { border-color: var(--accent-border); box-shadow: 0 0 0 2px var(--accent-soft); }
.gegenueber .mirror .oss-stage { position: absolute; top: 0; left: 0; }
