.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #365ac6 0%, #2f52ba 35%, #2647a8 100%);
    color: #fff;
    padding: 15px;
}

/* Responsive preview layout: column on mobile, row on desktop */
.preview-container-responsive {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px;
}

.preview-content-pane,
.preview-side-pane {
    flex: 1 1 100%;
    width: 100%;
    min-width: 100%;
}

#preview-wrapper {
    border: 1px solid #c9d8fb;
    border-radius: 10px;
    background: #ffffff;
    padding: 12px;
}

@media (min-width: 768px) {
    .preview-container-responsive {
        flex-direction: row;
        gap: 12px;
        padding: 12px;
    }

    .preview-container-responsive.has-preview-pane .preview-content-pane,
    .preview-container-responsive.has-preview-pane .preview-side-pane {
        flex: 0 0 50%;
        width: 50%;
        min-width: 50%;
        padding: 20px;
    }

    .preview-content-pane.welcome-content-pane {
        flex: 0 0 75%;
        width: 75%;
        min-width: 75%;
        max-width: 75%;
    }
}

#sidebarCollapse {
    display: none;
}

.signin-page {
    max-width: 400px;
    margin: 100px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.signin-page .form-group {
    margin-bottom: 20px;
}

.signin-page .form-group:last-child {
    margin-bottom: 0;
}

.signin-page .signin-submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    background-color: #4e73df;
}

.signin-page .link-container {
    text-align: center;
    margin-top: 15px;
}

.signin-page .link-container a {
    color: #4e73df;
}

.signin-page .signin-forgot-link-wrap {
    margin-top: -10px;
    margin-bottom: 14px;
}

.signin-page .social-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 8px;
    color: #6c757d;
    font-size: 14px;
}

.signin-page .social-divider::before,
.signin-page .social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e9ecef;
}

.signin-page .btn-social {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 5px;
    margin-top: 10px;
    border: 1px solid #dcdfe3;
    background-color: #ffffff;
    color: #2f3842;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.signin-page .btn-social:hover {
    background-color: #f8f9fa;
    color: #2f3842;
}

.signin-page .btn-demo {
    width: 100%;
    margin-top: 12px;
    border-radius: 5px;
    padding: 10px 12px;
    border: 1px dashed #7f8ea3;
    background-color: #f8fafc;
    color: #1f2d3d;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.signin-page .btn-demo:hover {
    color: #1f2d3d;
    background-color: #eef3f8;
    text-decoration: none;
}

.signin-page .social-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

.signin-page .btn-google .social-icon {
    background-color: #ea4335;
    color: #fff;
}

.signin-page .social-note {
    text-align: center;
    color: #6c757d;
    margin-top: 8px;
    font-size: 13px;
}

.signin-page .signin-split-wrap {
    display: grid;
    grid-template-columns: 33% 34% 33%;
    gap: 18px;
    align-items: stretch;
}

.signin-page .signin-split-block {
    border: 1px solid #d9e2f0;
    border-radius: 12px;
    padding: 16px;
    background: #fbfdff;
}

.signin-page .signin-split-block--logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

.signin-page .signin-logo--column {
    width: 100%;
    margin: 0;
}

.signin-page .signin-split-block--right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(160deg, #f6f9ff 0%, #edf3ff 100%);
}

.signin-page .signin-block-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #1d2a44;
}

.signin-page .signin-side-btn {
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 10px;
}

#sidebarMenu {
    width: 100%;
}

.sidebar-items {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.sidebar-heading {
    width: 100%;
    display: flex;
    align-items: start;
    justify-content: space-between;
}

.content {
    flex-grow: 1;
    padding: 15px;
}

.sidebar a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 0.65rem 0.5rem;
    border-radius: 0.5rem;
}

.sidebar a:hover {
    background: #7593ed;
}

.profile {
    display: flex;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding-bottom: 10px;
    border-bottom: 1px solid #7593ed;
    margin-bottom: 14px;
}

.profile-info {
    min-width: 0;
}

.profile-title-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.1;
}

.profile-greeting {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #dbe7ff;
    font-weight: 700;
}

.sidebar .profile .profile-name {
    display: inline;
    padding: 0;
    margin: 0;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
}

.sidebar .profile .profile-name:hover {
    background: transparent;
    color: #ffd7a0;
}

.profile-school {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #e7efff;
    opacity: 0.95;
}

.sidebar .dropdown-toggle {
    font-size: 1.02rem;
    font-weight: 700;
    padding-top: 0.62rem;
    padding-bottom: 0.42rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar .dropdown-toggle > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sidebar .dropdown-toggle::after {
    margin-left: 8px;
    opacity: 0.85;
}

.sidebar ul.list-unstyled li > a {
    font-size: 0.88rem;
    font-weight: 500;
    padding-top: 0.24rem;
    padding-bottom: 0.24rem;
    margin: 0;
}

.sidebar ul.list-unstyled {
    margin-bottom: 0.1rem;
}

.sidebar-menu .menu-section {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 8px 10px;
    box-shadow: 0 6px 14px rgba(9, 26, 81, 0.14);
}

.sidebar-menu .menu-section + .menu-section {
    margin-top: 10px;
}

.sidebar-menu .menu-section .list-unstyled {
    margin-top: 2px;
}

.sidebar-menu .menu-section .list-unstyled li a {
    color: #e9f1ff;
    border-radius: 8px;
}

.sidebar-menu .menu-section .list-unstyled li a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.sidebar-menu .menu-section .list-unstyled .dropdown-toggle {
    font-size: 0.92rem;
    font-weight: 600;
    padding-top: 0.22rem;
    padding-bottom: 0.22rem;
    color: #f4f8ff;
}

.sidebar .sidebar-logout-wrap a {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.sidebar .sidebar-logout-wrap a:hover {
    background: rgba(255, 255, 255, 0.14);
}

.sidebar .sidebar-public-links {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 10px;
    margin-top: 8px;
}

.sidebar .sidebar-public-links a {
    display: block;
    padding: 2px 2px;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(235, 242, 255, 0.7);
    text-decoration: none;
    border-radius: 6px;
}

.sidebar .sidebar-public-links a:hover {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
}

main {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}

.dashboard-form {
    padding: 10px 20px;
    height: 100vh;
    overflow-y: scroll;
    background-color: #dce8f5;
    color: #121212;
}

#preview,
.task-types-container {
    height: 100vh;
    overflow-y: scroll;
    padding: 5px 10px;
}

#view-panel {
    width: 45%;
    height: 100vh;
    overflow-y: scroll;
    /*padding: 10px 20px;*/
}

#preview-pane #view-panel {
    width: 100%;
    height: 100%;
}

#view-panel>#preview {
    width: 100%;
    height: fit-content;
}

#preview>table th.red-head {
    color: #ff3c6a;
}

#schedule-head {
    background-color: #e9efff;
}

table,
tr,
td,
th {
    border: 1px solid #000;
}

.table img {
    height: 45px !important;
    width: auto !important;
}

#preview>table>thead>tr>th {
    text-align: center;
    padding: 0.2rem;
}

#preview>table>thead>tr>th:nth-child(2) {
    text-align: left;
}

.day-table td {
    padding: 5px;
}

#preview table.day-table:nth-child(4n + 1) th:nth-child(1) {
    background-color: #ff3c6a;
    border: 1px solid #ff3c6a;
    color: #ffbabe;
}

.task-type-icon {
    width: 50px;
    object-fit: cover;
    object-position: center;
}

#preview table.day-table:nth-child(4n + 2) th:nth-child(1) {
    background-color: #5272e9;
    border: 1px solid #5272e9;
    color: #e9efff;
}

#preview table.day-table:nth-child(4n + 3) th:nth-child(1) {
    background-color: #24b0c9;
    border: 1px solid #24b0c9;
    color: #e6feff;
}

#preview table.day-table:nth-child(4n + 4) th:nth-child(1) {
    background-color: #d78d03;
    border: 1px solid #d78d03;
    color: #ffe7ba;
}

.day-table td:nth-child(1) {
    width: 70%;
}

.day-table td:nth-child(2) {
    width: 20%;
}

.day-table td:nth-child(3) {
    width: 10%;
}

.day-table td:nth-child(4) {
    width: 15%;
}

.day-table img {
    max-width: 40px !important;
    max-height: 35px;
    height: auto !important;
}

.day-table th:nth-child(3) {
    font-size: 10px;
}

.day-table th:nth-child(4) {
    font-size: 10px;
}

td.icons {
    font-size: 20px;
    text-align: center;
}

#preview td.icons-feedback i {
    color: #24b0c9;
}

#preview td.icons-feedback i:nth-child(2) {
    color: #d78d03;
    transform: rotate(-90deg);
}

#preview td.icons-feedback i:nth-child(3) {
    color: #ff3c6a;
    transform: rotate(180deg);
}

.signin-logo {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

.sidebar-login-logo {
    width: 160px;
    max-width: 100%;
    height: auto;
    display: block;
    margin:auto;
}

.sidebar-login-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.day-input-group {
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
}

.day-input-group select {
    color: white;
}

.day-input-group:nth-child(4n + 1) {
    background-color: #ffbabe;
    border: 2px solid #ff3c6a;
}

.day-input-group:nth-child(4n + 2) {
    background-color: #e9efff;
    border: 2px solid #5272e9;
}

.day-input-group:nth-child(4n + 3) {
    background-color: #e6feff;
    border: 2px solid #24b0c9;
}

.day-input-group:nth-child(4n + 4) {
    background-color: #ffe7ba;
    border: 2px solid #d78d03;
}

.day-input-group:nth-child(4n + 1) .form-select {
    background-color: #ff3c6a;
}

.day-input-group:nth-child(4n + 2) .form-select {
    background-color: #5272e9;
}

.day-input-group:nth-child(4n + 3) .form-select {
    background-color: #24b0c9;
}

.day-input-group:nth-child(4n + 4) .form-select {
    background-color: #d78d03;
}

.day-input-group:nth-child(4n + 1) .form-control {
    background-color: #ffbabe;
    border: 2px solid #ff3c6a;
    color: #ff3c6a;
}

.day-input-group:nth-child(4n + 2) .form-control {
    background-color: #e9efff;
    border: 2px solid #5272e9;
    color: #5272e9;
}

.day-input-group:nth-child(4n + 3) .form-control {
    background-color: #e6feff;
    border: 2px solid #24b0c9;
    color: #24b0c9;
}

.day-input-group:nth-child(4n + 4) .form-control {
    background-color: #ffe7ba;
    border: 2px solid #d78d03;
    color: #d78d03;
}

.schedules-list-container {
    height: 100vh;
    overflow-y: scroll;
}

.my-schedules-shell {
    background: linear-gradient(180deg, #f4f8ff 0%, #e9f0ff 100%);
    border: 1px solid #cddcff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(34, 64, 148, 0.12);
}

.my-schedules-title {
    margin-bottom: 14px;
    color: #203a8f;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.my-schedules-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #b8cbfb;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.my-schedules-table thead th {
    background: linear-gradient(180deg, #365ac6 0%, #2f52ba 100%);
    color: #eef4ff;
    border-color: #2b4ead;
    font-weight: 700;
}

.my-schedules-table tbody td {
    border-color: #d8e3ff;
}

.my-schedules-table tbody tr:nth-child(even) td {
    background: #f8fbff;
}

.my-schedules-table tbody tr:hover td {
    background: #edf3ff;
}

.my-schedules-actions .btn {
    border-radius: 8px;
    border-width: 0;
    font-weight: 700;
}

.my-schedules-actions .btn + .btn,
.my-schedules-actions form {
    margin-left: 6px;
}

.my-schedules-actions .btn-primary {
    background: #2f52ba;
}

.my-schedules-actions .btn-success {
    background: #1f8e6b;
}

.my-schedules-actions .btn-warning {
    background: #f2a22f;
    color: #fff;
}

.my-schedules-actions .btn-danger {
    background: #d24747;
}

.my-schedules-hint {
    border: 1px solid #c9dafd;
    background: #edf3ff;
    color: #1f3e95;
    font-weight: 600;
}

.my-schedules-preview-action {
    background: #2f52ba;
    border-color: #2f52ba;
    font-weight: 700;
    color: white;
}

.my-schedules-preview-action:hover {
    background: #2448ad;
    border-color: #2448ad;
}

.configs-list {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    padding: 0 1rem;
}

.lp-page-title {
    color: #203a8f;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.lp-form-panel,
.lp-config-shell {
    background: linear-gradient(180deg, #f4f8ff 0%, #e9f0ff 100%);
    border: 1px solid #cddcff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(34, 64, 148, 0.1);
}

.lp-form-panel .form-label,
.lp-form-panel label,
.lp-config-shell label {
    color: #1f346f;
    font-weight: 700;
}

.lp-form-panel .form-control,
.lp-form-panel .form-select,
.lp-config-shell .form-control,
.lp-config-shell .form-select {
    border-color: #bbccf8;
    box-shadow: none;
}

.lp-form-panel .form-control:focus,
.lp-form-panel .form-select:focus,
.lp-config-shell .form-control:focus,
.lp-config-shell .form-select:focus {
    border-color: #5f82e4;
    box-shadow: 0 0 0 0.2rem rgba(47, 82, 186, 0.15);
}

.lp-themed-table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #b8cbfb;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.lp-themed-table thead th {
    background: linear-gradient(180deg, #365ac6 0%, #2f52ba 100%);
    color: #eef4ff;
    border-color: #2b4ead;
    font-weight: 700;
}

.lp-themed-table tbody td {
    border-color: #d8e3ff;
    vertical-align: middle;
}

.lp-themed-table tbody tr:nth-child(even) td {
    background: #f8fbff;
}

.lp-themed-table tbody tr:hover td {
    background: #edf3ff;
}

.lp-success-btn {
    background: #1f8e6b;
    border-color: #1f8e6b;
    font-weight: 700;
}

.lp-success-btn:hover {
    background: #187457;
    border-color: #187457;
}

.lp-danger-btn {
    background: #d24747;
    border-color: #d24747;
    font-weight: 700;
}

.lp-danger-btn:hover {
    background: #b63636;
    border-color: #b63636;
}

.configs-table tbody {
    text-transform: none;
}

.daily_tasks_check {
    font-size: 18pt;
    padding: 0 !important;
    text-align: center;
}

.daily-task-pic {
    width: 30px;
}
.edit-schedule {
    padding-top: 10px;
    background-color: lightblue;
    border-radius: 10px;
}
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }

    .dashboard-form {
        width: 100%;
        height: fit-content;
    }

    #preview,
    #view-panel,
    .task-types-container {
        width: 100%;
        height: fit-content;
    }

    .sidebar {
        width: 100%;
        height: fit-content;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        gap: 1rem;
        align-items: center;
        position: relative;
    }

    .sidebar-login-logo-wrap {
        display: none !important;
    }

    #sidebarBurger {
        display: block !important;
        margin-bottom: 10px;
    }

    #sidebarNav:not(.open) .sidebar-menu,
    #sidebarNav:not(.open) .sidebar-public-links,
    #sidebarNav:not(.open) .profile {
        display: none !important;
    }

    #sidebarNav.open .sidebar-menu,
    #sidebarNav.open .sidebar-public-links,
    #sidebarNav.open .profile {
        display: flex !important;
    }

    .profile {
        margin: 0;
        padding: 0;
        border: none;
    }

    .profile img {
        width: 40px;
        height: 40px;
    }

    .schedules-list-container {
        width: 100%;
    }

    .my-schedules-shell {
        padding: 10px;
        border-radius: 10px;
    }

    .lp-form-panel,
    .lp-config-shell {
        padding: 10px;
        border-radius: 10px;
    }

    .my-schedules-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .my-schedules-actions .btn + .btn,
    .my-schedules-actions form {
        margin-left: 0;
    }

    /* Preview-Panel unter Liste */
    #preview-pane,
    #preview-container,
    #preview-panel,
    #preview-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    #preview-pane,
    #preview-container {
        border-left: none !important;
        border-top: 1px solid #b8cbfb;
        margin-top: 18px;
    }
}


.tasks-container {
    border-radius: 4px;
    padding: 4px;
    margin-bottom: 16px;

}

.task-item {
    display: flex;
    /* Zeilen nebeneinander */
    align-items: center;
    /* vertikal mittig */
    padding: 5px;
    margin-bottom: 4px;
    border: 1px solid #000000;
    border-radius: 4px;
    cursor: move;
    /* zeigt Ziehen an */
}

.task-item .col {
    flex: 1;
    /* gleiche Breite für alle Spalten */
    padding: 0 8px;
}

.task-item .col button {
    width: 40px;
}

.task-item .col select,
.task-item .col input {
    width: 100%;
    box-sizing: border-box;
}

.drag-handle {
    width: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    margin-right: 6px;
}

.drag-handle i {
    font-size: 18px;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 6px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.task-item .col {
    flex: 1;
}

.task-row {
    display: grid;
    grid-template-columns: 24px 1fr 80px 80px;
    gap: 10px;
    align-items: center;
    padding: 6px 0;
}

.task-icon {
    height: 24px;
    width: 24px;
    object-fit: contain;
}

.task-desc {
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-feedback-st {
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-feedback-t {
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-col {
    text-align: right;
    font-weight: 500;
}

.week-day {
    margin-bottom: 24px;
}

.day-title {
    margin-bottom: 8px;
}

.task-row {
    display: grid;
    grid-template-columns: 24px 1fr 80px 80px 80px;
    gap: 10px;
    align-items: center;
    padding: 4px 0;
}

.task-header {
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    margin-bottom: 6px;
    padding-bottom: 6px;
}

.task-header>div {
    font-size: 0.85rem;
    opacity: 0.7;
}

.daily-task-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.daily-task-item {
    min-width: 0;
}

/* === Pastel colors for daily task input fields === */
#daily-task-1 {
    background-color: #f5e6e8 !important;
    border-color: #e6b3bc !important;
    color: #8B4D5B !important;
}

#daily-task-1:focus {
    background-color: #f5e6e8 !important;
    border-color: #d98fa0 !important;
    box-shadow: 0 0 0 0.2rem rgba(214, 139, 160, 0.15) !important;
}

#daily-task-2 {
    background-color: #e8eef5 !important;
    border-color: #b8c9e6 !important;
    color: #4d5f8b !important;
}

#daily-task-2:focus {
    background-color: #e8eef5 !important;
    border-color: #8fa0d9 !important;
    box-shadow: 0 0 0 0.2rem rgba(139, 160, 217, 0.15) !important;
}

#daily-task-3 {
    background-color: #e8f5f2 !important;
    border-color: #b8e6dd !important;
    color: #4d8b7f !important;
}

#daily-task-3:focus {
    background-color: #e8f5f2 !important;
    border-color: #8fd9cc !important;
    box-shadow: 0 0 0 0.2rem rgba(139, 217, 204, 0.15) !important;
}

#daily-task-4 {
    background-color: #f5f0e8 !important;
    border-color: #e6d9b8 !important;
    color: #8b7f4d !important;
}

#daily-task-4:focus {
    background-color: #f5f0e8 !important;
    border-color: #d9c78f !important;
    box-shadow: 0 0 0 0.2rem rgba(217, 199, 139, 0.15) !important;
}

.daily-task-pic {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

#prev-topic {
    width: 100%;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.print-topic {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
    color: blue;

}

-preview-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.table-td-daily-tasks {
    width: 25%;
    padding: 0.5rem;
    text-align: center;
    font-weight: 500;

}

#preview-panel {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px;
    background-color: #fff;
}

@media print {
    #preview-pane,
    #preview-panel,
    #preview-wrapper,
    #preview-container {
        border: none !important;
        box-shadow: none !important;
    }
}

.day-cell {
    width: 45px;
    padding: 0;
    vertical-align: middle;
    text-align: center;
}

.day-cell.day-pastel-mon { background: #fdf1f3; color: #9b4d5d; }
.day-cell.day-pastel-tue { background: #f2f6fd; color: #4b5f8e; }
.day-cell.day-pastel-wed { background: #effaf4; color: #3f7a66; }
.day-cell.day-pastel-thu { background: #fff8ed; color: #8b6b3f; }
.day-cell.day-pastel-fri { background: #f4f1fd; color: #65508a; }
.day-cell.day-pastel-weekly { background: #eef2f5; color: #4f5b66; }
.day-cell.day-pastel-default { background: #f7f7f7; color: #4b5563; }

.vertical-day {
    writing-mode: vertical-rl;
    transform: rotate(180deg);

    /* WICHTIG: kein flex */
    display: inline-block;

    width: 100%;

    text-align: center;
    font-weight: 600;

    line-height: 1;
    white-space: nowrap;
}

.td-feedback_teacher {
    width: 15%;
    text-align: center;
}

.td-myfeedback {
    width: 15%;
    text-align: center;
}


@media (max-width: 600px) {
    .task-row {
        grid-template-columns: 24px 1fr;
        grid-template-rows: auto auto;
    }

    .task-col {
        grid-column: 2;
        text-align: left;
        opacity: 0.7;
        font-size: 0.9em;
    }
}

/* ===== Landing Page (3-tile layout) ===== */

.landing-wrap {
    max-width: 80%;
    margin: 32px auto 48px;
    padding: 0 20px;
}

.landing-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    align-items: stretch;
}

.landing-tile {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
    padding: 32px;
}

/* Login tile: reuse .signin-page form styles but override layout */
.landing-tile--login.signin-page {
    flex: 1;
    max-width: none;
    margin: 0;
    border-radius: 14px;
    box-shadow: none;
}

.landing-tile--about {
    display: none;
}

.landing-tile--preview {
    flex: 1;
}

.landing-demo-cta-wrap {
    margin: 0 0 24px;
    text-align: center;
}

.signin-page .landing-demo-cta,
.landing-demo-cta {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #ffb347 0%, #ff8c42 55%, #ff6f61 100%);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 24px rgba(255, 128, 72, 0.32);
}

.signin-page .landing-demo-cta:hover,
.landing-demo-cta:hover {
    color: #ffffff;
    text-decoration: none;
    filter: brightness(0.98);
    transform: translateY(-1px);
}

/* About tile */
.landing-about-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e2d40;
    margin-bottom: 14px;
    line-height: 1.35;
}

.landing-about-lead {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.landing-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.landing-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
    color: #2d3748;
    font-size: 15px;
}

.landing-feature-list li:last-child {
    border-bottom: none;
}

.landing-feature-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

/* Preview tile */
.landing-preview-title {
    font-size: 19px;
    font-weight: 700;
    color: #1e2d40;
    text-align: center;
    margin-bottom: 20px;
}

.landing-slideshow {
    position: relative;
    border-radius: 10px;
    background: #f0f3f8;
    overflow: hidden;
}

.landing-slide {
    display: none;
    flex-direction: column;
    animation: landingSlideIn 0.35s ease;
}

.landing-slide.active {
    display: flex;
}

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

.landing-slide-img-wrap {
    width: 100%;
}

.landing-slide-placeholder {
    width: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, #dce3ef 0%, #c8d2e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a96a3;
    font-size: 16px;
    font-weight: 500;
}

.landing-slide-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.landing-slide-caption {
    padding: 16px 24px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.landing-slide-caption strong {
    font-size: 16px;
    color: #1e2d40;
}

.landing-slide-caption span {
    font-size: 14px;
    color: #6c757d;
}

.landing-slide-btn {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.88);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #2d3748;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.14);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
}

.landing-slide-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.landing-slide-prev { left: 10px; }
.landing-slide-next { right: 10px; }

.landing-slide-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.landing-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d7e0;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.landing-dot.active {
    background: #4e73df;
}

@media (max-width: 767px) {
    .landing-row {
        flex-direction: column;
    }
    .landing-tile--login.signin-page {
        flex: none;
    }
    .signin-page .signin-split-wrap {
        grid-template-columns: 1fr;
    }
    .signin-page .signin-logo--column {
        max-width: 140px;
    }
    .landing-demo-cta {
        max-width: 100%;
    }
    .landing-wrap {
        margin-top: 16px;
        padding: 0 12px;
    }
}

.landing-topbar {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #d7e2f5;
    backdrop-filter: blur(6px);
}

.landing-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 18px;
}

.landing-topbar-logo {
    height: 80px;
    width: auto;
    display: block;
}

.landing-top-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.landing-top-nav a {
    color: #223a78;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.landing-top-nav a:hover {
    color: #2f52ba;
}

.landing-topbar-actions {
    display: flex;
    gap: 10px;
}

.landing-locale-dropdown {
    position: relative;
}

.landing-locale-toggle {
    border: 1px solid #d6e3fb;
    border-radius: 999px;
    background: #f7faff;
    color: #35508f;
    font-weight: 700;
    padding: 5px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.landing-locale-toggle:hover,
.landing-locale-toggle:focus {
    color: #203a8f;
    background: #edf3ff;
    box-shadow: 0 0 0 0.2rem rgba(47, 82, 186, 0.12);
}

.landing-locale-flag {
    font-size: 1rem;
    line-height: 1;
}

.landing-locale-code {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.landing-locale-menu {
    border: 1px solid #d8e4fb;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(28, 55, 124, 0.18);
    padding: 6px;
    min-width: 170px;
}

.landing-locale-item {
    border-radius: 8px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #2a407f;
}

.landing-locale-item:hover {
    background: #edf3ff;
    color: #1f3470;
}

.landing-locale-item.active,
.landing-locale-item.active:hover {
    background: #2f52ba;
    color: #ffffff;
}

.landing-locale-item-flag {
    font-size: 1rem;
    line-height: 1;
}

.landing-topbar-btn {
    border-radius: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.landing-wrap--with-topbar {
    margin-top: 22px;
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
}

.landing-hero-copy {
    background: linear-gradient(160deg, #f5f9ff 0%, #edf3ff 100%);
    border: 1px solid #c9dafd;
    border-radius: 14px;
    padding: 36px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.landing-hero-title {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 12px;
    color: #1e2f5d;
    font-weight: 800;
}

.landing-hero-lead {
    color: #4a5b7c;
    margin-bottom: 16px;
    font-size: 1rem;
}

.landing-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.landing-hero-actions .btn {
    border-radius: 10px;
    font-weight: 700;
}

.landing-trust-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 8px;
    justify-items: center;
}

.landing-trust-list li {
    position: relative;
    padding-left: 26px;
    font-weight: 600;
    color: #335189;
}

.landing-trust-list li::before {
    content: "\2714";
    position: absolute;
    left: 0;
    top: 0;
    color: #2c8b4c;
    font-weight: 800;
}

.landing-screenshot-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 20px;
}

.landing-shot {
    border: 1px solid #d7e4ff;
    border-radius: 12px;
    padding: 0;
    background: #ffffff;
    overflow: hidden;
    cursor: zoom-in;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.landing-shot:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(31, 58, 130, 0.16);
}

.landing-shot img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    display: block;
}

.landing-shot-modal-image {
    height: auto;
    max-height: 60vh;
    width: auto !important;
    max-width: calc(96vw - 2rem);
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

.landing-shot-modal-dialog {
    max-width: min(96vw, 1600px);
    width: fit-content;
}

#screenshotModal .modal-content {
    width: fit-content;
}

#screenshotModal .modal-body {
    display: flex;
    justify-content: center;
}

.landing-section {
    background: #fff;
    border: 1px solid #deebff;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 18px;
}

.landing-section-title {
    font-size: 1.4rem;
    color: #203a8f;
    margin-bottom: 14px;
    font-weight: 800;
}

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.landing-feature-card {
    background: #f6f9ff;
    border: 1px solid #d6e3ff;
    border-radius: 12px;
    padding: 14px;
}

.landing-feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: #243d87;
}

.landing-feature-card p {
    margin: 0;
    color: #4e5e7d;
    font-size: 0.94rem;
}

.landing-section--pain {
    background: linear-gradient(180deg, #fff9f2 0%, #fff4ea 100%);
    border-color: #ffd6b8;
}

.landing-pain-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.landing-pain-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #7a4d22;
}

.landing-pain-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #f08b3e;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.landing-pain-highlight {
    margin-top: 16px;
    border: 1px solid #f4b888;
    background: #fff0e0;
    border-radius: 12px;
    padding: 12px 14px;
    color: #6f3f16;
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-pain-highlight-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.landing-pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.landing-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.landing-payment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-info {
    background-color: #1f8e6b;
}

.landing-payment-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(24, 40, 72, 0.16);
}

.landing-payment-btn--stripe {
    background: #635bff;
    color: #ffffff;
}

.landing-payment-btn--stripe:hover {
    color: #ffffff;
    opacity: 0.95;
}

.landing-payment-btn--paypal {
    background: #ffffff;
    color: #003087;
    border-color: #003087;
}

.landing-payment-btn--paypal:hover {
    color: #003087;
    background: #f6f9ff;
}

.landing-pricing-card {
    background: #f8fbff;
    border: 1px solid #dbe8ff;
    border-radius: 12px;
    padding: 16px;
}

.landing-pricing-card--primary {
    background: linear-gradient(160deg, #f0f6ff 0%, #e8f0ff 100%);
    border-color: #b9cff9;
}

.landing-pricing-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2b4ea8;
    margin-bottom: 8px;
}

.landing-section--demo {
    text-align: center;
}

.landing-login-modal {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #d2e0fb;
}

.landing-login-modal .social-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 8px;
    color: #6c757d;
    font-size: 14px;
}

.landing-login-modal .social-divider::before,
.landing-login-modal .social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e9ecef;
}

.landing-login-modal .btn-social {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #dcdfe3;
    background-color: #ffffff;
    color: #2f3842;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    line-height: 1.2;
}

.landing-login-modal .btn-social:hover {
    background-color: #f8f9fa;
    color: #2f3842;
    text-decoration: none;
}

.landing-login-modal .social-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
}

.landing-login-modal .social-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.landing-login-links {
    margin-top: 14px;
}

.demo-info{
    background-color: #FFA500;
    border-color: #ff4500;
    color: #ff0000;
    font-weight: 700;
    text-align: center;
}
.alert-info{
    background-color: #4d81cf;
    border-color: #0832ec;
    color: #ffffff;
}

@media (max-width: 992px) {
    .landing-topbar-inner {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .landing-top-nav {
        flex-wrap: wrap;
    }

    .landing-hero-grid {
        grid-template-columns: 1fr;
    }

    .landing-screenshot-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .landing-feature-grid,
    .landing-pricing-grid,
    .landing-payment-grid {
        grid-template-columns: 1fr;
    }

    .landing-screenshot-strip {
        grid-template-columns: 1fr;
    }

    .landing-shot img {
        height: auto;
    }

    .landing-shot-modal-image {
        height: 65vh;
        max-height: 65vh;
        max-width: calc(96vw - 1rem);
    }
}

/* Welcome page */
.welcome-shell {
    --welcome-blue: #2f52ba;
    --welcome-blue-dark: #1f3f9d;
    --welcome-mint: #dff8f3;
    --welcome-cream: #fff6e8;
    --welcome-text: #16203f;
    --welcome-muted: #5f6a88;
}

.welcome-hero {
    background: radial-gradient(circle at 15% 20%, #ffffff 0%, #edf3ff 30%, #d9e6ff 100%);
    border: 1px solid #ccdbff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 16px 30px rgba(39, 71, 155, 0.12);
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecf3ff;
    color: #1f3f9d;
    border: 1px solid #b8ccff;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.welcome-title {
    margin-top: 16px;
    margin-bottom: 8px;
    color: var(--welcome-text);
    font-size: clamp(1.45rem, 2.5vw, 2.1rem);
    font-weight: 800;
    line-height: 1.15;
}

.welcome-subtitle {
    color: var(--welcome-muted);
    max-width: 65ch;
    margin-bottom: 16px;
}

.welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.welcome-actions .btn {
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-weight: 700;
}

.welcome-stats {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    gap: 10px;
}

.welcome-stat {
    background: #ffffff;
    border: 1px solid #d7e3ff;
    border-radius: 12px;
    padding: 12px;
}

.welcome-stat-label {
    color: var(--welcome-muted);
    font-size: 0.82rem;
    margin-bottom: 2px;
}

.welcome-stat-value {
    color: var(--welcome-blue-dark);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
}

.welcome-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.welcome-card {
    border-radius: 14px;
    border: 1px solid #dae4ff;
    background: #fff;
    padding: 16px;
    height: 100%;
}

.welcome-card h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    color: var(--welcome-text);
    font-weight: 800;
}

.welcome-tip-list {
    margin: 0;
    padding-left: 18px;
    color: #273154;
}

.welcome-tip-list li {
    margin-bottom: 8px;
}

.welcome-callout {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--welcome-mint);
    border: 1px solid #b8ece1;
    color: #176658;
    font-weight: 600;
    font-size: 0.92rem;
}

.welcome-shots {
    margin-top: 18px;
}

.welcome-shots-title {
    font-size: 1.05rem;
    color: var(--welcome-text);
    font-weight: 800;
    margin-bottom: 10px;
}

.welcome-shot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 12px;
}

.welcome-shot {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #dce6ff;
    background: #fff;
    box-shadow: 0 12px 22px rgba(31, 63, 157, 0.08);
}

.welcome-shot img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.welcome-shot figcaption {
    padding: 10px 12px 12px;
    color: #1c2648;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.welcome-shot small {
    display: block;
    margin-top: 3px;
    color: #65739a;
    font-weight: 500;
}

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

    .welcome-shot-grid {
        grid-template-columns: 1fr;
    }

    .welcome-shots img {
        height: 190px;
    }
}

@media (max-width: 640px) {
    .welcome-hero {
        padding: 20px;
    }

    .welcome-stats {
        grid-template-columns: 1fr;
    }
}
