:root {
  --paper: #f7f3ea;
  --card: #ffffff;
  --ink: #2f2a26;
  --muted: #6b635b;
  --line: #e2dccf;
  --pink: #e8336d;
  --pink-dark: #c41f56;
  --yellow: #f2c230;
  --green: #8cc63f;
  --blue: #4fb3d9;
  --radius: 18px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  z-index: 10;
}
.skip-link:focus { left: 8px; top: 8px; }

.hidden { display: none; }

/* Header */
.site-header {
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
}
.brand img { width: 48px; height: 48px; border-radius: 50%; }

/* Hero */
.hero { background: #fff; border-bottom: 1px solid var(--line); }
.hero img { margin: 0 auto; }

/* Intro */
.intro { padding-top: 40px; padding-bottom: 24px; }
h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 800;
}
h1::after {
  content: "";
  display: block;
  width: 96px;
  height: 6px;
  margin-top: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--pink) 0 25%, var(--yellow) 25% 50%, var(--green) 50% 75%, var(--blue) 75%);
}
.intro p { margin: 0; max-width: 62ch; color: var(--muted); }
.intro strong { color: var(--ink); }

/* Card + form */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 6px 24px rgba(47, 42, 38, 0.06);
}
@media (min-width: 640px) { .card { padding: 36px; } }

#anmeldung { padding-bottom: 56px; scroll-margin-top: 80px; }

.form-note { margin: 0 0 20px; color: var(--muted); font-size: 0.95rem; }
.req { color: var(--pink); font-weight: 800; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 20px 24px; }
  .field-full { grid-column: 1 / -1; }
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: #fffdf9;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  min-height: 46px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79, 179, 217, 0.25);
}

.btn {
  display: inline-block;
  margin-top: 24px;
  font: inherit;
  font-weight: 800;
  color: #fff;
  background: var(--pink);
  border: 0;
  border-radius: 999px;
  padding: 12px 28px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--pink-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn-small { margin-top: 0; padding: 8px 18px; font-size: 0.95rem; }

@media (max-width: 639px) {
  .form .btn { width: 100%; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-inner img { width: 72px; height: 72px; border-radius: 50%; }
.footer-inner p { margin: 0; }

/* Thank-you page */
.thanks {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 32px;
  padding-bottom: 32px;
  text-align: center;
}
.thanks .card { max-width: 560px; }
.thanks img { margin: 0 auto 8px; width: 140px; border-radius: 50%; }
.thanks h1::after { margin-left: auto; margin-right: auto; }
.thanks p { color: var(--muted); }
