/* 1) Äußerer Wrapper: harte Kante / Clipping */
.strip {
  width: 100%;
  overflow: hidden;          /* sauber links + rechts abschneiden */
  padding-block: 8px;        /* oben/unten */
  box-sizing: border-box;
}

/* 2) Scroller: keine horizontalen Paddings, Gaps für Abstand */
.scroller {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  padding: 0;                            /* wichtig für saubere Kanten */
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

/* optional: kleiner Anfang/Ende-Puffer ohne Padding */
.scroller::before,
.scroller::after {
  content: "";
  flex: 0 0 4px;
}

/* 3) Karte: feste Breite, damit Bild + Titel konsistent sind */
.card {
  flex: 0 0 140px;          /* Kartenbreite = 140px */
  box-sizing: border-box;
  text-align: center;
  scroll-snap-align: start;
}

/* 4) Bild: füllt die Kartenbreite, Höhe optional fix */
.card img {
  display: block;
  width: 100%;              /* füllt die Kartenbreite */
  height: 90px;             /* gewünschte Bildhöhe (fix) */
  object-fit: cover;        /* Zuschnitt bei abweichenden Verhältnissen */
  border-radius: 6px;
  margin-bottom: 6px;
}

/* 5) Titel: bricht innerhalb der Kartenbreite */
.card .title {
  display: block;
  width: 100%;
  min-width: 0;             /* Flex-Minbreite neutralisieren (falls nötig) */
  white-space: normal;      /* Umbruch erlauben */
  overflow-wrap: anywhere;  /* bricht lange Tokens/Komposita */
  word-break: break-word;   /* Fallback */
  hyphens: auto;            /* Silbentrennung mit lang="de" */
}

.errormessagemapnotactive {
        background-color:lightgoldenrodyellow;
        font-size: 10pt;
        line-height: 2em;
        display: block;
        overflow: hidden;
        max-height: 0;
        transition: max-height 2s ease;
}

 .errormessagemapnotactive.show {
        max-height: 50px;
    }

/* 6) Nur auf Touch: Scrollbar ausblenden */
@media (hover: none) and (pointer: coarse) {
  .scroller {
    scrollbar-width: none;              /* Firefox */
    overscroll-behavior-x: contain;     /* iOS „Gummiband“ verhindern */
  }
  .scroller::-webkit-scrollbar {        /* Chrome/Edge/Safari */
    display: none;
  }
}
