* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f6f4;
    color: #122018;
}

a {
    color: #1f6b3a;
    font-weight: 700;
    text-decoration: none;
}

.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 18px;
}

.card,
.hero,
.action-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.card h1,
.card h2,
.hero h1 {
    margin-top: 0;
}

.muted {
    color: #65746b;
}

.center {
    text-align: center;
}

label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 700;
}

input,
select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d5ddd8;
    border-radius: 12px;
    font-size: 16px;
}

button,
.button {
    display: inline-block;
    width: 100%;
    margin-top: 16px;
    padding: 14px 16px;
    border: 0;
    border-radius: 14px;
    background: #1f6b3a;
    color: white;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
}

button.danger {
    background: #b42318;
}

.alert {
    padding: 13px 15px;
    border-radius: 12px;
    margin: 12px 0;
    font-weight: 700;
}

.alert.success {
    background: #e9f8ee;
    color: #1f6b3a;
}

.alert.error {
    background: #fdecec;
    color: #b42318;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #113d23;
    color: white;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.topbar a {
    color: white;
    margin-left: 12px;
}

.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 18px;
}

.hero {
    margin-bottom: 18px;
    background: linear-gradient(135deg, #113d23, #1f6b3a);
    color: white;
}

.big-money {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -1px;
}

.big-money.small {
    font-size: 34px;
    color: #1f6b3a;
}

.grid {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}

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

.drink-button {
    min-height: 90px;
    font-size: 22px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #e2e8e4;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f1f5f2;
}

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

.actions form {
    margin: 0;
}

.actions button {
    width: auto;
    margin: 0;
    padding: 9px 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.form-grid button {
    align-self: end;
}

@media (max-width: 760px) {
    .grid.two,
    .form-grid {
        grid-template-columns: 1fr;
    }

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

    .topbar a {
        margin-left: 0;
        margin-right: 12px;
    }

    .big-money {
        font-size: 36px;
    }
}


/* Dialog fuer Getraenkebuchung */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(0, 0, 0, .45);
    display: grid;
    place-items: center;
    padding: 18px;
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-card {
    width: min(420px, 100%);
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    text-align: center;
}

.modal-card h2 {
    margin-top: 0;
    font-size: 26px;
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.modal-actions button {
    margin-top: 0;
}

button.secondary {
    background: #d9e2dc;
    color: #122018;
}
