:root {
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --bg: #fafaf7;
  --panel: #ffffff;
  --border: #e0ddd5;
  --accent: #2a5d9f;
  --accent-soft: #eaf1fa;
  --danger: #b03030;
  --success: #2d7a3a;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  margin: 0;
  line-height: 1.55;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  padding: 1rem 1.5rem;
}

header.site .inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

header.site a.brand {
  font-weight: 600;
  text-decoration: none;
  color: var(--fg);
}

header.site nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.92rem;
}

header.site nav a:hover { color: var(--accent); }

h1 { font-size: 1.6rem; margin: 0 0 0.4rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }
p { margin: 0.6rem 0; }
p.lede { color: var(--muted); margin-bottom: 1.5rem; }

a { color: var(--accent); }
a:hover { text-decoration: none; }

label {
  display: block;
  font-weight: 500;
  margin-top: 1.25rem;
  margin-bottom: 0.3rem;
}
label .req { color: var(--danger); }
label .hint { display: block; color: var(--muted); font-weight: 400; font-size: 0.88rem; margin-top: 0.1rem; }

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  font: inherit;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
}

textarea { min-height: 5rem; resize: vertical; }

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1.5rem 0 1rem;
}

.checkbox-row input { margin-top: 0.3rem; flex-shrink: 0; }

/* Inside a checkbox-row, the label sits on the same line as the
   checkbox — strip the global block-label margins and bold so the
   sentence reads inline. */
.checkbox-row label {
  margin: 0;
  font-weight: 400;
  display: inline;
}

button.primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.7rem 1.4rem;
  font: inherit;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
}

button.primary:hover { filter: brightness(1.07); }
button.primary:disabled { opacity: 0.5; cursor: not-allowed; }

.token {
  font-family: var(--mono);
  font-size: 0.95rem;
  background: #f3eedf;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  word-break: break-all;
  border: 1px solid #e0d5ae;
}

.url-block {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  word-break: break-all;
  overflow-x: auto;
}

.url-block a { color: var(--accent); }

.file-row {
  margin: 0.8rem 0 1.4rem;
  padding: 0.9rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.file-row .meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.file-row strong { font-family: var(--mono); }

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 0.94rem;
}

.callout.success { background: #e8f5e9; border-color: var(--success); }
.callout.error   { background: #fbeaea; border-color: var(--danger); }

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

footer.site a { color: var(--muted); margin: 0 0.5rem; }
footer.site p { margin: 0.4rem 0; }
footer.site .impressum { font-size: 0.82rem; opacity: 0.85; }

code { font-family: var(--mono); background: var(--panel); padding: 0.1rem 0.35rem; border-radius: 3px; border: 1px solid var(--border); font-size: 0.92em; }

.errors {
  background: #fbeaea;
  border: 1px solid #e8b5b5;
  color: var(--danger);
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}
