/* Gemeinsame Styles für Datenschutz, Impressum und Admin */
:root {
  --bg: #F5F8FC;
  --surface: #FFFFFF;
  --line: #DCE7F2;
  --ink: #16324E;
  --muted: #5B7186;
  --accent: #2D72C1;
  --accent-deep: #1F5391;
  --chip-bg: #E7F0FA;
  --chip-ink: #2565AE;
  --danger: #C0392B;
  --ok: #1E9E6A;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1926; --surface: #13253B; --line: #23405E; --ink: #E9F1F9;
    --muted: #9FB4C8; --accent: #6FA8E8; --accent-deep: #8BB9EA;
    --chip-bg: #1A3350; --chip-ink: #8BB9EA; --danger: #E77465; --ok: #4CC694;
  }
}
:root[data-theme="light"] {
  --bg: #F5F8FC; --surface: #FFFFFF; --line: #DCE7F2; --ink: #16324E;
  --muted: #5B7186; --accent: #2D72C1; --accent-deep: #1F5391;
  --chip-bg: #E7F0FA; --chip-ink: #2565AE; --danger: #C0392B; --ok: #1E9E6A;
}
:root[data-theme="dark"] {
  --bg: #0D1926; --surface: #13253B; --line: #23405E; --ink: #E9F1F9;
  --muted: #9FB4C8; --accent: #6FA8E8; --accent-deep: #8BB9EA;
  --chip-bg: #1A3350; --chip-ink: #8BB9EA; --danger: #E77465; --ok: #4CC694;
}

* { box-sizing: border-box; margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px 64px; }

header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; margin-bottom: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand strong { font-size: 18px; font-weight: 700; }
header.site a.backlink { font-size: 14px; color: var(--muted); text-decoration: none; }
header.site a.backlink:hover { color: var(--accent); }

h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 24px; }
.content h2 { font-size: 20px; font-weight: 700; margin: 28px 0 8px; }
.content p { margin: 10px 0; max-width: 68ch; }
.content ul { margin: 10px 0 10px 22px; }
.content li { margin: 4px 0; }
.meta { color: var(--muted); font-size: 14px; margin-top: 32px; }

a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

/* Admin */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; margin-bottom: 20px;
}
.card h2 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 4px; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%; padding: 10px 12px; font-size: 16px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink);
}
textarea {
  width: 100%; min-height: 340px; padding: 12px; font-size: 14px; line-height: 1.5;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  resize: vertical;
}
button {
  background: var(--accent); color: #fff; border: 0; border-radius: 10px;
  padding: 10px 20px; font-size: 15px; font-weight: 700; cursor: pointer;
  margin-top: 12px;
}
button:hover { background: var(--accent-deep); }
button.ghost {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent);
}
.status { font-size: 14px; margin-top: 10px; min-height: 20px; }
.status.ok { color: var(--ok); }
.status.error { color: var(--danger); }
.hint { font-size: 14px; color: var(--muted); }
.hidden { display: none; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
