/* ============================================================
   Sportstech Design Tokens — Colors & Type
   Imported from claude.ai/design — DO NOT EDIT MANUALLY
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wdth,wght@0,100..125,400..900;1,100..125,400..900&family=Inter:ital,wght@0,300..700;1,300..700&display=swap');

:root {
  --sportstech-dark: #25282A;
  --sportstech-red:  #E4002B;
  --warm-grey:       #D1CCBD;
  --warm-bg:         #E7E3D8;   /* page background */
  --off-white:       #F6F4EE;
  --dark-500:        #6B6E71;
  --dark-300:        #9FA2A4;
  --fg-1: #25282A;
  --fg-2: #4A4D4F;
  --fg-3: #85888A;
  --border-subtle: rgba(37, 40, 42, 0.12);
  --border-mid:    rgba(37, 40, 42, 0.22);
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
  --shadow-card: 0 14px 32px rgba(37, 40, 42, 0.10);
  --shadow-btn:  0 4px 12px rgba(228, 0, 43, 0.18);
  --shadow-btn-hover: 0 10px 24px rgba(228, 0, 43, 0.30);
  --radius-card: 20px;
  --radius-input: 10px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--fg-1);
  background: var(--warm-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Typography helpers ── */
.s-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-stretch: 112%;
}
.s-editorial {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-stretch: 112%;
  line-height: 1.05;
}
.s-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  font-stretch: 112%;
  line-height: 1.2;
}
.s-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-stretch: 112%;
  color: var(--fg-1);
}

/* ── Layout ── */
.page-wrapper {
  min-height: 100vh;
  padding: 40px 24px 80px;
}
.container {
  max-width: 720px;
  margin: 0 auto;
}
.container-wide {
  max-width: 960px;
  margin: 0 auto;
}

/* ── Header ── */
.sp-topbar {
  max-width: 960px;
  margin: 0 auto 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sp-logo {
  height: 28px;
  width: auto;
}

/* ── Language switcher ── */
.lang-switcher { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border-subtle);
  color: var(--fg-1);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-stretch: 112%;
  cursor: pointer;
  transition: all 160ms var(--ease-out);
}
.lang-toggle:hover { border-color: var(--sportstech-red); }
.lang-toggle svg { transition: transform 160ms; }
.lang-toggle.open svg { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 50;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(37,40,42,0.18);
  border: 1px solid rgba(37,40,42,0.08);
  overflow: hidden;
  min-width: 200px;
  display: none;
}
.lang-dropdown.open { display: block; }
.lang-option {
  display: flex; align-items: center; gap: 12;
  width: 100%; padding: 11px 16px;
  border: none; border-left: 3px solid transparent;
  background: transparent; color: var(--fg-1);
  cursor: pointer; text-align: left;
  font-size: 14px; font-family: var(--font-body);
  transition: background 120ms;
}
.lang-option:hover { background: var(--off-white); }
.lang-option.active {
  background: rgba(228,0,43,0.06);
  border-left-color: var(--sportstech-red);
}
.lang-option .flag { font-size: 18px; }
.lang-option .name { flex: 1; font-weight: 400; }
.lang-option.active .name { font-weight: 600; }
.lang-option .code {
  font-size: 11px; color: var(--fg-3);
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ── Page header text ── */
.page-header { margin-bottom: 32px; }
.page-eyebrow { color: var(--sportstech-red); margin-bottom: 16px; }
.page-title {
  font-size: clamp(36px, 5vw, 56px);
  margin: 0 0 16px;
  color: var(--fg-1);
}
.page-sub {
  font-size: 18px; line-height: 1.55;
  color: var(--fg-2); margin: 0;
  max-width: 560px;
}

/* ── Card ── */
.sp-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-card);
}

/* ── Section header ── */
.section-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
[dir="rtl"] .section-header { flex-direction: row-reverse; }
.section-header-bar {
  width: 24px; height: 2px;
  background: var(--sportstech-red);
  flex-shrink: 0;
}
.section-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700; font-stretch: 112%;
  font-size: 18px; color: var(--fg-1);
}

/* ── Form grid ── */
.form-group { display: flex; flex-direction: column; margin-bottom: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row-single { margin-bottom: 16px; }
.form-section { margin-bottom: 28px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ── Labels ── */
.field-label {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--font-display);
  font-weight: 600; font-stretch: 112%;
  font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-1);
  margin-bottom: 8px;
}
[dir="rtl"] .field-label { flex-direction: row-reverse; justify-content: flex-end; }
.field-required { color: var(--sportstech-red); font-size: 10px; }

/* ── Inputs & selects ── */
.field-input,
.field-select {
  font-family: var(--font-body);
  font-size: 15px;
  width: 100%; height: 52px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-input);
  padding: 0 16px;
  background: #fff; color: var(--fg-1);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  outline: none;
  -webkit-appearance: none; appearance: none;
}
.field-input:focus,
.field-select:focus {
  border-color: var(--fg-1);
}
.field-input.error,
.field-select.error { border-color: var(--sportstech-red); }
.field-input::placeholder { color: var(--fg-3); }

.field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5L7 9L11 5' stroke='%2385888A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
  color: var(--fg-3);
}
.field-select:valid,
.field-select.has-value { color: var(--fg-1); }
[dir="rtl"] .field-select {
  background-position: left 16px center;
  padding-right: 16px;
  padding-left: 40px;
}

/* ── Textarea ── */
.field-textarea {
  font-family: var(--font-body);
  font-size: 15px;
  width: 100%;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-input);
  padding: 14px 16px;
  background: #fff; color: var(--fg-1);
  transition: border-color 160ms var(--ease-out);
  outline: none; resize: vertical; min-height: 90px;
  line-height: 1.5;
}
.field-textarea:focus { border-color: var(--fg-1); }
.field-textarea::placeholder { color: var(--fg-3); }
.field-hint { font-size: 12px; color: var(--fg-3); margin-top: 6px; }
[dir="rtl"] .field-hint { text-align: right; }

/* ── Date field ── */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.3) sepia(1) saturate(6) hue-rotate(340deg);
  cursor: pointer;
}

/* ── Error banner ── */
.form-error {
  padding: 12px 16px;
  background: rgba(228,0,43,0.08);
  border-radius: 10px;
  color: var(--sportstech-red);
  font-size: 14px;
  margin-bottom: 20px;
}
.form-error.hidden { display: none; }

/* ── Submit button ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 36px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--sportstech-red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700; font-stretch: 112%;
  font-size: 14px; letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: all 200ms var(--ease-out);
}
.btn-primary:hover { background: #CC0027; box-shadow: var(--shadow-btn-hover); }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary.full { width: 100%; }
[dir="rtl"] .btn-primary { flex-direction: row-reverse; }

/* ── Spinner ── */
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
.spinner.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ── */
.page-footer {
  text-align: center;
  font-size: 12px; color: var(--fg-3);
  letter-spacing: 0.06em;
  margin-top: 32px;
}

/* ── RTL support ── */
[dir="rtl"] .btn-arrow { transform: rotate(180deg); }

/* ── Utility ── */
.hidden { display: none !important; }

/* ── Radio group ── */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-input);
  cursor: pointer;
  transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out);
  background: #fff;
}
.radio-option:hover {
  border-color: var(--border-mid);
  background: var(--off-white);
}
.radio-option input[type="radio"] {
  margin: 3px 0 0;
  flex-shrink: 0;
  width: 18px; height: 18px;
  accent-color: var(--sportstech-red);
  cursor: pointer;
}
.radio-option:has(input:checked) {
  border-color: var(--sportstech-red);
  background: rgba(228, 0, 43, 0.04);
}
.radio-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.radio-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 112%;
  font-size: 14px;
  color: var(--fg-1);
}
.radio-desc {
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.45;
}
[dir="rtl"] .radio-option { flex-direction: row-reverse; }

/* ── Cut-off hint ── */
.cutoff-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(228, 0, 43, 0.06);
  border-radius: 10px;
  border-left: 3px solid var(--sportstech-red);
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.45;
  margin-bottom: 4px;
}
[dir="rtl"] .cutoff-hint {
  border-left: none;
  border-right: 3px solid var(--sportstech-red);
  flex-direction: row-reverse;
}
.cutoff-hint svg { color: var(--sportstech-red); }

/* ── Footer link ── */
.footer-link {
  color: var(--fg-3);
  text-decoration: underline;
  text-decoration-color: var(--border-mid);
  transition: color 160ms;
}
.footer-link:hover { color: var(--sportstech-red); }

/* ── Azubi popup overlay ── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(37, 40, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.popup-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(37, 40, 42, 0.22);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.popup-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(228, 0, 43, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.popup-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 18px;
  color: var(--fg-1);
  margin: 0;
}
.popup-text {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.55;
  margin: 0;
  max-width: 320px;
}
.popup-card .btn-primary { margin-top: 4px; }

/* ── Success page ── */
.success-check {
  width: 72px; height: 72px;
  border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 32px;
  box-shadow: 0 14px 32px rgba(37,40,42,0.10);
}
.summary-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(37,40,42,0.08);
  gap: 16px;
}
.summary-row:last-child { border-bottom: none; }
.summary-label {
  font-family: var(--font-display); font-weight: 600; font-stretch: 112%;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3); flex-shrink: 0;
}
.summary-value {
  font-size: 15px; font-weight: 500; color: var(--fg-1);
  text-align: right;
}
.summary-value.highlight { color: var(--sportstech-red); font-weight: 600; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--fg-1);
  color: var(--fg-1);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-stretch: 112%;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: all 160ms var(--ease-out);
}
.btn-outline:hover { background: rgba(37,40,42,0.06); }
