/* ─── Gemeinsame Styles für rechtliche Unterseiten
   (Impressum, Datenschutz, Barrierefreiheit)
   Design-Tokens synchron zu style.css und publikationen.css halten. */

:root {
  /* Palette (synchron zu style.css) */
  --bordeaux: #7b2d42;
  --bordeaux-dark: #5e2234;
  --bordeaux-light: #9e4a62;
  --navy: #1a2e4a;
  --navy-deep: #0f1d30;

  /* Surfaces */
  --bg: #eae0cc;
  --surface: #faf6ee;
  --surface-elevated: #fffdf5;

  /* Text */
  --text: #1c1410;
  --text-secondary: #5c4e42;
  --text-tertiary: #9c8e84;

  /* Borders */
  --border: rgba(28, 20, 16, 0.08);
  --border-soft: rgba(28, 20, 16, 0.04);

  /* Radius-Skala (synchron zu style.css, 3 Stufen) */
  --radius-sm: 4px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, sans-serif;
  --text-xs: 0.7rem;

  /* Spacing */
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  /* Animation */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Zurück-Navigation (sticky) ─── */
.back-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.back-link {
  color: var(--bordeaux);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.back-link:hover { color: var(--bordeaux-dark); }

/* ─── Hauptinhalt ─── */
main.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  flex: 1;
}

h1 {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--bordeaux);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

/* ─── Inhalts-Blöcke ─── */
.legal-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-block h2 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.legal-block address {
  font-style: normal;
  line-height: 1.9;
  color: var(--text);
  margin-top: 0.5rem;
}

.legal-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.legal-block p + p {
  margin-top: 0.9rem;
}

.legal-block p + .legal-list,
.legal-block .legal-list {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  padding-left: 1.4rem;
}

.legal-block .legal-list li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.legal-block .legal-list + p {
  margin-top: 0.75rem;
}

.legal-block a {
  color: var(--bordeaux);
  text-decoration: underline;
  text-decoration-color: rgba(123, 45, 66, 0.3);
  text-underline-offset: 0.2em;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.legal-block a:hover {
  color: var(--bordeaux-dark);
  text-decoration-color: var(--bordeaux-dark);
}

/* ─── Design & Umsetzung – Logo neben Adresse ─── */
.agency-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.agency-logo {
  max-height: 45px;
  width: auto;
  flex-shrink: 0;
}

/* ─── Noch-zu-füllende Felder im Impressum ─── */
.placeholder {
  color: var(--bordeaux);
  background: rgba(123, 45, 66, 0.08);
  padding: 0.15em 0.45em;
  border-radius: var(--radius-sm);
  font-style: italic;
  font-size: 0.88em;
}

/* ─── Platzhalter-Status ─── */
.pending-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

/* ─── Footer (synchron zu style.css) ─── */
footer {
  background: var(--navy-deep);
  color: #fff;
  padding: var(--space-16) 0 var(--space-8);
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: var(--space-3);
  font-weight: 400;
}

.footer-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.footer-address {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-4);
}

.footer-heading {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* aktuelle Seite im Footer hervorheben */
.footer-legal a[aria-current="page"] {
  color: #fff;
}

/* ─── Dark Mode (synchron zu style.css) ─── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1612;
    --surface: #2a2420;
    --surface-elevated: #342d28;
    --text: #e8e0d6;
    --text-secondary: #bfb5a8;
    --text-tertiary: #8a7d73;
    --navy: #c8d4e4;
    --border: rgba(255, 255, 255, 0.08);
    --border-soft: rgba(255, 255, 255, 0.04);
    --bordeaux-light: #c87a90;
  }

  .back-nav {
    background: #2a2420;
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  }

  /* Footer bleibt navy-deep — ändert sich in Dark Mode nicht */
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 600px) {
  main.container {
    padding: 1.5rem 1rem 3rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  footer .container {
    padding: 0 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal {
    gap: 1rem;
  }
}
