/* =========================================================
   GLOBAL
   ========================================================= */
.dv-buildproject * { box-sizing: border-box; }

.dv-buildproject{
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 40px 0 80px;
}

/* =========================================================
   HERO
   ========================================================= */
.dv-bp-hero{
  margin: 0 auto 48px;
  width: min(980px, 92vw);
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}

.dv-bp-hero-inner{
  padding: 34px 28px;
  text-align: center;
}

.dv-bp-title{
  font-family: "Airstrike", sans-serif;
  font-size: clamp(34px, 5vw, 60px);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: #fff;
  text-shadow: 0 0 22px rgba(255,255,255,.25);
}

.dv-bp-sub{
  margin: 0;
  font-size: 14px;
  opacity: .85;
}

/* =========================================================
   TIMELINE
   ========================================================= */
.dv-bp-timeline{
  position: relative;
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 60px 0 40px;
}

.dv-bp-line{
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,.22);
  box-shadow: 0 0 18px rgba(255,255,255,.12);
}

.dv-bp-item{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  gap: 22px;
  margin: 0 0 54px;
}

.dv-bp-dot{
  grid-column: 2;
  justify-self: center;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 16px rgba(255,255,255,.35);
  z-index: 2;
}

/* =========================================================
   CARD
   ========================================================= */
.dv-bp-card{
  padding: 18px 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.55);
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  max-width: 520px;
}

.dv-bp-h{
  margin: 0 0 6px;
  font-family: "Airstrike", sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 18px;
}

.dv-bp-p{
  margin: 0;
  font-size: 13px;
  opacity: .85;
  line-height: 1.6;
}

/* Platzierung Card */
.dv-left .dv-bp-card{ grid-column: 1; justify-self: end; }
.dv-right .dv-bp-card{ grid-column: 3; justify-self: start; }

/* =========================================================
   FOTO – 4:3 quer / 3:4 hoch (ratio-basiert)
   ========================================================= */
.dv-bp-photo{
  grid-column: 3;
  align-self: center;
  width: min(520px, 100%);

  aspect-ratio: 4 / 3;        /* ✅ Querformat */
  position: relative;
  overflow: hidden;

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.32);
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
}

/* Hochkant = 3:4 */
.dv-bp-photo.is-portrait{
  aspect-ratio: 3 / 4;        /* ✅ Hochformat */
}

/* Bild füllt den Rahmen */
.dv-bp-photo img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Platzhalter */
.dv-bp-photo-placeholder{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Airstrike", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  opacity: .6;
}

/* Gegenüberstellung */
.dv-left .dv-bp-photo{
  grid-column: 3;
  justify-self: start;
}

.dv-right .dv-bp-photo{
  grid-column: 1;
  justify-self: end;
}

/* Card & Foto immer gleiche Zeile */
.dv-bp-item .dv-bp-card,
.dv-bp-item .dv-bp-photo{
  grid-row: 1;
  align-self: center;
}

/* =========================================================
   OUTRO
   ========================================================= */
.dv-bp-outro{
  width: min(1100px, 92vw);
  margin: 60px auto 0;
  display: flex;
  justify-content: center;
}

.dv-bp-outro .dv-bp-card{
  max-width: 640px;
  width: 100%;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}

.dv-bp-outro .dv-bp-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(255,255,255,.18);
}

/* Instagram-Link */
.dv-bp-iglink{
  color: var(--btn-bg);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dv-bp-iglink:hover{
  text-decoration: underline;
  text-shadow: 0 0 12px var(--accent-glow);
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.dv-bp-nav{
  margin-top: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.dv-bp-backbtn,
.dv-bp-navbtn{
  color: #000000;
  background: var(--btn-bg);
  border: 2px solid var(--btn-bg);
  font-family: "Airstrike", sans-serif;
  text-transform: uppercase;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 50px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}

.dv-bp-backbtn:hover,
.dv-bp-navbtn:hover{
  background: var(--btn-bg-hover);
  border-color: var(--btn-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--accent-glow);
}

.dv-bp-navbtn--disabled{
  opacity: .35;
  pointer-events: none;
}

/* =========================================================
   MOBILE FIX: alles zentriert + Bilder ohne Crop
   ========================================================= */
@media (max-width: 640px){

  /* Container etwas entspannen */
  .dv-buildproject{
    width: 100%;
    padding: 22px 0 60px;
  }

  /* Hero kompakter + zentriert */
  .dv-bp-hero{
    width: calc(100% - 32px);
    margin: 0 auto 26px;
  }

  .dv-bp-hero-inner{
    padding: 22px 18px;
    text-align: center;
  }

  .dv-bp-title{
    letter-spacing: 3px;
  }

  /* Timeline auf Mobile: alles untereinander */
  .dv-bp-timeline{
    width: calc(100% - 32px);
    padding: 24px 0 10px;
  }

  /* Linie & Dots aus – sonst wirkt es versetzt */
  .dv-bp-line,
  .dv-bp-dot{
    display: none !important;
  }

  .dv-bp-item{
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0 0 22px;
  }

  /* Card immer fullwidth, zentriert */
  .dv-left .dv-bp-card,
  .dv-right .dv-bp-card{
    grid-column: 1;
    justify-self: center;
    width: 100%;
    max-width: 560px;
    text-align: center;
  }

  /* Foto immer direkt darunter, zentriert */
  .dv-left .dv-bp-photo,
  .dv-right .dv-bp-photo{
    grid-column: 1;
    justify-self: center;
    width: 100%;
    max-width: 560px;
  }

  /* Bild darf NICHT abgeschnitten werden */
  .dv-bp-photo img{
    object-fit: contain !important;  /* ✅ nichts verschwindet */
    background: rgba(0,0,0,.55);    /* Balken wirken wie Style, nicht wie Fehler */
  }

  /* Optional: Wenn du auf Mobile lieber "mehr Höhe" willst */
  .dv-bp-photo{
    aspect-ratio: 4 / 3;            /* Quer bleibt sauber */
  }

  .dv-bp-photo.is-portrait{
    aspect-ratio: 3 / 4;            /* Hochkant bleibt sichtbar */
  }

  /* Outro + Nav zentrieren */
  .dv-bp-outro{
    width: calc(100% - 32px);
    margin: 34px auto 0;
  }

  .dv-bp-nav{
    width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
  }

}
/* =========================================================
   MOBILE: Bilder komplett sichtbar (kein Crop)
   ========================================================= */
@media (max-width: 640px){

  /* Timeline-Items untereinander + zentriert */
  .dv-bp-line,
  .dv-bp-dot{
    display: none !important;
  }

  .dv-bp-item{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin: 0 0 22px !important;
  }

  .dv-left .dv-bp-card,
  .dv-right .dv-bp-card{
    grid-column: 1 !important;
    justify-self: center !important;
    width: 100% !important;
    text-align: center !important;
  }

  .dv-left .dv-bp-photo,
  .dv-right .dv-bp-photo{
    grid-column: 1 !important;
    justify-self: center !important;
    width: 100% !important;
  }

  /* WICHTIG: nicht mehr croppen */
  .dv-bp-photo img{
    object-fit: contain !important;  /* ✅ nichts verschwindet */
    background: rgba(0,0,0,.55);     /* Balken wirken wie gewollt */
  }

  /* Rahmen-Höhe anheben, damit "contain" nicht zu klein wird */
  .dv-bp-photo{
    aspect-ratio: 16 / 10 !important;
  }

  .dv-bp-photo.is-portrait{
    aspect-ratio: 4 / 5 !important;
  }
}
/* =========================================================
   MOBILE v2: Abstand zum Rand + kein Überdecken von Text
   ========================================================= */
@media (max-width: 640px){

  /* Globaler Seitenabstand */
  .dv-buildproject{
    width: 100% !important;
    margin: 0 auto !important;
    padding: 18px 0 60px !important;
  }

  /* Hero / Titel-Box soll nicht am Rand kleben */
  .dv-bp-hero{
    width: auto !important;
    margin: 0 16px 22px !important;
  }

  .dv-bp-hero-inner{
    padding: 20px 16px !important;
    text-align: center !important;
  }

  /* Timeline Container mit Seitenabstand */
  .dv-bp-timeline{
    width: auto !important;
    margin: 0 16px !important;
    padding: 18px 0 8px !important;
  }

  /* Linie & Dots aus – sonst wirkt es versetzt */
  .dv-bp-line,
  .dv-bp-dot{
    display: none !important;
  }

  /* Item: alles untereinander */
  .dv-bp-item{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin: 0 0 22px !important;
  }

  /* Card immer oben, Foto immer darunter */
  .dv-left .dv-bp-card,
  .dv-right .dv-bp-card{
    grid-column: 1 !important;
    grid-row: 1 !important;               /* ✅ Card zuerst */
    justify-self: stretch !important;
    max-width: none !important;
    width: 100% !important;
    text-align: center !important;
  }

  .dv-left .dv-bp-photo,
  .dv-right .dv-bp-photo{
    grid-column: 1 !important;
    grid-row: 2 !important;               /* ✅ Foto darunter */
    justify-self: stretch !important;
    width: 100% !important;
    margin-top: 0 !important;
  }

  /* Card braucht Luft nach unten, damit nichts "reinragt" */
  .dv-bp-card{
    padding: 16px 16px 18px !important;
  }

  .dv-bp-h{
    margin-bottom: 8px !important;
  }

  .dv-bp-p{
    line-height: 1.65 !important;
  }

  /* Bild: auf Mobile NICHT cropen (nix verschwindet) */
  .dv-bp-photo img{
    object-fit: contain !important;
    background: rgba(0,0,0,.55);
  }

  /* Rahmen/Höhe: damit contain nicht zu klein wirkt */
  .dv-bp-photo{
    aspect-ratio: 16 / 10 !important;
  }

  .dv-bp-photo.is-portrait{
    aspect-ratio: 4 / 5 !important;
  }

  /* Outro / Nav ebenfalls mit Seitenabstand */
  .dv-bp-outro{
    width: auto !important;
    margin: 28px 16px 0 !important;
  }

  .dv-bp-nav{
    width: auto !important;
    margin: 18px 16px 0 !important;
    gap: 10px !important;
  }

}
/* =========================================================
   MOBILE: Abstand zum fixen Header
   ========================================================= */
@media (max-width: 640px){

  /* Höhe deines Headers ausgleichen */
  .dv-buildproject{
    padding-top: 86px !important;
  }

}
/* =========================================================
   MOBILE: Hochkantbilder – Rahmen passt sich an Bild an
   ========================================================= */
@media (max-width: 640px){

  /* Foto-Container nicht auf feste Ratio zwingen */
  .dv-bp-photo{
    aspect-ratio: auto !important;
    height: auto !important;
    overflow: hidden !important;
  }

  /* Bild soll vollständig sichtbar sein und die Höhe bestimmen */
  .dv-bp-photo img{
    width: 100% !important;
    height: auto !important;        /* ✅ Rahmen wächst mit */
    object-fit: initial !important; /* ✅ kein Crop/Contain nötig */
    display: block !important;
    background: transparent !important;
  }

  /* Optional: verhindere "zu lange" Bilder */
  .dv-bp-photo img{
    max-height: 72vh;               /* ✅ Begrenzung, wirkt hochwertig */
    object-fit: contain !important; /* falls max-height greift, bleibt alles sichtbar */
  }

}
/* =========================================================
   MOBILE: Hochkant nicht riesig (komplett sichtbar)
   ========================================================= */
@media (max-width: 640px){

  /* Querformat kann 1:1 bleiben (wenn du willst) */
  .dv-bp-photo{
    aspect-ratio: 1 / 1 !important;
  }

  /* Hochkant: dynamisch, aber begrenzt */
  .dv-bp-photo.is-portrait{
    aspect-ratio: auto !important;
    height: auto !important;
  }

  .dv-bp-photo.is-portrait img{
    width: 100% !important;
    height: auto !important;
    max-height: 55vh !important;        /* ✅ macht es deutlich kleiner */
    object-fit: contain !important;     /* ✅ nix wird abgeschnitten */
    display: block !important;
    background: rgba(0,0,0,.55);        /* ✅ Balken wirken wie Style */
  }

}
/* =========================================================
   MOBILE: Rahmen passt sich Bild an (kein Crop, kaum Balken)
   ========================================================= */
@media (max-width: 640px){

  .dv-bp-photo{
    aspect-ratio: auto !important;
    height: auto !important;
  }

  .dv-bp-photo img{
    width: 100% !important;
    height: auto !important;
    object-fit: initial !important;  /* ✅ normales Bildverhalten */
    display: block !important;
    max-height: 65vh;                /* ✅ verhindert riesige Portraits */
  }
}

