/* Bierbad Booking Form — AQACUR Brand */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* AQACUR brand palette */
    --brand-navy: #0e4194;
    --brand-navy-deep: #092d6b;
    --brand-cyan: #009fe3;
    --brand-cyan-hover: #0088c6;
    --brand-cyan-light: #d2f0fc;
    --brand-cyan-glow: rgba(0, 159, 227, 0.14);
    --brand-blue-soft: #e8f2fb;

    /* Functional colors */
    --avail: #2e8b57;
    --avail-light: #e6f4ec;
    --avail-hover: #3aa76d;
    --blocked-muted: #b56a6a;
    --blocked-light: #f5e6e6;

    /* Neutrals */
    --text-primary: #1a1a1a;
    --text-secondary: #555960;
    --text-muted: #8c919a;
    --border: #d6dae0;
    --bg-subtle: #f5f7fa;
    --white: #ffffff;

    --radius: 10px;
    --radius-sm: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--white);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/* === Wrapper === */
.booking-wrapper {
    max-width: 660px;
    margin: 40px auto;
    background: var(--white);
    border-radius: 16px;
    box-shadow:
        0 1px 3px rgba(14, 65, 148, 0.04),
        0 8px 32px rgba(14, 65, 148, 0.08);
    padding: 0;
    overflow: hidden;
    animation: wrapperIn 0.6s ease-out both;
}

@keyframes wrapperIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* === Title === */
.form-title {
    font-family: 'DM Serif Display', 'Georgia', serif;
    font-weight: 400;
    font-size: 1.1em;
    color: var(--brand-navy);
    padding: 24px 0 12px;
    margin: 0;
    border-bottom: 1.5px solid var(--border);
    letter-spacing: 0.01em;
}

/* === Intro === */
.intro-block {
    padding: 14px 40px 4px;
}

.intro {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.85em;
    line-height: 1.6;
    font-weight: 400;
}

.intro a {
    color: var(--brand-navy);
    text-decoration: none;
    border-bottom: 1px solid var(--brand-cyan);
    transition: border-color 0.2s, color 0.2s;
    font-weight: 500;
}

.intro a:hover {
    color: var(--brand-cyan-hover);
    border-color: var(--brand-cyan-hover);
}

/* === Form body === */
.form-body {
    padding: 0 40px 36px;
}

/* === Sections === */
fieldset {
    border: none;
    padding: 0;
    margin: 0 0 4px;
    animation: sectionIn 0.5s ease-out both;
}

fieldset:nth-of-type(1) { animation-delay: 0.15s; }
fieldset:nth-of-type(2) { animation-delay: 0.3s; }
fieldset:nth-of-type(3) { animation-delay: 0.45s; }

@keyframes sectionIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

legend {
    display: block;
    width: 100%;
    font-family: 'DM Serif Display', 'Georgia', serif;
    font-weight: 400;
    font-size: 1.1em;
    color: var(--brand-navy);
    padding: 22px 0 12px;
    margin-bottom: 2px;
    border-bottom: 1.5px solid var(--border);
    letter-spacing: 0.01em;
}

/* === Form rows === */
.form-row {
    margin-bottom: 14px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-row > label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.84em;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.req {
    color: var(--brand-cyan);
    font-weight: 600;
}

/* === Grid layouts === */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
    margin-bottom: 14px;
}

.form-grid-2 .form-row {
    margin-bottom: 0;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 140px 1fr 1fr;
    gap: 0 16px;
    margin-bottom: 14px;
}

.form-grid-3 .form-row {
    margin-bottom: 0;
}

/* Labels inside grids inherit the same style */
.form-grid-2 label,
.form-grid-3 label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.84em;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

/* === Inputs === */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.93em;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--white);
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px var(--brand-cyan-glow);
    background: #fafcff;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%238c919a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 36px;
    cursor: pointer;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

input[type="number"] {
    max-width: 100%;
}

/* Legacy inline rows (PLZ/Ort) */
.form-row-inline {
    display: flex;
    gap: 14px;
}

.field-small { flex: 0 0 120px; }
.field-large { flex: 1; }
.field-small label,
.field-large label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.84em;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

/* === Calendar === */
.calendar-container {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 8px;
    background: var(--white);
}

.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--brand-navy);
    color: var(--white);
    padding: 12px 16px;
}

.cal-nav button {
    background: none;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 1.1em;
    cursor: pointer;
    padding: 4px 14px;
    border-radius: var(--radius-sm);
    transition: background 0.2s, border-color 0.2s;
    line-height: 1;
}

.cal-nav button:hover:not(:disabled) {
    background: rgba(0, 159, 227, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.cal-nav button:disabled {
    opacity: 0.25;
    cursor: default;
}

.cal-nav span {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 1.05em;
    letter-spacing: 0.02em;
}

.cal-grid {
    padding: 12px 10px 8px;
}

.cal-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    font-size: 0.72em;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    min-height: 200px;
}

.cal-day {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    border-radius: 50%;
    font-size: 0.85em;
    user-select: none;
    transition: all 0.2s ease;
    font-weight: 400;
}

.cal-day.avail {
    background: var(--avail-light);
    color: var(--avail);
    cursor: pointer;
    font-weight: 500;
}

.cal-day.avail:hover {
    background: var(--avail-hover);
    color: var(--white);
    transform: scale(1.12);
    box-shadow: 0 2px 8px rgba(46, 139, 87, 0.25);
}

.cal-day.avail.active {
    background: var(--brand-cyan);
    color: var(--white);
    font-weight: 600;
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(0, 159, 227, 0.35);
}

.cal-day.blocked {
    background: var(--blocked-light);
    color: var(--blocked-muted);
    cursor: not-allowed;
    opacity: 0.5;
    font-weight: 300;
}

.cal-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 45px 20px;
    color: var(--text-muted);
    font-weight: 300;
    font-size: 0.88em;
}

.cal-legend {
    display: flex;
    gap: 16px;
    padding: 8px 16px;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    font-size: 0.75em;
    color: var(--text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.available   { background: var(--avail-light); border: 1.5px solid var(--avail); }
.dot.unavailable { background: var(--blocked-light); border: 1.5px solid var(--blocked-muted); }
.dot.selected    { background: var(--brand-cyan); }

.selected-date {
    font-size: 0.85em;
    color: var(--text-muted);
    padding: 5px 2px 0;
    font-weight: 300;
}

.selected-date.has-date {
    color: var(--brand-navy);
    font-weight: 600;
    font-size: 0.92em;
}

/* === Checkbox === */
.checkbox-row label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.5;
    font-size: 0.86em;
    padding-top: 16px;
}

.checkbox-row input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    accent-color: var(--brand-cyan);
    cursor: pointer;
}

.checkbox-row a {
    color: var(--brand-navy);
    text-decoration: none;
    border-bottom: 1px solid var(--brand-cyan);
    transition: border-color 0.2s, color 0.2s;
}

.checkbox-row a:hover {
    color: var(--brand-cyan-hover);
    border-color: var(--brand-cyan-hover);
}

.hint {
    font-size: 0.78em;
    color: var(--text-muted);
    margin-top: 6px;
    padding-left: 28px;
    font-weight: 300;
    line-height: 1.45;
}

/* === Submit === */
.form-actions {
    text-align: center;
    margin-top: 8px;
    padding-top: 22px;
    border-top: 1.5px solid var(--border);
    animation: sectionIn 0.5s ease-out 0.55s both;
}

.form-actions button {
    background: var(--brand-cyan);
    color: var(--white);
    border: none;
    padding: 13px 48px;
    font-size: 0.92em;
    font-weight: 600;
    font-family: inherit;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.25s, box-shadow 0.25s, transform 0.15s;
    position: relative;
    overflow: hidden;
}

.form-actions button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.form-actions button:hover:not(:disabled) {
    background: var(--brand-cyan-hover);
    box-shadow: 0 4px 20px rgba(0, 159, 227, 0.3);
    transform: translateY(-1px);
}

.form-actions button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 159, 227, 0.2);
}

.form-actions button:disabled {
    opacity: 0.55;
    cursor: wait;
}

/* === Messages === */
.form-message {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 0.88em;
    font-weight: 400;
    animation: msgIn 0.35s ease-out;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.form-message.success {
    background: var(--avail-light);
    color: #2a6e42;
    border: 1.5px solid var(--avail);
}

.form-message.error {
    background: var(--blocked-light);
    color: #8b3a3a;
    border: 1.5px solid var(--blocked-muted);
}

/* === Responsive === */
@media (max-width: 540px) {
    .booking-wrapper {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .intro-block {
        padding: 20px 20px 4px;
    }
    .form-body {
        padding: 0 20px 28px;
    }
    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-grid-2 .form-row,
    .form-grid-3 .form-row {
        margin-bottom: 14px;
    }
    .form-row-inline {
        flex-direction: column;
        gap: 12px;
    }
    .field-small { flex: 1; }
    .cal-legend {
        flex-wrap: wrap;
        gap: 8px;
    }
    .form-actions button {
        width: 100%;
        padding: 13px 20px;
    }
}
