/* Self-hosted fonts (no Google Fonts requests -> DSGVO-friendly) */
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

/* Colors taken from the logo */
:root {
  color-scheme: light;
  --paper: #fafaf7;
  --green: #1f4d36;
  --green-dark: #163a28;
  --green-soft: #5c7a69;
  --lime: #c3d82e;
  --lime-soft: #f2f6d5;
  --text: #1f2a24;
  --border: #d9ded5;
  --white: #ffffff;
  --error: #b3261e;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  padding: 40px 16px 32px;
}

[hidden] { display: none !important; }

/* ---------- Brand header (mirrors the logo) ---------- */
.brand {
  text-align: center;
  color: var(--green);
  margin: 0 auto 28px;
}

.brand-ball {
  width: 52px;
  height: 52px;
  display: block;
  margin: 0 auto 14px;
}

.brand-kicker,
.brand-place {
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
}

.brand-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.32em;
}

.brand-name {
  margin: 2px 0 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 8vw, 3rem);
  line-height: 1.1;
}

.brand-rule {
  display: block;
  width: 72px;
  height: 2px;
  background: var(--lime);
  margin: 0 auto 12px;
}

.brand-place {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: var(--green-soft);
}

/* ---------- Card ---------- */
.card {
  background: var(--white);
  border: 3px solid var(--green);
  border-radius: 24px;
  padding: 32px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

h1 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--green);
  font-size: 1.8rem;
  margin: 0 0 4px;
}

.subtitle {
  margin: 0 0 24px;
  color: var(--green-soft);
  font-size: 0.95rem;
}

fieldset {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
  padding: 22px 0 6px;
  min-width: 0;
}

legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}

.step {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--green);
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.row-zip { grid-template-columns: 7rem 1fr; }

.field {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--green);
}

input[type="text"],
input[type="email"],
input[type="date"],
select {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--paper);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f4d36' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

input:focus,
select:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(195, 216, 46, 0.55);
}

input.invalid,
select.invalid { border-color: var(--error); }

.hint {
  font-size: 0.75rem;
  color: var(--green-soft);
  margin-top: 4px;
}

.error {
  font-size: 0.78rem;
  color: var(--error);
  min-height: 1em;
  margin-top: 4px;
  display: block;
}

/* Under-18 notice */
.notice {
  background: var(--lime-soft);
  border-left: 4px solid var(--lime);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.notice strong { display: block; margin-bottom: 2px; }

/* Privacy */
.privacy {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--paper);
  margin-bottom: 14px;
}

.privacy summary {
  cursor: pointer;
  padding: 11px 13px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
}

.privacy-body {
  padding: 0 13px 6px;
  font-size: 0.8rem;
  color: var(--text);
}

.privacy-body p { margin: 0 0 10px; }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  color: var(--text);
  font-size: 0.88rem;
  cursor: pointer;
  margin: 4px 0 0;
}

.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--green);
  cursor: pointer;
}

#guardian-wrap { margin-top: 8px; }

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

/* Submit */
button[type="submit"] {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  margin-top: 18px;
  transition: background 0.15s, transform 0.1s;
}

button[type="submit"]:hover { background: var(--green-dark); }
button[type="submit"]:active { transform: scale(0.99); }
button[type="submit"]:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#form-message {
  text-align: center;
  font-size: 0.92rem;
  margin: 14px 0 0;
  min-height: 1.2em;
}

#form-message.success { color: var(--green); font-weight: 600; }
#form-message.error { color: var(--error); }

.foot {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--green-soft);
  margin-top: 24px;
}

@media (max-width: 480px) {
  body { padding-top: 28px; }
  .card { padding: 22px 18px; border-radius: 18px; }
  .row { grid-template-columns: 1fr; }
  .row-zip { grid-template-columns: 6rem 1fr; }
}

.privacy-body a { color: var(--green); font-weight: 600; }
