* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* verhindert Page-Overflow auf Mobile */
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h1 {
    font-size: 1.5rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-toggle {
    display: none;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.nav-menu a:hover {
    background-color: #34495e;
}

/* Aktiver Menüpunkt (dezentes Highlight) */
.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.55);
}

/* Account dropdown in navbar */
.account-menu {
    position: relative;
    margin-left: 6px;
}

.account-button {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.account-button:hover {
    background-color: #34495e;
    border-color: rgba(255, 255, 255, 0.35);
}

.account-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    padding: 8px;
    display: none;
    z-index: 2000;
}

.account-dropdown.open {
    display: block;
}

.account-dropdown-header {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 6px;
    color: #333;
    font-size: 0.95rem;
}

.account-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
}

/* Override navbar link styling inside dropdown (nav-menu a is more specific) */
.account-dropdown .account-dropdown-item,
.account-dropdown a.account-dropdown-item {
    color: #333;
    background: transparent;
}

.account-dropdown .account-dropdown-item:hover,
.account-dropdown a.account-dropdown-item:hover {
    color: #333;
    background: #f5f5f5;
}

.account-dropdown-item:hover {
    background: #f5f5f5;
}

.manual-icon {
    margin-left: 6px;
    font-size: 0.9rem;
    color: #6b7280;
    vertical-align: middle;
    cursor: help;
}

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

.page-header h2 {
    margin: 0;
}

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

.header-actions .action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-actions .assigned-count {
    color: #374151;
    font-weight: 600;
}

.auto-assign-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #374151;
    user-select: none;
}

.auto-assign-option input {
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Stats Charts */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    align-items: start;
}

.stat-chart-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 12px 12px 6px 12px;
}

.stat-chart-card.span-2 { grid-column: span 2; }
.stat-chart-card.span-3 { grid-column: span 3; }

.stat-chart-title {
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.stat-chart-canvas {
    position: relative;
    height: 240px;
    overflow: hidden; /* keine Scrollbars in der Kachel */
}

.stat-chart-inner {
    position: relative;
    height: 240px;
    min-width: 100%;
}

.stat-chart-inner canvas {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 860px) {
    .container { padding: 12px; }
    .navbar { padding: 0.75rem 0; margin-bottom: 1rem; }
    .navbar h1 { font-size: 1.1rem; }

    .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }

    .navbar .container { position: relative; }
    .nav-menu {
        display: none;
        position: absolute;
        right: 12px;
        top: calc(100% + 10px);
        background: #2c3e50;
        border: 1px solid rgba(255,255,255,0.18);
        border-radius: 12px;
        padding: 10px;
        flex-direction: column;
        gap: 8px;
        min-width: 220px;
        z-index: 2500;
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { display: block; padding: 10px 12px; }

    /* Account-Dropdown auf Mobile als normales Menü anzeigen */
    .account-button { display: none; }
    .account-dropdown {
        display: block;
        position: static;
        min-width: unset;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }
    .account-dropdown-header {
        color: rgba(255,255,255,0.9);
        border-bottom: 1px solid rgba(255,255,255,0.15);
        margin-bottom: 4px;
    }
    .account-dropdown .account-dropdown-item,
    .account-dropdown a.account-dropdown-item {
        color: #fff;
    }
    .account-dropdown a.account-dropdown-item:hover {
        background: rgba(255,255,255,0.10);
    }

    .page-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .header-actions { justify-content: flex-start; }
    .header-actions .action-buttons { flex-wrap: wrap; }
    .btn { width: auto; }

    /* Stats: Spans auf schmalen Screens deaktivieren */
    .stat-chart-card.span-2,
    .stat-chart-card.span-3 { grid-column: auto !important; }
}

.stat-card h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

/* Kleine HTML-Toolbar (Vorlagen + Versand) */
.html-toolbar {
    display: flex;
    gap: 6px;
    align-items: center;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 6px 8px;
    border-radius: 8px;
    margin-bottom: 6px;
}

.html-toolbar .html-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.html-toolbar .html-btn:hover {
    background: #f9fafb;
}

.html-toolbar-spacer {
    flex: 1;
}

/* Quill Toolbar Toggle Buttons sichtbar machen */
#tmplToggleCode,
#emailToggleCode {
    background-color: #7f8c8d !important;
    color: #fff !important;
    border: 1px solid #6b7a7b !important;
    padding: 6px 12px !important;
    min-width: 140px !important;
    white-space: nowrap !important;
    text-align: center !important;
    border-radius: 6px !important;
    line-height: 1.2 !important;
}

#tmplToggleCode:hover,
#emailToggleCode:hover {
    background-color: #6c7a7b !important;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.9rem;
}

.filters {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.filter-header-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.filter-toggle {
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #333;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-toggle:hover {
    background: #eef1f4;
}

.filter-active-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #374151;
    font-size: 0.9rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
    white-space: nowrap;
}

.filters.collapsed .filter-form {
    display: none;
}

.filters.collapsed {
    padding-bottom: 12px;
}

.filter-header h3 {
    margin: 0;
}

.filter-set-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-set-select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: end;
}

.multifilter-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.multifilter-section h4 {
    margin-bottom: 15px;
    font-size: 1em;
    color: #666;
}

.multifilter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.multifilter-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.multifilter-item label {
    font-size: 0.85em;
    color: #666;
}

.multifilter-input {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.9em;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 0.9rem;
    color: #666;
}

.form-group input,
.form-group select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 1rem;
}

.table-container {
    background: white;
    border-radius: 5px;
    overflow-x: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

/* Finalisten: schmalere Spalten für Eingeladen/Bestätigt */
.data-table th.col-invited,
.data-table td.col-invited {
    width: 140px;
    max-width: 160px;
    font-size: 0.85rem;
}

.data-table th.col-confirmed,
.data-table td.col-confirmed {
    width: 180px;
    max-width: 220px;
    font-size: 0.82rem;
    line-height: 1.25;
}

/* Eingeladen-Spalte: Mail-Icons dezenter */
.email-log-icon {
    color: #6b7280; /* grau */
}

/* Eingeladen-Spalte: viele Icons umbrechen statt überlappen */
.email-log-icons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    max-width: 100%;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.data-table tr.data-modified {
    background-color: #fff8e1;
}

.data-table tr.data-modified:hover {
    background-color: #ffecb3;
}

/* Abgelehnte Bewerber dezenter darstellen */
.data-table tr.row-rejected td {
    color: #8a8a8a;
    background-color: #f7f7f7;
}

/* Bestätigte Termine dezent grün */
.data-table tr.row-confirmed td {
    background-color: #ecfdf5;
}
.data-table tr.row-confirmed:hover td {
    background-color: #d1fae5;
}

/* Abgesagte Termine dezent rot */
.data-table tr.row-declined td {
    background-color: #fef2f2;
}
.data-table tr.row-declined:hover td {
    background-color: #fee2e2;
}

.data-table tr.row-rejected:hover td {
    color: #6f6f6f;
    background-color: #f0f0f0;
}

/* Termin-Konflikte (Doppelbelegung) */
.termin-conflict {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

/* Termine-Seite (2 Spalten) */
.termine-layout {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.termine-left {
    flex: 0 0 520px;
    min-width: 420px;
}

.termine-right {
    flex: 1;
    min-width: 520px;
}

.finalist-row {
    cursor: pointer;
}

.finalist-row.selected-finalist td {
    background: #fee2e2;
    border-bottom-color: #fecaca;
}

/* Terminplan rechts (wie Terminvergabe-Popup, aber mit Cards) */
.termine-right .availability-calendar {
    gap: 16px;
}

.termine-plan .time-slot.plan-slot {
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 0.95rem;
    border: 1px solid #eee;
    min-height: 78px;
}

/* Terminplanung: Slot-Kompatibilität */
.termine-plan .time-slot.plan-slot.avail-bad {
    opacity: 0.55;
    cursor: not-allowed;
}

.termine-plan .time-slot.plan-slot.avail-ok {
    opacity: 1;
}

/* Automatische Zuteilung Overlay */
.auto-assign-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auto-assign-card {
    background: #fff;
    padding: 18px 22px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 280px;
    text-align: center;
}

.auto-assign-title {
    font-weight: 700;
    color: #111827;
}

.auto-assign-bar {
    height: 8px;
    margin-top: 12px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.auto-assign-bar-inner {
    position: absolute;
    height: 100%;
    width: 40%;
    background: #2563eb;
    border-radius: 999px;
    animation: autoAssignBar 1.2s ease-in-out infinite;
}

@keyframes autoAssignBar {
    0% { left: -45%; }
    50% { left: 30%; }
    100% { left: 110%; }
}

.termine-plan .time-slot.plan-free {
    background: #fff;
    color: #333;
}

.termine-plan .time-slot.plan-booked {
    /* gebucht: dezentes Grün */
    background: #dce3fc;
    border-color: #86aaf0;
}

.termine-plan .time-slot.plan-conflict {
    /* Konflikt-Rot entfernt (Doppelbelegung soll nicht rot sein) */
    background: #dce3fc;
    border-color: #86aaf0;
}

/* bestätigt: etwas dunkleres Grün (wird aktiv, sobald Slot/Termin als bestätigt markiert wird) */
.termine-plan .time-slot.plan-confirmed {
    /* bestätigt: nur leicht dunkler als gebucht (weniger leuchtend) */
    background: #cfeee0;
    border-color: #8fd8b4;
}

.termine-plan .plan-time {
    font-weight: 800;
    color: #374151;
    margin-bottom: 6px;
}

.termine-plan .plan-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.termine-plan .plan-content.plan-content-split {
    flex-direction: row;
}

.termine-plan .plan-content.plan-content-split .termin-card {
    flex: 1;
}

.termin-card {
    border-radius: 10px;
    padding: 10px;
    border: 1px solid rgba(0,0,0,0.06);
}

.termin-card-booked {
    /* etwas dunkler/grünlicher als vorher */
    background: rgba(255,255,255,0.75);
}

.termin-card-confirmed {
    /* bestätigt: nur leicht dunkler als gebucht (weniger leuchtend) */
    background: rgba(207, 238, 224, 0.92) !important;
    border-color: rgba(143, 216, 180, 0.90) !important;
}

.termin-card-declined {
    background: #fee2e2 !important;
    border-color: #fecaca !important;
}

.termin-card-declined .termin-card-name,
.termin-card-declined .termin-card-info {
    color: #7f1d1d !important;
}

.termin-card-conflict {
    /* Konflikt-Rot entfernt */
    background: rgba(255,255,255,0.75);
    border-color: rgba(0,0,0,0.06);
}

.termin-card-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.termin-card-name {
    font-weight: 900;
    color: #111827;
    line-height: 1.2;
}

.termin-card-info {
    margin-top: 6px;
    font-size: 0.9em;
    color: #374151;
}

.termin-card-actions {
    display: flex;
    gap: 8px;
}

.termin-card-actions button {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 2px 4px;
}

.termin-card-actions .fa-eye {
    color: #111827;
}

.termin-card-actions .fa-calendar-plus,
.termin-card-actions .fa-calendar-days {
    color: #6b7280;
}

.termin-card-actions .fa-mobile-screen {
    color: #6366f1;
}

.termin-card-actions a.termin-ical {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.termin-card-actions .fa-trash {
    color: #b91c1c;
}

@media (max-width: 1100px) {
    .termine-layout { flex-direction: column; }
    .termine-left, .termine-right { flex: 1; min-width: unset; }
}

/* Prioritätenskala Styles */
.priority-scale {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    justify-content: space-between;
}

.priority-option {
    flex: 1;
    cursor: pointer;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    text-align: center;
    transition: all 0.2s;
    background: white;
}

.priority-option:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.priority-option.selected {
    border-color: #2c3e50;
    border-width: 3px;
    background-color: #f8f9fa;
}

.priority-label {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.priority-bar {
    height: 30px;
    border-radius: 3px;
    width: 100%;
}

.priority-wichtig {
    background-color: #fff3cd;
}

.priority-weniger_wichtig {
    background-color: #f8f9fa;
}

/* Status-Symbole Styles */
.star-new {
    color: #333;
}

.star-finalist {
    color: #ffd700;
}

.reject-inactive {
    color: #999;
}

.reject-active {
    color: #f44336;
    /* Rot-weißes Durchfahrt-Verboten-Symbol */
    text-shadow: 
        -1px -1px 0 white,
        1px -1px 0 white,
        -1px 1px 0 white,
        1px 1px 0 white,
        0 0 2px white;
    filter: drop-shadow(0 0 1px white);
}

/* Augen-Symbol (Details) schwarz */
.btn-view .fa-eye,
.btn-view i.fa-eye {
    color: #333;
}

/* Pulsierender gelber Import-Link bei neuen Bewerbungen */
#importNavLink.has-new-responses {
    background-color: #ffeb3b;
    color: #333;
    font-weight: bold;
    border-radius: 4px;
    padding: 5px 10px;
    animation: pulse-yellow 2s infinite;
}

@keyframes pulse-yellow {
    0% {
        background-color: #ffeb3b;
        box-shadow: 0 0 0 0 rgba(255, 235, 59, 0.7);
    }
    50% {
        background-color: #ffc107;
        box-shadow: 0 0 0 10px rgba(255, 235, 59, 0);
    }
    100% {
        background-color: #ffeb3b;
        box-shadow: 0 0 0 0 rgba(255, 235, 59, 0);
    }
}

.flash-messages {
    margin-bottom: 20px;
}

.flash {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.import-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.import-card {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.import-card h3 {
    margin-bottom: 15px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

/* Sortierbare Spalten */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 25px !important;
}

.sortable:hover {
    background-color: #e9ecef;
}

.sortable::after {
    content: ' ↕';
    position: absolute;
    right: 8px;
    color: #999;
    font-size: 0.8em;
}

.sortable.asc::after {
    content: ' ↑';
    color: #333;
}

.sortable.desc::after {
    content: ' ↓';
    color: #333;
}

/* Verfügbarkeitsanzeige */
.verfuegbarkeit-cell {
    min-width: 120px;
}

.verfuegbarkeit-bar {
    height: 20px;
    border-radius: 3px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85em;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Detail-Tabelle im Modal */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.detail-table th,
.detail-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.detail-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    width: 30%;
}

/* Info-Icon für Tooltips */
.info-icon {
    cursor: help;
    margin-left: 5px;
    font-size: 0.9em;
    opacity: 0.6;
    display: inline-block;
}

.info-icon:hover {
    opacity: 1;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 350px;
    max-width: 90vw;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 10000;
    bottom: 125%;
    left: 50%;
    margin-left: -175px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9em;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Overflow für Tabellen-Header */
.data-table thead {
    position: relative;
    z-index: 1;
}

.data-table thead th {
    position: relative;
    overflow: visible;
}

/* Modal groß für Details */
.modal-large {
    max-width: 900px;
    max-height: 90vh;
}

.detail-content-scrollable {
    max-height: 70vh;
    overflow-y: auto;
    padding: 10px;
}

.detail-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-section h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.editable-table input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    word-wrap: break-word;
    white-space: normal;
}

.editable-table input:focus {
    border-color: #3498db;
    outline: none;
}

.editable-table th {
    word-wrap: break-word;
    max-width: 200px;
}

.contact-box {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.modal-actions {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

/* Verfügbarkeits-Kalender */
.availability-calendar {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.calendar-day {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
}

.calendar-day h5 {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
    background-color: #f8f9fa;
    padding: 8px;
    border-radius: 3px;
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.time-slot {
    padding: 8px;
    border-radius: 3px;
    text-align: center;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    transition: all 0.2s;
}

.time-slot.available {
    background-color: #4caf50;
    color: white;
}

.time-slot.unavailable {
    background-color: #e0e0e0;
    color: #666;
}

.time-slot.unavailable:hover {
    background-color: #d0d0d0;
    border: 2px solid #3498db;
}

/* Terminvergabe-Kalender (Finalisten): States */
.time-slot.termin-free {
    background: #ffffff;
    color: #333;
    border: 1px solid #ddd;
}

.time-slot.termin-free:hover {
    border: 2px solid #3498db;
}

.time-slot.termin-blocked {
    background-color: #e0e0e0;
    color: #666;
}

.time-slot.termin-current {
    background-color: #4caf50;
    color: #fff;
}

.time-slot.termin-selected {
    outline: 3px solid #2563eb;
    outline-offset: 0px;
}