/* =================================================
   SHARED: Media Credit (Card + Hero)
================================================= */
.vdw-media-credit,
.vdw-card__credit{
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  pointer-events: none;

  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 9px;
  letter-spacing: .4px;
  color: rgba(255,255,255,.85);

  padding: 6px 4px;
  border-radius: 8px;
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
}

/* =================================================
   CARD
================================================= */
.vdw-card{
  position: relative;
  overflow: hidden;
  color: #fff;

  background-size: cover;
  background-position: center;
  transition: transform .22s ease, box-shadow .22s ease;
}

/* Overlay */
.vdw-card__overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity .22s ease;
}

.vdw-overlay-solid .vdw-card__overlay{
  background: var(--vdw-overlay-color, #000);
  opacity: var(--vdw-overlay-alpha, .35);
}

.vdw-overlay-gradient .vdw-card__overlay{
  background: linear-gradient(
    to top,
    var(--vdw-overlay-color, #000) 0%,
    var(--vdw-overlay-color, #000) 28%,
    rgba(0,0,0,0) 75%
  );
  opacity: var(--vdw-overlay-alpha, .35);
}

/* Content */
.vdw-card__content{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;

  padding: 32px 32px 36px;
  max-width: 560px;
}

.vdw-card__title{
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.15;
  font-weight: 700;
}

.vdw-card__desc{
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  max-width: 44ch;
  opacity: .92;
}

/* Link overlay */
.vdw-card__link{
  position: absolute;
  inset: 0;
  z-index: 4;
}

/* Hover */
.vdw-hover-lift:hover{
  transform: translateY(calc(var(--vdw-hover-intensity, 8px) * -1));
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.vdw-hover-zoom:hover{
  transform: scale(1.03);
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
}
.vdw-hover-lift_zoom:hover{
  transform: translateY(calc(var(--vdw-hover-intensity, 8px) * -1)) scale(1.02);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.vdw-hover-lift:hover .vdw-card__overlay,
.vdw-hover-zoom:hover .vdw-card__overlay,
.vdw-hover-lift_zoom:hover .vdw-card__overlay{
  opacity: min(1, calc(var(--vdw-overlay-alpha, .35) + .15));
}

/* =================================================
   HERO
================================================= */
/* =================================================
   HERO (Block horizontal ausrichten, Text nur je nach Align)
================================================= */
.vdw-hero{
  position: relative;
  width: 100%;
  min-height: 540px;
  overflow: hidden;
  color: #fff;

  background-size: cover;
  background-position: center;
}

/* Overlay */
.vdw-hero__overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--vdw-overlay-color, #000);
  opacity: var(--vdw-overlay-alpha, .45);
}

/* Inner: voller Bereich mit Padding, vertikal zentriert */
.vdw-hero__inner{
  position: relative;
  z-index: 2;
  min-height: inherit;

  display: flex;
  align-items: center;      /* vertikal */
  padding: 64px;
}

/* Content Block: Breite + max, aber Textausrichtung NICHT hier festnageln */
.vdw-hero__content{
  width: var(--vdw-hero-content-width, 60%);
  max-width: 1100px;
}

/* Align-Varianten: Block-Position + Textausrichtung */
.vdw-hero[data-align="flex-start"] .vdw-hero__inner{
  justify-content: flex-start; /* Block links */
  text-align: left;            /* Text links */
}

.vdw-hero[data-align="center"] .vdw-hero__inner{
  justify-content: center;     /* Block mittig */
  text-align: center;          /* Text mittig */
}

.vdw-hero[data-align="flex-end"] .vdw-hero__inner{
  justify-content: flex-end;   /* Block rechts */
  text-align: right;           /* Text rechts */
}

/* Klickfläche */
.vdw-hero__link{
  position: absolute;
  inset: 0;
  z-index: 4;
}

/* Typo */
.vdw-hero__eyebrow{
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.3;
  opacity: .9;
}
.vdw-hero__headline{
  margin: 0;
  font-size: 56px;
  line-height: 1.1;
  font-weight: 700;
}
.vdw-hero__subline{
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.45;
  opacity: .92;
  max-width: 60ch;
}

/* Block mittig, Text links (robust gegen Elementor) */
.vdw-hero .vdw-hero__inner{
  display: flex !important;
  align-items: center;
  justify-content: center !important;  /* Block in die Mitte */
}

/* Text innerhalb des Blocks links */
.vdw-hero .vdw-hero__content{
  text-align: left !important;
}

/* Falls Elementor einzelne Überschriften/Container zentriert: auch die hart links */
.vdw-hero .vdw-hero__eyebrow,
.vdw-hero .vdw-hero__headline,
.vdw-hero .vdw-hero__subline{
  text-align: left !important;
}


/* Responsive */
@media (max-width: 1024px){
  .vdw-hero__headline{ font-size: 42px; }
  .vdw-hero__eyebrow{ font-size: 20px; }
}

@media (max-width: 767px){
  .vdw-hero{ min-height: 420px; }
  .vdw-hero__inner{ padding: 20px; }
  .vdw-hero__content{ width: 100%; }
  .vdw-hero__headline{ font-size: 30px; }
  .vdw-hero__eyebrow{ font-size: 16px; }
}



/* =================================================
   Responsive
================================================= */
@media (max-width: 1024px){
  .vdw-card__title{ font-size: 22px; }
  .vdw-card__desc{ font-size: 15px; }

  .vdw-hero__headline{ font-size: 42px; }
  .vdw-hero__eyebrow{ font-size: 20px; }
}

@media (max-width: 767px){
  .vdw-card__content{ padding: 20px; }
  .vdw-card__title{ font-size: 18px; }
  .vdw-card__desc{
    font-size: 14px;
    max-width: 100%;
  }

  .vdw-hero{
    min-height: 420px;
    --vdw-hero-side-padding: 20px;
  }

  .vdw-hero__content{
    width: 100%;
  }

  .vdw-hero__headline{ font-size: 30px; }
  .vdw-hero__eyebrow{ font-size: 16px; }
}
