:root {
    --drk-red: #e30613;
    --drk-dark: #1f1f1f;
    --drk-gray: #f3f4f6;
    --drk-line: #e5e7eb;
    --white: #ffffff;
    --green: #0f8a3b;

    --shadow: 0 18px 45px rgba(0, 0, 0, .08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(circle at top left, rgba(227, 6, 19, .08), transparent 34rem),
        linear-gradient(180deg, #ffffff 0%, #f7f7f8 100%);

    color: var(--drk-dark);
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow {
    width: min(680px, calc(100% - 32px));
    padding-top: 64px;
}

/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.hero {
    position: static;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--drk-line);
}

.hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cross {
    width: 36px;
    height: 36px;
    background: var(--drk-red);
    color: var(--white);

    display: grid;
    place-items: center;

    border-radius: 10px;

    font-size: 21px;
    font-weight: 800;
}

.brand strong {
    display: block;
    font-size: 17px;
}

.brand span {
    display: block;
    color: #666;
    font-size: 13px;
}

/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/

.admin-link,
.button-link {
    color: var(--white);
    background: var(--drk-red);

    text-decoration: none;

    padding: 8px 13px;
    border-radius: 999px;

    font-weight: 700;
    font-size: 14px;

    transition: .18s ease;
}

.admin-link:hover,
.button-link:hover,
button:hover {
    filter: brightness(.94);
    transform: translateY(-1px);
}

button {
    width: 100%;

    border: 0;

    background: var(--drk-red);
    color: var(--white);

    padding: 14px 18px;
    border-radius: 16px;

    font-size: 16px;
    font-weight: 800;

    cursor: pointer;

    margin-top: 12px;

    transition: .18s ease;
}

/*
|--------------------------------------------------------------------------
| Landing
|--------------------------------------------------------------------------
*/

.landing {
    margin: 42px 0 24px;

    padding: 54px 42px;

    border-radius: 32px;

    color: white;

    background:
        linear-gradient(
            135deg,
            rgba(227, 6, 19, .95),
            rgba(130, 0, 10, .92)
        ),
        radial-gradient(
            circle at top right,
            rgba(255, 255, 255, .3),
            transparent 22rem
        );

    box-shadow: var(--shadow);

    overflow: hidden;
    position: relative;
}

.landing::after {
    content: "✚";

    position: absolute;
    right: 34px;
    bottom: -38px;

    font-size: 180px;
    line-height: 1;

    color: rgba(255, 255, 255, .12);

    font-weight: 900;
}

.landing-text {
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 12px;

    text-transform: uppercase;
    letter-spacing: .12em;

    font-weight: 900;
    font-size: 13px;

    opacity: .9;
}

.landing h1 {
    margin-bottom: 16px;

    font-size: clamp(34px, 5vw, 62px);
    line-height: .98;
}

.landing p {
    font-size: 19px;
    line-height: 1.55;

    max-width: 620px;
}

/*
|--------------------------------------------------------------------------
| Cards
|--------------------------------------------------------------------------
*/

.card {
    background: rgba(255, 255, 255, .94);

    border: 1px solid var(--drk-line);
    border-radius: var(--radius);

    box-shadow: var(--shadow);

    padding: 28px;
}

.form-card {
    border-top: 8px solid var(--drk-red);
}

.centered-form {
    width: min(760px, 100%);
    margin: 0 auto;
}

.large-form {
    width: min(980px, 100%);
}

.access-card {
    width: min(560px, 100%);
    margin: 54px auto 80px;
    text-align: center;
}

.access-icon {
    width: 68px;
    height: 68px;

    border-radius: 22px;

    background: #fee2e2;
    color: var(--drk-red);

    display: grid;
    place-items: center;

    margin: 0 auto 18px;

    font-size: 32px;
    font-weight: 900;
}

/*
|--------------------------------------------------------------------------
| Category Selection
|--------------------------------------------------------------------------
*/

.category-select {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 22px;

    margin: 26px 0 34px;
}

.category-card {
    appearance: none;

    border: 2px solid transparent;

    background: white;
    color: var(--drk-dark);

    border-radius: 28px;

    padding: 28px;

    min-height: 210px;

    box-shadow: var(--shadow);

    text-align: left;

    cursor: pointer;

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(227, 6, 19, .35);
}

.category-card.active {
    border-color: var(--drk-red);
    box-shadow: 0 18px 45px rgba(227, 6, 19, .18);
}

.category-icon {
    width: 62px;
    height: 62px;

    display: grid;
    place-items: center;

    background: #fee2e2;
    color: var(--drk-red);

    border-radius: 20px;

    font-size: 30px;

    margin-bottom: 20px;
}

.category-card strong {
    display: block;

    font-size: 24px;

    margin-bottom: 8px;
}

.category-card small {
    display: block;

    color: #60646c;

    font-size: 15px;
    line-height: 1.45;
}

/*
|--------------------------------------------------------------------------
| Forms
|--------------------------------------------------------------------------
*/

.form-section {
    margin: 24px 0 72px;
}

.hidden {
    display: none;
}

label {
    display: block;

    font-weight: 700;

    margin-bottom: 14px;
}

input,
textarea,
select {
    width: 100%;

    margin-top: 7px;

    border: 1px solid #d1d5db;
    border-radius: 14px;

    padding: 12px 13px;

    font: inherit;

    background: var(--white);

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;

    border-color: rgba(227, 6, 19, .55);

    box-shadow: 0 0 0 4px rgba(227, 6, 19, .12);
}

textarea {
    min-height: 95px;
    resize: vertical;
}

.meal-row {
    display: grid;
    grid-template-columns: 1fr minmax(230px, 280px);

    gap: 12px;

    align-items: center;

    margin-bottom: 12px;

    padding: 12px;

    background: var(--drk-gray);

    border-radius: 16px;
}

.meal-row span {
    font-weight: 700;
}

.meal-row select {
    width: 100%;
    min-width: 230px;
}

.person-box {
    border: 1px solid var(--drk-line);

    background: #fff;

    border-radius: 18px;

    padding: 16px;

    margin-bottom: 14px;
}

.radio {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    font-weight: 600;

    background: var(--drk-gray);

    border-radius: 16px;

    padding: 14px;
}

.radio input {
    width: auto;
    margin-top: 4px;
}

.address-grid {
    display: grid;
    grid-template-columns: 1fr 140px;

    gap: 14px;
}

.address-grid-plz-city {
    grid-template-columns: 160px 1fr;
}

/*
|--------------------------------------------------------------------------
| Helper Table
|--------------------------------------------------------------------------
*/

.helper-table-wrap {
    overflow-x: auto;

    margin-top: 12px;

    border-radius: 18px;
    border: 1px solid var(--drk-line);
}

.helper-table {
    width: 100%;
    min-width: 760px;

    table-layout: fixed;

    box-shadow: none;
    border-radius: 0;
}

.helper-table th,
.helper-table td {
    padding: 8px;
}

.helper-table th {
    background: var(--drk-red);
    color: white;

    font-size: 14px;

    white-space: nowrap;
}

.helper-table td {
    background: #fff;
    border-bottom: 1px solid var(--drk-line);
}

.helper-table input,
.helper-table select {
    min-width: 0;
    width: 100%;

    margin-top: 0;

    padding: 9px 8px;

    font-size: 14px;
}

.helper-table td:first-child,
.helper-table th:first-child {
    width: 72px;

    font-weight: 900;

    color: var(--drk-red);

    text-align: center;
}

.helper-table th:nth-child(2),
.helper-table td:nth-child(2),
.helper-table th:nth-child(3),
.helper-table td:nth-child(3) {
    width: 145px;
}

.helper-table th:nth-child(4),
.helper-table td:nth-child(4),
.helper-table th:nth-child(5),
.helper-table td:nth-child(5) {
    width: 190px;
}

/*
|--------------------------------------------------------------------------
| Alerts / Hint
|--------------------------------------------------------------------------
*/

.alert {
    margin-top: 22px;

    padding: 16px;

    border-radius: 16px;

    font-weight: 700;
}

.error {
    background: #fee2e2;
    color: #991b1b;
}

.hint {
    color: #6b7280;
    font-size: 14px;
}

/*
|--------------------------------------------------------------------------
| Success
|--------------------------------------------------------------------------
*/

.success-card {
    text-align: center;
}

.success-icon {
    width: 72px;
    height: 72px;

    border-radius: 999px;

    background: var(--green);
    color: white;

    display: grid;
    place-items: center;

    margin: 0 auto 20px;

    font-size: 38px;
    font-weight: 900;
}

/*
|--------------------------------------------------------------------------
| Admin
|--------------------------------------------------------------------------
*/

.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;

    min-height: 100vh;
}

.sidebar {
    background: var(--drk-dark);
    color: white;

    padding: 24px;
}

.sidebar a {
    color: white;

    display: block;

    padding: 12px 0;

    text-decoration: none;

    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.sidebar a:hover {
    opacity: .8;
}

.admin-main {
    padding: 32px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;

    border-collapse: collapse;

    background: white;

    border-radius: 18px;

    overflow: hidden;
}

th,
td {
    padding: 12px 14px;

    border-bottom: 1px solid var(--drk-line);

    text-align: left;
    vertical-align: top;
}

th {
    background: var(--drk-red);
    color: white;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.kpi {
    background: white;

    border-radius: 20px;

    padding: 22px;

    box-shadow: var(--shadow);
}

.kpi strong {
    display: block;

    font-size: 34px;
}

.badge {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 999px;

    background: var(--drk-gray);

    font-size: 13px;
    font-weight: 800;
}

.badge.green {
    background: #dcfce7;
    color: #166534;
}

.badge.red {
    background: #fee2e2;
    color: #991b1b;
}

/*
|--------------------------------------------------------------------------
| Typography
|--------------------------------------------------------------------------
*/

h1,
h2,
h3,
h4 {
    margin-top: 0;
}

h1 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
}

h2 {
    font-size: 30px;
}

h3 {
    margin-top: 28px;
    font-size: 18px;
}

h4 {
    margin-bottom: 12px;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 980px) {
    .category-select,
    .admin-layout,
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .landing {
        padding: 36px 24px;
    }

    .landing::after {
        font-size: 120px;
    }

    .meal-row {
        grid-template-columns: 1fr;
    }

    .meal-row select {
        min-width: 0;
    }
}

@media (max-width: 720px) {
    .address-grid,
    .address-grid-plz-city {
        grid-template-columns: 1fr;
    }

    .container {
        width: min(100% - 20px, 1180px);
    }

    .card {
        padding: 20px;
    }

    .landing h1 {
        font-size: 38px;
    }

    .landing p {
        font-size: 16px;
    }
}