/* =============================================================================
   INLIFT – Projekt-Gruppen & Popup (im Marken-Design)
   Nutzt die bestehenden Webflow-Klassen & Variablen (--red, --black-2, Inter Tight),
   damit das Popup wie ein nativer Teil der Website wirkt.
   ============================================================================= */

/* ---------- Gruppen-Überschriften auf der Projekte-Seite ---------- */
.project-group {
  margin-top: 70px;
}
.project-group:first-child {
  margin-top: 0;
}
.project-group-title {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.project-group-title:after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ffffff1f;
}

/* Klickbare Projekt-Box (öffnet Popup) */
.project-box[data-project] {
  cursor: pointer;
}

/* Hover-Effekt: Karte wird dunkler + Hinweis "Projekt öffnen" erscheint */
.project-box[data-project] .photo-project,
.project-box[data-project] .absolute-background {
  transition: opacity .4s ease, transform .6s ease;
}
.project-box[data-project]:hover .photo-project {
  transform: scale(1.05);
}
.project-box[data-project]:hover .absolute-background {
  opacity: .82;
}
.project-box[data-project]::after {
  content: "Projekt öffnen";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  z-index: 6;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.project-box[data-project]:hover::after {
  opacity: 1;
  transform: translateY(0);
}
/* Videografie-Karten: anderer Hinweistext */
.project-box[data-project][data-kind="video"]::after {
  content: "Video ansehen";
}

/* =============================================================================
   POPUP – Vollflächige Übernahme (wie das Navigations-Menü der Seite)
   ============================================================================= */
html.ilm-modal-locked,
html.ilm-modal-locked body {
  overflow: hidden;
}

.ilm-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: var(--black-2, #171717);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.ilm-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Inhalts-Container – gleiche Breite wie der Rest der Seite */
.ilm-modal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 130px 5% 110px;
}

/* ---------- Schließen-Button (weißer Kreis, dreht beim Hover – wie circle-button) ---------- */
.ilm-close {
  position: fixed;
  top: 32px;
  right: 5%;
  z-index: 1002;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 100%;
  background: #fff;
  color: #000;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s;
}
.ilm-close:hover {
  transform: rotate(-30deg) scale(1.1);
}

/* ---------- Bild-Header (identisch zu den Projekt-Karten) ---------- */
.ilm-hero {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.ilm-hero .photo-project {
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.ilm-hero .absolute-background {
  opacity: .55;
}
.ilm-hero .project-wrapper {
  position: relative;
  z-index: 4;
  text-align: center;
}
.ilm-hero .project-title {
  font-size: 44px;
  line-height: 1.1;
  margin-bottom: 10px;
}
.ilm-hero .project-category {
  color: #ffffffcc;
}

/* ---------- Text-Inhalte ---------- */
.ilm-intro {
  max-width: 760px;
  margin: 48px auto 0;
  text-align: center;
}
.ilm-intro .subhead-main {
  margin: 0;
}

.ilm-section-label {
  color: var(--red, #8b1e2d);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  margin: 60px 0 24px;
}

.ilm-services {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 16px;
}
.ilm-services li {
  color: #fff;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: .5px;
  border: 1px solid #ffffff26;
  padding: 10px 20px;
  border-radius: 100px;
}

/* ---------- Medien: Instagram-Beiträge als Marken-Karten ---------- */
.ilm-media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.ilm-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: #0e0e0e;
  text-decoration: none;
}
.ilm-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}
.ilm-card:hover .ilm-card-img {
  transform: scale(1.06);
}

/* Play-Symbol (nur bei Hochformat-Videos / Reels) */
.ilm-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 100%;
  background: #ffffffe6;
  display: none;
  z-index: 2;
  transition: transform .3s ease;
}
.ilm-card.is-video .ilm-card-play {
  display: block;
}
.ilm-card-play:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #171717;
}
.ilm-card:hover .ilm-card-play {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Hover-Overlay mit Instagram-Symbol */
.ilm-card-hover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: #000000cc;
  opacity: 0;
  transition: opacity .3s ease;
}
.ilm-card:hover .ilm-card-hover {
  opacity: 1;
}
.ilm-card-ig {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

/* Sauberer Platzhalter, falls ein Vorschaubild fehlt */
.ilm-card.is-missing .ilm-card-img {
  visibility: hidden;
}
.ilm-card.is-missing {
  border: 1px solid #ffffff1f;
}
.ilm-card.is-missing .ilm-card-hover {
  opacity: 1;
  background: #1d1d1d;
}

/* ---------- Eingebettetes Video (YouTube im eigenen Design) ---------- */
.ilm-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  background: #0e0e0e;
}
.ilm-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ilm-empty {
  color: #ffffff80;
  font-weight: 300;
  text-align: center;
  margin: 0;
}

/* ---------- Instagram-CTA (echter rotierender Kreis-Button der Marke) ---------- */
.ilm-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 70px;
}
.ilm-modal .circle-button {
  width: 150px;
  height: 150px;
  font-size: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .ilm-media {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .ilm-modal {
    padding: 110px 6% 80px;
  }
  .ilm-media {
    gap: 14px;
  }
  .ilm-card-play {
    width: 46px;
    height: 46px;
  }
  .ilm-close {
    width: 54px;
    height: 54px;
    font-size: 26px;
    top: 22px;
  }
  .ilm-hero {
    height: 260px;
  }
  .ilm-hero .project-title {
    font-size: 30px;
  }
  .ilm-intro .subhead-main {
    font-size: 19px;
    line-height: 26px;
  }
}
