/* ALF Online-Buchung. Ergänzt style.css und nutzt nur dessen Farben und Schriften.
   Konzept: links das Leistungsverzeichnis zum Ankreuzen, rechts der Auftragsschein mit Richtpreis. */

/* ---------- Menü-Hinweis "Neu" (alle Seiten) ---------- */
.nav__new { display: inline-block; margin-left: 8px; padding: 3px 6px 2px; font-family: var(--font-mono); font-size: 0.58rem; font-weight: 500; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy-950); background: var(--brass); vertical-align: 2px; }
.menu__list .nav__new { font-size: 0.72rem; vertical-align: middle; margin-left: 12px; }
@media (min-width: 1120px) and (max-width: 1279px) { .nav .nav__new { display: none; } }

/* ---------- Startseite: Link im Hero ---------- */
.hero__book { display: inline-flex; align-items: center; gap: 12px; justify-self: start; color: var(--on-dark); font-size: var(--step--1); border-bottom: 1px solid rgba(238, 240, 242, 0.28); padding-bottom: 6px; transition: color 0.3s, border-color 0.3s; }
.hero__book .nav__new { margin: 0; }
.hero__book svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.hero__book:hover { color: var(--brass); border-color: var(--brass); }
.hero__book:hover svg { transform: translateX(4px); }

/* ---------- Startseite: Werbe-Band ---------- */
.book-band__grid { display: grid; gap: clamp(40px, 5vw, 88px); align-items: center; }
@media (min-width: 1000px) { .book-band__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.book-band__list { display: grid; border-top: 1px solid var(--line-dark-soft); }
.book-band__list a { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 18px; gap: 16px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line-dark-soft); transition: background-color 0.3s, padding 0.4s var(--ease); }
.book-band__list a:hover { background: rgba(198, 166, 107, 0.08); padding-left: 12px; }
.book-band__list .mono { color: var(--brass); font-size: 0.72rem; }
.book-band__list b { font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); color: var(--on-dark); }
.book-band__list i { font-style: normal; font-family: var(--font-mono); font-size: 0.78rem; color: var(--on-dark-soft); white-space: nowrap; }
.book-band__list svg { width: 16px; height: 16px; color: var(--brass); }
@media (max-width: 559px) {
  .book-band__list a { grid-template-columns: 52px minmax(0, 1fr) 16px; }
  .book-band__list i { grid-column: 2; grid-row: 2; }
  .book-band__list svg { grid-column: 3; grid-row: 1 / span 2; }
}
.book-band__promo { color: var(--brass); font-size: 0.8rem; }

/* ---------- Auftragsschein (Startseite und Buchungsseite) ---------- */
.ticket { background: var(--white); color: var(--ink); border: 1px solid var(--line-light); box-shadow: 0 40px 80px -48px rgba(7, 16, 29, 0.55); }
.ticket__head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 22px; background: var(--navy-900); color: var(--on-dark); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
.ticket__head span:last-child { color: var(--brass); }
.ticket__body { padding: 6px 22px 22px; }
.ticket__empty { padding: 20px 0 8px; color: var(--ink-soft); font-size: var(--step--1); }
.ticket__rows { display: grid; }
.ticket__row { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px dashed rgba(14, 31, 61, 0.2); font-size: var(--step--1); }
.ticket__pos { font-family: var(--font-mono); font-size: 0.7rem; color: var(--brass-deep); padding-top: 3px; }
.ticket__label { min-width: 0; color: var(--ink); }
.ticket__label small { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); line-height: 1.45; }
.ticket__amt { font-family: var(--font-mono); font-size: 0.82rem; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; padding-top: 2px; }
.ticket__row--incl .ticket__amt { color: var(--ink-soft); }
.ticket__row--minus .ticket__amt { color: #1d7a45; }
.ticket__total { display: grid; gap: 4px; padding-top: 18px; }
.ticket__total-label { font-size: 0.68rem; font-weight: 600; font-stretch: 112%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.ticket__total-amt { font-family: var(--font-display); font-size: clamp(2.2rem, 1.8rem + 1.4vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.ticket__total-amt.is-text { font-size: var(--step-2); line-height: 1.1; }
.ticket__meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); line-height: 1.6; }
.ticket__next { margin-top: 8px; padding: 10px 12px; background: var(--paper); font-size: var(--step--1); }
.ticket__notes { display: grid; gap: 6px; margin-top: 12px; font-size: 0.8rem; color: var(--ink-soft); }
.ticket__cta { width: 100%; margin-top: 18px; }
.ticket__trust { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-light); font-size: 0.8rem; color: var(--ink-soft); }
.ticket__trust li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.ticket__trust li::before { content: ""; width: 6px; height: 6px; background: var(--brass-deep); transform: rotate(45deg) translateY(-1px); }
.book-band .ticket { transform: rotate(-1.2deg); }
.book-band .ticket__caption { margin-top: 14px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--on-dark-soft); }

/* ---------- Buchungsseite ---------- */
.bk-hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--on-dark-soft); }
.bk-hero__facts span { display: inline-flex; align-items: center; gap: 10px; }
.bk-hero__facts span::before { content: ""; width: 6px; height: 6px; background: var(--brass); transform: rotate(45deg); }

.bk { display: grid; gap: clamp(32px, 4vw, 64px); align-items: start; }
@media (min-width: 1080px) { .bk { grid-template-columns: minmax(0, 1fr) 390px; } }

.bk-form { --f-text: var(--ink); --f-soft: var(--ink-soft); --f-line: rgba(14, 31, 61, 0.24); --f-focus: var(--brass-deep); display: grid; gap: clamp(48px, 6vw, 80px); min-width: 0; color: var(--ink); }
.bk-stepbox { display: grid; gap: 24px; min-width: 0; scroll-margin-top: calc(var(--header-h) + 20px); }
.bk-stepbox[aria-disabled="true"] { opacity: 0.42; pointer-events: none; }
.bk-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: baseline; padding-bottom: 16px; border-bottom: 1px solid var(--navy-900); }
.bk-head__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--brass-deep); }
.bk-head__title { font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1.02; text-wrap: balance; }
.bk-head__hint { grid-column: 2; margin-top: 8px; font-size: var(--step--1); color: var(--ink-soft); max-width: 60ch; }

.bk-label { display: block; font-size: 0.7rem; font-weight: 600; font-stretch: 112%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.bk-group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 12px; }
.bk-group + .bk-group { margin-top: 12px; }
.bk-group legend { padding: 0; margin-bottom: 12px; }

/* Leistungszeilen */
.bk-opts { display: grid; border-top: 1px solid var(--line-light); }
.bk-opt { position: relative; display: block; cursor: pointer; border-bottom: 1px solid var(--line-light); }
.bk-opt input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bk-opt__row { display: grid; grid-template-columns: 18px 58px minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 16px 14px 16px 12px; transition: background-color 0.3s; }
.bk-opt__dot { width: 12px; height: 12px; margin-left: 2px; border: 1px solid rgba(14, 31, 61, 0.45); transform: rotate(45deg); transition: background-color 0.3s, border-color 0.3s; }
.bk-opt__pos { font-family: var(--font-mono); font-size: 0.72rem; color: var(--brass-deep); }
.bk-opt__text { min-width: 0; }
.bk-opt__title { display: block; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.15; }
.bk-opt__desc { display: block; margin-top: 3px; font-size: var(--step--1); color: var(--ink-soft); line-height: 1.45; }
.bk-opt__price { font-family: var(--font-mono); font-size: 0.78rem; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.bk-opt:hover .bk-opt__row { background: rgba(255, 255, 255, 0.6); }
.bk-opt input:checked + .bk-opt__row { background: var(--white); }
.bk-opt input:checked + .bk-opt__row .bk-opt__dot { background: var(--brass-deep); border-color: var(--brass-deep); }
.bk-opt input:focus-visible + .bk-opt__row { outline: 2px solid var(--brass-deep); outline-offset: -2px; }
@media (max-width: 639px) {
  .bk-opt__row { grid-template-columns: 18px minmax(0, 1fr) auto; padding-inline: 8px; }
  .bk-opt__pos { grid-column: 2; grid-row: 1; }
  .bk-opt__text { grid-column: 2 / -1; grid-row: 2; }
  .bk-opt__price { grid-column: 3; grid-row: 1; }
  .bk-opt__dot { grid-row: 1; }
}

/* Segmente (Privat/Gewerbe, Rhythmus, Zeitfenster) */
.bk-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-seg label { position: relative; display: flex; }
.bk-seg input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bk-seg span { display: grid; align-content: center; gap: 2px; min-height: 48px; padding: 8px 16px; border: 1px solid rgba(14, 31, 61, 0.22); background: var(--white); font-size: var(--step--1); line-height: 1.25; cursor: pointer; transition: background-color 0.3s, border-color 0.3s, color 0.3s; }
.bk-seg span small { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft); }
.bk-seg span em { font-style: normal; font-family: var(--font-mono); font-size: 0.66rem; color: #1d7a45; }
.bk-seg label:hover span { border-color: var(--navy-900); }
.bk-seg input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.bk-seg input:checked + span small { color: var(--brass-light); }
.bk-seg input:checked + span em { color: var(--brass-light); }
.bk-seg input:focus-visible + span { outline: 2px solid var(--brass-deep); outline-offset: 2px; }
.bk-seg--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.bk-seg--grid label span { width: 100%; }
.bk-typ { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* Eingaben */
.bk-ctls { display: grid; gap: 26px 32px; }
@media (min-width: 640px) { .bk-ctls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bk-ctl { display: grid; gap: 10px; align-content: start; min-width: 0; }
.bk-ctl--full { grid-column: 1 / -1; }
.bk-ctl__note { font-size: 0.8rem; color: var(--ink-soft); }
.bk-ctl.is-invalid textarea { border-bottom-color: #c2412d; }
.bk-ctl.is-invalid .bk-check__box { border-color: #c2412d; box-shadow: 0 0 0 1px #c2412d; }

.bk-num { display: inline-grid; grid-template-columns: 46px 64px 46px; justify-self: start; border: 1px solid rgba(14, 31, 61, 0.22); background: var(--white); }
.bk-num button { min-height: 46px; border: 0; background: transparent; color: var(--ink); font-size: 1.15rem; cursor: pointer; transition: background-color 0.2s; }
.bk-num button:hover { background: var(--paper); }
.bk-num button:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: -2px; }
.bk-num input { width: 100%; min-width: 0; border: 0; border-inline: 1px solid rgba(14, 31, 61, 0.14); background: transparent; color: var(--ink); font: inherit; font-family: var(--font-mono); font-size: 0.95rem; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.bk-num input::-webkit-outer-spin-button, .bk-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bk-num input:focus { outline: none; background: var(--paper); }

.bk-area { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.bk-area__val { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-display); font-size: var(--step-3); line-height: 1; }
.bk-area__val input { width: 3.4ch; border: 0; border-bottom: 1px solid var(--f-line); background: transparent; color: var(--ink); font: inherit; text-align: right; -moz-appearance: textfield; appearance: textfield; }
.bk-area__val input::-webkit-outer-spin-button, .bk-area__val input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bk-area__val input:focus { outline: none; border-bottom-color: var(--brass-deep); }
.bk-area__val span { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); }
.bk-range { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; }
.bk-range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--brass-deep) var(--p, 30%), rgba(14, 31, 61, 0.18) var(--p, 30%)); }
.bk-range::-moz-range-track { height: 2px; background: rgba(14, 31, 61, 0.18); }
.bk-range::-moz-range-progress { height: 2px; background: var(--brass-deep); }
.bk-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; background: var(--navy-900); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--navy-900); }
.bk-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 0; background: var(--navy-900); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--navy-900); }
.bk-range:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 4px; }

.bk-check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; cursor: pointer; }
.bk-check input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bk-check__box { position: relative; width: 22px; height: 22px; margin-top: 1px; border: 1px solid rgba(14, 31, 61, 0.35); background: var(--white); transition: background-color 0.2s, border-color 0.2s; }
.bk-check__box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.bk-check input:checked + .bk-check__box { background: var(--navy-900); border-color: var(--navy-900); }
.bk-check input:checked + .bk-check__box::after { opacity: 1; }
.bk-check input:focus-visible + .bk-check__box { outline: 2px solid var(--brass-deep); outline-offset: 2px; }
.bk-check__text { font-size: var(--step-0); line-height: 1.4; }
.bk-check__text small { display: block; margin-top: 2px; font-size: var(--step--1); color: var(--ink-soft); }

/* Extras */
.bk-extras { display: grid; border-top: 1px solid var(--line-light); }
.bk-x { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 18px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line-light); }
.bk-x__price { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); white-space: nowrap; text-align: right; }
.bk-x__incl { font-family: var(--font-mono); font-size: 0.75rem; color: #1d7a45; }
.bk-x .bk-num { grid-template-columns: 38px 46px 38px; }
.bk-x .bk-num button { min-height: 38px; }
.bk-x .bk-check { grid-template-columns: 24px; }
@media (max-width: 479px) {
  .bk-x { grid-template-columns: minmax(0, 1fr) auto; }
  .bk-x__price { grid-column: 1; grid-row: 2; text-align: left; }
  .bk-x > :last-child { grid-column: 2; grid-row: 1 / span 2; }
}
.bk-x__name { font-size: var(--step-0); }
.bk-x__name small { display: block; margin-top: 2px; font-size: var(--step--1); color: var(--ink-soft); }
.bk-sublabel { margin-top: 18px; }

/* Kontakt */
.bk-grid { display: grid; gap: 24px 32px; }
@media (min-width: 640px) { .bk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bk-grid .field--narrow { grid-column: auto; } }
.bk-grid .field--plz { max-width: 220px; }
.bk-hint { font-size: 0.8rem; color: var(--ink-soft); }
.bk-hint[data-state="warn"] { color: #a4562c; }
.bk-hint[data-state="ok"] { color: #1d7a45; }

.bk-consent { display: grid; gap: 16px; padding: 8px 0 4px; }
.bk-submit { display: grid; gap: 16px; padding-top: 8px; }
.bk-submit__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.bk-submit .btn { justify-self: start; }
.bk-submit__note { max-width: 62ch; font-size: var(--step--1); color: var(--ink-soft); }
.bk-status { min-height: 1.5em; font-size: var(--step--1); }
.bk-status[data-state="error"] { color: #b03a2e; }
.bk-status[data-state="info"] { color: var(--brass-deep); }

/* Danach */
.bk-done { display: grid; gap: 22px; padding: clamp(24px, 3vw, 44px); background: var(--white); border: 1px solid var(--line-light); }
.bk-done h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1.05; }
.bk-done ol { display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.bk-done li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.bk-done li span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--brass-deep); padding-top: 3px; }
.bk-done__preview { padding: 14px 16px; border: 1px dashed rgba(126, 98, 48, 0.5); font-size: var(--step--1); color: var(--ink-soft); }

/* Auftragsschein auf der Buchungsseite */
.bk-sum { min-width: 0; }
.bk-bar { display: none; }
@media (min-width: 1080px) { .bk-sum { position: sticky; top: calc(var(--header-h) + 20px); } }
@media (max-width: 1079px) {
  .bk-sum { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; }
  .bk-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--navy-950); color: var(--on-dark); border-top: 1px solid var(--line-dark); }
  .bk-bar__price { display: grid; gap: 2px; min-width: 0; }
  .bk-bar__price span { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-soft); }
  .bk-bar__price b { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bk-bar .btn { min-height: 44px; padding: 0 16px; }
  .bk-sum .ticket { display: none; max-height: min(72svh, 620px); overflow: auto; overscroll-behavior: contain; border: 0; border-top: 1px solid var(--line-dark); box-shadow: 0 -24px 60px -20px rgba(7, 16, 29, 0.55); }
  .bk-sum.is-open .ticket { display: block; }
  body.bk-has-bar { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  body.bk-has-bar .to-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* Ablauf */
.bk-flow { display: grid; border-top: 1px solid var(--line-dark-soft); }
@media (min-width: 900px) { .bk-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bk-flow li { display: grid; gap: 12px; align-content: start; padding: 28px 24px 32px 0; border-bottom: 1px solid var(--line-dark-soft); }
@media (min-width: 900px) { .bk-flow li { border-bottom: 0; } .bk-flow li + li { padding-left: 24px; border-left: 1px solid var(--line-dark-soft); } }
.bk-flow .mono { color: var(--brass); }
.bk-flow h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: 1.05; color: var(--on-dark); }
.bk-flow p { color: var(--on-dark-soft); font-size: var(--step--1); max-width: 34ch; }

/* Preisliste */
.bk-table { overflow-x: auto; border-top: 1px solid var(--navy-900); }
.bk-prices { width: 100%; min-width: 620px; border-collapse: collapse; font-size: var(--step--1); }
.bk-prices th, .bk-prices td { padding: 13px 12px 13px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-light); }
.bk-prices thead th { font-size: 0.66rem; font-weight: 600; font-stretch: 112%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.bk-prices .num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-prices .pos { width: 64px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--brass-deep); }
.bk-prices td small { display: block; color: var(--ink-soft); }
.bk-prices .grp th { padding-top: 26px; font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); letter-spacing: 0; text-transform: none; color: var(--ink); }
.bk-prices__foot { margin-top: 18px; font-size: 0.8rem; color: var(--ink-soft); max-width: 80ch; }

@media (prefers-reduced-motion: reduce) {
  .book-band .ticket { transform: none; }
  .bk-opt__row, .bk-seg span, .book-band__list a { transition: none; }
}

/* Rechtstexte: lange Wörter im Seitentitel trennen, Fußzeile frei vom Nach-oben-Knopf */
.page-hero .h1 { overflow-wrap: break-word; -webkit-hyphens: manual; hyphens: manual; }
.site-footer__bottom nav { padding-right: 60px; }
