/* =========================================================================
   03b-hero.css — Hero-Komponente (geteilt von allen Page-Templates)
   ========================================================================= */

.mat-hero {
  background: var(--c-dark);
  color: var(--c-white);
  padding: 0;
}

.mat-hero__inner {
  position: relative;
  max-width: none;
  padding: 0;
}

/* Topbar mit Hamburger oben rechts */
.mat-hero__topbar {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 5;
}

.mat-hero__menu {
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--c-dark);
  transition: background var(--dur-base) var(--ease);
}

.mat-hero__menu img { width: 24px; height: 20px; display: block; }
.mat-hero__menu:hover { background: var(--c-white); }

/* Bild-Stage */
.mat-hero__stage {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.mat-hero__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  background: var(--c-dark);
}

.mat-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ----- Hero-Slider (Startseite): Slides überlagert, Crossfade ----- */
.mat-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms var(--ease);
}

.mat-hero__slide.is-active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .mat-hero__slide { transition: none; }
}

/* Kontrast-Overlay: dunkelt oben (Hamburger) und unten (Arztname) leicht ab,
   damit der weiße Text auf dem hellen Foto lesbar bleibt. */
.mat-hero__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(34, 39, 37, 0.22) 0%,
    rgba(34, 39, 37, 0) 22%,
    rgba(34, 39, 37, 0) 58%,
    rgba(34, 39, 37, 0.62) 100%
  );
}

/* M-Wasserzeichen zentriert über dem Bild (Link zur Startseite). */
.mat-hero__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(160px, 18vw, 280px);
  height: auto;
  z-index: 2;
  display: block;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.25));
}

.mat-hero__watermark img {
  width: 100%;
  height: auto;
  display: block;
}

/* Banner-Variante (Startseite): websitebanner-claim.svg = M + beide Claims.
   Die SVG ist eng beschnitten (die alte PNG hatte ~37% transparenten Rand),
   daher schmalere Breite für dieselbe optische Größe. */
.mat-hero__watermark--banner {
  width: min(800px, 59vw);
}

/* Claim-Variante der Hero-Bildfläche (Archiv + Behandlung ohne Foto):
   Vektor-Claim zentriert statt Foto — contain statt cover, sonst würde die
   breite SVG seitlich beschnitten. Padding steuert die optische Größe. */
.mat-hero__image--claim {
  object-fit: contain;
  padding-inline: 18.5%;
}

/* Claim links und rechts, mittig vertikal */
.mat-hero__claim {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--t-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-white);
  margin: 0;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.mat-hero__claim--left  { left:  10%; }
.mat-hero__claim--right { right: 10%; }

@media (max-width: 768px) {
  .mat-hero__claim {
    position: static;
    transform: none;
    text-align: center;
    margin-block: var(--space-2);
  }
}

/* Footer im Hero: Arzt-Name + Subtitle unten links */
.mat-hero__name {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  z-index: 3;
  color: var(--c-white);
  max-width: 70%;
}

.mat-hero__doc {
  /* Größer, damit der Name am Bildschirm sofort ins Auge fällt
     (Kundenfeedback 2026-07-15; vorher clamp(20px, 2.2vw, 28px)). */
  font-size: clamp(24px, 3vw, 42px);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-white);
  margin: 0 0 var(--space-1);
}

.mat-hero__title {
  font-size: var(--t-meta);
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

@media (max-width: 640px) {
  .mat-hero__name { position: static; padding: var(--space-3); max-width: 100%; }
}

/* Headline-Overrides: alle Hero-Headlines in jeder Page weiß forcieren
   (Spezifitäts-Boost gegen body.l-body h2 aus 04-overrides.css) */
.l-body .mat-hero h1,
.l-body .mat-hero h2,
.l-body .mat-hero h3,
.l-body .mat-hero .mat-hero__doc {
  color: var(--c-white);
}
