:root {
    color-scheme: dark;
    --bg: #080a0d;
    --surface: #11151a;
    --surface-2: #181d23;
    --line: #2a3038;
    --text: #f6f7f8;
    --muted: #a8b0ba;
    --accent: #e34232;
    --accent-dark: #b9281d;
    --success: #33c46a;
    --warning: #f6bd4f;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 80% 0%,
            rgba(227, 66, 50, .13),
            transparent 35rem
        ),
        linear-gradient(
            180deg,
            #090b0e,
            #050607
        );
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

.shell {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 36px;
}

.hero {
    padding: 32px 0 42px;
}

.site-logo {
    display: block;
    width: clamp(140px, 18vw, 220px);
    max-width: 220px;
    height: auto;
    margin: 0 0 20px 0;
    object-fit: contain;
    object-position: left center;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.eyebrow {
    margin: 22px 0 8px;
    color: var(--accent);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .12em;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin-bottom: 14px;
    font-size: clamp(2.45rem, 7vw, 5.2rem);
    line-height: .96;
    letter-spacing: -.055em;
}

.lead {
    max-width: 670px;
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.65;
}

.booking-form {
    display: grid;
    gap: 18px;
}

.card,
.status-card,
.success-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.035),
            transparent
        ),
        var(--surface);
    box-shadow: 0 20px 70px rgba(0,0,0,.28);
}

.card {
    padding: 28px;
}

.section-head {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    align-items: start;
    margin-bottom: 24px;
}

.section-head > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent);
    font-weight: 900;
}

.section-head h2 {
    margin-bottom: 5px;
    font-size: 1.35rem;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide {
    grid-column: 1 / -1;
}

label,
.field-label {
    display: grid;
    gap: 8px;
    color: #e9edf0;
    font-size: .9rem;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #323944;
    border-radius: 11px;
    outline: none;
    background: #0b0e12;
    color: var(--text);
    padding: 13px 14px;
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow:
        0 0 0 3px
        rgba(227, 66, 50, .14);
}

input::placeholder,
textarea::placeholder {
    color: #66707c;
    opacity: 1;
    font-weight: 500;
}


input.is-valid,
select.is-valid,
textarea.is-valid {
    border-color: #31b866;
    background: #102719;
    box-shadow:
        inset 0 0 0 1px
        rgba(49, 184, 102, .15);
}

input.is-valid:focus,
select.is-valid:focus,
textarea.is-valid:focus {
    border-color: #43d37b;
    box-shadow:
        0 0 0 3px
        rgba(49, 184, 102, .16),
        inset 0 0 0 1px
        rgba(49, 184, 102, .18);
}

/*
 * Chrome/Edge färben Autofill sonst gelb/oliv.
 * Die grüne Bestätigung soll auch bei Autofill eindeutig sichtbar sein.
 */
input.is-valid:-webkit-autofill,
input.is-valid:-webkit-autofill:hover,
input.is-valid:-webkit-autofill:focus {
    -webkit-text-fill-color: #f6f7f8;
    -webkit-box-shadow:
        0 0 0 1000px
        #102719 inset !important;
    box-shadow:
        0 0 0 1000px
        #102719 inset !important;
    border-color: #31b866;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
    border-color: #d8483c;
    background: #251112;
}

small {
    color: var(--muted);
    font-weight: 500;
    line-height: 1.4;
}

.availability-state {
    padding: 18px;
    border: 1px dashed #3b434e;
    border-radius: 12px;
    color: var(--muted);
    line-height: 1.55;
}

.slot-picker {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) 1.2fr;
    gap: 22px;
    align-items: start;
}

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 8px;
}

.time-slot {
    border: 1px solid #3a424d;
    border-radius: 10px;
    background: #0c1014;
    color: var(--text);
    padding: 10px 14px;
    cursor: pointer;
}

.time-slot:hover,
.time-slot.active {
    border-color: var(--accent);
    background: var(--accent);
}

.terms-box {
    padding: 18px;
    border-radius: 12px;
    background: var(--surface-2);
    margin-bottom: 18px;
}

.terms-box h3 {
    margin: 0 0 7px;
    font-size: .96rem;
}

.terms-box h3:not(:first-child) {
    margin-top: 18px;
}

.terms-copy {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.6;
    white-space: pre-line;
}

a {
    color: #ff786b;
}

.check-row {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 11px;
    align-items: start;
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #343b45;
    border-radius: 12px;
    background: #0d1014;
    font-weight: 600;
    line-height: 1.5;
}

.check-row input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
}

.check-row.warning {
    border-color:
        rgba(246, 189, 79, .42);
    color: #ffe2a5;
}

.summary-strip {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin: 22px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.summary-strip div {
    display: grid;
    gap: 4px;
}

.summary-strip span {
    color: var(--muted);
}

.maps-link {
    white-space: nowrap;
}

.primary {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background:
        linear-gradient(
            180deg,
            #ef4b3b,
            var(--accent-dark)
        );
    color: white;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 900;
    letter-spacing: .035em;
    box-shadow:
        0 14px 34px
        rgba(227, 66, 50, .22);
}

.primary:disabled {
    cursor: not-allowed;
    opacity: .42;
    box-shadow: none;
    filter: grayscale(.35);
}

.primary:not(:disabled) {
    opacity: 1;
    filter: none;
}

.fine-print {
    margin: 12px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: .8rem;
}

.status-card {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-color:
        rgba(246, 189, 79, .45);
    color: #ffe3a9;
}

.status-card.error {
    border-color:
        rgba(227, 66, 50, .55);
    color: #ffb0a8;
}

.success-card {
    padding: 36px;
    text-align: center;
}

.success-mark {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--success);
    color: #07130b;
    font-size: 2.25rem;
    font-weight: 900;
}

.success-card h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.success-card .details {
    display: grid;
    gap: 10px;
    margin: 24px auto;
    max-width: 620px;
    padding: 18px;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--muted);
}

.link-button {
    display: inline-flex;
    width: auto;
    text-decoration: none;
}

footer {
    padding: 32px 0 10px;
    color: #737d88;
    text-align: center;
    font-size: .78rem;
}

footer span {
    display: block;
    margin-top: 6px;
}

footer a {
    color: inherit;
    text-underline-offset: 3px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 720px) {
    .site-logo {
        width: 235px;
        max-width: 78%;
        margin-bottom: 24px;
    }

    .shell {
        width: min(100% - 20px, 980px);
        padding-top: 20px;
    }

    .hero {
        padding-bottom: 28px;
    }

    .card {
        padding: 20px;
    }

    .grid.two,
    .slot-picker {
        grid-template-columns: 1fr;
    }

    .summary-strip {
        align-items: flex-start;
        flex-direction: column;
    }
}
