body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #eef2f7;
}

.topbar {
    background: #1f2937;
    color: white;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar strong {
    font-size: 22px;
}

.topbar span {
    margin-left: 16px;
    color: #d1d5db;
}

.topbar a {
    color: white;
    text-decoration: none;
    background: #374151;
    padding: 8px 14px;
    border-radius: 6px;
}

.plan-container {
    padding: 20px;
    overflow: auto;
}

.dienstplan {
    border-collapse: collapse;
    background: white;
    width: max-content;
    min-width: 100%;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.dienstplan th,
.dienstplan td {
    border: 1px solid #9ca3af;
    min-width: 95px;
    height: 34px;
    text-align: center;
    padding: 4px 8px;
}

.dienstplan th {
    background: #bfdbfe;
    position: sticky;
    top: 0;
    z-index: 2;
}

.dienstplan td:first-child,
.dienstplan td:nth-child(2) {
    background: #f3f4f6;
    font-weight: bold;
}

.dienstplan tr.weekend td {
    background: #fee2e2;
}

.dienstplan td[contenteditable="true"] {
    background: #fff7ed;
}

.month-form {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
    background: white;
    padding: 14px;
    border-radius: 8px;
}

.month-form input,
.month-form select {
    min-width: 220px;
    width: 220px;
    box-sizing: border-box;
}

.month-form input::placeholder {
    font-size: 14px;
    color: #6b7280;
}
.month-form button {
    padding: 8px 10px;
    font-size: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info span {
    background: #374151;
    padding: 6px 10px;
    border-radius: 6px;
}

.download-button {
    background: #2563eb;
    color: white;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 15px;
    display: inline-block;
    transition: 0.2s;
}

.download-button:hover {
    background: #1d4ed8;
}

@media (max-width: 1200px) {

    .plan-container {
        overflow-x: auto;
        padding: 10px;
    }

    .dienstplan {
        min-width: 1100px;
    }

    .topbar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .month-form {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .month-form button,
    .download-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 700px) {

    body {
        font-size: 14px;
    }

    .dienstplan td,
    .dienstplan th {
        padding: 6px;
        font-size: 13px;
    }

    .topbar strong {
        font-size: 18px;
    }

    .user-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .dienstplan select {
    width: 100%;
    min-width: 120px;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #1f2937;
    color: white;
    font-size: 14px;
    box-sizing: border-box;
    }

    .dienstplan td {
    min-width: 130px;
    }

    .dienstplan select {
    width: 100%;
    min-width: 120px;
    height: 40px;

    padding: 6px 10px;

    border-radius: 8px;
    border: 2px solid #2563eb;

    background: #1f2937;
    color: white;

    font-size: 15px;

    cursor: pointer;

    box-sizing: border-box;
    }

    .aktions-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    }

    .aktions-buttons form {
    margin: 0;
    }

    .action-btn {
    display: inline-block;
    width: auto;
    min-width: 90px;
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    color: white !important;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    }

    .edit-btn {
    background: #2563eb !important;
    }

    .delete-btn {
    background: #991b1b !important;
    }


}


.dienstplan select {
    background: #2996bd;
    border: 2px solid #1731c4;
    color: white;
    text-align: center;
    text-align-last: center;
}

.dienstplan select.gefuellt {
    background: #f3f4f6 !important;
    border: 2px solid #2e52e2 !important;
    color: rgb(0, 0, 0) !important;
}

.login-container {
    max-width: 450px;
    margin: 80px auto;
    padding: 30px;
    background: #1e293b;
    border-radius: 12px;
    color: white;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 25px;
}

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

.login-form input {
    padding: 12px;
    border-radius: 6px;
    border: none;
}

.login-form button {
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: #2563eb;
    color: white;
    cursor: pointer;
}

.login-form button:hover {
    background: #1d4ed8;
}

.fehler {
    color: #ef4444;
    margin-top: 10px;
}

.login-container a {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.login-container a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.login-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.login-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.login-links a:hover {
    color: #60a5fa;
    text-decoration: underline;
}