/* Stylesheet für die statischen Rechtsseiten (Impressum, Datenschutzerklärung).
   Die Farb- und Typo-Tokens spiegeln src/style.css — werden die dort geändert,
   müssen sie hier mitgezogen werden. */
:root {
  --blue-50:  #f2f7fb;
  --blue-100: #dde9f3;
  --blue-200: #c8dbeb;
  --blue-300: #a8c4dd;
  --blue-600: #3d6b99;
  --blue-900: #1c3a5a;
  --blue-950: #12293f;

  --sand:      #d9a441;
  --sand-soft: #ebcb86;
  --sand-ink:  #8a5f0f;

  --text:       var(--blue-900);
  --text-muted: #4e6b8a;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;

  --font: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
}

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

html {
  font-size: 16px;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--blue-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--sand-soft);
  color: var(--blue-900);
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--blue-900);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--sand-ink);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Header */
.legal-header {
  background: rgba(242, 247, 251, 0.92);
  border-bottom: 1px solid rgba(28, 58, 90, 0.10);
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 72px;
  flex-wrap: wrap;
  padding: var(--space-xs) 0;
}

.legal-header__logo {
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--blue-900);
}

.legal-header__logo:hover {
  text-decoration: none;
  color: var(--blue-600);
}

.legal-header__back {
  font-size: var(--text-sm);
}

/* Content */
main {
  padding: var(--space-lg) 0;
}

h1 {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-xs);
  overflow-wrap: break-word;
}

.lead {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  padding-top: var(--space-md);
  border-top: 1px solid var(--blue-200);
}

h2:first-of-type {
  margin-top: 0;
}

/* Folgt das erste h2 direkt auf den Titel (Seite ohne Untertitel), wirkt die
   Trennlinie wie eine Unterstreichung der Überschrift — dann weglassen. */
h1 + h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: var(--space-md);
}

h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-top: var(--space-md);
  margin-bottom: 0.25rem;
}

p, ul, ol, address {
  margin-bottom: var(--space-sm);
}

address {
  font-style: normal;
}

ul, ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35rem;
}

li::marker {
  color: var(--blue-300);
}

/* Definition-style blocks for the register data */
.data-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem var(--space-sm);
  margin-bottom: var(--space-sm);
}

.data-list dt {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.data-list dd {
  font-weight: 500;
}

/* Anything the operator still has to supply. Deliberately loud. */
.todo {
  background: var(--sand-soft);
  color: var(--sand-ink);
  font-weight: 600;
  padding: 0.05em 0.35em;
  border-radius: 2px;
}

.notice {
  background: var(--blue-100);
  border-left: 3px solid var(--sand);
  padding: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
}

.notice p:last-child {
  margin-bottom: 0;
}

/* Footer */
.legal-footer {
  background: var(--blue-950);
  color: var(--blue-300);
  padding: var(--space-md) 0;
  font-size: var(--text-sm);
}

.legal-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.legal-footer a {
  color: var(--blue-300);
}

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

.legal-footer__links {
  display: flex;
  gap: var(--space-md);
}

@media (max-width: 600px) {
  :root {
    --space-lg: 3rem;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  .legal-header__inner {
    justify-content: center;
    gap: 0.125rem var(--space-sm);
  }

  .legal-header__logo {
    font-size: var(--text-lg);
  }

  .data-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .data-list dt {
    margin-top: var(--space-xs);
  }

  .legal-footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
