/* Design angelehnt an gasthausbrauerei24.de */
:root {
    --yellow: #FDF100;
    --yellow-dark: #E5DB00;
    --text: #3D444D;
    --text-muted: #6B737B;
    --nav: #4A545B;
    --border: #D9DDE1;
    --bg: #FFFFFF;
    --bg-soft: #F7F8F9;
    --footer: #353535;
    --footer-bottom: #2A2A2A;
    --error: #B42318;
    --error-bg: #FEE4E2;
    --success: #067647;
    --success-bg: #DCFAE6;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--nav); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- Topbar ---------- */
.topbar {
    background: var(--yellow);
    font-size: 13px;
    font-weight: 500;
}
.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    min-height: 44px;
    padding-top: 6px;
    padding-bottom: 6px;
}
.topbar__contact { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__contact span, .topbar__account { display: inline-flex; align-items: center; gap: 6px; }
.topbar a { text-decoration: underline; }

/* ---------- Header ---------- */
.header { background: var(--bg); }
.header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 20px;
    padding-bottom: 20px;
}
.header__logo img { display: block; height: 72px; width: auto; }
.header__title { display: flex; flex-direction: column; }
.header__eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); font-weight: 600; }
.header__headline { font-size: 22px; font-weight: 600; }

/* ---------- Navigation ---------- */
.nav { border-bottom: 1px solid var(--border); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.nav a {
    display: inline-block;
    padding: 12px 0 10px;
    color: var(--nav);
    font-weight: 500;
    border-bottom: 3px solid transparent;
}
.nav a:hover, .nav a.is-active { text-decoration: none; border-bottom-color: var(--yellow); color: var(--text); }

/* ---------- Main ---------- */
.main { flex: 1; padding-top: 32px; padding-bottom: 56px; }

h1, h2, h3 { font-weight: 600; line-height: 1.3; margin: 0 0 12px; }
h1 { font-size: 26px; }
h2 { font-size: 20px; margin-top: 24px; }
h3 { font-size: 17px; margin-top: 20px; }
p { margin: 0 0 14px; }
ul { padding-left: 22px; }

.section-title {
    font-size: 17px;
    font-weight: 600;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .grid--login { grid-template-columns: 1fr 2fr; } }

.card--soft { background: var(--bg-soft); padding: 24px; border: 1px solid var(--border); }

.muted { color: var(--text-muted); font-size: 14px; }

/* ---------- Formulare ---------- */
.form-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; }
label { font-size: 14px; font-weight: 500; }
label .req { color: var(--error); }

input[type="text"], input[type="email"], input[type="password"] {
    font: inherit;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: #fff;
    color: var(--text);
    width: 100%;
}
input:focus { outline: 2px solid var(--yellow); outline-offset: 0; border-color: var(--yellow-dark); }

.btn {
    font: inherit;
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}
.btn--primary { background: var(--yellow); color: var(--text); }
.btn--primary:hover { background: var(--yellow-dark); text-decoration: none; }
.btn--secondary { background: #fff; color: var(--text); border-color: var(--text); }
.btn--secondary:hover { background: var(--bg-soft); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.choice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid var(--border);
    background: #fff;
    margin-bottom: 12px;
    cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--yellow-dark); background: #FFFDE0; }
.choice input { margin-top: 4px; accent-color: var(--yellow-dark); width: 18px; height: 18px; flex: none; }
.choice strong { display: block; }

.checkline { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0; }
.checkline input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--yellow-dark); }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Rechtstext ---------- */
.legal {
    border: 1px solid var(--border);
    padding: 24px 28px;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    margin-bottom: 24px;
}
.legal h2:first-child { margin-top: 0; }

/* ---------- Hinweise ---------- */
.alert { padding: 14px 18px; margin-bottom: 24px; border-left: 4px solid; }
.alert--error { background: var(--error-bg); border-color: var(--error); color: var(--error); }
.alert--success { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.alert--info { background: #FFFDE0; border-color: var(--yellow-dark); color: var(--text); }

.status { display: inline-block; padding: 3px 10px; font-size: 13px; font-weight: 600; }
.status--ok { background: var(--success-bg); color: var(--success); }
.status--no { background: var(--error-bg); color: var(--error); }

dl.summary { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 24px; }
dl.summary dt { font-weight: 600; }
dl.summary dd { margin: 0; }

/* ---------- Admin: Kennzahlen ---------- */
.kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-bottom: 28px;
}
.kpi { background: #fff; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.kpi__value { font-size: 26px; font-weight: 700; line-height: 1.2; }
.kpi__label { font-size: 13px; color: var(--text-muted); }
.kpi--ok .kpi__value { color: var(--success); }
.kpi--no .kpi__value { color: var(--error); }

/* ---------- Admin: Filterleiste ---------- */
.filterbar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
    padding: 18px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}
.filterbar .form-field { flex: 1 1 200px; }
.filterbar__actions { display: flex; gap: 12px; flex-wrap: wrap; }

select {
    font: inherit;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: #fff;
    color: var(--text);
    width: 100%;
}
select:focus { outline: 2px solid var(--yellow); border-color: var(--yellow-dark); }

/* ---------- Admin: Tabelle ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); }
.table { border-collapse: collapse; width: 100%; font-size: 14px; background: #fff; }
.table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { background: var(--yellow); font-weight: 600; position: sticky; top: 0; }
.table tbody tr:nth-child(even) { background: var(--bg-soft); }
.table tbody tr:hover { background: #FFFDE0; }
.table td:nth-child(2), .table td:nth-child(3) { white-space: normal; }

/* ---------- Footer ---------- */
.footer { background: var(--footer); color: #E6E6E6; font-size: 14px; margin-top: auto; }
.footer a { color: #fff; }
.footer__inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 32px;
}
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__bottom { background: var(--footer-bottom); padding: 12px 0; font-size: 13px; color: #BDBDBD; }
