* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("images/hintergrund.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  overflow: hidden;
}

#screen {
  width: 100vw;
  height: 100vh;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vw;
}

.slide.active {
  display: flex;
}

.event-card {
  width: 90vw;
  height: 78vh;
  display: grid;
  grid-template-columns: 45% 55%;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.event-image {
  background-size: cover;
  background-position: center;
}

.event-content {
  padding: 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.date {
  font-size: 2.2vw;
  margin: 0 0 1vw;
  opacity: 0.85;
}

h1 {
  font-size: 5.8vw;
  line-height: 1;
  margin: 0 0 2vw;
}

.location {
  font-size: 2.4vw;
  margin: 0 0 1.5vw;
}

.description {
  font-size: 2vw;
  line-height: 1.35;
  margin: 0;
  opacity: 0.9;
}

.event-list-card {
  width: 90vw;
  height: 82vh;
  background: rgba(0, 0, 0, 0.68);
  border-radius: 32px;
  padding: 4vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  gap: 2vw;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.kicker {
  font-size: 1.4vw;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.75;
  margin: 0 0 0.5vw;
}

.screen-header h1 {
  font-size: 4vw;
  margin: 0;
}

.event-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5vw;
  flex: 1;
}

.event-list-item {
  display: grid;
  grid-template-columns: 32% 68%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  overflow: hidden;
  min-height: 0;
}

.event-thumb {
  background-size: cover;
  background-position: center;
}

.event-list-content {
  padding: 1.5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-list-content .date {
  font-size: 1.2vw;
  margin: 0 0 0.5vw;
  opacity: 0.8;
}

.event-list-content h2 {
  font-size: 2.2vw;
  line-height: 1.05;
  margin: 0 0 0.7vw;
}

.event-list-content .location {
  font-size: 1.2vw;
  margin: 0 0 0.5vw;
  opacity: 0.9;
}

.event-list-content .description {
  font-size: 1.1vw;
  line-height: 1.25;
  margin: 0;
  opacity: 0.75;
}

.subtitle {
  font-size: 1.15vw;
  line-height: 1.25;
  margin: -0.2vw 0 0.6vw;
  opacity: 0.9;
  font-weight: 600;
}

.service-text {
  font-size: 1.1vw;
  line-height: 1.25;
  margin: 0.4vw 0 0;
  opacity: 0.9;
}

.progress-bars {
  display: grid;
  grid-template-columns: repeat(var(--progress-count, 1), 1fr);
  gap: 0.7vw;
  margin-top: 1.2vw;
  height: 0.45vw;
}

.progress-segment {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
}

.progress-segment.done .progress-fill {
  width: 100%;
}

.progress-segment.active-progress .progress-fill {
  animation: progressFill 15s linear forwards;
}

@keyframes progressFill {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}