.terminbuchung-content {
  margin-top: 0;
}

.terminbuchung-content__lead {
  margin: 0 0 var(--space-md);
  line-height: 1.65;
  color: var(--color-text);
}

.terminbuchung-toolbar {
  display: flex;
  justify-content: center;
  margin: 0 0 var(--space-md);
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--color-parchment) 0%, #fff 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.terminbuchung-toolbar__btn {
  min-width: 20rem;
  padding: 0.65rem 1.5rem;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
}

/* Prose-Zebra-Streifen auf Termin-Kalender deaktivieren */
.prose .terminbuchung-table tbody tr:nth-child(odd),
.prose .terminbuchung-table tbody tr:nth-child(even) {
  background: transparent;
}

table.minimalistBlack.terminbuchung-table {
  table-layout: fixed;
  width: 100%;
  border: none;
}

.terminbuchung-table th,
.terminbuchung-table td {
  border-left: none;
  border-right: none;
  border-top: none;
  padding: 0.6rem 0.5rem;
  vertical-align: middle;
}

.terminbuchung-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

.terminbuchung-table tbody tr:last-child {
  border-bottom: none;
}

.terminbuchung-table .datum {
  width: auto;
  text-align: left;
  font-size: 0.95rem;
  color: var(--color-navy);
}

.terminbuchung-datum__note {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.terminbuchung-table .buchen {
  width: 12.5rem;
  text-align: right;
}

.terminbuchung-table td.buchen {
  overflow: hidden;
}

.terminbuchung-table tbody tr.termin-row--weekend {
  background: var(--color-parchment, #F9F5F2);
}

.terminbuchung-table tbody tr.termin-row--feiertag {
  background: var(--color-alabaster, #E8E4E0);
}

.prose .terminbuchung-table tbody tr.termin-row--weekend {
  background: var(--color-parchment, #F9F5F2);
}

.prose .terminbuchung-table tbody tr.termin-row--feiertag {
  background: var(--color-alabaster, #E8E4E0);
}

.btn-termin-buchen {
  display: inline-block;
  width: 100%;
  max-width: 12.5rem;
  min-width: 0;
  box-sizing: border-box;
  white-space: nowrap;
}

.btn-termin-buchen--stacked {
  white-space: normal;
  line-height: 1.25;
  padding: 0.45rem 0.65rem;
}

.btn-termin-buchen__label {
  display: block;
  white-space: nowrap;
}

.btn-termin-buchen__label-short {
  display: none;
}

.btn-termin-buchen__aufschlag {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
}

@keyframes termin-row-in {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes termin-row-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-0.4rem);
  }
}

.termin-row.termin-row--animate-in {
  animation: termin-row-in 0.35s ease both;
}

.termin-row.termin-row--animate-out {
  animation: termin-row-out 0.3s ease both;
  pointer-events: none;
}

.terminbuchung-table tbody tr.termin-row--extended-off {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .termin-row.termin-row--animate-in,
  .termin-row.termin-row--animate-out {
    animation: none;
  }
}

.terminbuchung-load-more {
  margin: var(--space-md) 0 0;
  text-align: center;
}

.terminbuchung-load-more__btn {
  min-width: 14rem;
}

.notfall-modal__icon-wrap {
  float: right;
  margin: 0 0 1rem 1.25rem;
}

.notfall-modal__phone {
  margin: 1rem 0 0;
  font-weight: 600;
}

.notfall-modal__phone a {
  color: var(--color-navy);
  text-decoration: none;
}

.notfall-modal__phone a:hover {
  color: var(--color-accent);
}

/* Smartphone: schmalere Buchen-Spalte, damit das Datum nicht umbricht */
@media (max-width: 575.98px) {
  .terminbuchung-table th,
  .terminbuchung-table td {
    padding: 0.55rem 0.35rem;
  }

  .terminbuchung-table .datum {
    font-size: 0.9rem;
  }

  .terminbuchung-table .buchen {
    width: 6.5rem;
  }

  .btn-termin-buchen {
    max-width: 6.5rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
  }

  .btn-termin-buchen__label-long {
    display: none;
  }

  .btn-termin-buchen__label-short {
    display: inline;
  }

  .btn-termin-buchen--stacked {
    padding: 0.4rem 0.5rem;
  }

  .btn-termin-buchen__aufschlag {
    font-size: 0.66rem;
  }

  .terminbuchung-toolbar {
    padding: 0.75rem;
  }

  .terminbuchung-toolbar__btn {
    min-width: 0;
    width: 100%;
    font-size: 0.9rem;
    white-space: normal;
    line-height: 1.3;
  }
}
