/* ============================================================
   Ebinger GaLaBau — site-custom.css
   Layout skeleton + per-page refinements. Linked by EVERY page.
   (Deploy-Gate requires this file present + referenced.)
   ============================================================ */

/* --- Hero legibility: focused center scrim so copy lifts over any crossfade frame --- */
.hero-cinematic .hero-inner::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 132%; height: 150%;
  background: radial-gradient(60% 52% at 50% 50%, rgba(20,26,17,0.62) 0%, rgba(20,26,17,0.4) 48%, transparent 78%);
  pointer-events: none;
}
.hero-cinematic .hero-sub { text-shadow: 0 1px 16px rgba(0,0,0,0.55); }
.hero-cinematic .hero-eyebrow,
.hero-cinematic .hero-meta { text-shadow: 0 1px 10px rgba(0,0,0,0.6); }
.hero-cinematic .scroll-cue { text-shadow: 0 1px 8px rgba(0,0,0,0.6); }

/* --- Mobile nav fix: in site.css the base `.nav-burger{display:none}` rule
   is declared AFTER its @media(max-width:920px){display:inline-flex} block, so
   the base wins the cascade and the burger never shows — leaving mobile with no
   nav trigger at all. Re-assert the responsive switch here (loads after site.css). --- */
@media (max-width: 920px) {
  .nav .nav-menu { display: none; }
  .nav .nav-burger { display: inline-flex; }
}

/* --- Generic page-section rhythm refinements --- */
.section-alt { background: var(--c-paper-warm); }
.section-brand { background: var(--c-brand); color: var(--c-cream); }
.section-brand h2, .section-brand h3 { color: var(--c-cream); }
.section-brand .eyebrow { color: var(--c-gold); }
.section-brand p { color: var(--c-cream-mute); }

/* --- Intro band under hero --- */
.intro-band { padding: var(--gap-2xl) 0 var(--gap-xl); }

/* --- Two-column editorial prose --- */
.prose-2col { columns: 2; column-gap: var(--gap-xl); column-rule: 1px solid var(--c-rule); }
.prose-2col p { break-inside: avoid; margin: 0 0 var(--gap-md); }
@media (max-width: 760px) { .prose-2col { columns: 1; } }

/* --- Leistungen detail block --- */
.leistung-block { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gap-xl); align-items: center; padding: var(--gap-xl) 0; border-bottom: 1px solid var(--c-rule); }
.leistung-block:last-child { border-bottom: 0; }
.leistung-block.flip .lb-media { order: 2; }
.leistung-block .lb-media { overflow: hidden; border-radius: 4px; background: var(--c-paper-warm); }
.leistung-block .lb-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transform: scale(1.06); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.leistung-block.in-view .lb-media img { transform: scale(1); }
.leistung-block .lb-text h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.leistung-block .lb-text ul { list-style: none; padding: 0; margin: var(--gap-md) 0 0; }
.leistung-block .lb-text ul li { position: relative; padding: 0.35rem 0 0.35rem 1.4rem; color: var(--c-ink-mute); font-size: 0.96rem; }
.leistung-block .lb-text ul li::before { content: ""; position: absolute; left: 0; top: 0.85rem; width: 8px; height: 8px; border-radius: 50%; background: var(--c-brand); }
@media (max-width: 880px) {
  .leistung-block { grid-template-columns: 1fr; gap: var(--gap-lg); }
  .leistung-block.flip .lb-media { order: 0; }
}

/* --- Über-uns generations strip --- */
.gen-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
.gen-strip .gen-item { text-align: center; }
.gen-strip .gen-num { font-family: var(--f-display); font-size: clamp(3rem, 6vw, 5rem); color: var(--c-brand); line-height: 1; }
.gen-strip .gen-title { font-family: var(--f-display); font-size: 1.35rem; margin: var(--gap-xs) 0; }
.gen-strip .gen-desc { font-size: 0.9rem; color: var(--c-ink-mute); }
@media (max-width: 700px) { .gen-strip { grid-template-columns: 1fr; gap: var(--gap-md); } }

/* --- Pillar values --- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap-lg); }
.pillar { padding: var(--gap-md); border-left: 2px solid var(--c-brand); }
.pillar h3 { font-size: 1.3rem; margin-bottom: var(--gap-xs); }
.pillar p { font-size: 0.92rem; color: var(--c-ink-mute); margin: 0; }

/* --- CTA band --- */
.cta-band { background: var(--c-brand); color: var(--c-cream); padding: var(--gap-2xl) 0; text-align: center; }
.cta-band h2 { color: var(--c-cream); font-size: clamp(2rem, 4.5vw, 3.4rem); font-style: italic; max-width: 22ch; margin: 0 auto var(--gap-md); }
.cta-band p { color: var(--c-cream-mute); max-width: 50ch; margin: 0 auto var(--gap-lg); }
.cta-band .cta-actions { display: flex; gap: var(--gap-sm); justify-content: center; flex-wrap: wrap; }

/* --- Map frame --- */
.map-frame { aspect-ratio: 16/8; overflow: hidden; border-radius: 4px; border: 1px solid var(--c-rule); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.2) saturate(0.9); }
@media (max-width: 600px) { .map-frame { aspect-ratio: 4/3; } }

/* --- Hours table --- */
.hours-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--c-rule); font-size: 0.94rem; }
.hours-row strong { font-family: var(--f-ui); font-weight: 600; }
.hours-row.closed { color: var(--c-ink-faint); }

/* --- Body bottom padding so sticky CTA never overlaps footer content on mobile --- */
@media (max-width: 720px) { .footer { padding-bottom: calc(var(--gap-lg) + 56px); } }

/* --- Generic in-view helper for non-reveal blocks --- */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.fade-up.in-view { opacity: 1; transform: translateY(0); }
