/**
 * ===============================================================================
 * TripTiles - Onboarding (60s) + Travel-DNA
 * Developed by Toni Sciacca - mail@tonisciacca.com
 * ===============================================================================
 */
.ob-overlay {
    position: fixed; inset: 0; z-index: 9700;
    background: rgba(15, 18, 22, 0.62); backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center; padding: 20px;
    font-family: 'Outfit', sans-serif;
}
.ob-overlay.open { display: flex; }
.ob-shell {
    width: 100%; max-width: 540px;
    background: var(--sh-card, #fff);
    border-radius: 22px; overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.35);
    animation: obPop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes obPop { from { transform: translateY(10px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }

.ob-head {
    padding: 26px 28px 6px;
    display: flex; align-items: center; justify-content: space-between;
}
.ob-step { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--sh-pink, #FF385C); }
.ob-progress { display: flex; gap: 4px; }
.ob-progress-dot { width: 24px; height: 3px; border-radius: 999px; background: var(--sh-border, #e8e8e8); }
.ob-progress-dot.active { background: var(--sh-pink, #FF385C); }
.ob-progress-dot.done { background: var(--sh-text2, #6b6b6b); }

.ob-body { padding: 14px 28px 24px; }
.ob-title { font-size: 24px; font-weight: 700; color: var(--sh-text, #1a1a1a); line-height: 1.2; margin: 0 0 6px; }
.ob-sub { font-size: 14px; color: var(--sh-text2, #6b6b6b); margin-bottom: 18px; }
.ob-options { display: grid; gap: 8px; margin-bottom: 18px; }
.ob-options.cols-2 { grid-template-columns: 1fr 1fr; }
.ob-options.cols-3 { grid-template-columns: repeat(3, 1fr); }
.ob-opt {
    background: var(--sh-card, #fff); border: 1px solid var(--sh-border, #e8e8e8);
    border-radius: 14px; padding: 14px;
    text-align: left; cursor: pointer;
    font: inherit; transition: all 0.14s;
    display: flex; align-items: center; gap: 12px;
}
.ob-opt:hover { border-color: var(--sh-pink, #FF385C); transform: translateY(-1px); }
.ob-opt.selected { border-color: var(--sh-pink, #FF385C); background: var(--sh-pink-lt, rgba(255,56,92,0.06)); }
.ob-opt-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--sh-bg, #f5f5f5);
    display: inline-flex; align-items: center; justify-content: center;
}
.ob-opt.selected .ob-opt-icon { background: var(--sh-pink-lt, rgba(255,56,92,0.12)); }
.ob-opt-icon [data-lucide] { width: 18px; height: 18px; color: var(--sh-text2, #6b6b6b); }
.ob-opt.selected .ob-opt-icon [data-lucide] { color: var(--sh-pink, #FF385C); }
.ob-opt-label { font-size: 14px; font-weight: 600; color: var(--sh-text, #1a1a1a); }
.ob-opt-sub { font-size: 12px; color: var(--sh-text3, #9a9a9a); margin-top: 2px; }

.ob-actions { display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.ob-skip { background: none; border: none; cursor: pointer; font: inherit; font-size: 13px; color: var(--sh-text3, #9a9a9a); padding: 8px 12px; }
.ob-next {
    background: var(--sh-pink, #FF385C); color: #fff;
    border: none; cursor: pointer;
    font: inherit; font-size: 14px; font-weight: 700;
    padding: 12px 22px; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 6px;
}
.ob-next [data-lucide] { width: 16px; height: 16px; }
.ob-next:disabled { opacity: 0.4; cursor: not-allowed; }

/* Travel-DNA Anzeige (im Profil) */
.tdna-card {
    background: linear-gradient(135deg, #fff, #f9f9fb);
    border: 1px solid var(--sh-border, #e8e8e8);
    border-radius: 18px;
    padding: 18px;
    display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center;
}
.tdna-radar { width: 200px; height: 200px; }
.tdna-info { font-family: 'Outfit', sans-serif; }
.tdna-pre { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--sh-text3, #9a9a9a); }
.tdna-title { font-size: 22px; font-weight: 700; color: var(--sh-text, #1a1a1a); margin: 2px 0 8px; }
.tdna-desc { font-size: 13px; color: var(--sh-text2, #6b6b6b); line-height: 1.5; }
.tdna-traits { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tdna-trait { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--sh-pink-lt, rgba(255,56,92,0.08)); color: var(--sh-pink, #FF385C); }

@media (max-width: 600px) {
    .tdna-card { grid-template-columns: 1fr; text-align: center; }
    .tdna-radar { margin: 0 auto; }
}

/* Slider-Step (Pace, Komfort, Adrenalin, Authentizitaet) */
.ob-slider-row {
    display: flex; align-items: center; gap: 16px;
    padding: 28px 8px 18px;
}
.ob-slider-end {
    font: 600 12px 'Outfit', sans-serif;
    color: var(--sh-text3, #9a9a9a);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 70px;
}
.ob-slider-end.ob-slider-right { text-align: right; }
.ob-slider {
    flex: 1;
    -webkit-appearance: none; appearance: none;
    height: 8px;
    background: linear-gradient(to right, #e8e8e8, var(--sh-pink, #FF385C), #e8e8e8);
    border-radius: 50px;
    outline: none;
    cursor: pointer;
}
.ob-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--sh-pink, #FF385C);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(255,56,92,0.35);
    cursor: grab;
}
.ob-slider::-moz-range-thumb {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--sh-pink, #FF385C);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(255,56,92,0.35);
    cursor: grab;
}
.ob-slider-val {
    text-align: center;
    font: 700 14px 'Outfit', sans-serif;
    color: var(--sh-pink, #FF385C);
    margin-bottom: 12px;
    min-height: 22px;
}

/* Back-Button */
.ob-back {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 8px 14px;
    border: 1px solid var(--sh-border, #e8e8e8);
    background: #fff;
    color: var(--sh-text2, #6b6b6b);
    border-radius: 50px;
    font: 600 12px 'Outfit', sans-serif;
    cursor: pointer;
    margin-right: auto;
}
.ob-back i[data-lucide] { width: 14px; height: 14px; }
.ob-back:hover { border-color: var(--sh-text3, #9a9a9a); color: var(--sh-text, #1a1a1a); }

/* ═══════════════════════════════════════════════════════════════════════
 * DEEP TRAVEL-PERSONA-TEST (5 Sections)
 * ═══════════════════════════════════════════════════════════════════════ */
.ob-overlay-deep .ob-shell-deep {
    max-width: 780px;
    max-height: 92vh;
    display: flex; flex-direction: column;
}
.ob-overlay-deep .ob-head {
    padding: 20px 28px 4px;
    position: relative;
}
.ob-close-x {
    position: absolute; top: 14px; right: 16px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--sh-bg, #f5f5f5);
    border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--sh-text2, #6b6b6b);
    transition: all 0.14s;
}
.ob-close-x:hover { background: var(--sh-border, #e8e8e8); color: var(--sh-text, #1a1a1a); }
.ob-close-x i[data-lucide] { width: 16px; height: 16px; }

.ob-section-tabs {
    display: flex; gap: 4px;
    padding: 4px 28px 14px;
    overflow-x: auto;
    border-bottom: 1px solid var(--sh-border, #e8e8e8);
}
.ob-sec-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    border-radius: 50px;
    font: 600 12px 'Outfit', sans-serif;
    color: var(--sh-text3, #9a9a9a);
    background: var(--sh-bg, #f5f5f5);
    white-space: nowrap;
    flex-shrink: 0;
}
.ob-sec-tab i[data-lucide] { width: 13px; height: 13px; }
.ob-sec-tab.done { color: #16a34a; background: rgba(22,163,74,0.08); }
.ob-sec-tab.active {
    color: #fff; background: var(--sh-pink, #FF385C);
    box-shadow: 0 4px 12px rgba(255,56,92,0.25);
}

.ob-overlay-deep .ob-body {
    padding: 18px 28px 22px;
    overflow-y: auto;
    flex: 1;
}
.ob-section-intro {
    font: 400 14px 'Outfit', sans-serif;
    color: var(--sh-text2, #6b6b6b);
    margin-bottom: 18px;
    line-height: 1.5;
    padding: 12px 16px;
    background: var(--sh-pink-lt, rgba(255,56,92,0.05));
    border-radius: 12px;
    border-left: 3px solid var(--sh-pink, #FF385C);
}
.ob-q {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--sh-border, #e8e8e8);
}
.ob-q:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.ob-q-titel {
    font: 700 16px 'Outfit', sans-serif;
    color: var(--sh-text, #1a1a1a);
    margin-bottom: 4px;
}
.ob-q-sub {
    font: 400 12px 'Outfit', sans-serif;
    color: var(--sh-text3, #9a9a9a);
    margin-bottom: 12px;
}

/* Rating-Grid (12 Aktivitäten, 0-5 Dots) */
.ob-rating-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px;
}
.ob-rating-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 4px;
    border-bottom: 1px solid var(--sh-border, #f0f0f0);
}
.ob-rating-label {
    display: inline-flex; align-items: center; gap: 8px;
    font: 600 13px 'Outfit', sans-serif;
    color: var(--sh-text, #1a1a1a);
    flex: 1;
}
.ob-rating-label i[data-lucide] { width: 16px; height: 16px; color: var(--sh-pink, #FF385C); }
.ob-rating-dots { display: flex; gap: 3px; }
.ob-rating-dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 1px solid var(--sh-border, #e8e8e8);
    background: #fff;
    font: 700 10px 'Outfit', sans-serif;
    color: var(--sh-text3, #c8c8c8);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.12s;
}
.ob-rating-dot:hover { border-color: var(--sh-pink, #FF385C); transform: scale(1.1); }
.ob-rating-dot.filled {
    background: var(--sh-pink-lt, rgba(255,56,92,0.18));
    border-color: var(--sh-pink, #FF385C);
    color: var(--sh-pink, #FF385C);
}
.ob-rating-dot.active {
    background: var(--sh-pink, #FF385C);
    color: #fff;
    box-shadow: 0 2px 6px rgba(255,56,92,0.35);
}
@media (max-width: 640px) {
    .ob-rating-grid { grid-template-columns: 1fr; }
}

/* Footer für Deep-Test */
.ob-foot {
    padding: 14px 28px;
    border-top: 1px solid var(--sh-border, #e8e8e8);
    display: flex; align-items: center; gap: 10px;
    background: #fff;
}

/* Loading & Result */
.ob-finish-loading {
    text-align: center;
    padding: 36px 12px;
}
.ob-finish-loading h3 {
    margin: 18px 0 6px;
    font: 700 18px 'Outfit', sans-serif;
    color: var(--sh-text, #1a1a1a);
}
.ob-finish-loading p {
    margin: 0; font: 400 13px 'Outfit', sans-serif;
    color: var(--sh-text2, #6b6b6b);
    max-width: 460px; margin: 0 auto; line-height: 1.5;
}
.ob-spinner {
    width: 48px; height: 48px;
    border: 4px solid var(--sh-border, #e8e8e8);
    border-top-color: var(--sh-pink, #FF385C);
    border-radius: 50%;
    margin: 0 auto;
    animation: obSpin 0.9s linear infinite;
}
@keyframes obSpin { to { transform: rotate(360deg); } }

.ob-finish-err {
    text-align: center; padding: 28px 16px;
}
.ob-finish-err i[data-lucide] {
    width: 40px; height: 40px; color: #dc2626; margin-bottom: 10px;
}
.ob-finish-err h3 { font: 700 17px 'Outfit', sans-serif; margin: 4px 0; }
.ob-finish-err p { font: 400 13px 'Outfit', sans-serif; color: var(--sh-text2, #6b6b6b); margin: 0 0 16px; }

/* Resultat-Anzeige */
.ob-result { padding: 8px 0 12px; }
.ob-result-head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px;
}
.ob-result-icon {
    width: 28px; height: 28px;
    color: var(--sh-pink, #FF385C);
}
.ob-result-head h2 {
    margin: 0; font: 700 22px 'Outfit', sans-serif;
    color: var(--sh-text, #1a1a1a);
}
.ob-result-summary {
    font: 400 14px 'Outfit', sans-serif;
    color: var(--sh-text, #1a1a1a);
    line-height: 1.6;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--sh-pink-lt, rgba(255,56,92,0.06)), rgba(99,102,241,0.06));
    border-radius: 14px;
    margin-bottom: 18px;
}
.ob-result-summary strong { color: var(--sh-pink, #FF385C); }
.ob-result-summary em { font-style: italic; color: #6366f1; }
.ob-arch-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px;
    margin-bottom: 18px;
}
.ob-arch-card {
    padding: 16px 14px;
    border-radius: 14px;
    border: 1px solid var(--sh-border, #e8e8e8);
    background: #fff;
    text-align: center;
}
.ob-arch-card.ob-arch-primary {
    border-color: var(--sh-pink, #FF385C);
    background: linear-gradient(180deg, rgba(255,56,92,0.06), #fff);
    transform: scale(1.02);
    box-shadow: 0 6px 22px rgba(255,56,92,0.18);
}
.ob-arch-icon {
    width: 44px; height: 44px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: var(--sh-pink-lt, rgba(255,56,92,0.1));
    display: inline-flex; align-items: center; justify-content: center;
}
.ob-arch-icon i[data-lucide] { width: 22px; height: 22px; color: var(--sh-pink, #FF385C); }
.ob-arch-role {
    font: 700 10px 'Outfit', sans-serif;
    text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--sh-text3, #9a9a9a);
}
.ob-arch-name {
    font: 700 15px 'Outfit', sans-serif;
    color: var(--sh-text, #1a1a1a);
    margin: 3px 0;
}
.ob-arch-score {
    font: 700 12px 'Outfit', sans-serif;
    color: var(--sh-pink, #FF385C);
}
.ob-result-foot {
    font: 400 12px 'Outfit', sans-serif;
    color: var(--sh-text2, #6b6b6b);
    text-align: center;
    margin: 0 0 14px;
    line-height: 1.5;
}
.ob-result .ob-actions {
    display: flex; justify-content: center;
}

/* Default options grid for new questions */
.ob-q .ob-options {
    display: grid; gap: 8px;
}
.ob-q .ob-options.cols-2 { grid-template-columns: 1fr 1fr; }
.ob-q .ob-options.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
    .ob-q .ob-options.cols-3 { grid-template-columns: 1fr 1fr; }
    .ob-q .ob-options.cols-2 { grid-template-columns: 1fr; }
}
