/* AOS Digital Custom Forms — Frontend Styles v5.1
   Design system: CSS custom properties, per-form overrides via data-form-id
   ========================================================================= */

/* ── Global Design Tokens (AOS palette; every value overridable per form) ──
   Accent default #008078 = AOS Teal-Interactive (AA-safe for white button
   text, links and focus rings — #00ACA2 fails contrast for those roles). */
:root {
  --aoscf-accent:       #008078;
  --aoscf-accent-dark:  #11716A;
  --aoscf-accent-rgb:   0,128,120;
  --aoscf-success:      #11716A;
  --aoscf-success-bg:   #EAF4F2;
  --aoscf-error:        #C0392B;
  --aoscf-error-bg:     #FDF1EF;
  --aoscf-text:         #0F1F22;
  --aoscf-text-muted:   #5C6B6E;
  --aoscf-text-light:   #8C9A9D;
  --aoscf-border:       #E2E5E2;
  --aoscf-border-hover: #CFD4D1;
  --aoscf-bg-input:     #ffffff;
  --aoscf-bg-alt:       #FAFAF7;
  --aoscf-bg-card:      #ffffff;
  --aoscf-radius:       8px;
  --aoscf-radius-lg:    12px;
  --aoscf-shadow-sm:    0 1px 2px rgba(15,31,34,.05);
  --aoscf-shadow:       0 1px 3px rgba(15,31,34,.10), 0 1px 2px rgba(15,31,34,.06);
  --aoscf-shadow-md:    0 4px 6px rgba(15,31,34,.07), 0 2px 4px rgba(15,31,34,.06);
  --aoscf-transition:   200ms cubic-bezier(0.4,0,0.2,1);
  --aoscf-font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* ── Form Wrapper ────────────────────────────────────────────────────────── */
.aoscf-form-wrap {
  max-width: var(--aoscf-max-width, 680px);
  margin-left: auto;
  margin-right: auto;
  color: var(--aoscf-text);
  /* --aoscf-font is set per form (AOS Manrope stack) or absent (theme font) */
  font-family: var(--aoscf-font, inherit);
  line-height: 1.6;
  box-sizing: border-box;
}
.aoscf-form-wrap *,
.aoscf-form-wrap *::before,
.aoscf-form-wrap *::after {
  box-sizing: inherit;
}

/* ── Honeypot ─────────────────────────────────────────────────────────────── */
.aoscf-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ── Fields ──────────────────────────────────────────────────────────────── */
/* Vertical spacing between fields is configurable via --aoscf-field-gap (px);
   the grid's row-gap is 0, so this margin is what separates stacked fields. */
.aoscf-field {
  margin-bottom: var(--aoscf-field-gap, 1rem);
}
/* Direct-child only: a plain descendant selector also hit the nested pill /
   choice-card labels and forced them to display:block, which killed their
   flex centering (text rode high, uneven pill padding). Real field labels are
   direct children of .aoscf-field, so `>` styles them without touching the
   fieldset-nested choice labels. */
.aoscf-field > label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--aoscf-text);
  margin-bottom: .375rem;
}
.aoscf-field-desc {
  font-size: .8rem;
  color: var(--aoscf-text-muted);
  margin-top: -.2rem;
  margin-bottom: .4rem;
}
/* Linkify anchors (privacy consent, field/section descriptions) — on-brand */
.aoscf-field-desc a,
.aoscf-section-desc a,
.aoscf-field--privacy a {
  color: var(--aoscf-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.aoscf-required {
  color: var(--aoscf-error);
  margin-left: 2px;
  font-weight: 700;
}

/* ── Inputs ──────────────────────────────────────────────────────────────── */
.aoscf-field input[type="text"],
.aoscf-field input[type="email"],
.aoscf-field input[type="tel"],
.aoscf-field input[type="number"],
.aoscf-field input[type="date"],
.aoscf-field input[type="url"],
.aoscf-field textarea,
.aoscf-field select {
  display: block;
  width: 100%;
  padding: .625rem .875rem;
  background: var(--aoscf-bg-input);
  border: 1.5px solid var(--aoscf-border);
  border-radius: var(--aoscf-radius);
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.5;
  color: var(--aoscf-text);
  transition:
    border-color var(--aoscf-transition),
    box-shadow var(--aoscf-transition),
    background var(--aoscf-transition);
  -webkit-appearance: none;
  appearance: none;
}
.aoscf-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235C6B6E'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 011.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 1.1rem;
  padding-right: 2.5rem;
}
.aoscf-field textarea { resize: vertical; min-height: 120px; }

.aoscf-field input:hover,
.aoscf-field textarea:hover,
.aoscf-field select:hover {
  border-color: var(--aoscf-border-hover);
}
.aoscf-field input:focus,
.aoscf-field textarea:focus,
.aoscf-field select:focus {
  outline: none;
  border-color: var(--aoscf-accent);
  box-shadow: 0 0 0 3px rgba(var(--aoscf-accent-rgb), .18);
}
.aoscf-field input.is-error,
.aoscf-field textarea.is-error,
.aoscf-field select.is-error {
  border-color: var(--aoscf-error);
  box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}
/* Modern compact labels — but NOT checkbox rows, whose label is real
   sentence text (e.g. the privacy consent), not an uppercase field kicker. */
.aoscf-field > label:not(.aoscf-checkbox-label) {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--aoscf-text-muted);
}

.aoscf-error {
  display: block;
  font-size: .8rem;
  color: var(--aoscf-error);
  margin-top: .3rem;
  min-height: 1.1em;
}

/* ── Custom Checkbox ─────────────────────────────────────────────────────── */
.aoscf-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  cursor: pointer;
  font-size: .9rem;
  line-height: 1.5;
}
/* Native input hidden — .aoscf-checkbox-custom is the visual element */
.aoscf-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}
.aoscf-checkbox-custom {
  flex-shrink: 0;
  display: inline-block;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: .1875rem;
  border: 1.5px solid var(--aoscf-border);
  border-radius: 4px;
  background: var(--aoscf-bg-input);
  cursor: pointer;
  position: relative;
  transition: background var(--aoscf-transition), border-color var(--aoscf-transition), box-shadow var(--aoscf-transition);
}
.aoscf-checkbox-label input[type="checkbox"]:checked + .aoscf-checkbox-custom {
  background: var(--aoscf-accent);
  border-color: var(--aoscf-accent);
}
.aoscf-checkbox-label input[type="checkbox"]:checked + .aoscf-checkbox-custom::after {
  content: '';
  position: absolute;
  /* Center the tick in the box via transform — fixed px offsets drifted
     the checkmark toward the top-left corner (see privacy checkbox). */
  left: 50%;
  top: 47%;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
.aoscf-checkbox-label input[type="checkbox"]:focus + .aoscf-checkbox-custom {
  box-shadow: 0 0 0 3px rgba(var(--aoscf-accent-rgb), .22);
}
/* Consent/privacy text: calm sentence text, not a big uppercase label */
.aoscf-field--privacy .aoscf-checkbox-label { font-size: .8125rem; color: var(--aoscf-text-muted); font-weight: 400; }
/* Keep the flex layout (box + text beside it, top-aligned): the generic
   `.aoscf-field label{display:block}` (0,1,1) otherwise flattens the label so
   long consent text wraps UNDER the box. Raise specificity to restore flex. */
.aoscf-field .aoscf-checkbox-label { display: flex; }

/* ── Pills (single choice) ───────────────────────────────────────────────── */
.aoscf-radio-group,
.aoscf-choice-group {
  border: none;
  padding: 0;
  margin: 0;
}
.aoscf-radio-group legend,
.aoscf-choice-group legend {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--aoscf-text-muted);
  margin-bottom: .625rem;
  padding: 0;
}
.aoscf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.aoscf-pill {
  display: inline-flex;
  align-items: center;
  padding: .5rem 1.125rem;
  border: 1.5px solid var(--aoscf-border);
  border-radius: 999px;
  background: var(--aoscf-bg-input);
  font-size: .875rem;
  font-weight: 500;
  color: var(--aoscf-text);
  cursor: pointer;
  user-select: none;
  transition: border-color var(--aoscf-transition), background var(--aoscf-transition),
              color var(--aoscf-transition), box-shadow var(--aoscf-transition);
}
.aoscf-pill:hover { border-color: var(--aoscf-accent); color: var(--aoscf-accent); }
.aoscf-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}
.aoscf-pill:has(input:checked),
.aoscf-pill.is-checked {
  background: var(--aoscf-accent);
  border-color: var(--aoscf-accent);
  color: #fff;
}
.aoscf-pill:has(input:focus-visible),
.aoscf-pill.has-focus {
  box-shadow: 0 0 0 3px rgba(var(--aoscf-accent-rgb), .22);
}

/* ── Choice cards (multi choice with icons) ─────────────────────────────── */
.aoscf-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: .625rem;
}
.aoscf-choice-card {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .875rem 1rem;
  border: 1.5px solid var(--aoscf-border);
  border-radius: var(--aoscf-radius-lg);
  background: var(--aoscf-bg-card);
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: border-color var(--aoscf-transition), background var(--aoscf-transition),
              box-shadow var(--aoscf-transition), transform var(--aoscf-transition);
}
.aoscf-choice-card:hover {
  border-color: var(--aoscf-accent);
  transform: translateY(-1px);
  box-shadow: var(--aoscf-shadow-sm);
}
.aoscf-choice-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}
.aoscf-choice-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--aoscf-bg-alt);
  border: 1px solid var(--aoscf-border);
  font-size: 1rem;
  transition: background var(--aoscf-transition), border-color var(--aoscf-transition);
}
/* Dashicon glyph inside the icon box (emojis render as plain text) */
.aoscf-choice-icon .dashicons {
  font-size: 1.2rem;
  width: 1.2rem;
  height: 1.2rem;
  line-height: 1.2rem;
  color: inherit;
}
.aoscf-choice-label {
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.3;
}
.aoscf-choice-card:has(input:checked),
.aoscf-choice-card.is-checked {
  border-color: var(--aoscf-accent);
  background: rgba(var(--aoscf-accent-rgb), .04);
  box-shadow: 0 0 0 1px var(--aoscf-accent);
}
.aoscf-choice-card:has(input:checked) .aoscf-choice-icon,
.aoscf-choice-card.is-checked .aoscf-choice-icon {
  background: var(--aoscf-accent);
  border-color: var(--aoscf-accent);
  color: #fff;
}
.aoscf-choice-card:has(input:focus-visible),
.aoscf-choice-card.has-focus {
  box-shadow: 0 0 0 3px rgba(var(--aoscf-accent-rgb), .22);
}

/* ── Section headings (auto-numbered) ───────────────────────────────────── */
.aoscf-form { counter-reset: aoscf-section; }
/* Scoped under .aoscf-form-wrap (specificity 0,2,0) so a theme's content-heading
   rule (e.g. `.entry-content h4`, 0,1,1) can't blow up the size — the section
   title is an <h4>. Size is configurable via --aoscf-section-size (px). */
.aoscf-form-wrap .aoscf-section-title {
  counter-increment: aoscf-section;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .5rem 0 .5rem;
  font-size: var(--aoscf-section-size, .75rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--aoscf-text-muted);
  font-family: var(--aoscf-font-mono);
}
/* First element in the form needs no extra top gap */
.aoscf-fields-grid > .aoscf-field--section:first-child .aoscf-section-title { margin-top: 0; }
.aoscf-section-title::before {
  content: "— 0" counter(aoscf-section) " ·";
  color: var(--aoscf-accent);
  letter-spacing: normal;
  white-space: nowrap;
}
.aoscf-section-desc {
  margin: 0 0 .5rem;
  font-size: .875rem;
  color: var(--aoscf-text-muted);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.aoscf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6875rem 1.5rem;
  border: none;
  border-radius: var(--aoscf-radius);
  font-size: .9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--aoscf-transition),
    box-shadow var(--aoscf-transition),
    transform var(--aoscf-transition),
    opacity var(--aoscf-transition);
  user-select: none;
  white-space: nowrap;
}
.aoscf-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--aoscf-accent-rgb), .3);
}

/* Primary / Submit */
.aoscf-btn--submit,
.aoscf-btn--next {
  background: var(--aoscf-accent);
  color: #fff;
  box-shadow: 0 1px 3px rgba(var(--aoscf-accent-rgb), .35), 0 1px 2px rgba(var(--aoscf-accent-rgb), .2);
}
.aoscf-btn--submit:hover,
.aoscf-btn--next:hover {
  background: var(--aoscf-accent-dark);
  box-shadow: 0 4px 8px rgba(var(--aoscf-accent-rgb), .30);
  transform: translateY(-1px);
}
.aoscf-btn--submit:active,
.aoscf-btn--next:active { transform: translateY(0); }

/* Back / Secondary */
.aoscf-btn--back {
  background: var(--aoscf-bg-input);
  color: var(--aoscf-text-muted);
  border: 1.5px solid var(--aoscf-border);
  box-shadow: var(--aoscf-shadow-sm);
}
.aoscf-btn--back:hover {
  background: var(--aoscf-bg-alt);
  border-color: var(--aoscf-border-hover);
  color: var(--aoscf-text);
}

/* Disabled: an explicit muted look reads as "not yet" — a low opacity made
   the teal "Weiter" button fade to near-invisible white-on-pale-teal. */
.aoscf-btn:disabled,
.aoscf-btn[disabled] {
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}
.aoscf-btn--submit:disabled,
.aoscf-btn--next:disabled,
.aoscf-btn--submit[disabled],
.aoscf-btn--next[disabled] {
  background: var(--aoscf-border);
  color: var(--aoscf-text-muted);
}

/* Loading spinner */
.aoscf-btn-label { transition: opacity var(--aoscf-transition); }
.aoscf-btn-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: aoscf-spin .65s linear infinite;
}
/* Only the submit label fades (its arrow sits inside the label) — the Back
   button's arrow must NOT vanish while sending (reported live). */
.aoscf-form.is-submitting .aoscf-btn--submit .aoscf-btn-label { opacity: 0; }
.aoscf-form.is-submitting .aoscf-btn-spinner { display: inline-block; }
/* Keep the submit button its brand color + a visible white spinner while
   sending — the disabled-grey style otherwise read as an empty broken pill. */
.aoscf-form.is-submitting .aoscf-btn--submit,
.aoscf-form.is-submitting .aoscf-btn--submit[disabled] {
  background: var(--aoscf-accent);
  color: #fff;
}

@keyframes aoscf-spin { to { transform: rotate(360deg); } }

.aoscf-submit-wrap { margin-top: 1.75rem; }
.aoscf-step-nav {
  display: flex;
  gap: .75rem;
  align-items: center;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}
.aoscf-step-nav .aoscf-btn--submit,
.aoscf-step-nav .aoscf-btn--next { margin-left: auto; }

/* ── Messages ────────────────────────────────────────────────────────────── */
/* Only reserve space once a message is actually shown — the empty aria-live
   div is the form's last child, so its margin was dead whitespace at the
   bottom (very visible on mobile). */
.aoscf-messages:not(:empty) { margin-top: 1rem; }
.aoscf-message {
  padding: .75rem 1rem;
  border-radius: var(--aoscf-radius);
  font-size: .9rem;
  border: 1px solid transparent;
}
.aoscf-message--error {
  background: var(--aoscf-error-bg);
  color: var(--aoscf-error);
  border-color: #F2C4BC;
}

/* ── Success State ───────────────────────────────────────────────────────── */
.aoscf-success {
  text-align: center;
  padding: 3rem 1.5rem;
  animation: aoscf-fadein .4s ease;
}
.aoscf-success-icon {
  width: 72px;
  height: 72px;
  background: var(--aoscf-success-bg);
  border: 2px solid #DEEEEB;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  /* Kein Überschwingen: eine Kurve, die über den Zielwert hinausschießt und
     zurückfedert, wirkt auf einer Bestätigung verspielt und ist ein typischer
     Baukasten-Tell. Ruhiges Auslaufen stattdessen. */
  animation: aoscf-pop .4s cubic-bezier(0.22, 1, 0.36, 1);
}
.aoscf-success-icon::after {
  content: '';
  width: 24px;
  height: 14px;
  border: 3px solid var(--aoscf-success);
  border-top: none;
  border-right: none;
  transform: rotate(-45deg) translateY(-3px);
}
.aoscf-success-text {
  font-size: 1.1rem;
  color: var(--aoscf-text);
  line-height: 1.6;
}
@keyframes aoscf-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ── Progress Bar ────────────────────────────────────────────────────────── */
.aoscf-progress {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}
/* Background (grey) connector line */
.aoscf-progress::before {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(100% / var(--aoscf-steps, 4) / 2);
  right: calc(100% / var(--aoscf-steps, 4) / 2);
  height: 2px;
  background: var(--aoscf-border);
  z-index: 0;
}
/* Accent-coloured fill overlay — width driven by --aoscf-done-pct (0..1) */
.aoscf-progress-fill {
  position: absolute;
  top: 18px;
  left: calc(100% / var(--aoscf-steps, 4) / 2);
  width: calc((100% - 100% / var(--aoscf-steps, 4)) * var(--aoscf-done-pct, 0));
  height: 2px;
  background: var(--aoscf-accent);
  z-index: 0;
  transition: width .3s ease;
  pointer-events: none;
}
.aoscf-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  flex: 1;
  position: relative;
  z-index: 1;
}
.aoscf-progress-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--aoscf-bg-input);
  border: 2px solid var(--aoscf-border);
  color: var(--aoscf-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8125rem;
  font-weight: 700;
  transition: background var(--aoscf-transition), border-color var(--aoscf-transition), color var(--aoscf-transition);
}
.aoscf-progress-step.is-active .aoscf-progress-dot {
  background: var(--aoscf-accent);
  border-color: var(--aoscf-accent);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(var(--aoscf-accent-rgb), .15);
}
.aoscf-progress-step.is-done .aoscf-progress-dot {
  background: var(--aoscf-success);
  border-color: var(--aoscf-success);
  color: #fff;
}
.aoscf-progress-step.is-done .aoscf-progress-dot::after {
  content: '';
  width: 10px;
  height: 6px;
  border: 2px solid #fff;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg) translateY(-1px);
}
.aoscf-progress-step.is-done .aoscf-progress-dot span { display: none; }
.aoscf-progress-label {
  font-size: .75rem;
  color: var(--aoscf-text-muted);
  text-align: center;
  line-height: 1.3;
}
.aoscf-progress-step.is-active .aoscf-progress-label {
  color: var(--aoscf-accent);
  font-weight: 600;
}
.aoscf-progress-step.is-done .aoscf-progress-label {
  color: var(--aoscf-success);
}

/* ── Step Animation ──────────────────────────────────────────────────────── */
.aoscf-step { animation: aoscf-step-in .25s ease; }
@keyframes aoscf-step-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Section Headings ────────────────────────────────────────────────────── */
.aoscf-step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--aoscf-text);
  margin: 0 0 1.25rem;
}

/* ── Booking Calendar ────────────────────────────────────────────────────── */
.aoscf-booking-header { margin-bottom: 1.75rem; }
.aoscf-booking-title  { font-size: 1.5rem; font-weight: 700; margin: 0 0 .375rem; color: var(--aoscf-text); }
.aoscf-booking-subtitle { color: var(--aoscf-text-muted); margin: 0; font-size: .9375rem; }

.aoscf-calendar {
  border: 1.5px solid var(--aoscf-border);
  border-radius: var(--aoscf-radius-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--aoscf-bg-card);
  box-shadow: var(--aoscf-shadow-sm);
}
.aoscf-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .875rem 1rem;
  background: var(--aoscf-accent);
  color: #fff;
}
.aoscf-calendar-header button {
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 1.125rem;
  cursor: pointer;
  padding: .25rem .625rem;
  border-radius: 6px;
  line-height: 1;
  transition: background var(--aoscf-transition);
}
.aoscf-calendar-header button:hover { background: rgba(255,255,255,.25); }
.aoscf-cal-title { font-weight: 700; font-size: 1rem; }

.aoscf-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--aoscf-bg-alt);
  border-bottom: 1px solid var(--aoscf-border);
}
.aoscf-cal-weekday {
  text-align: center;
  padding: .5rem .25rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--aoscf-text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.aoscf-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  padding: .5rem;
}
.aoscf-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: .875rem;
  font-weight: 500;
  cursor: default;
  transition: background var(--aoscf-transition), color var(--aoscf-transition);
}
.aoscf-cal-day.is-available {
  cursor: pointer;
  color: var(--aoscf-text);
}
.aoscf-cal-day.is-available:hover { background: rgba(var(--aoscf-accent-rgb), .1); color: var(--aoscf-accent); }
.aoscf-cal-day.is-today { border: 2px solid var(--aoscf-accent); color: var(--aoscf-accent); font-weight: 700; }
.aoscf-cal-day.is-selected { background: var(--aoscf-accent); color: #fff; font-weight: 700; }
.aoscf-cal-day.is-selected:hover { background: var(--aoscf-accent-dark); }
.aoscf-cal-day.is-past,
.aoscf-cal-day.is-unavailable { color: var(--aoscf-text-light); }
.aoscf-cal-day.is-empty { visibility: hidden; }

/* Time Slots */
.aoscf-time-slots { margin-top: 1.25rem; }
.aoscf-time-slots h4 { font-size: .9rem; font-weight: 600; color: var(--aoscf-text); margin: 0 0 .75rem; }
.aoscf-slots-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.aoscf-slot-btn {
  padding: .5rem 1.1rem;
  border: 1.5px solid var(--aoscf-border);
  border-radius: 999px;
  background: var(--aoscf-bg-input);
  font-size: .9rem;
  font-family: inherit;
  cursor: pointer;
  font-weight: 500;
  transition: border-color var(--aoscf-transition), background var(--aoscf-transition), color var(--aoscf-transition);
}
.aoscf-slot-btn:hover   { border-color: var(--aoscf-accent); color: var(--aoscf-accent); }
.aoscf-slot-btn.is-selected { background: var(--aoscf-accent); border-color: var(--aoscf-accent); color: #fff; }

/* Summary */
.aoscf-summary {
  background: var(--aoscf-bg-alt);
  border: 1px solid var(--aoscf-border);
  border-radius: var(--aoscf-radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.aoscf-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .5rem 0;
  font-size: .9rem;
  gap: 1rem;
}
.aoscf-summary-row + .aoscf-summary-row { border-top: 1px solid var(--aoscf-border); }
.aoscf-summary-label { color: var(--aoscf-text-muted); flex-shrink: 0; }
.aoscf-summary-value { text-align: right; word-break: break-word; }

/* ── Configurator ────────────────────────────────────────────────────────── */
.aoscf-configurator-header { text-align: center; margin-bottom: 2rem; }
.aoscf-configurator-header h2 { font-size: 1.75rem; font-weight: 700; color: var(--aoscf-text); margin: 0 0 .5rem; }
.aoscf-configurator-header p  { color: var(--aoscf-text-muted); margin: 0; }

.aoscf-price-display {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  font-size: .9rem;
  color: var(--aoscf-text-muted);
  margin-bottom: 1.25rem;
  padding: .625rem .875rem;
  background: var(--aoscf-bg-alt);
  border-radius: var(--aoscf-radius);
  border: 1px solid var(--aoscf-border);
}
.aoscf-price-total { font-weight: 700; color: var(--aoscf-accent); font-size: 1.0625rem; }

/* ── Cards (Single Choice) ───────────────────────────────────────────────── */
.aoscf-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: .5rem;
}
.aoscf-card {
  border: 2px solid var(--aoscf-border);
  border-radius: var(--aoscf-radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  background: var(--aoscf-bg-card);
  position: relative;
  outline: none;
  transition:
    border-color var(--aoscf-transition),
    box-shadow var(--aoscf-transition),
    transform var(--aoscf-transition);
}
.aoscf-card:hover {
  border-color: var(--aoscf-accent);
  transform: translateY(-2px);
  box-shadow: var(--aoscf-shadow-md);
}
.aoscf-card[aria-checked="true"] {
  border-color: var(--aoscf-accent);
  box-shadow: 0 0 0 3px rgba(var(--aoscf-accent-rgb), .15);
  background: rgba(var(--aoscf-accent-rgb), .03);
}
/* Checkmark badge when selected */
.aoscf-card[aria-checked="true"]::after {
  content: '';
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 20px;
  height: 20px;
  background: var(--aoscf-accent);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 13px;
  background-repeat: no-repeat;
  background-position: center;
}
.aoscf-card-image {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: calc(var(--aoscf-radius-lg) - 4px);
  margin-bottom: .875rem;
}
.aoscf-card-title { display: block; font-size: .9375rem; font-weight: 700; margin-bottom: .25rem; }
.aoscf-card-desc  { font-size: .8125rem; color: var(--aoscf-text-muted); margin: .25rem 0 .75rem; line-height: 1.4; }
.aoscf-card-price { font-size: .875rem; color: var(--aoscf-accent); font-weight: 600; }
.aoscf-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── Multi-Choice Features ───────────────────────────────────────────────── */
.aoscf-feature-grid { display: flex; flex-direction: column; gap: .625rem; margin-bottom: .5rem; }
.aoscf-feature-item {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .875rem 1rem;
  border: 1.5px solid var(--aoscf-border);
  border-radius: var(--aoscf-radius-lg);
  cursor: pointer;
  background: var(--aoscf-bg-card);
  transition: border-color var(--aoscf-transition), background var(--aoscf-transition);
}
.aoscf-feature-item:hover { border-color: var(--aoscf-accent); }
.aoscf-feature-item input[type="checkbox"] { display: none; }
.aoscf-feature-check {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--aoscf-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--aoscf-transition), border-color var(--aoscf-transition);
}
.aoscf-feature-item:has(input:checked) .aoscf-feature-check,
.aoscf-feature-item.is-checked .aoscf-feature-check {
  background: var(--aoscf-accent);
  border-color: var(--aoscf-accent);
}
.aoscf-feature-item:has(input:checked) .aoscf-feature-check::after,
.aoscf-feature-item.is-checked .aoscf-feature-check::after {
  content: '';
  width: 8px;
  height: 5px;
  border: 2px solid #fff;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg) translateY(-1px);
}
.aoscf-feature-item:has(input:checked),
.aoscf-feature-item.is-checked { border-color: var(--aoscf-accent); background: rgba(var(--aoscf-accent-rgb), .03); }
.aoscf-feature-label { flex: 1; min-width: 0; }
.aoscf-feature-label strong { display: block; font-size: .9375rem; font-weight: 600; }
.aoscf-feature-label em { font-style: normal; font-size: .8125rem; color: var(--aoscf-text-muted); }
.aoscf-feature-price { font-size: .875rem; color: var(--aoscf-accent); font-weight: 600; white-space: nowrap; }

/* ── Budget Options ──────────────────────────────────────────────────────── */
.aoscf-budget-options { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .5rem; }
.aoscf-budget-option {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .875rem 1rem;
  border: 1.5px solid var(--aoscf-border);
  border-radius: var(--aoscf-radius-lg);
  cursor: pointer;
  background: var(--aoscf-bg-card);
  transition: border-color var(--aoscf-transition), background var(--aoscf-transition);
  font-size: .9375rem;
  font-weight: 500;
}
.aoscf-budget-option:hover { border-color: var(--aoscf-accent); }
.aoscf-budget-option input[type="radio"] {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--aoscf-accent);
}
.aoscf-budget-option:has(input:checked),
.aoscf-budget-option.is-checked {
  border-color: var(--aoscf-accent);
  background: rgba(var(--aoscf-accent-rgb), .04);
}

/* ── Column layout (Contact Form) ────────────────────────────────────────────
   The grid is ALWAYS two columns; what varies is how much each field spans:
   - data-cols="1": every field spans the full row by default
   - data-cols="2": fields sit side by side; wide types span the full row
   - per-field override (.aoscf-field--w-full / --w-half) always wins,
     so one form can freely mix full- and half-width fields ("Boxen"). */
/* Sechs Spalten als gemeinsamer Nenner: halbe Breite ist span 3, ein Drittel
   ist span 2. Für bestehende Formulare ändert sich nichts — span 3 von 6 ist
   dasselbe wie 1 von 2. */
.aoscf-fields-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0 1.25rem;
}
.aoscf-fields-grid > .aoscf-field { grid-column: span 3; }
.aoscf-form-wrap[data-cols="1"] .aoscf-fields-grid > .aoscf-field {
  grid-column: 1 / -1;
}
/* Wide field types default to the full row in the 2-column layout */
.aoscf-form-wrap[data-cols="2"] .aoscf-field--textarea,
.aoscf-form-wrap[data-cols="2"] .aoscf-field--radio,
.aoscf-form-wrap[data-cols="2"] .aoscf-field--multi_choice,
.aoscf-form-wrap[data-cols="2"] .aoscf-field--section,
.aoscf-form-wrap[data-cols="2"] .aoscf-field--checkbox {
  grid-column: 1 / -1;
}
/* Explicit per-field width beats every default above */
.aoscf-form-wrap .aoscf-fields-grid > .aoscf-field.aoscf-field--w-full  { grid-column: 1 / -1; }
.aoscf-form-wrap .aoscf-fields-grid > .aoscf-field.aoscf-field--w-half  { grid-column: span 3; }
.aoscf-form-wrap .aoscf-fields-grid > .aoscf-field.aoscf-field--w-third { grid-column: span 2; }

/* Fallback for browsers without container queries: viewport-based collapse */
@media (max-width: 560px) {
  .aoscf-fields-grid { grid-template-columns: 1fr; }
  .aoscf-form-wrap .aoscf-fields-grid > .aoscf-field.aoscf-field--w-half,
  .aoscf-form-wrap .aoscf-fields-grid > .aoscf-field.aoscf-field--w-third { grid-column: 1 / -1; }
}

/* Preferred: collapse based on the form's OWN width, so a form embedded in a
   narrow sidebar/widget on a wide desktop viewport also drops to one column */
@supports (container-type: inline-size) {
  .aoscf-form-wrap { container-type: inline-size; }
  @container (max-width: 560px) {
    .aoscf-fields-grid { grid-template-columns: 1fr; }
    .aoscf-form-wrap .aoscf-fields-grid > .aoscf-field.aoscf-field--w-half,
    .aoscf-form-wrap .aoscf-fields-grid > .aoscf-field.aoscf-field--w-third { grid-column: 1 / -1; }
  }
}

/* ── ICS calendar download button ───────────────────────────────────────── */
.aoscf-ics-download {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  margin-top: 1rem;
  text-decoration: none;
}

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes aoscf-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
  .aoscf-cards {
    grid-template-columns: 1fr;
  }
  /* Keep the ACTIVE step's label visible for orientation; hide the rest
     without collapsing the layout (visibility keeps the flex cells even) */
  .aoscf-progress-label { visibility: hidden; }
  .aoscf-progress-step.is-active .aoscf-progress-label { visibility: visible; }
  .aoscf-step-nav { gap: .5rem; }
  .aoscf-step-nav .aoscf-btn { flex: 1; }
  .aoscf-step-nav .aoscf-btn--submit,
  .aoscf-step-nav .aoscf-btn--next { margin-left: 0; }
  .aoscf-slots-grid .aoscf-slot-btn { flex: 1; min-width: 80px; text-align: center; }
}

/* ── Dark scheme ─────────────────────────────────────────────────────────────
   Per-form via data-scheme="dark"; data-scheme="auto" follows the visitor's
   OS preference. Token overrides only — all components inherit. */
.aoscf-form-wrap[data-scheme="dark"] {
  --aoscf-text:         #f9fafb;
  --aoscf-text-muted:   #9ca3af;
  --aoscf-text-light:   #6b7280;
  --aoscf-border:       #374151;
  --aoscf-border-hover: #4b5563;
  --aoscf-bg-input:     #1f2937;
  --aoscf-bg-alt:       #111827;
  --aoscf-bg-card:      #1f2937;
  --aoscf-success-bg:   rgba(5,150,105,.15);
  --aoscf-error-bg:     rgba(220,38,38,.15);
  --aoscf-shadow-sm:    0 1px 2px rgba(0,0,0,.4);
  --aoscf-shadow:       0 1px 3px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.4);
  --aoscf-shadow-md:    0 4px 6px rgba(0,0,0,.5), 0 2px 4px rgba(0,0,0,.4);
  color-scheme: dark;
  /* Dark scheme must paint its own surface — without this, near-white text
     sits directly on the (usually white) host page and is unreadable. */
  background: var(--aoscf-bg-alt);
  border-radius: calc(var(--aoscf-radius-lg) + 8px);
  padding: clamp(1.25rem, 4vw, 2rem);
}
@media (prefers-color-scheme: dark) {
  .aoscf-form-wrap[data-scheme="auto"] {
    --aoscf-text:         #f9fafb;
    --aoscf-text-muted:   #9ca3af;
    --aoscf-text-light:   #6b7280;
    --aoscf-border:       #374151;
    --aoscf-border-hover: #4b5563;
    --aoscf-bg-input:     #1f2937;
    --aoscf-bg-alt:       #111827;
    --aoscf-bg-card:      #1f2937;
    --aoscf-success-bg:   rgba(5,150,105,.15);
    --aoscf-error-bg:     rgba(220,38,38,.15);
    --aoscf-shadow-sm:    0 1px 2px rgba(0,0,0,.4);
    --aoscf-shadow:       0 1px 3px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.4);
    --aoscf-shadow-md:    0 4px 6px rgba(0,0,0,.5), 0 2px 4px rgba(0,0,0,.4);
    color-scheme: dark;
    background: var(--aoscf-bg-alt);
    border-radius: calc(var(--aoscf-radius-lg) + 8px);
    padding: clamp(1.25rem, 4vw, 2rem);
  }
}
/* Boxed dark forms already have card padding/background — avoid doubling up */
.aoscf-form-wrap.is-boxed[data-scheme="dark"] { background: var(--aoscf-bg-card); }
@media (prefers-color-scheme: dark) {
  .aoscf-form-wrap.is-boxed[data-scheme="auto"] { background: var(--aoscf-bg-card); }
}

/* ── Accessibility: reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .aoscf-form-wrap *,
  .aoscf-form-wrap *::before,
  .aoscf-form-wrap *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── Touch targets & small-screen refinements ───────────────────────────────── */
.aoscf-slot-btn { min-height: 44px; }                /* WCAG touch target */
.aoscf-calendar-header button { min-width: 44px; min-height: 44px; }
/* Calendar days stay square via aspect-ratio — a min-height (without a matching
   min-width) squashed them into ovals on phones where the 7-col cell is <44px. */
.aoscf-btn { min-height: 44px; }
.aoscf-pill { min-height: 44px; }
.aoscf-checkbox-label,
.aoscf-budget-option,
.aoscf-feature-item { min-height: 44px; }
/* Consent box: the LABEL must keep the 44px tap height (the box padding is
   dead space for touch — only the label toggles the input). The compact look
   comes from trimming the box padding instead; content centers vertically. */
.aoscf-field--privacy .aoscf-checkbox-label {
  min-height: 44px;
  align-items: center;
  margin-bottom: 0;
}

/* Kill the 300 ms tap delay / accidental double-tap zoom on interactive parts */
.aoscf-btn,
.aoscf-pill,
.aoscf-choice-card,
.aoscf-card,
.aoscf-slot-btn,
.aoscf-cal-day,
.aoscf-budget-option,
.aoscf-feature-item,
.aoscf-checkbox-label { touch-action: manipulation; }

/* Keyboard focus on calendar days (they are tabbable divs, not buttons) */
.aoscf-cal-day.is-available:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--aoscf-accent-rgb), .35);
}

/* Anchor scroll targets clear of sticky theme headers */
.aoscf-form-wrap,
.aoscf-field { scroll-margin-top: 90px; }

/* Most real phones are 360–430px wide — apply the compact refinements up to
   480px (was 380px, which left the common 390/414/428px sizes uncovered). */
@media (max-width: 480px) {
  .aoscf-progress-dot { width: 30px; height: 30px; font-size: .75rem; }
  .aoscf-progress::before,
  .aoscf-progress-fill { top: 15px; }
  .aoscf-card { padding: .875rem; }
  .aoscf-feature-item { flex-wrap: wrap; padding: .75rem .875rem; }
  .aoscf-feature-price { white-space: normal; width: 100%; padding-left: 2.125rem; }
  .aoscf-summary-row { flex-direction: column; gap: .125rem; }
  .aoscf-summary-label { flex-shrink: 1; }
  .aoscf-summary-value { text-align: left; }
  .aoscf-calendar-grid { gap: 2px; padding: .25rem; }
  .aoscf-booking-title { font-size: 1.25rem; }
  .aoscf-configurator-header h2 { font-size: 1.35rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Booking redesign (v5.13) — modern card wizard, blended from the AOS widget.
   All rules are scoped to .aoscf-booking so contact/configurator are untouched;
   they use the same per-form --aoscf-* tokens (accent stays AA-safe #008078),
   no external fonts, no color-mix. A11y-critical 44px targets are re-declared
   here because the scoped selectors override the global single-class rules.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Card container — the wizard always reads as one premium card. The .is-boxed
   rule lives later in the file with equal specificity; the extra class here
   guarantees booking keeps its tighter padding (is-boxed's up-to-3rem padding
   would cramp the side-by-side calendar). */
.aoscf-form-wrap.aoscf-booking,
.aoscf-form-wrap.aoscf-booking.is-boxed {
  background: var(--aoscf-bg-card);
  border: 1px solid var(--aoscf-border);
  border-radius: calc(var(--aoscf-radius) + 16px);
  box-shadow: 0 30px 70px -50px rgba(15,31,34,.30), 0 2px 6px rgba(15,31,34,.04);
  padding: clamp(1.25rem, 3vw, 1.9rem) clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
}
.aoscf-booking .aoscf-booking-header { margin-bottom: 1.25rem; }
.aoscf-booking .aoscf-booking-title  { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -.02em; }

/* Step rail — bar + dot + mono label per step, no connector line */
.aoscf-booking .aoscf-steprail {
  display: grid;
  grid-template-columns: repeat(var(--aoscf-steps, 4), 1fr);
  gap: 6px;
  margin: 0 0 1.5rem;
}
.aoscf-booking .aoscf-steprail::before,
.aoscf-booking .aoscf-progress-fill { display: none; }
.aoscf-booking .aoscf-sr { display: flex; flex-direction: column; gap: 8px; align-items: stretch; cursor: default; position: relative; z-index: 1; }
.aoscf-booking .aoscf-sr.is-done { cursor: pointer; }
.aoscf-booking .aoscf-sr-bar { height: 4px; border-radius: 999px; background: var(--aoscf-border); transition: background .3s; }
.aoscf-booking .aoscf-sr.is-active .aoscf-sr-bar,
.aoscf-booking .aoscf-sr.is-done   .aoscf-sr-bar { background: var(--aoscf-accent); }
.aoscf-booking .aoscf-sr-lbl { display: flex; align-items: center; gap: 7px; font-family: var(--aoscf-font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--aoscf-text-muted); }
.aoscf-booking .aoscf-sr.is-active .aoscf-sr-lbl,
.aoscf-booking .aoscf-sr.is-done   .aoscf-sr-lbl { color: var(--aoscf-text); }
.aoscf-booking .aoscf-sr-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--aoscf-border-hover); display: grid; place-items: center; font-size: 9px; font-weight: 700; flex-shrink: 0; color: var(--aoscf-text-muted); background: var(--aoscf-bg-card); font-family: var(--aoscf-font, inherit); transition: background .2s, border-color .2s, color .2s; }
.aoscf-booking .aoscf-sr.is-active .aoscf-sr-dot { border-color: var(--aoscf-accent); color: var(--aoscf-accent); }
.aoscf-booking .aoscf-sr.is-done   .aoscf-sr-dot { border-color: var(--aoscf-accent); background: var(--aoscf-accent); color: #fff; font-size: 0; }
.aoscf-booking .aoscf-sr.is-done   .aoscf-sr-dot::after { content: ''; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-.5px, -1px); }

/* Step legend eyebrow + tighter heading */
.aoscf-booking .aoscf-step-legend { font-family: var(--aoscf-font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--aoscf-text-muted); margin: 0 0 .5rem; }
.aoscf-booking .aoscf-step h3 { font-size: 1.15rem; margin: 0 0 1.15rem; }
.aoscf-booking .aoscf-step { animation: none; }

/* Calendar + slots, side by side */
.aoscf-booking .aoscf-cal-time { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.25rem; }

/* Calendar — open (no card/teal header), outline nav, rounded-square days */
.aoscf-booking .aoscf-calendar { border: 0; border-radius: 0; overflow: visible; margin: 0; background: transparent; box-shadow: none; }
.aoscf-booking .aoscf-calendar-header { background: transparent; color: var(--aoscf-text); padding: 0 0 .75rem; }
.aoscf-booking .aoscf-cal-title { font-weight: 700; font-size: .95rem; color: var(--aoscf-text); }
.aoscf-booking .aoscf-cal-nav { display: flex; gap: 6px; }
.aoscf-booking .aoscf-calendar-header button { width: 44px; min-width: 44px; height: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--aoscf-border); background: var(--aoscf-bg-card); color: var(--aoscf-text); display: grid; place-items: center; padding: 0; font-size: 0; }
.aoscf-booking .aoscf-calendar-header button:hover:not(:disabled) { border-color: var(--aoscf-accent); color: var(--aoscf-accent); background: var(--aoscf-bg-card); }
.aoscf-booking .aoscf-calendar-header button:disabled { opacity: .35; cursor: default; }
.aoscf-booking .aoscf-calendar-weekdays { background: transparent; border: 0; margin-bottom: 4px; }
.aoscf-booking .aoscf-cal-weekday { font-family: var(--aoscf-font-mono); font-size: 10px; padding: 4px 0; letter-spacing: .04em; }
.aoscf-booking .aoscf-calendar-grid { gap: 4px; padding: 0; }
/* No min-height: aspect-ratio alone keeps days square AND lets them shrink to
   fit 7 columns on narrow screens (a min-height couples to a min-width via the
   aspect ratio and would overflow the card on mobile). */
.aoscf-booking .aoscf-cal-day { aspect-ratio: 1; border-radius: 10px; border: 1px solid transparent; background: var(--aoscf-bg-alt); font-weight: 600; font-size: .875rem; }
.aoscf-booking .aoscf-cal-day.is-available:hover { background: var(--aoscf-bg-card); border-color: var(--aoscf-accent); color: var(--aoscf-text); }
.aoscf-booking .aoscf-cal-day.is-today { border: 0; box-shadow: inset 0 0 0 1.5px var(--aoscf-accent); color: var(--aoscf-text); }
.aoscf-booking .aoscf-cal-day.is-selected { background: var(--aoscf-accent); color: #fff; border-color: var(--aoscf-accent); box-shadow: 0 8px 18px -8px rgba(var(--aoscf-accent-rgb), .7); }
.aoscf-booking .aoscf-cal-day.is-past,
.aoscf-booking .aoscf-cal-day.is-unavailable { color: var(--aoscf-text-light); background: transparent; opacity: .5; }

/* Slots — 2-col grid, mono, distinct ink-selected (vs teal date) */
.aoscf-booking .aoscf-time-slots { margin: 0; }
.aoscf-booking .aoscf-slots-head { display: flex; gap: 6px; align-items: baseline; font-family: var(--aoscf-font-mono); font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--aoscf-text-muted); margin: 0 0 .625rem; }
.aoscf-booking .aoscf-slots-date { color: var(--aoscf-accent); }
.aoscf-booking .aoscf-slots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* Explicit color: without it a theme's `button { color:#fff }` leaks in and the
   slot text is white-on-white (reported live). */
.aoscf-booking .aoscf-slot-btn { min-height: 44px; border-radius: 10px; border: 1px solid var(--aoscf-border); background: var(--aoscf-bg-alt); color: var(--aoscf-text); font-family: var(--aoscf-font-mono); font-size: .875rem; font-weight: 500; display: grid; place-items: center; padding: 0; }
/* Hover: keep the rounded shape, just tint slightly — a plain white bg made the
   button "disappear" on the white card. */
.aoscf-booking .aoscf-slot-btn:hover { border-color: var(--aoscf-accent); color: var(--aoscf-text); background: rgba(var(--aoscf-accent-rgb), .08); border-radius: 10px; }
.aoscf-booking .aoscf-slot-btn.is-selected,
.aoscf-booking .aoscf-slot-btn.is-selected:hover { background: var(--aoscf-text); border-color: var(--aoscf-text); color: #fff; }
.aoscf-booking .aoscf-slots-empty,
.aoscf-booking .aoscf-no-slots { display: grid; place-items: center; min-height: 150px; text-align: center; color: var(--aoscf-text-light); font-size: .8125rem; line-height: 1.5; margin: 0; }
/* Respect the hidden attribute (JS toggles it) — an explicit display would
   otherwise override the UA [hidden] rule and show both placeholders at once. */
.aoscf-booking .aoscf-slots-empty[hidden],
.aoscf-booking .aoscf-no-slots[hidden] { display: none; }

/* Fields — mono labels + soft teal focus glow. Exclude the checkbox/consent
   label: text-transform there would uppercase the whole privacy sentence. */
.aoscf-booking .aoscf-field > label:not(.aoscf-checkbox-label) { font-family: var(--aoscf-font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--aoscf-text-muted); font-weight: 500; }
.aoscf-booking .aoscf-field input:focus,
.aoscf-booking .aoscf-field textarea:focus { border-color: var(--aoscf-accent); box-shadow: 0 0 0 3px rgba(var(--aoscf-accent-rgb), .14); }

/* Summary — bordered card, first row minted, mono labels */
.aoscf-booking .aoscf-summary { background: var(--aoscf-bg-card); border: 1px solid var(--aoscf-border); border-radius: 14px; padding: 0; overflow: hidden; }
.aoscf-booking .aoscf-summary-row { flex-direction: row; justify-content: space-between; align-items: center; gap: 1rem; padding: .875rem 1rem; border-top: 1px solid var(--aoscf-border); }
.aoscf-booking .aoscf-summary-row:first-child { border-top: 0; background: var(--aoscf-success-bg); }
.aoscf-booking .aoscf-summary-label { font-family: var(--aoscf-font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--aoscf-text-muted); }
.aoscf-booking .aoscf-summary-value { font-weight: 600; font-size: .9rem; color: var(--aoscf-text); }

/* Buttons — pill + arrow nudge on hover */
/* Pill shape stays on every state — themes that restyle button:hover/:focus
   must not square the corners (reported live). Only color + the slight lift change. */
.aoscf-booking .aoscf-btn,
.aoscf-booking .aoscf-btn:hover,
.aoscf-booking .aoscf-btn:focus,
.aoscf-booking .aoscf-btn:active { border-radius: 999px; min-height: 44px; }
.aoscf-booking .aoscf-btn-arrow { display: inline-block; transition: transform .2s; }
.aoscf-booking .aoscf-btn:hover .aoscf-btn-arrow { transform: translateX(3px); }
.aoscf-booking .aoscf-btn--back:hover .aoscf-btn-arrow { transform: translateX(-3px); }

/* Topic chips share the 2-col rhythm */
.aoscf-booking .aoscf-choice-grid { grid-template-columns: 1fr 1fr; }

/* Footer trust bar */
.aoscf-booking .aoscf-booking-foot { display: flex; align-items: center; gap: 8px; justify-content: center; font-family: var(--aoscf-font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--aoscf-text-muted); margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--aoscf-border); }
.aoscf-booking .aoscf-booking-foot svg { color: var(--aoscf-accent); flex-shrink: 0; }

/* Success polish */
.aoscf-booking .aoscf-success { padding: 2.5rem 1rem 1rem; }

/* Booking responsive */
@media (max-width: 560px) {
  .aoscf-booking .aoscf-cal-time { grid-template-columns: 1fr; gap: 1.25rem; }
  .aoscf-booking .aoscf-slots-empty,
  .aoscf-booking .aoscf-no-slots { min-height: 0; padding: 1.25rem 0; }
}
@media (max-width: 460px) {
  .aoscf-booking .aoscf-sr-name { display: none; }
  .aoscf-booking .aoscf-choice-grid { grid-template-columns: 1fr; }
}

/* Section rows carry no input — suppress their reserved error space */
.aoscf-field--section .aoscf-error { display: none; }
.aoscf-field--section { margin-bottom: .5rem; }

/* Hidden fields must not leave an empty gap in the layout */
.aoscf-field--hidden { display: none; }

/* ── Boxed card container ───────────────────────────────────────────────────── */
.aoscf-form-wrap.is-boxed {
  background: var(--aoscf-bg-card);
  border: 1px solid var(--aoscf-border);
  border-radius: calc(var(--aoscf-radius-lg) + 8px);
  box-shadow: 0 10px 30px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  padding: clamp(1.5rem, 5vw, 3rem);
}
.aoscf-form-wrap.is-boxed[data-scheme="dark"] { box-shadow: 0 10px 30px rgba(0,0,0,.45); }

/* ── Form header (eyebrow / heading / badge) ───────────────────────────────── */
.aoscf-form-header { margin-bottom: 1.5rem; }
.aoscf-eyebrow {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .625rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--aoscf-accent);
  font-family: var(--aoscf-font-mono);
}
.aoscf-eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  background: var(--aoscf-accent);
  flex-shrink: 0;
}
.aoscf-heading {
  margin: 0 0 .875rem;
  font-size: clamp(1.5rem, 4vw, 2.125rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--aoscf-text);
  letter-spacing: -.02em;
}
.aoscf-badge-note {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .875rem;
  border-radius: 999px;
  background: rgba(var(--aoscf-accent-rgb), .08);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--aoscf-text-muted);
  font-family: var(--aoscf-font-mono);
}
.aoscf-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aoscf-accent);
  flex-shrink: 0;
  animation: aoscf-pulse 2s ease-in-out infinite;
}
@keyframes aoscf-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .4; }
}

/* ── Privacy consent: soft filled box ──────────────────────────────────────── */
.aoscf-field--privacy {
  background: var(--aoscf-bg-alt);
  border: 1px solid var(--aoscf-border);
  border-radius: var(--aoscf-radius-lg);
  /* Slim vertical padding — the 44px tap height lives on the label itself */
  padding: .375rem 1.125rem;
}
/* The reserved empty error line (min-height 1.1em) sat INSIDE the padded box
   and made it visibly taller than its content — collapse it until it has text. */
.aoscf-field--privacy .aoscf-error { min-height: 0; margin-top: 0; }
.aoscf-field--privacy .aoscf-error:not(:empty) { margin-top: .375rem; }
/* Booking step 3: the consent box follows the topic cards — use the SAME gap
   as between the cards so it reads as part of the group. */
.aoscf-choice-grid + .aoscf-field--privacy { margin-top: .625rem; }

/* ── Submit row: pill button with arrow + note ─────────────────────────────── */
.aoscf-submit-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}
.aoscf-btn--submit { border-radius: 999px; padding: .8125rem 1.75rem; }
.aoscf-btn-arrow { display: inline-block; transition: transform var(--aoscf-transition); }
.aoscf-btn--submit:hover .aoscf-btn-arrow { transform: translateX(3px); }
/* Datenschutzhinweis statt Häkchen — steht über dem Absenden-Button. */
.aoscf-privacy-note {
  margin: 0 0 1rem;
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--aoscf-text-muted);
}
.aoscf-privacy-note a { color: inherit; text-decoration: underline; }

.aoscf-submit-note {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--aoscf-text-muted);
  font-family: var(--aoscf-font-mono);
}
@media (max-width: 480px) {
  /* Reclaim horizontal room for the calendar/fields inside a boxed form */
  .aoscf-form-wrap.is-boxed { padding: 1.25rem 1rem; }
  .aoscf-submit-wrap { flex-direction: column; align-items: flex-start; gap: .625rem; }
  .aoscf-submit-wrap .aoscf-btn--submit { width: 100%; }
}
