/* Rumfass-Regatta – Anmeldeformular
   Palette: Tiefsee-Navy, Segelweiß, Bojen-Orange, Tau-Sand */
:root {
  --navy-900: #0b2c45;
  --navy-700: #123a5c;
  --sail-white: #f6f8fa;
  --paper: #ffffff;
  --buoy-orange: #e8543e;
  --rope-tan: #c8a165;
  --ink: #1f2933;
  --ink-soft: #52606d;
  --line: #d9e0e6;
  --radius: 6px;
  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sail-white);
  line-height: 1.5;
}

.site-header {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--sail-white);
  padding: 2.5rem 1.5rem 3.5rem;
  position: relative;
}

.site-header .eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--rope-tan);
}

.site-header h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0.4rem 0 0.3rem;
  letter-spacing: 0.01em;
}

.site-header p {
  margin: 0;
  color: #cddaea;
  max-width: 52ch;
}

.horizon {
  display: block;
  width: 100%;
  height: 28px;
  margin-top: -1px;
}

main {
  max-width: 760px;
  margin: -2.2rem auto 3rem;
  padding: 0 1.25rem;
}

form.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px -18px rgba(11, 44, 69, 0.35);
  padding: 2rem;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.section-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy-700);
  margin: 1.75rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--rope-tan);
  position: relative;
}
.section-label:first-child { border-top: none; padding-top: 0; margin-top: 0; }

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.field {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field.wide { flex-basis: 100%; }

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

label .req {
  color: var(--buoy-orange);
  margin-left: 0.15rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sail-white);
  color: var(--ink);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--navy-700);
  outline-offset: 1px;
}

textarea { min-height: 5.5rem; resize: vertical; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--sail-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-top: 0.5rem;
}
.checkbox-row input { margin-top: 0.2rem; }
.checkbox-row label { font-weight: 500; }

.actions {
  margin-top: 1.75rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

button {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
}

button.primary {
  background: var(--buoy-orange);
  color: #fff;
}
button.primary:hover { background: #cf432e; }

button.secondary {
  background: transparent;
  color: var(--navy-700);
  border: 1px solid var(--line);
}
button.secondary:hover { border-color: var(--navy-700); }

.error-box {
  background: #fdecea;
  border: 1px solid #f2b8b0;
  color: #9c2b1f;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.success-box {
  background: #eaf6ee;
  border: 1px solid #b7dfc4;
  color: #1f6b3a;
  padding: 1.2rem;
  border-radius: var(--radius);
}

/* Kontrollansicht */
.review-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.review-table th,
.review-table td {
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.review-table th {
  width: 40%;
  color: var(--ink-soft);
  font-weight: 600;
}

.hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: -0.25rem 0 1.25rem;
}

@media (max-width: 560px) {
  form.card { padding: 1.25rem; }
  .actions { flex-direction: column-reverse; }
  button { width: 100%; }
}
