/* Schriftgröße CSS-Variable – wird per JS-Interop sofort gesetzt */
:root {
    --app-schriftgroesse: 14px;
    /* Signature-Gradient: symmetrisches Blau, dunkel in der Mitte */
    --signature-gradient: linear-gradient(to right, #93c5fd 0%, #3b82f6 25%, #1e3a8a 50%, #3b82f6 75%, #93c5fd 100%);
    --fmhv-choice-border-color: #64748b;
    --fmhv-choice-hover-border-color: #2563eb;
    --fmhv-choice-disabled-border-color: #b0bec5;
    --fmhv-choice-focus-ring: rgba(37, 99, 235, 0.18);
}

.content {
    font-size: var(--app-schriftgroesse);
}

/* Telerik-Buttons: in Flex-Containern nicht auf 100% strecken */
.k-button {
    flex: none !important;
    width: auto !important;
}

/* TelerikGrid-Toolbar: in einer Zeile, Spacer schiebt Items nach rechts */
.k-grid-toolbar,
.k-toolbar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

    .k-grid-toolbar .k-toolbar-spacer,
    .k-grid-toolbar .grid-toolbar-spacer,
    .k-toolbar .k-toolbar-spacer,
    .k-toolbar .grid-toolbar-spacer {
        flex: 1 1 auto;
    }

    .k-grid-toolbar > *,
    .k-toolbar > * {
        flex: none !important;
        align-self: center;
    }

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

input[type="checkbox"]:not(.k-checkbox),
input[type="radio"]:not(.k-radio) {
    accent-color: var(--kendo-color-primary, #0078d4);
}

.k-checkbox,
.k-radio {
    border-width: 2px !important;
    border-style: solid !important;
    opacity: 1 !important;
}

.k-checkbox:not(:checked):not(.k-checked),
.k-radio:not(:checked):not(.k-checked) {
    border-color: var(--fmhv-choice-border-color) !important;
    background-color: #fff !important;
}

.k-checkbox:not(:checked):not(.k-checked):hover,
.k-radio:not(:checked):not(.k-checked):hover {
    border-color: var(--fmhv-choice-hover-border-color) !important;
}

.k-checkbox:focus,
.k-checkbox:focus-visible,
.k-radio:focus,
.k-radio:focus-visible {
    box-shadow: 0 0 0 3px var(--fmhv-choice-focus-ring) !important;
}

.k-checkbox:disabled,
.k-checkbox[disabled],
.k-radio:disabled,
.k-radio[disabled] {
    border-color: var(--fmhv-choice-disabled-border-color) !important;
    opacity: 0.75 !important;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg2Ni4wMTgzIDI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* TelerikGrid: kompakte Icon-only Aktionen-Spalte */
.grid-actions {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    white-space: nowrap;
}

    .grid-actions .k-button {
        padding: 4px;
        min-width: 32px;
    }

.grid-toolbar-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 13px;
    padding: 4px 10px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #f8fafc;
}

.grid-toolbar-mode-switch-label {
    font-weight: 600;
    color: #334155;
}

.grid-toolbar-mode-switch-buttons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .grid-toolbar-mode-switch-buttons .k-button {
        min-width: 120px;
    }

.buehne-wortmeldeliste-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f5f7fa;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
}

.buehne-wortmeldeliste-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.buehne-wortmeldeliste-title {
    justify-self: center;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
}

.buehne-wortmeldeliste-count {
    justify-self: end;
    font-size: 0.85em;
    color: #666;
    white-space: nowrap;
}


/* Interne Notiz: TextArea soll im TabStrip die volle Höhe nutzen */
.fmhv-notiz-area {
    height: 100%;
}

.fmhv-notiz-textarea {
    height: 100%;
}

    .fmhv-notiz-textarea textarea,
    .fmhv-notiz-textarea .k-input-inner {
        height: 100%;
        resize: none;
        font-family: inherit;
        font-size: var(--fmhv-notiz-schrift, 1rem) !important;
    }

/* Schwebendes Label im Editor (ersetzt separate h4-Zeile, spart Höhe) */
.fmhv-editor-inline-label {
    position: absolute;
    top: 6px;
    left: 10px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.fmhv-notiz-textarea-gelabelt .k-input-inner {
    padding-top: 22px !important;
}

/* Steuerung-Dropdowns (Team/Vortragender) – sichtbarere Darstellung */
.fmhv-steuerung-dd {
    border-color: rgba(0, 0, 0, 0.38) !important;
    background-color: white !important;
}

.fmhv-steuerung-dd:hover {
    border-color: #3b82f6 !important;
    background-color: white !important;
}

.fmhv-steuerung-dd:not(.k-disabled):not(.k-state-disabled) .k-input-inner,
.fmhv-steuerung-dd:not(.k-disabled):not(.k-state-disabled) .k-input-value-text,
.fmhv-steuerung-dd:not(.k-disabled):not(.k-state-disabled) .k-input-button,
.fmhv-steuerung-dd:not(.k-disabled):not(.k-state-disabled) .k-icon,
.fmhv-steuerung-dd:not(.k-disabled):not(.k-state-disabled) .k-svg-icon,
.fmhv-steuerung-dd:not(.k-disabled):not(.k-state-disabled) .k-svg-icon svg {
    color: #1f2937 !important;
    fill: #1f2937 !important;
    opacity: 1 !important;
}

.fmhv-steuerung-edit,
.fmhv-steuerung-edit .k-icon,
.fmhv-steuerung-edit .k-svg-icon,
.fmhv-steuerung-edit .k-svg-icon svg {
    color: #1f2937 !important;
    fill: #1f2937 !important;
    opacity: 1 !important;
}

.fmhv-steuerung-edit:hover {
    background-color: rgba(31, 41, 55, 0.08) !important;
}

/* Export/Import: RadioGroup-Optionen kontrastreicher darstellen */
.fmhv-admin-radio-group .k-radio-item,
.fmhv-admin-radio-group .k-radio-label,
.fmhv-admin-radio-group .k-label,
.fmhv-admin-radio-group label {
    color: #1f2937 !important;
    opacity: 1 !important;
}

.fmhv-admin-radio-group .k-radio:not(:checked) {
    border: 2px solid #64748b !important;
    background-color: #fff !important;
    opacity: 1 !important;
}

.fmhv-admin-radio-group .k-radio:not(:checked):hover {
    border-color: #2563eb !important;
}

/* Erzwingt die konfigurierte Schriftart im TelerikEditorund Readonly-Anzeige */
.fmhv-editor-schriftart .k-editor .k-content,
.fmhv-editor-schriftart .k-editor .k-content * {
    font-family: inherit !important;
}
.fmhv-editor-schriftart span,
.fmhv-editor-schriftart p,
.fmhv-editor-schriftart div {
    font-family: inherit;
}

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

/* FM-HV Hauptmaske Styles */
:root {
    --primary-color: #1a365d;
    --secondary-color: #4a5568;
    --accent-color: #38a169;
    --background-color: #f7fafc;
    --sidebar-width: 320px;
    --header-height: 60px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, 'Segoe UI Emoji', 'Noto Color Emoji', 'Apple Color Emoji';
    background-color: var(--background-color);
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Emoji und Icon Rendering optimieren */
.menu-item-icon,
.admin-card-icon,
.icon-btn,
.stat-label,
.toolbar-label {
    font-family: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    font-style: normal;
    font-weight: normal;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}

.hauptmaske {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header - Z-Index 100 */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-color);
    color: white;
    padding: 0 1rem;
    height: var(--header-height);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-btn, .nav-btn, .icon-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    z-index: 101;
    position: relative;
}

    .menu-btn:hover, .nav-btn:hover, .icon-btn:hover {
        background-color: rgba(255,255,255,0.1);
    }

.logo {
    height: 40px;
    margin-right: 0.5rem;
}

.app-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 1rem;
}

/* Hamburger Menu - Z-Index 1000 (Overlay) und 1001 (Sidebar) */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .menu-overlay.open {
        display: block;
        opacity: 1;
    }

.menu-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: white;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1001;
    overflow-y: auto;
    overflow-x: hidden;
}

    .menu-sidebar.open {
        transform: translateX(0);
    }

.k-splitbar .k-svg-i-caret-alt-down,
.k-splitbar .k-svg-i-caret-alt-up,
.k-splitbar .k-svg-i-caret-alt-left,
.k-splitbar .k-svg-i-caret-alt-right
{
    width: 2rem;
    height: 2rem;
}

.k-splitbar-vertical {
    height: 30px;
}

.k-splitbar-horizontal {
    width: 30px;
}

.menu-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    user-select: none;
}

    .menu-item:hover {
        background-color: #f7fafc;
    }

.menu-item-icon {
    margin-right: 0.75rem;
    font-size: 1.2rem;
    min-width: 1.5rem;
    text-align: center;
}

/* Statistik */
.statistik-box {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.25rem 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    min-width: 80px;
}

.stat-label {
    font-size: 0.7rem;
    opacity: 0.8;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.stat-item.offen {
    border-color: #ff4444;
}

.stat-item.in-arbeit {
    border-color: #ffa500;
}

.search-box input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    width: 200px;
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.btn-redner-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    margin: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

    .btn-redner-add:hover {
        background-color: #2d4a7c;
    }

.redner-block {
    border-bottom: 1px solid #e2e8f0;
}

.redner-header {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    cursor: pointer;
    background-color: #f8fafc;
}

    .redner-header:hover {
        background-color: #edf2f7;
    }

.redner-expand {
    font-size: 0.8rem;
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.redner-count {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin-right: 0.5rem;
}

.redner-name {
    flex: 1;
    font-weight: 500;
}

.btn-frage-add {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
}

    .btn-frage-add:hover {
        background-color: #2d4a7c;
    }

.fragen-liste {
    background-color: white;
}

.frage-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem 0.5rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

    .frage-item:hover {
        background-color: #f7fafc;
    }

    .frage-item.selected {
        background-color: #ebf8ff;
    }

    .frage-item.dragging {
        opacity: 0.5;
    }

    .frage-item.drag-over {
        border-top: 2px solid var(--primary-color);
    }

.frage-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.frage-nummer {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-right: 0.5rem;
    min-width: 40px;
}

.frage-titel {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer {
    margin-top: auto;
    padding: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.btn-ansicht, .btn-admin {
    display: block;
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-ansicht {
    background-color: #e2e8f0;
    color: var(--secondary-color);
}

.btn-admin {
    background-color: var(--primary-color);
    color: white;
}

/* Content Area */
.content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--background-color);
}

.frage-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.toolbar-label {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.btn-edit, .btn-aufteilen, .btn-kategorie {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-aufteilen, .btn-kategorie {
    background-color: var(--background-color);
}

    .btn-edit:hover, .btn-aufteilen:hover, .btn-kategorie:hover {
        background-color: #edf2f7;
    }

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    color: white;
    font-size: 0.8rem;
    margin-left: auto;
}

.ki-box, .ki-vorschlag {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

.ki-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.5rem;
    display: block;
}

.frage-detail {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

    .frage-detail h2 {
        margin: 0 0 1rem 0;
        font-size: 1.25rem;
        color: var(--primary-color);
    }

.frage-text {
    color: var(--secondary-color);
    line-height: 1.6;
}

.antwort-section {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative; /* Fix für Font-Dropdown Positioning */
    overflow: visible; /* Erlaubt Dropdown außerhalb zu erscheinen */
}

.antwort-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0;
}

/* Legacy support - remove this once all references are updated */
.antwort-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

/* Antwort section RichTextEditor integration */
.antwort-section .rich-text-container {
    margin-top: 0;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

    .antwort-section .rich-text-container .format-toolbar {
        border-top: 1px solid #ddd;
    }

select {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 0.85rem;
    background-color: white;
}

.btn-weiter {
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}

    .btn-weiter:hover {
        background-color: #2d4a7c;
    }

.antwort-text {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: none;
    resize: vertical;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
}

    .antwort-text:focus {
        outline: none;
    }

.tabs-section {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

    .tab.active {
        border-bottom: 2px solid var(--primary-color);
        color: var(--primary-color);
        font-weight: 500;
    }

.tab-content {
    padding: 1rem;
}

.notiz-section {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-edit-small {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.notiz-text {
    color: var(--secondary-color);
    margin: 0.5rem 0;
}

.kategorien-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    background-color: #e2e8f0;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.no-selection {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Modal - Z-Index 1500 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1500;
}

.modal {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1501;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

    .modal-close:hover {
        background-color: #f7fafc;
    }

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
}

    .form-input:focus, .form-textarea:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
    }

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

    .checkbox-label input[type="checkbox"] {
        width: 1.25rem;
        height: 1.25rem;
        cursor: pointer;
    }

/* Button Variants */
.btn-primary {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

    .btn-primary:hover {
        background-color: #2d4a7c;
    }

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background-color: #e2e8f0;
    color: var(--secondary-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

    .btn-secondary:hover {
        background-color: #cbd5e0;
    }

.btn-danger {
    padding: 0.75rem 1.5rem;
    background-color: #e53e3e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

    .btn-danger:hover {
        background-color: #c53030;
    }

/* Admin Panel */
.admin-panel {
    padding: 1.5rem;
}

.admin-section {
    margin-bottom: 2rem;
}

.admin-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.admin-card {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

    .admin-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border-color: var(--primary-color);
    }

.admin-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.admin-card-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.admin-card-description {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

/* Timer - Z-Index 200 */
.timer-display {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 200;
}

.timer-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.timer-value {
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.btn-timer-pause, .btn-timer-stop {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

    .btn-timer-pause:hover, .btn-timer-stop:hover {
        background-color: rgba(255,255,255,0.2);
    }

/* QuickSend Panel */
.quicksend-panel {
    padding: 1.5rem;
}

.panel-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.team-card {
    background-color: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

    .team-card:hover {
        border-color: var(--primary-color);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .team-card.selected {
        border-color: var(--primary-color);
        background-color: #ebf8ff;
    }

.team-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.team-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.team-email {
    font-size: 0.75rem;
    color: var(--secondary-color);
}

.message-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}

.button-group {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--secondary-color);
}

    .empty-state p {
        margin-bottom: 1rem;
    }

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.alert-info {
    background-color: #ebf8ff;
    border-left: 4px solid #3182ce;
    color: #2c5282;
}

.alert-success {
    background-color: #f0fff4;
    border-left: 4px solid #38a169;
    color: #22543d;
}

.alert-error {
    background-color: #fff5f5;
    border-left: 4px solid #e53e3e;
    color: #742a2a;
}

/* Preview Styles */
.preview-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0.5rem;
}

.preview-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

    .preview-item:last-child {
        border-bottom: none;
    }

.preview-nummer {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 0.75rem;
    min-width: 60px;
}

.preview-titel {
    color: var(--secondary-color);
}

.frage-info {
    padding: 1rem;
    background-color: #f7fafc;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

.kategorien-select {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.kategorie-checkbox {
    display: none;
}

.kategorie-label {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.kategorie-checkbox:checked + .kategorie-label {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.kategorie-label:hover {
    border-color: var(--primary-color);
}


/* TelerikEditor: Hintergrundfarbe über CSS-Variable (von EditorMitSteuerung gesetzt) */
.k-editor > .k-toolbar {
    background-color: var(--editor-toolbar-bg, #ffffff) !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
}

.k-editor {
    background-color: #ffffff !important;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Print Styles */
@media print {
    .header, .sidebar, .antwort-toolbar, .tabs-section, .notiz-section, .menu-sidebar, .menu-overlay {
        display: none !important;
    }

    .content {
        width: 100% !important;
        max-width: 100% !important;
    }

    .frage-detail {
        page-break-inside: avoid;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 280px;
    }

    .statistik-box {
        gap: 1rem;
    }

    .stat-item {
        min-width: 60px;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        max-height: 40vh;
    }

    .header-center {
        display: none;
    }

    .search-box input {
        width: 150px;
    }

    .menu-sidebar {
        width: 240px;
    }
}
/* Utility Classes */
.mb-3 {
    margin-bottom: 20px;
}

/* ── Messenger Panel ─────────────────────── */
.messenger-panel {
    position: fixed;
    top: 56px;
    right: 0;
    height: calc(100vh - 56px);
    z-index: 2000;
    display: flex;
    align-items: stretch;
    transition: width 0.25s ease;
    font-size: 14px;
}
.messenger-panel.collapsed {
    width: 48px !important;
    overflow: hidden;
}
.messenger-panel.expanded {
    width: var(--messenger-panel-width, 520px);
    min-width: 420px;
    box-shadow: -4px 0 16px rgba(0,0,0,0.15);
}
.messenger-rail {
    width: 48px;
    min-width: 48px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 6px rgba(0,0,0,0.04);
}
.messenger-toggle {
    width: 48px;
    min-width: 48px;
    background: linear-gradient(180deg, #1976D2 0%, #1565C0 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    border-radius: 0;
    margin: 8px 0 0 0;
    height: 48px;
    user-select: none;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0 0 1px rgba(21,101,192,0.15);
    overflow: hidden;
    flex-shrink: 0;
    z-index: 2;
}
.messenger-toggle:hover {
    background: linear-gradient(180deg, #1E88E5 0%, #1565C0 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 0 0 1px rgba(21,101,192,0.2), 0 0 10px rgba(21,101,192,0.18);
}

.messenger-toggle-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.messenger-resize-zone {
    flex: 1;
    width: 48px;
    margin-top: 0;
    background: #ffffff;
    border-right: 1px solid rgba(0,0,0,0.04);
    cursor: ew-resize;
    pointer-events: auto;
    transition: background 0.12s ease, box-shadow 0.12s ease;
    position: relative;
    z-index: 1;
}
.messenger-resize-zone:hover {
    background: #fffbe6;
    box-shadow: inset 0 0 0 1px rgba(214,170,37,0.18);
}

.messenger-toggle .k-svg-icon {
    margin-left: 2px;
    z-index: 1;
}
.messenger-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 16px;
}
.messenger-container {
    display: flex;
    flex: 1;
    background: #fff;
    overflow: hidden;
}
.messenger-sidebar {
    width: 250px;
    min-width: 250px;
    flex-shrink: 0;
    border-right: 1px solid #e0e0e0;
    background: #fafafa;
    display: flex;
    flex-direction: column;
}
.messenger-panel-options {
    padding: 10px 12px;
    border-bottom: 1px solid #e6e6e6;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.messenger-panel-option {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    min-width: 0;
    margin: 0;
    color: #1f2937;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}
.messenger-panel-option span {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}
.messenger-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.messenger-modus-splitter .k-splitter-pane {
    overflow: hidden;
}

.messenger-modus-splitter .k-splitbar-horizontal {
    background: #f8f5ef;
    border-left: 1px solid #e0d8c8;
    border-right: 1px solid #e0d8c8;
}

.messenger-modus-splitter .messenger-sidebar {
    width: 100%;
    min-width: 0;
    height: 100%;
}

.messenger-modus-splitter .messenger-main {
    height: 100%;
    min-height: 0;
}

/* Conversation List */
.msg-conv-list {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.msg-conv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 15px;
}
.msg-conv-items {
    flex: 1;
    overflow-y: auto;
}
.msg-conv-item {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s;
}
.msg-conv-item:hover {
    background: #e3f2fd;
}
.msg-conv-item.active {
    background: #bbdefb;
}
.msg-conv-item-name {
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.msg-conv-item-preview {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.msg-conv-item-time {
    font-size: 11px;
    color: #aaa;
    margin-top: 2px;
}
.msg-conv-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #888;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.msg-badge {
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 16px;
}

/* Chat Area */
.msg-chat-area {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.msg-chat-header {
    padding: 10px 14px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.msg-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.msg-chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: #888;
    gap: 8px;
}
.msg-chat-empty.small {
    padding: 2rem 1rem;
}
.msg-chat-input {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    border-top: 1px solid #e0e0e0;
    align-items: center;
}

.msg-chat-input-field {
    flex: 1;
    min-width: 0;
}

.msg-chat-input-field .k-textbox,
.msg-chat-input-field .k-input,
.msg-chat-input-field .k-input-inner {
    width: 100%;
}

.msg-chat-input-field .k-input-inner {
    font-size: 16px;
}
.msg-loading {
    display: flex;
    justify-content: center;
    padding: 2rem;
}

/* Message Bubbles */
.msg-bubble {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
}
.msg-bubble.own {
    align-self: flex-end;
    background: #1565C0;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.msg-bubble.other {
    align-self: flex-start;
    background: #f0f0f0;
    color: #333;
    border-bottom-left-radius: 4px;
}
.msg-bubble-sender {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.8;
}
.msg-bubble-time {
    font-size: 10px;
    text-align: right;
    margin-top: 4px;
    opacity: 0.6;
}

/* User List (New Chat Dialog) */
.msg-user-list {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}
.msg-user-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13px;
}
.msg-user-item:hover {
    background: #e3f2fd;
}
.msg-user-item.selected {
    background: #bbdefb;
}

/* Ansagen */
.ansagen-anzeige {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: #fff;
}

.ansagen-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid #e6e9ef;
    background: linear-gradient(180deg, #fff8fb 0%, #ffffff 100%);
}

.ansagen-header strong {
    font-size: 15px;
    color: #1f2937;
}

.ansagen-ungelesen-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.ansagen-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
}

.ansagen-loading,
.ansagen-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    color: #64748b;
}

.ansagen-card {
    position: relative;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #e11d48;
    border-radius: 10px;
    background: #ffffff;
    padding: 14px 14px 12px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.ansagen-card.gelesen {
    border-left-color: #94a3b8;
    background: #f8fafc;
    opacity: 0.88;
}

.ansagen-card.eigene {
    border-left-color: #2563eb;
}

.ansagen-card-neu-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.ansagen-card-absender {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ansagen-card-absender strong {
    font-size: 15px;
    color: #111827;
}

.ansagen-card-zeit {
    font-size: 12px;
    color: #6b7280;
}

.ansagen-card-text {
    font-size: 20px;
    line-height: 1.45;
    color: #111827;
    white-space: pre-wrap;
    word-break: break-word;
}

.ansagen-card-lesestatus {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #d1d5db;
}

.ansagen-lesestatus-item {
    font-size: 12px;
    color: #475569;
}

.ansagen-gelesen-btn {
    margin-top: 12px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.ansagen-gelesen-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.ansagen-gelesen-btn:active {
    transform: translateY(1px);
}

.status-gelesen {
    color: #15803d;
    font-weight: 700;
}

.status-angezeigt {
    color: #b45309;
    font-weight: 700;
}

.status-ausstehend {
    color: #64748b;
    font-weight: 600;
}

.ansagen-input {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px 14px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.ansagen-input-field {
    flex: 1;
    min-width: 0;
}

.buehne-ansagen-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 42px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
}

.buehne-ansagen-btn:hover {
    background: #f8fafc;
}

.buehne-ansagen-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

/* ── Responsive Wortmeldeliste ───────────────────────────── */

/* Floating Toggle Button – erscheint nur bei viewport-short */
.wortmeldeliste-toggle {
    position: fixed;
    left: 0;
    top: 64px;
    width: 40px;
    height: 40px;
    background: #1565C0;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    z-index: 1000;
    box-shadow: 2px 0 6px rgba(0,0,0,0.15);
    border: none;
    padding: 0;
    transition: left 0.2s ease;
}
.wortmeldeliste-toggle:hover {
    background: #0d47a1;
}

/* ── Viewport Short (< 650px hoch) ───────────────────────── */
/* Linke Pane wird per Conditional Rendering aus dem Splitter entfernt, */
/* daher hier keine CSS-Manipulation der Splitter-Panes mehr nötig.     */
body.viewport-short .wortmeldeliste-toggle {
    display: flex;
}
body.viewport-short .wortmeldeliste-toggle.wortmeldeliste-offen {
    left: 300px;
}

/* Wortmeldeliste-Overlay bei viewport-short */
body.viewport-short .wortmeldeliste-overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 56px; /* unter der Toolbar */
    width: 300px;
    max-width: 85vw;
    height: calc(100dvh - 56px);
    z-index: 999;
    background: #fff;
    box-shadow: 2px 0 12px rgba(0,0,0,0.2);
    overflow-y: auto;
}
body.viewport-short .wortmeldeliste-overlay.offen {
    display: block;
}

/* ── Viewport Tall (≥ 650px hoch, < 900px breit) ────────── */
body.viewport-tall .hauptmaske-telerik > .k-splitter {
    flex-direction: column !important;
}
body.viewport-tall .k-splitter-pane {
    width: 100% !important;
    max-width: 100% !important;
}
body.viewport-tall .wortmeldeliste-toggle {
    display: none;
}
