/* ============================================================
   Swiss Jobrollen Check – Hauptstylesheet
   Alpasana GmbH | alpasana.ch
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Rubik:wght@300;400;500;600;700&display=swap');

:root {
  /* Offizielle Alpasana-Markenfarben (Design-Guide / alpasana.ch) */
  --primary:       #269CD9;  /* Alpasana-Blau (Hauptakzent) */
  --primary-dark:  #1C7CB0;  /* Button-Hover / aktiv */
  --primary-light: #E8F4FB;  /* heller Tint – Hintergründe */
  --secondary:     #2EA3F2;  /* helles Blau */
  --accent:        #2EA3F2;
  --pink:          #2EA3F2;
  --teal:          #269CD9;
  --dark:          #232434;  /* dunkle Flächen: Topbar, Hero, Footer */
  --dark-2:        #2C2D40;
  --bg:            #FFFFFF;
  --bg-soft:       #F5F7FA;  /* abgesetzte Sektionen */
  --white:         #FFFFFF;
  --text:          #232434;  /* Überschriften / starker Text (Navy) */
  --text-muted:    #6E7077;  /* Fließtext (warmes Grau) */
  --border:        #E6E9EF;
  --shadow-sm:     0 4px 14px rgba(35,36,52,.07);
  --shadow:        0 10px 30px rgba(35,36,52,.10);
  --shadow-lg:     0 16px 40px rgba(35,36,52,.14);
  --radius:        14px;
  --radius-sm:     6px;
  --radius-lg:     14px;
  --transition:    .2s ease;
  --font-head:     'Rajdhani', 'Segoe UI', sans-serif;
  --font-body:     'Rubik', 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-muted);
  line-height: 1.7;
  min-height: 100vh;
}
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--text); }
/* Überschriften auf dunklen Flächen wieder hell (sonst unlesbar).
   [class*="hero"] erfasst robust alle Hero-Varianten (.hero, .co-hero, .results-hero …). */
[class*="hero"] h1, [class*="hero"] h2, [class*="hero"] h3,
.sec-dark h1, .sec-dark h2, .sec-dark h3, .final-cta h1, .final-cta h2,
footer h1, footer h2, footer h3, footer h4 { color: #fff; }

a { color: var(--primary); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: .8; }

img { max-width: 100%; height: auto; }

/* ============================================================ LAYOUT */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 680px; margin: 0 auto; padding: 0 20px; }
.container-xs { max-width: 480px; margin: 0 auto; padding: 0 20px; }

/* ============================================================ HEADER */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 40px; width: auto; }
.logo-text { font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--primary); line-height: 1.1; }
.logo-text span { display: block; font-size: .65rem; font-weight: 500; color: var(--text-muted); letter-spacing: .05em; }
nav { display: flex; align-items: center; gap: 8px; }
nav a { padding: 8px 16px; border-radius: var(--radius-sm); font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--text); transition: all var(--transition); }
nav a:hover, nav a.active { background: var(--primary-light); color: var(--primary); opacity: 1; }

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: var(--radius-sm); font-size: 1rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent; text-decoration: none;
  transition: all var(--transition); font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: var(--white);
  box-shadow: 0 6px 18px rgba(38,156,217,.28);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(38,156,217,.36); opacity: 1; }
.btn-secondary {
  background: var(--white); color: var(--primary-dark);
  border: 2px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: #fff; opacity: 1; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--border); opacity: 1; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-sm { padding: 8px 18px; font-size: .875rem; }
.btn-success { background: linear-gradient(135deg, #38A169, #276749); color: #fff; box-shadow: 0 4px 16px rgba(56,161,105,.3); }
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(56,161,105,.4); opacity: 1; }
.btn-danger { background: #E53E3E; color: #fff; }
.btn-block { width: 100%; }

/* ============================================================ CARDS */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px; border: 1px solid var(--border);
}
.card-sm { padding: 20px; }

/* ============================================================ HERO */
.hero {
  background: linear-gradient(125deg, #232434 0%, #232434 52%, #1C7CB0 145%);
  color: var(--white); padding: 64px 0 76px; text-align: center;
  position: relative; overflow: hidden;
}
/* Weiche Lichtflächen für Tiefe (ersetzt das Punktmuster) */
.hero::before {
  content: ''; position: absolute; top: -28%; left: -12%; width: 56%; height: 95%;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 62%);
  filter: blur(48px); pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -38%; right: -10%; width: 62%; height: 100%;
  background: radial-gradient(circle, rgba(79,172,219,.28), transparent 60%);
  filter: blur(56px); pointer-events: none;
}
/* Dezentes Kompass-/Radar-Motiv (passend zum Berufskompass & Spinnendiagramm) */
.hero-rings { position: absolute; top: -110px; right: -90px; width: 440px; height: 440px; opacity: .15; pointer-events: none; z-index: 1; }
.hero-rings svg { width: 100%; height: 100%; display: block; }
.hero-rings-2 { position: absolute; bottom: -140px; left: -110px; width: 360px; height: 360px; opacity: .10; pointer-events: none; z-index: 1; }
/* Wellen-Übergang in den weissen Folgebereich */
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; pointer-events: none; z-index: 1; }
.hero-wave svg { width: 100%; height: 72px; display: block; }
/* Animiertes Knotennetz im Banner (Canvas, gezeichnet von hero-network.js) */
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; pointer-events: none; }
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3);
  padding: 6px 16px; border-radius: 50px; font-size: .85rem; font-weight: 600;
  margin-bottom: 24px; backdrop-filter: blur(4px);
}
.hero h1 {
  font-family: 'Rajdhani', sans-serif; font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 700; line-height: 1.12; margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: .01em;
}
.hero h1 .highlight {
  color: var(--secondary); -webkit-text-fill-color: var(--secondary);
}
.hero p { font-size: 1.2rem; opacity: .9; max-width: 580px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-hero {
  background: var(--white); color: var(--primary-dark);
  font-size: 1.15rem; padding: 16px 40px; box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.2); opacity: 1; }
.hero-stats {
  display: flex; justify-content: center; gap: 48px;
  margin-top: 60px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num { font-family: 'Rajdhani', sans-serif; font-size: 2rem; font-weight: 900; }
.hero-stat-lbl { font-size: .85rem; opacity: .8; }

/* ============================================================ FEATURES */
.features { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  padding: 4px 14px; border-radius: 50px; font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px;
}
.section-header h2 {
  font-family: 'Rajdhani', sans-serif; font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 700; line-height: 1.18; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: .01em;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2.4rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: .95rem; }

/* ============================================================ HOW IT WORKS */
.how-it-works { background: linear-gradient(135deg, #269CD910, #1C7CB010); padding: 80px 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; }
.step { text-align: center; padding: 24px; position: relative; }
.step:not(:last-child)::after {
  content: '→'; position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--primary); opacity: .4;
}
.step-num {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); font-family: 'Rajdhani', sans-serif; font-size: 1.3rem; font-weight: 800;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: .875rem; color: var(--text-muted); }

/* ============================================================ QUIZ */
.quiz-page { min-height: 100vh; background: var(--bg); }
.quiz-header {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 20px 0; position: sticky; top: 68px; z-index: 50;
}
.quiz-progress-bar-wrap {
  height: 8px; background: var(--border); border-radius: 50px; margin-top: 12px; overflow: hidden;
}
.quiz-progress-bar {
  height: 100%; border-radius: 50px; transition: width .5s ease;
  background: linear-gradient(90deg, var(--primary), #2EA3F2);
}
.quiz-etappen { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.quiz-etappe-chip {
  padding: 4px 12px; border-radius: 50px; font-size: .78rem; font-weight: 600;
  border: 2px solid transparent;
}
.quiz-etappe-chip.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.quiz-etappe-chip.done { background: var(--accent); color: #fff; }
.quiz-etappe-chip.todo { background: var(--border); color: var(--text-muted); }

.quiz-body { padding: 48px 0; }
.quiz-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 48px;
  animation: slideUp .35s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.quiz-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.quiz-q-num { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.quiz-q-emoji { font-size: 2.8rem; margin-bottom: 16px; display: block; }
.quiz-q-text { font-family: 'Rajdhani', sans-serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 32px; line-height: 1.3; }

.quiz-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quiz-answer {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px; border-radius: var(--radius); border: 2px solid var(--border);
  cursor: pointer; transition: all var(--transition); text-align: left;
  background: var(--white); font-size: .95rem; font-weight: 500;
  color: var(--text); font-family: inherit;
}
.quiz-answer:hover {
  border-color: var(--primary); background: var(--primary-light);
  transform: translateY(-2px); box-shadow: var(--shadow-sm);
}
.quiz-answer.selected { border-color: var(--primary); background: var(--primary-light); }
.quiz-answer-emoji { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.quiz-answer-text { line-height: 1.4; }

.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; }

/* ============================================================ ETAPPE INTRO */
.etappe-intro {
  text-align: center; padding: 60px 40px;
}
.etappe-intro-icon { font-size: 4rem; margin-bottom: 20px; }
.etappe-intro h2 { font-family: 'Rajdhani', sans-serif; font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.etappe-intro p { color: var(--text-muted); font-size: 1.05rem; max-width: 420px; margin: 0 auto 28px; }

/* ============================================================ RESULT PREVIEW */
.result-preview {
  text-align: center; padding: 48px 40px;
}
.result-preview h2 { font-family: 'Rajdhani', sans-serif; font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.result-preview p { color: var(--text-muted); margin-bottom: 28px; }
.preview-jobrollen { display: flex; flex-direction: column; gap: 12px; margin: 28px 0; text-align: left; }
.preview-rolle {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; background: var(--bg); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.preview-rank { font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--primary); width: 28px; }
.preview-icon { font-size: 1.6rem; }
.preview-name { font-weight: 600; font-size: 1.05rem; }
.preview-bar-wrap { flex: 1; height: 8px; background: var(--border); border-radius: 50px; overflow: hidden; margin-left: auto; max-width: 100px; }
.preview-bar { height: 100%; border-radius: 50px; background: linear-gradient(90deg, var(--primary), #2EA3F2); }
.preview-locked { filter: blur(4px); pointer-events: none; user-select: none; }

/* ============================================================ RESULTS PAGE */
.results-hero {
  background: linear-gradient(135deg, #269CD9, #1C7CB0);
  color: var(--white); padding: 60px 0; text-align: center;
}
.results-hero h1 { font-family: 'Rajdhani', sans-serif; font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.results-hero p { opacity: .85; font-size: 1.05rem; }

.results-body { padding: 48px 0; }
.result-cards { display: flex; flex-direction: column; gap: 28px; }

.result-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  overflow: hidden; transition: transform var(--transition);
}
.result-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.result-card-header {
  padding: 28px 32px; display: flex; align-items: center; gap: 20px;
}
.result-card-rank {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); font-family: 'Rajdhani', sans-serif; font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.result-card-rank.gold   { background: linear-gradient(135deg, #F6D365, #FDA085); }
.result-card-rank.silver { background: linear-gradient(135deg, #D3D3D3, #A8A8A8); }
.result-card-rank.bronze { background: linear-gradient(135deg, #CD853F, #8B4513); }
.result-card-icon { font-size: 2.4rem; }
.result-card-info { flex: 1; }
.result-card-name { font-family: 'Rajdhani', sans-serif; font-size: 1.25rem; font-weight: 800; margin-bottom: 4px; }
.result-card-score { font-size: .875rem; color: var(--text-muted); }
.result-score-bar-wrap { height: 10px; background: var(--border); border-radius: 50px; overflow: hidden; max-width: 200px; margin-top: 8px; }
.result-score-bar { height: 100%; border-radius: 50px; }

.result-card-body { padding: 0 32px 28px; }
.result-card-desc { color: var(--text-muted); font-size: .95rem; line-height: 1.7; margin-bottom: 20px; }
.result-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.result-meta-block { background: var(--bg); border-radius: var(--radius-sm); padding: 14px 16px; }
.result-meta-block h4 { font-size: .78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.result-meta-block p { font-size: .9rem; color: var(--text); line-height: 1.5; }
.result-examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.result-example-chip {
  background: var(--primary-light); color: var(--primary);
  padding: 3px 10px; border-radius: 50px; font-size: .8rem; font-weight: 500;
}
.result-link { font-size: .875rem; color: var(--primary); margin-top: 12px; display: inline-flex; align-items: center; gap: 4px; }

/* ============================================================ FORMS */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-control {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 2px solid var(--border); background: var(--white);
  font-size: 1rem; font-family: inherit; color: var(--text);
  transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(35,36,52,.12); }
.form-control.error { border-color: #E53E3E; }
.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: .95rem; margin-bottom: 20px; }
.alert-error { background: #FFF5F5; border: 1px solid #FC8181; color: #C53030; }
.alert-success { background: #F0FFF4; border: 1px solid #68D391; color: #276749; }
.alert-info { background: var(--primary-light); border: 1px solid var(--primary); color: var(--primary-dark); }

/* ============================================================ AUTH PAGES */
.auth-page {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #269CD915, #1C7CB015);
  padding: 40px 0;
}
.auth-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 48px;
  border: 1px solid var(--border); width: 100%;
}
.auth-header { text-align: center; margin-bottom: 36px; }
.auth-header .auth-icon { font-size: 3rem; margin-bottom: 12px; }
.auth-header h1 { font-family: 'Rajdhani', sans-serif; font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.auth-header p { color: var(--text-muted); font-size: .95rem; }
.auth-footer { text-align: center; margin-top: 24px; font-size: .9rem; color: var(--text-muted); }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { color: var(--text-muted); font-size: .85rem; }

/* ============================================================ ADMIN */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 200px; background: #1A202C;
  color: var(--white); flex-shrink: 0; padding: 0;
  position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; z-index: 200;
  border-right: 1px solid rgba(255,255,255,.06);
}
.admin-sidebar-logo {
  padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: 'Rajdhani', sans-serif; font-size: .95rem; font-weight: 800;
}
.admin-sidebar-logo span { display: block; font-size: .65rem; font-weight: 400; opacity: .55; margin-top: 1px; }
.admin-nav { display: block; padding: 6px 0 24px; }
.admin-nav a {
  display: flex; align-items: center; gap: 9px; padding: 7px 18px;
  color: rgba(255,255,255,.68); font-size: .855rem; font-weight: 500;
  transition: background .12s, color .12s; border-left: 3px solid transparent; line-height: 1.3;
}
.admin-nav a .ico { width: 18px; text-align: center; font-size: .9rem; flex-shrink: 0; opacity: .85; }
.admin-nav a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.admin-nav a.active {
  color: var(--white); background: rgba(35,36,52,.18);
  border-left-color: var(--primary); font-weight: 600;
}
.admin-nav-section { padding: 14px 18px 4px; font-size: .62rem; font-weight: 700; opacity: .4; text-transform: uppercase; letter-spacing: .12em; }
.admin-main { margin-left: 200px; flex: 1; min-width: 0; }
.admin-topbar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 28px; height: 56px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm);
}
.admin-page-title { font-family: 'Rajdhani', sans-serif; font-size: 1.05rem; font-weight: 700; }
.admin-content { padding: 28px; max-width: 1200px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.stat-card-icon { font-size: 2rem; margin-bottom: 8px; }
.stat-card-num { font-family: 'Rajdhani', sans-serif; font-size: 2rem; font-weight: 800; }
.stat-card-lbl { font-size: .85rem; color: var(--text-muted); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 12px 16px; font-size: .8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid var(--border); }
td { padding: 14px 16px; font-size: .9rem; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }
.badge { display: inline-flex; padding: 3px 10px; border-radius: 50px; font-size: .78rem; font-weight: 600; }
.badge-admin { background: #FED7E2; color: #97266D; }
.badge-user  { background: var(--primary-light); color: var(--primary-dark); }

/* ============================================================ DOWNLOAD / PRINT */
.download-bar {
  background: linear-gradient(135deg, #48BB78, #276749);
  color: var(--white); padding: 20px 0; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.download-bar p { opacity: .9; }

@media print {
  header, nav, .download-bar, .btn, .quiz-header, footer { display: none !important; }
  body { background: white; }
  .result-card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .results-hero { background: #269CD9; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ============================================================ FOOTER */
footer {
  background: var(--dark); color: rgba(255,255,255,.7);
  padding: 48px 0 32px; text-align: center; font-size: .875rem; margin-top: auto;
}
footer a { color: rgba(255,255,255,.5); }
footer a:hover { color: var(--white); opacity: 1; }
footer .footer-logo { font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--white); margin-bottom: 8px; }
footer p { margin-bottom: 4px; }

/* ============================================================ ALPASANA-KOMPONENTEN (Design-Sprint) */
/* ── Dunkle Topbar mit Kontaktdaten (Markenzeichen alpasana.ch) ── */
.topbar { background: var(--dark); color: rgba(255,255,255,.82); font-family: var(--font-body); font-size: .85rem; padding: 9px 0; }
.topbar .container { display: flex; justify-content: flex-end; align-items: center; gap: 26px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.82); }
.topbar a:hover { color: #fff; opacity: 1; }
.topbar .ico { color: var(--secondary); margin-right: 6px; }
@media (max-width: 640px) { .topbar .container { justify-content: center; gap: 14px; font-size: .78rem; } }

/* ── Hero-Label typografisch (// LABEL statt Glas-Pill) ── */
.hero .hero-badge {
  background: none; border: 0; border-radius: 0; padding: 0; backdrop-filter: none;
  color: var(--secondary); font-family: var(--font-head); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; font-size: .9rem;
}

/* ── Sektions-Rhythmus: weiss / soft / dark ── */
.sec-soft { background: var(--bg-soft); }
.sec-dark { background: var(--dark); color: rgba(255,255,255,.82); }
.sec-dark h1, .sec-dark h2, .sec-dark h3, .sec-dark h4 { color: #fff; }
.sec-dark .section-header p, .sec-dark p { color: rgba(255,255,255,.72); }
.sec-dark .section-tag { background: rgba(46,163,242,.18); color: #7EC8F2; }

/* ── Finaler CTA dunkel (statt Verlauf) ── */
.final-cta { background: var(--dark) !important; color: #fff; }
.final-cta h2, .final-cta h1 { color: #fff; }

/* ── Mehrspaltiger Footer ── */
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; text-align: left; }
.footer-col h4 { color: #fff; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-size: 1.02rem; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.7); margin-bottom: 8px; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-col .ico { color: var(--secondary); margin-right: 7px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: .82rem; color: rgba(255,255,255,.5); text-align: center; }
.footer-bottom a { color: rgba(255,255,255,.6); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Card-Feinschliff (ruhiger, uppercase Titel) ── */
.feature-card h3, .plan-card h3, .who-card h3, .et-card h3 { text-transform: uppercase; letter-spacing: .02em; }
.feature-card:hover, .who-card:hover { border-color: rgba(38,156,217,.35); }

/* ============================================================ UTILITIES */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.gap-2 { gap: 16px; } .flex { display: flex; } .flex-center { display: flex; align-items: center; justify-content: center; }
.w-100 { width: 100%; }
.confetti-wrap { position: relative; overflow: hidden; }

/* ============================================================ RESPONSIVE */
@media (max-width: 768px) {
  .quiz-answers { grid-template-columns: 1fr; }
  .quiz-card { padding: 28px 20px; }
  .hero { padding: 60px 0 50px; }
  .hero-stats { gap: 28px; }
  .result-card-meta { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .step:not(:last-child)::after { display: none; }
  nav a span { display: none; }
  .auth-card { padding: 32px 20px; }
  .result-card-header { flex-wrap: wrap; }
}

/* ── Sprachumschalter ── */
.lang-switcher { position: relative; display: inline-block; }
.lang-current {
  background: var(--primary-light); color: var(--primary); border: none;
  padding: 7px 12px; border-radius: 50px; font-size: .82rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; gap: 5px; transition: all var(--transition);
}
.lang-current:hover { background: var(--primary); color: #fff; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px;
  background: #fff; border: 1px solid #E2E8F0; border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 6px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: all var(--transition); z-index: 300;
}
/* 2-spaltig wenn viele Sprachen */
.lang-menu--wide {
  display: grid; grid-template-columns: 1fr 1fr; min-width: 310px; gap: 2px;
}
.lang-switcher.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a { display: block; padding: 8px 12px; border-radius: 9px; font-size: .87rem; color: var(--text); white-space: nowrap; }
.lang-menu a:hover, .lang-menu a.lang-active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

/* ── RTL-Support (Arabisch) ── */
body.rtl { direction: rtl; text-align: right; }
body.rtl .container, body.rtl header .header-inner { direction: rtl; }
body.rtl .hero-text { text-align: right; }
body.rtl .lang-menu { right: auto; left: 0; }
body.rtl nav { flex-direction: row-reverse; }
body.rtl .admin-nav, body.rtl .user-nav { text-align: right; }
body.rtl .step-number { margin-left: 12px; margin-right: 0; }
body.rtl .feature-icon { margin-right: 0; margin-left: 16px; }

/* ── Job-Coaching Sektion (Alpasana) ── */
.coaching-section { background: linear-gradient(135deg, #0F1729, #1A2942); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.coaching-section::before { content: ''; position: absolute; top: -120px; right: -120px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(78,205,196,.18), transparent 70%); }
.coaching-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 36px 0; position: relative; }
.coaching-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 22px 24px; transition: all var(--transition); }
.coaching-card:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.coaching-card h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: #2EA3F2; }
.coaching-card p { color: rgba(255,255,255,.78); font-size: .92rem; line-height: 1.7; }
.coaching-cta-box { text-align: center; position: relative; margin-top: 12px; }
.btn-coaching { background: #2EA3F2; color: #0F1729; font-weight: 800; padding: 16px 36px; border-radius: 50px; font-size: 1.05rem; display: inline-block; transition: all var(--transition); }
.btn-coaching:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(78,205,196,.4); opacity: 1; }
@media (max-width: 720px) { .coaching-grid { grid-template-columns: 1fr; } }

/* ── Datenschutz-Trust-Hinweis ── */
.trust-note { display: flex; align-items: center; gap: 10px; justify-content: center; background: var(--primary-light); color: var(--primary); padding: 12px 20px; border-radius: 50px; font-size: .85rem; font-weight: 600; max-width: 720px; margin: 0 auto; }

/* ── Job-Assessment (geführter Flow) ── */
.assess-progress-wrap { background:#fff; border-bottom:1px solid #EDF2F7; padding:14px 0; position:sticky; top:68px; z-index:50; display:none; }
.assess-progress-wrap.active { display:block; }
.assess-progress-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.assess-etappe-label { font-weight:700; font-size:.85rem; color:#1C7CB0; }
.assess-counter { font-size:.82rem; color:#A0AEC0; font-weight:600; }
.assess-bar { height:8px; background:#EDF2F7; border-radius:8px; overflow:hidden; }
.assess-bar-fill { height:100%; width:0; background:linear-gradient(90deg,#269CD9,#2EA3F2); border-radius:8px; transition:width .4s cubic-bezier(.4,0,.2,1); }

.assess-q-text { font-family:'Rajdhani',sans-serif; font-size:1.4rem; font-weight:700; color:#1A202C; text-align:center; line-height:1.4; margin:8px 0 28px; }
@media(max-width:560px){ .assess-q-text{ font-size:1.15rem; } }

/* Likert-Skala */
.assess-likert { display:flex; justify-content:center; align-items:center; gap:14px; margin:8px 0; }
.assess-dot { width:52px; height:52px; border-radius:50%; border:2px solid #CBD5E0; background:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all .18s; color:#A0AEC0; font-weight:700; }
.assess-dot.big { width:62px; height:62px; }
.assess-dot.mid { width:46px; height:46px; }
.assess-dot:hover { border-color:#269CD9; transform:scale(1.08); }
.assess-dot.selected { background:linear-gradient(135deg,#269CD9,#1C7CB0); border-color:transparent; color:#fff; transform:scale(1.12); box-shadow:0 8px 20px rgba(35,36,52,.35); }
.assess-dot-num { font-size:1rem; }
.assess-likert-labels { display:flex; justify-content:space-between; max-width:360px; margin:12px auto 0; font-size:.8rem; color:#A0AEC0; font-weight:600; }
.assess-likert-current { text-align:center; margin-top:14px; font-weight:700; color:#1C7CB0; min-height:1.2em; }

/* Choice-Optionen */
.assess-choices { display:flex; flex-direction:column; gap:12px; }
.assess-choice { display:flex; align-items:center; text-align:left; padding:18px 20px; border:2px solid #E2E8F0; border-radius:14px; background:#fff; cursor:pointer; transition:all .16s; font-size:1rem; color:#2D3748; }
.assess-choice:hover { border-color:#269CD9; background:#F7F9FF; transform:translateX(3px); }
.assess-choice.selected { border-color:#269CD9; background:linear-gradient(135deg,#EEF2FF,#F0FFF4); box-shadow:0 6px 18px rgba(35,36,52,.18); }
.assess-choice-text { flex:1; }

.assess-nav { display:flex; justify-content:space-between; align-items:center; margin-top:24px; }
.fade-in { animation:assessFade .32s ease; }
@keyframes assessFade { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* ============================================================ KUNDEN-DASHBOARD */
.user-page { background: var(--bg); min-height: 100vh; }
.user-shell {
  max-width: 1120px; margin: 0 auto; padding: 32px 20px;
  display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start;
}
.user-sidebar {
  background: #fff; border: 1px solid #EDF2F7; border-radius: 18px;
  box-shadow: 0 6px 24px rgba(26,32,44,.05); overflow: hidden;
  position: sticky; top: 24px;
}
.user-profile { padding: 26px 22px 22px; border-bottom: 1px solid #EDF2F7; }
.user-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: #EBF0FF; border: 2px solid #C3D4FE; color: #269CD9;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 1.5rem; margin-bottom: 14px;
}
.user-profile-name { font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--text); }
.user-profile-email { color: var(--text-muted); font-size: .85rem; margin-top: 3px; word-break: break-all; }
.user-pro-badge {
  display: inline-block; margin-top: 12px; background: #F0FFF4; color: #276749;
  border: 1px solid #9AE6B4; padding: 3px 12px; border-radius: 50px; font-size: .78rem; font-weight: 700;
}
.user-nav { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.user-nav a {
  display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 12px;
  color: #2D3748; font-weight: 600; font-size: .95rem;
  border-left: 3px solid transparent; transition: background .12s, color .12s;
}
.user-nav a:hover { background: #F5F8FF; }
.user-nav a.active { background: #E8F4FB; color: #269CD9; border-left-color: #269CD9; }
.user-nav a.logout { color: var(--text-muted); }
.user-nav a.logout:hover { color: #E53E3E; background: #FFF5F5; }
.user-nav .ico { width: 22px; text-align: center; font-size: 1.05rem; flex-shrink: 0; }
.user-nav-sep { height: 1px; background: #EDF2F7; margin: 8px 8px; }

.user-main { min-width: 0; }
.user-greeting { font-family: 'Rajdhani', sans-serif; font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1.15; }
.user-sub { color: var(--text-muted); margin-top: 4px; font-size: 1.05rem; }

.user-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin: 24px 0; }
.user-card {
  background: #fff; border: 1px solid #EDF2F7; border-radius: 16px; padding: 28px 24px;
  text-align: center; box-shadow: 0 2px 12px rgba(26,32,44,.03);
}
.user-card-num { font-family: 'Rajdhani', sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--text); }
.user-card-lbl { color: var(--text-muted); margin-top: 6px; font-size: .95rem; }

.user-panel { background: #fff; border: 1px solid #EDF2F7; border-radius: 16px; padding: 26px; box-shadow: 0 2px 12px rgba(26,32,44,.03); }
.user-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.user-panel-head h2 { font-family: 'Rajdhani', sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--text); }
.user-empty { text-align: center; padding: 24px 8px; }

.role-list { display: flex; flex-direction: column; gap: 12px; }
.role-row { display: flex; align-items: center; gap: 14px; }
.role-rank {
  width: 28px; height: 28px; border-radius: 50%; background: #E8F4FB; color: #269CD9;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; flex-shrink: 0;
}
.role-icon { font-size: 1.5rem; flex-shrink: 0; }
.role-info { flex: 1; min-width: 0; }
.role-name { font-weight: 700; color: var(--text); margin-bottom: 5px; }
.role-bar-wrap { height: 8px; background: #EDF2F7; border-radius: 8px; overflow: hidden; }
.role-bar { height: 100%; background: linear-gradient(90deg, #269CD9, #2EA3F2); border-radius: 8px; }
.role-pct { font-weight: 800; color: #269CD9; font-size: 1rem; flex-shrink: 0; }

.user-pro-cta {
  margin-top: 24px; background: linear-gradient(135deg, #1C7CB0, #1C7CB0); color: #fff;
  border-radius: 16px; padding: 28px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.user-pro-cta h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.user-pro-cta p { opacity: .92; line-height: 1.6; font-size: .95rem; }
.btn-light { background: #fff; color: #1C7CB0; padding: 14px 24px; border-radius: 10px; font-weight: 700; white-space: nowrap; }
.btn-light:hover { opacity: .92; }

@media (max-width: 820px) {
  .user-shell { grid-template-columns: 1fr; gap: 18px; padding: 20px 16px; }
  .user-sidebar { position: static; }
  .user-greeting { font-size: 1.6rem; }
}

/* ============================================================ PREISE (Kostenlos vs Pro) */
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 760px; margin: 0 auto; align-items: stretch; }
.plan-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 32px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.plan-pro { border: 2px solid var(--primary); box-shadow: 0 16px 40px rgba(35,36,52,.16); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #269CD9, #1C7CB0); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 50px; white-space: nowrap;
}
.plan-name { font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.plan-price { font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 2.4rem; color: var(--text); margin: 8px 0 2px; }
.plan-cur { font-size: 1rem; color: var(--text-muted); font-weight: 700; }
.plan-per { font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.plan-note { font-size: .82rem; color: var(--text-muted); margin-bottom: 18px; }
.plan-lead { font-size: .85rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 10px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 11px; flex: 1; }
.plan-list li { font-size: .94rem; color: var(--text); line-height: 1.5; }
/* Vollbreiten-Buttons dürfen umbrechen statt überzulaufen (lange Übersetzungen) */
.btn-block { width: 100%; text-align: center; white-space: normal; line-height: 1.25; }
@media (max-width: 640px) {
  .plan-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================ WHITE-LABEL PARTNER-SEKTION */
.partner-section {
  background: linear-gradient(135deg, #0F1729 0%, #1A2942 100%);
  padding: 80px 0; color: #fff; position: relative; overflow: hidden;
}
.partner-section::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(35,36,52,.18) 0%, transparent 70%);
  pointer-events: none;
}
.partner-section .section-tag { background: rgba(35,36,52,.25); color: #A3BFFA; }
.partner-section h2, .partner-section .section-lead { color: #fff; }
.partner-section .section-lead { color: rgba(255,255,255,.75); }

.partner-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
}
.partner-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px; padding: 32px 28px; text-align: center;
  transition: transform var(--transition), background var(--transition);
  position: relative;
}
.partner-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.12); }
.partner-card--highlight {
  background: linear-gradient(135deg, #269CD9, #1C7CB0);
  border-color: transparent; box-shadow: 0 12px 40px rgba(35,36,52,.5);
}
.partner-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--secondary); color: #fff; font-size: .72rem; font-weight: 800;
  padding: 4px 14px; border-radius: 20px; letter-spacing: .05em; text-transform: uppercase;
}
.partner-card .partner-count { font-size: 2.8rem; font-weight: 900; font-family: 'Rajdhani', sans-serif; color: #fff; }
.partner-card .partner-price { font-size: 1.6rem; font-weight: 800; color: rgba(255,255,255,.9); margin: 8px 0 4px; }
.partner-card .partner-per { font-size: .82rem; color: rgba(255,255,255,.55); margin-bottom: 20px; }
.partner-card ul { list-style: none; text-align: left; margin-bottom: 24px; }
.partner-card ul li { font-size: .88rem; color: rgba(255,255,255,.8); padding: 4px 0; }
.partner-card ul li::before { content: '✓ '; color: var(--accent); font-weight: 700; }
.partner-cta-note { margin-top: 40px; text-align: center; color: rgba(255,255,255,.6); font-size: .9rem; }
.partner-cta-note a { color: #A3BFFA; font-weight: 600; }

@media (max-width: 900px) {
  .partner-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* ============================================================ PFAD-AUSWAHL (Assessment Schritt 0) */
.path-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px; max-width: 920px; margin: 0 auto;
}
.path-form { display: flex; }
.path-card {
  width: 100%; background: #fff; border: 2px solid var(--border); border-radius: 18px;
  padding: 26px 22px; text-align: left; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; gap: 6px; transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.path-card:hover {
  border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-lg);
}
.path-icon { font-size: 2.2rem; line-height: 1; margin-bottom: 4px; }
.path-name { font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 1.08rem; color: var(--text); }
.path-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.5; }
.path-target { font-size: .78rem; color: var(--primary); font-weight: 600; margin-top: 6px; }

/* ============================================================ RESULTAT: TOP-BERUFE JE STUFE (v3) */
.path-result {
  background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 30px 28px;
  margin-bottom: 32px; border: 1px solid var(--border);
}
.path-result-head { text-align: center; margin-bottom: 24px; }
.path-result-badge {
  display: inline-block; background: var(--primary-light); color: var(--primary-dark);
  font-size: .82rem; font-weight: 700; padding: 6px 16px; border-radius: 30px; margin-bottom: 14px;
}
.path-result-head h2 { font-family: 'Rajdhani', sans-serif; font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.path-result-head p { color: var(--text-muted); font-size: .95rem; max-width: 480px; margin: 0 auto; }

.beruf-cards { display: flex; flex-direction: column; gap: 12px; }
.beruf-card {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: 16px; background: var(--bg);
  transition: all var(--transition);
}
.beruf-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.beruf-rank {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem;
}
.beruf-main { flex: 1; min-width: 0; }
.beruf-name { font-weight: 700; font-size: 1.02rem; color: var(--text); margin-bottom: 6px; }
.beruf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.beruf-tag {
  font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 12px;
  background: #EDF2F7; color: #4A5568;
}
.beruf-tag-stufe   { background: #E8F4FB; color: #1C7CB0; }
.beruf-tag-abschluss { background: #BEE3F8; color: #2A4365; }
.beruf-tag-feld    { background: #F0FFF4; color: #276749; }
.beruf-access { font-size: .8rem; color: var(--accent); font-weight: 600; }
.beruf-why { font-size: .8rem; color: var(--text-muted); margin-top: 3px; }
.beruf-why strong { color: var(--primary-dark); font-weight: 700; }
.beruf-score { flex-shrink: 0; text-align: center; position: relative; min-width: 64px; }
.beruf-score-num { font-family: 'Rajdhani', sans-serif; font-size: 1.5rem; font-weight: 900; color: var(--primary); line-height: 1; }
.beruf-score-num span { font-size: .9rem; }
.beruf-score-lbl { font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.beruf-link { display: inline-block; margin-top: 4px; font-size: .85rem; color: var(--primary); }
.beruf-locked {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 18px; border: 2px dashed var(--primary); border-radius: 16px;
  background: var(--primary-light); font-size: .9rem; color: var(--primary-dark);
}

.bystufe { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 22px; }
.bystufe h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; font-weight: 800; margin-bottom: 16px; }
.bystufe-group { margin-bottom: 18px; }
.bystufe-label {
  font-size: .82rem; font-weight: 700; color: var(--primary-dark); text-transform: uppercase;
  letter-spacing: .04em; margin-bottom: 8px;
}
.bystufe-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .9rem;
}
.bystufe-name { color: var(--text); }
.bystufe-score { font-weight: 800; color: var(--primary); flex-shrink: 0; }

@media (max-width: 560px) {
  .beruf-card { flex-wrap: wrap; }
  .beruf-score { min-width: auto; }
}

/* ── Kontextfragen ── */
.ctx-block { margin-bottom: 22px; }
.ctx-label { display: block; font-weight: 700; font-size: .98rem; color: var(--text); margin-bottom: 12px; }
.ctx-options { display: flex; flex-wrap: wrap; gap: 9px; }
.ctx-pill { position: relative; cursor: pointer; }
.ctx-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.ctx-pill span {
  display: inline-block; padding: 9px 16px; border-radius: 30px; border: 2px solid var(--border);
  font-size: .88rem; color: var(--text); background: #fff; transition: all var(--transition);
}
.ctx-pill:hover span { border-color: var(--primary); }
.ctx-pill input:checked + span {
  background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600;
}

/* ============================================================ MOBILE / RESPONSIVE (Sprint) */
@media (max-width: 640px) {
  /* Header: zweizeilig, Nav horizontal scrollbar statt Überlauf */
  .header-inner { height: auto; min-height: 60px; padding: 10px 0 8px; flex-wrap: wrap; gap: 8px; }
  .logo { flex: 1 1 auto; min-width: 0; }
  .logo img { height: 34px; }
  .logo-text { font-size: .95rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .logo-text span { font-size: .58rem; white-space: nowrap; }
  nav { order: 2; width: 100%; gap: 6px; overflow-x: auto; padding: 2px 0 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  nav a, nav .lang-current { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; padding: 8px 12px; font-size: .9rem; }
  /* Lang-Switcher: festes, breitenbegrenztes Dropdown – schon hier, damit es im
     scrollbaren Nav-Kontext (481–640px) nicht abgeschnitten wird */
  .lang-menu, .lang-menu--wide {
    position: fixed; left: 12px; right: 12px; top: 108px; min-width: 0;
    max-width: calc(100vw - 24px); max-height: calc(100vh - 130px); overflow-y: auto;
  }
  .lang-menu a { white-space: normal; min-height: 44px; display: flex; align-items: center; }
}

@media (max-width: 560px) {
  /* Resultate */
  .results-hero { padding: 42px 0; }
  .download-bar { padding: 14px 16px; flex-direction: column; align-items: stretch; }
  .download-bar .btn, .download-bar form { width: 100%; justify-content: center; }
  .result-card-header { padding: 20px 18px; gap: 12px; align-items: flex-start; }
  .result-card-body { padding: 0 18px 22px; }
  .radar-wrap { padding: 14px 8px; overflow-x: auto; }
  .radar-container { min-width: 280px; max-width: 100%; }
  .result-example-chip { white-space: normal; overflow-wrap: anywhere; }
  /* Beruf-Karten als stabiles Grid statt flex-wrap */
  .path-result { padding: 22px 16px; }
  .path-result-badge { white-space: normal; line-height: 1.35; }
  .beruf-card { display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: start; gap: 12px; padding: 14px; }
  .beruf-main { min-width: 0; }
  .beruf-name, .beruf-why, .bystufe-name { overflow-wrap: anywhere; }
  .beruf-score { grid-column: 2; display: flex; align-items: baseline; gap: 6px; text-align: left; }
  .beruf-locked { align-items: stretch; }
  .beruf-locked .btn { width: 100%; }
}

@media (max-width: 480px) {
  /* Buttons: umbrechen statt überlaufen, Hero/CTA full-width */
  .btn, .btn-lg, .btn-sm { white-space: normal; min-height: 44px; line-height: 1.2; text-align: center; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn, .final-cta .btn { width: 100%; max-width: 320px; }
  /* Hero */
  .hero { padding: 46px 0 42px; }
  .hero h1 { font-size: clamp(1.85rem, 9vw, 2.35rem); line-height: 1.08; }
  .hero p { font-size: 1rem; margin-bottom: 28px; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 12px; margin-top: 32px; }
  .hero-stat-num { font-size: 1.65rem; }
  .hero-stat-lbl { font-size: .78rem; }
  /* (Lang-Switcher-Dropdown wird bereits im 640px-Block fixiert) */
  /* Topbar / Footer */
  .topbar .container { justify-content: center; gap: 8px 14px; line-height: 1.4; }
  .topbar a, footer a, footer p, .footer-col p { overflow-wrap: anywhere; }
  footer { padding: 38px 0 28px; }
  /* Inline 1fr-1fr-Grids umbrechen (Inline-Style → !important nötig) */
  div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; gap: 22px !important; }
  div[style*="grid-template-columns:1fr 1fr"] img { max-width: 220px !important; }
}

@media (max-width: 414px) {
  /* Likert-Skala (5 Punkte) passt sonst nicht auf schmale Geräte */
  .quiz-card { padding: 24px 16px; }
  .assess-likert { max-width: 320px; margin: 0 auto; gap: 8px; justify-content: space-between; }
  .assess-dot { width: 44px; height: 44px; min-width: 44px; }
  .assess-dot.big { width: 52px; height: 52px; }
  .assess-dot.mid { width: 42px; height: 42px; }
  .assess-dot.selected { transform: none; }
  .assess-likert-labels { max-width: 320px; padding: 0 2px; font-size: .72rem; }
  .assess-nav .btn { flex: 1 1 0; padding: 11px 10px; }
}
