/* ==========================================================
   Fotobox - Frontend
   Palette: Papier #FFFDF7, Tinte #17130E, Blitz-Gelb #FFC53D,
            Fotostreifen-Schwarz #101010, Belegt-Rot #E2574C
   Typo: Bricolage Grotesque (Display), Inter (Body)
   ========================================================== */
:root {
    --paper: #FFFDF7;
    --ink: #17130E;
    --ink-soft: #5C554A;
    --flash: #FFC53D;
    --flash-deep: #E8A612;
    --strip: #101010;
    --busy: #E2574C;
    --free: #3E9B6C;
    --line: #E8E2D6;
    --radius: 14px;
    --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

h1, h2 { font-family: var(--font-display); line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 0.75rem; }
a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(8px);
    z-index: 10;
}
.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    text-decoration: none;
}
.logo span { color: var(--flash-deep); }
.site-header nav { display: flex; gap: 1.25rem; align-items: center; }
.site-header nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-cta {
    background: var(--ink);
    color: var(--paper) !important;
    padding: 0.5rem 1rem;
    border-radius: 999px;
}

/* ---------- Flash-Messages ---------- */
.flash {
    max-width: 1080px;
    margin: 1rem auto 0;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
}
.flash-error   { background: #FBE9E7; color: #8C2318; border: 1px solid #F0BEB8; }
.flash-success { background: #E8F5EE; color: #1D5C3D; border: 1px solid #BFE3CF; }

/* ---------- Hero mit Fotostreifen ---------- */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(2.5rem, 7vw, 5rem) 1.5rem;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--flash-deep);
    margin: 0 0 0.5rem;
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    margin: 0 0 1rem;
}
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 1.75rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-price { margin-top: 1.5rem; color: var(--ink-soft); font-size: 0.95rem; }
.hero-price strong { color: var(--ink); font-size: 1.15rem; }

/* Der Fotostreifen - Signatur der Seite */
.hero-strip {
    position: relative;
    background: var(--strip);
    padding: 1rem 1rem 2.6rem;
    border-radius: 6px;
    transform: rotate(3deg);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 24px 48px -20px rgba(23, 19, 14, 0.45);
}
.strip-frame {
    aspect-ratio: 4 / 3;
    background: #2A2A2A;
    overflow: hidden;
    border-radius: 2px;
}
.strip-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.strip-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    filter: grayscale(0.3);
}
.strip-flash {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 56px;
    height: 56px;
    background: var(--flash);
    border-radius: 50%;
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--flash) 25%, transparent);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1.5px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--flash); border-color: var(--flash); }
.btn-primary:hover { background: var(--flash-deep); border-color: var(--flash-deep); }
.btn-primary:disabled {
    background: var(--line);
    border-color: var(--line);
    color: var(--ink-soft);
    cursor: not-allowed;
    transform: none;
}
.btn-ghost { border-color: var(--line); }
.btn-large { padding: 0.9rem 2rem; font-size: 1.05rem; }

/* ---------- Sektionen ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) 1.5rem; }
.section-alt {
    max-width: none;
    background: #F6F1E6;
    border-block: 1px solid var(--line);
}
.section-alt > * { max-width: 1080px; margin-inline: auto; }
.section-lead { color: var(--ink-soft); max-width: 640px; }

.offer-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: start; }
.offer-image img { width: 100%; border-radius: var(--radius); display: block; }
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 2rem;
}
.gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* ---------- Kalender ---------- */
.calendar-widget {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    max-width: 520px;
    margin-top: 1.5rem;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.cal-title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.cal-nav {
    border: 1px solid var(--line);
    background: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    cursor: pointer;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cal-weekday {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-transform: uppercase;
    padding-bottom: 4px;
}
.cal-day {
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.1s ease;
}
.cal-day:hover:not(:disabled) { background: color-mix(in srgb, var(--flash) 25%, var(--paper)); }
.cal-day:focus-visible { outline: 2px solid var(--flash-deep); outline-offset: 1px; }
.cal-day.is-past { color: #C9C2B4; border-color: transparent; cursor: default; }
.cal-day.is-blocked {
    background: repeating-linear-gradient(-45deg, #F8DDD9, #F8DDD9 4px, #F3CFC9 4px, #F3CFC9 8px);
    color: var(--busy);
    border-color: #EFC5BE;
    cursor: not-allowed;
}
.cal-day.is-selected { background: color-mix(in srgb, var(--flash) 45%, var(--paper)); border-color: var(--flash-deep); }
.cal-day.is-pickup, .cal-day.is-return {
    background: var(--ink);
    color: var(--flash);
    border-color: var(--ink);
    font-weight: 700;
}
.calendar-legend {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.9rem;
    font-size: 0.82rem;
    color: var(--ink-soft);
}
.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-right: 4px;
}
.dot-free { background: var(--paper); border: 1px solid var(--line); }
.dot-blocked { background: #F3CFC9; border: 1px solid #EFC5BE; }
.dot-selected { background: var(--flash); }

/* ---------- Auswahl-Zusammenfassung ---------- */
.selection-summary {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius);
    padding: 1.1rem 1.5rem;
    max-width: 520px;
}
.summary-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #B9B2A5;
}
.selection-summary strong { font-size: 1.1rem; color: var(--flash); }

/* ---------- Buchungsformular ---------- */
.booking-form { max-width: 640px; display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.booking-form label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 500; font-size: 0.95rem; }
.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form textarea,
.booking-form select {
    font: inherit;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}
.booking-form input:focus, .booking-form textarea:focus, .booking-form select:focus {
    outline: 2px solid var(--flash);
    border-color: var(--flash-deep);
}
.checkbox-label { flex-direction: row !important; align-items: center; gap: 0.6rem !important; }
.form-hint { color: var(--busy); font-weight: 500; margin: 0; }

.pickup-address {
    background: #F6F1E6;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    margin: 0 0 1.25rem;
    font-size: 0.92rem;
    line-height: 1.5;
}
.pickup-address strong { display: block; margin-bottom: 0.2rem; }
.form-note { color: var(--ink-soft); font-size: 0.85rem; }

.payment-choice {
    border: none;
    padding: 0;
    margin: 0.25rem 0 0;
}
.payment-choice legend {
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    padding: 0 0 0.5rem;
    width: 100%;
}
.payment-toggle-group {
    display: flex;
    gap: 0.35rem;
    background: #F6F1E6;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.3rem;
}
.payment-toggle {
    position: relative;
    flex: 1 1 0;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink-soft);
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.payment-toggle:hover { color: var(--ink); }
.payment-toggle.is-selected {
    background: var(--flash);
    color: var(--ink);
    box-shadow: 0 2px 6px -2px rgba(23, 19, 14, 0.3);
}
.payment-toggle-icon { font-size: 1.05rem; line-height: 1; }
.payment-toggle input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}
.payment-toggle:focus-within {
    outline: 2px solid var(--flash-deep);
    outline-offset: 2px;
}

@media (max-width: 420px) {
    .payment-toggle-group { flex-direction: column; }
}

/* ---------- Status-Seiten ---------- */
.details-page { max-width: 700px; }
.details-page h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 0.75rem; }
.details-page .section-lead { margin-bottom: 1.75rem; }

.status-page { text-align: center; max-width: 560px; padding-top: 5rem; }
.status-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--free);
    color: #fff;
    font-size: 2.2rem;
    display: grid;
    place-items: center;
}
.status-icon-warn { background: var(--flash-deep); }
.status-page .btn { margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    text-align: center;
    padding: 2rem 1rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin-top: 3rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .hero { grid-template-columns: 1fr; }
    .hero-strip { max-width: 280px; margin: 0 auto; }
    .offer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .site-header nav a:not(.nav-cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
