/* Simpert Reiter – Besucheranmeldung
   CI laut www.simpert-reiter.de: Blau #2A5CAA als einzige Kontrastfarbe, Text #454545,
   Schriften Roboto / Roboto Condensed (lokal ausgeliefert, kein Google-Fonts-Abruf). */

@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: url("/static/fonts/roboto-400.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap; src: url("/static/fonts/roboto-500.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: url("/static/fonts/roboto-700.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-weight: 400; font-display: swap; src: url("/static/fonts/roboto-condensed-400.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-weight: 700; font-display: swap; src: url("/static/fonts/roboto-condensed-700.woff2") format("woff2"); }

:root {
  --sr-blue: #2A5CAA;
  --sr-blue-dark: #1f4785;
  --sr-text: #454545;
  --sr-bg: #f4f4f4;
  --sr-line: #d5d8dc;
  --sr-error: #b3261e;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--sr-text);
  background: var(--sr-bg);
}

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Kopfbereich */
.site-header { background: #fff; border-bottom: 4px solid var(--sr-blue); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 10px; }
.brand img { display: block; width: 160px; height: auto; }
.brand-claim { font-family: "Roboto Condensed", "Roboto", sans-serif; font-size: 18px; color: var(--sr-blue); letter-spacing: .02em; text-align: right; }

main.wrap { flex: 1; padding-top: 32px; padding-bottom: 40px; }

/* Karte */
.card { background: #fff; border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.05); padding: 32px; }
.card.center { text-align: center; }

h1 {
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.15;
  color: var(--sr-blue);
  margin: 0 0 8px;
}
.lead { font-size: 18px; margin: 0 0 24px; }

/* Formular */
fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend {
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  font-size: 20px; font-weight: 700; color: var(--sr-blue);
  padding: 0 0 6px; margin-bottom: 12px; width: 100%;
  border-bottom: 2px solid var(--sr-blue);
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-bottom: 16px; }
label { display: block; font-weight: 500; margin-bottom: 4px; }
.req { color: var(--sr-error); }
.opt { font-weight: 400; color: #767676; font-size: 15px; }

input[type=text], input[type=email], input[type=tel], input[type=time], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--sr-text);
  background: #fff;
  border: 1px solid var(--sr-line);
  border-radius: var(--radius);
  padding: 11px 12px;
  min-height: 48px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible {
  outline: 3px solid rgba(42,92,170,.35);
  outline-offset: 1px;
  border-color: var(--sr-blue);
}
.has-error input, .has-error select, .has-error textarea { border-color: var(--sr-error); }
.error { color: var(--sr-error); font-size: 15px; margin: 4px 0 0; }

.check { display: grid; grid-template-columns: 28px 1fr; align-items: start; gap: 4px 10px; margin: 8px 0 24px; }
.check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--sr-blue); }
.check label { font-weight: 400; margin: 0; }
.check .error { grid-column: 2; }
fieldset .check:last-child { margin-bottom: 0; }

a { color: var(--sr-blue); }

.alert {
  border-left: 4px solid var(--sr-error);
  background: #fdecea;
  color: #5f1410;
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

/* Honeypot */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.btn {
  display: inline-block;
  font: inherit; font-weight: 500;
  font-size: 18px;
  color: #fff;
  background: var(--sr-blue);
  border: 0;
  border-radius: var(--radius);
  padding: 13px 28px;
  min-height: 50px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--sr-blue-dark); }
form .btn { width: 100%; }
.btn-secondary { margin-top: 12px; }

.check-icon {
  width: 72px; height: 72px; margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--sr-blue);
  color: #fff;
  font-size: 40px; line-height: 72px;
}

/* Fußzeile */
.site-footer { background: var(--sr-blue); color: #fff; font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.site-footer nav a { color: #fff; margin-left: 16px; }
.site-footer nav a:first-child { margin-left: 0; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 22px 18px; }
  h1 { font-size: 28px; }
  .brand img { width: 120px; }
  .brand-claim { font-size: 15px; }
  main.wrap { padding-top: 20px; }
}
