/* Schriftgröße CSS-Variable – wird per JS-Interop sofort gesetzt */
:root {
    --app-schriftgroesse: 14px;
}

.content {
    font-size: var(--app-schriftgroesse);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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;
    }


/* 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 {
        height: 100%;
        resize: none;
        font-family: inherit;
    }

/* 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;
}

/* Erzwingt die konfigurierte Schriftart im TelerikEditor und 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;
}
