* {
  margin: 0;
  padding: 0;
}

/* =============================
 Grundlegende Variablen
 ============================= */
 
:root {
--padding: 1.5rem;
--color-black: #333;
--color-white: #fff;
--color-grey: #777;
--color-light: rgba(231, 231, 231, 0.40);
--color-green: #4CAF50; /* Grasgrün */
--color-green-dark: #45a049; /* Dunkleres Grün */
--color-green-light: #6EDB6E; /* Helleres Grün */
--font-weight-normal: 600;
--font-size-normal: 1.25rem;
--font-size-big: 1.97rem;
--font-size-small: 1rem;
--font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
--font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
--color-background: white;
}

/* =============================
 Grundlegende Stile
 ============================= */

html {
  font-family: var(--font-family-sans);
  color: var(--color-black);
  background: var(--color-background);
}

img {
  width: 100%;
}

body {
  padding: var(--padding);
  max-width: 70rem;
  margin: 0 auto;
  hyphens: auto;
}

li {
  list-style: none;
}

a {
  color: currentColor;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}


strong, b {
  font-weight: var(--font-weight-normal);
}

small {
  font-size: inherit;
  color: var(--color-grey);
}

.bg-light {
  background-color: var(--color-white);
}
.color-grey {
  color: var(--color-grey);
}

.header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-right: -1rem;
  margin-left: -1rem;
  margin-bottom: 6rem;
}

.logo {
  padding: 1rem;
  display: flex;
  align-items: center;
  font-weight: var(--font-weight-normal);
  cursor: pointer;
  font-size: var(--font-size-normal);
}

.logo:hover {
  color: var( --color-green);
}



/* === Grundstil für das Menü === */
/* Standard-Menü */
.menu ul {
  display: flex;
  font-size: 1rem;
  gap: 1rem;
}

.mobile-only {
  display: none;
}

/* Menü-Links */
.menu a {
  padding: 1rem;
  display: block;
  text-decoration: none;
}

/* Hover-Effekt */
.menu a:hover {
  color: #4CAF50;
}

/* Aktive Seite */
.menu a[aria-current] {
  text-decoration: underline;
  font-weight: 600;
  color: #4CAF50;
}

/* Hamburger-Button (nur sichtbar unter 768px) */
.toggle-menu {
  display: none;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 100;
  background: none;
  border: none;
  width: 30px;
  height: 30px; /* Höhe auf max. 30px begrenzt */
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
}

/* Hamburger-Linien */
.toggle-menu div {
  width: 100%;
  height: 4px;
  background: #333;
  transition: 0.3s;
}

/* Mobile Menü */
@media (max-width: 768px) {
  /* Hamburger-Button sichtbar */
  .toggle-menu {
    display: flex;
  }
  
  .mobile-only {
    display: block;
  }

  .menu ul {
    display: block;
  }
  
  .menu a[aria-current] {
      text-decoration: none;
      font-weight: 600;
      color: white;
      background-color: var(--color-green);
      padding: 0.75rem 1rem 0.75rem 1rem;
  }


  /* Menü standardmäßig versteckt */
  .menu {
    flex-direction: column;
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    width: 200px;
    display: none;
    padding: 0;
  }

  /* Menüeinträge mit fester Höhe */
  .menu a {
    height: 30px;
    line-height: 30px;
      padding: 0.75rem 1rem 0.75rem 1rem;
    display: block;
    border-bottom: 1px solid var(--color-green);
    margin: 0px;
  }

  /* Menü anzeigen, wenn aktiv */
    .menu.active {
      display: flex; /* Verwende flex, um das Layout korrekt anzuzeigen */
      flex-direction: column;
      position: absolute;
      top: 50px;
      right: 0;
      background: white;
      width: 200px;
      padding: 0;
      z-index: 9999; /* Höchste Priorität, damit es über allem liegt */
    }
  
  .menu a:hover {
    color: white;
    background-color: var(--color-green);
    padding: 0.75rem 1rem 0.75rem 1rem;


  }
}


.section {
  padding: 3rem 0;
}

.grid {
  --columns: 12;
  --gutter: 3rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
}

.grid > .column {
  
}

.autogrid {
  --gutter: 3rem;
  --min: 10rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}

.three-column-section {
  margin-bottom: 3.5rem!important;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

h1 {
  font-size: var(--font-size-big);
  font-weight: var(--font-weight-normal);
}

.text {
  line-height: 1.5em;
  max-width: 100%; /* Verhindert zu große Boxen */
  width: auto;
}


.text a {
  border-bottom: 1px dashed var(--color-black);
}

.text a:hover {
  color: var(--color-green);
  border-bottom: 1px dashed var(--color-green);
}

@media (max-width: 600px) {
  .text a {
    word-break: break-word; /* Alternative: break-all */
    overflow-wrap: break-word;
    display: inline-block; /* Optional, verhindert übermäßige Weitenveränderung */
  }
}


.text :first-child {
  margin-top: 0;
}

.text :last-child {
  margin-bottom: 0;
}

.text p,
.text ul,
.text ol {
  margin-bottom: 1.5rem;
}

.text ul,
.text ol {
margin-left: 1rem;
}

.text ul p,
.text ol p {
  margin-bottom: 0;
}

.text ul > li {
  list-style: disc;
}

.text ol > li {
  list-style: decimal;
}

.text ul ol,
.text ul ul,
.text ol ul,
.text ol ol {
  margin-bottom: 0;
}

.text h1,
.h1,
.intro {
  font-size: var(--font-size-big);
  margin-bottom: 3rem;
  line-height: 1.25em;
  font-weight: var(--font-weight-normal);
}

.text h2,
.h2 {
  font-size: var(--font-size-normal);
  font-weight: var(--font-weight-normal);
  margin-bottom: 1rem;
}

.text h3,
.h3 {
  font-weight: var(--font-weight-normal);
  color: var(--color-green);
}

.text hr {
  margin: 6rem 0;
}

.text blockquote {
  font-size: var(--font-size-normal);
  line-height: 1.325em;
  border-left: 2px solid var(--color-black);
  padding-left: 1rem;
  margin: 3rem 0;
  max-width: 25rem;
}

.text blockquote footer {
  font-size: .875rem;
  font-style: italic;
}

.text figure {
  margin: 0rem 0;
}

.text figcaption {
}

.text figure ul {
  line-height: 0;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.text figure ul li {
  list-style: none;
}

hr {
  border: 0;
  background: currentColor;
  height: 2px;
  width: 1.5rem;
  margin: 3rem auto;
}

.align-center {
  text-align: center;
}

.intro {
  max-width: 40rem;
}
.intro *:not(:last-child) {
  margin-bottom: 1em;
}



figure {
  position: relative;
  display: inline-block;
  width: 100%;
}

figcaption {
  position: absolute;
  bottom: 3px;
  left: 0;
  width: auto;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  padding: 8px;
  font-size: var(--font-size-small);
  text-align: left;
}

figure a {
  border-bottom: none!important;
}

.text figure figcaption {
  bottom: 6px;
}

.video,
.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
}

.img img,
.video iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.img[data-contain] img {
  object-fit: contain;
}

.img-caption,
.video-caption {
  padding-top: .75rem;
  line-height: 1.5em;
}

.text .border {
    padding: 25px;
    margin: 10px 0px 10px 0px;
    max-width: 100%; /* Verhindert zu große Boxen */
    width: auto;
}

.text .border.border-gray-500 {
  color: var(--color-grey);
  border: 1px solid var(--color-grey);
  
}

.border.border-green-500 {
  color: var(--color-green);
  border: 1px solid var(--color-green);
}

.btn {
    display: inline-flex;
    font-weight: 300;
    color: var(--color-black);
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    border-radius: 1px;
    font-size: 0.9rem;
    line-height: 1.25;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    text-decoration: none;
    margin: 10px 0px 10px 0px;
}

.text .btn, .text .btn-primary {
  margin: 10px 0px 10px 0px!important;
}

/* Primär-Button in freundlichem Grasgrün */
.btn-primary, .text .btn-primary {
    color: #fff;
    background-color: var(--color-green); 
    border-color: var(--color-green);
}

.btn-primary::before,
.text .btn-primary::before {
    content: "› ";
    font-weight: 400;
    line-height: 1rem;
    margin-right:5px;
}

.btn-primary:hover {
    background-color: var(--color-green-dark);
    border-color: var(--color-green-dark);
    color: white!important;
}

/* Download-Button mit hellem Grün */
.btn-download {
    background-color: var(--color-green-light);
    border-color: var(--color-green-light);   
}

/* Icon vor dem Link */
.btn-download::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  background-image: url('/assets/icons/download.png');
  background-size: contain;
  background-repeat: no-repeat;
  margin: 0px 10px 0px -4px;
  background-position: 0px 2px;
  padding: 0px;
}

/* Hover-Effekt: Normales Grün */
.btn-download:hover {
    background-color: var(--color-green);
    border-color: var(--color-green);
}

.filelist {
  margin-top: 20px;
  font-family: var(--font-family-sans);
}

.filelist-title {
  font-size: var(--font-size-normal);
  font-weight: bold;
  margin-bottom: 10px;
}

.text ul.filelist-container {
  display: flex;
  flex-direction: column;
  margin: 0rem 0rem 1rem 0rem;
}

.filelist-item {
  display: flex;
  align-items: center;
  height: 33px;
  border-bottom: 1px solid rgb(236, 236, 236);
  padding: 5px 10px;
  transition: background-color 0.2s ease-in-out;
  list-style: none;
}

.filelist-item:last-child {
  border-bottom: none;
}

.filelist-item:hover {
  background-color: var(--color-light);
}

.filelist a {
  text-decoration: none;
  color: var(--color-black);
  display: flex;
  align-items: center;
  width: 100%;
  padding: 5px;
  border-bottom: none;
  font-weight: 400;
}

.filelist a:hover {
  border-bottom: none;
  color: var(--color-black);
}
.filelist-icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  background-image: url('/assets/icons/download.png');
  background-size: cover;
  background-position: center;
  margin-right: 10px;
  flex-shrink: 0;
}

.filelist-name {
  flex-grow: 1;
}

.filelist-meta {
  font-size: 14px;
  color: var(--color-grey);
  margin-left: 10px;
  white-space: nowrap;
}



/* termine */

/* Stile für die Events-Liste */
ul.events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.events-list h2 {
    font-size: var(--font-size-normal);
    line-height: 1.55rem;
    margin: 0px 0px 5px 0px;
    font-weight: var(--font-weight-normal);
}

ul.events-list li {
    list-style: none;
}

/* Einzelner Event-Container */
.event-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 10px 15px 10px;
    border-bottom: 1px solid var(--color-light);
    transition: background-color 0.3s ease;
}

.event-item:hover {
    background-color: var(--color-light);
}

.event-item.past-event:hover {
    background-color: transparent !important;
    pointer-events: none;
}



/* Datum linksbündig anzeigen */
.event-date-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    min-width: 50px;
    margin-right: 19px;
    text-align: center;
}

.event-day {
    font-size: var(--font-size-normal);
    font-weight: bold;
    line-height: 1;
}

.event-month {
    font-size: 16px;
    text-transform: uppercase;
    line-height: 1.2;
    font-weight: var(--font-weight-normal);
}

.event-year {
    font-size: 14px;
    color: var(--color-grey);
    line-height: 1;
}

/* Event-Inhalt */
.event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Überschrift */
.event-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Beschreibung */
.event-description {
    font-size: 16px;
    color: var(--color-black);
    margin-bottom: 8px;
}

.event-description p {
  line-height: 1.35rem!important;

}

/* Ort und Uhrzeit in einer Zeile */
.event-meta {
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--color-black);
    gap: 15px;
}

/* Falls Bilder vorhanden sind */
.event-image {
    margin-top: 10px;
}

.event-image img {
    max-width: 100%;
    height: auto;
    border-radius: 1px;
}


/* Upcoming Events */
.upcoming-events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upcoming-event-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-grey);
    transition: background-color 0.3s ease;
}

.upcoming-event-item:hover {
    background-color: var(--color-light);
}

/* Container für Events nach Monaten */
.events-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.events-year {
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 1rem;
    background: none;
}

.events-year.is-current-year {
    border: none;
}

.events-year summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.events-year summary::-webkit-details-marker {
    display: none;
}

.events-year-title {
    font-size: 1.4rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-black);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0 0.25rem;
}

.events-year-notes {
    margin: 0.75rem 0 1.75rem 1.5rem;
    color: var(--color-grey);
    font-size: var(--font-size-small);
    max-width: 48ch;
}

.events-year-title::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent var(--color-black);
    transition: transform 0.3s ease;
}

.events-year[open] .events-year-title::before {
    transform: rotate(90deg);
}

.events-year.is-past-year .events-year-title,
.events-year.is-past-year .events-year-label {
    color: var(--color-grey);
    opacity: 0.65;
}

.events-year.is-past-year .events-year-title::before {
    border-color: transparent transparent transparent rgba(119, 119, 119, 0.65);
}

.events-year-label {
    font-size: 1.6rem;
    font-weight: var(--font-weight-normal);
    margin: 0;
}

.events-year-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 48px;
    margin-top: 24px;
    padding-left: 1.5rem;
}

/* Gruppenweise Darstellung nach Monaten */
.events-month-group {
    flex: 1;
    min-width: 300px;
    max-width: 32%; /* Standard: 3 Spalten */
    margin-bottom: 20px;
}

.highlight-month {
    color: var(--color-green);
    border: 1px solid var(--color-green);
    padding: 15px 15px 5px 15px;
    margin: -15px 0px 0px -15px;
}

.highlight-month .event-item {
    border-bottom: 1px solid transparent;

}

/* Monatsüberschrift */
.events-month-title {
    font-size: var(--font-size-normal);
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 5px;
}

.events-month-title.past-event{
  color: var(--color-grey)!important;
  opacity: 0.65!important;
}

.past-event .event-title,
.past-event .event-description,
.past-event .event-date-wrapper,
.past-event .event-meta {
  
    color: var(--color-grey);
    opacity: 0.65;
}


/* Responsive Anpassungen */
@media (max-width: 1024px) {
    .events-year-content {
        justify-content: flex-start;
        gap: 32px;
        padding-left: 1rem;
    }

    .events-month-group {
        max-width: 48%; /* 2 Spalten bei mittelgroßen Screens */
    }
}

@media (max-width: 768px) {
    .events-month-group {
        max-width: 100%; /* 1 Spalte auf kleineren Geräten */
    }

    .events-year-content {
        padding-left: 0;
        gap: 28px;
    }
}


.footer {
  padding: 0rem 0 1.5rem;
  line-height: 1.5em;
}
.footer:before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--color-black);
  margin-bottom: 1.5rem;
}

.footer h2 {
  font-weight: var(--font-weight-normal);
  margin-bottom: .75rem;
}
.footer ul,
.footer p {
  color: var(--color-grey);
}
.footer p {
  
}
.footer a:hover {
  color: var(--color-black);
}


.map {
  --w: 2;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}
.map iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.margin-s {
  margin-bottom: .75rem;
}
.margin-m {
  margin-bottom: 1.5rem;
}
.margin-l {
  margin-bottom: 1.5rem;
}
.margin-xl {
  margin-bottom: 2.5rem;
}
.margin-xxl {
  margin-bottom: 2.5rem;
}


@media screen and (min-width: 60rem) {
  body {
    --padding: 3rem;
  }

  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .grid > .column {
    grid-column: span var(--columns);
  }

}



