/* =============================================================================
 * Balter Security — Schulungsevent 05.11.2026 · Anmeldeformular
 *
 * Own document root (anmeldung.balter.de), so the page is self-contained: its
 * fonts, its tokens, its one stylesheet. The tokens and the Zen-Dots/Canaro
 * pairing are the balter.de-side brand (brandbook: orange #fb824b on #0f0f0f),
 * kept in step with landing/styles.css. The @font-face metric overrides are the
 * same ones the site uses — the vertical-centring fix lives in the font metrics,
 * never in per-element nudges.
 * ========================================================================== */

@font-face {
  font-family: 'Zen Dots';
  src: url('assets/fonts/ZenDots-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
  ascent-override: 95.75%; descent-override: 24.25%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Canaro';
  src: url('assets/fonts/Canaro-Book.woff2') format('woff2');
  font-weight: 400; font-display: swap;
  ascent-override: 94%; descent-override: 26%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Canaro';
  src: url('assets/fonts/Canaro-Medium.woff2') format('woff2');
  font-weight: 500; font-display: swap;
  ascent-override: 94%; descent-override: 26%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Canaro';
  src: url('assets/fonts/Canaro-SemiBold.woff2') format('woff2');
  font-weight: 600; font-display: swap;
  ascent-override: 94%; descent-override: 26%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Canaro';
  src: url('assets/fonts/Canaro-Bold.woff2') format('woff2');
  font-weight: 700; font-display: swap;
  ascent-override: 94%; descent-override: 26%; line-gap-override: 0%;
}

:root {
  --accent: #fb824b;
  --accent-2: #6699cc;
  --bg: #0f0f0f;
  --surface: #151515;
  --surface-2: #1c1c1c;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --fg: #ffffff;
  --fg-muted: #959595;
  --fg-dim: rgba(255, 255, 255, 0.45);
  --ok: #58b368;
  --err: #e5604d;
  --tint: rgba(255, 255, 255, 0.06);
  --shadow: rgba(0, 0, 0, 0.45);
  --r-sm: 2px;
  --r: 4px;
  --r-lg: 8px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t: 200ms;
  --gutter: clamp(20px, 5vw, 48px);
  --maxw: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Canaro', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* A faint orange glow top-left, the same signal accent the brand uses on dark. */
  background-image:
    radial-gradient(900px 420px at 15% -5%, rgba(251, 130, 75, 0.10), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(102, 153, 204, 0.06), transparent 55%);
  background-repeat: no-repeat;
}

::selection { background: var(--accent); color: #0f0f0f; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }

/* ------------------------------------------------------------------ header -- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(15, 15, 15, 0.6);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo img { height: 26px; display: block; }
.site-header__tag {
  font-family: 'Zen Dots', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

/* -------------------------------------------------------------------- main -- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) var(--gutter) 80px;
}

.eyebrow {
  font-family: 'Zen Dots', sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.hero__title {
  font-family: 'Zen Dots', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.12;
  margin: 0 0 18px;
}

.hero__lead {
  font-size: clamp(16px, 2.4vw, 18px);
  color: var(--fg-muted);
  max-width: 54ch;
  margin: 0 0 28px;
}

/* --- facts strip ----------------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 0 0 40px;
}
.fact { background: var(--surface); padding: 16px 18px; }
.fact__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 6px;
}
.fact__value { font-weight: 600; font-size: 15px; }
.fact__value small { display: block; color: var(--fg-muted); font-weight: 400; font-size: 13px; margin-top: 2px; }

/* -------------------------------------------------------------------- form -- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 4vw, 36px);
}

.form-card__title {
  font-family: 'Zen Dots', sans-serif;
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 6px;
}
.form-card__hint { color: var(--fg-muted); font-size: 14px; margin: 0 0 26px; }

.field { margin-bottom: 20px; }
.field--half { margin-bottom: 0; }

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

label.lbl {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 7px;
  color: var(--fg);
}
label.lbl .opt { color: var(--fg-dim); font-weight: 400; }
.req { color: var(--accent); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--fg);
  font: inherit;
  padding: 11px 13px;
  transition: border-color var(--t) var(--ease-out), background var(--t) var(--ease-out);
}
input::placeholder, textarea::placeholder { color: var(--fg-dim); }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #121212;
}
textarea { resize: vertical; min-height: 92px; }

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' stroke='%23959595' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.help { font-size: 12.5px; color: var(--fg-dim); margin: 7px 0 0; }

/* --- custom dropdown (Anzahl Teilnehmer) — our style, opens downward -------- */
.cselect { position: relative; }
.cselect__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--fg);
  font: inherit;
  text-align: left;
  padding: 11px 13px;
  cursor: pointer;
  transition: border-color var(--t) var(--ease-out), background var(--t) var(--ease-out);
}
.cselect__trigger:hover { border-color: var(--line-strong); }
.cselect__trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cselect[data-open="true"] .cselect__trigger { border-color: var(--accent); background: #121212; }
.cselect__chevron { color: var(--fg-muted); flex: 0 0 auto; transition: transform var(--t) var(--ease-out); }
.cselect[data-open="true"] .cselect__chevron { transform: rotate(180deg); }

.cselect__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  box-shadow: 0 12px 28px var(--shadow);
  animation: cselect-in var(--t) var(--ease-out);
}
@keyframes cselect-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.cselect__option {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 140ms var(--ease-out);
}
.cselect__option:hover,
.cselect__option.is-active { background: var(--tint); }
.cselect__option[aria-selected="true"] { color: var(--accent); font-weight: 600; }

@media (prefers-reduced-motion: reduce) { .cselect__menu { animation: none; } }

/* field error state */
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--err); }
.field__err { display: none; color: var(--err); font-size: 12.5px; margin-top: 6px; }
.field.invalid .field__err { display: block; }

/* --- participant names (dynamic) ------------------------------------------- */
.participants { margin-bottom: 20px; }
.participants__list { display: grid; gap: 10px; }
.participant-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
}
.participant-row .num {
  font-family: 'Zen Dots', sans-serif;
  font-size: 12px;
  color: var(--fg-dim);
  text-align: center;
}

/* --- consent --------------------------------------------------------------- */
.consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.consent input[type="checkbox"] {
  appearance: none;
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 1px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
  position: relative;
  transition: border-color var(--t) var(--ease-out), background var(--t) var(--ease-out);
}
.consent input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute; left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid #0f0f0f; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent label { font-size: 13.5px; color: var(--fg-muted); cursor: pointer; }
.consent.invalid input[type="checkbox"] { border-color: var(--err); }

/* honeypot — never shown */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- actions --------------------------------------------------------------- */
.actions { margin-top: 26px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.btn {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--r);
  padding: 13px 26px;
  transition: transform var(--t) var(--ease-out), background var(--t) var(--ease-out), opacity var(--t);
}
.btn--primary { background: var(--accent); color: #0f0f0f; }
.btn--primary:hover { transform: translateY(-1px); background: #ff9360; }
.btn--primary:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.55; cursor: progress; transform: none; }

.form-note { color: var(--fg-dim); font-size: 12.5px; margin: 0; max-width: 42ch; }

/* --- status message -------------------------------------------------------- */
.status { font-size: 14px; margin-top: 2px; }
.status--err { color: var(--err); }

/* --- success panel --------------------------------------------------------- */
.done {
  text-align: center;
  padding: clamp(28px, 6vw, 56px) clamp(20px, 4vw, 40px);
}
.done__mark {
  width: 64px; height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: rgba(88, 179, 104, 0.14);
  border: 1px solid rgba(88, 179, 104, 0.4);
  display: grid; place-items: center;
}
.done__mark svg { width: 30px; height: 30px; }
.done__title {
  font-family: 'Zen Dots', sans-serif;
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 12px;
}
.done__text { color: var(--fg-muted); max-width: 46ch; margin: 0 auto; }

/* ------------------------------------------------------------------ footer -- */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--fg-dim);
  font-size: 12.5px;
}
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.site-footer a { color: var(--fg-muted); }

/* --------------------------------------------------------------- responsive -- */
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; gap: 20px; }
  .field--half { margin-bottom: 20px; }
  .field--half:last-child { margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
