/* =========================
   Page Background
========================= */
.page.page-services{
  background-image: url("background_dunkel.png");
  background-repeat: repeat;
  background-position: center top;
  background-size: 100%;
}

.page.page-services::before{
  background: transparent;
}

/* =========================
   Wrapper
========================= */
.services-wrapper{
  position: relative;
  width: min(1180px, 90%);
  margin: 0 auto;
  padding-top: 120px;
  padding-bottom: 120px;
  z-index: 2;
}

/* =========================
   Intro (Projects Head)
========================= */
.services-flow{
  padding: 0 0 40px;
}

.services-flow--intro{
  padding: 0 0 18px;
}

.flow-head{
  max-width: 72ch;
  margin-bottom: 0;
}

.flow-eyebrow{
  margin: 0 0 12px;
  font-size: 1.75rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.75;
}

.flow-eyebrow-little{
  margin: 0 0 12px;
  font-size: 1.25rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.75;
}

.flow-sub{
  margin: 0;
  line-height: 1.8;
  opacity: 0.9;
  color: rgba(235, 235, 235, 0.45);
}

/* =========================
   Instagram Embed Fix
========================= */
.instagram-media{
  margin: 40px auto !important;
}

/* =========================
   Responsive
========================= */
@media (max-width: 520px){
  .services-wrapper{
    width: 92%;
    padding-top: 70px;
    padding-bottom: 100px;
  }
}


/* =========================
   Project Blocks (3 Images)
========================= */
.project-block {
  margin-top: 40px;
  margin-bottom: 120px; /* Großer Abstand zum nächsten Projekt */
}

/* Texte über den Bildern */
.project-header {
  margin-bottom: 24px;
}

.project-location {
  display: block;
  font-size: 0.9rem;
  color: #a0a0a0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.project-title {
  font-size: 2.5rem;
  color: #ffffff;
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
}

/* Das Grid-Layout für exakt 3 Bilder */
.project-grid-3 {
  display: grid;
  /* Linke Spalte nimmt 2 Teile ein, rechte Spalte 1 Teil (Asymmetrisch) */
  grid-template-columns: 2fr 1fr; 
  grid-template-rows: repeat(2, 1fr);
  gap: 20px; /* Abstand zwischen den Bildern */
}

/* Wrapper für die Bilder */
.img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  background-color: #1a1a1a;
  text-decoration: none;
}

/* Das große Hauptbild (Links) streckt sich über 2 Zeilen */
.img-main {
  grid-row: span 2;
}

/* Bild-Eigenschaften & Hover-Effekt */
.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Verhindert Verzerrungen */
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.img-wrap:hover img {
  transform: scale(1.04);
}

/* =========================
   Responsive Anpassungen (Handy & Tablet)
========================= */
@media (max-width: 850px) {
  .project-title {
    font-size: 2rem;
  }
  
  .project-grid-3 {
    /* Auf Tablets: Alle Bilder untereinander oder in einem einfacheren Raster */
    grid-template-columns: 1fr; 
    grid-template-rows: auto;
  }

  .img-main {
    grid-row: span 1;
    aspect-ratio: 4 / 3; /* Gibt dem Hauptbild eine schöne Höhe auf Handys */
  }

  .img-sub {
    aspect-ratio: 16 / 9; /* Kleine Bilder werden auf Handys breiter */
  }
}

.insta-cta {
  margin-top: 20px;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.insta-btn {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid rgba(235, 235, 235, 0.35);
  color: rgba(235, 235, 235, 0.75);
  text-decoration: none;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 1rem;
  transition: border-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.insta-btn:hover {
  border-color: rgba(235, 235, 235, 0.8);
  color: #fff;
}