/***************PROJEKTE SEITE STILE SB*********************/
/* ================= Hero / Projektteaser Container ================= */
.projektteaser {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* content at bottom */
  align-items: flex-start;
  position: relative;
  width: 100%;
  max-width: 100%;
  height: min(90vw, 90vh);
  margin-bottom: 70px;
  padding: 0 22px;
  overflow: hidden;
  /* hides scaling bg */
  background: no-repeat center center;
  background-size: cover;
}

/* Ultra-wide ≥2048px */
@media (min-width: 2048px) {
  .projektteaser {
    padding-left: 1.074vw;
    padding-right: 1.074vw;
  }
}

/* Medium devices ≤996px */
@media (max-width: 996px) {
  .projektteaser {
    height: 66.6667vw;
    /* slightly smaller height for tablets */
    margin-bottom: 50px;
    padding: 0 20px;
  }
}

/* Small devices ≤768px */
@media (max-width: 768px) {
  .projektteaser {
    height: 66.6667vw;
    /* same as mobile base */
    margin-bottom: 30px;
    padding: 0 21px;
  }
}

/* ================= Background Layer ================= */
.projektteaser-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: center/cover no-repeat;
  z-index: 1;
  will-change: transform;
  transform: scale(1.05);
}

/* ================= Info Panel ================= */
.projektteaser-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  /* desktop default */
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 10px 30px 20px 30px;
  background-color: #fff;
  color: #000;
  backface-visibility: hidden;
  /* transform: translateY(100%) translateZ(0); */
  will-change: transform;
  border-bottom: 3px solid #fff;
  /* same as background */
  max-width: calc(90% - 2.2px);
  margin-left: calc(5% + 1.1px);
  /* top: -200px; */
}

/* Ultra-wide ≥2048px adjustments */
@media (min-width: 2048px) {
  .projektteaser-info {
    /* min-height: 8.3vw; */
    /* max-height: 8.3vw; */
    /* padding: 2.44vw; */
  }
}

/* Medium devices ≤996px */
@media (max-width: 996px) {
  .projektteaser-info {
    /* padding: 25px 20px 30px 20px; */
  }
}

/* Small devices ≤768px */
@media (max-width: 768px) {
  .projektteaser-info {
    padding: 0px;
  }
}

/* ================= Text Styling ================= */
.projektteaser-title {
  font-size: 70px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.125rem;
  margin: 0 0 15px 0;
  opacity: 0;
}

.projektteaser-text {
  font-size: 14px;
  letter-spacing: 4px;
  line-height: 1.6;
  color: #333;
  text-transform: uppercase;
  max-width: 720px;
  margin: 15px 0 15px 4px;
}

@media (max-width: 996px) {
  .projektteaser-title {
    font-size: 60px;
    margin: 0 0 15px 0;
  }
}

@media (max-width: 768px) {
  .projektteaser-title {
    font-size: 50px;
    margin: 0 0 15px 0;
    opacity: 1;
  }
}

/* ====================== PROJEKT INTRO TEXTBLÖCKE ====================== */
.projekt-intro-section {
  padding: 10px 0 100px 0;
  /* vertical spacing */
}

.projektintro {
  text-align: left;
  /* desktop left-aligned text */
  margin-bottom: 140px;
  /* adds spacing below the intro text */
}

.projektintro-text {
  font-size: 19px;
  line-height: 1.45;
  color: #555;
  margin: 30px 0 30px 0;
}

.projektdaten-item {
  display: flex;
  justify-content: flex-start;
  /* align items horizontally */
  margin-bottom: 12px;
  /* spacing between rows */
  text-transform: uppercase;
}

.projektdaten-label {
  flex: 0 0 125px;
  /* fixed width for all labels */
  font-weight: 400;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 3px;
  font-size: 14px;
  line-height: 1.4;
}

.projektdaten-value {
  flex: 1;
  /* take remaining space */
  font-weight: 400;
  color: #555;
  font-size: 14px;
  line-height: 1.4;
}

.projektdaten-value a {
  color: #555;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.projektdaten-value a:hover {
  opacity: 1;
  color: #222;
}

/* Optional: separator between rows */
.projektdaten-item+.projektdaten-item {
  border-top: 1px solid #eee;
  padding-top: 8px;
  margin-bottom: 8px;
}

@media (max-width: 767px) {
  .projektdaten-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .projektdaten-label {
    margin-bottom: 4px;
    flex: none;
    /* remove fixed width */
  }
}

/* ====================== PROJEKT HIGHLIGHTS STYLES ====================== */
.highlights-section {
  background: #111;
  padding: 180px 0;
  overflow: hidden;
}

.highlight-img-wrapper {
  overflow: hidden;
  margin-bottom: 30px;
}

.highlight-img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.22);
  /* DELETE this line → clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); */
  /* also delete → transition: clip-path 0.01s; */
}

.highlight-text {
  padding: 0 20px 0 0;
  /* max-width: 560px; */
  max-width: 80%;
}

.right-align-column {
  text-align: right;
  /* aligns inline/block content to right */
}

.right-align-column .highlight-text {
  padding: 0 0 0 20px;
  display: inline-block;
  /* makes the text container shrink to content width */
  text-align: right;
  /* ensures the paragraph aligns inside the container */
}

.highlight-caption {
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
}

.highlight-paragraph {
  font-size: 16px;
  line-height: 1.45;
  color: #555;
  margin: 12px 0;
}

@media (max-width: 996px) {
  .highlight-paragraph {
    font-size: 16px;
    line-height: 1.35;
    margin: 12px 0;
  }
}

@media (max-width: 768px) {
  .highlight-text {
    text-align: center !important;
    max-width: 100%;
    padding: 0;
  }

  .right-align-column .highlight-text {
    padding: 0;

  }

  .highlight-item>div {
    margin-bottom: 120px;
  }

  .highlight-img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1);
    /* DELETE this line → clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); */
    /* also delete → transition: clip-path 0.01s; */
  }

}

/* ====================== PROJEKT UNIPOINTS ====================== */
#projektunipoints {
  position: relative;
  width: 100%;
  /* max-width: 80%; */
  /* height: calc(100vw * 1.3); */
  aspect-ratio: 10 / 13;
  /* replaces height: calc(100vw * 1.3) */
  max-height: 1400px;
  overflow: hidden;
  background: #111;
}

/* Parallax group */
.projektunipoints-parallax-group {
  position: absolute;
  /* top: 0; */
  inset: 0;
  margin: auto;
  /* width: 90vw; */
  width: 90%;
  /* height: calc(90vw * 1.5); */
  aspect-ratio: 2 / 3;
  /* replaces height: calc(90vw * 1.5) */
  left: 40%;
  transform: translateX(-50%);
  max-width: 1300px;
  background-size: cover;
  background-position: center center;
  */
}

.projektunipoints-image {
  width: 100%;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  /* image below points */
  position: absolute;
  top: 0;
  left: 0;
  /* transform: translate(-50%, -50%); */
  display: inline-block;
}

.projektunipoints-point {
  position: absolute;
  text-shadow: 0 1px 30px rgba(0, 0, 0, 0.99);
  color: #fff;
  margin-left: 0px;
  pointer-events: none;
  transform: translateY(20px);
  z-index: 10;
}

/* Typography */
.pup-headline {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.pup-subline {
  max-width: 150px;
  font-size: 18px;
  letter-spacing: 0.015rem;
  font-weight: 400;
  line-height: 1.2;
  margin-top: 6px;
  color: #fff;
}

.projektunipoints-point.right-align {
  text-align: right;
}

.projektunipoints-point.right-align .pup-line {
  transform-origin: left center;
  /* line grows to the right */
}

.pup-line {
  position: absolute;
  height: 1px;
  background: #666;
  transform-origin: left center;
  /* for right-opening lines */
  transform: scaleX(0);
  /* initially hidden */
}

/* @media (min-width: 1900px) {
  .projektunipoints-parallax-group {

  height: calc(90vw * 1.1);
  }
  #projektunipoints {
    height: calc(60vw * 1.3) !important ;
    max-height: 1400px !important;
  }
} */
@media (max-width: 767px) {
  .projektunipoints-point {
    transform: translateY(-5px);

    margin-left: 10px;

  }

  .pup-line {
    transform: scaleX(0.5);
  }
}

/* Specific directions */
.projektunipoints-point1 .pup-line {
  transform-origin: right center;
}

/* opens left */
.projektunipoints-point2 .pup-line {
  transform-origin: right center;
}

/* opens right */
.projektunipoints-point3 .pup-line {
  transform-origin: left center;
}

/* opens left */
/* ====================== MOODBOARD SECTION ====================== */
/* --- YOUR ORIGINAL CSS (unchanged except where noted) --- */
.dark-bg-moodboard {
  background: #111;
  /* dark mood */
}

.mooadboard {
  background: #111;
  /* dark mood */
  color: #fff;
  padding: 100px 0 300px;
  overflow: hidden;
  position: relative;
}

.moodboard__headline {
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 400;
  padding: 0 0 80px;
  line-height: 1.2;
  /* text-align: center; */
  margin: 0;
  /* text-transform: uppercase; */
  opacity: 1;
  /* IMPORTANT: mask handles reveal */
  transform: none;
  /* remove GSAP fade-up transform */
  position: relative;
  /* needed for mask system */
  z-index: 2;
}

/* --- NEW: Reveal wrapper + moving mask --- */
.reveal-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  overflow: hidden;
  text-align: left;
}

.reveal-mask {
  position: absolute;
  top: 0;
  left: -100%;
  /* start offscreen left */
  width: 200%;
  height: 100%;
  background-image: linear-gradient(to right,
      #111 50%,
      /* dark over text */
      rgba(17, 17, 17, 0) 100%
      /* soft transparent edge */
    );
  pointer-events: none;
  z-index: 3;
}

/* Responsive fine-tuning */
@media (max-width: 767px) {
  .mooadboard {
    padding: 180px 0 180px;
  }

  .moodboard__headline {
    font-size: 14px;
  }

  .reveal-mask {
    position: absolute;
    top: 0;
    left: 100%;
    /* start offscreen left */
    width: 200%;
    height: 100%;
    background-image: linear-gradient(to right,
        #111 50%,
        /* dark over text */
        rgba(17, 17, 17, 0) 100%
        /* soft transparent edge */
      );
    pointer-events: none;
    z-index: 3;
  }
}

/* ====================== PROJEKT MOODBOARD SECTION ====================== */
.doublerow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  /* margin-bottom: 40px; */
}

/* Only add gap between images */
.gap-right {
  margin-right: 20px;
}

.gap-left {
  margin-left: 20px;
}

@media (max-width: 992px) {
  .gap-right {
    margin-right: 10px;
  }

  .gap-left {
    margin-left: 10px;
  }
}

@media (max-width: 776px) {
  .gap-right {
    margin-right: 0px;
    padding-right: 15px;
  }

  .gap-left {
    margin-left: 0px;
    
        padding-left: 15px;
        margin-right: 0px;
  }
  .doublerow {
    display: block ;
  }
}

.singlerow {}

.img-wrap-pro {
  position: relative;
  width: 100%;
  height: auto;
  /* adjust crop height */
  overflow: hidden;
}

.img-wrap-pro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  /* start zoomed in */
  transition: transform 0.1s linear;
  will-change: transform;
}

/*HEADING PROJEKTTEASER WEITERE SB 2025 */
h3.headingprojekteteaser {
  color: #000;
  font-size: 20px;
  text-transform: uppercase;
  font-weight: 400;
  font-style: normal;
  margin: 0 0 20px;
  padding-bottom: 10px;
  position: relative;
  overflow: hidden;
  vertical-align: middle;
  font-family: "Lato", sans-serif;
}

h3.headingprojekteteaser:after {
  position: relative;
  left: 18px;
  content: "";
  display: inline-block;
  width: 200%;
  vertical-align: middle;
  height: .50em;
  margin: 0 -200% 0 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
