/**
 * Interaktive Visualisierungen – PureLight (#5569ff / #f2f5f9)
 */

/* Icon tiles */
.vn-icon-tile {
    display: flex; flex-direction: column; gap: .65rem;
    background: #fff; border: 1px solid var(--vn-line);
    border-radius: var(--vn-radius-lg); padding: 1.15rem 1.2rem;
    box-shadow: var(--vn-shadow-card); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    text-decoration: none; color: inherit; cursor: pointer;
}
.vn-icon-tile:hover, .vn-icon-tile.is-active {
    transform: translateY(-3px);
    border-color: rgba(85,105,255,.35);
    box-shadow: var(--vn-shadow-primary);
}
.vn-icon-badge {
    width: 2.5rem; height: 2.5rem; border-radius: 10px;
    background: var(--vn-primary-soft); color: var(--vn-primary);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.vn-icon-badge svg { width: 1.25rem; height: 1.25rem; }
.vn-icon-tile h3 { margin: 0; font-size: 1rem; }
.vn-icon-tile p { margin: 0; font-size: .85rem; color: var(--vn-mute); line-height: 1.45; }

/* Interactive app desk */
.vn-desk { border-radius: 12px; border: 1px solid var(--vn-line); background: #fff; box-shadow: var(--vn-shadow-card); overflow: hidden; }
.vn-desk-nav { display: flex; flex-wrap: wrap; gap: .35rem; padding: .75rem; background: #fbfcfe; border-bottom: 1px solid var(--vn-line); }
.vn-desk-nav button {
    border: 0; background: transparent; color: var(--vn-mute);
    font: inherit; font-weight: 700; font-size: .85rem;
    padding: .55rem .85rem; border-radius: 8px; cursor: pointer;
}
.vn-desk-nav button[aria-selected="true"] {
    background: var(--vn-primary-soft); color: var(--vn-primary-dark);
}
.vn-desk-body { padding: 1.25rem; background: var(--vn-bg); min-height: 220px; }
.vn-desk-panel[hidden] { display: none !important; }
.vn-kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1rem; }
@media (max-width: 640px) { .vn-kpi-row { grid-template-columns: 1fr; } }
.vn-kpi {
    background: #fff; border: 1px solid var(--vn-line); border-radius: 10px; padding: .9rem 1rem;
}
.vn-kpi .label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--vn-mute); }
.vn-kpi .value { font-size: 1.6rem; font-weight: 800; color: var(--vn-ink); line-height: 1.2; margin-top: .15rem; }
.vn-kpi .hint { font-size: .75rem; color: var(--vn-mute); margin-top: .2rem; }
.vn-mini-table { background: #fff; border: 1px solid var(--vn-line); border-radius: 10px; overflow: hidden; }
.vn-mini-table .head, .vn-mini-table .row {
    display: grid; grid-template-columns: 1.2fr 1fr .8fr 1fr; gap: .5rem;
    padding: .65rem .85rem; font-size: .8rem;
}
.vn-mini-table .head { background: var(--vn-bg); font-weight: 700; color: var(--vn-mute); text-transform: uppercase; letter-spacing: .04em; font-size: .65rem; }
.vn-mini-table .row { border-top: 1px solid var(--vn-line); color: var(--vn-ink); }
.vn-pill { display: inline-flex; align-items: center; padding: .15rem .5rem; border-radius: 999px; font-size: .7rem; font-weight: 700; }
.vn-pill-ok { background: #eaf9e1; color: #3a9a12; }
.vn-pill-warn { background: #fff4df; color: #c07800; }
.vn-pill-info { background: var(--vn-primary-soft); color: var(--vn-primary-dark); }

/* Before / After compare */
.vn-compare { background: #fff; border: 1px solid var(--vn-line); border-radius: var(--vn-radius-lg); box-shadow: var(--vn-shadow-card); overflow: hidden; }
.vn-compare-toggle { display: flex; padding: .65rem; gap: .4rem; background: var(--vn-bg); border-bottom: 1px solid var(--vn-line); }
.vn-compare-toggle button {
    flex: 1; border: 1px solid var(--vn-line); background: #fff; color: var(--vn-mute);
    font: inherit; font-weight: 700; font-size: .85rem; padding: .7rem; border-radius: 8px; cursor: pointer;
}
.vn-compare-toggle button[aria-pressed="true"] {
    background: var(--vn-primary); color: #fff; border-color: var(--vn-primary);
}
.vn-compare-pane { padding: 1.25rem 1.35rem; }
.vn-compare-pane[hidden] { display: none !important; }
.vn-compare-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.vn-compare-list li {
    display: flex; gap: .65rem; align-items: flex-start;
    font-size: .925rem; color: var(--vn-mute); line-height: 1.45;
}
.vn-compare-list .mark {
    width: 1.35rem; height: 1.35rem; border-radius: 999px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 800; margin-top: .1rem;
}
.vn-compare-list .mark-bad { background: #ffe5e8; color: var(--vn-error); }
.vn-compare-list .mark-good { background: #eaf9e1; color: #3a9a12; }

/* Feature explorer */
.vn-explorer { display: grid; gap: 1rem; }
@media (min-width: 900px) {
    .vn-explorer { grid-template-columns: 280px 1fr; align-items: start; }
}
.vn-explorer-menu { display: flex; flex-direction: column; gap: .4rem; }
.vn-explorer-menu button {
    text-align: left; border: 1px solid var(--vn-line); background: #fff;
    border-radius: 10px; padding: .85rem 1rem; cursor: pointer; font: inherit;
    color: var(--vn-ink); transition: border-color .15s, background .15s, box-shadow .15s;
}
.vn-explorer-menu button strong { display: block; font-size: .9rem; }
.vn-explorer-menu button span { display: block; font-size: .78rem; color: var(--vn-mute); margin-top: .2rem; }
.vn-explorer-menu button[aria-selected="true"] {
    background: var(--vn-primary-soft); border-color: rgba(85,105,255,.4);
    box-shadow: var(--vn-shadow-card);
}
.vn-explorer-detail {
    background: #fff; border: 1px solid var(--vn-line); border-radius: var(--vn-radius-lg);
    padding: 1.35rem 1.5rem; box-shadow: var(--vn-shadow-card); min-height: 220px;
}
.vn-explorer-detail h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.vn-explorer-detail p { margin: 0 0 1rem; color: var(--vn-mute); line-height: 1.55; }
.vn-explorer-detail ul { margin: 0 0 1.25rem; padding-left: 1.1rem; color: var(--vn-mute); font-size: .9rem; line-height: 1.55; }
.vn-explorer-panel[hidden] { display: none !important; }

/* Sales quiz */
.vn-quiz {
    background: #fff; border: 1px solid var(--vn-line); border-radius: var(--vn-radius-lg);
    box-shadow: var(--vn-shadow-card); padding: 1.5rem; max-width: 640px;
}
.vn-quiz-progress { height: 6px; background: var(--vn-bg); border-radius: 999px; overflow: hidden; margin-bottom: 1.25rem; }
.vn-quiz-progress > i { display: block; height: 100%; width: 0; background: var(--vn-primary); transition: width .3s ease; }
.vn-quiz-q { font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem; }
.vn-quiz-opts { display: grid; gap: .55rem; }
.vn-quiz-opts button {
    text-align: left; border: 1px solid var(--vn-line); background: var(--vn-bg);
    border-radius: 10px; padding: .85rem 1rem; font: inherit; font-weight: 600;
    color: var(--vn-ink); cursor: pointer; transition: border-color .15s, background .15s;
}
.vn-quiz-opts button:hover, .vn-quiz-opts button.is-picked {
    border-color: rgba(85,105,255,.45); background: var(--vn-primary-soft);
}
.vn-quiz-result[hidden] { display: none !important; }
.vn-quiz-result {
    margin-top: 1rem; padding: 1.1rem 1.2rem; border-radius: 10px;
    background: var(--vn-primary-soft); border: 1px solid rgba(85,105,255,.2);
}
.vn-quiz-result h3 { margin: 0 0 .4rem; }
.vn-quiz-result p { margin: 0 0 1rem; color: var(--vn-mute); font-size: .925rem; }

/* Visual flow */
.vn-flow { display: grid; gap: .75rem; }
@media (min-width: 768px) { .vn-flow { grid-template-columns: repeat(4, 1fr); } }
.vn-flow-step {
    position: relative; background: #fff; border: 1px solid var(--vn-line);
    border-radius: 12px; padding: 1.1rem; box-shadow: var(--vn-shadow-card);
    cursor: pointer; transition: transform .15s, border-color .15s;
}
.vn-flow-step:hover, .vn-flow-step.is-active { transform: translateY(-2px); border-color: rgba(85,105,255,.4); }
.vn-flow-num {
    width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--vn-primary);
    color: #fff; font-size: .75rem; font-weight: 800; display: inline-flex;
    align-items: center; justify-content: center; margin-bottom: .55rem;
}
.vn-flow-step h3 { margin: 0 0 .35rem; font-size: .95rem; }
.vn-flow-step p { margin: 0; font-size: .8rem; color: var(--vn-mute); line-height: 1.4; }
.vn-flow-detail {
    margin-top: 1rem; padding: 1.15rem 1.25rem; border-radius: 12px;
    background: var(--vn-primary-soft); border: 1px solid rgba(85,105,255,.2);
    color: var(--vn-ink); font-size: .95rem; line-height: 1.5;
}
.vn-flow-detail[hidden] { display: none !important; }

/* Counter bars */
.vn-meter { margin: .85rem 0; }
.vn-meter-label { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; margin-bottom: .35rem; }
.vn-meter-track { height: 10px; background: var(--vn-bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--vn-line); }
.vn-meter-fill { height: 100%; width: 0; background: linear-gradient(90deg, #7380ff, #5569ff); border-radius: 999px; transition: width 1s ease; }

/* Hover lift cards grid */
.vn-visual-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .vn-visual-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .vn-visual-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

/* Accordion features */
.vn-acc details {
    background: #fff; border: 1px solid var(--vn-line); border-radius: 10px;
    margin-bottom: .55rem; box-shadow: var(--vn-shadow-card); overflow: hidden;
}
.vn-acc summary {
    list-style: none; cursor: pointer; padding: 1rem 1.15rem;
    font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.vn-acc summary::-webkit-details-marker { display: none; }
.vn-acc summary::after { content: "+"; color: var(--vn-primary); font-weight: 800; }
.vn-acc details[open] summary::after { content: "–"; }
.vn-acc .vn-acc-body { padding: 0 1.15rem 1.1rem; color: var(--vn-mute); font-size: .925rem; line-height: 1.55; }

/* Floating sparkle dots in hero */
.vn-hero-dots { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.vn-hero-dots span {
    position: absolute; width: 8px; height: 8px; border-radius: 999px;
    background: rgba(85,105,255,.25); animation: vnFloatDot 7s ease-in-out infinite;
}
@keyframes vnFloatDot {
    0%, 100% { transform: translateY(0); opacity: .35; }
    50% { transform: translateY(-14px); opacity: .8; }
}
@media (prefers-reduced-motion: reduce) {
    .vn-hero-dots span, .vn-icon-tile, .vn-flow-step { animation: none !important; transition: none !important; }
    .vn-meter-fill { transition: none; }
}
