/* === Dynamische Buttons & Toggle-Inhalte === */

.button-grid {
  display: flex;
  flex-direction: column;
  gap: 1em;
  justify-content: center;
  margin-bottom: 2em;
}

.toggle-button {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  padding: 0.66em 1.12em;
  min-height: 42px;
  margin-bottom: 0.5em;

  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;

  color: #fff;
  background: linear-gradient(180deg, #0070c0 0%, #005b9e 100%);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  z-index: 2;
  box-shadow: 0 6px 14px rgba(0, 112, 192, 0.18);

  transition:
    transform .16s ease,
    box-shadow .16s ease,
    background .16s ease,
    color .16s ease,
    border-color .16s ease,
    opacity .16s ease;
}

.toggle-button:hover,
.toggle-button:focus-visible,
.toggle-button.expanded {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #0078cf 0%, #00528f 100%);
  box-shadow: 0 10px 18px rgba(0, 112, 192, 0.24);
}

.toggle-button:active {
  transform: translateY(0);
}

.toggle-button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(0, 112, 192, 0.16),
    0 10px 18px rgba(0, 112, 192, 0.24);
}

.toggle-button .text {
  display: inline-flex;
  align-items: center;
}

.toggle-button .arrow {
  display: inline-block;
  font-size: 0.95em;
  line-height: 1;
  transform: translateY(0) rotate(0deg);
  transition: transform .22s ease;
}

.toggle-button:hover .arrow,
.toggle-button:focus-visible .arrow {
  transform: translateY(2px) rotate(0deg);
}

.toggle-button.expanded .arrow {
  transform: translateY(-2px) rotate(180deg);
}

.toggle-button.future-event {
  background: linear-gradient(180deg, #d8d8d8 0%, #bcbcbc 100%);
  color: #666;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);
}

.toggle-button.future-event:hover,
.toggle-button.future-event:focus-visible,
.toggle-button.future-event.expanded {
  background: linear-gradient(180deg, #d0d0d0 0%, #b2b2b2 100%);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
}

.toggle-content {
  padding: 0.3em 0;
  display: none;
}

.toggle-section {
  flex: 1 1 calc(25% - 1em);
  display: flex;
  flex-direction: column;
  margin-bottom: 1em;
}

.button-row {
  display: flex;
  justify-content: space-between;
  margin-top: 1em;
}

.toggle-filters {
    background: #007bff;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: none;
    font-size: 1em;
    margin-bottom: .5em;
    padding: .3em .8em
    z-index: 900
}

@media (max-width:768px) {
    .controls {
        padding: .5em
    }

    .toggle-filters {
        display: block
    }

    .filter-content {
        display: none;
        flex-direction: column;
        gap: .4em
    }

    .filter-content.active {
        display: flex
    }

    .controls input,
    .controls label,
    .controls select {
        font-size: .9em;
        margin: .2em 0;
        width: 100%
    }
}


.future-event {
    background-color: #f2f2f2;
    border-color: #ccc !important;
    color: #888
}

.future-event img {
    opacity: .6
}

.future-event {
    background-color: #f4f4f4 !important;
    border-color: #ddd !important;
    color: #999 !important
}


#filter-toolbar {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
    display: flex;
    flex-wrap: wrap;
    gap: .8em;
    padding: .8em 1em;
    position: sticky;
    top: 70px;
    z-index: 900
}

#filter-toolbar label {
    font-weight: 600;
    margin-right: .4em
}

#filter-toolbar input[type=text],
#filter-toolbar select {
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: .95em;
    padding: .3em .6em
}

@media (max-width:768px) {
    #filter-toolbar {
        align-items: flex-start;
        flex-direction: column
    }
}

.search-wrapper {
    display: inline-block;
    max-width: 280px;
    position: relative;
    width: 100%
}

#search {
    box-sizing: border-box;
    padding-right: 2em;
    width: 100%
}

#clear-search {
    color: #aaa;
    cursor: pointer;
    display: none;
    font-size: 1.2em;
    position: absolute;
    right: .6em;
    top: 50%;
    transform: translateY(-50%)
}

#search:not(:placeholder-shown)+#clear-search {
    display: inline
}

.controls {
    background: #f9f9f9;
    border-bottom: 1px solid #ccc;
    padding: .5em;
    position: sticky;
    top: 0;
    z-index: 1000
}

.controls input,
.controls label,
.controls select {
    font-size: .9em;
    margin: .2em .5em .2em 0
}

#controls.sticky,
.controls {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
    padding: .5em;
    position: sticky;
    top: 70px;
    z-index: 900
}

.toggle-filters {
    background: #007bff;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: none;
    font-size: 1em;
    margin-bottom: .5em;
    padding: .3em .8em
    z-index: 900
}

@media (max-width:768px) {
    .controls {
        padding: .5em
    }

    .toggle-filters {
        display: block
    }

    .filter-content {
        display: none;
        flex-direction: column;
        gap: .4em
    }

    .filter-content.active {
        display: flex
    }

    .controls input,
    .controls label,
    .controls select {
        font-size: .9em;
        margin: .2em 0;
        width: 100%
    }
}

.header-with-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-title {
  flex: 1;
}

.event-logo-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.event-logo {
  height: 42px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}