:root {
  --ink: #090b12;
  --muted: #5e6470;
  --line: rgba(9, 11, 18, .14);
  --paper: #ffffff;
  --soft: #f3f4f7;
  --violet: #755cff;
  --cyan: #00a8c7;
  --pink: #d93675;
  --warning: #9a3412;
  --warning-bg: #fff7ed;
  --warning-line: #fdba74;
  --ok: #166534;
  --ok-bg: #f0fdf4;
  --ok-line: #86efac;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
}

.site-header-inner,
.legal-content,
.site-footer-inner {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header-inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-link {
  display: inline-flex;
  min-width: 0;
  align-items: center;
}

.brand-link img {
  display: block;
  width: 255px;
  max-width: 100%;
  height: auto;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 18px;
}

.legal-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  border-bottom-color: var(--ink);
  color: var(--ink);
}

.legal-band {
  border-bottom: 1px solid var(--line);
}

.legal-band.is-soft {
  background: var(--soft);
}

.legal-content {
  padding: 52px 0;
}

.legal-hero .legal-content {
  min-height: 330px;
  display: grid;
  align-content: center;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .48fr);
  gap: 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 58px;
  line-height: 1.02;
}

h2 {
  margin-bottom: 18px;
  font-size: 30px;
  line-height: 1.15;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.25;
}

p,
li,
dd,
td {
  color: var(--muted);
}

.lead {
  max-width: 720px;
  margin: 0;
  font-size: 19px;
}

.updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.status-box {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--warning-line);
  border-radius: 8px;
  background: var(--warning-bg);
  color: var(--warning);
}

.status-box.is-ok {
  border-color: var(--ok-line);
  background: var(--ok-bg);
  color: var(--ok);
}

.status-box strong {
  font-size: 18px;
}

.status-box p {
  margin: 0;
  color: inherit;
  font-size: 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.action.is-secondary {
  background: transparent;
  color: var(--ink);
}

.legal-data {
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.legal-data > div {
  display: grid;
  grid-template-columns: minmax(190px, .34fr) minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.legal-data dt {
  font-weight: 900;
}

.legal-data dd {
  margin: 0;
}

.missing {
  color: var(--warning);
  font-weight: 750;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
}

.detail-grid article {
  padding-top: 18px;
  border-top: 3px solid var(--ink);
}

.detail-grid article:nth-child(2n) {
  border-top-color: var(--violet);
}

.detail-grid p {
  margin-bottom: 0;
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 28px;
}

.checklist li::before {
  content: "";
  position: absolute;
  top: .65em;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--pink);
  border-radius: 50%;
}

.data-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
}

.data-table th,
.data-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.source-note {
  margin: 24px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--cyan);
  color: var(--muted);
  font-size: 14px;
}

.source-note a {
  font-weight: 800;
}

.briefing-template {
  margin: 22px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 15px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
}

.site-footer {
  background: var(--ink);
  color: #fff;
}

.site-footer-inner {
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: 28px 0;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.footer-links a {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 820px) {
  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 0;
  }

  .legal-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .legal-hero .legal-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  h1 {
    font-size: 46px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header-inner,
  .legal-content,
  .site-footer-inner {
    width: min(100% - 32px, 1080px);
  }

  .brand-link img {
    width: 220px;
  }

  .legal-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
  }

  .legal-nav a {
    width: 100%;
  }

  .legal-content {
    padding: 38px 0;
  }

  .legal-hero .legal-content {
    min-height: 0;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 26px;
  }

  .lead {
    font-size: 17px;
  }

  .legal-data > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .actions {
    display: grid;
  }

  .action {
    width: 100%;
  }

  .data-table-wrap {
    overflow: visible;
  }

  .data-table {
    min-width: 0;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr:not(:last-child) {
    border-bottom: 2px solid var(--line);
  }

  .data-table td {
    display: grid;
    grid-template-columns: minmax(90px, .65fr) minmax(0, 1fr);
    gap: 14px;
    padding: 12px 14px;
    overflow-wrap: anywhere;
  }

  .data-table td::before {
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
  }

  .data-table td:nth-child(1)::before {
    content: "Technik";
  }

  .data-table td:nth-child(2)::before {
    content: "Aktiv";
  }

  .data-table td:nth-child(3)::before {
    content: "Zweck";
  }

  .data-table td:nth-child(4)::before {
    content: "Speicherdauer";
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
