:root {
  --ink: #16232b;
  --ink-soft: #4c5c66;
  --line: #dbe2e5;
  --bg: #f4f6f5;
  --card-bg: #ffffff;
  --accent: #2c5f6b;
  --accent-dark: #1c4147;
  --accent-soft: #e4eef0;
  --warn-bg: #fbf3e3;
  --warn-line: #e8cf9c;
  --radius: 3px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

code, .mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92em;
  background: var(--accent-soft);
  padding: 0.05em 0.35em;
  border-radius: 2px;
}

.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page-header {
  border-bottom: 3px solid var(--accent);
  padding-bottom: 20px;
  margin-bottom: 32px;
}

.kicker {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

h1 {
  font-size: 28px;
  margin: 0 0 10px;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.lead {
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}

h2 {
  font-size: 18px;
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--ink);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 22px;
}

.card-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.muted {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 4px 0 14px;
}

.hidden { display: none !important; }

.dropzone {
  border: 1.5px dashed #b7c4c8;
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--ink-soft);
  position: relative;
  margin-bottom: 12px;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.filelist {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.filelist li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 6px;
  font-size: 13.5px;
  background: #fbfcfc;
}

.filelist .tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  white-space: nowrap;
}

.filelist .tag.unknown {
  background: var(--warn-bg);
  color: #8a6110;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, opacity 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled {
  background: #a9bcc0;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.btn-secondary:hover { background: #d5e5e8; }

.status {
  font-size: 13.5px;
  margin-top: 12px;
  min-height: 1.2em;
}
.status.error { color: #a3312a; }
.status.ok { color: #276b3f; }

.privacy-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  border-left: 3px solid var(--accent-soft);
  padding-left: 10px;
  margin: 14px 0 4px;
}

.mapping-upload {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.mapping-upload input[type="file"] {
  margin-right: 10px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px 16px;
  margin: 14px 0 18px;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 20px;
  font-size: 14.5px;
}

.result-table th, .result-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
}

.result-table th:nth-child(2), .result-table td:nth-child(2),
.result-table th:nth-child(3), .result-table td:nth-child(3) {
  text-align: right;
  width: 110px;
}

.result-table thead th {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}

.result-table tfoot td {
  font-weight: 700;
  border-top: 2px solid var(--ink);
  border-bottom: none;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Datenbanner (Übersicht), Legal-Seiten, Einwilligung --- */

.data-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #e4eef0;
  border: 1px solid #b9d3d8;
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 24px;
}

.data-banner .icon {
  font-size: 22px;
  line-height: 1;
}

.data-banner strong {
  color: var(--accent-dark);
}

.data-banner p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink);
}

.callout {
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.55;
}

.callout-warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: #6b4f13;
}

.callout-highlight {
  background: #e4eef0;
  border: 1px solid #b9d3d8;
}

.legal-page .card h2 {
  margin-top: 4px;
  font-size: 16px;
}

.legal-page .card {
  margin-bottom: 18px;
}

.legal-page ul, .legal-page ol {
  margin: 8px 0;
  padding-left: 22px;
  font-size: 14.5px;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page code {
  font-size: 0.88em;
}

.footer-nav {
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 20px;
}

.footer-nav a {
  color: var(--accent-dark);
}

.footer-nav.top-nav {
  margin-top: 0;
  margin-bottom: 24px;
  text-align: left;
}

.site-footer {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--accent-dark);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.consent-box {
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0;
}

.consent-box p {
  font-size: 13.5px;
  margin: 0 0 8px;
}

.consent-box ul {
  font-size: 13.5px;
  margin: 6px 0 10px;
  padding-left: 20px;
}

.consent-box li {
  margin-bottom: 4px;
}

.consent-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
}

.consent-checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.consent-checkbox-row label {
  font-size: 13.5px;
  font-weight: 600;
}
