/* Oeffentliche Website: Unterseiten, Kurse, Team, Buchung, Rechtstexte. */

.page-hero {
  padding: clamp(56px, 7vw, 104px) var(--pad) clamp(32px, 4vw, 56px);
  background: var(--paper);
}

.page-hero h1 {
  font-size: clamp(2.25rem, 1.2rem + 3.2vw, 4rem);
}

.page-hero p {
  max-width: 34ch;
  margin-top: 24px;
  font-size: var(--step-lead);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.page-hero--booking p {
  max-width: 44ch;
}

.section {
  padding: clamp(48px, 6vw, 88px) var(--pad);
}

.section > .shell > h2,
.section-heading h2,
.content-grid h2 {
  margin-bottom: 24px;
}

.section-heading {
  margin-bottom: 40px;
}

.content-grid {
  display: grid;
  gap: 40px;
}

.content-grid > div {
  max-width: 46ch;
}

.content-grid h2:not(:first-child) {
  margin-top: 56px;
}

.info-panel {
  padding: clamp(24px, 3vw, 36px);
  background: var(--rosa);
}

.info-panel h2,
.info-panel h3 {
  margin-bottom: 16px;
}

.info-panel ul {
  padding: 0;
  list-style: none;
}

.info-panel li {
  padding: 6px 0;
}

.contact-inline {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.contact-inline__phone {
  font-size: var(--step-lead);
  font-weight: 500;
}

/* Leistungen: vier Flaechen statt Karten. */
.service-list {
  display: grid;
  gap: var(--gap);
}

.service-list article {
  padding: clamp(24px, 3.4vw, 44px);
  background: var(--surface);
}

.service-list article:nth-child(1) {
  background: var(--rosa);
}

.service-list article:nth-child(2) {
  background: var(--blau);
}

.service-list article:nth-child(3) {
  background: var(--gruen);
}

.service-list h2 {
  margin-bottom: 14px;
}

.service-list p {
  max-width: 46ch;
}

.service-list .text-link {
  margin-top: 20px;
}

.contact-cards {
  display: grid;
  gap: var(--gap);
}

.contact-cards article {
  padding: clamp(24px, 3.4vw, 36px);
  background: var(--surface);
}

.contact-cards article:first-child {
  background: var(--blau);
}

.contact-cards h2 {
  margin-bottom: 12px;
  font-size: var(--step-lead);
}

.contact-cards a {
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* Kurse */
.course-entry {
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--paper);
}

.course-entry + .course-entry {
  margin-top: var(--gap);
}

.course-entry__body > p {
  margin-top: 12px;
}

.course-entry__body dl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 16px;
}

.course-entry__body dt {
  font-weight: 500;
}

.course-entry__body dd {
  margin: 0;
}

.course-entry__dates {
  display: grid;
  gap: var(--gap);
  margin-top: 24px;
}

.course-date {
  display: grid;
  gap: 2px;
  padding: 16px;
  background: var(--bg);
}

.course-date time {
  font-weight: 500;
}

.course-date strong {
  font-weight: 500;
  color: var(--accent);
}

.course-date strong.course-date__full {
  color: var(--ink-soft);
}

.course-date__hint {
  margin-top: 6px;
  font-size: var(--step-small);
}

.course-select-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-self: start;
  margin-top: 10px;
  font-weight: 500;
}

.course-catalog__empty .btn {
  margin-top: 20px;
}

/* Ueber uns */
.about-location {
  display: grid;
  gap: 4px;
  padding: clamp(24px, 3.4vw, 36px);
  background: var(--ink);
  color: var(--paper);
}

.about-location strong {
  font-size: var(--step-head);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.about-location a {
  color: var(--paper);
  text-decoration-color: var(--paper);
}

.practice-spaces__heading h2 {
  margin-bottom: 20px;
}

.practice-spaces__heading > p {
  max-width: 46ch;
}

.practice-gallery {
  display: none;
}

.practitioner {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 8px 20px;
  padding: 20px;
  background: var(--paper);
}

.practitioner + .practitioner {
  margin-top: var(--gap);
}

.practitioner > img {
  grid-row: span 2;
  width: 112px;
  height: 112px;
  object-fit: cover;
}

.practitioner__identity p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: var(--step-small);
}

.practitioner__bio {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.about-team-section {
  margin-top: var(--gap);
  background: var(--gruen);
}

.cta-band {
  margin-top: var(--gap);
  padding: clamp(40px, 5vw, 72px) var(--pad);
  background: var(--ink);
  color: var(--paper);
}

.cta-band h2 {
  margin-bottom: 16px;
}

.cta-band .btn {
  margin-top: 24px;
}

/* Buchung: eine Aufgabe, deshalb mehr Breite fuer das Formular. */
.split--aufgabe {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}

.page-hero--booking {
  padding-bottom: 32px;
}

.booking-section {
  padding: 32px var(--pad) clamp(56px, 7vw, 96px);
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  scroll-margin-top: 16px;
}

.wizard-progress li {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: var(--step-small);
}

.wizard-progress span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  transition: background-color 280ms ease, color 280ms ease;
}

.wizard-progress .is-active,
.wizard-progress .is-done {
  color: var(--ink);
}

.wizard-progress .is-active span {
  background: var(--accent);
  color: var(--on-accent);
}

.wizard-progress .is-done span {
  background: var(--ink);
  color: var(--paper);
}

.wizard-step {
  display: none;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
  scroll-margin-top: 16px;
}

.wizard-step.is-active {
  display: block;
  animation: schritt-vor 420ms var(--ease) both;
}

.booking-wizard.is-rewinding .wizard-step.is-active {
  animation-name: schritt-zurueck;
}

@keyframes schritt-vor {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
}

@keyframes schritt-zurueck {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
}

.wizard-step legend {
  margin-bottom: 10px;
  padding: 0;
  font-size: var(--step-head);
  letter-spacing: -0.03em;
  line-height: 1;
}

.wizard-step legend:focus {
  outline: 0;
}

.wizard-intro {
  max-width: 46ch;
  margin-bottom: 28px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gap);
}

.choice-tile,
.choice-row,
.slot-option {
  position: relative;
  cursor: pointer;
  background: var(--paper);
  transition: background-color 180ms ease, color 180ms ease;
}

.choice-tile input,
.choice-row input,
.slot-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-tile {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 22px;
}

.choice-tile__icon {
  display: none;
}

.choice-tile strong {
  font-size: var(--step-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.choice-tile:hover,
.choice-row:hover,
.slot-option:hover {
  background: var(--rosa);
}

.choice-tile.is-selected,
.choice-row.is-selected,
.slot-option.is-selected {
  background: var(--accent);
  color: var(--on-accent);
}

.choice-tile.is-selected small,
.choice-row.is-selected small,
.slot-option.is-selected small,
.slot-option.is-selected em {
  color: var(--on-accent);
}

.choice-tile:has(input:focus-visible),
.choice-row:has(input:focus-visible),
.slot-option:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.choice-list,
.slot-list {
  display: grid;
  gap: var(--gap);
}

.choice-row[hidden],
.slot-item[hidden],
.empty-slots[hidden],
.booking-preset-summary[hidden] {
  display: none;
}

.choice-row,
.slot-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
}

.choice-row > span,
.slot-option__body {
  display: grid;
  flex: 1;
  gap: 3px;
}

.choice-row strong,
.slot-option__body > strong {
  font-weight: 500;
}

.choice-row small,
.slot-option small {
  font-size: var(--step-small);
}

.slot-option__date {
  display: grid;
  width: 56px;
  flex: none;
  justify-items: start;
}

.slot-option__date strong {
  font-size: var(--step-head);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.slot-option__body em {
  color: var(--accent);
  font-size: var(--step-small);
  font-style: normal;
  font-weight: 500;
}

.slot-occurrences {
  background: var(--surface);
}

.slot-occurrences summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 20px;
  cursor: pointer;
  font-size: var(--step-small);
  font-weight: 500;
}

.slot-occurrences summary i {
  display: none;
}

.slot-occurrences ol {
  margin: 0;
  padding: 0 20px 16px 38px;
  font-size: var(--step-small);
}

.empty-slots {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--rosa);
}

.empty-slots i {
  display: none;
}

.empty-slots strong {
  font-size: var(--step-lead);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.empty-slots .btn {
  margin-top: 16px;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--gap);
  margin-top: 28px;
}

.wizard-actions--end {
  justify-content: flex-end;
}

.booking-preset-summary {
  display: grid;
  gap: 2px;
  margin-bottom: 28px;
  padding: 18px 20px;
  background: var(--blau);
}

.booking-preset-summary > span {
  font-size: var(--step-small);
  font-weight: 500;
}

.booking-preset-summary > strong {
  font-size: var(--step-lead);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.booking-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px var(--gap);
}

.booking-fields label,
.form-field {
  display: grid;
  gap: 6px;
  font-weight: 500;
}

.form-field em {
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 400;
}

.booking-fields input:not([type="checkbox"]),
.booking-fields textarea,
.form-field textarea {
  width: 100%;
  border: 2px solid var(--surface);
  border-radius: 0;
  padding: 12px 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  transition: border-color 180ms ease;
}

.booking-fields input:hover,
.booking-fields textarea:hover,
.form-field textarea:hover {
  border-color: var(--ink-soft);
}

.booking-fields input:focus-visible,
.booking-fields textarea:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--accent);
  outline: 0;
}

.booking-fields__wide {
  grid-column: 1 / -1;
}

.consent-check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px !important;
  font-weight: 400 !important;
}

.consent-check input {
  width: 22px;
  height: 22px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.form-errors {
  margin-bottom: 24px;
  color: var(--error);
}

.form-errors ul {
  padding-left: 1.2em;
}

.form-errors.validation-summary-valid {
  display: none;
}

.form-errors:focus {
  outline: 0;
}

.field-validation-valid {
  display: none;
}

.field-validation-error {
  display: block;
  color: var(--error);
  font-weight: 400;
}

.booking-fields .input-validation-error {
  border-color: var(--error);
}

.booking-success__icon {
  display: none;
}

.booking-success h2,
.booking-panel h2 {
  margin-bottom: 20px;
}

.booking-summary {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 20px;
  background: var(--paper);
}

.booking-summary dt {
  font-weight: 500;
}

.booking-summary dd {
  margin: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  margin-top: 20px;
}

.form-hint {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: var(--step-small);
}

/* Rechtstexte: reines Lesen. */
.legal-text {
  max-width: 46ch;
}

.legal-text h2 {
  margin: 48px 0 14px;
  font-size: var(--step-lead);
  letter-spacing: -0.02em;
}

.legal-text h2:first-child {
  margin-top: 0;
}

.legal-text h3 {
  margin: 28px 0 10px;
  font-size: var(--step-body);
  font-weight: 500;
  letter-spacing: 0;
}

.legal-text ul {
  padding-left: 1.2em;
}

.legal-text a {
  overflow-wrap: anywhere;
}

.text-danger {
  color: var(--error);
}

@media (max-width: 860px) {
  .split--aufgabe {
    grid-template-columns: minmax(0, 1fr);
  }

  .practice-gallery {
    display: grid;
    gap: var(--gap);
    margin-top: 32px;
  }

  .practice-photo img {
    width: 100%;
    height: auto;
  }

  .practice-photo figcaption {
    padding-top: 8px;
    font-size: var(--step-small);
  }
}

@media (max-width: 560px) {
  .booking-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .choice-tile {
    min-height: 120px;
  }

  .wizard-actions .btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-step.is-active {
    animation: none;
  }
}
