/*  Werbe-Popup der Startseite (_tools/seitenbau/popup.py). */

.pop-up-cover {
  background-image: none;
  background-color: rgba(16, 32, 31, .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 20px;
}

.popup-card.cl-popup {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  width: min(860px, 100%);
  max-width: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .3);
  font-family: Epilogue, sans-serif;
}

.cl-popup .popup-closebutton {
  position: absolute;
  top: 14px;
  right: 14px;
  inset: 14px 14px auto auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: #141414;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
  transition: transform .15s ease;
}
.cl-popup .popup-closebutton:hover { transform: scale(1.06); }

.cl-popup .cl-popup-bild { position: relative; min-height: 100%; }
.cl-popup .cl-popup-bild img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.cl-popup .cl-popup-text { padding: 44px 40px 40px; }

.cl-popup p { margin: 0; }
.cl-popup .cl-popup-kicker {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef5f4;
  color: var(--dark-slate-grey, #295b58);
  font-size: 13px;
  font-weight: 700;
}
.cl-popup .cl-popup-titel {
  margin-bottom: 12px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15em;
  color: #141414;
}
.cl-popup .cl-popup-lead { margin-bottom: 22px; font-size: 17px; line-height: 1.55em; color: var(--paragraph-gray, #535756); }

/* Webflow stylt ul/li global mit Verlaufstext */
.cl-popup ul,
.cl-popup li {
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
  color: inherit;
  -webkit-text-fill-color: currentColor;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  font-size: inherit;
}
.cl-popup .cl-popup-sprachen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 26px;
}
.cl-popup .cl-popup-sprachen a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(41, 91, 88, .14);
  border-radius: 12px;
  color: #141414;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.cl-popup .cl-popup-sprachen a:hover { border-color: var(--primary, #ffdb51); background: #fffbe8; }

.cl-popup .cl-popup-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.cl-popup .cl-popup-haupt,
.cl-popup .cl-popup-test {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  white-space: nowrap;
  font-weight: 600;
  line-height: 1em;
  text-decoration: none;
  cursor: pointer;
}
.cl-popup .cl-popup-haupt { border: 1px solid var(--primary, #ffdb51); background: var(--primary, #ffdb51); color: #141414; }
.cl-popup .cl-popup-haupt:hover { background: #ffd126; }
.cl-popup .cl-popup-test { border: 1px solid #141414; background: #fff; color: #141414; }
.cl-popup .cl-popup-test:hover { background: #f4f4f4; }

@media (max-width: 767px) {
  .pop-up-cover { padding: 14px; align-items: center; }
  .popup-card.cl-popup { grid-template-columns: 1fr; max-height: calc(100vh - 28px); overflow-y: auto; }
  .cl-popup .cl-popup-bild { height: 150px; min-height: 0; }
  .cl-popup .cl-popup-text { padding: 24px 22px 24px; }
  .cl-popup .cl-popup-titel { font-size: 27px; }
  .cl-popup .cl-popup-lead { font-size: 16px; margin-bottom: 18px; }
  .cl-popup .cl-popup-sprachen { margin-bottom: 20px; }
  .cl-popup .cl-popup-knoepfe > * { flex: 1 1 100%; }
}
