/* FONT DEFINITIONS */
@font-face {
  font-family: 'Bogart';
  src: url('../fonts/woff2/Bogart-Light-trial.woff2') format('woff2'),
       url('../fonts/woff/Bogart-Light-trial.woff') format('woff'),
       url('../fonts/ttf/bogart-trial/Bogart-Light-trial.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Champagne';
  src: url('../fonts/woff2/Champagne_Limousines-Thick.woff2') format('woff2'),
       url('../fonts/woff/Champagne_Limousines-Thick.woff') format('woff'),
       url('../fonts/ttf/Champagne__amp__Limousines/Champagne_Limousines-Thick.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
    --primary: #451067;
    --secondary: #FCDE67;
    --tertiary: #E85E00;
    --bg: #1d0b2b; /* Deep Corporate Purple */
    --card: #FFFFFF;
    --text: #1F2937;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;

    /* Font Families */
    --font-display: 'Champagne', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Champagne', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary);
    background: var(--surface-card); /* Einheitliches Violett: #27133e */
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-display);
}

.container { max-width: 1000px; margin: 40px auto; padding: 0 20px; }

/* Header */
.navbar {
    background: var(--card);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.logo { font-weight: bold; font-size: 1.2rem; }

/* Search Panel */
.search-panel {
    background: var(--card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}
.search-panel h1 { margin-top: 0; font-size: 1.5rem; }

.search-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
    margin-top: 20px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #6B7280;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box; 
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 13px 24px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:hover { opacity: 0.9; }

/* Timeline */
.results-hidden { display: none; }
.legend-box { margin-top: 20px; font-size: 0.9rem; color: #666; }
.dot { height: 10px; width: 10px; border-radius: 50%; display: inline-block; }
.available { background: var(--success); }
.blocked { background: var(--danger); opacity: 0.5; }
.travel { background: var(--secondary); }

.timeline-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-top: 20px;
    overflow-x: auto;
}

.timeline-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #6B7280;
}

.timeline-track {
    position: relative;
    height: 70px;
    background-color: #f3f4f6;
    border-radius: 8px;
    width: 100%;
    margin-top: 5px;
}

.time-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #9CA3AF;
    padding: 0 5px;
}

/* Timeline Blocks */
.time-block {
    position: absolute;
    height: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
    overflow: hidden;
    white-space: nowrap;
}

.block-free {
    background-color: var(--success);
    border: 2px dashed rgba(255,255,255,0.8);
    cursor: pointer;
    z-index: 10;
}
.block-free:hover {
    transform: scaleY(1.1);
    background-color: #059669;
    z-index: 20;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Ausgewählte Slots */
.block-selected {
    background-color: var(--primary) !important;
    border: 2px solid var(--tertiary) !important;
    box-shadow: 0 0 0 3px rgba(69, 16, 103, 0.3);
    z-index: 15;
}

.block-selected:hover {
    opacity: 0.9;
    transform: scaleY(1.05);
}

/* Cursor für freie Slots */
.block-free {
    cursor: pointer;
}

/* Während des Drag-Vorgangs */
body.dragging {
    cursor: crosshair !important;
    user-select: none;
}

body.dragging .block-free {
    cursor: crosshair !important;
}

.block-blocked {
    background-color: var(--danger);
    opacity: 0.7;
}
/* MODAL STYLES */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); /* Dunkler Hintergrund */
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(3px); /* Schicker Unschärfe-Effekt */
}

.modal-content {
    background: white;
    width: 90%; max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header {
    background: #f8f9fa; padding: 15px 25px; border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h2 { margin: 0; font-size: 1.2rem; color: #333; }
.close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #999; }

.modal-body { padding: 25px; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 0.85rem; color: #555; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group select {
    width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 1rem; box-sizing: border-box;
}

.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }

.price-preview {
    background: #e0f2fe; color: #0369a1; padding: 15px; border-radius: 8px; text-align: center; margin-top: 20px;
}

.modal-footer {
    padding: 15px 25px; border-top: 1px solid #eee; background: #f8f9fa;
    display: flex; justify-content: flex-end; gap: 10px;
}

.btn-secondary {
    background: white; border: 1px solid #ccc; color: #666; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-weight: bold;
}
.btn-secondary:hover { background: #f1f1f1; }

.btn-retry {
    background: var(--secondary);
    color: var(--text);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.2s;
}
.btn-retry:hover { opacity: 0.85; }

/* PROJECT DETAILS MODAL */
.project-details-modal {
    max-width: 560px;
}

.project-details-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.project-details-status,
.project-details-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.project-details-status {
    background: #f3f4f6;
    color: #374151;
}

.project-details-status.status-planning {
    background: rgba(69, 16, 103, 0.12);
    color: var(--primary);
}

.project-details-status.status-progress {
    background: rgba(232, 94, 0, 0.15);
    color: var(--tertiary);
}

.project-details-status.status-done {
    background: rgba(252, 222, 103, 0.35);
    color: #7a6600;
}

.project-details-tag {
    background: rgba(0, 0, 0, 0.06);
    color: #374151;
}

.project-details-list {
    display: grid;
    gap: 10px;
}

.project-details-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px;
    align-items: start;
}

.project-details-item__label {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.85rem;
}

.project-details-item__value {
    color: var(--text);
    font-size: 0.95rem;
    word-break: break-word;
}

.project-details-members {
    margin-top: 16px;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.project-details-members__title {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.project-details-members__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-details-member {
    background: #f3f4f6;
    color: #374151;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* TEAM MEMBER MODAL */
.member-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
    padding: 4px 2px;
}
.member-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fafafa;
}
.member-option input { width: auto; }
.member-initials,
.member-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #4b5563;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    overflow: hidden;
}
.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.member-name {
    font-size: 0.9rem;
    color: #333;
}
.member-card__meta {
    text-align: center;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.member-card__action {
    margin-top: 8px;
    background: transparent;
    border: 1px solid #E2E8F0;
    color: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.member-card__action:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(69, 16, 103, 0.15);
}

/* SETTINGS AVATAR */
.settings-avatar-row {
    display: flex;
    align-items: center;
    gap: 15px;
}
.settings-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #4b5563;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    overflow: hidden;
    cursor: pointer;
}
.settings-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
.settings-avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.settings-avatar-hint {
    font-size: 0.75rem;
    color: #888;
}

/* AVATAR CROPPER */
.avatar-cropper-modal {
    max-width: 720px;
}
.avatar-cropper-layout {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}
.avatar-cropper-preview {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e7eb;
    border: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
}
.avatar-cropper-preview canvas {
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
}
.avatar-cropper-preview canvas.is-dragging {
    cursor: grabbing;
}
.avatar-cropper-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 220px;
}
.avatar-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #444;
}
.avatar-quality-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}
.avatar-quality-row.is-disabled {
    opacity: 0.5;
}
.avatar-cropper-hint {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    max-width: 240px;
}

/* CHAT SUBCHANNELS */
#chat-subchannels {
    display: none;
}
.nav-item.active #chat-subchannels {
    display: block;
}
.chat-subchannels {
    margin-top: 5px;
    padding-left: 30px;
}
.chat-subchannel {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    color: #999;
    cursor: pointer;
}
.chat-subchannel.active {
    color: var(--primary);
    font-weight: bold;
}
.chat-subchannel.is-loading {
    color: #bdbdbd;
    cursor: default;
}
.chat-subchannel-lock {
    font-size: 0.7em;
    color: #9ca3af;
}
.chat-subchannel-delete {
    display: none;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 2px 4px;
    margin-left: auto;
    font-size: 0.8em;
    line-height: 1;
    border-radius: 3px;
    transition: color 0.15s, background 0.15s;
}
.chat-subchannel:hover .chat-subchannel-delete {
    display: inline-block;
}
.chat-subchannel-delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}
.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-topic-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
}
.chat-topic-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 25px;
    border-bottom: 1px solid #eee;
    background: #fff;
    flex-wrap: wrap;
}
.chat-topic-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.chat-topic-input {
    flex: 1;
    min-width: 180px;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.9rem;
}
.chat-topic-create,
.chat-topic-cancel {
    padding: 8px 14px;
    font-size: 0.85rem;
}
.chat-topic-members {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-topic-label {
    font-size: 0.8rem;
    font-weight: bold;
    color: #666;
}
.chat-topic-hint {
    font-size: 0.8rem;
    color: #888;
}
.chat-topic-error {
    width: 100%;
    color: #b45309;
    font-size: 0.85rem;
    padding-left: 4px;
}
.btn-danger {
    background-color: var(--danger);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}
.btn-danger:hover {
    opacity: 0.9;
}
/* Damit man sieht, dass man Buchungen bearbeiten kann */
.time-block[onclick^="confirmDelete"]:hover {
    background-color: #EF4444 !important; /* Wird Rot beim Hovern */
    color: white !important;
    transform: scale(1.05);
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* New Profile Modal Styles */
.profile-content {
    max-width: 700px;
    width: 90%;
    border-radius: 12px;
    background: white;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.profile-header-area {
    display: flex;
    gap: 20px;
    padding: 20px 25px;
    align-items: center;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.profile-info-text {
    flex: 1;
}

.profile-info-text h2 {
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    color: var(--primary);
}

.profile-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-bio-area {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.profile-bio-area h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary);
}

.profile-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.profile-actions {
    padding: 15px 25px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8f9fa;
}

.profile-actions .btn-primary, .profile-actions .btn-secondary {
    padding: 10px 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .profile-header-area {
        flex-direction: column;
        text-align: center;
    }
    .profile-image {
        width: 80px;
        height: 80px;
    }
    .profile-info-text h2 {
        font-size: 1.5rem;
    }
    .profile-description {
        font-size: 0.9rem;
    }
    .profile-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Filter Bar Anpassung */
.filter-bar { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; background: #fff; padding: 20px; border-bottom: 1px solid #eee; }
.filter-group label { font-size: 0.8rem; font-weight: bold; display: block; margin-bottom: 5px; color: #555; }
.checkbox-group { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; cursor: pointer; }
.checkbox-group input { width: auto; }

/* Modal Anpassungen */
.profile-content { max-width: 800px; width: 90%; padding: 0; display: flex; flex-direction: column; }
.close-btn-abs { position: absolute; right: 20px; top: 15px; background: none; border: none; font-size: 2rem; cursor: pointer; z-index: 10; color: #333; }

.profile-layout { display: grid; grid-template-columns: 320px 1fr; min-height: 500px; }

/* Linke Spalte */
.profile-image-col { background: #f3f4f6; position: relative; padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 5px; }

/* Rechte Spalte */
.profile-info-col { padding: 30px; display: flex; flex-direction: column; gap: 15px; overflow-y: auto; max-height: 80vh; }
.profile-info-col h2 { margin: 0; font-size: 2rem; color: var(--primary); }
.voice-desc { font-size: 1.1rem; color: #666; font-style: italic; }
.bio-box { background: #fafafa; padding: 15px; border-radius: 8px; font-size: 0.95rem; line-height: 1.5; color: #444; }

/* Audio Player Style */
.demo-section h4 { margin-bottom: 10px; border-bottom: 2px solid #eee; padding-bottom: 5px; }
.audio-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; background: #fff; border: 1px solid #eee; padding: 10px; border-radius: 8px; }
.audio-row span { font-weight: bold; font-size: 0.9rem; }
audio { height: 35px; width: 200px; }

/* Footer Button */
.full-width { width: 100%; margin-top: auto; padding: 15px; font-size: 1.1rem; }

/* Mobile Responsiveness */
@media (max-width: 700px) {
    .profile-layout { grid-template-columns: 1fr; }
    .profile-image-col { height: auto; min-height: auto; }
}

/* === SPRECHER KARTEN GRID === */

.speaker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.speaker-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 1px solid #eee;
}

.speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.img-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
    background: #f3f4f6;
}

.card-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.badge-hs {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: var(--text);
}

.card-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.tag {
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #666;
    display: inline-block;
}

.tag.studio {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10B981;
}

.tag.accent {
    background: #ffedd5;
    color: #9a3412;
}

.speaker-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 0 40px 0;
}

.list-status {
    color: #6B7280;
    font-size: 0.9rem;
}

.load-more-btn {
    min-width: 220px;
}

.avatar-container {
    width: 100px; height: 100px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 2px solid #ddd;
    background: #eee;
    cursor: grab;
}
.avatar-container:active {
    cursor: grabbing;
}
.avatar-container img.avatar-preview {
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    transition: object-position 0.05s ease-out;
}

/* === PROFILE DUO & CHAT ASSISTANT === */

.profile-duo-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.duo-images {
    display: flex;
    align-items: center;
    gap: 15px; /* Side by side */
}

/* Speaker Image (Larger) */
.speaker-img-wrapper {
    flex: 1;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.real-speaker-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Assistant Avatar (Smaller, Circular) */
.assistant-img-wrapper {
    width: 100px;
    height: 100px;
    position: relative;
}

.ai-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background: #fff;
}

.chat-toggle-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--tertiary);
    color: white;
    border: 2px solid #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 0.9rem;
    transition: transform 0.2s;
}
.chat-toggle-btn:hover {
    transform: scale(1.1);
}

.duo-labels {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}
.assistant-label {
    background: rgba(255,255,255,0.8);
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: bold;
    color: var(--primary);
}

/* Chat Module */
.speaker-assistant-chat {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s;
    max-height: 400px; /* Open state */
}

.speaker-assistant-chat.collapsed {
    max-height: 0;
    opacity: 0;
    border: none;
    margin: 0;
    padding: 0;
}

.chat-header-small {
    background: var(--primary);
    color: white;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: bold;
}

.speaker-assistant-chat__messages {
    flex: 1;
    height: 250px;
    overflow-y: auto;
    padding: 10px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-msg {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.assistant-msg {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #eee;
    color: #333;
    border-bottom-left-radius: 2px;
}

.user-msg {
    align-self: flex-end;
    background: var(--primary); /* using CSS var */
    color: white;
    border-bottom-right-radius: 2px;
}

.speaker-assistant-chat__input-area {
    display: flex;
    border-top: 1px solid #eee;
    padding: 5px;
    background: #fff;
}

.speaker-assistant-chat__input-area input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
    font-size: 0.9rem;
}

.speaker-assistant-chat__input-area button {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.2rem;
    padding: 0 15px;
    cursor: pointer;
}
.speaker-assistant-chat__input-area button:hover {
    color: var(--tertiary);
}

/* === BACKSTAGE NAVIGATION & SECTIONS === */
.hidden { display: none !important; }

/* KANBAN BOARD STYLES */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    height: 100%;
    padding: 20px;
    background: #f3f4f6;
    overflow-x: hidden;
    max-width: 100%;
}

@media (max-width: 1200px) {
    .kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kanban-board {
        grid-template-columns: 1fr;
    }
}

.kanban-column {
    display: flex;
    flex-direction: column;
    background: #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    min-width: 0;
    max-width: 100%;
}

.kanban-header {
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

.col-planning .kanban-header { color: var(--primary); border-color: var(--primary); }
.col-progress .kanban-header { color: var(--tertiary); border-color: var(--tertiary); }
.col-done .kanban-header { color: #a18e14; border-color: var(--secondary); }

.kanban-cards {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kanban-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid transparent;
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.card-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #111827;
    flex: 1;
}
.k-card-delete {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 2px;
    align-self: flex-start;
}
.k-card-delete:hover { color: #ef4444; }

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* DRAG AND DROP STYLES */
.kanban-column.drag-over {
    background: #dbeafe; /* Helles Blau */
    border: 2px dashed #3b82f6;
    transform: scale(1.02);
    transition: all 0.2s;
}

.kanban-card.is-dragging {
    opacity: 0.4;
    cursor: grabbing;
    pointer-events: none;
}

/* Während des Drags: Andere Karten sollen Drop-Events nicht blockieren */
body.is-dragging-card .kanban-card:not(.is-dragging) {
    pointer-events: none;
}

/* KANBAN CARD BACKGROUND TINTS */
.kanban-card.status-planning { background-color: #fcfaff; border-left: 4px solid var(--primary); }
.kanban-card.status-progress { background-color: #fff7ed; border-left: 4px solid var(--tertiary); }
.kanban-card.status-done     { background-color: #fefce8; border-left: 4px solid var(--secondary); }

/* EDIT MODE STYLES */
.kanban-card input.edit-title {
    width: 100%;
    padding: 4px;
    font-size: 1rem;
    border: 1px solid #3b82f6;
    border-radius: 4px;
    outline: none;
}

.k-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    background: #f3f4f6;
    color: #666;
    margin-top: 8px;
}
.k-due {
    margin-top: 6px;
    font-size: 0.78rem;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}
.k-due.is-empty { color: #9ca3af; }
.k-due:hover { color: #4b5563; }
.k-due i { color: inherit; font-size: 0.75rem; }
.k-due-warning {
    display: inline-flex;
    align-items: center;
    color: #f59e0b;
    font-size: 0.75rem;
}
.k-due-warning.is-overdue { color: #ef4444; }
.k-due-input {
    margin-top: 6px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 0.8rem;
}

.k-footer {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
}
.k-footer-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.k-members {
    display: flex;
    align-items: center;
    gap: 4px;
}
.k-member {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #4b5563;
    font-size: 0.65rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    overflow: hidden;
}
.k-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.k-member-add {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.k-member-add:hover {
    background: #f3f4f6;
    color: #374151;
}

/* ==================== DASHBOARD ==================== */
.dashboard-grid {
    display: block; /* Changed from grid to block for timeline */
    width: 100%;
}

/* ==================== DASHBOARD LAYOUT ==================== */

/* Container overrides for Dashboard View */
#view-dashboard {
    height: auto;
    min-height: calc(100vh - 80px); /* Subtract header height approx */
    overflow: visible;
    padding: clamp(14px, 2vw, 20px) !important; /* Reduce padding */
    box-sizing: border-box;
}

#view-dashboard h2 {
    display: none; /* Hide default title to save space */
}

.dashboard-viewport-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: auto;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-top-grid {
    display: grid;
    grid-template-columns: 1fr 3.5fr;
    gap: 16px;
    flex: 1; /* Take remaining space */
    min-height: 0; /* Allow shrinking */
    align-items: start;
}

.dashboard-bottom-timeline {
    flex-shrink: 0;
    /* Timeline height is controlled by its content, usually fixed height around 250-300px */
}

.dashboard-col-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: auto;
    align-self: start;
}

.dashboard-col-right {
    height: 100%;
}

.dashboard-card {
    background: white;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

/* Specific Card Adjustments for Full Height */
.greeting-card {
    flex-shrink: 0; /* Keep size based on content */
}

.my-tasks-card {
    flex: 0 0 auto;
    min-height: 0;
    overflow: hidden;
}

.mini-task-list {
    overflow-y: auto;
    padding-right: 5px;
    max-height: clamp(120px, 22vh, 220px);
}

.blackboard-card {
    height: auto;
    max-height: clamp(360px, 52vh, 600px);
    background-size: 20px 20px;
}

.blackboard-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Adjust timeline for bottom position */
.timeline-v2 {
    margin-top: 0;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(69, 16, 103, 0.12);
    box-shadow: 0 10px 24px rgba(69, 16, 103, 0.08);
    /* Make it slightly more compact */
    padding: 10px 14px;
    --tl-line-top: 26px;
    --tl-row-height: 36px;
    --tl-cards-padding-top: 12px;
    --tl-track-bottom: 12px;
}

/* Responsive Fallback */
@media (max-width: 900px) {
    #view-dashboard {
        height: auto;
        overflow-y: auto;
    }
    .dashboard-viewport-wrapper {
        height: auto;
    }
    .dashboard-top-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-col-left, .dashboard-col-right {
        height: auto;
    }
    .blackboard-card {
        min-height: 250px;
    }
}

/* Greeting Card */
.greeting-card {
    background: linear-gradient(135deg, #451067 0%, #6B21A8 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.greeting-content {
    z-index: 2;
}

.greeting-card h1 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 400; /* Champagne is thin */
}

.greeting-card p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.greeting-icon {
    font-size: 2.6rem;
    opacity: 0.2;
    transform: rotate(10deg);
}

/* My Tasks (Mini Kanban) */
.mini-task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mini-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #F8FAFC;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.mini-task-item:hover {
    background: #F1F5F9;
}

.mini-task-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tertiary); /* In Arbeit */
    flex-shrink: 0;
}

.mini-task-content {
    flex: 1;
}

.mini-task-title {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.mini-task-meta {
    font-size: 0.8rem;
    color: #94A3B8;
}

.mini-task-item i {
    color: #CBD5E1;
    font-size: 0.8rem;
}

/* Blackboard */
.blackboard-card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.blackboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.edit-blackboard-btn {
    background: transparent;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: color 0.2s;
}

.edit-blackboard-btn:hover {
    color: var(--primary);
    background: rgba(0,0,0,0.05);
}

.handwritten-text {
    font-family: 'Champagne', cursive; /* Fallback to cursive if Champagne fails */
    font-size: 1.8rem;
    line-height: 1.4;
    color: #1E293B;
    flex: 1;
    margin: 0;
    white-space: pre-wrap;
    font-style: italic;
}

.blackboard-footer {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    font-size: 0.9rem;
    color: #64748B;
    font-style: italic;
    border-top: 2px dashed #E2E8F0;
    padding-top: 15px;
}

.blackboard-author {
    font-weight: 600;
    color: var(--primary);
}

/* Legacy bento grid - use .bento-grid class if needed */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}


.bento-card {
    background: var(--card);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.bento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.bento-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.bento-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text);
}
.bento-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 5px;
}

/* ==================== TIMELINE V2 - DEPTH & DIMENSION ==================== */
:root {
    --zen-ink: #1f1a1d;
    --zen-muted: rgba(69, 16, 103, 0.55);
    --easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.timeline-v2 {
    width: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: clamp(16px, 3vw, 24px) clamp(18px, 3vw, 30px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    --tl-padding-x: clamp(18px, 3vw, 36px);
    --tl-line-top: clamp(28px, 4.5vh, 40px);
    --tl-row-height: clamp(44px, 6vh, 60px);
    --tl-cards-padding-top: clamp(16px, 3vh, 25px);
    --tl-track-bottom: clamp(16px, 3vh, 30px);
    --tl-scroll-gap: clamp(10px, 2vh, 20px);
    --tl-connector-height: calc(var(--tl-cards-padding-top) + 10px);
}

.timeline-v2-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-v2-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-v2-header h2 i {
    color: var(--primary);
}

.timeline-v2-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.timeline-v2-legend {
    display: flex;
    gap: 14px;
}

.timeline-v2-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--zen-muted);
}

.timeline-v2-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.timeline-scale-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(69, 16, 103, 0.12);
    padding: 2px;
    border-radius: 10px;
    margin-right: 8px;
}

.scale-btn {
    border: none;
    background: transparent;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.scale-btn:hover {
    color: var(--primary);
    background: rgba(255,255,255,0.5);
}

.scale-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.timeline-v2-zoom {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--zen-muted);
}

/* ... existing zoom input styles ... */

.tl-date-marker.monthly {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    background: rgba(255,255,255,0.8);
    padding: 2px 8px;
    border-radius: 99px;
    backdrop-filter: blur(4px);
}

.timeline-v2-zoom input[type="range"] {
    width: 140px;
}

.timeline-v2-zoom-value {
    min-width: 44px;
    text-align: right;
}

.timeline-v2-toggle {
    border: 1px solid rgba(69, 16, 103, 0.2);
    background: #fff;
    color: var(--zen-ink);
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.timeline-v2-toggle i {
    font-size: 0.9rem;
}

.timeline-v2-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.timeline-v2.is-collapsed .timeline-v2-scroll {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding-bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.timeline-v2-legend .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.timeline-v2-legend .dot.planning { background: var(--primary); }
.timeline-v2-legend .dot.progress { background: var(--tertiary); }
.timeline-v2-legend .dot.done { background: var(--secondary); }

.timeline-v2-empty {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.timeline-v2-empty i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.timeline-v2-empty p {
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: #6b7280;
}

.timeline-v2-empty span {
    font-size: 0.9rem;
}

.timeline-v2-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    margin-top: var(--tl-scroll-gap);
    cursor: grab;

    /* Animation properties */
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin-top 0.4s ease, padding-bottom 0.4s ease;
    max-height: 800px;
    opacity: 1;
}

.timeline-v2-scroll:active {
    cursor: grabbing;
}

.timeline-v2-track {
    position: relative;
    min-width: 1000px;
    padding: calc(var(--tl-line-top) + 10px) var(--tl-padding-x) var(--tl-track-bottom);
}

/* Glassmorphism Timeline Line */
.timeline-v2-line {
    position: absolute;
    left: var(--tl-padding-x);
    right: var(--tl-padding-x);
    top: var(--tl-line-top);
    height: 4px;
    background: linear-gradient(90deg, rgba(69, 16, 103, 0.12) 0%, rgba(69, 16, 103, 0.25) 50%, rgba(69, 16, 103, 0.12) 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(69, 16, 103, 0.08);
}

/* Today Marker with Pulse Animation */
.timeline-v2-today {
    position: absolute;
    top: calc(var(--tl-line-top) - 25px);
    transform: translateX(-50%);
    z-index: 20;
}

.timeline-v2-today::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 250px;
    background: linear-gradient(180deg, var(--danger) 0%, transparent 100%);
    opacity: 0.4;
    animation: todayPulse 2s ease-in-out infinite;
}

@keyframes todayPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

.timeline-v2-today span {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.timeline-v2-dates {
    position: absolute;
    left: var(--tl-padding-x);
    right: var(--tl-padding-x);
    top: calc(var(--tl-line-top) + 8px);
}

.tl-date-marker {
    position: absolute;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: var(--zen-muted);
    white-space: nowrap;
    font-weight: 500;
}

.timeline-v2-cards {
    position: relative;
    min-height: calc(var(--tl-row-height) * 4 + 10px);
    padding-top: var(--tl-cards-padding-top);
}

/* Project Cards - Glassmorphism with 3D Depth */
.tl-card {
    position: absolute;
    transform: translateX(-50%);
    width: auto;
    max-width: 240px;
    z-index: 10;
    transition: all 400ms var(--easing-bounce);
    cursor: pointer;
}

.tl-card:hover {
    transform: translateX(-50%) translateY(-12px) rotateY(5deg) scale(1.05);
    z-index: 100;
}

.tl-card[data-row="0"] { top: 0; }
.tl-card[data-row="1"] { top: calc(var(--tl-row-height) * 1); }
.tl-card[data-row="2"] { top: calc(var(--tl-row-height) * 2); }
.tl-card[data-row="3"] { top: calc(var(--tl-row-height) * 3); }

/* Connector from card to timeline */
.tl-card-connector {
    position: absolute;
    left: 50%;
    top: calc(var(--tl-connector-height) * -1);
    width: 2px;
    height: var(--tl-connector-height);
    background: linear-gradient(180deg, transparent 0%, rgba(69, 16, 103, 0.12) 100%);
}

.tl-card[data-row="1"] .tl-card-connector,
.tl-card[data-row="2"] .tl-card-connector,
.tl-card[data-row="3"] .tl-card-connector {
    display: none;
}

/* Glassmorphism Card Content */
.tl-card-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(140%);
    border-radius: 16px;
    padding: 8px 14px;
    border: 2px solid rgba(69, 16, 103, 0.2);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 400ms var(--easing-smooth);
    position: relative;
    overflow: hidden;
}

/* Status Background Gradient Overlay */
.tl-card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    transition: opacity 300ms;
}

.tl-card.status-planning .tl-card-content::before {
    background: linear-gradient(135deg, #451067 0%, #6B21A8 100%);
}

.tl-card.status-progress .tl-card-content::before {
    background: linear-gradient(135deg, #E85E00 0%, #F59E0B 100%);
}

.tl-card.status-done .tl-card-content::before {
    background: linear-gradient(135deg, #FCDE67 0%, #84CC16 100%);
}

.tl-card:hover .tl-card-content {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.tl-card:hover .tl-card-content::before {
    opacity: 0.15;
}

/* Status-specific border colors */
.tl-card.status-planning .tl-card-content {
    border-color: rgba(69, 16, 103, 0.3);
}

.tl-card.status-planning:hover .tl-card-content {
    box-shadow: 0 12px 48px rgba(69, 16, 103, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.tl-card.status-progress .tl-card-content {
    border-color: rgba(232, 94, 0, 0.3);
}

.tl-card.status-progress:hover .tl-card-content {
    box-shadow: 0 12px 48px rgba(232, 94, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.tl-card.status-done .tl-card-content {
    border-color: rgba(252, 222, 103, 0.3);
}

.tl-card.status-done:hover .tl-card-content {
    box-shadow: 0 12px 48px rgba(252, 222, 103, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.tl-card.is-overdue .tl-card-content {
    border-color: rgba(239, 68, 68, 0.4);
}

.tl-card.is-overdue:hover .tl-card-content {
    box-shadow: 0 12px 48px rgba(239, 68, 68, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Card Simple Layout */
.tl-card-simple {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.tl-card-simple i {
    font-size: 1.1rem;
}

.tl-card.status-planning .tl-card-simple i { color: var(--primary); }
.tl-card.status-progress .tl-card-simple i { color: var(--tertiary); }
.tl-card.status-done .tl-card-simple i { color: #84CC16; }
.tl-card.is-overdue .tl-card-simple i { color: #EF4444; }

/* Remove old headers and tags */
.tl-card-header, .tl-tag, .tl-status, .tl-meta {
    display: none;
}

.tl-title {
    margin: 0;
    font-size: 0.9rem;
    color: var(--zen-ink);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

/* Legacy styles - kept for compatibility */
.tl-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.tl-date {
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 5px;
}
.tl-date i { font-size: 0.7rem; }
.tl-days {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #6b7280;
}
.tl-days.soon { background: #fef3c7; color: #d97706; }
.tl-days.today { background: #fee2e2; color: #dc2626; font-weight: bold; }
.tl-days.overdue { background: #dc2626; color: white; }
.tl-days.done { background: #fefce8; color: #a18e14; }

.tl-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}
.tl-avatars {
    display: flex;
    gap: -8px;
}
.tl-avatars img,
.tl-avatars span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -8px;
    background: var(--primary);
    color: white;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.tl-avatars img:first-child,
.tl-avatars span:first-child {
    margin-left: 0;
}
.tl-avatars img {
    object-fit: cover;
}
.tl-avatar-more {
    background: #e5e7eb !important;
    color: #6b7280 !important;
    font-size: 0.65rem !important;
}
.tl-id {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ==================== ADMIN VIEW ==================== */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}
.admin-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-header h2 i {
    color: var(--primary);
}

.admin-form {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.admin-form h3 {
    margin: 0 0 20px;
    font-size: 1.1rem;
    color: var(--text);
}
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
}
.form-group input,
.form-group select {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(69, 16, 103, 0.1);
}
.form-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    overflow: hidden;
}
.admin-table th,
.admin-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.admin-table th {
    background: rgba(0, 0, 0, 0.03);
    font-weight: 600;
    font-size: 0.85rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.7);
}
.admin-table tbody tr.is-admin {
    background: rgba(69, 16, 103, 0.03);
}
.admin-table tbody tr.is-self {
    background: rgba(232, 94, 0, 0.03);
}

.user-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    overflow: hidden;
}
.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-badge {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}
.role-badge.role-team {
    background: #dbeafe;
    color: #1d4ed8;
}
.role-badge.role-speaker {
    background: #fef3c7;
    color: #d97706;
}
.role-badge.role-studio {
    background: #d1fae5;
    color: #059669;
}

.btn-delete-user {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}
.btn-delete-user:hover {
    background: #fee2e2;
    color: #dc2626;
}

.admin-empty,
.admin-error {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}
.admin-error {
    color: #dc2626;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}
.loading-spinner i {
    margin-right: 10px;
}

/* ==================== FILE BROWSER (KOOFR INTEGRATION) ==================== */

/* Files Container */
.files-container {
    padding: 28px;
    background: transparent;
    min-height: 400px;
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 1rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--zen-ink);
    border: 1px solid var(--zen-stroke);
}

.breadcrumb-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(69, 16, 103, 0.25);
    transform: translateY(-1px);
}

.breadcrumb-separator {
    color: var(--zen-muted);
    font-size: 0.75rem;
}

/* Files Grid */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 1200px) {
    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .files-grid {
        grid-template-columns: 1fr;
    }
}

/* File Item */
.file-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--zen-stroke);
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(69, 16, 103, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(69, 16, 103, 0.15);
}

.file-item--folder:hover {
    border-color: var(--primary);
}

/* File Icon */
.file-item__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.file-item:hover .file-item__icon {
    transform: scale(1.1);
}

/* Icon Colors */
.files-icon--folder {
    background: rgba(69, 16, 103, 0.12);
    color: var(--primary);
}

.files-icon--pdf {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
}

.files-icon--word {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
}

.files-icon--excel {
    background: rgba(5, 150, 105, 0.12);
    color: #059669;
}

.files-icon--powerpoint {
    background: rgba(234, 88, 12, 0.12);
    color: #ea580c;
}

.files-icon--image {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.files-icon--audio {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
}

.files-icon--video {
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
}

.files-icon--archive {
    background: rgba(107, 114, 128, 0.12);
    color: #6b7280;
}

.files-icon--default {
    background: rgba(156, 163, 175, 0.12);
    color: #9ca3af;
}

/* File Info */
.file-item__info {
    width: 100%;
    text-align: center;
}

.file-item__name {
    font-weight: 600;
    color: var(--zen-ink);
    font-size: 0.95rem;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.file-item__meta {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--zen-muted);
}

.file-item__meta span {
    display: inline-block;
}

/* Empty State */
.files-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: var(--zen-muted);
}

.files-empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
    color: var(--zen-muted);
}

.files-empty-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--zen-ink);
    margin-bottom: 8px;
}

.files-empty-subtext {
    font-size: 0.95rem;
    color: var(--zen-muted);
}

/* Loading State */
.files-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: var(--zen-muted);
}

.files-loading i {
    color: var(--primary);
    margin-bottom: 15px;
}

/* Error State */
.files-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: var(--zen-muted);
}

.files-error i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #dc2626;
}

/* Files Header Actions */
.files-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.files-connection-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--zen-stroke);
    color: var(--zen-muted);
    font-size: 0.95rem;
}

/* Connect State */
.files-connect-card {
    margin: 10px auto 0;
    max-width: 720px;
    padding: 30px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--zen-stroke);
    text-align: center;
    box-shadow: 0 18px 28px rgba(69, 16, 103, 0.12);
}

.files-connect-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(69, 16, 103, 0.1);
    color: var(--primary);
    font-size: 2rem;
}

.files-connect-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--zen-ink);
}

.files-connect-text {
    margin-top: 6px;
    color: var(--zen-muted);
    font-size: 1rem;
}

.files-connect-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.files-connect-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--zen-ink);
    text-align: left;
}

.files-connect-input-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.files-connect-input {
    flex: 1;
    min-width: 220px;
    border: 1px solid var(--zen-stroke);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 1rem;
    font-family: var(--font-body);
}

.files-connect-hint {
    font-size: 0.9rem;
    color: var(--zen-muted);
    text-align: left;
}

.files-connect-error {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(252, 211, 77, 0.25);
    border: 1px solid rgba(217, 119, 6, 0.2);
    color: #b45309;
    font-size: 0.95rem;
}

.files-connect-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.files-error-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==================== CARD GALLERY KANBAN (Design #3 - Clean V3 Zen) ==================== */



:root {

    --column-bg: #F8FAFC; /* Noch heller/ruhiger */

    --radius-lg: 24px;

    --radius-md: 16px;

    --shadow-sm: 0 4px 12px rgba(0,0,0,0.03); /* Sehr weicher Schatten */

    --shadow-hover: 0 12px 32px rgba(69, 16, 103, 0.08);

}



/* Board Container */

.kanban-gallery-board {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

    padding: 20px 0;

    align-items: start; /* Verhindert das Strecken der Spalten */

}



@media (max-width: 1200px) {

    .kanban-gallery-board { grid-template-columns: repeat(2, 1fr); }

}

@media (max-width: 768px) {

    .kanban-gallery-board { grid-template-columns: 1fr; }

}



/* Column Styling */

.kanban-gallery-column {

    background: var(--column-bg);

    border-radius: var(--radius-lg);

    padding: 20px;

    display: flex;

    flex-direction: column;

    min-height: 150px; /* Minimal für Drop-Zone */

    height: fit-content; /* Nur so groß wie nötig */

    border: 1px solid transparent;

    transition: all 0.3s ease;

}



.kanban-gallery-column.drag-over {

    background: #F0F9FF;

    border-color: var(--primary);

    transform: scale(1.01);

}



/* Column Headers & Colors */

.kanban-gallery-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

    padding: 0 4px;

    background: transparent;

    box-shadow: none;

    border-radius: 0;

}



.kanban-gallery-title {

    display: flex;

    align-items: center;

    gap: 12px;

    font-weight: 700;

    font-size: 1.05rem;

    color: var(--text);

    letter-spacing: -0.01em;

}



.kanban-gallery-count {

    background: rgba(0,0,0,0.04);

    padding: 2px 10px;

    border-radius: 99px;

    font-size: 0.75rem;

    color: #64748B;

    font-weight: 600;

    box-shadow: none;

}



.kanban-gallery-quick-add {

    background: transparent;

    border: 1px solid rgba(0,0,0,0.08);

    width: 28px;

    height: 28px;

    border-radius: 8px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: all 0.2s;

    color: #94A3B8;

}



.kanban-gallery-quick-add:hover {

    border-color: var(--primary);

    color: var(--primary);

    background: white;

}



/* Color Mappings */

.kanban-gallery-column--planning .kanban-gallery-title i { color: var(--primary); }

.kanban-gallery-column--progress .kanban-gallery-title i { color: var(--tertiary); }

.kanban-gallery-column--done .kanban-gallery-title i { color: #dcb000; }



/* Cards Container */

.kanban-gallery-cards {

    display: flex;

    flex-direction: column;

    gap: 16px;

    min-height: 50px;

}



/* Card Styling - Zen Mode */



.kanban-gallery-card {



    background: white;



    border-radius: var(--radius-md);



    padding: 0 16px;



    box-shadow: var(--shadow-sm);



    cursor: grab;



    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);



    border: 1px solid rgba(0,0,0,0.02);



    position: relative;



    display: flex;

    flex-direction: row;

    align-items: center;

    justify-content: space-between;

    height: 54px; 

    gap: 12px;



    box-sizing: border-box;

    overflow: hidden;



}







.kanban-gallery-card:hover {



    transform: translateY(-4px) scale(1.02);



    box-shadow: var(--shadow-hover);



    border-color: rgba(69, 16, 103, 0.05);



    z-index: 10;



}







.kanban-gallery-card.is-dragging {



    opacity: 0.4;



    cursor: grabbing;



    background: #F8FAFC;



    box-shadow: none;



    border: 1px dashed #94A3B8;



}







/* Expanded Cards */

.kanban-gallery-card.is-expanded {

    padding: 24px;

    flex-direction: column;

    align-items: stretch;

    justify-content: flex-start;

    height: auto;

    min-height: 240px;

}

/* Drag & Drop Placeholder */



.kanban-placeholder {



    height: 54px; /* Same as slim card */



    background: rgba(241, 245, 249, 0.6);



    border: 2px dashed #CBD5E1;



    border-radius: var(--radius-md);



    margin-bottom: 16px;



    flex-shrink: 0;



    animation: placeholderPulse 1.5s infinite ease-in-out;



}







@keyframes placeholderPulse {



    0% { background-color: rgba(241, 245, 249, 0.6); }



    50% { background-color: rgba(241, 245, 249, 0.9); border-color: var(--primary); }



    100% { background-color: rgba(241, 245, 249, 0.6); }



}







/* Tags - Pastel & Pill */



.kanban-gallery-card-tag {



    display: inline-block;



    padding: 4px 12px;



    border-radius: 99px;



    font-size: 0.7rem;



    font-weight: 700;



    margin-bottom: 12px;



    text-transform: uppercase;



    letter-spacing: 0.04em;



    align-self: flex-start;



    flex-shrink: 0;



}







/* Tag Colors (Pastel) */



.tag-color-0 { background: #E0F2FE; color: #0369A1; } /* Blue */



.tag-color-1 { background: #FCE7F3; color: #9D174D; } /* Pink */



.tag-color-2 { background: #F5F3FF; color: #5B21B6; } /* Violet */



.tag-color-3 { background: #FEF3C7; color: #92400E; } /* Amber */



.tag-color-4 { background: #DCFCE7; color: #166534; } /* Green */







/* Card Content */



.kanban-gallery-card-header {







    margin-bottom: 0;







    display: flex;







    justify-content: space-between;







    align-items: flex-start;



    flex: 1;



    flex-shrink: 0;







}







.kanban-gallery-card-title {



    font-weight: 700;



    font-size: 0.9rem;

    line-height: 1.2;

    color: var(--text);

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
    
    flex: 1;

}







.kanban-gallery-card.is-expanded .kanban-gallery-card-header {

    margin-bottom: 8px;

    flex: 0 0 auto;

}

.kanban-gallery-card.is-expanded .kanban-gallery-card-title {

    font-size: 1.05rem;

    line-height: 1.3;

    word-break: break-word;

    letter-spacing: -0.01em;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;

    white-space: normal;

}

.kanban-gallery-card-actions {

    display: flex;

    align-items: center;

    gap: 6px;

    margin-left: 8px;

}

.kanban-card-expand {

    border: 1px solid rgba(69, 16, 103, 0.15);

    background: white;

    color: var(--primary);

    width: 26px;

    height: 26px;

    border-radius: 8px;

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    transition: transform 0.2s, color 0.2s, border-color 0.2s;

}

.kanban-card-expand:hover {

    transform: translateY(-1px);

    border-color: var(--primary);

    color: var(--primary);

}

.kanban-gallery-card-menu {



    color: #CBD5E1;



    cursor: pointer;



    padding: 4px;



    border-radius: 6px;



    transition: all 0.2s;



    margin-left: 8px;



    flex-shrink: 0;



}



.kanban-gallery-card:hover .kanban-gallery-card-menu { color: #94A3B8; }



.kanban-gallery-card-menu:hover { background: #F1F5F9; color: var(--primary); }







.kanban-gallery-card-description {







    font-size: 0.9rem;







    color: var(--primary); /* Violett für bessere Lesbarkeit */







    margin-bottom: auto; 







    line-height: 1.5;







    font-weight: 400;







    overflow: hidden;







    flex-grow: 1; 







    position: relative;







    padding-bottom: 20px; 







}















/* Slim Cards for Done Column */







.kanban-gallery-column--done .kanban-gallery-card {







    height: 54px; /* Sehr dünner Streifen */







    padding: 0 16px;







    display: flex;







    flex-direction: row;







    align-items: center;







    justify-content: space-between;







    overflow: hidden;







}















.kanban-gallery-column--done .kanban-gallery-card-tag,







.kanban-gallery-column--done .kanban-gallery-card-description,







.kanban-gallery-column--done .kanban-progress-container,







.kanban-gallery-column--done .kanban-gallery-card-footer .kanban-gallery-card-meta {







    display: none !important; /* Alles ausblenden für den Streifen-Look */







}















.kanban-gallery-column--done .kanban-gallery-card-header {







    margin-bottom: 0;







    flex: 1;







}















.kanban-gallery-column--done .kanban-gallery-card-title {







    font-size: 0.9rem;







    white-space: nowrap;







    overflow: hidden;







    text-overflow: ellipsis;







    color: #64748B; /* Etwas dezenter, da erledigt */







}















.kanban-gallery-column--done .kanban-gallery-card-footer {







    border-top: none;







    padding-top: 0;







    margin-top: 0;







    width: auto;







}















.kanban-gallery-column--done .kanban-gallery-card-avatars {







    transform: scale(0.8); /* Avatare etwas kleiner */







}

/* Slim Default + Expanded Inhalte */

.kanban-gallery-card-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.6rem;
    margin-bottom: 0;
    margin-right: 8px;
}

.kanban-gallery-card-description,
.kanban-progress-container {
    display: none;
}

.kanban-gallery-card-avatars {
    transform: scale(0.8);
}

.kanban-gallery-card.is-expanded .kanban-gallery-card-tag {
    padding: 4px 12px;
    font-size: 0.7rem;
    margin-bottom: 12px;
    margin-right: 0;
}

.kanban-gallery-card.is-expanded .kanban-gallery-card-description,
.kanban-gallery-card.is-expanded .kanban-progress-container {
    display: block;
}

.kanban-gallery-card.is-expanded .kanban-gallery-card-avatars {
    transform: none;
}

.kanban-gallery-column--planning .kanban-gallery-card {
    border-left: 4px solid var(--primary);
    background: #fcfaff;
}

.kanban-gallery-column--progress .kanban-gallery-card {
    border-left: 4px solid var(--tertiary);
    background: #fff7ed;
}

.kanban-gallery-column--done .kanban-gallery-card {
    border-left: 4px solid var(--secondary);
    background: #fefce8;
}







    position: absolute;







    bottom: 0;







    right: 0;







    background: var(--primary);







    color: white;







    border: none;







    width: 24px;







    height: 24px;







    border-radius: 50%;







    cursor: pointer;







    display: flex;







    align-items: center;







    justify-content: center;







    font-size: 0.8rem;







    box-shadow: 0 2px 5px rgba(0,0,0,0.2);







    transition: transform 0.2s, background 0.2s;







    z-index: 5;







}















.show-more-btn:hover {







    transform: scale(1.1);







    background: #5B21B6;







}







/* Progress Bar - Slim & Zen */



.kanban-progress-container {



    margin-top: 12px;



    margin-bottom: 12px;



    flex-shrink: 0;



}



.kanban-progress-label {

    display: flex;

    justify-content: space-between;

    font-size: 0.7rem;

    font-weight: 600;

    color: #94A3B8;

    margin-bottom: 6px;

    text-transform: uppercase;

    letter-spacing: 0.03em;

}



.kanban-progress-bar {

    height: 4px;

    background: #F1F5F9;

    border-radius: 2px;

    overflow: hidden;

}



.kanban-progress-fill {

    height: 100%;

    background: var(--primary);

    border-radius: 2px;

    transition: width 0.5s ease-out;

}

.kanban-progress-fill.done { background: #10B981; }



/* Card Footer */

.kanban-gallery-card-footer {

    display: none;

    justify-content: space-between;

    align-items: center;

    border-top: none;

    padding-top: 0;

    margin-top: 0;

}

.kanban-gallery-card.is-expanded .kanban-gallery-card-footer {
    display: flex;
    border-top: 1px solid #F8FAFC;
    padding-top: 16px;
    margin-top: auto;
    width: 100%;
}



.kanban-gallery-card-meta {

    display: none;

    gap: 14px;

    font-size: 0.8rem;

    color: #94A3B8;

}

.kanban-gallery-card.is-expanded .kanban-gallery-card-meta {
    display: flex;
}



.kanban-gallery-card-meta span {

    display: flex;

    align-items: center;

    gap: 6px;

    transition: color 0.2s;

}

.kanban-gallery-card-meta span:hover { color: var(--primary); }



/* Avatars */

.kanban-gallery-card-avatars { display: flex; align-items: center; }

.kanban-gallery-avatar {

    width: 32px; /* Slightly larger */

    height: 32px;

    border-radius: 50%;

    border: 2px solid white;

    background: #CBD5E1;

    margin-left: -10px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 0.75rem;

    font-weight: 700;

    color: white;

    overflow: hidden;

    box-shadow: 0 2px 4px rgba(0,0,0,0.05);

}

.kanban-gallery-avatar:first-child { margin-left: 0; }

.kanban-gallery-avatar img { width: 100%; height: 100%; object-fit: cover; }

.kanban-gallery-avatar-more {

    width: 32px; height: 32px; border-radius: 50%; border: 2px solid white; margin-left: -10px;

    background: #F1F5F9; color: #64748B; font-size: 0.7rem; font-weight: 700;

    display: flex; align-items: center; justify-content: center;

}



/* Attachments */

.kanban-gallery-attachments { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }

.kanban-gallery-attachment {

    font-size: 0.75rem; background: #F8FAFC; padding: 4px 10px; border-radius: 6px;

    color: #64748B; border: 1px solid #E2E8F0; transition: all 0.2s;

}

.kanban-gallery-attachment:hover { border-color: var(--primary); color: var(--primary); background: white; }



/* Context Menu */

.kanban-gallery-menu {

    position: fixed; background: white; border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.05);

    padding: 8px; z-index: 1000; min-width: 200px;

    animation: fadeIn 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);

}



.kanban-gallery-menu button {

    width: 100%; padding: 10px 14px; background: transparent; border: none;

    text-align: left; font-size: 0.9rem; color: #475569; cursor: pointer;

    border-radius: 8px; transition: all 0.1s; display: flex; align-items: center; gap: 10px; font-weight: 500;

}

.kanban-gallery-menu button:hover { background: #F8FAFC; color: var(--primary); }

.kanban-gallery-menu button.danger { color: #dc2626; }

.kanban-gallery-menu button.danger:hover { background: #FEF2F2; }



/* Emoji Picker Styles */

.emoji-picker-container { position: relative; display: flex; align-items: stretch; }

.emoji-trigger-btn {

    background: #f3f4f6; border: 1px solid #d1d5db; border-right: none;

    border-radius: 8px 0 0 8px; padding: 0 12px; font-size: 1.2rem; cursor: pointer;

    display: flex; align-items: center; justify-content: center; transition: background 0.2s;

}

.emoji-trigger-btn:hover { background: #e5e7eb; }

.emoji-popover {

    position: absolute; top: 110%; left: 0; background: white;

    border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1);

    padding: 10px; z-index: 100; width: 280px; display: grid;

    grid-template-columns: repeat(6, 1fr); gap: 5px;

}

.emoji-popover.hidden { display: none; }

.emoji-btn {

    background: transparent; border: none; font-size: 1.4rem; padding: 6px;

    border-radius: 6px; cursor: pointer; transition: transform 0.1s, background 0.1s;

}

.emoji-btn:hover { background: #f3f4f6; transform: scale(1.2); }

/* Adjust input for emoji addon */

.input-with-emoji-addon { border-radius: 0 8px 8px 0 !important; }



/* Filter Bar */

.kanban-filter-bar { 
    display: flex; 
    justify-content: space-between;
    align-items: center;
    gap: 15px; 
    margin-bottom: 30px; 
    padding: 0 10px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.filter-group {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.kanban-filter-btn {

    background: white; border: 1px solid #E2E8F0; padding: 10px 20px; border-radius: 99px;

    font-size: 0.9rem; font-weight: 600; color: #64748B; cursor: pointer;

    transition: all 0.2s; white-space: nowrap; box-shadow: 0 2px 5px rgba(0,0,0,0.02);

}

.kanban-filter-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }

.kanban-filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 4px 12px rgba(69, 16, 103, 0.2); }

/* Density Switch */
.density-switch {
    display: flex;
    background: #F1F5F9;
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
}

.density-btn {
    border: none;
    background: transparent;
    color: #64748B;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.density-btn:hover {
    color: var(--primary);
    background: rgba(255,255,255,0.5);
}

.density-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Compact Board View */
.kanban-gallery-board.is-compact .kanban-gallery-card:not(.is-expanded) {
    height: 48px;
}

.kanban-gallery-board.is-compact .kanban-gallery-card-title {
    font-size: 0.85rem;
}

/* Slim Indicators */
.kanban-gallery-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.kanban-slim-indicators {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.kanban-slim-date {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94A3B8;
    background: #F8FAFC;
    padding: 2px 8px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #E2E8F0;
    white-space: nowrap;
}

.kanban-slim-date.overdue {
    background: #FEF2F2;
    color: #EF4444;
    border-color: #FEE2E2;
}

.kanban-slim-progress {
    width: 40px;
    height: 6px;
    background: #F1F5F9;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.kanban-slim-progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.kanban-slim-progress-fill.done {
    background: #10B981;
}

.kanban-gallery-card.is-expanded .kanban-slim-indicators {
    display: none;
}



/* Modal Styling */

.kanban-gallery-modal { max-width: 600px; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }

.kanban-gallery-modal textarea {

    width: 100%; padding: 14px; border: 1px solid #e2e8f0;

    border-radius: 12px; font-size: 0.95rem; font-family: inherit; resize: vertical;

    transition: border-color 0.2s;

}

.kanban-gallery-modal input[type="text"] {

    padding: 12px; border-radius: 8px; border: 1px solid #e2e8f0; font-size: 1rem;

}

.kanban-gallery-modal textarea:focus, .kanban-gallery-modal input:focus {

    outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(69, 16, 103, 0.05);

}



/* Members List */

.kanban-gallery-members-list {

    max-height: 200px; overflow-y: auto; border: 1px solid #e2e8f0;

    border-radius: 12px; padding: 10px; background: #f8fafc;

}

.kanban-gallery-member-option {

    display: flex; align-items: center; gap: 12px; padding: 8px 12px;

    border-radius: 8px; cursor: pointer; transition: background 0.15s; background: white; margin-bottom: 6px;

    border: 1px solid transparent;

}

.kanban-gallery-member-option:hover { border-color: #cbd5e1; }

.kanban-gallery-member-option input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary); }

.kanban-gallery-member-name { font-size: 0.95rem; color: #334155; font-weight: 500; }

/* Root Folder Marker */
.file-item--root {
    border: 1px solid rgba(232, 94, 0, 0.3) !important;
    border-left: 4px solid #E85E00 !important;
    background-color: rgba(232, 94, 0, 0.05) !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.file-item--root:hover {
    background-color: rgba(232, 94, 0, 0.08) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 94, 0, 0.1);
}

.file-item__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.file-item__header .file-item__name {
    margin-bottom: 0;
    font-weight: 600;
}

.file-tag-root {
    background-color: #E85E00;
    color: white;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(232, 94, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* === BLACKBOARD POST-ITS === */
.blackboard-content {
    display: block !important; /* Override flex */
    padding: 20px;
    overflow: visible !important;
    background-image: none !important; 
    height: 100%;
    flex: 1;
    min-height: 0;
}

.blackboard-card {
    background-color: #ffffff;
    background-image: none;
    border: 1px solid rgba(69, 16, 103, 0.08);
    border-radius: 20px;
    box-shadow: 
        0 10px 25px -5px rgba(0, 0, 0, 0.05),
        0 8px 10px -6px rgba(0, 0, 0, 0.05);
    position: relative;
    /* overflow: hidden; Removed */
}

.blackboard-card::before {
    content: none;
}

.post-it-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
    align-content: flex-start;
    height: 100%;
    padding-bottom: 50px; /* Space for fab */
    --post-it-scale: 1;
    overflow-y: auto;
    scrollbar-width: thin;
}

.post-it-container::-webkit-scrollbar {
    width: 6px;
}

.post-it-container::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

.post-it {
    width: 150px;
    min-height: 150px;
    padding: 16px;
    box-shadow: 4px 8px 14px rgba(0,0,0,0.2);
    transform: rotate(var(--rotation));
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
    font-family: 'Champagne', cursive;
    color: #333;
    animation: fadeIn 0.3s ease-out;
    background: #fff; /* fallback */
    margin: 0;
}

.post-it::before {
    content: '';
    position: absolute;
    top: -10px;
    left: calc(50% + var(--pin-offset-x, 0px));
    width: calc(14px * var(--pin-scale, 1));
    height: calc(14px * var(--pin-scale, 1));
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #ffffff 22%, var(--pin-color, #e0524d) 55%, #8c8c8c 100%);
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
    transform: translateX(-50%);
    z-index: 2;
}

.post-it::after {
    content: '';
    position: absolute;
    top: -6px;
    left: calc(50% + var(--pin-offset-x, 0px));
    width: calc(2px * var(--pin-scale, 1));
    height: calc(16px * var(--pin-scale, 1));
    background: linear-gradient(180deg, #d6d6d6 0%, #9f9f9f 100%);
    border-radius: 2px;
    transform: translateX(-50%) rotate(var(--pin-tilt, -12deg));
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.post-it:hover {
    transform: scale(1.05) rotate(0deg) !important;
    box-shadow: 7px 18px 28px rgba(0,0,0,0.26);
    z-index: 100;
}

/* Aicappella Brand Colors for Post-its */
.post-it-yellow { background: #FCDE67; }  /* Gold */
.post-it-pink { background: #f0d9ff; }    /* Light Purple */
.post-it-green { background: #bbf7d0; }   /* Keep green (success color) */
.post-it-blue { background: #bfdbfe; }    /* Keep blue (info color) */
.post-it-orange { background: #ffd4b3; }  /* Light Orange (opaque for readability) */

.post-it-text {
    flex: 1;
    font-size: 1.2rem;
    line-height: 1.4;
    word-wrap: break-word;
    margin-bottom: 10px;
    white-space: pre-wrap;
}

.post-it-meta {
    font-size: 0.75rem;
    color: rgba(0,0,0,0.5);
    text-align: right;
    font-style: italic;
    margin-top: auto;
}

.post-it-delete {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-it:hover .post-it-delete {
    opacity: 1;
}

.post-it-delete:hover {
    transform: scale(1.1);
    background: #dc2626;
}

.post-it-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
    border-radius: 4px;
    object-fit: cover;
    max-height: 150px;
    border: 2px solid rgba(0,0,0,0.05);
}

/* Add Note FAB */
.add-note-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(69, 16, 103, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    z-index: 50;
}

.add-note-btn:hover {
    transform: scale(1.1);
}

/* Modal for New Note */
.color-picker {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.color-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.1s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.color-option:hover { transform: scale(1.1); }
.color-option.selected { border-color: #333; transform: scale(1.1); }

/* Aicappella Brand Colors for Color Picker */
.bg-yellow { background: #FCDE67; }  /* Gold */
.bg-pink { background: #f0d9ff; }    /* Light Purple */
.bg-green { background: #bbf7d0; }   /* Keep green (success color) */
.bg-blue { background: #bfdbfe; }    /* Keep blue (info color) */
.bg-orange { background: #ffd4b3; }  /* Light Orange (opaque for readability) */

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* === POST-IT SIZES & STYLES === */
/* Font Sizes */
.post-it-sm .post-it-text { font-size: 0.9rem; }
.post-it-md .post-it-text { font-size: 1.05rem; }
.post-it-lg .post-it-text { font-size: 1.25rem; font-weight: bold; }

/* Styles */
/* Classic (Default) */
.post-it-classic {
    font-family: 'Champagne', cursive;
}

/* Modern (Minimalistisch) */
.post-it-modern {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-radius: 4px;
    transform: rotate(0deg) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-top: none;
    letter-spacing: 0px;
    position: relative;
    margin-top: 10px !important;
}

.post-it-modern::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 70px;
    height: 24px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(1px);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 10;
}

.post-it-modern:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Retro (Bold/Funky) */
.post-it-retro {
    font-family: 'Cooper Black', Georgia, serif;
    border-radius: 12px;
    border: 2px solid rgba(0,0,0,0.8);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.8);
}
.post-it-retro:hover {
    transform: translate(-2px, -2px) !important;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.8);
}
.post-it-retro .post-it-text {
    font-weight: 600;
}

/* Toggle Buttons */
.btn-group-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}
.btn-toggle {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
}
.btn-toggle:hover {
    background: rgba(0,0,0,0.05);
}
.btn-toggle.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* === UPDATED POST-IT SIZES & CHAOS === */

/* Dimensions based on size class */
.post-it-sm {
    width: 130px;
    min-height: 130px;
    padding: 12px;
}
.post-it-sm .post-it-text { font-size: 0.95rem; }

.post-it-md {
    width: 160px;
    min-height: 160px;
    padding: 16px;
}
.post-it-md .post-it-text { font-size: 1.05rem; }

.post-it-lg {
    width: 200px;
    min-height: 190px;
    padding: 18px;
}
.post-it-lg .post-it-text { font-size: 1.25rem; }

/* Apply chaotic transform */
.post-it {
    /* Use variables for random placement */
    transform: rotate(var(--rotation)) scale(calc(var(--post-it-scale, 1) * var(--post-it-age-scale, 1)));
    /* Reset transition for transform to avoid weird jumping when moving, 
       but keep box-shadow transition */
    transition: box-shadow 0.2s;
    margin: 0;
}

/* Hover effect - normalize rotation but keep scale */
.post-it:hover {
    transform: scale(calc(var(--post-it-scale, 1) * var(--post-it-age-scale, 1) * 1.05)) rotate(0deg) !important;
    z-index: 500;
}

/* === DYNAMIC CONTENT SIZING === */
.post-it {
    height: auto !important;
    display: inline-flex !important;
}

.post-it-sm {
    width: fit-content !important;
    min-width: 80px !important;
    min-height: 80px !important;
    max-width: 140px !important;
}

.post-it-md {
    width: fit-content !important;
    min-width: 100px !important;
    min-height: 100px !important;
    max-width: 190px !important;
}

.post-it-lg {
    width: fit-content !important;
    min-width: 120px !important;
    min-height: 110px !important;
    max-width: 240px !important;
}
