/* ── Variables ────────────────────────────────────────────── */
:root {
  --terracotta:       #a97158;
  --terracotta-dark:  #8a5a42;
  --terracotta-light: #c08d72;
  --cream:            #f0eae0;
  --cream-light:      #faf6f0;
  --on-terracotta:    #e6d0bc;  /* light text on terracotta bg */
  --text:             #6e4530;
  --text-light:       #a87d65;
  --border:           #ddd0c0;
  --error:            #b44;
  --radius:           3px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 300;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem 4rem;
}

/* ── Cover page (landing) ─────────────────────────────────── */
body.cover {
  background: var(--terracotta);
  align-items: center;
  min-height: 100svh;
  padding: 4rem 1rem 2rem;
}

/* ── Language switcher ────────────────────────────────────── */
.lang-switcher {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.lang-switcher a {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--on-terracotta);
  opacity: 0.6;
  transition: opacity 0.2s;
}

.lang-switcher a.active,
.lang-switcher a:hover {
  opacity: 1;
}

body:not(.cover) .lang-switcher a {
  color: var(--text-light);
}

body:not(.cover) .lang-switcher a.active,
body:not(.cover) .lang-switcher a:hover {
  color: var(--text);
}

main {
  width: 100%;
  max-width: 560px;
}

/* ── Card ─────────────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2.5rem 3rem;
  box-shadow: 0 2px 16px rgba(90, 50, 20, 0.08);
}

/* ── Form logo ────────────────────────────────────────────── */
.form-logo {
  display: block;
  margin: 0 auto 1.5rem;
  width: 100%;
  max-width: 180px;
}

/* ── Headings ─────────────────────────────────────────────── */
h1 {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

.subtitle {
  text-align: center;
  color: var(--terracotta);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ── Landing page ─────────────────────────────────────────── */
.landing {
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
  padding: 0;
}

.landing h1 {
  color: var(--cream-light);
  font-size: 2.2rem;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
}

.landing .date {
  color: var(--on-terracotta);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  margin-bottom: 3rem;
}

/* ── Button / link ────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.8rem 2.8rem;
  background: transparent;
  color: var(--on-terracotta);
  text-decoration: none;
  border: 1px solid var(--on-terracotta);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--on-terracotta);
  color: var(--terracotta);
}

/* ── Page-level home button (danke) ───────────────────────── */
.page-home-btn {
  position: fixed;
  top: 1rem;
  left: 1.25rem;
  display: inline-block;
  white-space: nowrap;
  color: var(--on-terracotta);
  opacity: 0.7;
  text-decoration: none;
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  transition: opacity 0.2s;
  z-index: 10;
}

.page-home-btn:hover { opacity: 1; }


/* ── Form fields ──────────────────────────────────────────── */
form { display: flex; flex-direction: column; gap: 1.5rem; }

.field { display: flex; flex-direction: column; gap: 0.4rem; }

label {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.04em;
}

.required { color: var(--terracotta-light); }

input[type="text"],
select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s;
  appearance: none;
}

select {
  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' stroke='%23b08a70' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-color: var(--cream);
  padding-right: 2.5rem;
}

input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(181, 114, 78, 0.12);
}

/* ── Fieldsets / radio ────────────────────────────────────── */
fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem 1.2rem;
}

legend {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 0 0.4rem;
  color: var(--text);
}

.hidden { display: none !important; }

.station-wrap {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hint-inline {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 300;
}

.hint {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0.4rem 0 0.8rem;
  line-height: 1.6;
}

.radio-group { display: flex; flex-direction: column; gap: 0.6rem; }

.radio-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 1rem;
}

.radio-label small {
  display: block;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.15rem;
  line-height: 1.5;
}

input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  transition: border-color 0.2s;
  position: relative;
}

input[type="radio"]:checked { border-color: var(--terracotta); }

input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--terracotta);
}

/* ── Submit button ────────────────────────────────────────── */
button[type="submit"] {
  margin-top: 0.5rem;
  padding: 0.85rem;
  background: var(--terracotta);
  color: var(--cream-light);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s;
}

button[type="submit"]:hover { background: var(--terracotta-dark); }

/* ── Error ────────────────────────────────────────────────── */
.error {
  border-left: 3px solid var(--terracotta);
  background: rgba(169, 113, 88, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* ── Danke page ───────────────────────────────────────────── */
.danke {
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 3.5rem;
  margin-top: 2rem;
}

.danke h1 { margin-bottom: 1.5rem; }


.danke p {
  color: var(--text-light);
  line-height: 1.8;
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

.danke p.small { font-size: 0.9rem; margin-top: 0.5rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .card { padding: 2rem 1.5rem 2.5rem; }
  h1 { font-size: 1.6rem; }
  .landing h1 { font-size: 1.8rem; }
}
