/* =========================================================
   TERMINSEITE
   ========================================================= */

#termine-liste {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 20px 45px;
}


.termin {
  padding: 28px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}


.termin:last-child {
  border-bottom: none;
}


.termin-datum {
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}


.termin-titel {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.25;
}


.termin-ort {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.5;
}


.termin-beschreibung {
  max-width: 620px;
  margin: 8px auto 0;
  line-height: 1.5;
  opacity: 0.9;
}


.termine-keine,
.termine-fehler {
  max-width: 650px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}


/* =========================================================
   PLAKAT AUF DER TERMINESEITE
   ========================================================= */

.termin-plakat-bereich {
  margin-top: 18px;
  text-align: center;
}


.termin-plakat {
  display: block;

  width: auto;
  height: auto;

  max-width: 280px;
  max-height: 380px;

  margin: 0 auto;

  border-radius: 8px;

  object-fit: contain;

  box-shadow:
    0 6px 20px
    rgba(0, 0, 0, 0.18);
}


/* =========================================================
   POPUP
   ========================================================= */

.termin-popup {
  position: fixed;
  inset: 0;

  z-index: 999999;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 12px;
}


.termin-popup-backdrop {
  position: absolute;

  inset: 0;

  background:
    rgba(
      0,
      0,
      0,
      0.78
    );

  backdrop-filter: blur(2px);
}


.termin-popup-dialog {
  position: relative;

  z-index: 1;

  width:
    min(
      92vw,
      900px
    );

  max-height: 94vh;

  overflow: auto;

  padding: 14px;

  border-radius: 16px;

  background: #1A1A1A;

  color: #ffffff;

  box-shadow:
    0 25px 80px
    rgba(
      0,
      0,
      0,
      0.55
    );
}


/*
 * Erzwingt weiße Schrift innerhalb des Popups,
 * auch wenn Nicepage andere Farben vererbt.
 */

.termin-popup-dialog,
.termin-popup-dialog *,
.termin-popup-standard,
.termin-popup-standard h2,
.termin-popup-standard p,
.termin-popup-standard strong,
.termin-popup-klein,
.termin-popup-fehler {
  color: #ffffff !important;
}


/* =========================================================
   SCHLIESSEN-KNOPF
   ========================================================= */

.termin-popup-close {
  position: absolute;

  top: 9px;
  right: 9px;

  z-index: 5;

  width: 42px;
  height: 42px;

  border: none;

  border-radius: 50%;

  background:
    rgba(
      0,
      0,
      0,
      0.75
    );

  color: #ffffff !important;

  font-size: 28px;

  line-height: 1;

  cursor: pointer;
}


.termin-popup-close:hover {
  background:
    rgba(
      0,
      0,
      0,
      0.95
    );
}


/* =========================================================
   PLAKAT IM POPUP
   ========================================================= */

.termin-popup-plakat {
  display: block;

  width: auto;
  height: auto;

  max-width: 100%;
  max-height: 90vh;

  margin: 0 auto;

  border-radius: 8px;

  object-fit: contain;
}


/* =========================================================
   NORMALES POPUP OHNE PLAKAT
   ========================================================= */

.termin-popup-standard {
  padding:
    42px
    28px
    30px;

  text-align: center;
}


.termin-popup-standard h2 {
  margin: 0 0 14px;

  font-size:
    clamp(
      1.6rem,
      4vw,
      2.4rem
    );

  line-height: 1.2;
}


.termin-popup-standard p {
  margin: 8px 0;

  font-size: 1.05rem;

  line-height: 1.5;
}


.termin-popup-klein {
  margin-bottom: 8px;

  font-size: 0.8rem;

  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  opacity: 0.75;
}


.termin-popup-fehler {
  padding: 30px;

  text-align: center;
}


/* =========================================================
   HANDY
   ========================================================= */

@media (max-width: 600px) {

  #termine-liste {
    padding-left: 8px;
    padding-right: 8px;
  }


  .termin {
    padding: 22px 10px;
  }


  .termin-plakat {
    max-width: 240px;
    max-height: 340px;
  }


  .termin-popup {
    padding: 6px;
  }


  .termin-popup-dialog {
    width: 96vw;

    max-height: 97vh;

    padding: 8px;

    border-radius: 12px;
  }


  .termin-popup-plakat {
    max-width: 94vw;

    max-height: 93vh;
  }


  .termin-popup-standard {
    padding:
      38px
      18px
      22px;
  }

}