/* CousCous Freitagskonzerte – band-facing pages (shell, landing, text pages, error pages).
   Uses only the tokens and components of base.css; no new colours, shadows, gradients or cards. */

/* shell */
.skip-link { position: absolute; left: var(--s-3); top: -6rem; z-index: 10; padding: 0.6em 1.1em;
  background: var(--charcoal); color: var(--paper); border-radius: var(--pill); font-weight: 500; text-decoration: none; }
.skip-link:focus { top: var(--s-2); color: var(--paper); }
main:focus { outline: none; }
.site-header .logo { display: block; line-height: 0; }
.lang-switch { display: flex; gap: 0.25rem; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); }
.footer-links a { display: inline-block; padding-block: 0.35rem; }
.measure { max-width: 42rem; }

/* landing: hero */
.hero { padding-block: var(--s-5) var(--section); align-items: start; }
.hero-text h1 { margin-bottom: var(--s-4); }
.lead { font-size: var(--step-1); line-height: 1.5; max-width: 34rem; }
.cta { margin-top: var(--s-4); }
.notice.cta { max-width: 34rem; }
.hero-season { min-width: 0; }
.season-count { margin: var(--s-2) 0 0; font-weight: 500; }
@media (min-width: 52rem) {
  .hero { padding-top: var(--s-6); }
  .hero-season { padding-top: var(--s-2); }
}
/* very narrow phones: the season block uses part of the page gutter so five dots fit on one row */
@media (max-width: 23.4rem) {
  .hero-season .season { margin-inline: -0.5rem; }
  .hero-season .season-month { grid-template-columns: 2.25rem 1fr; gap: 0.25rem; }
  .hero-season .season-month > .dots { gap: 0.2rem; }
}

/* landing: what you get, what you bring (on mint) */
.offer h2 { max-width: 42rem; }
.offer-lists { margin-top: var(--s-4); }
.offer-lists ul { margin-bottom: 0; max-width: 34rem; }
.offer-closing { margin: var(--s-5) 0 0; max-width: 42rem; font-size: var(--step-1); font-weight: 500; }

/* landing: the evening as a line with four small dots (vertical, horizontal from 52rem) */
.timeline { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: var(--s-4); max-width: 42rem; }
.timeline li { position: relative; margin: 0; padding-left: 2rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0.3rem; width: 0.875rem; height: 0.875rem;
  border-radius: 50%; background: var(--orange); }
.timeline li::after { content: ""; position: absolute; left: calc(0.4375rem - 1px); top: 1.5rem;
  bottom: calc(-1 * var(--s-4) + 0.2rem); width: 2px; background: var(--rule); }
.timeline li:last-child::after { display: none; }
.timeline-time { display: block; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 52rem) {
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; }
  .timeline li { padding: 1.75rem var(--s-3) 0 0; }
  .timeline li::before { top: 0; left: 0; }
  .timeline li::after { top: calc(0.4375rem - 1px); left: 1.25rem; right: calc(-1 * var(--s-4) + 0.375rem);
    bottom: auto; width: auto; height: 2px; }
}

/* landing: lower sections */
.needs, .questions { border-top: 1px solid var(--rule); }
.needs ul { margin-bottom: var(--s-4); }
.needs .cta { margin-top: var(--s-4); }
.questions a { overflow-wrap: anywhere; }

/* terms and privacy */
.text-page h1 { font-size: var(--step-2); }
.text-page h3 { margin-top: var(--s-5); }
.text-page h3:first-of-type { margin-top: var(--s-4); }
.text-page ul { padding-left: 1.2em; }

/* error pages */
.error-page { min-height: 40vh; }
.error-page h1 { font-size: var(--step-2); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------------------------------------------------------------------------------------------------------------- */
/* Stage B2: wizard and band pages. Layout only; colours, fields, notices, chips and dots come from base.css.         */

.wizard h1, .band h1 { font-size: var(--step-2); }
.band-name { overflow-wrap: anywhere; margin-bottom: var(--s-2); }
.band-date { font-size: var(--step-1); font-weight: 500; margin-bottom: var(--s-1); }
.band-head { margin-bottom: var(--s-4); }
.band h2, .wizard h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); }
.form-errors h2 { font-size: var(--step-0); }
.back { margin-top: var(--s-5); }
.input-short { max-width: 8rem; }
.notice + .field, .notice + form, .notice + .facts { margin-top: var(--s-4); }
.band > .notice, .wizard-message .notice { margin-bottom: var(--s-4); }
.wizard-message:focus, .wizard-success:focus, .wizard-step h2:focus, .form-errors:focus { outline: none; }
.form-errors:focus-visible { outline: 3px solid var(--orange-deep); outline-offset: 2px; }
.form-errors ul { margin: 0; }
.row.form-actions { margin-top: var(--s-4); }

/* honeypot: off-screen, out of the tab order */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* wizard: progress as five dots on a line */
.wizard-progress-wrap { margin: var(--s-3) 0 var(--s-5); }
.wizard-progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wizard-progress li { position: relative; margin: 0; display: grid; justify-items: center; gap: 0.35rem;
  font-size: var(--step--1); color: var(--muted); text-align: center; }
.wizard-progress li::after { content: ""; position: absolute; top: calc(0.625rem - 1px); left: calc(50% + 0.9rem);
  right: calc(-50% + 0.9rem); height: 2px; background: var(--rule); }
.wizard-progress li:last-child::after { display: none; }
.wizard-progress li[data-done="true"]::after { background: var(--orange); }
.wp-dot { width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 2px solid var(--rule); background: var(--paper); }
.wizard-progress li[data-done="true"] .wp-dot { background: var(--orange); border-color: var(--orange); }
.wizard-progress li[aria-current="step"] .wp-dot { background: var(--orange); border-color: var(--charcoal);
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--charcoal); }
.wizard-progress li[aria-current="step"] { color: var(--charcoal); font-weight: 500; }
.wizard-progress-text { margin: var(--s-3) 0 0; font-weight: 500; }
@media (min-width: 30rem) { .wizard-progress-text { display: none; } }
@media (max-width: 29.99rem) { .wp-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* wizard: steps */
.wizard-step { padding-top: var(--s-1); }
.wizard-step > h2 { margin-bottom: var(--s-4); }
.wizard-step > .notice { margin-bottom: var(--s-4); }
.wizard-nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); justify-content: space-between;
  margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--rule); }
.wizard-nav .btn:only-child, .wizard-nav [data-wizard-next], .wizard-nav [type="submit"] { margin-left: auto; }
.wizard-resume .row { margin-top: var(--s-2); }
.wizard-status { margin-top: var(--s-3); font-weight: 500; min-height: 1.55em; }
.wizard-success h2 { margin-bottom: var(--s-3); }

/* wizard step 1: the season as buttons, the chosen date, next free Fridays */
.wizard-season .season-month { grid-template-columns: 2.6rem 1fr; }
.wizard-season button.dot { font-family: var(--font-body); }
.chosen { font-weight: 500; font-size: var(--step-1); margin: var(--s-4) 0 0; }
.next-free { list-style: none; padding: 0; margin: 0 0 var(--s-3); }
.next-free li { margin: 0; border-bottom: 1px solid var(--rule); }
.next-free .linklike { display: block; width: 100%; min-height: 2.75rem; padding: 0.55rem 0; text-align: left; }
.next-free .linklike[aria-pressed="true"] { color: var(--charcoal); font-weight: 700; text-decoration: none; }
@media (max-width: 23.4rem) {
  .wizard-season .season { margin-inline: -0.5rem; }
  .wizard-season .season-month { grid-template-columns: 2.25rem 1fr; gap: 0.25rem; }
  .wizard-season .season-month > .dots { gap: 0.2rem; }
}

/* photos: picker, drop zone, rows with progress */
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-input:focus-visible + label { outline: 3px solid var(--orange-deep); outline-offset: 2px; }
.drop-zone { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); padding: var(--s-4);
  border: 2px dashed var(--rule); border-radius: var(--radius); }
.drop-zone.is-over { border-color: var(--orange); background: var(--butter); }
.drop-text { color: var(--muted); }
@media (hover: none) { .drop-text { display: none; } }
.photo-list { list-style: none; padding: 0; margin: var(--s-2) 0 0; }
.photo-list:empty { display: none; }
.photo-row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--s-1) var(--s-3); align-items: start;
  padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); margin: 0; }
.photo-thumb { width: 4.5rem; height: 4.5rem; border-radius: var(--radius); overflow: hidden; background: var(--mint-soft); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-body { min-width: 0; }
.photo-body p { margin: 0; }
.photo-name { font-weight: 500; overflow-wrap: anywhere; }
.photo-meta { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.photo-status { font-size: var(--step--1); margin-top: 0.2rem !important; }
.photo-row[data-state="done"] .photo-status { color: var(--charcoal); font-weight: 500; }
.photo-row.has-error .photo-status { color: var(--danger); font-weight: 500; }
.photo-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: var(--s-1); }
@media (min-width: 36rem) {
  .photo-row { grid-template-columns: 4.5rem minmax(0, 1fr) auto; }
  .photo-actions { grid-column: 3; justify-content: flex-end; }
}
.photo-actions .btn { min-height: 2.75rem; }
progress { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 0.5rem; margin: 0.35rem 0 0;
  border: 0; border-radius: var(--pill); background: var(--rule); overflow: hidden; color: var(--orange); }
progress::-webkit-progress-bar { background: var(--rule); border-radius: var(--pill); }
progress::-webkit-progress-value { background: var(--orange); border-radius: var(--pill); }
progress::-moz-progress-bar { background: var(--orange); border-radius: var(--pill); }
progress[hidden] { display: none; }
.gallery { list-style: none; padding: 0; margin: 0 0 var(--s-4); display: grid; gap: var(--s-2);
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); }
.gallery li { margin: 0; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--mint-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* terms inside the wizard: a scroll box */
.terms-box { max-height: 22rem; overflow-y: auto; padding: var(--s-3) var(--s-4); margin-bottom: var(--s-2);
  border: 1.5px solid var(--field); border-radius: var(--radius); font-size: var(--step--1); overscroll-behavior: contain; }
.terms-box h3 { font-size: var(--step-0); margin-top: var(--s-4); }
.terms-box h3:first-child { margin-top: 0; }
.wizard-step h3 { margin-top: var(--s-5); }
.field--check { margin-bottom: var(--s-2); }
.field--check .error { margin-left: 2.1rem; }
fieldset.field .check { margin-bottom: var(--s-1); }

/* band dashboard: checklist, sections, details */
.checklist { list-style: none; padding: 0; margin: 0 0 var(--s-3); border-top: 1px solid var(--rule); }
.checklist li { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3);
  padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
.checklist-text { font-weight: 500; flex: 1 1 12rem; }
.checklist .chip { white-space: normal; }
.checklist .btn { flex: 0 0 auto; }
.band-section { margin-top: var(--s-6); }
.band-section > h2 { margin-bottom: var(--s-4); }
.material-facts dd p:last-child { margin-bottom: 0; }
.schedule { grid-template-columns: 5.5rem 1fr; }
.schedule dt { font-weight: 700; color: var(--charcoal); font-variant-numeric: tabular-nums; }
@media (max-width: 34rem) { .schedule { grid-template-columns: 5.5rem 1fr; } .schedule dd { margin-bottom: 0; } }
.reserved { margin-top: var(--s-4); }
details.band-details { border-top: 1px solid var(--rule); margin-top: var(--s-5); }
details.band-details:last-of-type { border-bottom: 1px solid var(--rule); }
details.band-details > summary { cursor: pointer; font-weight: 500; padding: var(--s-3) 0; min-height: 2.75rem;
  list-style-position: outside; margin-left: 1.1rem; }
details.band-details[open] > summary { margin-bottom: var(--s-2); }
details.band-details > :last-child { margin-bottom: var(--s-4); }
details.band-details + details.band-details { margin-top: 0; }
.terms-text { font-size: var(--step--1); }
.terms-text h3 { font-size: var(--step-0); margin-top: var(--s-4); }

/* music list: table on wide screens, one small group of labelled fields per row on phones */
.ml-table td { padding: 0.35rem 0.4rem; }
.ml-table th { padding: 0.35rem 0.4rem; }
.ml-table input { padding: 0.5em 0.6em; }
.ml-table td[data-col="duration"] { width: 6.5rem; }
.ml-table th.num { width: 2.5rem; padding-top: 0.9rem; }
.ml-table .error { margin: 0.25rem 0 0; color: var(--danger); font-size: var(--step--1); font-weight: 500; }
.ml-table td[data-invalid="true"] input { border-color: var(--danger); border-width: 2px; }
.ml-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ml-tools { justify-content: space-between; margin: var(--s-3) 0 var(--s-4); }
.ml-total { font-weight: 700; font-variant-numeric: tabular-nums; }
.ml-message { font-weight: 500; }
.ml-file-current { font-weight: 500; }
@media (max-width: 39.99rem) {
  .ml-table, .ml-table tbody, .ml-table tr, .ml-table td, .ml-table th { display: block; width: auto; }
  .ml-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ml-table tr { display: grid; grid-template-columns: 1fr 6.5rem; gap: 0.35rem var(--s-2); padding: var(--s-3) 0;
    border-bottom: 1px solid var(--rule); }
  .ml-table th.num { grid-column: 1 / -1; padding: 0; border: 0; text-align: left; color: var(--charcoal); font-weight: 700; }
  .ml-table td { padding: 0; border: 0; }
  .ml-table td[data-col="title"], .ml-table td[data-col="composer"] { grid-column: 1 / -1; }
  .ml-table td[data-col="duration"] { width: auto; }
  .ml-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
    display: block; font-size: var(--step--1); color: var(--muted); margin-bottom: 0.15rem; }
}
.band-setlist .table-scroll table { font-size: var(--step--1); }
/* the hidden attribute wins over component display rules (.field, .btn, .row) */
[hidden] { display: none !important; }
