/* Gästeseite „Manage your breakfast“ im Look von residenzbadgastein.com: Caudex + Poppins, Creme, Gold, Petrol.
   Mobil zuerst. Flächen werden durch Tonstufen getrennt, nicht durch Linien oder Schatten. */
:root {
  --bf-ground: #f6f3e8;
  --bf-surface: #fffdf7;
  --bf-field: #f0eddf;
  --bf-field-deep: #e6e0cb;
  --bf-ink: #1f2b2c;
  --bf-muted: #4f5a58;
  --bf-gold: #8a7517;
  --bf-gold-deco: #cfb023;
  --bf-petrol: #375a5e;
  --bf-petrol-deep: #2b4649;
  --bf-on-petrol: #f6f3e8;
  --bf-error: #a3392d;
  --bf-ok: #3f6b48;
  --bf-display: "Caudex", Georgia, serif;
  --bf-body: "Poppins", -apple-system, "Segoe UI", Roboto, sans-serif;
  --bf-gutter: 16px;
  --bf-ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.bf-page { margin: 0; background: var(--bf-ground); color: var(--bf-ink); font: 400 16px/1.55 var(--bf-body); -webkit-text-size-adjust: 100%; }
.bf-page h1, .bf-page h2, .bf-page h3, .bf-page h4 { font-family: var(--bf-display); font-weight: 400; letter-spacing: -.01em; margin: 0; }
.bf-page h2 { font-size: clamp(28px, 6vw, 44px); line-height: 1.05; }
.bf-page h3 { font-size: 24px; line-height: 1.15; }
.bf-page h4 { font-size: 21px; line-height: 1.2; }
.bf-page p { margin: 0; }
.bf-hint { font-size: 14px; color: var(--bf-muted); }
.bf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Knöpfe: voll rund, eine Füllfarbe */
.bf-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--bf-petrol); color: var(--bf-on-petrol); font: 500 16px var(--bf-body); text-decoration: none; cursor: pointer;
  transition: background .2s, transform .15s var(--bf-ease); }
.bf-button:hover { background: var(--bf-petrol-deep); }
.bf-button:active { transform: scale(.98); }
.bf-button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.bf-button-gold { background: var(--bf-gold); color: #fff; }
.bf-button-gold:hover { background: #73620f; }
.bf-page :focus-visible { outline: 3px solid var(--bf-gold-deco); outline-offset: 3px; }

/* Bild und Titel: Foto oben, Text auf Petrol */
.bf-hero { display: grid; background: var(--bf-petrol); color: var(--bf-on-petrol); overflow: clip; }
.bf-hero-img { width: 100%; height: 46vh; min-height: 260px; object-fit: cover; display: block; animation: bf-drift 18s var(--bf-ease) both; }
.bf-hero-text { padding: 28px var(--bf-gutter) 36px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.bf-hero h1 { font-size: clamp(40px, 11vw, 76px); line-height: .98; letter-spacing: -.02em; }
.bf-lede { font-size: 17px; max-width: 34em; }
.bf-guest { font-size: 15px; opacity: .85; }
.bf-hero .bf-button { background: var(--bf-gold-deco); color: var(--bf-ink); margin-top: 6px; }
.bf-hero .bf-button:hover { background: #e2c43a; }

.bf-wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--bf-gutter) 40px; display: flex; flex-direction: column; gap: 72px; }
.bf-flash[hidden] { display: none; }
.bf-flash { margin-top: 32px; margin-bottom: -40px; background: var(--bf-ok); color: #fff; padding: 14px 18px; border-radius: 14px; }

/* Übersicht */
.bf-overview { margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.bf-empty { font-size: 18px; color: var(--bf-muted); }
.bf-ov-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.bf-ov-table tr { background: var(--bf-surface); }
.bf-ov-table tr:nth-child(even) { background: var(--bf-field); }
.bf-ov-table tr.is-past { color: var(--bf-muted); }
.bf-ov-table th, .bf-ov-table td { text-align: left; padding: 14px 12px; vertical-align: top; }
.bf-ov-table th { font: 400 19px/1.3 var(--bf-display); white-space: nowrap; }
.bf-ov-slot { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bf-ov-what span { display: block; font-size: 14px; color: var(--bf-muted); }
.bf-ov-status { white-space: nowrap; font-weight: 500; }
.bf-st-rate { color: var(--bf-petrol); }
.bf-st-paid { color: var(--bf-ok); }
.bf-st-unpaid { color: var(--bf-error); }
.bf-st-none { color: var(--bf-muted); font-weight: 400; }
.bf-due { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: var(--bf-field-deep); padding: 18px; border-radius: 18px; }
.bf-due p { font-size: 18px; }
.bf-due strong { font: 400 28px var(--bf-display); margin-left: 6px; }
@media (max-width: 560px) {
  .bf-ov-table, .bf-ov-table tbody, .bf-ov-table tr { display: block; }
  .bf-ov-table tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 14px; gap: 2px 12px; }
  .bf-ov-table th, .bf-ov-table td { padding: 0; }
  .bf-ov-what { grid-column: 1 / -1; }
}

/* So kommt dein Frühstück */
.bf-how { display: grid; gap: 24px; }
.bf-how-text { display: flex; flex-direction: column; gap: 16px; }
.bf-how ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.bf-how ol li::marker { font-family: var(--bf-display); color: var(--bf-gold); }
.bf-price { font-weight: 500; font-size: 17px; color: var(--bf-petrol); }
.bf-how-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 18px; }

/* Auswahl */
.bf-form { background: var(--bf-field); border-radius: 24px; padding: 28px var(--bf-gutter) 0; display: flex; flex-direction: column; gap: 22px; scroll-margin-top: 16px; }
.bf-selector { display: flex; flex-direction: column; gap: 22px; }
.bf-same { background: var(--bf-surface); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.bf-controls { display: flex; flex-direction: column; gap: 18px; margin-top: 6px; }
.bf-controls[hidden] { display: none; }
.bf-field { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.bf-field legend { font-weight: 500; font-size: 15px; padding: 0; margin-bottom: 10px; }
.bf-field[hidden] { display: none; }

.bf-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-seg label { position: relative; }
.bf-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.bf-seg span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--bf-field); color: var(--bf-ink);
  font-size: 16px; font-variant-numeric: tabular-nums; cursor: pointer; transition: background .15s, color .15s; }
.bf-seg label:hover span { background: var(--bf-field-deep); }
.bf-seg input:checked + span { background: var(--bf-petrol); color: var(--bf-on-petrol); }
.bf-seg input:focus-visible + span { outline: 3px solid var(--bf-gold-deco); outline-offset: 2px; }

.bf-step-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.bf-step-name { font-size: 17px; }
.bf-stepper { display: flex; align-items: center; gap: 4px; }
.bf-stepper button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bf-field-deep); color: var(--bf-ink); font: 500 22px/1 var(--bf-body); cursor: pointer;
  transition: background .15s, transform .1s; }
.bf-stepper button:hover:not(:disabled) { background: var(--bf-petrol); color: var(--bf-on-petrol); }
.bf-stepper button:active:not(:disabled) { transform: scale(.92); }
.bf-stepper button:disabled { opacity: .35; cursor: default; }
.bf-stepper output { min-width: 32px; text-align: center; font: 400 22px var(--bf-display); font-variant-numeric: tabular-nums; }
.bf-persons-total { font-weight: 500; color: var(--bf-petrol); }
.bf-controls.is-invalid .bf-persons-total { color: var(--bf-error); }

.bf-days-title { margin-top: 6px; }
.bf-days { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bf-day { background: var(--bf-surface); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; transition: background .2s; }
.bf-day:not(.is-on) { background: var(--bf-ground); }
.bf-day.is-invalid { background: #f8e4df; }
.bf-day:not(.is-on) .bf-day-body { display: none; }
.bf-day-body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.bf-day-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bf-day-status { font-size: 14px; font-weight: 500; }
.bf-day-summary { font-size: 16px; }
.bf-day-summary.is-fixed { color: var(--bf-muted); }
.bf-note { font-size: 15px; color: var(--bf-petrol); }
.bf-cutoff { font-size: 14px; color: var(--bf-muted); }
.bf-link { background: none; border: 0; padding: 6px 0; color: var(--bf-petrol); font: 500 15px var(--bf-body); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.bf-link:hover { color: var(--bf-gold); }
.bf-day .bf-controls { width: 100%; background: var(--bf-ground); border-radius: 14px; padding: 16px; }
.bf-day .bf-seg span { background: var(--bf-surface); }
.bf-error { color: var(--bf-error); font-size: 15px; font-weight: 500; }

.bf-switch { position: relative; width: 56px; height: 32px; flex: none; }
.bf-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.bf-switch-ui { position: absolute; inset: 0; background: var(--bf-field-deep); border-radius: 999px; transition: background .2s; }
.bf-switch-ui::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s var(--bf-ease); }
.bf-switch input:checked + .bf-switch-ui { background: var(--bf-petrol); }
.bf-switch input:checked + .bf-switch-ui::after { transform: translateX(24px); }
.bf-switch input:focus-visible + .bf-switch-ui { outline: 3px solid var(--bf-gold-deco); outline-offset: 2px; }

.bf-result { color: var(--bf-petrol); font-weight: 500; }
.bf-result:empty { display: none; }
.bf-summary { position: sticky; bottom: 0; margin: 0 calc(-1 * var(--bf-gutter)); padding: 14px var(--bf-gutter) calc(14px + env(safe-area-inset-bottom));
  background: var(--bf-petrol); color: var(--bf-on-petrol); border-radius: 0 0 24px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; z-index: 5; }
.bf-total-label { display: block; font-size: 14px; opacity: .85; }
.bf-total { font: 400 28px/1.1 var(--bf-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bf-summary .bf-button { padding: 0 22px; }
.bf-summary .bf-submit { background: var(--bf-gold-deco); color: var(--bf-ink); }
.bf-summary .bf-submit:hover:not(:disabled) { background: #e2c43a; }

/* Die Boxen */
.bf-variants { display: flex; flex-direction: column; gap: 36px; }
.bf-variant { display: grid; gap: 16px; }
.bf-photo { position: relative; padding: 0; border: 0; background: none; cursor: zoom-in; display: block; border-radius: 18px; overflow: hidden; }
.bf-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .5s var(--bf-ease); }
.bf-photo:hover img { transform: scale(1.03); }
.bf-photo-note { position: absolute; left: 12px; bottom: 12px; background: var(--bf-ink); color: var(--bf-on-petrol); font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.bf-variant-text { display: flex; flex-direction: column; gap: 10px; }
.bf-variant-text h3 { font-size: clamp(28px, 5vw, 38px); }
.bf-variant-text > p { font-size: 17px; }
.bf-variant details summary { cursor: pointer; font-weight: 500; color: var(--bf-petrol); padding: 6px 0; }
.bf-variant details ul { margin: 6px 0 0; padding-left: 1.2em; columns: 2; column-gap: 24px; font-size: 15px; }
.bf-variant-allergens { font-size: 15px; color: var(--bf-muted); }
.bf-variant-allergens a, .bf-allergens a { color: var(--bf-petrol); }

.bf-allergens { background: var(--bf-surface); border-radius: 24px; padding: 28px 20px; display: flex; flex-direction: column; gap: 16px; }
.bf-allergens table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bf-allergens th, .bf-allergens td { text-align: left; vertical-align: top; padding: 12px 8px; border-bottom: 1px solid var(--bf-field-deep); }
.bf-allergens th { font: 400 18px var(--bf-display); white-space: nowrap; padding-right: 16px; }
.bf-allergen-note { font-weight: 500; }

.bf-lightbox { border: 0; padding: 0; background: var(--bf-ink); color: var(--bf-on-petrol); max-width: min(96vw, 1100px); border-radius: 18px; }
.bf-lightbox::backdrop { background: rgba(20, 28, 29, .82); }
.bf-lightbox img { display: block; width: 100%; max-height: 80vh; object-fit: contain; background: var(--bf-field); }
.bf-lightbox-caption { padding: 12px 18px 0; font-family: var(--bf-display); font-size: 20px; }
.bf-lightbox-close { margin: 12px 18px 18px; background: var(--bf-on-petrol); color: var(--bf-ink); border: 0; border-radius: 999px; min-height: 44px; padding: 0 22px; font: 500 15px var(--bf-body); cursor: pointer; }

.bf-foot { display: flex; flex-direction: column; gap: 6px; font-size: 16px; padding-top: 8px; }
.bf-foot p:first-child { font-family: var(--bf-display); font-size: 22px; }

@media (min-width: 760px) {
  :root { --bf-gutter: 32px; }
  .bf-hero-img { height: 52vh; }
  .bf-hero-text { padding: 40px var(--bf-gutter) 48px; }
  .bf-wrap { gap: 120px; }
  .bf-how { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
  .bf-form { padding: 40px 40px 0; }
  .bf-summary { margin: 0 -40px; padding-left: 40px; padding-right: 40px; }
  .bf-selector { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; }
  .bf-same { position: sticky; top: 16px; grid-row: span 2; }
  .bf-days-title { grid-column: 2; }
  .bf-days { grid-column: 2; }
  .bf-variants { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 40px; }
  .bf-variants > h2 { grid-column: 1 / -1; }
  .bf-allergens { padding: 40px; }
}
@media (min-width: 1000px) {
  .bf-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 78vh; }
  .bf-hero-img { order: 2; height: 100%; min-height: 0; }
  .bf-hero-text { justify-content: center; padding: 56px 48px; gap: 18px; }
}
.bf-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--bf-ease), transform .6s var(--bf-ease); }
.bf-reveal.is-in { opacity: 1; transform: none; }

@keyframes bf-drift { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes bf-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.bf-hero-text > * { animation: bf-rise .7s var(--bf-ease) both; }
.bf-hero-text > :nth-child(2) { animation-delay: .07s; }
.bf-hero-text > :nth-child(3) { animation-delay: .14s; }
.bf-hero-text > :nth-child(4) { animation-delay: .21s; }
.bf-hero-text > :nth-child(5) { animation-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bf-hero-img, .bf-hero-text > * { animation: none; }
  .bf-page *, .bf-page *::after { transition: none !important; }
}

/* Runde 3: Zeitraum, Boxen mit Portionen, Kinderalter, Abbestellen */
.bf-form-wrap { display: flex; flex-direction: column; gap: 22px; scroll-margin-top: 16px; }
.bf-period { display: flex; flex-direction: column; gap: 8px; max-width: 46em; }
.bf-period-start { font-size: 18px; }
.bf-period-start strong { font-family: var(--bf-display); font-weight: 400; font-size: 24px; color: var(--bf-petrol); display: block; margin-bottom: 2px; }
.bf-notice { background: var(--bf-field-deep); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.bf-stay { display: flex; flex-direction: column; gap: 26px; }
.bf-box-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.bf-box-card { background: var(--bf-surface); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.bf-box-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bf-box-head strong { font: 400 21px var(--bf-display); }
.bf-portion { display: flex; flex-direction: column; gap: 2px; }
.bf-portion label { display: flex; flex-direction: column; gap: 4px; }
.bf-portion-actions { display: flex; flex-wrap: wrap; gap: 0 18px; }
.bf-portion-name { font-size: 13px; color: var(--bf-muted); }
.bf-variant-select, .bf-age-select { min-height: 46px; border-radius: 12px; border: 0; background: var(--bf-field); color: var(--bf-ink); font: 400 16px var(--bf-body); padding: 0 12px; }
.bf-variant-select:focus-visible, .bf-age-select:focus-visible { outline: 3px solid var(--bf-gold-deco); outline-offset: 2px; }
.bf-portion .bf-link, .bf-box-card > .bf-link { min-height: 44px; font-size: 14px; }
.bf-box-card > .bf-link { align-self: flex-start; }
.bf-seg-small span { min-height: 44px; padding: 0 16px; font-size: 15px; }
.bf-box-actions { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.bf-box-actions .bf-link { min-height: 44px; }
.bf-persons-total.is-invalid { color: var(--bf-error); }
.bf-seg label.is-full span { background: transparent; color: var(--bf-muted); text-decoration: line-through; cursor: not-allowed; }
.bf-full-tag { font-size: 12px; margin-left: 6px; text-decoration: none; display: inline-block; }
.bf-full-tag[hidden] { display: none; }
.bf-age-list { display: flex; flex-wrap: wrap; gap: 12px; }
.bf-age { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.bf-price-line { display: block; font-size: 14px; color: var(--bf-muted); }
.bf-cancel { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.bf-cancel-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.bf-button-quiet { background: transparent; color: var(--bf-error); box-shadow: inset 0 0 0 1.5px currentColor; min-height: 48px; }
.bf-button-quiet:hover { background: #f8e4df; }
