/*
 * Titelbild nach dem Aufbau von kanzlei-renner.de.
 * Inhalt und Farbwelt der Reiserechtsseite bleiben unverändert; angepasst
 * werden nur Rahmen, Bildausschnitt und responsive Anordnung.
 */

.hero {
  position: relative;
  isolation: isolate;
  display: block;
  width: min(1320px, calc(100% - 48px));
  min-height: clamp(600px, 78svh, 820px);
  margin: 28px auto 0;
  padding: 0;
  overflow: hidden;
  border-radius: 32px;
  background: #ecebe7;
  box-shadow: 0 22px 70px rgba(3, 44, 66, .13);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.hero-visual > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 25% center !important;
  background: #ecebe7;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(238, 243, 246, .25) 0%,
      rgba(238, 243, 246, .08) 38%,
      rgba(238, 243, 246, 0) 62%),
    linear-gradient(0deg, rgba(3, 44, 66, .10), transparent 34%);
}

.hero-copy {
  position: absolute;
  top: 50%;
  left: clamp(34px, 6.4vw, 88px);
  z-index: 2;
  display: flex;
  width: min(40%, 520px);
  min-height: 0;
  margin: 0;
  padding: clamp(30px, 3.4vw, 48px);
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 22px;
  background: linear-gradient(110deg,
    rgba(2, 44, 66, .84) 0%,
    rgba(2, 44, 66, .72) 70%,
    rgba(2, 44, 66, .59) 100%);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  box-shadow: 0 24px 70px rgba(2, 44, 66, .24);
}

.hero-copy h1 {
  margin: 16px 0 22px;
  color: var(--white);
  font-size: clamp(2.55rem, 4vw, 4.65rem);
  line-height: .98;
  text-shadow: 0 2px 18px rgba(2, 44, 66, .18);
}

.hero-copy > p {
  color: rgba(255, 255, 255, .86);
}

.hero-copy .hero-actions {
  margin-top: 28px;
}

.hero-copy .hero-location {
  margin-top: 24px !important;
  color: rgba(255, 255, 255, .78);
  font-size: .9rem;
  line-height: 1.5;
}

.ai-image-notice--hero {
  display: block;
  width: min(1320px, calc(100% - 48px));
  margin: 11px auto 0;
  padding: 0 8px;
  border: 0;
  background: transparent;
  font-size: .76rem;
  line-height: 1.45;
}

/* Notebook und Querformat-Tablet: kompakter, die Hand bleibt rechts frei. */
@media (min-width: 821px) and (max-width: 1100px) {
  .hero {
    width: calc(100% - 36px);
    min-height: clamp(620px, 76svh, 740px);
    margin-top: 20px;
    border-radius: 28px;
  }

  .hero-copy {
    left: 28px;
    width: min(46%, 500px);
    padding: 30px;
  }

  .hero-copy h1 {
    font-size: clamp(2.45rem, 5.2vw, 4rem);
  }

  .ai-image-notice--hero {
    width: calc(100% - 36px);
  }
}

/* iPad-Hochformat: Bild bleibt vollflächig, die Hand liegt rechts vom Text. */
@media (min-width: 701px) and (max-width: 820px) {
  .hero {
    width: calc(100% - 28px);
    min-height: 720px;
    margin-top: 18px;
    border-radius: 28px;
  }

  .hero-visual {
    position: absolute;
    inset: 0;
  }

  .hero-visual > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 31% center !important;
  }

  .hero-visual::after {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(238, 243, 246, .18), transparent 55%),
      linear-gradient(0deg, rgba(3, 44, 66, .13), transparent 42%);
  }

  .hero-copy {
    top: 34px;
    left: 26px;
    width: min(52%, 410px);
    padding: 28px;
    transform: none;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 6.8vw, 3.65rem);
  }

  .hero-copy .hero-actions {
    align-items: stretch;
    margin-top: 24px;
  }

  .hero-copy .primary-button {
    width: 100%;
  }

  .ai-image-notice--hero {
    width: calc(100% - 28px);
    margin-top: 10px;
    padding: 0 8px;
  }
}

/* Smartphone: dieselbe hohe Bildwirkung wie im Vorbild. Das Foto wird am
 * unteren Rand verankert; die Hand bleibt rechts neben dem Textfenster frei. */
@media (max-width: 700px) {
  .hero {
    display: block;
    width: calc(100% - 20px);
    min-height: 720px;
    margin: 18px auto 0;
    padding: 0;
    border-radius: 25px;
  }

  .hero-visual {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .hero-visual > img {
    position: absolute;
    inset: auto auto 0 0;
    width: auto;
    max-width: none;
    height: 65%;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center center !important;
    transform: translateX(-30.8%);
  }

  .hero-visual::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background:
      linear-gradient(180deg,
        rgba(238, 243, 246, .18) 0%,
        rgba(238, 243, 246, .06) 47%,
        rgba(3, 44, 66, .10) 100%);
  }

  .hero-visual::before {
    content: none;
    display: none;
  }

  .hero-copy {
    position: absolute;
    top: 18px;
    left: 14px;
    order: initial;
    width: 76%;
    min-height: 0;
    margin: 0;
    padding: 22px 20px 21px;
    transform: none;
    border-radius: 18px;
    background: linear-gradient(120deg,
      rgba(2, 44, 66, .88) 0%,
      rgba(2, 44, 66, .76) 72%,
      rgba(2, 44, 66, .62) 100%);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .hero-copy .eyebrow {
    font-size: .66rem;
  }

  .hero-copy h1 {
    margin: 12px 0 16px;
    font-size: clamp(2rem, 10.6vw, 2.75rem);
    line-height: .98;
  }

  .hero-copy > p {
    font-size: .9rem;
    line-height: 1.42;
  }

  .hero-copy .hero-actions {
    margin-top: 19px;
  }

  .hero-copy .primary-button {
    width: 100%;
    min-height: 50px;
    padding: 11px 16px;
    font-size: .86rem;
    line-height: 1.25;
  }

  .hero-copy .hero-location {
    margin-top: 18px !important;
    font-size: .76rem;
    line-height: 1.4;
  }

  .ai-image-notice--hero {
    width: calc(100% - 20px);
    margin: 10px auto 0;
    padding: 0 8px;
    border: 0;
    background: transparent;
    font-size: .72rem;
    line-height: 1.45;
  }
}

@media (max-width: 380px) {
  .hero {
    min-height: 740px;
  }

  .hero-copy {
    left: 12px;
    width: 76%;
    padding: 20px 17px;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 10.3vw, 2.35rem);
  }
}
