@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../font/montserrat-v31-latin-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../font/montserrat-v31-latin_latin-ext-regular.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Montserrat;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../font/montserrat-v31-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Montserrat;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../font/montserrat-v31-latin_latin-ext-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../font/montserrat-v31-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../font/montserrat-v31-latin_latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #b3b3b3;
  --line: #333;

  /* Flächenfarbe, nur mit weisser Schrift: 8,1:1 */
  --accent: #a11510;
  /* Textakzent auf Schwarz: 5,2:1 */
  --accent-text: #e8402f;

  /* Skala 1,2 bei 320px auf 1,333 bei 1280px */
  --text-sm: 0.84rem;
  --text-base: clamp(1rem, 0.958rem + 0.21vw, 1.125rem);
  --text-md: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --text-lg: clamp(1.44rem, 1.253rem + 0.93vw, 2rem);
  --text-xl: clamp(1.728rem, 1.514rem + 1.07vw, 2.37rem);
  --text-2xl: clamp(2.074rem, 1.712rem + 1.81vw, 3.16rem);

  --space: clamp(1rem, 0.6rem + 2vw, 2rem);
  --measure: 68ch;
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Montserrat, system-ui, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-2xl);
}

h2 {
  font-size: var(--text-xl);
}

h3 {
  font-size: var(--text-lg);
}

h4 {
  font-size: var(--text-md);
}

p,
ul,
ol {
  margin: 0 0 1em;
  max-width: var(--measure);
}

a,
.link-accent {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

a:hover,
.link-accent:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.field {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}

.field--compact {
  padding: 0.35rem 0.6rem;
  font-size: var(--text-sm);
}

.button {
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: var(--fg);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button:hover {
  background: var(--bg);
}

.button--compact {
  padding: 0.35rem 0.8rem;
  font-size: var(--text-sm);
  font-weight: 400;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--fg);
  text-decoration: none;
}

.skip-link:focus {
  left: var(--space);
  top: var(--space);
  z-index: 10;
}

.wrap {
  width: min(100% - 2 * var(--space), 76rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem var(--space);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space);
}

.site-logo img {
  height: clamp(3rem, 2.4rem + 2vw, 4.5rem);
  width: auto;
}

.site-title {
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--fg);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.75rem;
  height: 1.75rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  position: relative;
}

.site-nav .site-nav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 600;
  flex-direction: column;
  gap: 0.15rem;
  min-width: max-content;
  padding: 0.5rem 0.8rem;
  background: var(--bg);
}

.site-nav__sub a::before {
  content: '|';
  margin-right: 0.5rem;
  color: var(--accent);
  font-weight: 700;
}

.site-nav li:hover > .site-nav__sub,
.site-nav li:focus-within > .site-nav__sub {
  display: flex;
}

@media (max-width: 48rem) {
  .nav-toggle {
    display: grid;
    order: 2;
  }

  .language-switcher {
    order: 3;
  }

  .site-nav {
    order: 4;
    flex-basis: 100%;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding-block: 0.5rem;
  }

  .site-nav li {
    border-top: 1px solid var(--line);
  }

  .site-nav a {
    display: block;
    padding-block: 0.7rem;
  }

  /* ohne Hover kein Aufklappen: Unterpunkte stehen eingerueckt darunter */
  .site-nav .site-nav__sub {
    display: flex;
    position: static;
    gap: 0;
    padding: 0 0 0 1.5rem;
    border: 0;
  }
}

.guide__download {
  display: inline-block;
}

.guide__download span {
  font-weight: 400;
}

@media (max-width: 32rem) {
  .guide__download {
    padding: 0.7rem 0.9rem;
    font-size: var(--text-sm);
  }
}

.guide__view {
  display: block;
  width: 100%;
  height: min(85vh, 60rem);
  margin-block: var(--space);
  border: 1px solid var(--line);
  background: var(--line);
}

.guide__hint {
  color: var(--muted);
  font-size: var(--text-sm);
}

.results {
  max-width: none;
  margin: 0 0 var(--space);
  padding: 0;
  list-style: none;
}

.results li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.8rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.results span {
  color: var(--muted);
  font-size: var(--text-sm);
}

.site-search {
  display: flex;
  gap: 0.4rem;
}

.site-search .field {
  width: 9rem;
  border-color: var(--fg);
}

.page-map .site-search {
  padding: 0.4rem 0.8rem;
  background: var(--bg);
}

@media (max-width: 48rem) {
  .site-search {
    order: 5;
    flex-basis: 100%;
  }

  .site-search .field {
    flex: 1;
    width: auto;
  }

  .page-map .site-search {
    display: none;
  }
}

.language-switcher ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.language-switcher li + li::before {
  content: '/';
  margin-right: 0.25rem;
  color: var(--accent);
  font-weight: 700;
}

.site-nav a,
.language-switcher a {
  color: var(--fg);
  text-decoration: none;
}

/* reserviert die Breite der fetten Variante, damit nichts springt */
.site-nav a {
  display: inline-block;
}

.site-nav a::after {
  content: attr(data-text);
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 700;
}

.language-switcher [aria-current] {
  color: var(--muted);
}

.site-nav [aria-current] {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

main {
  flex: 1;
  padding-block: calc(var(--space) * 2);
}

.main--map {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* Header liegt ueber der Karte, die bis an den oberen Rand reicht */
.page-map .site-header {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 500;
  width: min(100% - 2 * var(--space), 76rem);
  transform: translateX(-50%);
}

.page-map .site-nav,
.page-map .language-switcher {
  padding: 0.4rem 0.8rem;
  background: var(--bg);
}

/* nicht polstern: die Groesse ist fix, sonst rutscht das Symbol aus der Mitte */
.page-map .nav-toggle {
  background: var(--bg);
}

/* Zoom-Knoepfe unter den Header schieben */
.page-map .leaflet-top {
  top: clamp(5.5rem, 3.5rem + 7vw, 9rem);
}

.page-map .site-nav ul {
  margin: 0;
}

.page-map .site-footer {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 500;
  width: min(100% - 2 * var(--space), 76rem);
  transform: translateX(-50%);
}

.page-map .site-footer::before {
  display: none;
}

.page-map .site-footer__row > * {
  padding: 0.4rem 0.8rem;
  background: var(--bg);
}

.site-footer {
  padding-block: var(--space);
  color: var(--muted);
  font-size: var(--text-sm);
}

.site-footer::before {
  content: '';
  display: block;
  width: max(4rem, 10vw);
  height: 3px;
  margin: 0 auto var(--space);
  background: var(--accent);
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem var(--space);
  align-items: baseline;
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--fg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.member {
  display: grid;
  align-items: start;
  gap: 0 var(--space);
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
}

.member__hero {
  margin: 0;
  grid-area: 1 / 1;
}

.member__main {
  grid-area: 1 / 2 / span 2;
}

.member__main > * {
  max-width: none;
}

.member__facts {
  grid-area: 2 / 1;
}

.member__events {
  grid-column: 1 / -1;
}

.member__events,
.events-page {
  width: min(100%, 56rem);
  margin-inline: auto;
}

@media (max-width: 48rem) {
  .member {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space);
  }

  .member__hero,
  .member__main,
  .member__facts {
    grid-area: auto;
  }

  .tags {
    justify-content: center;
  }
}

.member__tagline {
  margin: 0 0 0.8em;
  color: var(--accent-text);
}

.member__events {
  margin-block: calc(var(--space) * 2);
}

.member__facts {
  display: grid;
  gap: var(--space);
  margin-top: var(--space);
}

.member__facts h2 {
  font-size: var(--text-base);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.member__address {
  margin-bottom: 0.8em;
}

.member__hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2em 1em;
  margin: 0;
}

.member__hours dt {
  color: var(--muted);
}

.member__hours dd {
  margin: 0;
}

.member__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.member__links li {
  margin-bottom: 0.3em;
}


.gallery,
.tags,
.events {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery {
  position: relative;
  max-width: none;
  margin-block: calc(var(--space) * 2);
}

.gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  max-width: none;
  list-style: none;
  scroll-snap-align: start;
}

@media (max-width: 40rem) {
  .gallery__page {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgb(0 0 0 / 0.92);
}

.lightbox__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3.5rem 1rem;
}

.lightbox__count {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  margin: 0;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.lightbox__button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--fg);
  cursor: pointer;
}

.lightbox__button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.lightbox__button--prev {
  top: 50%;
  left: 0.9rem;
  transform: translateY(-50%);
}

.lightbox__button--next {
  top: 50%;
  right: 0.9rem;
  transform: translateY(-50%);
}

.lightbox__button--close {
  top: 0.9rem;
  right: 0.9rem;
}

.gallery__nav {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

@media (max-width: 48rem) {
  .gallery__nav {
    justify-content: center;
  }
}

.gallery__nav button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--fg);
  cursor: pointer;
}

.gallery__nav svg {
  width: 1.25rem;
  height: 1.25rem;
}

.gallery__nav button:disabled {
  background: var(--line);
  color: var(--muted);
  cursor: default;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: none;
  clear: both;
}

.tags li {
  padding: 0.3em 0.8em;
  border: 1px solid var(--accent);
  font-size: var(--text-base);
  color: var(--muted);
}

.tags--small {
  gap: 0.35rem;
}

.tags--small li {
  padding: 0.15em 0.55em;
  font-size: var(--text-sm);
}

.form {
  margin-top: calc(var(--space) * 1.5);
}

.form__row,
.form__check {
  display: block;
  margin: 0 0 1.25rem;
  max-width: none;
}

.form__row label,
.form__row legend {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: var(--text-sm);
}

.form .field {
  width: 100%;
}

.form textarea.field {
  resize: vertical;
}


.field:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 0;
}

/* Chrome faerbt automatisch ausgefuellte Felder gelb, nur so zu ueberschreiben */
.field:autofill,
.field:-webkit-autofill,
.field:-webkit-autofill:hover,
.field:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--fg);
  box-shadow: 0 0 0 100vmax var(--bg) inset;
  caret-color: var(--fg);
}

.form input[aria-invalid] {
  border-color: var(--accent-text);
}

.form__grid {
  display: grid;
  gap: 0 var(--space);
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.form fieldset {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}

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

.form__check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0 0 0.6rem;
}

.form__checks .form__check {
  margin-bottom: 0;
}

/* schlaegt .form__row label, das sonst die Kategorien verkleinert */
.form .form__check label {
  margin: 0;
  color: var(--fg);
  font-size: var(--text-base);
  line-height: 1.4;
}

/* gleiche Spezifitaetsklasse wie die Regel, die margin: 0 setzt,
   sonst greift der Versatz nicht */
.form .form__check input[type='checkbox'],
.form .form__check input[type='radio'] {
  flex: 0 0 auto;
  margin-top: calc((1.4 * var(--text-base) - 1.1rem) / 2);
}

.form input[type='checkbox'],
.form input[type='radio'] {
  appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  border: 0;
  background: var(--muted);
  cursor: pointer;
}

.form input[type='radio'] {
  border-radius: 999px;
}

.form input[type='checkbox']:checked,
.form input[type='radio']:checked {
  background: var(--accent);
}

.form input[type='checkbox']:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 78%;
}

.form__hint {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: var(--text-sm);
}

.form__error {
  display: block;
  margin-top: 0.3rem;
  color: var(--accent-text);
  font-size: var(--text-sm);
}

.form__trap {
  position: absolute;
  left: -9999px;
}

.form__done {
  margin-top: var(--space);
}

.events-page__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem var(--space);
  align-items: baseline;
  justify-content: space-between;
}

.events-page__head h1 {
  margin-bottom: 0;
}

.events-page__submit {
  white-space: nowrap;
}

.member__allevents {
  margin: 1rem 0 0;
  max-width: none;
  text-align: right;
}

.map {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 24rem;
}

/* liegt ueber der Karte, damit man zum Weiterlesen nicht scrollen muss */
.map__panel {
  position: absolute;
  z-index: 1000;
  top: var(--space);
  left: var(--space);
  width: min(100% - 2 * var(--space), 24rem);
  max-height: calc(100% - 2 * var(--space));
  overflow: auto;
  padding: 1rem 1.2rem;
  background: var(--bg);
  border: 1px solid var(--accent);
}

.map__panel > :last-child {
  margin-bottom: 0;
}

.map__consent {
  max-width: 32rem;
  padding: var(--space);
  text-align: center;
}

.map__consent p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: var(--text-sm);
}

.map--live {
  display: block;
  place-items: initial;
}

.map__list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.map__list li {
  display: flex;
  flex-direction: column;
  padding-left: 0.8rem;
  border-left: 1px solid var(--accent);
  color: var(--muted);
  font-size: var(--text-sm);
}

.leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 0;
  background: var(--bg);
  color: var(--fg);
  box-shadow: none;
}

.leaflet-popup-content {
  margin: 0;
}

.leaflet-popup-tip {
  background: var(--fg);
  box-shadow: none;
}

.leaflet-container a.leaflet-popup-close-button {
  color: var(--muted);
}

.mappop {
  display: grid;
  grid-template-columns: 1fr 2fr;
  width: 20rem;
}

.mappop__image {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.mappop__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 0.7rem;
  overflow: hidden;
  background: var(--fg);
  color: var(--bg);
}

.leaflet-container a.mappop__title {
  color: inherit;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.leaflet-container a.mappop__title:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.mappop__place,
.mappop__where {
  color: inherit;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: var(--text-sm);
  line-height: 1.4;
}

.mappop .tags {
  margin-top: 0.3rem;
  justify-content: center;
}

.mappop .tags li {
  color: var(--bg);
}

.cards {
  display: grid;
  gap: var(--space);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  max-width: none;
  margin: calc(var(--space) * 1.5) 0 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 24rem;
  padding: 0.9rem;
  overflow: hidden;
}

.card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  position: relative;
  padding: 0.8rem 1rem;
  background: var(--fg);
  color: var(--bg);
}

.card__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s;
}

.card__more-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow: hidden;
}

.card:hover .card__more,
.card:focus-within .card__more {
  grid-template-rows: 1fr;
}

.card:hover .card__more-inner,
.card:focus-within .card__more-inner {
  padding-top: 0.5rem;
}

/* ohne Hover laesst sich nichts aufdecken: Bild oben, Karte darunter */
@media (hover: none), (max-width: 40rem) {
  .card {
    display: block;
    min-height: 0;
    padding: 0;
    overflow: visible;
  }

  .card > img {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .card__body {
    padding: 0.6rem 0.9rem 0.7rem;
  }

  .card__more {
    grid-template-rows: 1fr;
  }

  .card__more-inner {
    gap: 0.3rem;
    padding-top: 0.25rem;
  }

  .card__summary {
    line-height: 1.4;
  }
}

.card__title {
  margin: 0;
  font-size: var(--text-md);
}

.card__title a {
  color: inherit;
  text-decoration: none;
}

/* macht die ganze Karte klickbar, ohne einen zweiten Link */
.card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}

.card__summary {
  margin: 0;
  max-width: none;
  font-size: var(--text-sm);
}

.card__cats {
  justify-content: center;
}

.card__cats li {
  color: var(--bg);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  margin-block: var(--space) 0.5rem;
}

.filters label {
  color: var(--muted);
  font-size: var(--text-sm);
}


.events__year + .events__year {
  margin-top: calc(var(--space) * 1.5);
}

.events__year > h3 {
  margin: 0;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-md);
  font-variant-numeric: tabular-nums;
}

.events {
  display: grid;
  max-width: none;
  column-gap: 1.25rem;
  grid-template-columns: 6.5rem minmax(0, 1fr) auto auto;
}

.events--with-member {
  grid-template-columns: 6.5rem minmax(0, 1fr) auto auto auto;
}

.event {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: baseline;
  row-gap: 0.15rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.event__date {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.event__title {
  font-weight: 700;
}

.event__title a {
  color: var(--fg);
  text-decoration: none;
}

.site-nav a:hover,
.language-switcher a:hover,
.site-footer a:hover,
.event__member a:hover,
.event__title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.event__time,
.event__member {
  color: var(--muted);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.event__member a {
  color: inherit;
  text-decoration: none;
}

.event__member a:hover {
  color: var(--fg);
}

.event__cats {
  color: var(--accent-text);
  font-size: var(--text-sm);
  text-align: right;
}

.event__flag {
  margin-right: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.event--cancelled .event__title,
.event--cancelled .event__date {
  color: var(--muted);
  text-decoration: line-through;
}

@media (max-width: 44rem) {
  .events,
  .events--with-member {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }

  .event__time,
  .event__member,
  .event__cats {
    grid-column: 2;
    text-align: left;
  }

  .event__time:empty,
  .event__member:empty {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
