:root { --container: 1200px; }

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, Arial, sans-serif;
  background-image: url('../images/olfe3back_schmal_neu.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem;
}

.prog-image img,
td img[width="220"],
img.prog-image {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ========== Navigation Desktop ========== */
.prog-nav a {
  display: block;
  padding: .5rem .75rem;
  color: DarkSlateGrey;
  text-decoration: none;
  margin-top: 1rem;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== Navigation Mobil ========== */
.prog-nav-mobile {
  display: none;
}

.prog-nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.prog-nav-mobile li {
  display: inline-block;
  margin: 0 0.25rem 0.25rem 0;
}

.prog-nav-mobile a {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: bold;
  color: DimGray;
  text-decoration: none;
}

/* ========== Media Queries ========== */
@media (min-width: 769px) {
  .prog-nav {
    display: block;
  }
  .prog-nav-mobile {
    display: none;
  }
}

@media (max-width: 640px) {
  .prog-nav {
    display: none;
  }

  .prog-nav-mobile {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0 0.75rem 0;
  }
}

.logo-wrapper {
  text-align: left;
  padding-left: 1rem;
}

.logo-img {
  margin-top: 3.125rem; /* = 50px */
  max-width: 100%;
  height: auto;
}

.geweih-block {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 1.5rem;
  max-width: 800px;
}

.geweih-img {
    width: 120px;
    flex-shrink: 0;
}

.geweih-text {
  flex: 1;
  font-size: 1rem;
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .geweih-block {
    flex-direction: column;
    text-align: left;
  }

  .geweih-img {
    margin: 0 auto;
  }

  .geweih-text {
    text-align: left;
    padding: 0 0.75rem;
  }
}

/* Einzelner Eventblock */
.event-block {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ccc;
}

/* Zeile 1: Datum + Titel */
.event-row-1 {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.event-time {
  width: 220px;
  font-weight: bold;
  white-space: nowrap;
}

.event-title {
  flex: 1;
  font-weight: bold;
  text-align: left;
}

/* Zeile 2: Bild + Beschreibung */
.event-row-2 {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.event-image {
  width: 220px;
  flex-shrink: 0;
  text-align: center;
}

.event-image img {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.event-description {
  flex: 1;
  min-width: 200px;
  text-align: left;
}

@media (max-width: 768px) {
  .event-row-1,
  .event-row-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .event-time {
    text-align: left;
    margin-bottom: 0.25rem;
  }

  .event-title {
    text-align: left;
    font-weight: bold;
    margin-bottom: 0.75rem;
  }

  .event-description {
    text-align: left;
    padding: 0 1rem;
  }

  .event-image {
    text-align: center;
    width: 100%;
    margin-bottom: 1rem;
  }

  .event-image img {
    display: block;
    margin: 0 auto;
    width: 220px;
    height: auto;
  }
}




