/* ============================================================
   ICT-Fachassessment – Hauptstylesheet
   Alpasana GmbH | alpasana.ch
   Markenfarben aus dem Alpasana-Logo: Royalblau → Cyan
   ============================================================ */

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

:root {
  --primary:       #1E74D4;   /* Alpasana Royalblau */
  --primary-dark:  #155CB0;
  --primary-light: #EAF4FD;
  --secondary:     #17B6F2;   /* Alpasana Cyan (Logo-Verlauf) */
  --accent:        #10B981;   /* Emerald – Übereinstimmung/positiv */
  --pink:          #F472B6;
  --teal:          #06B6D4;
  --bg:            #F5F9FE;
  --white:         #FFFFFF;
  --text:          #0F1F33;
  --text-muted:    #64748B;
  --border:        #E2E8F0;
  --shadow-sm:     0 2px 8px rgba(30,116,212,.08);
  --shadow:        0 4px 24px rgba(30,116,212,.14);
  --shadow-lg:     0 8px 40px rgba(30,116,212,.18);
  --radius:        16px;
  --radius-sm:     10px;
  --radius-lg:     24px;
  --transition:    .2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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: 'Poppins', 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: 50px; font-size: .9rem; font-weight: 500; 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 28px; border-radius: 50px; font-size: 1rem; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none;
  transition: all var(--transition); font-family: inherit; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); box-shadow: 0 4px 16px rgba(30,116,212,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,116,212,.4); opacity: 1; }
.btn-secondary {
  background: var(--white); color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary-light); 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(135deg, #4F46E5 0%, #7C3AED 52%, #A855F7 100%);
  color: var(--white); padding: 60px 0 72px; 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(255,214,107,.20), 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; }
.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: 'Poppins', sans-serif; font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; line-height: 1.1; margin-bottom: 20px;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, #FFD93D, #FF6B6B);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.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);
  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: 'Poppins', 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: 'Poppins', sans-serif; font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; line-height: 1.2; margin-bottom: 12px;
}
.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, #1E74D410, #17B6F210); 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: 'Poppins', 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), #F093FB);
}
.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: 'Poppins', 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: 'Poppins', 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: 'Poppins', 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: 'Poppins', 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), #F093FB); }
.preview-locked { filter: blur(4px); pointer-events: none; user-select: none; }

/* ============================================================ RESULTS PAGE */
.results-hero {
  background: linear-gradient(135deg, #1E74D4, #17B6F2);
  color: var(--white); padding: 60px 0; text-align: center;
}
.results-hero h1 { font-family: 'Poppins', 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: 'Poppins', 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: 'Poppins', 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(30,116,212,.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, #1E74D415, #17B6F215);
  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: 'Poppins', 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: 'Poppins', 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(30,116,212,.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: 'Poppins', 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: 'Poppins', 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: #1E74D4; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ============================================================ FOOTER */
footer {
  background: #1A202C; color: rgba(255,255,255,.7);
  padding: 40px 0; 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: 'Poppins', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--white); margin-bottom: 8px; }
footer p { margin-bottom: 4px; }

/* ============================================================ 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 wird zur horizontalen Leiste oben (statt versteckt → Navigation bleibt nutzbar) */
  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    position: static; width: auto; height: auto; overflow-y: visible;
    border-right: none; border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .admin-sidebar-logo { display: none; }
  .admin-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; }
  .admin-nav-section { display: none; }
  .admin-nav a { padding: 8px 12px; border-left: none; border-radius: 8px; white-space: nowrap; }
  .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; }
  /* Buttons dürfen umbrechen statt horizontal zu überlaufen */
  .btn { white-space: normal; }
}
@media (max-width: 480px) {
  /* Sprachmenü nie über den Bildschirmrand hinaus (!important schlägt die spätere Basisregel) */
  .lang-menu { right: 0; left: auto; max-width: calc(100vw - 28px) !important; }
  .lang-menu, .lang-menu--wide { min-width: min(310px, calc(100vw - 28px)) !important; }
}

/* ── 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: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: #17B6F2; }
.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: #17B6F2; 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:#155CB0; }
.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,#1E74D4,#17B6F2); border-radius:8px; transition:width .4s cubic-bezier(.4,0,.2,1); }

.assess-q-text { font-family:'Poppins',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:#1E74D4; transform:scale(1.08); }
.assess-dot.selected { background:linear-gradient(135deg,#1E74D4,#17B6F2); border-color:transparent; color:#fff; transform:scale(1.12); box-shadow:0 8px 20px rgba(30,116,212,.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:#155CB0; 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:#1E74D4; background:#F7F9FF; transform:translateX(3px); }
.assess-choice.selected { border-color:#1E74D4; background:linear-gradient(135deg,#EEF2FF,#F0FFF4); box-shadow:0 6px 18px rgba(30,116,212,.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: #3B5BDB;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.5rem; margin-bottom: 14px;
}
.user-profile-name { font-family: 'Poppins', 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: #EEF3FF; color: #3B5BDB; border-left-color: #3B5BDB; }
.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: 'Poppins', 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: 'Poppins', 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: 'Poppins', 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: #EEF3FF; color: #3B5BDB;
  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, #1E74D4, #17B6F2); border-radius: 8px; }
.role-pct { font-weight: 800; color: #3B5BDB; font-size: 1rem; flex-shrink: 0; }

.user-pro-cta {
  margin-top: 24px; background: linear-gradient(135deg, #155CB0, #17B6F2); color: #fff;
  border-radius: 16px; padding: 28px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.user-pro-cta h3 { font-family: 'Poppins', 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: #155CB0; 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(30,116,212,.16); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #1E74D4, #17B6F2); 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: 'Poppins', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.plan-price { font-family: 'Poppins', 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; }
.btn-block { width: 100%; text-align: center; }
@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(30,116,212,.18) 0%, transparent 70%);
  pointer-events: none;
}
.partner-section .section-tag { background: rgba(30,116,212,.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, #1E74D4, #17B6F2);
  border-color: transparent; box-shadow: 0 12px 40px rgba(30,116,212,.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: 'Poppins', 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; }
}

/* ============================================================ ICT-ROLLEN / STUFEN */
.roles-stufen {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px;
}
.stufe-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stufe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stufe-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stufe-badge {
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase; color: #fff;
  padding: 6px 14px; border-radius: 20px;
}
.stufe-foundation   { background: linear-gradient(135deg, #17B6F2, #38C9FF); }
.stufe-professional { background: linear-gradient(135deg, #1E74D4, #2E8BE6); }
.stufe-expert       { background: linear-gradient(135deg, #155CB0, #1E74D4); }
.stufe-count { font-size: .85rem; font-weight: 700; color: var(--text-muted); }
.stufe-desc { color: var(--text-muted); font-size: .92rem; line-height: 1.6; margin-bottom: 18px; }
.role-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.role-chip {
  background: var(--primary-light); color: var(--primary-dark);
  font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 20px;
  border: 1px solid rgba(30,116,212,.12);
}

/* ============================================================ ÜBER ALPASANA */
.about-section { background: linear-gradient(135deg, var(--primary-light), #F5F9FE); padding: 64px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* ============================================================ FINALER CTA */
.final-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; padding: 80px 0; text-align: center;
}

@media (max-width: 900px) {
  .roles-stufen { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
}
