/* ═══════════════════════════════════════════════
   LEGAL PAGES – impressum · agb · datenschutz · widerruf · kontakt
   Gemeinsames Design-System für alle Rechtsseiten
   ═══════════════════════════════════════════════ */

/* ── Layout ────────────────────────────────────── */
.page-legal {
  background: #f4f6f9;
}
.page-legal main {
  min-height: 60vh;
}

/* Hero für Rechtsseiten – gleiche Höhe wie andere Seiten */
.page-legal .breadcrumb { display: none; }

/* Haupt-Layout-Wrapper */
.legal-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--pad, 20px);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

/* ── Sidebar ───────────────────────────────────── */
.legal-sidebar {
  position: sticky;
  top: 90px;
}
.legal-sidebar__card {
  background: #0c0e12;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px;
  color: rgba(246,248,255,0.85);
}
.legal-sidebar__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(246,248,255,0.35);
  margin: 0 0 12px;
}
.legal-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.legal-sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(246,248,255,0.7);
  text-decoration: none;
  transition: background .13s, color .13s;
}
.legal-sidebar__nav a:hover,
.legal-sidebar__nav a.is-active {
  background: rgba(255,255,255,0.07);
  color: #fff;
}
.legal-sidebar__nav a.is-active {
  color: #7ec8ff;
}
.legal-sidebar__nav svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.5;
}
.legal-sidebar__nav a.is-active svg,
.legal-sidebar__nav a:hover svg {
  opacity: 1;
}
.legal-sidebar__meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11.5px;
  color: rgba(246,248,255,0.3);
  line-height: 1.55;
}
.legal-sidebar__meta a {
  color: rgba(246,248,255,0.4);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-sidebar__meta a:hover { color: #7ec8ff; }

/* ── Content ───────────────────────────────────── */
.legal-content {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: clamp(28px, 4vw, 48px);
}

/* Abschnitte */
.legal-section {
  padding-bottom: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid #f1f5f9;
}
.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Überschriften */
.legal-content h2 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.legal-content h2::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--blue, #00a0ff);
  border-radius: 2px;
  flex-shrink: 0;
}
.legal-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 1.25rem 0 0.5rem;
}
.legal-content h3:first-child { margin-top: 0; }

/* Paragraphen */
.legal-content p {
  font-size: 14.5px;
  line-height: 1.75;
  color: #374151;
  margin: 0 0 0.75rem;
}
.legal-content p:last-child { margin-bottom: 0; }
.legal-content a {
  color: var(--blue, #00a0ff);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content strong { color: #0f172a; font-weight: 650; }

/* Listen */
.legal-content ul, .legal-content ol {
  margin: 0.5rem 0 0.75rem 1.2rem;
  padding: 0;
}
.legal-content li {
  font-size: 14.5px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 0.3rem;
}

/* Stand-Vermerk */
.legal-stand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 0.5rem;
}

/* Info-Box (Hinweise) */
.legal-info-box {
  display: flex;
  gap: 12px;
  background: rgba(37,99,235,0.05);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 1rem 0;
}
.legal-info-box svg {
  width: 18px;
  height: 18px;
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 1px;
}
.legal-info-box p {
  margin: 0 !important;
  font-size: 13.5px !important;
  color: #1e3a5f !important;
}

/* Warn-Box (Ausschlüsse) */
.legal-warn-box {
  display: flex;
  gap: 12px;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 1rem 0;
}
.legal-warn-box svg {
  width: 18px;
  height: 18px;
  color: #d97706;
  flex-shrink: 0;
  margin-top: 1px;
}
.legal-warn-box p {
  margin: 0 !important;
  font-size: 13.5px !important;
  color: #78350f !important;
}

/* Kontaktblock in Sidebar */
.legal-contact-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.legal-contact-block a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #7ec8ff;
  text-decoration: none;
  background: rgba(0,160,255,0.08);
  transition: background .13s;
}
.legal-contact-block a:hover { background: rgba(0,160,255,0.16); }
.legal-contact-block svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── Responsive ────────────────────────────────── */
.legal-sidebar__nav a {
  min-height: 44px;
}
@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-sidebar {
    position: static;
  }
  .legal-sidebar__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .legal-sidebar__nav a {
    justify-content: center;
    text-align: center;
    padding: 10px 8px;
    min-height: 44px;
  }
  .legal-sidebar__nav a svg {
    display: none;
  }
}
@media (max-width: 520px) {
  .legal-content {
    padding: 20px;
    border-radius: 12px;
  }
  .legal-sidebar__nav {
    grid-template-columns: 1fr 1fr;
  }
  .legal-layout {
    padding: 24px var(--pad, 16px) 40px;
  }
}
