/* Grundlegendes Reset und Schriftart */
body {
  font-family: "GT-Eesti-Display-Regular", "Arial" !important;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
}

/* 1. Waagrechte Navigationsleiste */
.main-nav {
  display: flex;
  justify-content: space-around;
  background-color: #333;
  padding: 10px 0;
}

.main-nav a {
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  transition: background-color 0.3s;
}

.main-nav a:hover {
  background-color: #555;
}

/* Container für die Suchbox */
.search-container {
  padding: 20px;
  max-width: 840px;
}

/* 2. Suchbox-Styling */
.search-box,
.result-courses {
  background-color: white;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

/* Allgemeine Gruppen-Styles */
.checkbox-group,
.radio-group {
  margin-bottom: 15px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* Erlaubt Umbruch bei wenig Platz */
}

.search-field-group {
  margin-bottom: 15px;
}

.search-field-group input[type="text"] {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 3px;
}

/* 3. Dropdowns (Flexible Platzierung mit Grid/Flex) */
.dropdown-group {
  /* display: flex; */
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap; /* Wichtiger Punkt: Erlaubt den Umbruch bei wenig Platz */
}

.dropdown-group select {
  flex: 1 1 200px; /* Jedes Dropdown nimmt mindestens 200px Platz ein, dehnt sich aber aus */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

/* 4. Favoriten-Buttons (mit Grid für 3 Spalten, wenn Platz) */
.favorites-buttons {
  display: flex;
  justify-content: space-around;
}

/* Button-Basis-Styles */
button {
  padding: 10px 15px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.2s;
}

button:hover {
  opacity: 0.9;
}

/* Rot/Weiss-Buttons */
.btn-red {
  background-color: red;
  color: white;
}

.btn-black {
  background-color: black;
  color: white;
}

/* 5. Schieberegler und Such-Buttons (Flexible Platzierung) */
.filter-action-group {
  display: flex;
  gap: 15px;
  align-items: flex-end; /* Buttons unten ausrichten */
  flex-wrap: wrap;
}

.slider-group {
  flex: 1 1 150px; /* Nimmt mind. 150px ein, dehnt sich */
  display: flex;
  flex-direction: column;
}

.slider-group input[type="range"] {
  width: 100%;
}

.btn-search,
.btn-reset {
  /* Feste Größe für Buttons, damit sie nicht zu klein werden */
  flex-basis: 120px;
  /* height: 40px; Gleiche Höhe wie Schieberegler + Label */
}

/* 6. Spezial-Buttons (mit Grid für flexible Spaltenanzahl) */
.special-buttons-container {
  padding: 20px;
  display: grid;
  /* 1 bis 6 Spalten, je nach Bildschirmbreite */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.btn-special {
  border: 1px solid #555; /* Dunkelgrauer Rahmen */
  font-size: 1.2em; /* Grosse Schrift */
  padding: 15px;
  height: auto;
}

/* 7. Styles für die 2-spaltige Element-Liste */
.element-list-container {
  padding: 20px;
}

.list-item {
  display: grid;
  /* 2 Spalten: Links nimmt 2 Teile, Rechts 1 Teil der Breite */
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  padding: 15px;
  border-bottom: 1px solid #ddd;
  background-color: white;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.list-item:last-child {
  border-bottom: none; /* Kein Trennstrich beim letzten Element */
}

/* Linke Spalte */
.list-item-left h3 {
  margin: 0 0 5px 0;
  color: #333;
  word-break: break-word;
}

.list-item-left .online-status {
  font-size: 1em;
  margin-bottom: 10px;
}

.list-item-left .meta-info {
  font-size: 0.9em;
  color: #666;
  /* Datum und Name in einer Zeile */
  display: flex;
  gap: 15px;
}

/* Rechte Spalte */
.list-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Elemente rechtsbündig ausrichten */
  justify-content: space-between; /* Icons oben, Button unten */
}

.list-item-right .icons {
  display: flex;
  gap: 10px;
  font-size: 1.5em; /* Icons etwas größer darstellen */
  margin-bottom: 10px;
}

.list-item-right .icon {
  cursor: pointer;
}

.list-item-right .heart-icon {
  font-size: 35px;
  font-weight: bold;
  line-height: 1;
  display: inline-block;
  width: 35px;
  text-align: center;
}
.print_only{display:none;}
/* Button "AUSGEBUCHT" */
.btn-status {
  padding: 8px 15px;
  font-weight: bold;
  border-radius: 20px; /* Runde Ecken */
}

.btn-status.sold-out {
  background-color: black;
  color: white;
}

/* 5. Schieberegler und Such-Buttons (Flexible Platzierung) */
.filter-action-group {
  display: flex;
  gap: 15px;
  align-items: flex-end; /* Buttons unten ausrichten */
  flex-wrap: wrap; /* Erlaubt den Zeilenumbruch */
}

/* Neuer Wrapper für die beiden Slider */
.slider-wrapper {
  display: flex;
  gap: 15px;
  /* Sehr wichtig: Nimmt mindestens 300px ein und dehnt sich aus, 
       bricht aber nicht um (damit die Slider zusammenbleiben) */
  flex: 1 1 300px;
}

.slider-group {
  /* Wichtig: Jeder Slider nimmt nun die Hälfte des Wrappers ein */
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
}

.slider-group input[type="range"] {
  width: 100%;
}
.course-content{word-break: break-word;}
.course_date {
  min-width: fit-content;
}
.favs {
  background-color: #f9e6e6;
}
.favorites-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.btn-fav {
  margin-left: 1rem;
}
h4 {
  padding-top: 8px;
}

@media (min-width: 1200px) {
    .h3, h3 {
        font-size: 1.5rem;
    }
}


/* Anpassung für kleinere Bildschirme (Responsivität) */
@media (max-width: 600px) {
  .list-item {
    /* Bei kleinen Geräten wird es 1-spaltig */
    grid-template-columns: 1fr;
  }
  h3 {
    word-break: break-word;
    font-size: calc(0.9rem + 0.6vw);
  }
  .element-list-container {
    padding: 0px;
  }
  .btn-fav {
    padding: 3px;
  }

  .list-item-right {
    /* Buttons und Icons sind nun nebeneinander */
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
  }

  /* 2. Icons in der linken Spalte anzeigen und positionieren 
    */
  .list-item-left {
    position: relative; /* Wichtig für die absolute Positionierung der Icons */
  }

  .list-item-left .meta-info {
    margin-top: 5px; /* Etwas Abstand nach unten */
  }

  .list-item-left .icons-mobile {
    display: flex; /* Die Icons nun anzeigen */
    gap: 10px;
    font-size: 1.5em;

    /* Positionierung oben rechts in der linken Spalte */
    position: absolute;
    top: 0;
    right: 0;
  }
}

/* Neue Klasse für die Icons in der linken Spalte */
.list-item-left .icons-mobile {
  /* display: none; Standardmäßig ausgeblendet */
  display: flex; /* Standardmäßig ausgeblendet */
}

.details {
  background-color: red;
  color: white;
  padding: 1rem;
}
.nachmeldung_input {
  width: 100%;
}

.multi-select-header-max {
  display: none;
}
/* .modal-header{justify-content: space-between;}
.modal-header .btn-close{margin: 0;} */
.direct_link_btn {
  margin-bottom: 1rem;
}

/* Share Popup Modal */
.share-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.share-popup-content {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  position: relative;
}

.share-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.share-popup-header h3 {
  margin: 0;
  font-size: 1.3em;
  color: #333;
}

.share-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
}

.share-close:hover {
  color: #000;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 2px solid #eee;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #333;
}

.share-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #ddd;
}

.share-option-icon {
  font-size: 2.5em;
  margin-bottom: 8px;
}

.share-option-label {
  font-size: 0.9em;
  font-weight: 500;
}

.share-option.whatsapp:hover {
  border-color: #25d366;
  background-color: #f0fdf4;
}

.share-option.twitter:hover {
  border-color: #1da1f2;
  background-color: #f0f9ff;
}

.share-option.facebook:hover {
  border-color: #1877f2;
  background-color: #f0f7ff;
}

.share-option.email:hover {
  border-color: #ea4335;
  background-color: #fef2f2;
}

@media print {
  .search-box,
  .special-buttons-container,
  #btn-print-results,
  .btn-print-favorites,
  .btn-clear-favorites,
  .favorites-buttons,
  .btn-close,
  .direct_link_btn,
  .modal-footer, 
  .btn-primary {
    display: none !important;
  }

  .modal-content, 
  body {display:block;}

  .print_only{display:block;}

}
.reset{
text-decoration: none;
padding: 10px 15px;
border: none;
border-radius: 3px;
cursor: pointer; 
transition: opacity 0.2s;}
a.reset:hover{
  color:white;
}