/* ============================================================
   ICT-Fachassessment – Komponenten auf Basis des Alpasana-Designs
   Setzt assets/alpasana-design.css voraus (nutzt die --alp-* Tokens).
   ============================================================ */

/* ── Header-Anordnung ──────────────────────────────── */
.ict-header-right { display: flex; align-items: center; gap: 28px; }
.ict-header-actions { display: flex; align-items: center; gap: 16px; }

/* ── Logo-Wortmarke ────────────────────────────────── */
.alp .alp-logo { display: flex; align-items: center; gap: 12px; }
.alp .ict-logo-text {
  display: flex; flex-direction: column; gap: 4px; line-height: 1.05;
  font-family: var(--alp-font-head); font-weight: 700; font-size: 1.4rem;
  color: var(--alp-heading); text-transform: none;
}
.alp .ict-logo-text > span {
  font-size: .76rem; font-weight: 600; color: var(--alp-blue);
  text-transform: uppercase; letter-spacing: .14em;
}

/* ── Sprachwähler ──────────────────────────────────── */
.lang-switcher { position: relative; font-family: var(--alp-font-body); }
.lang-current {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--alp-bg-soft); border: 1px solid var(--alp-border);
  color: var(--alp-heading); font-size: .9rem; padding: 8px 12px;
  border-radius: var(--alp-radius); cursor: pointer;
}
.lang-current:hover { border-color: var(--alp-blue); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); background: #fff;
  border: 1px solid var(--alp-border); border-radius: var(--alp-radius);
  box-shadow: var(--alp-shadow); min-width: 170px; padding: 6px; display: none; z-index: 60;
}
.lang-menu--wide { column-count: 2; min-width: 320px; }
.lang-switcher.open .lang-menu { display: block; }
.lang-menu a { display: block; padding: 7px 10px; border-radius: 4px; color: var(--alp-heading); font-size: .9rem; }
.lang-menu a:hover { background: var(--alp-bg-soft); color: var(--alp-blue); }
.lang-menu a.lang-active { color: var(--alp-blue); font-weight: 600; }

/* ── Hero ──────────────────────────────────────────── */
.alp-hero { overflow: hidden; }
.ict-hero-deco {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 520px; max-width: 52%; opacity: .14; z-index: 1; pointer-events: none;
}
.alp-hero .alp-btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.alp-hero .alp-btn-outline:hover { background: #fff; color: var(--alp-heading); border-color: #fff; }
.ict-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
/* White-Label-Hero mit eigenem Bild */
.ict-hero-banner { margin-top: 40px; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.15); max-width: 880px; }
.ict-hero-banner img { display: block; width: 100%; height: auto; max-height: 380px; object-fit: cover; }
.ict-hero-stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 50px; }
.ict-hero-stat-num { font-family: var(--alp-font-head); font-weight: 700; font-size: 2.4rem; color: var(--alp-blue-bright); line-height: 1; }
.ict-hero-stat-lbl { font-size: .9rem; color: rgba(255,255,255,.75); margin-top: 6px; max-width: 160px; }

/* ── Nummerierte Schritte ──────────────────────────── */
.ict-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--alp-blue);
  color: #fff; font-family: var(--alp-font-head); font-weight: 700; font-size: 1.35rem; margin-bottom: 16px;
}

/* ── Kompetenzen ───────────────────────────────────── */
.ict-comp-icon { font-size: 2rem; display: block; margin-bottom: 10px; }

/* Weisse Cards in dunklen Sektionen brauchen dunklen Text (sonst weiss auf weiss) */
.alp-section--dark .alp-card { color: var(--alp-text); }
.alp-section--dark .alp-card h3 { color: var(--alp-heading); }
.alp-section--dark .alp-card p { color: var(--alp-text); }

/* ── Rollen / Stufen ───────────────────────────────── */
.ict-stufe-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ict-stufe-badge {
  font-family: var(--alp-font-head); font-weight: 700; font-size: .8rem; letter-spacing: .04em;
  text-transform: uppercase; color: #fff; padding: 6px 14px; border-radius: 20px;
}
.ict-stufe-foundation   { background: var(--alp-blue-bright); }
.ict-stufe-professional { background: var(--alp-blue); }
.ict-stufe-expert       { background: var(--alp-blue-dark); }
.ict-stufe-count { font-size: .85rem; font-weight: 500; color: var(--alp-muted); }
.ict-stufe-desc { color: var(--alp-text); font-size: .92rem; margin-bottom: 16px; }
.ict-role-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ict-role-chip {
  background: var(--alp-bg-soft); border: 1px solid var(--alp-border); color: var(--alp-heading);
  font-size: .82rem; padding: 6px 12px; border-radius: 20px;
}

/* ── Preis-Karten ──────────────────────────────────── */
.ict-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; max-width: 840px; margin: 0 auto; }
.ict-plan { position: relative; }
.ict-plan--pro { border: 2px solid var(--alp-blue); }
.ict-plan-badge {
  position: absolute; top: -13px; left: 32px; background: var(--alp-blue); color: #fff;
  font-family: var(--alp-font-head); font-weight: 600; text-transform: uppercase;
  font-size: .72rem; letter-spacing: .05em; padding: 5px 14px; border-radius: 20px;
}
.ict-plan-name { font-family: var(--alp-font-head); font-weight: 700; text-transform: uppercase; color: var(--alp-heading); font-size: 1.1rem; }
.ict-plan-price { font-family: var(--alp-font-head); font-weight: 700; font-size: 2.2rem; color: var(--alp-heading); margin: 6px 0; }
.ict-plan-price .cur { font-size: 1rem; color: var(--alp-muted); }
.ict-plan-price .per { font-size: .9rem; color: var(--alp-muted); font-weight: 500; }
.ict-plan-note { color: var(--alp-muted); font-size: .85rem; margin-bottom: 18px; }
.ict-plan-lead { font-weight: 500; color: var(--alp-heading); margin-bottom: 10px; }
.ict-plan-list { list-style: none; padding: 0; margin: 0 0 24px; }
.ict-plan-list li { padding: 8px 0; font-size: .95rem; border-bottom: 1px solid var(--alp-border); }
.ict-plan-list li:last-child { border-bottom: none; }

/* ── Einzelnes Angebot (ein Preis, kein Gratis-Tier) ── */
.ict-offer { max-width: 460px; margin: 0 auto; }
.ict-offer-card { border: 2px solid var(--alp-blue); text-align: left; }
.ict-offer-name { font-family: var(--alp-font-head); font-weight: 700; text-transform: uppercase; color: var(--alp-heading); font-size: 1.15rem; }

/* ── Diverses ──────────────────────────────────────── */
.ict-trust { margin-top: 26px; text-align: center; color: var(--alp-muted); font-size: .9rem; }
.ict-center { text-align: center; }
.ict-mt { margin-top: 40px; }
.ict-lead { max-width: 680px; }
.ict-about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }

/* ── Footer ────────────────────────────────────────── */
.ict-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.ict-foot-grid h4 { margin-bottom: 14px; font-size: 1rem; }
.ict-foot-grid a { display: block; padding: 4px 0; }

/* ── Mobiles Menü (Hamburger) ──────────────────────── */
.ict-burger {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 1.7rem; line-height: 1; color: var(--alp-heading); padding: 6px 8px;
}

@media (max-width: 900px) {
  .alp-header .alp-container { position: relative; flex-wrap: wrap; }
  .ict-burger { display: inline-flex; }
  .ict-hero-deco { display: none; }

  /* Navigation + Aktionen als ausklappbares Panel unter dem Header */
  .ict-header-right {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-top: 1px solid var(--alp-border);
    box-shadow: var(--alp-shadow); padding: 10px 20px 18px; z-index: 50;
  }
  .alp-header.ict-nav-open .ict-header-right { display: flex; }
  .alp-header.ict-nav-open .ict-header-right .alp-nav { display: flex; flex-direction: column; gap: 0; }
  .ict-header-right .alp-nav a { padding: 13px 2px; border-bottom: 1px solid var(--alp-border); font-size: 1.05rem; }
  .ict-header-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 12px; }
  .ict-header-actions .alp-btn { width: 100%; }
  .ict-header-actions .lang-switcher { align-self: flex-start; }

  .ict-about-grid { grid-template-columns: 1fr; gap: 28px; }
  .ict-foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .ict-hero-stats { gap: 28px 32px; }
}

@media (max-width: 420px) {
  .alp .ict-logo-text { font-size: 1.15rem; }
  .alp .alp-logo img { height: 38px; }
}

/* ── Assessment / Quiz ─────────────────────────────── */
.quiz-wrap { max-width: 720px; margin: 0 auto; }
.quiz-progress { position: sticky; top: 0; background: var(--alp-bg-soft); padding: 14px 0; z-index: 20; }
.quiz-progress-label { display: flex; justify-content: space-between; font-family: var(--alp-font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; color: var(--alp-muted); margin-bottom: 7px; }
.quiz-bar { height: 8px; background: var(--alp-border); border-radius: 8px; overflow: hidden; }
.quiz-bar > span { display: block; height: 100%; width: 0; background: var(--alp-blue); transition: width .35s ease; }
.quiz-etappe { display: none; }
.quiz-etappe.active { display: block; }
.quiz-etappe-head { margin: 18px 0 18px; }
.quiz-etappe-title { font-family: var(--alp-font-head); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; color: var(--alp-heading); }
.quiz-q { background: #fff; border: 1px solid var(--alp-border); border-radius: var(--alp-radius-lg); padding: 22px 24px; margin-bottom: 14px; box-shadow: var(--alp-shadow-sm); }
.quiz-q.unanswered-hint { border-color: var(--alp-blue); }
.quiz-q-text { font-weight: 500; color: var(--alp-heading); margin-bottom: 14px; font-size: 1.05rem; }
.quiz-likert { display: flex; gap: 8px; }
.quiz-likert .ql { flex: 1; text-align: center; border: 1px solid var(--alp-border); border-radius: var(--alp-radius); padding: 12px 4px; cursor: pointer; font-size: .8rem; color: var(--alp-text); transition: all var(--alp-transition); }
.quiz-likert .ql:hover { border-color: var(--alp-blue); }
.quiz-likert .ql .ql-num { display: block; font-family: var(--alp-font-head); font-weight: 700; font-size: 1.15rem; color: var(--alp-heading); }
.quiz-likert .ql.sel { background: var(--alp-blue); border-color: var(--alp-blue); color: #fff; }
.quiz-likert .ql.sel .ql-num { color: #fff; }
.quiz-likert .ql input { position: absolute; opacity: 0; width: 0; height: 0; }
.quiz-opt { display: block; border: 1px solid var(--alp-border); border-radius: var(--alp-radius); padding: 13px 16px; margin-bottom: 8px; cursor: pointer; transition: all var(--alp-transition); color: var(--alp-text); }
.quiz-opt:hover { border-color: var(--alp-blue); background: var(--alp-bg-soft); }
.quiz-opt.sel { border-color: var(--alp-blue); background: var(--alp-blue-bright); color: #fff; }
.quiz-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }

/* ── Resultat ──────────────────────────────────────── */
.res-summary { background: var(--alp-dark); color: #fff; border-radius: var(--alp-radius-lg); padding: 28px 32px; margin-bottom: 28px; }
.res-summary h2 { color: #fff; }
.res-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.res-role { background: #fff; border: 1px solid var(--alp-border); border-radius: var(--alp-radius-lg); padding: 24px; box-shadow: var(--alp-shadow-sm); }
.res-role.coach { border-left: 4px solid var(--alp-blue-bright); border-radius: 0 var(--alp-radius-lg) var(--alp-radius-lg) 0; }
.res-role-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.res-role-name { font-family: var(--alp-font-head); font-weight: 700; text-transform: uppercase; font-size: 1.2rem; color: var(--alp-heading); }
.res-match { font-family: var(--alp-font-head); font-weight: 700; font-size: 1.8rem; color: var(--alp-blue); line-height: 1; }
.res-band { font-size: .82rem; color: var(--alp-muted); }
.res-stufe { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--alp-blue); padding: 3px 10px; border-radius: 20px; }
.res-cols { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: center; margin-top: 16px; }
.res-radar { width: 100%; max-width: 340px; margin: 0 auto; }
.res-gaplist { list-style: none; padding: 0; margin: 0; }
.res-gaplist li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: .9rem; border-bottom: 1px solid var(--alp-border); }
.res-gaplist li:last-child { border-bottom: none; }
.res-gap-pos { color: var(--alp-blue-dark); font-weight: 600; }
.res-gap-neg { color: #C0392B; font-weight: 600; }
.res-sub { font-family: var(--alp-font-head); text-transform: uppercase; font-size: .85rem; letter-spacing: .04em; color: var(--alp-muted); margin: 4px 0 8px; }

@media (max-width: 700px) {
  .res-cols { grid-template-columns: 1fr; }
}

/* ── Mobile-Feinschliff (≤480px) ───────────────────── */
@media (max-width: 480px) {
  /* Quiz: Likert-Skala 2×2 statt 4 enge Spalten; Optionen mehr Luft */
  .quiz-likert { flex-wrap: wrap; }
  .quiz-likert .ql { flex: 1 1 calc(50% - 8px); min-width: calc(50% - 8px); padding: 14px 6px; }
  .quiz-q { padding: 18px 16px; }
  .quiz-etappe-title { font-size: 1.25rem; }
  /* Quiz-Navigation: Buttons untereinander, volle Breite */
  .quiz-nav { flex-direction: column; }
  .quiz-nav .alp-btn { width: 100%; }
  /* Resultat: weniger Innenabstand, lange Texte/Links umbrechen statt überlaufen */
  .res-role { padding: 18px 16px; }
  .res-role-name { font-size: 1.05rem; }
  .res-cert { flex-direction: column; align-items: stretch; }
  .res-cert > div { min-width: 0; overflow-wrap: anywhere; }
  .res-cert .alp-btn, .res-cert a.alp-btn { width: 100%; text-align: center; }
}

/* ── Druck / PDF ───────────────────────────────────── */
@media print {
  /* Browser-Kopf-/Fusszeilen (Seitenzahl, Datum, Seitentitel, URL) unterdrücken:
     diese rendern im Seitenrand → Rand auf 0, Innenabstand übernimmt der Inhalt. */
  @page { margin: 0; }
  body { padding: 14mm 13mm !important; }
  /* Akzentfarben, Badges und Diagramm-Flächen auch im Druck erhalten. */
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .alp-topbar, .alp-header, .ict-burger, .quiz-nav, .ict-center, .ict-noprint, form, .alp-btn, .alp-footer { display: none !important; }
  body, .alp-section { background: #fff !important; }
  .alp-section { padding: 0 !important; }
  h1, h2, h3, .alp-section-title, .alp-section-label, .res-sub { break-after: avoid; page-break-after: avoid; }  /* Überschrift nie allein am Seitenende */
  /* Grosse Blöcke DÜRFEN über Seiten umbrechen – sonst überlaufen sie und
     überlappen den nächsten Abschnitt (z. B. die KI-Einschätzung). */
  .res-role, .res-summary { box-shadow: none !important; border: 1px solid #d4d9e0 !important; border-radius: 10px !important; }
  .res-summary { background: #f2f4f8 !important; color: #111 !important; break-inside: avoid; page-break-inside: avoid; }
  .res-summary h2, .res-summary .alp-section-label { color: #111 !important; }
  /* Kleine, in sich geschlossene Einheiten zusammenhalten. */
  .res-cert, .res-gaplist li, .res-radar, .res-role-head, .ict-plan-card,
  .res-persona, .res-niveau, .ict-plan-massnahme { break-inside: avoid; page-break-inside: avoid; }
  .res-cols { display: block !important; }      /* Radar + Listen untereinander statt nebeneinander */
  .res-radar { max-width: 320px; margin: 0 auto 14px; }
  a { color: #155CB0 !important; text-decoration: none !important; }
}

/* ── Formularfelder (Code-Start / Eingaben) ─────────── */
.ict-label { display: block; font-weight: 600; color: var(--alp-heading); font-size: .9rem; margin-bottom: 6px; }
.ict-input {
  width: 100%; box-sizing: border-box;
  background: #fff; border: 1px solid var(--alp-border);
  border-radius: var(--alp-radius); color: var(--alp-heading);
  font-size: 1rem; padding: 11px 13px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.ict-input:focus {
  outline: none; border-color: var(--alp-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--alp-blue) 22%, transparent);
}

/* ============================================================
   RTL-Unterstützung (Arabisch u. a.)
   Flexbox dreht automatisch; hier nur die richtungsabhängigen
   Details + Buchstabenabstand (bricht arabische Ligaturen).
   ============================================================ */
[dir="rtl"] .alp { text-align: right; }

/* letter-spacing zerstört arabische Schriftverbindungen → in RTL aus */
[dir="rtl"] .alp-section-label,
[dir="rtl"] .alp-hero-label,
[dir="rtl"] .alp-footer h4,
[dir="rtl"] .ict-logo-text > span,
[dir="rtl"] .pro-badge,
[dir="rtl"] .ict-plan-badge,
[dir="rtl"] .ict-stufe-badge,
[dir="rtl"] .res-stufe,
[dir="rtl"] .res-sub,
[dir="rtl"] .res-band,
[dir="rtl"] .quiz-progress-label,
[dir="rtl"] .quiz-etappe-title,
[dir="rtl"] .alp-btn,
[dir="rtl"] .alp-uppercase { letter-spacing: normal; }

/* Sprach-Dropdown öffnet sonst nach links aus dem Viewport */
[dir="rtl"] .lang-menu { right: auto; left: 0; }

/* Topbar-Mail-Icon-Abstand spiegeln */
[dir="rtl"] .alp-topbar .alp-ico { margin-right: 0; margin-left: 6px; }

/* Hero-Dekoration auf die gegenüberliegende Seite */
[dir="rtl"] .ict-hero-deco { right: auto; left: -60px; }

/* Akzentbalken der Coach-Karte spiegeln */
[dir="rtl"] .res-role.coach {
  border-left: 0; border-right: 4px solid var(--alp-blue-bright);
  border-radius: var(--alp-radius-lg) 0 0 var(--alp-radius-lg);
}

/* Eingabefelder: Cursor/Text rechtsbündig */
[dir="rtl"] .ict-input { text-align: right; }

/* Hero-Verlauf spiegeln (Text steht in RTL rechts → dort mehr Abdunklung) */
[dir="rtl"] .alp-hero::before {
  background: linear-gradient(270deg, rgba(35,36,52,.82) 0%, rgba(35,36,52,.45) 60%, rgba(35,36,52,.15) 100%);
}

/* Pricing-Badge auf die andere Seite */
[dir="rtl"] .ict-plan-badge { left: auto; right: 32px; }

/* Angebots-Karte: erzwungene Linksbündigkeit aufheben */
[dir="rtl"] .ict-offer-card { text-align: right; }
