/* Kritische Layout-Fixes */

/* Kein unsichtbarer Main beim Laden */
.page-transition {
  opacity: 1;
  transform: none;
}

/* Hero */
.hero--premium {
  position: relative;
  display: block;
  min-height: clamp(480px, 85vh, 680px);
}
.hero--premium .hero__media,
.hero--premium .hero__overlay,
.hero--premium .hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero--premium .hero__inner {
  position: relative;
  z-index: 2;
}

/* Location pin */
.location-pin {
  position: relative;
  flex-shrink: 0;
}

/* Map block – direkt eingebettet */
.map-block {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  box-shadow: var(--shadow-md);
}
.map-block--live .map-frame--live {
  min-height: 320px;
  background: #e5e5e5;
}
.map-block--live .map-frame--live iframe {
  width: 100%;
  height: clamp(280px, 42vw, 420px);
  border: 0;
  display: block;
}
.map-block__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
}
.map-block__pin-label {
  color: var(--color-text-muted);
  font-weight: 600;
}
.map-block__external {
  font-weight: 700;
  text-decoration: none;
  color: var(--color-accent);
}
.map-block__external:hover {
  text-decoration: underline;
}

/* Location showcase grid */
.location-showcase {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 900px) {
  .location-showcase {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .main-nav__item--has-sub:hover,
  .main-nav__item--has-sub:focus-within {
    z-index: 130;
  }
}

/* Trust strip – reveal auf Items nicht Container */
.reveal-stagger > .trust-strip {
  opacity: 1;
  transform: none;
}
.reveal-stagger > .trust-strip > .trust-strip__item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-stagger.is-visible > .trust-strip > .trust-strip__item {
  opacity: 1;
  transform: none;
}
.reveal-stagger.is-visible > .trust-strip > .trust-strip__item:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > .trust-strip > .trust-strip__item:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > .trust-strip > .trust-strip__item:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > .trust-strip > .trust-strip__item:nth-child(4) { transition-delay: 0.2s; }

/* Bento icons contained */
.bento-card__icon {
  width: 52px;
  height: 52px;
  overflow: hidden;
}

/* Scroll-to-top Abstand mobil */
@media (max-width: 767px) {
  body { padding-bottom: 3.5rem; }
}
