/* SHV-App – Ergänzungen für Terminwochen */
.container-wide {
  max-width: 1500px;
}

.week-heading {
  margin: 1.5rem 0 .75rem;
  font-size: 1rem;
  color: #b91c1c;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
  padding-bottom: .3rem;
}

.week-events {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: .75rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scroll-snap-type: x proximity;
}

@media (min-width: 900px) {
  .week-events {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    overflow-x: visible;
    gap: 1rem;
  }

  .event-card {
    min-height: 100%;
  }
}

.event-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .1);
  border-left: 4px solid #b91c1c;
  border-radius: .5rem;
  padding: .75rem;
  scroll-snap-align: start;
}

.event-card.is-cancelled {
  border-left-color: #111;
  opacity: .8;
}

.event-card h4 {
  margin: 0 0 .25rem;
  font-size: 1rem;
}

.event-card h4 a {
  color: inherit;
  text-decoration: none;
}

.event-card h4 a:hover,
.event-card h4 a:focus {
  text-decoration: underline;
}

.event-meta {
  font-size: .85rem;
  color: #444;
  margin: .15rem 0;
}

.response-status {
  font-size: .85rem;
  margin-top: .35rem;
}

.response-form {
  margin-top: .35rem;
}

.response-reason {
  width: 100%;
  max-width: 260px;
  font-size: .85rem;
  padding: .35rem .45rem;
  margin-bottom: .35rem;
}

.response-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.response-buttons .btn {
  padding: .35rem .6rem;
  font-size: .85rem;
}

.response-buttons .btn.is-active {
  background: #b91c1c;
  color: #fff;
  border-color: #b91c1c;
}

.response-buttons .btn.is-active.btn-ghost {
  background: #b91c1c;
  color: #fff;
}

.response-message {
  font-size: .85rem;
  margin-top: .3rem;
}
