/* Die Zillertalerin – Buchungsstrecke (/buchen/) */

.bk-page { background: #faf8f5; }
.bk-page .site-footer { margin-top: 64px; }
/* Platz für die Buchungs-App freihalten, bis booking-app.js sie einblendet – sonst springt der Footer (CLS) */
.bk-page #main { min-height: 100vh; }

:root {
  --bk-card: #fff;
  --bk-line: #e8e3dc;
  --bk-soft: #f3efe9;
  --bk-red-soft: #f6e8e7;
  --bk-radius: 18px;
  --bk-shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 24px rgba(0,0,0,.05);
}

/* App-Bar */
.bk-appbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  padding: 10px clamp(12px, 3vw, 28px);
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bk-line);
}
.bk-appbar svg { width: 22px; height: 22px; fill: currentColor; }
.bk-appbar-back { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); }
.bk-appbar-back:hover { background: var(--bk-soft); color: var(--ink); }
.bk-appbar-brand img { width: 120px; height: auto; }
.bk-appbar-title { font-family: var(--script); font-size: 1.5rem; color: var(--ink); }
.bk-appbar-help { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--text); text-decoration: none; }
.bk-appbar-help svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .bk-appbar-title, .bk-appbar-help span { display: none; } }

/* Kopf + Schritte */
.bk-shell { max-width: 1180px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 28px) 0; }
.bk-h1 { font-family: var(--script); font-size: clamp(2.2rem, 5vw, 3rem); margin: 0 0 .3em; text-transform: none; }
.bk-progress { height: 4px; background: var(--bk-line); border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.bk-progress span { display: block; height: 100%; background: var(--red); border-radius: 4px; transition: width .35s ease; }
.bk-steps { display: flex; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; }
.bk-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.bk-num {
  display: grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bk-soft); color: var(--text); font-size: .8rem; font-weight: 600;
}
.bk-num svg { width: 15px; height: 15px; fill: currentColor; }
.bk-steps .is-current { color: var(--ink); font-weight: 600; }
.bk-steps .is-current .bk-num { background: var(--red); color: #fff; }
.bk-steps .is-done .bk-num { background: var(--bk-red-soft); color: var(--red); }
@media (max-width: 700px) { .bk-step-label { display: none; } .bk-steps .is-current .bk-step-label { display: inline; } .bk-steps li { flex: none; } .bk-steps .is-current { flex: 1; } }

/* Layout */
.bk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.bk-stage { background: var(--bk-card); border: 1px solid var(--bk-line); border-radius: var(--bk-radius); box-shadow: var(--bk-shadow); padding: clamp(18px, 3vw, 32px); min-width: 0; }
.bk-summary { position: sticky; top: 84px; background: var(--bk-card); border: 1px solid var(--bk-line); border-radius: var(--bk-radius); box-shadow: var(--bk-shadow); padding: 22px; }
@media (max-width: 960px) {
  .bk-layout { grid-template-columns: 1fr; }
  .bk-summary { position: static; }
}

.bk-eyebrow { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); font-weight: 600; margin: 0 0 .3em; }
.bk-step-title { font-size: clamp(1.5rem, 3vw, 1.9rem); text-transform: none; margin: 0 0 .25em; }
.bk-step-title:focus { outline: none; }
.bk-lead { color: var(--text); margin: 0 0 1.2em; }

/* Buttons */
.bk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.bk-btn svg { width: 18px; height: 18px; fill: currentColor; }
.bk-btn-filled { background: var(--red); color: #fff; }
.bk-btn-filled:hover:not(:disabled) { background: var(--red-dark); color: #fff; box-shadow: 0 2px 8px rgba(137,24,17,.3); }
.bk-btn-outlined { background: #fff; color: var(--red); border-color: #d9c3c1; }
.bk-btn-outlined:hover:not(:disabled) { background: var(--bk-red-soft); }
.bk-btn-tonal { background: var(--bk-red-soft); color: var(--red); }
.bk-btn-text { background: none; color: var(--text); padding: 0 12px; }
.bk-btn-text:hover:not(:disabled) { background: var(--bk-soft); }
.bk-btn:disabled { opacity: .45; cursor: not-allowed; }
.bk-btn-wide { width: 100%; }
.bk-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
@media (max-width: 960px) { .bk-actions { display: none; } }

/* Gäste-Auswahl */
.bk-guests { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-bottom: 20px; }
.bk-counter { display: flex; align-items: center; gap: 12px; }
.bk-counter-label { min-width: 88px; font-size: .95rem; color: var(--ink); }
.bk-counter-label small { display: block; color: var(--muted); font-size: .75rem; }
.bk-counter button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--bk-line); background: #fff;
  font-size: 1.2rem; line-height: 1; color: var(--ink); cursor: pointer;
}
.bk-counter button:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.bk-counter button:disabled { opacity: .35; cursor: not-allowed; }
.bk-counter output { min-width: 18px; text-align: center; font-weight: 600; color: var(--ink); }

/* Kalender */
.bk-cal { position: relative; }
.bk-cal-nav { position: absolute; left: 0; right: 0; top: -4px; display: flex; justify-content: space-between; pointer-events: none; }
.bk-cal-nav button { pointer-events: auto; }
.bk-icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--ink); cursor: pointer; }
.bk-icon-btn:hover:not(:disabled) { background: var(--bk-soft); }
.bk-icon-btn:disabled { opacity: .3; cursor: default; }
.bk-icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
.bk-months { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .bk-months { grid-template-columns: 1fr; } }
.bk-month-title { text-align: center; font-size: 1rem; font-weight: 600; margin: 6px 0 12px; font-style: normal; }
.bk-grid-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.bk-dow { text-align: center; font-size: .72rem; color: var(--muted); padding-bottom: 6px; }
.bk-day {
  position: relative; aspect-ratio: 1 / 1.05; border: 0; background: none; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font: inherit; color: var(--ink); border-radius: 12px;
}
.bk-day-n { font-size: .92rem; line-height: 1; }
.bk-day-p { font-size: .62rem; color: var(--muted); line-height: 1; }
.bk-day:hover:not([aria-disabled="true"]) { background: var(--bk-soft); }
.bk-day.is-past, .bk-day.is-out { color: #c9c4bd; cursor: default; }
.bk-day.is-full { color: #b9b3ab; cursor: default; }
.bk-day.is-full .bk-day-n { text-decoration: line-through; }
.bk-day.is-full.can-depart { cursor: pointer; color: var(--ink); }
.bk-day.is-full.can-depart .bk-day-n { text-decoration: none; }
.bk-day.is-short { color: #b9b3ab; }
.bk-day.in-range { background: var(--bk-red-soft); border-radius: 0; }
.bk-day.is-start, .bk-day.is-end { background: var(--red); color: #fff; }
.bk-day.is-start .bk-day-p, .bk-day.is-end .bk-day-p { color: rgba(255,255,255,.8); }
.bk-day.is-start.has-range { border-radius: 12px 0 0 12px; }
.bk-day.is-end { border-radius: 0 12px 12px 0; }
.bk-day.is-today .bk-day-n { font-weight: 700; }
.bk-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; color: var(--muted); margin: 16px 0 0; }
.bk-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bk-key { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.bk-key-sel { background: var(--red); }
.bk-key-full { background: #e3ded7; }
.bk-status { background: var(--bk-soft); border-radius: 12px; padding: 12px 16px; margin: 16px 0 0; font-size: .92rem; color: var(--ink); }
.bk-status.is-warn { background: #fff4e5; }
.bk-status.is-ok { background: #edf6ee; }
.bk-loading-cal { min-height: 320px; display: grid; place-items: center; color: var(--muted); }

/* Apartment-Karten */
.bk-apts { display: grid; gap: 20px; }
.bk-apt { border: 1px solid var(--bk-line); border-radius: var(--bk-radius); overflow: hidden; background: #fff; transition: border-color .2s, box-shadow .2s; }
.bk-apt.is-selected { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.bk-apt.is-unavailable { opacity: .6; }
.bk-apt-grid { display: block; }

.bk-gal { position: relative; background: #eee; }
.bk-gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: 100%; }
.bk-gal-track::-webkit-scrollbar { display: none; }
.bk-gal-track button { flex: 0 0 100%; scroll-snap-align: start; border: 0; padding: 0; background: none; cursor: zoom-in; }
.bk-gal-track img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.bk-gal-track img.is-plan { object-fit: contain; background: #fff; padding: 12px; }
.bk-gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 1px 6px rgba(0,0,0,.2); display: grid; place-items: center; cursor: pointer; }
.bk-gal-nav svg { width: 20px; height: 20px; fill: var(--ink); }
.bk-gal-nav.prev { left: 10px; }
.bk-gal-nav.next { right: 10px; }
.bk-gal-count { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; padding: 3px 9px; border-radius: 999px; }
.bk-gal-label { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.92); color: var(--ink); font-size: .72rem; padding: 3px 9px; border-radius: 999px; }

.bk-apt-body { padding: 20px 22px 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 28px; min-width: 0; }
.bk-apt-body > * { grid-column: 1; }
.bk-apt-body > .bk-apt-foot { grid-column: 2; grid-row: 1 / span 4; align-self: start; flex-direction: column; align-items: stretch; border-top: 0; padding-top: 4px; margin-top: 0; min-width: 190px; text-align: right; }
@media (max-width: 760px) {
  .bk-apt-body { grid-template-columns: 1fr; }
  .bk-apt-body > .bk-apt-foot { grid-column: 1; grid-row: auto; flex-direction: row; align-items: flex-end; text-align: left; border-top: 1px solid var(--bk-line); padding-top: 14px; }
}
.bk-apt-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bk-apt-title h3 { font-family: var(--script); font-size: 2.1rem; margin: 0; font-style: normal; white-space: nowrap; }
.bk-apt-floor { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.bk-facts { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.bk-facts li { font-size: .78rem; background: var(--bk-soft); color: var(--ink); padding: 4px 10px; border-radius: 999px; }
.bk-apt-desc { font-size: .88rem; margin: 0; }
.bk-more summary { cursor: pointer; font-size: .85rem; color: var(--red); list-style: none; }
.bk-more summary::-webkit-details-marker { display: none; }
.bk-more summary::after { content: ' ▾'; }
.bk-more[open] summary::after { content: ' ▴'; }
.bk-more ul { columns: 2; column-gap: 20px; font-size: .82rem; padding-left: 1.1em; margin: 10px 0 0; }
.bk-more a { font-size: .85rem; }
.bk-apt-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--bk-line); padding-top: 14px; }
.bk-apt-price strong { display: block; font-size: 1.45rem; color: var(--ink); line-height: 1.1; }
.bk-apt-price small { font-size: .78rem; color: var(--muted); }
.bk-apt-off { font-size: .88rem; color: var(--muted); }

/* Formular */
.bk-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bk-form .bk-wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .bk-form { grid-template-columns: 1fr; } }
.bk-tf { position: relative; }
.bk-tf input, .bk-tf textarea, .bk-tf select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 22px 14px 8px; border: 1px solid #cfc8bf; border-radius: 12px; background: #fff;
}
.bk-tf textarea { resize: vertical; }
.bk-tf label { position: absolute; left: 15px; top: 16px; font-size: 1rem; color: var(--muted); pointer-events: none; transition: all .15s; }
.bk-tf input:focus, .bk-tf textarea:focus, .bk-tf select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.bk-tf input:focus + label, .bk-tf input:not(:placeholder-shown) + label,
.bk-tf textarea:focus + label, .bk-tf textarea:not(:placeholder-shown) + label,
.bk-tf select + label { top: 6px; font-size: .72rem; color: var(--red); }
.bk-tf.has-error input, .bk-tf.has-error textarea { border-color: #b3261e; }
.bk-tf select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2354595f' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 10px center / 22px; }
.bk-rows dt small { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.bk-support { color: #b3261e; font-size: .78rem; margin: 4px 0 0 4px; }
.bk-check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.bk-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; }

/* Prüfen & Bezahlen */
.bk-review { display: grid; gap: 16px; }
.bk-review-card { border: 1px solid var(--bk-line); border-radius: 14px; padding: 16px 18px; }
.bk-review-card h3 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-style: normal; margin: 0 0 8px; }
.bk-review-card p { margin: 0; font-size: .95rem; }
.bk-review-edit { float: right; font-size: .82rem; background: none; border: 0; color: var(--red); cursor: pointer; padding: 0; }
.bk-method { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.bk-method legend { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 8px; }
.bk-method-opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--bk-line); border-radius: 14px; padding: 14px 16px; cursor: pointer; }
.bk-method-opt:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.bk-method-opt input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; }
.bk-method-opt span { display: grid; gap: 2px; font-size: .95rem; color: var(--ink); }
.bk-method-opt small { color: var(--muted); font-size: .82rem; }
.bk-pay-box { background: var(--bk-soft); border-radius: 14px; padding: 18px; }
.bk-pay-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--ink); }
.bk-pay-top svg { width: 18px; height: 18px; fill: currentColor; }
.bk-error { background: #fdecea; color: #8c1d18; border-radius: 12px; padding: 12px 16px; font-size: .9rem; }

/* Zusammenfassung */
.bk-summary-title { font-family: var(--script); font-size: 1.9rem; text-transform: none; margin: 0 0 12px; }
.bk-sum-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.bk-rows { margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.bk-rows div { display: flex; justify-content: space-between; gap: 12px; }
.bk-rows dt { color: var(--text); }
.bk-rows dd { margin: 0; color: var(--ink); text-align: right; }
.bk-rows-price { border-top: 1px solid var(--bk-line); margin-top: 14px; padding-top: 14px; }
.bk-total { border-top: 1px solid var(--bk-line); padding-top: 10px; margin-top: 4px; font-weight: 700; font-size: 1.05rem; }
.bk-total dt, .bk-total dd { color: var(--ink); }
.bk-fineprint { font-size: .78rem; color: var(--muted); margin: 12px 0 0; }
.bk-trust { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; font-size: .8rem; color: var(--text); }
.bk-trust li::before { content: '✓ '; color: var(--red); font-weight: 700; }

/* Weiter-Button in der Zusammenfassung (Desktop, bleibt beim Scrollen sichtbar) */
.bk-sum-action { margin-top: 16px; }
@media (max-width: 960px) { .bk-sum-action { display: none; } }

/* Bottom-Bar (Handy/Tablet – dort steht die Zusammenfassung unter dem Inhalt) */
.bk-bottombar { display: none; }
@media (max-width: 960px) {
  .bk-bottombar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--bk-line); box-shadow: 0 -4px 16px rgba(0,0,0,.06);
  }
  .bk-bb-info { flex: 1; min-width: 0; line-height: 1.2; }
  .bk-bb-label { display: block; font-size: .72rem; color: var(--muted); }
  .bk-bb-value { font-size: 1rem; color: var(--ink); }
  .bk-page main { padding-bottom: 90px; }
}

/* Lightbox (Galerie) */
.bk-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12,12,12,.94); display: flex; align-items: center; justify-content: center; }
.bk-lightbox[hidden] { display: none; }
.bk-lightbox img { max-width: 94vw; max-height: 84vh; width: auto; height: auto; border-radius: 6px; }
.bk-lightbox img.is-plan { background: #fff; padding: 16px; }
.bk-lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; padding: 14px; }
.bk-lightbox svg { width: 30px; height: 30px; fill: currentColor; }
.bk-lb-close { top: 6px; right: 6px; }
.bk-lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.bk-lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
.bk-lb-caption { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #ddd; font-size: .85rem; }

@media (prefers-reduced-motion: reduce) { .bk-progress span, .bk-apt, .bk-btn { transition: none; } }

/* Gutscheincode (Schritt Prüfen & Bezahlen) */
.bk-code { margin-top: 12px; font-size: .92rem; }
.bk-code summary { cursor: pointer; color: var(--red); width: fit-content; }
.bk-code-form { display: flex; gap: 8px; margin-top: 10px; }
.bk-code-form input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--bk-line); border-radius: 10px; font: inherit; }
.bk-code-form input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.bk-code-ok { display: flex; align-items: center; gap: 8px; margin: 12px 0 0 !important; padding: 10px 12px; background: #edf6ee; border-radius: 10px; }
.bk-code-ok svg { width: 18px; height: 18px; flex: none; fill: #2e7d32; }
.bk-code-ok span { flex: 1; }
.bk-code-ok .bk-review-edit { position: static; float: none; }

/* Last-Minute-Rabatt */
.bk-lm-badge { display: inline-block; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.bk-lm-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: var(--bk-red-soft); border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; font-size: .9rem; color: var(--ink); }
.bk-apt-price .bk-lm-badge { margin-bottom: 4px; }
.bk-apt-price s { display: block; font-size: .92rem; color: var(--muted); }
.bk-row-lm dt, .bk-row-lm dd { color: var(--red); font-weight: 600; }
