/* ARGO Global — Training registration site (page + admin share this theme)
   Palette taken from flyer/argoglobal.de: navy bg, white text, light-blue accent #2E9BF0
   Fonts: Montserrat (headings) + Lato (body) — self-hosted (see Datenschutz approach of argoglobal.de) */

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('/assets/fonts/lato-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('/assets/fonts/lato-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-1: #081a35;
  --navy-2: #0e2a52;
  --navy-3: #163d72;
  --blue: #2e9bf0;
  --blue-bright: #4dadff;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.16);
  --field-bg: rgba(255, 255, 255, 0.07);
  --error: #ff7a7a;
  --ok: #55e0a0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', 'Segoe UI', Arial, sans-serif;
  color: var(--white);
  background: linear-gradient(160deg, var(--navy-1) 0%, var(--navy-2) 55%, var(--navy-3) 100%) fixed;
  min-height: 100vh;
  line-height: 1.55;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 85% 12%, rgba(46, 155, 240, 0.18) 0%, transparent 60%),
    radial-gradient(50% 35% at 10% 90%, rgba(46, 155, 240, 0.12) 0%, transparent 60%);
}

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px 48px; position: relative; }

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 0 10px;
}
.topbar img { height: 46px; width: auto; }
.topbar .divider { width: 1px; height: 44px; background: var(--line); }
.topbar .tagline { font-size: 13px; line-height: 1.5; color: var(--muted); letter-spacing: 0.02em; }

/* ---------- hero ---------- */
.hero { padding: 34px 0 8px; }
.hero h1 {
  font-family: 'Montserrat', 'Lato', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.accent-bar {
  width: 64px; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  margin: 18px 0;
}
.hero .sub { font-size: clamp(16px, 2.6vw, 20px); color: var(--muted); max-width: 560px; }

/* topic chips */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 28px 0;
}
@media (max-width: 720px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
}
.kpi svg { width: 26px; height: 26px; stroke: var(--blue); fill: none; stroke-width: 1.8; margin-bottom: 8px; }
.kpi .t { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13.5px; line-height: 1.35; }

/* course info */
.info-row {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 10px 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin-bottom: 8px;
}
@media (max-width: 860px) { .info-row { grid-template-columns: repeat(2, auto); justify-content: space-between; } }
@media (max-width: 480px) { .info-row { grid-template-columns: 1fr; } }
.info-row .item { display: flex; gap: 12px; align-items: flex-start; }
.info-row svg { width: 30px; height: 30px; stroke: var(--blue); fill: none; stroke-width: 1.6; flex: 0 0 auto; margin-top: 2px; }
.info-row .lbl { font-size: 12.5px; color: var(--muted); letter-spacing: 0.03em; }
.info-row .val { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 15.5px; white-space: nowrap; }

/* ---------- form card ---------- */
.form-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 36px);
  margin: 26px 0 40px;
  max-width: 640px;
}
.form-card h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 3.6vw, 26px);
  margin-bottom: 6px;
}
.form-card .hint { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.field .req { color: var(--blue); }
.field input {
  width: 100%;
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  -webkit-appearance: none;
}
.field input:focus { border-color: var(--blue); background: rgba(255, 255, 255, 0.1); }
.field input::placeholder { color: rgba(255, 255, 255, 0.35); }
.field input[type='date'] { min-height: 48px; }
.field input[type='date']::-webkit-calendar-picker-indicator { filter: invert(1) opacity(0.7); }
.field .err {
  display: none;
  color: var(--error);
  font-size: 13px;
  margin-top: 5px;
}
.field.invalid input { border-color: var(--error); }
.field.invalid .err { display: block; }

/* consent */
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0; }
.consent input {
  width: 20px; height: 20px; margin-top: 2px;
  accent-color: var(--blue);
  flex: 0 0 auto;
}
.consent label { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.consent a { color: var(--blue-bright); font-weight: 700; text-decoration: none; }
.consent a:hover { text-decoration: underline; }

/* Honeypot: never visible, never tabbable */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
  background: linear-gradient(135deg, #1f7fd4 0%, var(--blue) 55%, var(--blue-bright) 100%);
  border: none;
  border-radius: 10px;
  padding: 15px 30px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 8px 24px rgba(46, 155, 240, 0.25);
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(46, 155, 240, 0.35); }
.cta:disabled { opacity: 0.6; cursor: wait; transform: none; }

.status { margin-top: 16px; font-size: 14.5px; display: none; }
.status.err-out { display: block; color: var(--error); }
.status.ok-out { display: block; color: var(--ok); }

/* success panel replaces form */
.success-panel { display: none; }
.success-panel.show { display: block; }
.success-panel h2 {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 24px; margin-bottom: 10px;
}
.success-panel svg { width: 52px; height: 52px; stroke: var(--ok); fill: none; stroke-width: 2; margin-bottom: 14px; }
.success-panel p { color: var(--muted); max-width: 480px; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding: 22px 0 8px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--white); }

/* ---------- admin ---------- */
.page-admin .admin-box {
  max-width: 1080px;
}
.token-gate { max-width: 420px; }
.token-gate .field { margin-top: 18px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0 6px; }
.admin-actions .spacer { flex: 1; }
.btn-secondary {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.14); }
.btn-secondary.accent {
  background: linear-gradient(135deg, #1f7fd4, var(--blue));
  border: none;
  box-shadow: 0 6px 18px rgba(46, 155, 240, 0.25);
}
.admin-meta { color: var(--muted); font-size: 13.5px; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: 14px; }
table.admin {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 760px;
}
table.admin th {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.06em;
  text-align: left; color: var(--blue-bright);
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}
table.admin td { padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); vertical-align: top; }
table.admin tr:last-child td { border-bottom: none; }
table.admin td.num { white-space: nowrap; }
.badge-ok {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 700;
  background: rgba(85, 224, 160, 0.15); color: var(--ok);
}
.badge-err {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 700;
  background: rgba(255, 122, 122, 0.15); color: var(--error);
}
.empty-note { color: var(--muted); padding: 26px 14px; text-align: center; }
