:root {
    --green: #255f18;
    --green-dark: #173f10;
    --green-soft: #edf7e6;
    --red-soft: #ffe5e3;
    --red: #d62424;
    --yellow-soft: #fff3c4;
    --yellow: #e7ae24;
    --grey: #e6e6e2;
    --border: #deded8;
    --text: #172214;
    --muted: #667064;
    --shadow: 0 8px 28px rgba(0, 0, 0, .11);
    --radius: 14px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: #f5f4ef;
}
a { color: inherit; }
.site-shell {
    width: min(1220px, calc(100% - 28px));
    margin: 22px auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.site-header,
.site-footer {
    color: #fff;
    background:
        linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
        repeating-linear-gradient(90deg, #211b16 0 28px, #30271f 28px 56px);
}
.site-header {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px clamp(24px, 5vw, 64px);
}
.brand { display: flex; align-items: center; gap: 18px; }
.brand-icon { font-size: 46px; line-height: 1; }
.brand h1 { margin: 0; font-size: clamp(28px, 4vw, 48px); letter-spacing: -.03em; }
.brand p { margin: 4px 0 0; opacity: .86; }
.menu-button { background: transparent; border: 0; color: #fff; font-size: 30px; cursor: pointer; }
.main-content { padding: clamp(22px, 4vw, 44px); }
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 920px;
    margin: 0 auto 30px;
    position: relative;
}
.step { text-align: center; color: #777; position: relative; }
.step span {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #999;
    color: #fff;
    font-weight: 800;
    font-size: 22px;
    box-shadow: 0 0 0 5px #fff;
}
.step.active { color: var(--green); }
.step.active span { background: var(--green); }
.step strong { display: block; margin-top: 10px; font-size: 15px; }
.panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #fff;
}
.booking-panel { padding: clamp(18px, 3vw, 32px); }
.panel-header h2 { margin: 0 0 8px; color: var(--green-dark); font-size: clamp(22px, 3vw, 31px); }
.panel-header p { margin: 0 0 22px; color: #293127; }
.form-step { display: none; }
.form-step.is-visible { display: block; }
.calendar-card { border: 1px solid var(--border); border-radius: 10px; padding: clamp(12px, 2vw, 24px); }
.calendar-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.calendar-topbar h3 { margin: 0; font-size: clamp(18px, 2.4vw, 24px); }
.icon-button { border: 0; background: transparent; font-size: 38px; color: #0d180b; cursor: pointer; padding: 4px 12px; }
.calendar-weekdays,
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-weekdays span { font-weight: 800; text-align: center; padding: 0 0 12px; }
.day {
    min-height: 76px;
    border: 1px solid var(--border);
    background: #fff;
    font: inherit;
    font-weight: 700;
    color: #132111;
    cursor: pointer;
}
.day.free { background: var(--green-soft); }
.day.booked { background: var(--red-soft); color: var(--red); cursor: not-allowed; }
.day.requested { background: var(--yellow-soft); cursor: not-allowed; }
.day.past, .day.other-month { background: #f4f4f2; color: #8d918b; cursor: not-allowed; }
.day.selected { background: var(--green); color: #fff; box-shadow: inset 0 0 0 3px var(--green-dark); }
.legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.legend i { width: 18px; height: 18px; display: inline-block; border-radius: 4px; }
.legend .free { background: var(--green-soft); }
.legend .booked { background: #ffaaa5; }
.legend .requested { background: #ffd76d; }
.legend .past { background: var(--grey); }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; margin-top: 22px; }
.actions.between { justify-content: space-between; }
.date-feedback { margin: 0 auto 0 0; color: var(--muted); }
.btn {
    border: 0;
    border-radius: 8px;
    padding: 14px 28px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.btn-primary { background: linear-gradient(#33791f, var(--green-dark)); color: #fff; }
.btn-secondary { background: #ecece8; color: #172214; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.selected-summary { background: var(--green-soft); border-radius: 8px; padding: 14px 16px; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
label { display: grid; gap: 7px; font-weight: 600; }
.full { grid-column: 1 / -1; }
input, textarea {
    width: 100%;
    border: 1px solid #cfcfc8;
    border-radius: 7px;
    padding: 13px 14px;
}
textarea { resize: vertical; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.checkbox input { width: auto; margin-top: 4px; }
.review-list { display: grid; grid-template-columns: 180px 1fr; gap: 12px 16px; background: #fbfbf8; border-radius: 10px; padding: 18px; }
.review-list dt { font-weight: 700; color: var(--green-dark); }
.review-list dd { margin: 0; }
.form-message { margin-top: 16px; font-weight: 700; }
.form-message.success { color: var(--green); }
.form-message.error { color: var(--red); }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.info-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(0,0,0,.08);
}
.info-icon { color: var(--green); font-size: 46px; line-height: 1; }
.info-card h3 { color: var(--green-dark); margin: 0 0 12px; }
.info-card ul { margin: 0; padding-left: 18px; line-height: 1.8; }
.info-card p { margin: 0 0 12px; }
.site-footer { padding: 22px clamp(22px, 4vw, 44px); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-footer p { margin: 0; font-weight: 700; }
.site-footer a { text-decoration: none; margin-right: 24px; }
@media (max-width: 900px) {
    .site-shell { width: min(760px, calc(100% - 22px)); margin: 16px auto; }
    .site-header { min-height: 100px; }
    .info-cards { grid-template-columns: 1fr; }
    .info-card { padding: 18px 22px; }
    .day { min-height: 58px; }
}
@media (max-width: 560px) {
    .site-shell { width: 100%; margin: 0; border-radius: 0; }
    .site-header { padding: 18px 16px; min-height: 82px; }
    .brand-icon { font-size: 34px; }
    .brand h1 { font-size: 24px; }
    .brand p { display: none; }
    .main-content { padding: 16px; }
    .steps { gap: 4px; margin-bottom: 18px; }
    .step span { width: 38px; height: 38px; font-size: 17px; }
    .step strong { font-size: 11px; line-height: 1.25; }
    .booking-panel { padding: 14px; }
    .calendar-card { padding: 8px; }
    .calendar-weekdays span { font-size: 12px; }
    .day { min-height: 42px; font-size: 13px; }
    .legend { gap: 10px; font-size: 12px; }
    .legend span { font-size: 12px; }
    .actions, .actions.between { flex-direction: column; align-items: stretch; }
    .date-feedback { margin: 0; }
    .btn { width: 100%; }
    .form-grid { grid-template-columns: 1fr; }
    .review-list { grid-template-columns: 1fr; }
    .review-list dt { margin-top: 8px; }
    .info-card { grid-template-columns: 70px 1fr; padding: 16px; }
    .info-icon { font-size: 38px; }
    .site-footer { display: block; }
    .site-footer a { display: inline-block; margin: 12px 16px 0 0; }
}

/* Mehrtägige Auswahl */
.day.in-range { background: #dbeec6; box-shadow: inset 0 0 0 1px #b8d79a; }
.day.range-start,
.day.range-end,
.day.selected { background: var(--green); color: #fff; box-shadow: inset 0 0 0 3px var(--green-dark); }
.day.range-start { border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
.day.range-end { border-top-right-radius: 12px; border-bottom-right-radius: 12px; }

.public-upload-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vw, 48px);
    background: var(--bg);
}

.public-upload-card {
    width: min(720px, 100%);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0,0,0,.12);
    padding: clamp(22px, 4vw, 42px);
}

.public-upload-card h1 {
    margin-top: 0;
    color: var(--green-dark);
}

.public-upload-form,
.public-downloads {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.public-downloads {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fbfaf5;
}

.public-downloads h2 {
    margin: 0;
    font-size: 18px;
}

.public-downloads ul {
    margin: 0;
    padding-left: 20px;
}

.form-message {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 12px;
}

.form-message.success { background: #e7f4df; color: var(--green-dark); }
.form-message.error { background: #fde8e7; color: #9f1d16; }
