/* ============================================================
   Fülscher Fleischwaren — page-legal.css
   Hero · Scroll-Spy Layout · Legal Typography
   Geladen: NUR is_page_template('page-legal.php')
   ============================================================ */

/* ── Hero Legal (Anlehnung an Front-Page Hero-Hub) ───────── */
.hero-legal {
  position: relative;
  height: 45vh;
  min-height: 380px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-legal__bg-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-legal__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.7);
  transform: scale(1.02);
}

.hero-legal__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.4) 100%);
}

.hero-legal__header {
  position: relative;
  z-index: 10;
  padding: 0 40px 40px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-legal__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.hero-legal__headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .hero-legal { height: 40vh; min-height: 320px; }
  .hero-legal__header { padding: 0 24px 32px; }
  .hero-legal__headline { font-size: clamp(2rem, 6vw, 2.8rem); }
}

/* ── Layout & Sidebar ────────────────────────────────────── */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px 120px;
  position: relative;
}

.legal-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
}

.legal-sidebar__inner {
  padding: 24px 0;
  border-left: 2px solid rgba(0, 0, 0, 0.05);
}

.legal-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-sidebar__link {
  position: relative;
  display: block;
  padding: 4px 0 4px 20px;
  color: rgba(17, 24, 39, 0.55);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease;
}

.legal-sidebar__link:hover { color: var(--primary); }
.legal-sidebar__link.is-active { color: var(--primary); font-weight: 800; }

.legal-sidebar__link::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: top;
}

.legal-sidebar__link.is-active::before { transform: scaleY(1); }

/* ── Prose Content ───────────────────────────────────────── */
.legal-content {
  min-width: 0;
}

.legal-section {
  padding: 60px 48px;
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  scroll-margin-top: 100px;
}

.legal-section:last-child { margin-bottom: 0; }

.legal-section__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 140, 194, 0.15);
}

.legal-prose {
  font-family: var(--font-text);
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(17, 24, 39, 0.7);
}

.legal-prose h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 32px 0 16px;
}

.legal-prose p { margin-bottom: 1.2em; }
.legal-prose a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(0, 140, 194, 0.4); text-underline-offset: 4px; transition: all 0.2s; }
.legal-prose a:hover { text-decoration-color: var(--primary); color: #006fa0; }
.legal-prose ul { margin-bottom: 1.5em; padding-left: 20px; list-style-type: none; }
.legal-prose ul li { position: relative; margin-bottom: 8px; }
.legal-prose ul li::before {
  content: '•';
  position: absolute;
  left: -20px;
  color: var(--primary);
  font-weight: bold;
}
.legal-prose strong { color: var(--text-dark); font-weight: 700; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; padding: 40px 24px 80px; gap: 40px; }
  .legal-sidebar { position: relative; top: 0; }
  .legal-sidebar__inner { border-left: none; padding: 0; display: flex; overflow-x: auto; scrollbar-width: none; gap: 12px; }
  .legal-sidebar__inner::-webkit-scrollbar { display: none; }
  .legal-sidebar__list { flex-direction: row; gap: 8px; }
  .legal-sidebar__link { padding: 10px 16px; background: rgba(0, 140, 194, 0.05); border-radius: 999px; white-space: nowrap; }
  .legal-sidebar__link::before { display: none; }
  .legal-sidebar__link.is-active { background: var(--primary); color: #fff; }
  
  .legal-section { padding: 32px 24px; border-radius: 16px; }
  .legal-section__title { font-size: 1.6rem; }
}
