/* ============================================================
   legal.css — Rechtliches pages: Impressum, Datenschutz, AGB.
   Builds ONLY on the locked design language (tokens / base /
   components). Reuses .container, .section, .section-head,
   .eyebrow, .crumbs — never redefines them.
   Three page-specific patterns:
     1) .legal-head  — breadcrumb + h1, light band (mirrors .page-head)
     2) .legal-body  — comfortable reading column, generous spacing
     3) .legal-block — sub-section card with dl/address styling
   ============================================================ */

/* ------------------------------------------------------------
   LEGAL HEAD — breadcrumb + h1, light top band.
   Mirrors .page-head from loesungen.css.
   ------------------------------------------------------------ */
.legal-head {
  background: var(--c-base);
  border-bottom: var(--hair);
}
.legal-head .crumbs { margin-bottom: var(--space-8); }
.legal-head .section-head {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   LEGAL BODY — centred reading column, comfortable measure.
   ------------------------------------------------------------ */
.legal-body {
  background: var(--c-base);
}
.legal-col {
  max-width: 68ch;
  /* Keep left-aligned with the container — no centring */
}

/* ------------------------------------------------------------
   LEGAL BLOCK — sub-section with optional label + content.
   A quiet surface card: hairline border, generous padding,
   rounded corners matching the design system's --radius-lg.
   ------------------------------------------------------------ */
.legal-block {
  padding: var(--space-8);
  border: 1px solid var(--c-hairline);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
}

.legal-block + .legal-block {
  margin-top: var(--space-6);
}

/* Block heading — compose with .eyebrow in markup:
   class="eyebrow legal-block__heading". Typo + red dot come
   from base.css; only the local additions live here. */
.legal-block__heading {
  display: flex;
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--c-hairline);
}

/* ------------------------------------------------------------
   DEFINITION LIST — for label/value pairs (Firmenbuch, UID…)
   ------------------------------------------------------------ */
.legal-dl {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: var(--space-2) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: var(--lh-body);
}
.legal-dl dt {
  font-weight: 600;
  color: var(--c-graphite);
  letter-spacing: .02em;
  white-space: nowrap;
  padding-top: var(--space-1);
}
.legal-dl dd {
  color: var(--c-ink);
  padding-top: var(--space-1);
}
.legal-dl dd a {
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: .2em;
  transition: color var(--dur-fast) var(--ease-soft);
}
.legal-dl dd a:hover { color: var(--c-red); }

/* ------------------------------------------------------------
   ADDRESS BLOCK — Unternehmen / Kontakt inline details
   ------------------------------------------------------------ */
.legal-address {
  font-style: normal;
  font-size: var(--fs-small);
  line-height: 1.9;
  color: var(--c-ink);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.legal-address .legal-address__name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--c-ink);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-3);
}
.legal-address a {
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: .2em;
  transition: color var(--dur-fast) var(--ease-soft);
}
.legal-address a:hover { color: var(--c-red); }

/* ------------------------------------------------------------
   CONTACT PAIRS — side-by-side tel/fax/email row
   ------------------------------------------------------------ */
.legal-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-8);
  margin-top: var(--space-4);
}
.legal-contact-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.legal-contact-item__label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-graphite);
}
.legal-contact-item__val {
  font-size: var(--fs-small);
  color: var(--c-ink);
}
.legal-contact-item__val a {
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: .2em;
  transition: color var(--dur-fast) var(--ease-soft);
}
.legal-contact-item__val a:hover { color: var(--c-red); }

/* ------------------------------------------------------------
   PLACEHOLDER NOTICE — Datenschutz / AGB stub
   ------------------------------------------------------------ */
.legal-placeholder {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-8);
  border: 1px solid var(--c-hairline);
  border-left: 3px solid var(--c-red);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-8);
}
.legal-placeholder__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--c-red) 8%, transparent);
  display: grid;
  place-items: center;
  color: var(--c-red);
}
.legal-placeholder__body {
  flex: 1;
}
.legal-placeholder__title {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: var(--space-2);
}
.legal-placeholder__note {
  font-size: var(--fs-small);
  color: var(--c-graphite);
  line-height: var(--lh-body);
  max-width: 56ch;
}

/* ------------------------------------------------------------
   SECTION SPACING between .legal-block groups
   ------------------------------------------------------------ */
.legal-body .legal-section + .legal-section {
  margin-top: var(--space-12);
}
/* Section title — compose with .eyebrow in markup:
   class="eyebrow legal-section__title". Typo + red dot come
   from base.css; only the spacing lives here. */
.legal-section__title {
  margin-bottom: var(--space-5);
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 640px) {
  .legal-dl {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-1);
  }
  .legal-dl dt { margin-top: var(--space-3); }
  .legal-dl dt:first-child { margin-top: 0; }

  .legal-block { padding: var(--space-6); }
  .legal-placeholder { flex-direction: column; gap: var(--space-4); }
}
