.sb-termine-wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.sb-termine-hero {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: #18343b;
  color: #fff;
}

.sb-termine-hero h1,
.sb-termine-single h1 {
  margin: .2rem 0 .8rem;
  font-family: "FG Oswald", sans-serif;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 1;
  text-transform: uppercase;
}

.sb-termine-hero p:last-child {
  max-width: 44rem;
  margin: 0;
  color: #dce9ec;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.sb-termine-eyebrow {
  margin: 0;
  color: #f5a623;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sb-termine-content {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.sb-termine-content h2 {
  margin: 0 0 1.4rem;
  font-family: "FG Oswald", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.sb-termine-search {
  margin: 0 0 1.25rem;
  padding: 1.2rem;
  border: 1px solid #d7e1e2;
  border-radius: 5px;
  background: #f1f5f5;
}

.sb-termine-search label {
  display: block;
  margin-bottom: .5rem;
  font-weight: 700;
}

.sb-termine-search div {
  display: flex;
  gap: .6rem;
}

.sb-termine-search input {
  min-width: 0;
  flex: 1;
  padding: .75rem;
  border: 1px solid #aebfc2;
  border-radius: 3px;
  font: inherit;
}

.sb-termine-search button,
.sb-termine-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.1rem;
  border: 0;
  border-radius: 3px;
  background: #f5a623;
  color: #172e34;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.sb-termine-icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
}

.sb-termine-filters {
  margin: 0 0 2.75rem;
}

.sb-termine-filters__label {
  margin: 0 0 .65rem;
  color: #314b51;
  font-weight: 700;
}

.sb-termine-filters__list {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.sb-termine-filter {
  --sb-termin-category-bg: #18343b;
  --sb-termin-category-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 2.65rem;
  padding: .58rem .85rem;
  border: 2px solid var(--sb-termin-category-bg);
  border-radius: 999px;
  background: #fff;
  color: #18343b;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.sb-termine-filter .sb-termine-icon {
  color: var(--sb-termin-category-bg);
}

.sb-termine-filter.is-active {
  background: var(--sb-termin-category-bg);
  color: var(--sb-termin-category-fg);
}

.sb-termine-filter.is-active .sb-termine-icon {
  color: inherit;
}

.sb-termine-list {
  display: grid;
  gap: 1rem;
}

.sb-termine-card {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.3rem;
  padding: 1.25rem;
  border: 1px solid #d7e1e2;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 48, 55, .07);
}

.sb-termine-card__date {
  display: flex;
  min-height: 6.3rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--sb-termin-category-bg, #18343b);
  color: var(--sb-termin-category-fg, #fff);
  line-height: 1;
  text-align: center;
}

.sb-termine-card__icon {
  width: 1.15rem;
  height: 1.15rem;
  margin-bottom: .32rem;
}

.sb-termine-card__date > span {
  font-family: "FG Oswald", sans-serif;
  font-size: 2rem;
}

.sb-termine-card__date strong {
  margin: .25rem 0;
  color: inherit;
  text-transform: uppercase;
}

.sb-termine-card__date small {
  font-size: .75rem;
}

.sb-termine-card__labels {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  min-height: 1.45rem;
  margin: 0 0 .35rem;
}

.sb-termine-category-label,
.sb-termine-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .24rem .5rem;
  border-radius: 3px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.25;
  text-transform: uppercase;
}

.sb-termine-category-label {
  background: #edf2f2;
  color: #304b51;
}

.sb-termine-status--changed {
  background: #f3e2b3;
  color: #463719;
}

.sb-termine-status--postponed {
  background: #e1d8c7;
  color: #3d3528;
}

.sb-termine-status--cancelled {
  background: #7a3636;
  color: #fff;
}

.sb-termine-card h3 {
  margin: 0 0 .3rem;
  font-size: 1.45rem;
}

.sb-termine-card h3 a {
  color: #18343b;
  text-decoration: none;
}

.sb-termine-card__body > p:not(.sb-termine-card__meta) {
  margin: .65rem 0;
}

.sb-termine-card__excerpt {
  text-align: justify;
  text-justify: inter-word;
}

.sb-termine-card__meta {
  margin: 0;
  color: #52676b;
  font-weight: 600;
}

.sb-termine-link {
  color: #9a5c00;
  font-weight: 700;
}

.sb-termine-empty {
  padding: 1.2rem;
  border-left: 4px solid #f5a623;
  background: #f7f9f9;
}

.sb-termine-past {
  margin-top: clamp(3rem, 7vw, 5rem);
}

.sb-termine-past .sb-termine-card {
  opacity: .88;
}

.sb-termine-single {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.sb-termine-single header {
  max-width: 58rem;
  margin-bottom: 2.5rem;
}

.sb-termine-single h1 {
  color: #18343b;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  text-transform: none;
}

.sb-termine-single__category {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  margin-bottom: .75rem;
  padding: .42rem .62rem;
  border-radius: 3px;
  background: var(--sb-termin-category-bg, #18343b);
  color: var(--sb-termin-category-fg, #fff);
  letter-spacing: .08em;
}

.sb-termine-back {
  margin: 0 0 2rem;
}

.sb-termine-back a {
  color: #9a5c00;
  font-weight: 700;
}

.sb-termine-single__date {
  font-size: 1.1rem;
  font-weight: 700;
}

.sb-termine-single__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.sb-termine-single__content {
  font-size: 1.05rem;
  line-height: 1.75;
}

.sb-termine-single__content :where(p, li, blockquote) {
  text-align: justify;
  text-justify: inter-word;
}

.sb-termine-single__content figure {
  margin: 0 0 2rem;
}

.sb-termine-single__content img,
.sb-termine-single__image img {
  display: block;
  width: 100%;
  height: auto;
}

.sb-termine-single__image {
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
}

.sb-termine-facts {
  padding: 1.4rem;
  border-top: 4px solid #f5a623;
  background: #f1f5f5;
}

.sb-termine-facts h2 {
  margin-top: 0;
}

.sb-termine-facts dt {
  margin-top: 1rem;
  font-weight: 700;
}

.sb-termine-facts dd {
  margin: .2rem 0 0;
}

.sb-termine-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
  margin-top: 1.25rem;
}

.sb-termine-actions .sb-termine-button {
  width: 100%;
  min-height: 3rem;
  box-sizing: border-box;
  text-align: center;
}

.sb-termine-card a:focus-visible,
.sb-termine-search input:focus-visible,
.sb-termine-search button:focus-visible,
.sb-termine-button:focus-visible,
.sb-termine-link:focus-visible,
.sb-termine-filter:focus-visible {
  outline: 3px solid #18343b;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .sb-termine-wrap {
    width: min(100% - 1.5rem, 1120px);
  }

  .sb-termine-hero {
    padding-block: 3.5rem;
  }

  .sb-termine-search div {
    align-items: stretch;
    flex-direction: column;
  }

  .sb-termine-filters__list {
    flex-wrap: nowrap;
    padding: .2rem .2rem .65rem;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .sb-termine-filter {
    flex: 0 0 auto;
  }

  .sb-termine-card {
    grid-template-columns: 4.4rem 1fr;
    gap: .9rem;
    padding: .9rem;
  }

  .sb-termine-card__date {
    min-height: 5.8rem;
  }

  .sb-termine-card h3 {
    font-size: 1.2rem;
  }

  .sb-termine-single__grid {
    grid-template-columns: 1fr;
  }
}
