* {
    box-sizing: border-box;
}

:root {
    --background: #f4f7f6;
    --surface: #fff;
    --surface-soft: #f8faf9;
    --line: #dfe8e4;
    --accent: #207a68;
    --accent-dark: #165b4f;
    --accent-soft: #e3f2ee;
    --danger-soft: #fff0ef;
    --shadow: 0 10px 30px rgba(31, 62, 54, .07);
}

html {
    background: var(--background);
}

body {
    margin: 0;
    color: #000;
    background: var(--background);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

a {
    color: #000;
}

button,
input,
select,
textarea {
    font: inherit;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #edf7f3, #f7f8f5 55%, #e8f0ec);
}

.login-container {
    width: min(100%, 440px);
    margin: auto;
    padding: 42px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.login-box h1,
.login-logo {
    margin: 0;
    color: #000;
    text-align: center;
    font-family: Georgia, serif;
    font-size: 32px;
    font-weight: normal;
}

.login-box > p,
.login-subtitle {
    margin: 7px 0 0;
    color: #000;
    text-align: center;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.login-form {
    margin-top: 34px;
}

.login-form label,
.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.login-form input,
.form-group input,
.form-group select,
.form-group textarea,
details form input,
details form select {
    width: 100%;
    padding: 12px 13px;
    color: #000;
    background: #fff;
    border: 1px solid #cbd9d4;
    border-radius: 8px;
    outline: none;
}

.login-form input {
    margin-bottom: 20px;
}

.login-form input:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
details form input:focus,
details form select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(32, 122, 104, .12);
}

.btn,
.admin-button,
.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 9px 15px;
    color: #000;
    background: #fff;
    border: 1px solid #cbd9d4;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.btn:hover,
.action-button:hover {
    color: #000;
    border-color: var(--accent);
}

.btn.primary,
.btn-primary,
.admin-button {
    color: #000;
    background: var(--accent);
    border-color: var(--accent);
}

.btn.small {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 12px;
}

.admin-button {
    width: 100%;
}

.btn-danger,
.btn.danger,
.action-button.delete {
    color: #000;
}

.alert {
    margin: 0 0 22px;
    padding: 13px 16px;
    color: #000;
    border-radius: 8px;
    font-size: 14px;
}

.alert.success {
    background: #e8f6ef;
    border: 1px solid #bce3ce;
}

.alert.error,
.alert-error {
    background: var(--danger-soft);
    border: 1px solid #f0caca;
}

.admin-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 38px;
    padding: 20px 24px;
    color: #000;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(31, 62, 54, .04);
}

.admin-header h1,
.admin-content h1,
.admin-page-header h1 {
    margin: 0;
    color: #000;
    font-family: Georgia, serif;
    font-size: clamp(29px, 4vw, 44px);
    font-weight: normal;
    line-height: 1.1;
}

.admin-header p,
.admin-header span {
    margin: 5px 0 0;
    color: #000;
    font-size: 13px;
}

.admin-header > div:last-child,
.admin-user,
.dashboard-actions,
.action-buttons,
.table-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.admin-user,
.admin-user strong {
    color: #000;
    font-size: 13px;
}

.admin-content h2,
.admin-card h2,
.dashboard-section h2 {
    margin: 0 0 8px;
    color: #000;
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: normal;
}

.dashboard-welcome,
.dashboard-card,
.dashboard-card h3,
.dashboard-card a,
.dashboard-section,
.system-info,
.system-info p,
.system-info strong {
    color: #000;
}

.dashboard-card a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dashboard-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 28px;
}

.dashboard-card,
.stat-card,
.admin-card,
.dashboard-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.dashboard-card,
.stat-card {
    padding: 24px;
}

.dashboard-card-icon,
.stat-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    background: var(--accent-soft);
    border-radius: 10px;
    font-size: 20px;
}

.dashboard-card h3 {
    margin: 0;
    font-size: 14px;
    font-weight: normal;
}

.dashboard-card strong,
.stat-card strong {
    display: block;
    margin: 3px 0 15px;
    color: #000;
    font-family: Georgia, serif;
    font-size: 40px;
    font-weight: normal;
}

.dashboard-section {
    margin-top: 28px;
    padding: 24px;
}

.dashboard-section h2 {
    margin-bottom: 16px;
}

.system-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.system-info p {
    margin: 0;
    padding: 13px;
    background: var(--surface-soft);
    border-radius: 8px;
    font-size: 13px;
}

.system-info strong {
    display: block;
}

.status-aktiv {
    color: #000;
}

.admin-page-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.admin-page-header p {
    margin: 0 0 5px;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.admin-card {
    margin-bottom: 22px;
    padding: 24px;
    color: #000;
}

.admin-card > h2 {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
}

.table-wrapper,
.admin-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.table-wrapper table,
.admin-table {
    width: 100%;
    min-width: 760px;
    color: #000;
    border-collapse: collapse;
}

.table-wrapper th,
.table-wrapper td,
.admin-table th,
.admin-table td {
    padding: 13px 14px;
    color: #000;
    text-align: left;
    vertical-align: middle;
}

.table-wrapper th,
.admin-table th {
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.table-wrapper td,
.admin-table td {
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.table-wrapper tbody tr:hover,
.admin-table tbody tr:hover {
    background: #fbfdfc;
}

.status {
    display: inline-block;
    padding: 4px 9px;
    color: #000;
    border-radius: 999px;
    font-size: 11px;
    font-weight: bold;
}

.status.active,
.status.inactive,
.inactive-status {
    color: #000;
}

.status.active {
    background: #e7f5ed;
}

.status.inactive,
.inactive-status {
    background: #fceeed;
}

.table-price,
.table-muted,
.allergen-badge {
    color: #000;
}

.empty-state {
    padding: 56px 24px;
    color: #000;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.empty-state h2,
.empty-state p {
    color: #000;
}

.admin-form {
    max-width: 750px;
    padding: 32px;
    color: #000;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 22px;
}

.form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #000;
    font-size: 12px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 26px 0;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.form-checkbox label {
    color: #000;
    font-size: 13px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

details form {
    min-width: 210px;
    margin-top: 10px !important;
    padding: 12px;
    color: #000;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}

details form input,
details form select {
    margin-bottom: 8px;
    padding: 8px 9px;
    font-size: 12px;
}

@media (max-width: 760px) {
    .admin-container {
        width: min(100% - 24px, 1180px);
        padding-top: 12px;
    }

    .admin-header,
    .admin-page-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 24px;
    }

    .admin-header {
        padding: 18px;
    }

    .admin-header > div:last-child,
    .admin-page-header > div:last-child,
    .admin-header .btn,
    .admin-page-header .btn {
        width: 100%;
    }

    .dashboard-grid,
    .stats-grid,
    .system-info {
        grid-template-columns: 1fr;
    }

    .admin-card,
    .dashboard-section,
    .admin-form {
        padding: 18px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions > *,
    .dashboard-actions .btn {
        width: 100%;
    }

    .login-container {
        padding: 30px 24px;
    }
}
