:root{
	--r-highlight-color: #4ade80;
	--r-background-color: #1e323d;
	--r-date-color: #44CB76;
	
}

.event-wrapper{
	display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.header-container {
  display: flex;
  justify-content: center;
  padding: 0 20px;
}


.section-title {
  color: white;
  text-align: center;
  /* border-bottom: 2px solid var(--r-highlight); */
  display: inline-block;
  margin: 0;
  padding-bottom: 8px;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}


#border-top {
  margin-top: 100px;
}

#border-bottom {
  margin-bottom: 100px;
}

#border-top,
#border-bottom {
  border: 1px solid #ccc;
  width: min(92%, 1200px);
}

.event-container{
	display: flex;
	flex-direction: column;
	width: min(92%, 1200px);
}

* {
  box-sizing: border-box;
}

body{
	background: #16242c;
	color: white;
}


.event-wrapper {
  width: 100%;
  padding: 40px 20px;
}

.event-container {
  width: min(1200px, 100%);
  margin: 0 auto;

  /* Hier passiert das automatische Nebeneinander / Umbruch nach unten */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
  color: white;
}

.event-item {
  background: var(--r-background-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);

  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.event-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ddd;
}

.event-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.event-date,
.event-header,
.event-text,
.event-link-container {
  padding-left: 18px;
  padding-right: 18px;
}

.event-date {
  padding-top: 16px;
}

.event-date p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--r-date-color);
}

.event-header {
  padding-top: 8px;
}

.event-header h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
}

.event-text {
  padding-top: 12px;
  padding-bottom: 18px;
  flex-grow: 1;
}

.event-text p {
  margin: 0;
  line-height: 1.6;
  color: white;
}

.event-link-container {
  padding-bottom: 18px;
}

.event-link {
  display: inline-block;
  text-decoration: none;
  background: var(--r-highlight-color);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.2s ease;
}

.event-link:hover {
  background: #B2B2B2;
}

/* Optional: auf sehr kleinen Geräten etwas weniger Padding */
@media (max-width: 480px) {
  .event-wrapper {
    padding: 24px 14px;
  }

  .event-container {
    gap: 18px;
  }
}

.events-header{
	font-size: 2em;
	display: flex;
	text-align: center;
	justify-content: center;
	color: white;
	
}

