/* Spendenlauf Otterfing – Farbwelt nach Flyer */
:root {
  --navy: #223061;
  --lime: #9dc531;
  --yellow: #f5d327;
  --pink: #e8397d;
  --teal: #2fb5a8;
  --cream: #f7f1e3;
  --ink: #1d2547;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}
h1, h2, h3 { font-weight: 900; letter-spacing: -0.02em; }
a { color: var(--pink); }

/* Hero */
.hero {
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(157,197,49,.35), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(47,181,168,.30), transparent 60%),
    var(--navy);
  color: #fff;
  text-align: center;
  padding: 3.5rem 1rem 4rem;
}
.hero-logo {
  width: min(300px, 70vw);
  background: #fff;
  border-radius: 16px;
  padding: .6rem 1rem;
  transform: rotate(-2deg);
  box-shadow: 0 6px 22px rgba(0,0,0,.28);
  margin-bottom: 1.2rem;
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  opacity: .85;
  margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(3rem, 11vw, 6.5rem);
  line-height: .95;
  margin: 0;
  text-transform: uppercase;
}
.hero h1 .w1 { display: block; color: #fff; }
.hero h1 .w2 { display: block; color: var(--lime); }
.hero-sub {
  display: inline-block;
  background: #16204a;
  padding: .2rem 1rem;
  transform: rotate(-1.5deg);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  margin: 1.2rem 0 .4rem;
}
.hero-project {
  font-size: clamp(1.2rem, 4vw, 1.9rem);
  font-weight: 900;
  color: var(--yellow);
  margin: .2rem 0 .6rem;
}
.hero-claim { font-size: 1.15rem; margin: 0 0 1.8rem; }

.btn {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  padding: .8rem 2rem;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(232,57,125,.4);
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn-big { font-size: 1.2rem; padding: 1rem 2.6rem; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* Facts */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 0 1rem;
  margin-top: -2.2rem;
}
.fact-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(34,48,97,.14);
  padding: 1.1rem 1.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 200px;
}
.fact-icon { font-size: 1.6rem; }
.fact-big { font-size: 1.4rem; font-weight: 900; color: var(--pink); }

/* Sections */
main { max-width: 860px; margin: 0 auto; padding: 1rem; }
section { margin: 3rem 0; }
h2 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
h2::after {
  content: "";
  display: block;
  width: 70px; height: 6px;
  background: var(--lime);
  border-radius: 3px;
  margin-top: .3rem;
  transform: rotate(-1deg);
}

.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.pill { padding: .55rem 1.1rem; border-radius: 999px; color: #fff; font-size: .95rem; }
.pill-pink { background: var(--pink); }
.pill-teal { background: var(--teal); }
.pill-navy { background: var(--navy); }
.pill-lime { background: var(--lime); color: var(--ink); }

.step-list { counter-reset: step; list-style: none; padding: 0; display: grid; gap: .9rem; }
.step-list li {
  counter-increment: step;
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.2rem 1rem 4rem;
  position: relative;
  box-shadow: 0 3px 12px rgba(34,48,97,.08);
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.step-list li:nth-child(2n)::before { background: var(--pink); }
.step-list li:nth-child(3n)::before { background: var(--lime); color: var(--ink); }

/* Formular */
.anmeldung {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(34,48,97,.12);
  border-top: 8px solid var(--lime);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
label { display: flex; flex-direction: column; gap: .3rem; font-weight: 700; font-size: .95rem; }
label small { font-weight: 400; color: #667; }
input[type=text], input[type=email], input[type=number] {
  font: inherit;
  padding: .7rem .9rem;
  border: 2px solid #d8d4c6;
  border-radius: 10px;
  background: var(--cream);
}
input:focus { outline: none; border-color: var(--teal); background: #fff; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { flex-direction: row; align-items: flex-start; gap: .6rem; font-weight: 400; margin: 1rem 0; }
.consent input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; }
.riddle {
  background: var(--cream);
  border: 2px solid var(--yellow);
  border-radius: 12px;
  padding: .9rem 1.1rem;
  margin: 1rem 0;
}
.riddle input { max-width: 130px; }
.turnstile-slot { margin: .8rem 0; }
.form-status { min-height: 1.4em; font-weight: 700; }
.form-status.error { color: #c0182f; }
.form-status.busy { color: var(--teal); }

.success-box {
  background: linear-gradient(135deg, rgba(157,197,49,.18), rgba(47,181,168,.15));
  border: 3px dashed var(--lime);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}
.success-number {
  display: inline-block;
  font-size: 2.6rem;
  color: var(--pink);
  background: #fff;
  border-radius: 12px;
  padding: .2rem 1.2rem;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
}

.sponsors { text-align: center; color: #556; font-size: .95rem; }

/* Rechtstexte + Admin */
.legal { max-width: 720px; margin: 0 auto; padding: 2rem 1rem; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.15rem; text-transform: none; margin-top: 1.8rem; }
.legal h2::after { display: none; }

footer {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}
footer a { color: var(--yellow); }
