/* Selbstgehostete Schrift Lato (CI handgefertigtes.de), kein Drittanbieter-Request */
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/lato-400.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/lato-700.woff2") format("woff2");
}

:root {
  /* Markenfarbe handgefertigtes.de: Gold/Messing #9f824a.
     Reines Gold auf Weiß ist nur ~3.6:1 (WCAG AA verfehlt), daher für
     Text/Buttons abgedunkelte, barrierearme Töne (BFSG). */
  --brand: #9f824a;          /* dekorativer Akzent (Rahmen, Linien, Haken) */
  --fg: #363636;             /* Markendunkel, Fließtext/Überschriften */
  --muted: #6f6a5e;
  --bg: #f6f4ef;             /* warmes Hellgrau */
  --card: #ffffff;
  --border: #e4ddcd;
  --primary: #8a6f3d;        /* Button-Hintergrund (Weiß darauf = 4.75:1) */
  --primary-hover: #6b562d;
  --link: #7a6234;           /* Linktext auf Weiß = 5.8:1 */
  --error: #b00020;
  --error-bg: #fdecef;
  --warn: #8a5a00;
  --warn-bg: #fff6e5;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--link);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 10;
}

.site-header {
  background: var(--card);
  border-bottom: 3px solid var(--brand);
  padding: 14px 0;
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.site-header .brand-logo {
  display: inline-flex;
  line-height: 0;
}
.site-header .brand-logo img {
  height: 46px;
  width: auto;
  display: block;
}
.site-header .brand-sub {
  color: var(--muted);
  font-size: 0.92rem;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}

main.container {
  padding-top: 32px;
  padding-bottom: 48px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

h1 {
  margin: 0 0 12px;
  font-size: 1.7rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--fg);
}

.kleingedruckt, .hint, .datensparsam {
  color: var(--muted);
  font-size: 0.9rem;
}

.schritte {
  background: #f6f1e6;
  border-radius: 8px;
  padding: 14px 14px 14px 34px;
  margin: 18px 0;
}
.schritte li { margin: 4px 0; }

.actions {
  margin: 26px 0 6px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  padding: 13px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary {
  background: #fff;
  color: var(--fg);
  border-color: var(--border);
}
.btn-secondary:hover { background: #f0f1f3; }
.btn:focus-visible {
  outline: 3px solid #2684ff;
  outline-offset: 2px;
}

.field { margin: 18px 0; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(138, 111, 61, 0.20);
}
.field.has-error input,
.field.has-error textarea {
  border-color: var(--error);
}

.req { color: var(--error); }
.optional { color: var(--muted); font-weight: 400; }

.err {
  color: var(--error);
  font-size: 0.9rem;
  margin: 6px 0 0;
}
.hint { margin: 6px 0 0; }

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin: 16px 0;
}
.alert-error { background: var(--error-bg); color: var(--error); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }

/* Honeypot: visuell und für Screenreader entfernt */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.check {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 30px;
  line-height: 54px;
  text-align: center;
  margin-bottom: 10px;
}

.vorgang {
  background: #f6f1e6;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 18px 0;
}

.hinweis-box {
  background: #f6f1e6;
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 18px 0;
}
.hinweis-box p { margin: 4px 0; }
.hinweis-box address {
  font-style: normal;
  line-height: 1.5;
  margin-top: 6px;
}
.vorgang dt { font-weight: 600; color: var(--muted); font-size: 0.9rem; }
.vorgang dd { margin: 4px 0 0; }
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.95rem;
}

/* Rechtstexte (Impressum / Datenschutz) */
.prose h2 {
  font-size: 1.15rem;
  margin: 26px 0 8px;
}
.prose h2:first-of-type {
  margin-top: 8px;
}
.prose p {
  margin: 10px 0;
}
.prose address {
  font-style: normal;
  line-height: 1.5;
  margin: 8px 0;
}
.prose ul {
  margin: 10px 0;
  padding-left: 22px;
}
.prose li {
  margin: 4px 0;
}
.prose .meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0 40px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}
.site-footer .links a { color: var(--muted); }
.site-footer .hinweis { margin-top: 10px; }

@media (max-width: 520px) {
  .card { padding: 22px; }
  body { font-size: 16px; }
  .actions { flex-direction: column; }
  .btn { width: 100%; }
}
