/* ============================================================
   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;
  background-image: url('../img/hero-bg.svg');
  background-size: cover; background-position: center; background-color: var(--alp-dark);
  min-height: 420px; display: flex; align-items: center; padding: 64px 0 !important;
}
/* Overlay etwas kräftiger für Lesbarkeit über dem Bild */
.alp-hero::before { background: linear-gradient(90deg, rgba(35,36,52,.88) 0%, rgba(35,36,52,.62) 55%, rgba(35,36,52,.30) 100%) !important; }
.alp-hero .alp-container { width: 100%; position: relative; z-index: 2; }
/* Animiertes Netzwerk-Canvas – über dem Hintergrundbild, unter Text/Overlay */
.alp-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
/* Titel/Text bleiben links – kein Überlappen mit Logo/Motiv rechts */
.alp-hero h1 { max-width: 60%; overflow-wrap: break-word; hyphens: auto; }
.alp-hero .alp-hero-label,
.alp-hero p { max-width: 60%; }
@media (max-width: 900px) {
  .alp-hero h1, .alp-hero .alp-hero-label, .alp-hero p { max-width: 100%; }
}
.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; }
.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; }

@media (max-width: 900px) {
  .ict-hero-deco { display: none; }
  .ict-about-grid { grid-template-columns: 1fr; gap: 28px; }
  .ict-foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .ict-hero-stats { gap: 28px; }
  /* Grosse 2-Spalten-Layouts (z. B. Formular + Sidebar) untereinander */
  .alp-stack-lg { grid-template-columns: 1fr !important; gap: 28px !important; }
}
/* Enge Feldpaare (Name/E-Mail etc.) auf dem Handy untereinander */
@media (max-width: 640px) {
  .alp-stack-sm { grid-template-columns: 1fr !important; }
}

/* ── Alpasana: Logo im Hero (statt Radar-Deko) ── */
.alp-hero-logo { display: none; } /* Hintergrundbild ersetzt die Logo-Deko */

/* ── FAQ-Accordion ── */
.alp-faq { display: grid; gap: 12px; }
.alp-faq details { padding: 20px 24px; }
.alp-faq summary {
  font-family: var(--alp-font-head); font-weight: 700; color: var(--alp-heading);
  font-size: 1.05rem; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.alp-faq summary::-webkit-details-marker { display: none; }
.alp-faq summary::after { content: '+'; color: var(--alp-blue-dark); font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.alp-faq details[open] summary::after { content: '–'; }
/* Einklappbarer optionaler Formularblock */
.alp-more > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.alp-more > summary::-webkit-details-marker { display: none; }
.alp-more > summary::before { content: '+'; color: var(--alp-blue-dark); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.alp-more[open] > summary::before { content: '–'; }

/* ── Mobile-Navigation (Slide-in) ── */
.alp-nav-toggle { display: none; background: none; border: none; font-size: 1.7rem; color: var(--alp-heading); cursor: pointer; }
.alp-nav-close { display: none; }
.alp-nav-backdrop { display: none; }
@media (max-width: 1300px) {
  .alp-nav-toggle { display: block; }
  .ict-header-right {
    position: fixed; top: 0; right: 0; bottom: 0; width: 82%; max-width: 340px;
    flex-direction: column; align-items: flex-start; gap: 22px; padding: 76px 28px 28px;
    background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.12);
    transform: translateX(100%); transition: transform .25s ease; z-index: 200;
    overflow-y: auto;
  }
  body.nav-open .ict-header-right { transform: translateX(0); }
  .ict-header-right .alp-nav { display: flex; flex-direction: column; gap: 16px; }
  .ict-header-right .alp-nav a { font-size: 1.1rem; }
  /* Schliessen-Button oben rechts im Panel */
  .alp-nav-close { display: block; position: absolute; top: 16px; right: 18px;
    background: none; border: none; font-size: 1.5rem; line-height: 1;
    color: var(--alp-heading); cursor: pointer; }
  /* Abdunkelnder Hintergrund */
  .alp-nav-backdrop { display: block; position: fixed; inset: 0; z-index: 190;
    background: rgba(35,36,52,.5); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease; }
  body.nav-open .alp-nav-backdrop { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}
