/* =====================================================================
   IFS Solution Advisor — Fullscreen-Wizard (Herzstueck des Centers)
   Wird zusaetzlich zu styles.css + infra.css geladen (nur auf der
   Advisor-Seite). Nutzt die Tokens/Farben aus styles.css/infra.css.
   ===================================================================== */

/* Einstiegs-Karte (Featured) auf der Landing */
.ic-feature{grid-column:1/-1;position:relative;display:flex;gap:34px;align-items:center;
  background:linear-gradient(120deg,rgba(21,113,196,.28),rgba(0,166,232,.12) 60%,rgba(255,255,255,.03));
  border:1px solid rgba(0,166,232,.4);border-radius:22px;padding:34px 36px;text-decoration:none;color:inherit;
  overflow:hidden;transition:transform .3s,box-shadow .3s,border-color .3s;box-shadow:0 20px 50px -28px rgba(0,166,232,.6)}
.ic-feature::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(600px 220px at 20% -30%,rgba(0,166,232,.28),transparent 70%);opacity:.9}
.ic-feature:hover{transform:translateY(-4px);border-color:rgba(0,166,232,.7);box-shadow:0 30px 60px -26px rgba(0,166,232,.75)}
.ic-feature .feat-ico{position:relative;z-index:1;flex:0 0 auto;width:78px;height:78px;border-radius:20px;background:var(--grad);
  background-origin:border-box;display:grid;place-items:center;box-shadow:0 16px 34px -12px rgba(0,166,232,.8)}
.ic-feature .feat-ico svg{width:40px;height:40px;fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ic-feature .feat-body{position:relative;z-index:1;flex:1;min-width:0}
.ic-feature .feat-eyebrow{display:inline-flex;align-items:center;gap:8px;font-family:var(--ff-head);font-weight:700;
  font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:#8fe0ff;margin-bottom:10px}
.ic-feature .feat-eyebrow .dot{width:7px;height:7px;border-radius:50%;background:var(--cyan);box-shadow:0 0 10px 2px rgba(0,166,232,.8)}
.ic-feature h3{font-size:1.7rem;color:#fff;margin-bottom:8px;letter-spacing:-.01em}
.ic-feature p{color:#c2d4ee;font-size:1.02rem;line-height:1.5;margin-bottom:0;max-width:640px}
.ic-feature .feat-go{position:relative;z-index:1;flex:0 0 auto;display:inline-flex;align-items:center;gap:9px;
  font-family:var(--ff-head);font-weight:700;font-size:1rem;color:#0a1836;background:linear-gradient(120deg,#4fd0ff,#00a6e8);
  padding:.85rem 1.4rem;border-radius:12px;white-space:nowrap;box-shadow:0 12px 26px -10px rgba(0,166,232,.7)}
.ic-feature .feat-go svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s}
.ic-feature:hover .feat-go svg{transform:translateX(4px)}

/* ---------- Wizard-Grundgeruest ---------- */
.adv-main{position:relative;z-index:1;min-height:100vh;padding:96px 0 60px}
.adv-shell{max-width:1000px;margin:0 auto;padding:0 24px}

.adv-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}
.adv-kicker{font-family:var(--ff-head);font-weight:700;font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:#8fe0ff}
.adv-exit{display:inline-flex;align-items:center;gap:7px;color:#8fa6cc;font-family:var(--ff-head);font-weight:600;
  font-size:.88rem;text-decoration:none}
.adv-exit:hover{color:#fff}
.adv-exit svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}

/* Fortschritt */
.adv-progress{margin:14px 0 34px}
.adv-steps{display:flex;gap:8px;margin-bottom:12px}
.adv-steps .st{flex:1;height:5px;border-radius:999px;background:rgba(255,255,255,.12);overflow:hidden;position:relative}
.adv-steps .st::after{content:"";position:absolute;inset:0;background:var(--grad);transform:scaleX(0);transform-origin:left;
  transition:transform .5s cubic-bezier(.4,0,.2,1)}
.adv-steps .st.done::after{transform:scaleX(1)}
.adv-steps .st.current::after{transform:scaleX(.5)}
.adv-steplabel{font-family:var(--ff-head);font-weight:600;font-size:.82rem;color:#8fa6cc}
.adv-steplabel b{color:#fff}

/* Schritt-Container */
.adv-step{display:none;animation:advIn .45s cubic-bezier(.2,.7,.3,1)}
.adv-step.active{display:block}
@keyframes advIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.adv-q{font-size:clamp(1.5rem,3vw,2.1rem);font-weight:800;color:#fff;letter-spacing:-.02em;margin-bottom:6px}
.adv-sub{color:#a9bcda;margin-bottom:26px;line-height:1.55}

/* Options-Raster (Schritt 1 & 2) */
.adv-optgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
.adv-optgrid.cols-wide{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
.adv-opt{position:relative;display:flex;flex-direction:column;gap:12px;text-align:left;cursor:pointer;
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));border:1.5px solid rgba(255,255,255,.1);
  border-radius:16px;padding:20px;color:#dbe6f7;font-family:inherit;transition:transform .2s,border-color .2s,background .2s;min-width:0}
.adv-opt:hover{transform:translateY(-3px);border-color:rgba(0,166,232,.45)}
.adv-opt .oi{width:44px;height:44px;border-radius:12px;background:rgba(0,166,232,.12);display:grid;place-items:center;transition:.2s}
.adv-opt .oi svg{width:24px;height:24px;fill:none;stroke:#8fe0ff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:.2s}
.adv-opt .ol{font-family:var(--ff-head);font-weight:700;font-size:1.02rem;color:#fff}
.adv-opt .od{font-size:.85rem;color:#8fa6cc;line-height:1.4}
.adv-opt .ocheck{position:absolute;top:16px;right:16px;width:22px;height:22px;border-radius:50%;border:2px solid rgba(255,255,255,.2);
  display:grid;place-items:center;opacity:0;transform:scale(.6);transition:.2s}
.adv-opt .ocheck svg{width:13px;height:13px;fill:none;stroke:#0a1836;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.adv-opt.sel{border-color:transparent;background:linear-gradient(135deg,rgba(21,113,196,.4),rgba(0,166,232,.2));
  box-shadow:0 16px 34px -18px rgba(0,166,232,.8)}
.adv-opt.sel::before{content:"";position:absolute;inset:-1.5px;border-radius:16px;padding:1.5px;background:var(--grad);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}
.adv-opt.sel .oi{background:var(--grad);background-origin:border-box}
.adv-opt.sel .oi svg{stroke:#fff}
.adv-opt.sel .ocheck{opacity:1;transform:scale(1);background:linear-gradient(120deg,#4fd0ff,#00a6e8);border-color:transparent}

/* Felder (Schritt 3) */
.adv-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px 22px}
.adv-toggle{display:flex;gap:10px}
.adv-toggle button{flex:1;background:rgba(10,24,54,.6);border:1px solid rgba(255,255,255,.14);color:#a9bcda;
  font-family:var(--ff-head);font-weight:700;font-size:.95rem;padding:.7rem;border-radius:12px;cursor:pointer;transition:.2s;min-width:0}
.adv-toggle button.on{background:var(--grad);background-origin:border-box;border-color:transparent;color:#fff}

/* Anforderungen (Schritt 4) — Chips */
.adv-chips{display:flex;flex-wrap:wrap;gap:12px}
.adv-chip{display:inline-flex;align-items:center;gap:10px;cursor:pointer;background:rgba(255,255,255,.04);
  border:1.5px solid rgba(255,255,255,.12);border-radius:999px;padding:.7rem 1.1rem;color:#dbe6f7;
  font-family:var(--ff-head);font-weight:700;font-size:.95rem;transition:.2s}
.adv-chip:hover{border-color:rgba(0,166,232,.45)}
.adv-chip .cc{width:20px;height:20px;border-radius:6px;border:2px solid rgba(255,255,255,.25);display:grid;place-items:center;transition:.2s}
.adv-chip .cc svg{width:12px;height:12px;fill:none;stroke:#0a1836;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:0;transition:.2s}
.adv-chip.sel{border-color:transparent;background:linear-gradient(135deg,rgba(21,113,196,.4),rgba(0,166,232,.2))}
.adv-chip.sel .cc{background:linear-gradient(120deg,#4fd0ff,#00a6e8);border-color:transparent}
.adv-chip.sel .cc svg{opacity:1}

/* Navigation */
.adv-nav{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:34px}
.adv-hint{font-size:.85rem;color:#7f93b8}
.adv-nav .spacer{flex:1}
.btn-back{background:transparent;border:1px solid rgba(255,255,255,.18);color:#dbe6f7;font-family:var(--ff-head);
  font-weight:700;padding:.8rem 1.4rem;border-radius:12px;cursor:pointer;transition:.2s}
.btn-back:hover{border-color:rgba(255,255,255,.4)}
.btn-next{background:var(--grad);background-origin:border-box;border:1px solid transparent;color:#fff;font-family:var(--ff-head);
  font-weight:700;padding:.8rem 1.7rem;border-radius:12px;cursor:pointer;transition:transform .2s,box-shadow .2s;
  box-shadow:0 12px 26px -10px rgba(0,166,232,.7);display:inline-flex;align-items:center;gap:9px}
.btn-next:hover{transform:translateY(-2px)}
.btn-next:disabled{opacity:.4;cursor:not-allowed;transform:none;box-shadow:none}
.btn-next svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* Analyse-Animation */
.adv-analyzing{text-align:center;padding:60px 0}
.adv-spinner{width:64px;height:64px;margin:0 auto 26px;border-radius:50%;
  border:4px solid rgba(255,255,255,.12);border-top-color:#00a6e8;animation:advSpin 1s linear infinite}
@keyframes advSpin{to{transform:rotate(360deg)}}
.adv-analyzing h2{color:#fff;font-size:1.4rem;margin-bottom:8px}
.adv-analyzing p{color:#8fa6cc}

/* ---------- Ergebnis ---------- */
.adv-result-head{display:flex;align-items:flex-start;gap:16px;margin-bottom:8px}
.adv-badge{flex:0 0 auto;width:52px;height:52px;border-radius:14px;background:var(--grad);background-origin:border-box;
  display:grid;place-items:center;box-shadow:0 12px 26px -10px rgba(0,166,232,.7)}
.adv-badge svg{width:28px;height:28px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.adv-result h2{font-size:clamp(1.5rem,3vw,2rem);color:#fff;letter-spacing:-.02em}
.adv-result .adv-sub{margin-bottom:28px}

.adv-cols{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:22px}
.adv-panel{background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025));
  border:1px solid rgba(255,255,255,.1);border-radius:18px;padding:24px 26px}
.adv-panel h3{font-size:1.05rem;color:#fff;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.1);
  position:relative;display:flex;align-items:center;gap:10px}
.adv-panel h3::after{content:"";position:absolute;left:0;bottom:-1px;width:40px;height:2px;background:var(--grad)}
.adv-panel h3 svg{width:20px;height:20px;fill:none;stroke:#8fe0ff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.adv-list{list-style:none;display:flex;flex-direction:column;gap:12px}
.adv-list li{display:flex;gap:12px;align-items:flex-start;color:#dbe6f7;font-size:.97rem;line-height:1.4}
.adv-list li .lm{flex:0 0 auto;width:20px;height:20px;margin-top:1px;border-radius:6px;background:rgba(0,166,232,.15);
  display:grid;place-items:center}
.adv-list li .lm svg{width:12px;height:12px;fill:none;stroke:#4fd0ff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.adv-list li b{color:#fff;font-weight:700}
.adv-tech{display:flex;flex-wrap:wrap;gap:10px}
.adv-tech span{background:rgba(0,166,232,.1);border:1px solid rgba(0,166,232,.28);color:#bfe6ff;
  font-family:var(--ff-head);font-weight:600;font-size:.9rem;padding:.5rem .9rem;border-radius:10px}
.adv-neutral-note{font-size:.8rem;color:#7f93b8;margin-top:14px;line-height:1.45}

/* Passende Rechner */
.adv-calc-title{font-family:var(--ff-head);font-weight:700;color:#fff;font-size:1.1rem;margin:6px 0 16px}
.adv-calc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;margin-bottom:30px}
.adv-calc{display:flex;align-items:center;gap:14px;background:rgba(10,24,54,.5);border:1px solid rgba(255,255,255,.1);
  border-radius:14px;padding:16px 18px;text-decoration:none;color:#fff;font-family:var(--ff-head);font-weight:700;
  font-size:.98rem;transition:.2s}
.adv-calc:hover{border-color:rgba(0,166,232,.5);transform:translateY(-3px);background:rgba(0,166,232,.08)}
.adv-calc .ci{flex:0 0 auto;width:40px;height:40px;border-radius:11px;background:var(--grad);background-origin:border-box;display:grid;place-items:center}
.adv-calc .ci svg{width:21px;height:21px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.adv-calc .cgo{margin-left:auto;color:#4fd0ff}
.adv-calc .cgo svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* Abschluss-Aktionen */
.adv-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding-top:24px;border-top:1px solid rgba(255,255,255,.1)}
.adv-actions .btn,.adv-actions .btn-soft{display:inline-flex;align-items:center;gap:9px}
.adv-actions .btn svg,.adv-actions .btn-soft svg{width:17px;height:17px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.btn-soft{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16);color:#dbe6f7;font-family:var(--ff-head);
  font-weight:700;padding:.8rem 1.3rem;border-radius:12px;cursor:pointer;text-decoration:none;transition:.2s}
.btn-soft:hover{border-color:rgba(255,255,255,.35);color:#fff}
.btn-soft[disabled],.btn-soft.is-soon{opacity:.5;cursor:not-allowed}
.btn-soft .tag-soon{font-size:.7rem;font-weight:700;color:#8fa6cc;background:rgba(255,255,255,.08);padding:.1rem .45rem;border-radius:6px;margin-left:2px}

/* Toast */
.adv-toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%) translateY(20px);opacity:0;pointer-events:none;
  background:rgba(10,24,54,.95);border:1px solid rgba(0,166,232,.4);color:#fff;font-family:var(--ff-head);font-weight:600;
  padding:.8rem 1.3rem;border-radius:12px;box-shadow:0 16px 40px -12px rgba(0,0,0,.6);transition:opacity .3s,transform .3s;z-index:50}
.adv-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* Druck */
@media print{
  .ic-bg,.ic-grid-lines,.site-header,.site-footer,.adv-progress,.adv-top,.adv-actions{display:none!important}
  .ic-page{background:#fff;color:#111}
  .adv-panel,.adv-calc{background:#f5f8fc;border-color:#dde}
  .adv-result h2,.adv-panel h3,.adv-list li b{color:#0a1836}
  .adv-tech span{background:#eef6fc;color:#0a1836;border-color:#cfe4f5}
  .adv-main{padding-top:0}
}

/* ---------- Responsive ---------- */
@media (max-width:820px){
  .ic-feature{flex-direction:column;align-items:flex-start;gap:20px;padding:26px}
  .ic-feature .feat-go{align-self:stretch;justify-content:center}
  .adv-cols{grid-template-columns:1fr}
}
@media (max-width:600px){
  .adv-fields{grid-template-columns:1fr}
  .adv-optgrid,.adv-optgrid.cols-wide{grid-template-columns:1fr 1fr}
  .adv-steplabel{font-size:.76rem}
  .adv-q{font-size:1.4rem}
  .adv-panel{padding:20px}
}
@media (max-width:400px){
  .adv-optgrid,.adv-optgrid.cols-wide{grid-template-columns:1fr}
}
