/* --- GRUNDEINSTELLUNGEN & VARIABLEN --- */
:root {
    --bg-color: #f4f4f9;
    --sidebar-bg: #ffffff;
    --text-color: #333333;
    --secondary-text: #777777;
    --border-color: #e0e0e0;
    
    /* GRÜN */
    --accent-color: #2ecc71; 
    --accent-hover: #27ae60;
    --danger-color: #e74c3c;
    
    --primary-btn: #333;
    --primary-btn-text: #fff;
    --input-bg: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --tooltip-bg: #333;
    --tooltip-text: #fff;
}

/* Darkmode Variablen */
body.dark-mode {
    --bg-color: #121212;
    --sidebar-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --secondary-text: #aaaaaa;
    --border-color: #333333;
    
    --accent-color: #00b894; 
    --accent-hover: #00a884;
    --danger-color: #ff4757;
    
    --primary-btn: #e0e0e0;
    --primary-btn-text: #121212;
    --input-bg: #2c2c2c;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --tooltip-bg: #fff;
    --tooltip-text: #000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
}

/* --- CUSTOM TOOLTIPS (Sofortige Anzeige) --- */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%; /* Über dem Element */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--tooltip-bg);
    color: var(--tooltip-text);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    animation: tooltipFade 0.1s forwards; /* Sehr schnell */
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@keyframes tooltipFade {
    to { opacity: 1; transform: translateX(-50%) translateY(-2px); }
}

/* --- LAYOUT --- */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* --- SIDEBAR --- */
.sidebar {
    width: 25%;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 10px;
    background: var(--bg-color);
    border-radius: var(--radius);
}

.profile-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    overflow: hidden;
    position: relative;
}

/* Profilbild Styles */
.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-actions {
    display: flex;
    gap: 5px;
}

.logout-btn, .settings-btn {
    background: none;
    border: none;
    color: var(--secondary-text);
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
}
.logout-btn:hover, .settings-btn:hover {
    color: var(--text-color);
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    padding: 12px 15px;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--secondary-text);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    margin-bottom: 5px;
}

.sidebar-nav li:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
}
.sidebar-nav li.active {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-weight: 600; 
}

/* --- KLEINER KALENDER (SIDEBAR) --- */
.calendar-wrapper {
    margin-top: 20px;
    background: var(--bg-color);
    border-radius: var(--radius);
    padding: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.calendar-header .current-date {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
}

.calendar-header .icons span {
    height: 30px;
    width: 30px;
    color: var(--secondary-text);
    font-size: 0.8rem;
    margin: 0 2px;
    cursor: pointer;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.calendar-header .icons span:hover {
    background: var(--border-color);
    color: var(--text-color);
}

.calendar-body ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    text-align: center;
}

.calendar-body .weeks li {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--secondary-text);
    width: calc(100% / 7);
    margin-bottom: 5px;
}

.calendar-body .days {
    margin-top: 5px;
}

.calendar-body .days li {
    width: calc(100% / 7);
    font-size: 0.85rem;
    color: var(--text-color);
    margin-bottom: 5px;
    height: 30px;
    line-height: 30px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.calendar-body .days li:not(.inactive):hover::before {
    content: "";
    position: absolute;
    height: 28px;
    width: 28px;
    background: var(--border-color);
    border-radius: 50%;
    z-index: -1;
}

.calendar-body .days li.inactive {
    color: var(--secondary-text);
    opacity: 0.4;
    pointer-events: none;
}

.calendar-body .days li.active {
    color: #fff;
}

.calendar-body .days li.active::before {
    content: "";
    position: absolute;
    height: 28px;
    width: 28px;
    background: var(--accent-color);
    border-radius: 50%;
    z-index: -1;
}

.calendar-body .days li.selected-date:not(.active) {
    color: var(--accent-color);
    font-weight: bold;
}

.calendar-body .days li.selected-date:not(.active)::before {
    content: "";
    position: absolute;
    height: 28px;
    width: 28px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    z-index: -1;
}

.calendar-body .days li.has-event::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 50%;
}
.calendar-body .days li.active.has-event::after {
    background-color: #fff; 
}

/* --- GROSSER KALENDER (VIEW) --- */
#fullCalendarContainer {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.fc-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.fc-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-text);
}

.fc-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 1fr;
    gap: 10px;
    flex: 1;
    overflow-y: auto;
}

.fc-day {
    background-color: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fc-day:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}

.fc-day.inactive {
    opacity: 0.3;
    pointer-events: none;
    background: transparent;
    border: none;
}

.fc-day.today {
    border: 2px solid var(--accent-color);
}

.fc-day-number {
    font-weight: 600;
    font-size: 1.1rem;
}

.fc-event-dots {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.fc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-color);
}
.fc-dot.todo { background-color: #3498db; }
.fc-dot.image { background-color: #9b59b6; }


/* --- MAIN CONTENT --- */
.main-content {
    width: 75%;
    display: flex;
    flex-direction: column;
    padding: 30px 50px;
    overflow-y: auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.search-container {
    position: relative;
    width: 60%;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-text);
}

.search-container input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border-radius: 50px; 
    border: none;
    background-color: #e0e0e0; 
    color: var(--text-color);
    outline: none;
}

body.dark-mode .search-container input {
    background-color: #333;
}

.header-actions .btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--secondary-text);
    cursor: pointer;
    margin-left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.header-actions .btn-icon:hover {
    background-color: var(--border-color);
    color: var(--text-color);
}

.greeting-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
}

.date-header {
    margin-bottom: 30px;
}

.date-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
}

.subtitle {
    color: var(--secondary-text);
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-text:hover {
    color: var(--accent-hover);
}

.thought-input-area {
    background-color: var(--sidebar-bg);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

.thought-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.type-btn {
    border: none;
    background: transparent;
    color: var(--secondary-text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
}

.type-btn.active, .type-btn:hover {
    color: var(--accent-color);
    background-color: var(--bg-color);
}

/* Editor Toolbar */
.editor-toolbar {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    padding: 5px;
    background: var(--bg-color);
    border-radius: 6px;
    width: fit-content;
}

.editor-toolbar button {
    border: none;
    background: transparent;
    color: var(--secondary-text);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}
.editor-toolbar button:hover {
    background-color: rgba(0,0,0,0.1);
    color: var(--text-color);
}
.editor-toolbar .separator {
    color: var(--border-color);
    margin: 0 5px;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Rich Input Style */
.rich-input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: var(--input-bg);
    color: var(--text-color);
    outline: none;
    min-height: 46px;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* Placeholder Hack für ContentEditable */
.rich-input[placeholder]:empty:before {
    content: attr(placeholder);
    color: #999;
}

.input-wrapper input[type="file"] {
    flex: 1;
    color: var(--text-color);
}

.btn-primary {
    background-color: var(--primary-btn);
    color: var(--primary-btn-text);
    border: none;
    padding: 0 25px;
    height: 46px;
    border-radius: var(--radius);
    cursor: pointer;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: var(--radius);
    cursor: pointer;
}
.btn-secondary:hover {
    background-color: var(--border-color);
}
.btn-small {
    padding: 4px 10px;
    font-size: 0.8rem;
}
.btn-icon-only {
    padding: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Mic Recording Animation */
.recording-active {
    color: white !important;
    background-color: var(--danger-color) !important;
    border-color: var(--danger-color) !important;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius);
    cursor: pointer;
}
.btn-danger:hover {
    opacity: 0.9;
}

.quick-hash-container {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.quick-hash-btn {
    font-size: 0.8rem;
    padding: 4px 10px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    color: var(--secondary-text);
    cursor: pointer;
}
.quick-hash-btn:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.thoughts-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- ITEM LAYOUT --- */
.thought-item {
    background-color: var(--sidebar-bg);
    padding: 0; 
    border-radius: var(--radius);
    border-bottom: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

.thought-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    width: 100%;
    cursor: pointer;
    user-select: none;
}

.drag-handle {
    cursor: grab;
    color: var(--secondary-text);
    margin-right: 15px;
    opacity: 0.5;
}
.drag-handle:active {
    cursor: grabbing;
}

.header-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
}

.preview-text {
    font-size: 1.1rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}
/* Damit Formatierung in Vorschau nicht stört */
.preview-text * {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0; padding: 0;
}

.header-date {
    font-size: 0.8rem;
    color: var(--secondary-text);
}

/* Expand Icon */
.expand-icon {
    margin-right: 15px;
    cursor: pointer;
    color: var(--secondary-text);
    transition: transform 0.3s;
}

.thought-item.expanded .expand-icon {
    transform: rotate(180deg);
}

.thought-body {
    display: none;
    padding: 0 20px 20px 50px; 
    border-top: 1px dashed var(--border-color);
    margin-top: 5px;
}

.thought-item.expanded .thought-body {
    display: block;
}

.full-text {
    font-size: 1rem;
    line-height: 1.5;
    white-space: pre-wrap;
    margin-top: 10px;
}
/* Formatierten Content erlauben */
.full-text ul { padding-left: 20px; }
.full-text b { font-weight: bold; }
.full-text i { font-style: italic; }

.thought-actions {
    display: flex;
    gap: 10px;
    margin-left: auto; 
    opacity: 0.5;
    align-items: center;
}

.thought-item:hover .thought-actions {
    opacity: 1;
}

/* Editier-Modus Styles */
.editing-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.editable-rich {
    width: 100%;
    min-height: 80px;
    padding: 8px;
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--text-color);
    outline: none;
}

.hashtag {
    color: var(--accent-color);
    font-weight: 600;
}

.clickable-date {
    cursor: pointer;
    transition: color 0.2s;
    font-weight: 500;
}

.hashtag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hashtag-chip {
    background-color: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    padding: 10px 15px; 
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.hashtag-chip:hover {
    background-color: var(--accent-color);
    color: white;
}

.delete-tag-icon {
    margin-left: 10px;
    font-size: 0.9rem;
    color: var(--secondary-text);
    transition: color 0.2s;
    padding: 2px;
}

.delete-tag-icon:hover {
    color: #ff4757; 
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}

.hashtag-chip:hover .delete-tag-icon {
    color: rgba(255, 255, 255, 0.7);
}
.hashtag-chip:hover .delete-tag-icon:hover {
    color: #fff;
    background: #ff4757;
}

.hashtag-manager {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    background-color: var(--sidebar-bg);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hashtag-manager input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: var(--input-bg);
    color: var(--text-color);
    outline: none;
}

.thought-image-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius);
    margin-top: 10px;
    display: block;
}

.list-children-container {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
}
.list-children-container .thought-item {
    box-shadow: none;
    border-bottom: 1px dashed var(--border-color);
    background: transparent;
}

/* Modals Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.2s;
}

.modal-content {
    background: var(--sidebar-bg);
    color: var(--text-color);
    padding: 30px;
    border-radius: var(--radius);
    width: 450px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}
.small-modal {
    width: 350px;
}

.modal-content h3 {
    margin-bottom: 20px;
    font-weight: 600;
}

.profile-upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}
.avatar-preview-large {
    width: 80px; height: 80px;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    overflow: hidden;
}
.avatar-preview-large img {
    width: 100%; height: 100%; object-fit: cover;
}

.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--secondary-text);
    font-size: 0.9rem;
}
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--text-color);
    outline: none;
}
.form-group input:focus {
    border-color: var(--accent-color);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .app-container { flex-direction: column; }
    .sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--border-color); }
    .sidebar-nav ul { display: flex; overflow-x: auto; }
    .main-content { width: 100%; padding: 20px; }
    .user-profile { display: none; }
}

/* --- PRINT OPTIMIERUNG --- */
/* Dies stellt sicher, dass der Druck immer sauber aussieht, egal wie oft man klickt */
@media print {
    /* Verstecke alles, was nicht der Hauptinhalt ist */
    .sidebar, .top-bar, .thought-input-area, .header-actions, .thought-actions, .btn-text, .user-profile, .drag-handle, .expand-icon, .editor-toolbar, .quick-hash-container, #fullCalendarContainer, .fc-header, .fc-grid-header {
        display: none !important;
    }
    
    /* Layout Reset für Druck */
    .app-container { display: block; height: auto; width: 100%; overflow: visible; }
    .main-content { width: 100%; padding: 0; overflow: visible; height: auto; }
    
    body { 
        background-color: #fff; 
        color: #000; 
        height: auto; 
        overflow: visible; 
        font-size: 12pt;
    }
    
    /* Einträge lesbar machen */
    .thought-item { 
        border: 1px solid #ccc; 
        margin-bottom: 20px; 
        page-break-inside: avoid;
        box-shadow: none;
        background-color: #fff;
    }
    
    .thought-body { 
        display: block !important; 
        border: none; 
        padding: 10px 20px; 
    }
    
    .thoughts-container {
        display: block;
    }

    /* Wenn Full Calendar aktiv ist, drucke diesen */
    body.print-calendar .sidebar,
    body.print-calendar .thought-input-area,
    body.print-calendar .thoughts-container,
    body.print-calendar .date-header {
        display: none !important;
    }
    
    body.print-calendar #fullCalendarContainer {
        display: block !important;
    }
    
    body.print-calendar .fc-grid {
        overflow: visible;
        display: grid;
    }
    body.print-calendar .fc-day {
        border: 1px solid #000;
        min-height: 100px;
    }
}
/* --- 1. Tooltips schneller (kein Delay) --- */
[data-tooltip]:hover::after {
    transition-delay: 0s; /* Sofort */
    animation-duration: 0.1s; /* Sehr schnell */
}

/* --- 2. Suchleiste dunkler --- */
.search-container input {
    /* Vorher #e0e0e0, jetzt etwas dunkleres Grau */
    background-color: #d1d1d6; 
}
/* Im Dark Mode auch etwas anpassen für besseren Kontrast */
body.dark-mode .search-container input {
    background-color: #3a3a3a;
}

/* --- 3. "HEUTE" Schriftgröße verkleinern --- */
.date-header h1 {
    font-size: 1.8rem; /* Vorher 2.5rem */
    font-weight: 600;  /* Etwas fetter zum Ausgleich */
}

/* --- 4. Verschieben-Modal größer & Dark Mode Fix --- */
.small-modal {
    width: 500px; /* Vorher 350px - Breiter */
}

/* Das Eingabefeld für Datum/Zeit größer und Dark-Mode kompatibel machen */
#moveDateTimeInput {
    font-size: 1.1rem;
    padding: 15px;
    margin-top: 10px;
    /* Dieser Befehl sagt dem Browser, dass er native Elemente (wie den Kalender-Popup) 
       automatisch dunkel färben soll, wenn das System/die Seite dunkel ist */
    color-scheme: light dark; 
}

/* Dark Mode spezifische Farben für das Input-Feld selbst */
body.dark-mode #moveDateTimeInput {
    background-color: #2c2c2c;
    color: #fff;
    border-color: #444;
}
/* --- NEU: TODO LISTEN STYLES --- */
/* Wenn eine Checkbox angehakt ist, streichen wir den Text im Elternelement durch */
.todo-line.checked {
    text-decoration: line-through;
    color: var(--secondary-text);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.todo-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.todo-line input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color); /* Färbt die Checkbox in deiner App-Farbe */
}

/* --- NEU: DATUMSFELD & KALENDER VERGRÖSSERN --- */
/* Das beeinflusst das Eingabefeld im Modal */
#moveDateTimeInput {
    font-size: 1.5rem; /* Größere Schrift */
    padding: 15px;
    width: 100%;
    /* ZOOM TRICK: Vergrößert das Element UND oft auch das native Popup (Browserabhängig) */
    zoom: 1.2; 
    cursor: pointer;
}

/* Dunkles Farbschema erzwingen (für Browser, die das unterstützen) */
#moveDateTimeInput {
    color-scheme: light dark;
}