/* Gestaltung nach ReZuKi Web-CI. Abstände in Vielfachen von 8 px. */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--off-white);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.625;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 500; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 16px; }
h2 { font-size: clamp(1.25rem, 1.2vw + 0.9rem, 1.375rem); line-height: 1.3; letter-spacing: -0.01em; }
h3 { font-size: 1rem; line-height: 1.5; }
p { margin: 0 0 12px; max-width: 62ch; }
strong { font-weight: 500; }
small { color: var(--ink-2); font-weight: 400; }
code, .mono { font-family: var(--mono); font-size: .875em; }

a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }

:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--ink);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -64px;
    padding: 8px 16px;
    background: var(--white);
    color: var(--ink);
    border-radius: var(--radius-small);
    z-index: 10;
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .wrap { padding: 0 32px; } }

main.wrap { flex: 1; padding-top: 48px; padding-bottom: 64px; }

/* Footer: Anthrazit, weißes Symbol, Rechtsverweise */
.site-footer { background: var(--ink); color: var(--white); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-symbol { height: 38px; width: auto; filter: grayscale(100%) brightness(0) invert(1); }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--white); text-decoration: none; display: inline-block; min-height: 24px; padding: 2px 0; }
.site-footer a:hover { text-decoration: underline; }

/* Eyebrow: grüner Punkt, blauer Text, Versalien nur hier */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-family: var(--mono);
    font-size: .8125rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--blue);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }

/* Karte: Weiß auf Off-White */
.card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 32px 24px;
}
@media (min-width: 640px) { .card { padding: 40px; } }
.card.narrow { max-width: 600px; margin: 0 auto; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card-head h1 { margin-bottom: 16px; }
.lead { color: var(--ink-2); }

.stack { display: flex; flex-direction: column; gap: 24px; }
.inline { display: inline; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 200px; }

/* Schritte: grüner Kreis nummeriert den Weg, den der Gast selbst geht */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.step-title { display: flex; align-items: center; gap: 16px; padding: 0; margin-bottom: 24px; }
.step-number {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green-fill);
    color: var(--white);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}
.section-rule { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }

label { display: flex; flex-direction: column; gap: 8px; font-weight: 500; }

input[type="text"], input[type="email"], input[type="password"], textarea {
    width: 100%;
    font: inherit;
    font-weight: 400;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--ink);
    border-radius: var(--radius-small);
    padding: 12px 16px;
}
textarea { resize: vertical; }

/* Buttons: Radius 8, Polsterung 13/22, kein Unterstrich, Hover dunkelt ab */
.button {
    display: inline-block;
    font: inherit;
    font-weight: 500;
    font-size: .9375rem;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid var(--green-fill);
    border-radius: var(--radius-small);
    background: var(--green-fill);
    color: var(--white);
    padding: 11px 20px;
}
.button-secondary { background: transparent; border-color: var(--blue); color: var(--blue); }
.button-secondary:hover { background: var(--blue); color: var(--white); }
.button-secondary:active { background: var(--blue-hover); border-color: var(--blue-hover); color: var(--white); }

.link-button {
    font: inherit;
    background: none;
    border: 0;
    padding: 2px 0;
    min-height: 24px;
    color: var(--blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .15em;
    cursor: pointer;
}

/* Hinweisboxen: Grün sagt zu oder erläutert, Silber ist neutral */
.note {
    max-width: 62ch;
    background: var(--off-white);
    border-left: 3px solid var(--silver);
    border-radius: var(--radius-small);
    padding: 16px;
    margin: 0 0 24px;
}
.note p:last-child { margin-bottom: 0; }
.note-green { border-left-color: var(--green); }
.note-title { font-weight: 500; margin-bottom: 8px; }

.hint { color: var(--ink-2); font-size: .875rem; margin: 0; }

/* Terminauswahl: Kontur in Royal-Blau, Auswahl blau gefüllt */
.day + .day { margin-top: 24px; }
.day-title { margin-bottom: 8px; }
.slot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { position: relative; display: block; font-weight: 400; }
.slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot span {
    display: block;
    min-width: 88px;
    text-align: center;
    padding: 8px 16px;
    border: 1px solid var(--blue);
    border-radius: var(--radius-small);
    background: var(--white);
    color: var(--blue);
    cursor: pointer;
    font-variant-numeric: tabular-nums;
}
.slot span:hover { background: var(--off-white); }
.slot input:checked + span { background: var(--blue); color: var(--white); font-weight: 500; }
.slot input:focus-visible + span { outline: 3px solid var(--white); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ink); }

.when { font-size: 1.125rem; font-weight: 500; }
.phone { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 500; letter-spacing: -0.02em; margin: 8px 0 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; }

/* Admin */
.mono-field { font-family: var(--mono); font-size: .875rem; }
.plain { padding-left: 20px; max-width: 62ch; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--rule); }
th { font-weight: 500; }
tr.muted td { color: var(--ink-2); }
.card h2 { margin-top: 40px; margin-bottom: 16px; }
.card h2:first-of-type { margin-top: 24px; }
