﻿#inhalt .textmedia {gap:0;}

/* CONTAINER */
#anzeigen > article {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;

  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* TYPO3 FIX */
#anzeigen > article > .frame {
  margin: 0;
}

#anzeigen .frame-group-container,
#anzeigen .frame-group-inner, 
#anzeigen .frame-container, 
#anzeigen .frame-inner {
  height: 100%;
}

/* PIN */
.infopoint-post {
  position: relative;
  height: 100%;
  background: #fff6c9;
  padding: 22px;
  border-radius: 4px;
  box-shadow: 0 10px 20px rgba(0,0,0,.15);
}

/* Rotation */
#anzeigen > article > .frame:nth-child(odd) .infopoint-post {
  transform: rotate(-1deg);
}
#anzeigen > article > .frame:nth-child(even) .infopoint-post {
  transform: rotate(1deg);
}

/* PIN oben */
.infopoint-post::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff9b9b, #c92121 70%);
  box-shadow: 0 4px 8px rgba(0,0,0,.25);
}

/* Kategorie */
.infopoint-category {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #e85d3f;
  color: #fff;
  font-size: .75rem;
  font-weight: bold;
}

/* Titel */
.infopoint-post h3 {
  margin: 0 0 14px;
  font-size: 1.5rem;
  font-family: Georgia, serif;
}

/* =========================
   SLIDER (NEU)
========================= */
.infopoint-photo-slider {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}

.infopoint-photo-slider figure {
  display: none;
  width: 100%;
  margin: 0;
}

.infopoint-photo-slider figure.is-active {
  display: block;
}

.infopoint-photo-slider img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 6px solid #fff;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
  box-sizing: border-box;
}

.infopoint-slider-btn {
  appearance: none;
  -webkit-appearance: none;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(0,0,0,.5) !important;
  color: #fff !important;
  font-size: 34px !important;
  font-family: Arial, sans-serif !important;
  line-height: 40px !important;
  text-align: center !important;
  cursor: pointer;
  z-index: 20;
}

.infopoint-slider-prev {
  left: 14px !important;
}

.infopoint-slider-next {
  right: 14px !important;
}

.infopoint-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 21;
}

.infopoint-slider-dot {
  appearance: none;
  -webkit-appearance: none;
  width: 11px !important;
  height: 11px !important;
  min-width: 11px !important;
  min-height: 11px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 2px solid #777 !important;
  border-radius: 50% !important;
  background: #fff !important;
  cursor: pointer;
}

.infopoint-slider-dot.is-active {
  background: #e85d3f !important;
}
/* =========================
   TEXT (MEHR ANZEIGEN)
========================= */



/* =========================
   KONTAKT
========================= */

.infopoint-contact {
  border-top: 1px dashed rgba(80,55,25,.35);
  padding-top: 10px;
  display: grid;
  gap: 6px;
  font-size: .9rem;
}

.infopoint-contact strong {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  color: #7a5b2b;
}

.infopoint-contact a {
  text-decoration: none;
  color: #2f2418;
  font-weight: bold;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
  #anzeigen > article {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #anzeigen > article {
    grid-template-columns: 1fr;
  }

  .infopoint-post {
    transform: none !important;
  }
}


.infopoint-details {
  position: relative;
  display: block;
  line-height: 1.5;
  max-height: calc(1.5em * 3); /* exakt 3 Zeilen */
  overflow: hidden;
  cursor: pointer;
  white-space: pre-line;
  margin-bottom: 8px;
}

/* Button UNTER dem Text */
.infopoint-details::after {
  content: "Mehr anzeigen";
  display: block;
  margin-top: 8px;
  text-align: center;
  font-weight: bold;
  color: #e85d3f;
}

/* aufgeklappt */
.infopoint-details.open {
  max-height: none;
}

.infopoint-details.open::after {
  content: "Weniger anzeigen";
}

.infopoint-details {
  position: relative;
  display: block;
  line-height: 1.5;
  max-height: calc(1.5em * 3 + 38px);
  overflow: hidden;
  cursor: pointer;
  white-space: pre-line;
  margin: 0 0 14px;
  padding-bottom: 38px;
}

.infopoint-details::after {
  content: "Mehr anzeigen";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38px;
  line-height: 38px;
  text-align: center;
  font-weight: bold;
  color: #e85d3f;
  background: #fff6c9;
}

.infopoint-details.open {
  max-height: none;
  padding-bottom: 0;
}

.infopoint-details.open::after {
  content: "Weniger anzeigen";
  position: relative;
  display: block;
  height: auto;
  line-height: 1.3;
  margin-top: 8px;
  background: none;
}
