:root { --bg: #0d0d1a; --primary: #2383e2; --text-dark: #37352f; }
body { background: var(--bg); font-family: -apple-system, sans-serif; color: #fff; margin: 0; }

.uni-app-container { max-width: 98%; margin: 10px auto; }


/* IPAD VOLLBILD KALENDER FIX */

.calendar-wrapper {

    background: #fff;

    border-radius: 12px;

    padding: 10px;

    margin-bottom: 20px;

    height: 82vh; /* Nutzt 82% der Bildschirmhöhe */

    box-shadow: 0 10px 40px rgba(0,0,0,0.5);

}


#uni-calendar {

    height: 100%;

    color: var(--text-dark);

}


/* Kompakter Modus für iPad */

.fc-toolbar { margin-bottom: 0.5em !important; font-size: 0.9em; }

.fc-toolbar-title { color: var(--text-dark) !important; font-size: 1.1em !important; font-weight: 800; }

.fc th, .fc td { color: var(--text-dark) !important; font-size: 0.85em; }

.fc-event-main { font-weight: 600; padding: 1px; font-size: 0.8em; }






.app-header { display: flex; justify-content: space-between; align-items: center; margin: 40px 0 20px; }
.btn-primary { background: var(--primary); color: white; border: none; padding: 12px 24px; border-radius: 10px; font-weight: bold; cursor: pointer; }

/* TABELLEN OPTIK */
.notion-table-wrapper { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.4); margin-bottom: 30px; }
.notion-table { width: 100%; border-collapse: collapse; color: var(--text-dark); font-size: 14px; }
.notion-table th { text-align: left; padding: 12px; font-size: 11px; color: #999; border-bottom: 1px solid #eee; text-transform: uppercase; }
.notion-table td { padding: 12px; border-bottom: 1px solid #eee; }
.day-divider { background: #fbfbfa; font-weight: 800; font-size: 10px; color: #888; text-transform: uppercase; padding: 15px 12px 5px !important; }

.mini-status-bar { display: flex; gap: 4px; }
.mini-block { display: inline-flex; justify-content: center; align-items: center; min-width: 24px; height: 24px; border-radius: 6px; font-size: 11px; font-weight: bold; transition: background 0.2s; }
.status-fertig { background: #d1fae5; color: #059669; }
.status-bearbeitet { background: #e0e7ff; color: #4338ca; }
.status-none { background: #f3f3f3; color: #bbb; }

.tag { padding: 4px 10px; border-radius: 5px; font-size: 12px; font-weight: 700; }
.tag-gray { background: #eee; color: #555; }
.task-row.is-completed { opacity: 0.35; filter: grayscale(1); }
.task-row.is-completed td { text-decoration: line-through; }

/* UNTERAUFGABEN (VERSCHACHTELT) */
.subtask-row { display: none; background: #f9f9f8; }
.subtask-row.active { display: table-row; }
.subtask-list { padding: 10px 40px 20px; }
.parent-block { border: 1px solid #eee; background: #fff; border-radius: 10px; padding: 12px; margin-bottom: 10px; color: var(--text-dark); }
.parent-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.p-header-left { display: flex; align-items: center; gap: 10px; }
.p-icon { font-size: 10px; transition: transform 0.2s; }
.parent-header.active .p-icon { transform: rotate(90deg); }

.child-list { display: none; padding: 10px 0 0 30px; border-top: 1px solid #f0f0f0; margin-top: 10px; }
.child-list.active { display: block; }
.child-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px dashed #eee; font-size: 13px; }
.sub-actions { display: flex; gap: 12px; }
.sub-actions label { display: flex; align-items: center; gap: 4px; font-size: 11px; cursor: pointer; font-weight: 600; }

/* MODAL */
.modal-overlay { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.85); z-index: 1000; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.modal-overlay.active { display: flex; }
.modal-content { background: #fff; padding: 35px; border-radius: 25px; width: 450px; color: var(--text-dark); position: relative; }
.form-row { display: flex; gap: 12px; margin-bottom: 15px; }
.form-row input, .form-row select { flex:1; padding: 14px; border: 1px solid #ddd; border-radius: 12px; font-size: 15px; }
.btn-save { width: 100%; padding: 16px; background: var(--primary); color: #fff; border: none; border-radius: 15px; font-weight: bold; cursor: pointer; }
.close-x { position: absolute; top: 15px; right: 15px; background: #f0f0f0; border: none; width: 35px; height: 35px; border-radius: 50%; font-size: 20px; cursor: pointer; }