﻿/* Grunddesign für die ganze Seite */
body {
    font-family: 'Segoe UI', sans-serif; /* Standardschrift für das ganze Projekt */
    background: linear-gradient(to right, #f4f7fa, #eef2f5); /* sanfter Hintergrundverlauf */
    margin: 0; /* kein äußerer Abstand */
    padding: 0;
}

/* Allgemeine Überschriften */
h1, h2, h3 {
    color: #2d3a4a; /* dunkle, gut lesbare Überschriftenfarbe */
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-top: 18px;
    margin-bottom: 18px;
}

/* Formularcontainer zentriert auf der Seite */
.form-wrapper {
    max-width: 800px; /* Maximale Breite für gute Lesbarkeit */
    margin: 40px auto; /* zentriert auf der Seite */
    padding: 24px; /* Innenabstand für Luft */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

/* Panel für Details, Formulare usw. */
.panel {
    background: #fff; /* weißer Hintergrund */
    border: 1px solid #ddd; /* dezente graue Umrandung */
    border-radius: 7px; /* abgerundete Ecken */
    padding: 18px 24px; /* ausreichend Innenabstand */
    margin-bottom: 28px; /* Abstand zu weiteren Elementen */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Bereich für HTML-Vorschau */
.preview {
    background: #f8fafb; /* sehr heller Hintergrund */
    border: 1px solid #ccc; /* feine graue Linie */
    border-radius: 5px;
    padding: 12px;
    font-size: 14px;
}

/* ---------- Buttons mit sprechenden deutschen Namen ---------- */

/* Primäre Buttons: Speichern, Veröffentlichen, Neu, Bearbeiten */
.BtnSpeichern,
.BtnNeu,
.BtnBearbeiten {
    margin-bottom: 18px;
    background-color: #2563eb; /* kräftiges Blau für Hauptaktionen */
    color: #fff; /* weißer Text */
    border: none; /* keine Umrandung */
    border-radius: 4px; /* leicht abgerundet */
    padding: 8px 16px; /* angenehme Größe */
    font-size: 14px;
    cursor: pointer;
    display: inline-block;
    margin: 4px 2px; /* Abstand zwischen Buttons */
    transition: background-color 0.3s, box-shadow 0.3s;
}

/* Gefährliche Aktion: Löschen (rot) */
.BtnLöschen {
    background-color: #e74c3c; /* roter Hintergrund für Löschen */
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    display: inline-block;
    margin: 4px 2px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

/* Sekundäre Aktionen: Abbrechen, Zurück (hellgrau) */

.BtnZurück {
    background-color: #f0f0f0; /* hellgrau für Nebensachen */
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    display: inline-block;
    margin: 4px 2px;
    transition: background-color 0.3s, border-color 0.3s;
}

/* Hover-Effekt für Hauptaktionen */
.BtnSpeichern:hover,
.BtnNeu:hover,
.BtnBearbeiten:hover {
    background-color: #1d4ed8; /* dunkleres Blau beim Hover */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.17);
}
/* Hover-Effekt für Löschen */
.BtnLöschen:hover {
    background-color: #c0392b; /* dunkleres Rot beim Hover */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
/* Hover-Effekt für Sekundäraktionen */

.BtnZurück:hover {
    background-color: #e0e0e0; /* etwas dunkleres Grau */
    border-color: #bbb;
}

/* Fokus (Tab-Steuerung): farbige Outline */
.BtnSpeichern:focus,
.BtnNeu:focus,
.BtnBearbeiten:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3); /* Blaue Umrandung */
}

.BtnLöschen:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.28); /* Rote Umrandung */
}

.BtnAbbrechen:focus,
.BtnZurück:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(170, 170, 170, 0.33); /* Graue Umrandung */
}
.BtnAbbrechen {
    background-color: #fff5f5; /* sehr hellrot, freundlich für "abbrechen" */
    color: #c92a2a; /* kräftiges Rot für Text */
    border: 1px solid #faa2c1; /* rosafarbene Umrandung */
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    margin: 4px 2px;
    transition: background-color 0.2s, color 0.2s, border 0.2s;
}

    .BtnAbbrechen:hover {
        background-color: #ffe3e3; /* etwas dunkler beim Hover */
        color: #a61e4d;
        border-color: #fa5252;
    }

/* Published – aktiv */
.BtnVeröffentlicht {
    background-color: #1abc9c; /* зелёный */
    color: #fff;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
}

    .BtnVeröffentlicht:hover::after {
        content: "Veröffentlicht – sichtbar für Nutzer!";
        position: absolute;
        left: 100%;
        top: 50%;
        transform: translateY(-50%);
        background: #333;
        color: #fff;
        padding: 7px 12px;
        border-radius: 5px;
        white-space: nowrap;
        z-index: 10;
        margin-left: 10px;
    }

/* Für "Zurückziehen" (unpublish) */
.BtnZurueckziehen {
    background-color: #ffa600; /* orange */
    color: #fff;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
}

    .BtnZurueckziehen:hover::after {
        content: "Nicht veröffentlicht – Kurs ist nur als Entwurf gespeichert!";
        position: absolute;
        left: 100%;
        top: 50%;
        transform: translateY(-50%);
        background: #333;
        color: #fff;
        padding: 7px 12px;
        border-radius: 5px;
        white-space: nowrap;
        z-index: 10;
        margin-left: 10px;
    }


.StatusIcon {
    font-size: 18px;
    margin: 0 10px 0 0;
    vertical-align: middle;
    cursor: pointer;
    transition: filter 0.22s;
}

    .StatusIcon.Published {
        color: #1abc9c; /* зеленый */
    }

    .StatusIcon.Draft {
        color: #ffa600; /* оранжевый */
    }

    .StatusIcon:hover {
        filter: brightness(1.2);
    }




/* Deaktivierte Buttons (ausgegraut) */
.BtnSpeichern:disabled, .BtnSpeichern[disabled],
.BtnVeröffentlichen:disabled, .BtnVeröffentlichen[disabled],
.BtnNeu:disabled, .BtnNeu[disabled],
.BtnBearbeiten:disabled, .BtnBearbeiten[disabled],
.BtnLöschen:disabled, .BtnLöschen[disabled],
.BtnAbbrechen:disabled, .BtnAbbrechen[disabled],
.BtnZurück:disabled, .BtnZurück[disabled] {
    background-color: #cccccc !important; /* grau für deaktiviert */
    color: #777 !important;
    border-color: #ccc !important;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.62;
}

/* ---------- Eingabefelder und Formularstruktur ---------- */

/* Formularzeile (Reihe mit mehreren Feldern) */
.FormularReihe {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px; /* mehr abstand  */
}

.FormularSpalte {
    flex: 1;
    min-width: 220px;
    margin-bottom: 0;
}

    .FormularSpalte label {
        margin-bottom: 6px;
        font-weight: 500;
        display: block;
    }



/* Eingabefeld (Text, Dropdown, etc.) */
.EingabeFeld {
   
    width: 100%;
    max-width:370px;
    margin-bottom:0px;
    padding: 9px 13px;
    border: 1px solid #d0d7e2;
    border-radius: 7px;
    background-color: #f8fafc;
    font-size: 15px;
    transition: border 0.28s;
}

    .EingabeFeld:focus {
        border-color: #6366f1;
        outline: none;
    }
    .EingabeFeld.invalid {
        border-color: #e74c3c !important; /* hell-blau*/
        background-color: #fff5f5; /* helles rot hintergrund */
    }


/* Editorfeld */
.EditorFeld {
    width: 100%;
    height: 180px;
    padding: 11px;
    border: 1px solid #ccd6e0;
    border-radius: 7px;
    background-color: #fcfcfe;
    font-size: 15px;
}

/* ---------- Tabellen und GridView ---------- */

/* Übersichtstabelle (Grid) */
.TabelleÜbersicht {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    background: #fff;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}

    .TabelleÜbersicht th, .TabelleÜbersicht td {
        padding: 12px 18px;
        text-align: left;
        font-size: 14px;
        border-bottom: 1px solid #edf2f7;
        word-break: break-word;
        white-space: normal;
        max-width: 240px;
    }

    .TabelleÜbersicht th {
        background-color: #2563eb;
        color: white;
        text-transform: uppercase;
        font-weight: 600;
    }

    .TabelleÜbersicht tr:hover {
        background-color: #f3f7fc;
    }

/* Markierte/ausgewählte Zeile */
.MarkierteZeile {
    background-color: #e6f7ff !important;
    font-weight: bold;
    border-left: 4px solid #007bff;
}

/* ---------- Mitteilungen und Erfolgsmeldungen ---------- */

/* Box für Nachrichten (z. B. Erfolg, Fehler) */
.MeldungsBox {
    display: block;
    margin: 12px auto;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    max-width: 500px;
    opacity: 1;
    transition: opacity 10s;
}

    .MeldungsBox.erfolg {
        background-color: #e6fffa;
        color: #087f5b;
        border: 1px solid #b2f2e8;
    }

    .MeldungsBox.fehler {
        background-color: #fff5f5;
        color: #c92a2a;
        border: 1px solid #faa2c1;
    }

    .MeldungsBox.info {
        background-color: #e6f1ff;
        color: #3167d1;
        border: 1px solid #9ec7e0;
    }

/* --- Panel Hinweis */
.HinweisBox {
    display: block;
    margin: 12px auto;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    max-width: 500px;
    background-color: #e6f1ff;
    color: #3167d1;
    border: 1px solid #9ec7e0;
    opacity: 1;
}


.debugLog {
    font-size: 11px;
    color: gray;
    margin-top: 10px;
    display: block;
}
/* --- Spezial-Layout NUR für FrageVerwaltung: */
.frageverw-style .frage-verw-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.frageverw-style .frage-verw-btn-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 170px;
}

.frageverw-style .frage-alle-btn-col {
    display: flex;
    align-items: flex-end;
    margin-left: auto; /* button rechts */
}

.frageverw-style .BtnAlleFragen {
    background: #2d9cdb;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 7px;
    font-weight: bold;
    box-shadow: 0 2px 8px #d7eaf6;
    transition: background 0.2s;
}

    .frageverw-style .BtnAlleFragen:hover {
        background: #1982c4;
    }
/* frage-verw-row */
.frageverw-style .frage-verw-row .BtnNeu,
.frageverw-style .frage-verw-row .BtnAbbrechen,
.frageverw-style .frage-verw-row .EingabeFeld,
.frageverw-style .frage-verw-row .BtnAlleFragen {
    height: 48px !important;
    box-sizing: border-box;
}
/* filter columns min width */
.frageverw-style .frage-verw-row .FormularSpalte {
    min-width: 210px;
    margin-bottom: 0;
}
/* --- Spezial-Layout für FrageVerwaltung: Veröffentlichen/Zurückziehen --- */

/* button "Veröffentlichen" (аktiv) */
.frageverw-style .BtnFrageVeröffentlichen,
input.BtnFrageVeröffentlichen[type="submit"] {
    background: #ffa600;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    padding: 6px 16px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 8px;
    transition: background 0.18s;
    display: inline-block;
    position: relative;
    outline: none;
}

    .frageverw-style .BtnFrageVeröffentlichen:hover,
    input.BtnFrageVeröffentlichen[type="submit"]:hover {
        background: #e18600;
    }

/* button "Zurückziehen"  */
.frageverw-style .BtnFrageZurueckziehen,
input.BtnFrageZurueckziehen[type="submit"] {
    background: #d7263d;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    padding: 6px 16px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 8px;
    transition: background 0.18s;
    display: inline-block;
    position: relative;
    outline: none;
}

    .frageverw-style .BtnFrageZurueckziehen:hover,
    input.BtnFrageZurueckziehen[type="submit"]:hover {
        background: #a81e2a;
    }

/* ---  "Veröffentlicht" nicht aktiv ---
.frageverw-style .BtnFrageVeröffentlicht,
input.BtnFrageVeröffentlicht[type="submit"] {
    background: #1abc9c;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    padding: 6px 16px;
    font-size: 15px;
    font-weight: bold;
    cursor: default;
    margin-left: 8px;
    opacity: 0.88;
    pointer-events: none;
    display: inline-block;
    position: relative;
    outline: none;
}
*/


/* === Panel-Header Flex-Layout === */
.panel-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.publish-switch-group {
    margin-left: auto;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

/* Verstecke die Standard-Checkbox */
.switch-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    pointer-events: none;
}

/* Styles für den benutzerdefinierten Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    vertical-align: middle;
}

    .switch .slider {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        border-radius: 26px;
        transition: background 0.24s;
    }

        .switch .slider:before {
            content: "";
            position: absolute;
            height: 20px;
            width: 20px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            border-radius: 50%;
            transition: transform 0.24s, background 0.24s;
        }

/* --- Aktiver Switch (grün) --- */
.switch-checkbox:checked + label.switch .slider {
    background-color: #23ba54;
}

    .switch-checkbox:checked + label.switch .slider:before {
        transform: translateX(20px);
        background: #e5ffe5;
    }

/* --- Status-Text rechts vom Switch --- */
.switch-status-label {
    font-size: 1.25rem;
    font-weight: bold;
    color: #ea3838;
    margin-left: 8px;
    transition: color 0.24s;
}
/* --- Grün, wenn Switch aktiv --- */
.switch-checkbox:checked ~ .switch-status-label {
    color: #23ba54;
}


/* Bereich: Aufgabenverwaltung – Filter und Aktionen im Kopfbereich */

/* Hauptreihe für Filter und Buttons im Aufgabenverwaltungsbereich.
   Nutzt flexbox für ein modernes, responsives Layout. */
.aufgabeverw-style .aufgabe-verw-row {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px;
    align-items: center;
}

/* Spalte für die Aktions-Buttons ("Neue Aufgabe", "Zurücksetzen").
   Buttons sind vertikal angeordnet. */
.aufgabeverw-style .aufgabe-verw-btn-col {
    display: flex;
    flex-direction: column; 
    gap: 10px;
    min-width: 170px;
}

/* Jede Filtersparte (Tutorial/Modul/Kategorie) hat Mindestbreite
   und keinen unteren Abstand. */
.aufgabeverw-style .FormularSpalte {
    min-width: 210px;
    margin-bottom: 0;
}

/* Die Buttons im Kopfbereich bekommen einheitliche Höhe
   für besseres Aussehen und Ausrichtung. */
.aufgabeverw-style .BtnNeu,
.aufgabeverw-style .BtnAbbrechen {
    height: 48px !important;
    box-sizing: border-box;
}
/* Filtern obed disable*/
/* Отключенный DropDown: тусклый и не кликабелен */
select.disabled, .EingabeFeld.disabled {
    background: #f4f4f4 !important;
    color: #aaa !important;
    pointer-events: none;
    border-color: #ddd !important;
    opacity: 0.85;
}
.highlight-eingabeFeld {
    background: #fff7b2;
    transition: background 0.7s;
}


/* Fehler-Markierung für Eingabefelder */
.InputError {
    border: 2px solid #b33 !important;
    background: #fff0f0 !important;
}

/* Fade-In-Highlight für Tabellenzeilen */
.highlight-fade {
    animation: fadeRow 1.5s;
}

@keyframes fadeRow {
    from {
        background-color: #d7ffd9;
    }

    70% {
        background-color: #d7ffd9;
    }

    to {
        background-color: inherit;
    }
}

/* --- Tags-Bereich: Button und Panel inline neben dem Eingabefeld --- */

/* Flex-Container für Tag-Eingabefeld und Button "Neuen Tag anlegen" */
.TagInput {
    border: 2px solid #93c5fd;
    background: #f8fafc;
    border-radius: 7px;
    font-size: 1em;
    padding: 7px 13px;
    transition: border 0.15s;
}

    .TagInput:focus {
        border: 2px solid #0ea5e9;
        background: #e0f2fe;
    }

.TagInlineFlex {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

/* Button "Neuen Tag anlegen" */
.BtnMiniGreen {
    background: #39b76b;
    color: #fff !important;
    border-radius: 4px;
    padding: 5px 13px 6px 12px;
    font-size: 0.98em;
    font-weight: 500;
    text-decoration: none;
    border: none;
    transition: background 0.13s;
    cursor: pointer;
    min-width: 0;
    width: auto;
    display: inline-block;
    box-shadow: 0 1px 2px #0001;
    white-space: nowrap;
}

    .BtnMiniGreen:hover {
        background: #28a154;
        color: #fff !important;
    }

/* Kleiner roter X-Button zum Schließen des Panels */
.BtnAbbrechenKlein {
    background: none;
    border: none;
    color: #b11;
    font-weight: bold;
    font-size: 1.35em;
    padding: 0 7px;
    cursor: pointer;
    outline: none;
}

    .BtnAbbrechenKlein:hover {
        color: #e00;
        background: #ffd5d5;
        border-radius: 100px;
    }


/* =======================================================================
   Medienverwaltung – Layout , verlässliche Tabellenspalten
   ======================================================================= */

/* --- Zweispaltiges Layout: linke Tabelle, rechte Detailspalte (sticky) --- */
.medienverw .FormularReihe {
    align-items: flex-start;
    gap: 18px;
}

.medienverw .details-col {
    flex: 0 0 420px; /* feste Breite der rechten Spalte */
    position: sticky;
    top: 12px; /* „klebt“ beim Scrollen */
    align-self: flex-start;
    z-index: 1;
}

@media (max-width:1200px) {
    .medienverw .details-col {
        flex: 1 1 100%;
        position: static;
    }
}

/* -----------------------------------------------------------------------
   TABELLE: feste Spalten + kein Zeilenumbruch in der Kopfzeile
   (wichtig: table-layout: fixed und identische Breiten für th/td)
   ----------------------------------------------------------------------- */
.medienverw .TabelleÜbersicht {
    table-layout: fixed;
}

    /* Kopfzellen: nie umbrechen, ggf. mit Ellipsis kürzen */
    .medienverw .TabelleÜbersicht thead th {
        white-space: nowrap !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 48px;
        line-height: 48px; /* vertikal mittig, 1-zeilig erzwingen */
        vertical-align: middle;
    }

    /* Tabellenzellen: einzeilig + Ellipsis */
    .medienverw .TabelleÜbersicht tbody td {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: middle;
    }

    /* In Auswahl- und Vorschau-Spalten KEIN Ellipsis */
    .medienverw .TabelleÜbersicht td.col-select,
    .medienverw .TabelleÜbersicht td.col-preview {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    /* Checkbox mittig ausrichten */
    .medienverw .TabelleÜbersicht td.col-select {
        text-align: center;
    }

    /* Vorschau-Zelle sauber layouten */
    .medienverw .TabelleÜbersicht td.col-preview {
        display: flex; /* verhindert „komische“ Umbrüche */
        align-items: center;
        gap: 8px;
    }

    /* Fallback gegen „…“ in exotischen Fällen:
   neutralisiert zufällige Textknoten */
    .medienverw .TabelleÜbersicht td.col-select,
    .medienverw .TabelleÜbersicht td.col-preview {
        font-size: 0;
    }

        .medienverw .TabelleÜbersicht td.col-select input,
        .medienverw .TabelleÜbersicht td.col-preview * {
            font-size: 14px;
        }


        /* Aktionen dürfen hinausragen (Buttons nicht abschneiden) */
        .medienverw .TabelleÜbersicht tbody td.col-actions {
            overflow: visible;
            text-overflow: clip;
        }

    /* -----------------------------------------------------------------------
   SPALTENBREITEN (th und td identisch; min-width verhindert Schrumpfen)
   ----------------------------------------------------------------------- */
    .medienverw .TabelleÜbersicht th.col-select,
    .medienverw .TabelleÜbersicht td.col-select {
        width: 48px;
        min-width: 48px;
        text-align: center;
    }

    .medienverw .TabelleÜbersicht th.col-preview,
    .medienverw .TabelleÜbersicht td.col-preview {
        width: 110px;
        min-width: 110px;
    }

    .medienverw .TabelleÜbersicht th.col-file,
    .medienverw .TabelleÜbersicht td.col-file {
        width: 340px;
        min-width: 340px;
    }
    /* Dateiname/URL */

    .medienverw .TabelleÜbersicht th.col-type,
    .medienverw .TabelleÜbersicht td.col-type {
        width: 95px;
        min-width: 95px;
    }

    .medienverw .TabelleÜbersicht th.col-size,
    .medienverw .TabelleÜbersicht td.col-size {
        width: 100px;
        min-width: 100px;
    }

    .medienverw .TabelleÜbersicht th.col-status,
    .medienverw .TabelleÜbersicht td.col-status {
        width: 105px;
        min-width: 105px;
    }

    .medienverw .TabelleÜbersicht th.col-date,
    .medienverw .TabelleÜbersicht td.col-date {
        width: 160px;
        min-width: 160px;
    }

    .medienverw .TabelleÜbersicht th.col-usage,
    .medienverw .TabelleÜbersicht td.col-usage {
        width: 140px;
        min-width: 140px;
    }

    .medienverw .TabelleÜbersicht th.col-rel,
    .medienverw .TabelleÜbersicht td.col-rel {
        width: 140px;
        min-width: 140px;
    }

    .medienverw .TabelleÜbersicht th.col-actions,
    .medienverw .TabelleÜbersicht td.col-actions {
        width: 280px;
        min-width: 280px;
    }

/* Checkbox in der Select-Spalte leicht nach unten korrigieren */
.medienverw .col-select input[type=checkbox] {
    transform: translateY(1px);
}

/* Kompakte Buttons im Grid */
.medienverw .TabelleÜbersicht .BtnKlein {
    padding: 4px 10px;
    font-size: 12px;
}

/* Lange Pfade dezent mit Ellipsis (voller Text via title) */
.medienverw .debugLog {
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Button „Anz. (x)“ nur beim Hover zeigen */
.medienverw .col-usage .btn-usage {
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
}

.medienverw .medien-grid tbody tr:hover .col-usage .btn-usage {
    opacity: 1;
    pointer-events: auto;
}

/* „Löschen“ deaktiviert: sichtbar, aber inaktiv */
.medienverw .BtnLöschen[disabled],
.medienverw .aspNetDisabled.BtnLöschen {
    opacity: .5;
    pointer-events: none;
}

/* Details-Spalte anfänglich ausblenden */
.is-hidden {
    display: none !important;
}

/* -----------------------------------------------------------------------
   Schwebende Sammel-Aktionsleiste (rechts unten)
   ----------------------------------------------------------------------- */
.floating-massbar {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1000;
    background: #fff;
    border: 1px solid #d0d7e2;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    padding: 10px 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    backdrop-filter: blur(2px);
}

    .floating-massbar.hidden {
        display: none;
    }

    .floating-massbar .count {
        font-weight: 700;
        color: #2d3a4a;
    }

/* ==== Fein-Tuning: Datei schmaler, Usage-Button sichtbarer, Zugehörigkeit stabil ==== */

/* 1) Datei: schmaler machen und Pfad stärker kürzen */
.medienverw .TabelleÜbersicht th.col-file,
.medienverw .TabelleÜbersicht td.col-file {
    width: 260px; 
    min-width: 260px;
}

.medienverw .debugLog {
    max-width: 180px; 
}

/* 2) "Anz. (x)" auffälliger (Pill-Button) und immer sichtbar */
.medienverw .col-usage .btn-usage {
    opacity: 1;
    pointer-events: auto;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #1d4ed8 !important;
    border-radius: 8px;
    padding: 4px 10px;
    font-weight: 600;
    line-height: 1;
}

    .medienverw .col-usage .btn-usage:hover {
        background: #dbeafe;
        border-color: #b4c6fc;
    }


.medienverw .col-usage .btn-usage {
    transition: opacity .15s ease;
}

.medienverw .medien-grid tbody tr:hover .col-usage .btn-usage {
    opacity: 1;
}


.medienverw .TabelleÜbersicht th.col-rel {
    font-size: 12px; 
    letter-spacing: .02em;
}

.medienverw .TabelleÜbersicht th.col-rel,
.medienverw .TabelleÜbersicht td.col-rel {
    width: 150px;
    min-width: 150px;
}
.BtnLöschen.BtnKlein[aria-disabled="true"] {
    opacity: .5;
    filter: grayscale(50%);
}
/* Knopf „Filter zurücksetzen“ auffälliger */
.BtnZurück {
    background: #eaf2ff;
    border: 1px solid #93c5fd;
    color: #1d4ed8;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background .15s ease, border-color .15s ease;
}

    .BtnZurück:hover {
        background: #dbeafe;
        border-color: #60a5fa;
    }
.det-url-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 8px 0 14px;
}

    .det-url-row .btn-inline {
        padding: 4px 10px;
        font-size: 12px;
    }

.mono-clip {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    max-width: 420px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.usage-list {
    padding-left: 18px;
    margin: 0;
}

    .usage-list li {
        margin: 8px 0;
        display: flex;
        gap: 10px;
        align-items: center;
    }

.usage-label {
    font-weight: 600;
}



/*KursVerwaltung Sprache Block Trennung*/
/* --- Sprachheader-Zeile über Kurszeilen --- */
/* Sprach-Headerzeile (ganze Zeile ODER Zelle) */
.SpracheHeaderRow,
.SpracheHeaderRow td {
    background: #f5f5f7;
    font-weight: 600;
    padding: 8px 12px;
    border-top: 1px solid #e0e0e0;
}

