section.auth-card {
    max-width: 420px;
    margin: 60px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(10, 58, 99, 0.15);
}

section.auth-card h2 {
    margin-top: 0;
    color: #0a3a63;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
}

.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.form-hint {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #475569;
}

button[type="submit"] {
    background: #0b5d1e;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

button[type="submit"]:hover {
    background: #0a4a18;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert-error {
    background: #fdecea;
    color: #a61b16;
}

.alert-success {
    background: #e8f5e9;
    color: #0b5d1e;
}

.admin-section {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(10, 58, 99, 0.12);
    margin-bottom: 32px;
}

.admin-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.admin-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0a3a63;
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.admin-button:hover {
    background: #072948;
}

.admin-link {
    color: #0a3a63;
    font-weight: 600;
    text-decoration: none;
}

.admin-link:hover {
    text-decoration: underline;
}

.admin-table-wrapper {
    margin: 0 -32px -32px;
    padding: 0 32px 32px;
    overflow-x: auto;
    overflow-y: hidden;
}

.admin-table-wrapper::after {
    content: '';
    display: block;
    height: 1px;
}

.admin-table-wrapper::-webkit-scrollbar {
    height: 10px;
}

.admin-table-wrapper::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 999px;
}

.admin-table-wrapper::-webkit-scrollbar-thumb {
    background: #0a3a63;
    border-radius: 999px;
}

.admin-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #072948;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.admin-table thead th {
    white-space: nowrap;
}

.admin-table tbody td {
    white-space: normal;
    word-break: break-word;
}

.admin-table thead th {
    background: #0a3a63;
    color: #fff;
    text-align: left;
    padding: 12px;
    font-weight: 600;
}

.admin-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.text-right {
    text-align: right;
}

.admin-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-form {
    display: inline;
}

.admin-icon-button {
    background: none;
    border: none;
    color: #1d4ed8;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.admin-icon-button:hover,
.admin-icon-button:focus {
    color: #0f172a;
    outline: none;
}

.admin-icon-button--delete {
    color: #a61b16;
}

.admin-icon-button--delete:hover,
.admin-icon-button--delete:focus {
    color: #7f1210;
}

.link-button {
    background: none;
    border: none;
    color: #a61b16;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.link-button:hover,
.link-button:focus {
    text-decoration: underline;
    outline: none;
}

/* Upload Dropzone Styling */
.upload-dropzone {
    border: 2px dashed #94a3b8; /* slate-400 */
    background: rgba(128,128,128,0.2); /* grau mit 20% Transparenz */
    padding: 8px 12px;
    height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #334155; /* slate-700 */
    border-radius: 6px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}
.upload-dropzone p { margin: 0; }
.upload-dropzone.dragover {
    border-color: #1d4ed8; /* blue-700 */
    background: rgba(128,128,128,0.3);
}

/* Disabled submit button style */
.admin-button {
    display: inline-block;
    background: #1d4ed8; /* aktiv: blau */
    color: #fff;
    border: 1px solid #1d4ed8;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}
.admin-button:hover { background: #1e40af; border-color: #1e40af; }
.admin-button[disabled],
.admin-button:disabled {
    background: #e2e8f0;   /* gray-200 */
    color: #64748b;        /* slate-500 */
    cursor: not-allowed;
    border-color: #cbd5e1; /* gray-300 */
}

.table-wrapper {
    overflow-x: auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.form-group--checkbox {
    display: flex;
    align-items: center;
    padding-top: 26px;
}

.form-group--password .password-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group--password .password-input input[type="password"],
.form-group--password .password-input input[type="text"] {
    flex: 1;
}

.toggle-password {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0a3a63;
    font-weight: 600;
    cursor: pointer;
}

.toggle-password:hover {
    background: #e2e8f0;
}

.toggle-password[aria-pressed="true"] {
    background: #0a3a63;
    color: #fff;
    border-color: #0a3a63;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.form-actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.required {
    color: #c2410c;
    margin-left: 4px;
}

.admin-dashboard {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(10, 58, 99, 0.12);
}

.admin-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.admin-card {
    display: block;
    background: #0a3a63;
    color: #fff;
    padding: 18px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
}

.admin-card:hover {
    background: #08304f;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    background: #e2e8f0;
    color: #0a3a63;
    font-weight: 600;
}

.badge-success {
    background: #0b5d1e;
    color: #ffffff;
}
