/* ═══ Heimatverein Westenholz e.V. – Mitgliedsantrag ═══ */
:root {
  --gruen: #2c4a3b;        /* Tannengrün aus dem Logo */
  --gruen-dunkel: #223a2e;
  --gruen-hell: #e8efe9;
  --rot: #c04a2d;          /* Akzentring des Logos */
  --creme: #f7f4ec;
  --karte: #ffffff;
  --ink: #22302a;
  --muted: #6b7a72;
  --linie: #d8ded9;
  --radius: 10px;
  --schatten: 0 2px 14px rgba(34, 58, 46, 0.10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--creme);
  color: var(--ink);
  line-height: 1.55;
}
.hidden { display: none !important; }
h1, h2, h3 { font-family: "Lora", Georgia, "Times New Roman", serif; font-weight: 600; color: var(--gruen); }

/* ─── Kopf mit Luftbild ─── */
.hero {
  position: relative; color: #fff; text-align: center;
  padding: 46px 20px 54px; border-bottom: 4px solid var(--rot);
  background: var(--gruen); overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("/assets/westenholz-luftbild.jpg") center 38% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,52,41,0.30) 0%, rgba(30,52,41,0.55) 60%, rgba(24,42,33,0.80) 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero-logo { width: 108px; height: 108px; border-radius: 50%; box-shadow: 0 6px 22px rgba(0,0,0,0.35); margin-bottom: 14px; background: #fff; }
.hero h1 { color: #fff; font-size: 1.7rem; font-weight: 700; letter-spacing: 0.01em; text-shadow: 0 2px 10px rgba(0,0,0,0.45); }
.hero-sub { color: #dfe8e1; font-style: italic; font-size: 0.95rem; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.legal .hero { padding: 28px 20px 34px; }
.legal .hero-logo { width: 78px; height: 78px; margin-bottom: 10px; }
.legal .hero h1 { font-size: 1.35rem; }

/* ─── Layout ─── */
.wrap { max-width: 720px; margin: -26px auto 40px; padding: 0 16px; position: relative; z-index: 2; }
.card { background: var(--karte); border-radius: 16px; box-shadow: var(--schatten); padding: 32px 28px; }
.card h2 { font-size: 1.45rem; margin-bottom: 8px; }
.intro { color: var(--muted); margin-bottom: 22px; font-size: 0.95rem; }

/* Nummerierte Schritte */
form { counter-reset: schritt; }
form h3 {
  counter-increment: schritt;
  display: flex; align-items: center; gap: 11px;
  font-size: 1.12rem; margin: 30px 0 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--gruen);
}
form h3::before {
  content: counter(schritt);
  font-family: "Inter", sans-serif; font-size: 0.85rem; font-weight: 700;
  background: var(--gruen); color: #fff;
  width: 27px; height: 27px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.copy { font-size: 0.92rem; margin-bottom: 10px; }
.copy.small { color: var(--muted); font-size: 0.8rem; margin-top: 10px; }

/* ─── Felder ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gruen-dunkel); margin-bottom: 12px; }
input[type="text"], input[type="email"], input:not([type]) {
  display: block; width: 100%; margin-top: 4px; font: inherit;
  padding: 11px 12px; border: 1.5px solid var(--linie); border-radius: var(--radius);
  background: #fff; color: var(--ink); outline: none; font-weight: 400;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus { border-color: var(--gruen); box-shadow: 0 0 0 3px rgba(44, 74, 59, 0.15); }
input.invalid { border-color: var(--rot); }
.field-hint { display: block; font-size: 0.78rem; font-weight: 400; margin-top: 3px; min-height: 1em; }
.field-hint.ok { color: var(--gruen); }
.field-hint.bad { color: var(--rot); }

/* Beitrag */
.beitrag-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 6px 0 14px; }
@media (max-width: 480px) { .beitrag-picker { grid-template-columns: 1fr 1fr; } }
.beitrag-option {
  display: flex; align-items: center; justify-content: center; text-align: center;
  cursor: pointer; position: relative; font: inherit; background: #fff; color: var(--ink);
  border: 1.5px solid var(--linie); border-radius: var(--radius); padding: 12px 10px;
  font-weight: 400; margin: 0; line-height: 1.35;
  transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.beitrag-option:hover { transform: translateY(-2px); box-shadow: 0 5px 14px rgba(44,74,59,0.14); border-color: var(--gruen); }
.beitrag-option.active { border-color: var(--gruen); background: var(--gruen-hell); }
.beitrag-option::after {
  content: "✓"; position: absolute; right: 7px; top: 7px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gruen); color: #fff; font-size: 0.72rem; line-height: 20px; text-align: center;
  opacity: 0; transform: scale(0.4);
  transition: opacity 0.18s, transform 0.18s;
}
.beitrag-option.active::after { opacity: 1; transform: scale(1); }

/* Checkboxen */
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.88rem; margin: 16px 0 0; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gruen); flex-shrink: 0; }
.check a { color: var(--gruen); }

/* ─── Unterschrift ─── */
.sig-block { position: relative; margin-bottom: 6px; }
.sig-block.sig-empty::before {
  content: ""; position: absolute; left: 28px; right: 28px; bottom: 46px;
  border-bottom: 1.5px solid var(--linie); pointer-events: none;
}
.sig-block.sig-empty::after {
  content: "✕  hier unterschreiben"; position: absolute; left: 28px; bottom: 24px;
  font-size: 0.8rem; color: var(--muted); pointer-events: none; letter-spacing: 0.02em;
}
.sig-canvas {
  display: block; width: 100%; height: 160px; touch-action: none;
  background: #fdfcf8; border: 1.5px dashed var(--gruen); border-radius: var(--radius);
  cursor: crosshair;
}
.btn-clear {
  position: absolute; top: 8px; right: 8px; font: inherit; font-size: 0.78rem;
  background: #fff; border: 1px solid var(--linie); border-radius: 8px;
  padding: 4px 10px; cursor: pointer; color: var(--muted);
}
.btn-clear:hover { color: var(--rot); border-color: var(--rot); }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ─── Absenden ─── */
.btn-submit {
  display: block; width: 100%; margin-top: 22px; font: inherit; font-weight: 700; font-size: 1.05rem;
  background: var(--gruen); color: #fff; border: none; border-radius: var(--radius);
  padding: 15px; cursor: pointer; box-shadow: 0 3px 12px rgba(44,74,59,0.28);
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn-submit:hover { background: var(--gruen-dunkel); box-shadow: 0 5px 16px rgba(44,74,59,0.35); }
.btn-submit:active { transform: scale(0.99); }
.btn-submit .spin {
  display: inline-block; width: 16px; height: 16px; margin-right: 9px; vertical-align: -3px;
  border: 2.5px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%;
  animation: spin-rot 0.8s linear infinite;
}
@keyframes spin-rot { to { transform: rotate(360deg); } }

/* ─── Dezente Effekte (nur ohne "Bewegung reduzieren") ─── */
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: hero-zoom 16s ease-out both; }
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
  .reveal.visible { opacity: 1; transform: none; }
  .success-check circle { stroke-dasharray: 152; stroke-dashoffset: 152; animation: check-draw 0.55s ease-out 0.1s forwards; }
  .success-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: check-draw 0.4s ease-out 0.6s forwards; }
}
@keyframes hero-zoom { from { transform: scale(1.09); } to { transform: scale(1); } }
@keyframes check-draw { to { stroke-dashoffset: 0; } }
.btn-submit:disabled { opacity: 0.6; cursor: wait; }
.form-error {
  background: #fdf0ec; border: 1.5px solid var(--rot); color: var(--rot);
  border-radius: var(--radius); padding: 12px 14px; font-size: 0.88rem; margin-top: 16px;
}
.form-error ul { margin-left: 18px; }
.success { text-align: center; padding: 34px 10px; }
.success-check { width: 86px; height: 86px; margin: 0 auto 18px; }
.success-check svg { width: 100%; height: 100%; display: block; }
.success-check circle { fill: none; stroke: var(--gruen); stroke-width: 3; }
.success-check path { fill: none; stroke: var(--gruen); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.success h3 { font-size: 1.5rem; margin-bottom: 10px; }
.success p { max-width: 420px; margin: 0 auto; }

/* ─── Fuß (grünes Band) ─── */
.site-footer {
  text-align: center; background: var(--gruen); color: rgba(255,255,255,0.75);
  font-size: 0.8rem; padding: 22px 16px 26px; margin-top: 44px; line-height: 1.8;
  border-top: 4px solid var(--rot);
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }

/* ─── Rechtsseiten ─── */
.legal .card h2 { margin-bottom: 14px; }
.legal .card h3 { font-size: 1rem; margin: 20px 0 6px; border: none; }
.legal .card p, .legal .card li { font-size: 0.92rem; margin-bottom: 8px; }
.legal .card ul { padding-left: 20px; }
.legal .card a { color: var(--gruen); }
