@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --primary-blue: #0099CC;
    --dark-blue: #1a2332;
    --darker-blue: #13171f;
    --darkest-blue: #0d1117;
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --border-color: #30363d;
    --hover-bg: #21262d;
    --button-primary: #0099CC;
    --button-hover: #0088bb;
    --danger-red: #da3633;
    --success-green: #238636;
}

body {
    font-family: "Montserrat", sans-serif;
	font-weight: 100;
	font-style: normal;
    background: #19152f;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}


/* ==========================================
   TOAST NOTIFICATION SYSTEM
   ========================================== */

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.notification-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    max-width: 450px;
    padding: 16px 20px;
    background-color: #161324;
    pointer-events: all;
    opacity: 0;
    transform: translateX(450px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-toast.hide {
    opacity: 0;
    transform: translateX(450px);
}

.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}

.notification-message {
    flex: 1;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    color: #fff;
}

/* Toast Typen */
.notification-toast.notification-success {
    background-color: #182c1c;
}

.notification-toast.notification-error {
    background-color: #351a1a;
}

.notification-toast.notification-warning {
    background-color: #46380b;
}

.notification-toast.notification-info {
    background-color: #1d263f;
}

/* ===== Login Page ===== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.login-box {
    background: #221e34;
    border: 0px solid var(--border-color);
    padding: 48px 40px;
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); */
}

.logo-section {
    text-align: center;
    margin-bottom: 32px;
}

.logo-section .logo {
    width: 350px;
    height: 125px;
    margin-bottom: 0px;
}

.logo-section h1 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

.login-box h2 {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.warning-text {
    text-align: center;
    font-size: 15px;
    color: #e27e7e;
    margin-bottom: 32px;
    line-height: 1.5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form input {
    width: 100%;
    padding: 14px 16px;
    background: #19152f;
	border: 0px solid var(--border-color);
    color: #fff;
	font-family: "Montserrat", sans-serif;
	font-weight: 300;
	font-style: normal;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    background: #19152f;
}

.login-form input::placeholder {
    color: var(--text-muted);
}

.login-btn {
    width: 100%;
    padding: 14px 16px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn {
    background: #19152f;
    color: white;
	font-family: "Montserrat", sans-serif;
	font-weight: 600;
	font-style: normal;
}

.login-btn:hover {
    background: #19152f;
}

/* ===== Dashboard Layout ===== */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
    width: 280px;
    background: #221e34;
    border-right: 1px solid #595959;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px 30px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #595959;
}

.sidebar-logo {
    width: 225px;
    height: 80px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    display: flex;           /* NEU */
    flex-direction: column;  /* NEU */
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
	font-family: "Montserrat", sans-serif;
	font-weight: 200;
	font-style: normal;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: #19152f;
    color: #fff;
}

.nav-item.active {
    background: #19152f;
    color: #fff;
}

.nav-icon {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

.nav-item.active .nav-icon {
    opacity: 1;
}

.sidebar-footer {
    border-top: 1px solid #595959;
    padding: 16px 0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #fff;
    font-size: 14px;
}

.user-avatar {
    width: 32px;
    height: 32px;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 48px;
    max-width: 1400px;
}

.content-header {
    margin-bottom: 32px;
}

.content-header h2 {
    font-size: 32px;
	font-family: "Montserrat", sans-serif;
	font-style: normal;
    font-weight: 600;
    color: var(--text-primary);
}

.welcome-section {
    text-align: center;
    margin-bottom: 48px;
    padding: 64px 0;
}

.main-logo {
    width: 500px;
    height: 175px;
}

.info-box {
    background: #221e34;
    padding: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.info-box p {
    margin-bottom: 16px;
    color: #fff;
	font-family: "Montserrat", sans-serif;
	font-weight: 200;
	font-style: normal;
    font-size: 15px;
    line-height: 1.7;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* ===== Tables ===== */
.table-container {
    background: #221e34;
    overflow: visible; /* WICHTIG: Kein Clipping */
    margin-bottom: 24px;
    position: relative;
}

.members-table,
.settings-table {
    width: 100%;
    border-collapse: collapse;
    position: relative;
	font-family: "Montserrat", sans-serif;
    font-weight: 200;
}

.members-table thead,
.settings-table thead {
    background: #221e34;
    border-bottom: 1px solid #595959;
    position: sticky;
    top: 0;
    z-index: 10;
}

.members-table tbody,
.settings-table tbody {
    position: relative;
}

.members-table tbody tr,
.settings-table tbody tr {
    position: relative;
}

.members-table tbody td:last-child,
.settings-table tbody td:last-child {
    position: static; /* Wichtig! */
}

.members-table th,
.settings-table th {
    padding: 16px;
    text-align: left;
	font-family: "Montserrat", sans-serif;
	font-weight: 600;
	font-style: normal;
    font-size: 14px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.members-table td,
.settings-table td {
    padding: 16px;
    font-size: 14px;
}

.members-table tr:hover,
.settings-table tr:hover {
    background: #19152f;
}

/* ===== VERBESSERTE ACTION MENU STYLES ===== */

/* Action Menu Container - muss relative positioning haben */
.action-menu {
    position: relative;
    display: inline-block;
}

/* Action Button */
.action-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    line-height: 1;
}

.action-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

/* Action Dropdown */
.action-dropdown {
    display: none;
    position: fixed;
    background: #161324;
    min-width: 180px;
    max-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 99999;
    width: auto;
}

.action-dropdown.show {
    display: block;
    animation: dropdownFadeIn 0.15s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown Buttons */
.action-dropdown button {
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: #fff;
    text-align: left;
    font-family: "Montserrat", sans-serif;
    font-weight: 200;
    font-style: normal;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: block;
    border-bottom: 1px solid transparent;
}

.action-dropdown button:hover {
    background: #221e34;
    color: #fff;
}

.action-dropdown button:last-child {
    border-bottom: none;
}

/* Responsiveness für kleine Bildschirme */
@media (max-width: 768px) {
    .action-dropdown {
        min-width: 160px;
        max-width: 180px;
    }
    
    .action-dropdown button {
        padding: 12px 14px;
        font-size: 15px;
    }
}

/* Sicherstellen dass Tabelle kein Overflow hat */
.table-container {
    overflow: visible;
    position: relative;
}

.members-table,
.settings-table {
    position: relative;
}

.members-table tbody tr,
.settings-table tbody tr {
    position: relative;
}

.members-table tbody td:last-child,
.settings-table tbody td:last-child {
    position: static;
    overflow: visible;
}

/* ===== Training/Meeting Cards ===== */
.trainings-grid,
.meetings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(305px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.training-card,
.meeting-card {
    background: #221e34;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.training-card:hover,
.meeting-card:hover {
    background-color: #19152f;
}

.training-icon,
.meeting-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
    filter: brightness(0.9);
}

.training-card h3,
.meeting-card h3 {
	font-family: "Montserrat", sans-serif;
    font-style: normal;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.training-card p,
.meeting-card p {
    color: #fff;
	font-family: "Montserrat", sans-serif;
    font-weight: 200;
    font-style: normal;
    font-size: 14px;
}

.add-card {
    background: transparent;
	background-color: #221e34;
}

.add-card:hover {
    background-color: #19152f;
}

.training-card.sortable {
    cursor: move;
    position: relative;
    transition: all 0.2s ease;
}

.training-card.drag-over {
    border: 1px dashed #fff;
    background: #19152f;
}

.training-card .drag-handle {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 20px;
    color: #fff;
    cursor: grab;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.training-card .drag-handle:active {
    cursor: grabbing;
}

.training-card.sortable:hover .drag-handle {
    opacity: 1;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.content-header h2 {
    margin: 0;
}

/* Google Docs Einbettung im Editor */
.editor-content .google-docs-embed {
    margin: 16px 0;
    overflow: hidden;
    background: #161324;
}

.editor-content .google-docs-embed iframe {
    width: 100%;
    border: none;
    display: block;
}

/* Google Docs Einbettung in der Ansicht (training-description, meeting-content) */
.training-description .google-docs-embed,
.meeting-content .google-docs-embed {
    margin: 16px 0;
    overflow: hidden;
    background: #161324;
}

.training-description .google-docs-embed iframe,
.meeting-content .google-docs-embed iframe {
    width: 100%;
    border: none;
    display: block;
}

/* Google Docs Button im Toolbar */
.editor-btn[data-cmd="googleDocs"] {
    font-size: 16px;
    background: #221e34;
    color: #fff;
}

/* Google Docs Modal Anpassungen */
#googleDocsModal .modal-content {
    max-width: 600px;
}

#googleDocsModal .form-group input[type="text"],
#googleDocsModal .form-group input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    background: #221e34;
    border: 1px solid #00000000;
    color: #fff;
    font-size: 14px;
    font-family: "Montserrat", sans-serif;
}

#googleDocsModal .form-group input:focus {
    outline: none;
}

/* ===== Modals ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #161324;
    max-width: 1100px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #161324;
}

.modal-content h3 {
	font-family: "Montserrat", sans-serif;
	font-style: normal;
    font-size: 24px;
    font-weight: 600;
    padding: 0px 24px 0;
    color: #fff;
}

.modal-body {
    padding: 36px;
    display: flex;
    gap: 24px;
}

/* ===== Member Modal ===== */
.member-modal .modal-body {
    flex-direction: row;
}

.profile-avatar {
    text-align: center;
}

.avatar-large {
    width: 120px;
    height: 120px;
}

.avatar-xlarge {
    width: 175px;
    height: 175px;
}

.profile-form {
    flex: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 13px;
	font-family: "Montserrat", sans-serif;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    background: #221e34;
    border: 1px solid #00000000;
    color: #fff;
    font-size: 14px;
    font-family: "Montserrat", sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-section label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upload-box {
    width: 120px;
    height: 120px;
    border: 0px dashed #595959;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-box:hover {
    background: rgba(0, 153, 204, 0.05);
}

.upload-icon {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.modal-tab {
    transition: all 0.3s ease;
}

.modal-tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.modal-tab.active {
   	background-color: #221e34;
    font-weight: 400 !important;
}

.member-tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Empty State */
.trainings-completion-list p {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 40px;
}

/* Scrollbar für die Liste */
.trainings-completion-list::-webkit-scrollbar {
    width: 8px;
}

.trainings-completion-list::-webkit-scrollbar-track {
    background: #19152f;
}

.trainings-completion-list::-webkit-scrollbar-thumb {
    background: #221e34;
    border-radius: 4px;
}

.trainings-completion-list::-webkit-scrollbar-thumb:hover {
    background: #2a2640;
}


/* ===== Training/Meeting Modals ===== */
.training-modal .modal-body,
.meeting-modal .modal-body {
    flex-direction: row;
    align-items: flex-start;
}

.training-icon-large,
.meeting-icon-large {
    text-align: center;
    min-width: 180px;
}

.training-icon-large img,
.meeting-icon-large img {
    width: 120px;
    height: 120px;
    margin-bottom: 16px;
}

.training-icon-large label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-top: 16px;
}

.training-details,
.meeting-details {
    flex: 1;
}

.training-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.info-item label {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.info-item p {
    font-size: 16px;
    color: #fff;
}

.training-description,
.meeting-content {
    background: #221e34;
    padding: 16px;
    margin: 24px 0;
    color: #fff;
    line-height: 1.7;
    font-size: 14px;
}

/* Formatierung für Inhalte in training-description und meeting-content */
.training-description strong,
.meeting-content strong,
.training-description b,
.meeting-content b {
    font-weight: 700;
    color: #fff;
}

.training-description em,
.meeting-content em,
.training-description i,
.meeting-content i {
    font-style: italic;
}

.training-description u,
.meeting-content u {
    text-decoration: underline;
}

.training-description h1,
.meeting-content h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 16px 0 8px 0;
    color: #fff;
}

.training-description h2,
.meeting-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 14px 0 7px 0;
    color: #fff;
}

.training-description h3,
.meeting-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 12px 0 6px 0;
    color: #fff;
}

.training-description ul,
.meeting-content ul,
.training-description ol,
.meeting-content ol {
    margin: 12px 0;
    padding-left: 32px;
    color: #fff;
}

.training-description li,
.meeting-content li {
    margin: 6px 0;
    line-height: 1.6;
}

.training-description p,
.meeting-content p {
    margin: 8px 0;
}

.training-description a,
.meeting-content a {
    color: #fff;
    text-decoration: underline;
}

.training-description blockquote,
.meeting-content blockquote {
    padding-left: 16px;
    margin: 16px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.training-creator {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #fff;
    margin-top: 16px;
    padding-top: 12px;
    font-family: "Montserrat", sans-serif;
}

.meeting-attendance {
    margin: 24px 0;
}

.meeting-attendance label {
    font-size: 16px;
    font-weight: 600;
    color:#fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 12px;
}

.meeting-attendance ul {
    list-style: none;
    padding: 0;
}

.meeting-attendance li {
    padding: 0px 0;
    color: #fff;
    font-size: 14px;
}

/* ===== Buttons ===== */
/* ===== Button Varianten ===== */
.btn-primary,
.btn-danger,
.add-btn {
    padding: 12px 24px;
    border: none;
    font-family: "Montserrat", sans-serif;
    background-color: #19152f;
    color: white;
    font-weight: 200;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #221e34;
}

/* Spezielle Sortier-Button Styles */
.btn-sort {
    padding: 12px 24px;
    border: none;
    font-family: "Montserrat", sans-serif;
    background-color: #19152f;
    color: white;
    font-weight: 200;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-sort {
    background-color: #221e34;
}

.btn-sort:hover {
    background-color: #19152f;
}

.btn-sort.save-mode {
    background-color: #238636;
    font-weight: 400;
}

.btn-sort.save-mode:hover {
    background-color: #2ea043;
}

.btn-success {
    background: #238636 !important;
    font-weight: 400 !important;
}

.btn-success:hover {
    background: #2ea043 !important;
}

.btn-primary:hover {
    background-color: #19152f;
}

.btn-primary-2 {
    background-color: #19152f;
    color: white;
}

.btn-primary-2:hover {
    background-color: #19152f;
}

.btn-danger {
    background: var(--danger-red);
    color: white;
}

.btn-danger:hover {
    background: #c62828;
    transform: translateY(-1px);
}

.add-btn {
    width: 100%;
    margin-top: 16px;
}

/* ===== Logout  ===== */

.nav-item-logout {
    margin-top: auto !important;
    padding-top: 16px !important;
}

.nav-item-logout:hover {
    background: #19152f !important;  /* Rötlicher Hover-Effekt */
    color: #fff !important;
}

/* ===== Settings Page ===== */
.settings-container {
    display: flex;
    gap: 24px;
    background: #221e34;
    overflow: hidden;
}

.settings-sidebar {
    width: 280px;
    background: #221e34;
    border-right: 1px solid #595959;
    padding: 24px 0;
}

.settings-header {
    padding: 0 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #595959;
}

.settings-icon {
    width: 32px;
    height: 32px;
}

.settings-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.settings-nav {
    padding: 16px 0;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 200;
    transition: all 0.2s ease;
}

.settings-nav-item:hover {
    background-color: #19152f;
    color: #fff;
}

.settings-nav-item.active {
    background-color: #19152f;
    color: #fff;
}

.settings-nav-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.settings-content {
    flex: 1;
    padding: 24px;
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .main-content {
        margin-left: 240px;
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
        padding: 24px;
    }
    
    .dashboard {
        flex-direction: column;
    }
    
    .trainings-grid,
    .meetings-grid {
        grid-template-columns: 1fr;
    }

	.form-group full-width {
		background-color: #221e34;
        grid-template-columns: 1fr;
		padding: 14px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .settings-container {
        flex-direction: column;
    }
    
    .settings-sidebar {
        width: 100%;
    }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #221e34;
}

::-webkit-scrollbar-thumb {
    background: #19152f;
}

::-webkit-scrollbar-thumb:hover {
    background: #221e34;
}

/* ===== Additional Utility Classes ===== */
.text-center {
    text-align: center;
}

.mt-24 {
    margin-top: 24px;
}

.mb-24 {
    margin-bottom: 24px;
}

.hidden {
    display: none;
}


/* ===== Rich Text Editor ===== */
.editor-toolbar {
    display: flex;
    gap: 4px;
    padding: 8px;
    background-color: #221e34;
    border-bottom: 1px solid #595959;
    flex-wrap: wrap;
}

.editor-btn {
    min-width: 32px;
    height: 32px;
    padding: 4px 8px;
    background-color: #221e34;
    border: 1px solid #00000000;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.editor-btn:hover {
    background: #19152f;
}

.editor-btn.active {
    background: #19152f;
    color: #fff;
}

/* BLAUER H4-BUTTON (Normal) */
.editor-btn[data-cmd="normal"] {
    color: #fff !important;
    font-weight: 700;
}

.editor-btn[data-cmd="normal"]:hover {
    background: #19152f;
    color: #fff !important;
}

.editor-btn[data-cmd="normal"].active {
    background: #19152f;
    color: #fff !important;
}

.editor-separator {
    width: 1px;
    height: 24px;
    background: #595959;
    margin: 4px 4px;
}

.editor-content {
    min-height: 150px;
    max-height: 400px;
    overflow-y: auto;
    padding: 12px;
    background: #221e34;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    outline: none;
}

.editor-content:focus {
    border-color: #00000000;
}

.editor-content[contenteditable="true"]:empty:before {
    content: attr(data-placeholder);
    color: var(--text-secondary);
}

/* Rich Text Formatting */
.editor-content strong {
    font-weight: 700;
}

.editor-content em {
    font-style: italic;
}

.editor-content u {
    text-decoration: underline;
}

.editor-content h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 16px 0 8px 0;
}

.editor-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 14px 0 7px 0;
}

.editor-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 12px 0 6px 0;
}

.editor-content ul,
.editor-content ol {
    margin: 8px 0;
    padding-left: 24px;
}

.editor-content li {
    margin: 4px 0;
}

.editor-content a {
    color: #fff;
    text-decoration: underline;
}

.editor-content p {
    margin: 8px 0;
}

.editor-content code {
    background: rgba(41, 98, 255, 0.1);
    padding: 2px 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.editor-content blockquote {
    padding-left: 12px;
    margin: 12px 0;
    color: #fff;
    font-style: italic;
}

/* ==========================================
   REGULATIONS STYLES
   Diese Styles in styles.css einfügen
   ========================================== */

/* Regulation Content Styling */
.regulation-content {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    line-height: 1.8;
    color: #fff;
}

.regulation-content h2 {
    color: #0099CC;
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.5em;
    font-weight: 600;
}

.regulation-content h3 {
    color: #00AADD;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: 500;
}

.regulation-content h4 {
    color: #00BBEE;
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 1.1em;
    font-weight: 500;
}

.regulation-content p {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.regulation-content ul,
.regulation-content ol {
    margin-left: 24px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.regulation-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.regulation-content strong {
    color: #fff;
    font-weight: 600;
}

.regulation-content em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
}

.regulation-content code {
    background: rgba(0, 153, 204, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #0099CC;
}

.regulation-content blockquote {
    border-left: 4px solid #0099CC;
    padding-left: 16px;
    margin: 16px 0;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* Modal Header Styling für Regulations */
.modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header .modal-icon {
    width: 48px;
    height: 48px;
    filter: brightness(0) invert(1);
}

.modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.5em;
}

.modal-meta {
    display: flex;
    gap: 24px;
    margin-top: 8px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
}

.modal-meta strong {
    color: rgba(255, 255, 255, 0.9);
}

/* Modal Actions (Buttons unten) */
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Clickable Table Rows */
.settings-table tbody tr {
    cursor: default;
}

.settings-table tbody tr td[onclick] {
    cursor: pointer;
}

.settings-table tbody tr:hover td[onclick] {
    background: rgba(0, 153, 204, 0.05);
}

/* ==========================================
   BERECHTIGUNGSSYSTEM - Minimales CSS
   Füge dies am Ende von styles.css ein
   ========================================== */

/* Permissions Styling */
.permissions-container {
    /* Kein extra Scrollbar styling - nutzt System-Scrollbar */
}

.permission-category {
    margin-bottom: 20px;
}

.permission-category-title {
    font-size: 13px;
    font-weight: 400;
    color: #fff;
    opacity: 0.9;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #595959;
}

.permission-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.permission-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
}

.permission-label {
    flex: 1;
    font-size: 13px;
    color: #fff;
    font-weight: 200;
}

.permission-actions {
    display: flex;
    gap: 16px;
}

.permission-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 12px;
    color: #fff;
    font-weight: 200;
    opacity: 0.7;
}

.permission-checkbox:hover {
    opacity: 1;
}

/* Custom Checkbox - Größer und anpassbar */
.permission-checkbox input[type="checkbox"] {
    /* Verstecke Standard-Checkbox */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
    /* Größe - HIER KANNST DU DIE GRÖSSE ANPASSEN */
    width: 20px;
    height: 20px;
    
    /* Farben - HIER KANNST DU DIE FARBEN ANPASSEN */
    background: #221e34;
    
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin: 0;
    flex-shrink: 0;
}

.permission-checkbox input[type="checkbox"]:hover {
    /* Hover-Farbe - HIER ANPASSEN */
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.permission-checkbox input[type="checkbox"]:checked {
    /* Checked-Farbe - HIER ANPASSEN */
    background: #221e34;
    border-color: #221e34;
}

.permission-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    
    /* Haken-Position - bei Größenänderung anpassen */
    left: 6px;
    top: 2px;
    
    /* Haken-Größe - bei Größenänderung anpassen */
    width: 5px;
    height: 10px;
    
    /* Haken-Farbe - HIER ANPASSEN */
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.permission-actions-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #595959;
}

/* Drag Handle für Settings */
.drag-handle {
    cursor: grab;
    user-select: none;
    font-size: 18px;
    color: #fff;
    opacity: 0.5;
}

.drag-handle:active {
    cursor: grabbing;
}