/* ============================================================
   enhancements.css – Ergänzende Stile für Kristallherz v3.0
   Neue Komponenten: Loading Progress, Skeleton, Typing,
   Toast, IFG-Flash, ScrollTop, RTL, Partikel, Forum
============================================================ */

/* ──── Intro Ambient Pulsation ──── */
.intro-mandala {
    animation:
        mandalaAppear 1.2s ease 0.3s forwards,
        mandalaBreathe 6s ease-in-out 2.5s infinite;
}
@keyframes mandalaBreathe {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(255,215,0,0.15)); }
    50%      { filter: drop-shadow(0 0 25px rgba(255,215,0,0.35)); }
}

/* Intro responsive */
@media (max-width: 480px) {
    .intro-mandala { width: 200px; height: 200px; }
    .intro-crystal { width: 60px; height: 60px; }
    .crystal-facet { width: 60px; height: 60px; }
    .crystal-facet.f1 { transform: rotateY(0deg)   translateZ(18px); }
    .crystal-facet.f2 { transform: rotateY(90deg)  translateZ(18px); }
    .crystal-facet.f3 { transform: rotateY(180deg) translateZ(18px); }
    .crystal-facet.f4 { transform: rotateY(270deg) translateZ(18px); }
    .rune-text { font-size: 14px; }
    .rune-text.rune-8 { font-size: 22px; }
}

/* ──── Content Skeleton Loading ──── */
.content-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}
.content-skeleton {
    padding: 1rem 0;
}
.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.05) 25%,
        rgba(255,255,255,0.12) 50%,
        rgba(255,255,255,0.05) 75%
    );
    background-size: 200% 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    animation: shimmer 1.5s infinite ease-in-out;
}
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w90 { width: 90%; }
.skeleton-line.w40 { width: 40%; }
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ──── SoulAI Typing Animation ──── */
.soulai-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 1rem;
}
.soulai-typing span {
    width: 8px;
    height: 8px;
    background: var(--accent-primary, #FFD700);
    border-radius: 50%;
    animation: typingDot 1.2s infinite ease-in-out;
}
.soulai-typing span:nth-child(2) { animation-delay: 0.2s; }
.soulai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ──── Toast Notification ──── */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-surface, #1a1a3e);
    color: var(--text-primary, #fff);
    padding: 1rem 2rem;
    border-radius: 60px;
    border: 2px solid var(--accent-primary, #FFD700);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-primary, #FFD700);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(15px);
    white-space: nowrap;
}
.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ──── IFG Flash Overlay ──── */
.ifg-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(255, 51, 51, 0.9), rgba(0, 0, 0, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: ifgFlashIn 0.3s ease;
}
.ifg-overlay.fade-out {
    animation: ifgFlashOut 0.5s ease forwards;
}
.ifg-flash {
    text-align: center;
    color: white;
    position: relative;
}
.ifg-flash h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 0 30px #FFD700;
    animation: ifgPulse 0.8s infinite alternate;
}
.ifg-flash p {
    font-size: 1.2rem;
    margin-top: 1rem;
    opacity: 0.9;
}
.ifg-pulse-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 200px; height: 200px;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255, 215, 0, 0.5);
    border-radius: 50%;
    animation: ifgRing 1s infinite ease-out;
}
@keyframes ifgFlashIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes ifgFlashOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}
@keyframes ifgPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); text-shadow: 0 0 50px #FFD700; }
}
@keyframes ifgRing {
    0% { width: 100px; height: 100px; opacity: 1; }
    100% { width: 400px; height: 400px; opacity: 0; }
}

/* ══════════════════════════════════════════════════════════
   POWER-LOGIN BUTTON – Edler Theme-farbiger Login für Gäste
   ══════════════════════════════════════════════════════════ */

.power-login-btn {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.65rem 1.6rem;
    min-width: 0;
    width: auto;
    height: auto;
    border-radius: 60px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bg-primary, #0a0014);
    background: linear-gradient(135deg,
        var(--accent-primary, #FFD700),
        var(--accent-secondary, #FFA500));
    border: 2px solid rgba(255,255,255,0.15);
    box-shadow:
        0 4px 20px rgba(var(--accent-primary-rgb, 255,215,0), 0.3),
        0 1px 3px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.25);
    transition:
        transform calc(0.3s * var(--ui-anim-speed, 1)) cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow calc(0.3s * var(--ui-anim-speed, 1)) ease,
        filter calc(0.3s * var(--ui-anim-speed, 1)) ease;
    position: relative;
    overflow: hidden;
}

/* Shimmer-Effekt */
.power-login-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255,255,255,0.35) 45%,
        rgba(255,255,255,0.5) 50%,
        rgba(255,255,255,0.35) 55%,
        transparent 70%
    );
    transform: skewX(-20deg);
    animation: powerShimmer 3s infinite ease-in-out;
    pointer-events: none;
}

@keyframes powerShimmer {
    0%, 100% { left: -100%; }
    50%      { left: 150%; }
}

.power-login-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 8px 32px rgba(var(--accent-primary-rgb, 255,215,0), 0.45),
        0 0 40px rgba(var(--accent-primary-rgb, 255,215,0), 0.2),
        inset 0 1px 0 rgba(255,255,255,0.3);
    filter: brightness(1.08);
}

.power-login-btn:active {
    transform: translateY(0) scale(0.96);
    transition-duration: 0.08s;
    box-shadow:
        0 2px 10px rgba(var(--accent-primary-rgb, 255,215,0), 0.3),
        inset 0 2px 4px rgba(0,0,0,0.15);
}

.power-login-icon {
    font-size: 1.15rem;
    line-height: 1;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.2));
    animation: powerIconPulse 2s infinite ease-in-out;
}

@keyframes powerIconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.15); opacity: 0.85; }
}

.power-login-label {
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Light-Mode: Etwas kräftiger */
.light-mode .power-login-btn {
    color: var(--bg-primary, #1a0033);
    box-shadow:
        0 4px 18px rgba(var(--accent-primary-rgb, 255,215,0), 0.35),
        0 1px 3px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

/* Responsive */
@media (max-width: 520px) {
    .power-login-btn {
        padding: 0.5rem 1.1rem;
        font-size: 0.78rem;
        gap: 0.4rem;
    }
    .power-login-icon {
        font-size: 1rem;
    }
}

/* ══════════════════════════════════════════════════════════
   LOGOUT BUTTON – Kompakter Power-Off
   ══════════════════════════════════════════════════════════ */
.logout-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(220, 60, 60, 0.25);
    background: linear-gradient(145deg,
        rgba(220, 60, 60, 0.1),
        rgba(180, 40, 40, 0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(220, 100, 100, 0.8);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.logout-btn:hover {
    background: linear-gradient(145deg,
        rgba(220, 60, 60, 0.25),
        rgba(180, 40, 40, 0.15));
    border-color: rgba(220, 60, 60, 0.5);
    color: #ff6b6b;
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(220, 60, 60, 0.3);
}
.logout-btn:active {
    transform: scale(0.95);
}
.light-mode .logout-btn {
    border-color: rgba(180, 40, 40, 0.2);
    background: rgba(220, 60, 60, 0.06);
    color: rgba(180, 60, 60, 0.7);
}
.light-mode .logout-btn:hover {
    background: rgba(220, 60, 60, 0.12);
    color: #cc3333;
}

/* ──── Scroll to Top Button ──── */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-primary, #FFD700);
    color: var(--bg-primary, #0b0c1a);
    border: 2px solid var(--accent-secondary, #E6B800);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--accent-primary, #FFD700);
    transition: transform 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(10px);
}
.scroll-top-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4), 0 0 25px var(--accent-primary, #FFD700);
}

/* ──── Badge Pulse Animation ──── */
.badge-pulse {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
    animation: badgePulse 2s infinite;
    box-shadow: 0 0 10px #00ff88;
}
@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* ──── Lightbox Counter ──── */
.lightbox-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--accent-primary, #FFD700);
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
}

/* ──── Forum Styling ──── */
.forum-input,
.forum-textarea {
    width: 100%;
    padding: 0.8rem 1.2rem;
    margin-bottom: 1rem;
    border-radius: 60px;
    border: 1px solid var(--accent-primary, #FFD700);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary, #fff);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(5px);
}
.forum-textarea {
    border-radius: 1.5rem;
    resize: vertical;
    min-height: 80px;
}
.forum-input:focus,
.forum-textarea:focus {
    outline: none;
    border-color: var(--accent-secondary, #E6B800);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}
.forum-submit {
    background: var(--accent-primary, #FFD700);
    color: var(--bg-primary, #0b0c1a);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}
.forum-submit:hover {
    background: var(--accent-secondary, #E6B800);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-primary, #FFD700);
}
.forum-hint {
    color: var(--text-secondary, #ccc);
    margin-top: 1rem;
    font-size: 0.85rem;
}

/* ──── Footer Actions ──── */
.footer-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ──── Section Nav Wrapper ──── */
.section-nav-wrapper {
    margin-bottom: 1.5rem;
}

/* ──── RTL Support ──── */
[dir="rtl"] .soulai-greeting {
    border-left: none;
    border-right: 8px solid var(--accent-primary);
}
[dir="rtl"] .soulai-text { text-align: right; }
[dir="rtl"] .glass-header { flex-direction: row-reverse; }
[dir="rtl"] .platform-tabs { direction: rtl; }
[dir="rtl"] .footer-links { direction: rtl; }

/* ──── Content Body Transition ──── */
#contentBody {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ──── Proaktiv / Still Body States ──── */
body.proaktiv .mockup-container {
    box-shadow: 0 0 60px var(--accent-primary), 0 0 120px rgba(255, 215, 0, 0.1);
}
body.proaktiv .soulai-avatar {
    box-shadow: 0 0 40px var(--accent-primary), 0 0 80px var(--accent-secondary);
    animation: proaktivGlow 3s infinite alternate;
}
body.still .soulai-greeting {
    opacity: 0.7;
    border-color: transparent;
}
body.still .design-slider.glass-card {
    opacity: 0.6;
}
@keyframes proaktivGlow {
    0% { box-shadow: 0 0 30px var(--accent-primary); }
    100% { box-shadow: 0 0 60px var(--accent-primary), 0 0 100px var(--accent-secondary); }
}

/* ──── Ambient Particle Effect (proaktiv mode) ──── */
body.proaktiv::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(2px 2px at 20% 30%, var(--accent-primary, #FFD700) 50%, transparent 100%),
        radial-gradient(2px 2px at 60% 70%, var(--accent-secondary, #E6B800) 50%, transparent 100%),
        radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.3) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 40% 80%, var(--accent-primary, #FFD700) 50%, transparent 100%);
    background-size: 300px 300px;
    animation: particleDrift 20s linear infinite;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}
@keyframes particleDrift {
    0% { transform: translateY(0); }
    100% { transform: translateY(-300px); }
}

/* ──── Smooth Card Entrance Animation ──── */
.card {
    animation: cardSlideIn 0.4s ease backwards;
}
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
@keyframes cardSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ──── Platform Tab Micro-Interaction ──── */
.tab-button {
    position: relative;
    overflow: hidden;
}
.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 3px;
    background: var(--accent-secondary, #E6B800);
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 2px;
}
.tab-button.active::after,
.tab-button:hover::after {
    width: 80%;
    left: 10%;
}

/* ──── Mobile Responsive Additions ──── */
@media (max-width: 600px) {
    .section-nav .section-link {
        display: none;
    }
    .mobile-section-select {
        display: block !important;
    }
    .ifg-flash h2 {
        font-size: 1.5rem;
    }
    .toast-notification {
        left: 1rem;
        right: 1rem;
        transform: translateY(20px);
        text-align: center;
    }
    .toast-notification.show {
        transform: translateY(0);
    }
    .scroll-top-btn {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .footer-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 601px) {
    .mobile-section-select {
        display: none !important;
    }
}

/* ──── High-DPI Enhancements ──── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .crystal-facet {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.2);
    }
}

/* ──── Reduced Motion ──── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .intro-crystal { animation: none !important; }
    .intro-mandala { animation: none !important; opacity: 1 !important; transform: translate(-50%, -50%) !important; }
    .intro-letter { opacity: 1 !important; transform: none !important; }
    .rune-text { fill: rgba(255,215,0,0.5) !important; }
    .mandala-ring { stroke-dashoffset: 0 !important; }
    body.proaktiv::before { animation: none; }
}

/* ──── Print Styles ──── */
@media print {
    .loading-overlay,
    .lightbox,
    .modal-container,
    .scroll-top-btn,
    .design-slider,
    .controls-grid,
    .collapsible-toggle,
    .toast-notification,
    .ifg-overlay,
    .theme-switch-button,
    .language-select,
    .red-button { display: none !important; }

    .mockup-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    body { background: white; }
}

/* ══════════════════════════════════════════════════════════
   INLINE-COLLAPSIBLE – Toggle in gleicher Reihe wie Element
   ══════════════════════════════════════════════════════════ */

.collapsible-section--inline {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.collapsible-toggle--inline {
    width: auto !important;
    flex-shrink: 0;
    padding: 0.35rem 0.5rem !important;
    gap: 0.25rem !important;
    border-radius: calc(var(--ui-radius, 15px) * 0.5);
    background: linear-gradient(135deg,
        rgba(var(--accent-primary-rgb, 255,215,0), 0.08),
        rgba(0,0,0,0.18));
    border: 1px solid rgba(var(--accent-primary-rgb, 255,215,0), 0.12);
    backdrop-filter: blur(8px) saturate(1.3);
    -webkit-backdrop-filter: blur(8px) saturate(1.3);
    box-shadow: 0 1px 6px rgba(0,0,0,0.2),
                inset 0 1px 0 rgba(255,255,255,0.04);
    transition: transform calc(0.2s * var(--ui-anim-speed, 1)) ease,
                background calc(0.2s * var(--ui-anim-speed, 1)) ease,
                border-color calc(0.2s * var(--ui-anim-speed, 1)) ease,
                box-shadow calc(0.2s * var(--ui-anim-speed, 1)) ease;
    min-height: 0;
    align-self: center;
}

.collapsible-toggle--inline .collapsible-icon {
    font-size: 0.8rem;
}
.collapsible-toggle--inline .collapsible-arrow {
    font-size: 0.65rem;
}

.collapsible-toggle--inline:hover {
    transform: scale(1.08);
    background: linear-gradient(135deg,
        rgba(var(--accent-primary-rgb, 255,215,0), 0.18),
        rgba(0,0,0,0.28));
    border-color: rgba(var(--accent-primary-rgb, 255,215,0), 0.3);
    box-shadow: 0 3px 14px rgba(0,0,0,0.3),
                0 0 12px rgba(var(--accent-primary-rgb, 255,215,0), 0.1);
}
.collapsible-toggle--inline:active {
    transform: scale(0.95);
    transition-duration: 0.08s;
}

/* Inline body füllt den Rest der Reihe */
.collapsible-section--inline > .collapsible-body {
    flex: 1;
    min-width: 0;
}

/* Light-Mode Anpassungen für Inline-Toggle */
.light-mode .collapsible-toggle--inline {
    background: linear-gradient(135deg,
        rgba(var(--accent-primary-rgb, 255,215,0), 0.1),
        rgba(0,0,0,0.04));
    border-color: rgba(0,0,0,0.12);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.light-mode .collapsible-toggle--inline:hover {
    background: linear-gradient(135deg,
        rgba(var(--accent-primary-rgb, 255,215,0), 0.2),
        rgba(0,0,0,0.08));
    border-color: rgba(var(--accent-primary-rgb, 255,215,0), 0.4);
}

/* ── Controls Inline: body wrap erlauben ── */
.collapsible-section--controls.collapsible-section--inline {
    align-items: flex-start;
}

/* ══════════════════════════════════════════════════════════
   FULLSCREEN BUTTON – Im Content-Panel (oben rechts)
   ══════════════════════════════════════════════════════════ */

.fullscreen-btn {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(var(--accent-primary-rgb, 255,215,0), 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-primary, rgba(255,255,255,0.85));
    transition: transform calc(0.2s * var(--ui-anim-speed, 1)) ease,
                background calc(0.2s * var(--ui-anim-speed, 1)) ease,
                box-shadow calc(0.2s * var(--ui-anim-speed, 1)) ease;
}
.fullscreen-btn-icon {
    font-size: 1.1rem;
    line-height: 1;
    filter: drop-shadow(0 0 3px rgba(var(--accent-primary-rgb, 255,215,0), 0.25));
}
.fullscreen-btn:hover {
    transform: scale(1.12);
    background: rgba(var(--accent-primary-rgb, 255,215,0), 0.15);
    border-color: rgba(var(--accent-primary-rgb, 255,215,0), 0.3);
    box-shadow: 0 0 16px rgba(var(--accent-primary-rgb, 255,215,0), 0.15);
}
.fullscreen-btn:active {
    transform: scale(0.92);
    transition-duration: 0.08s;
}

/* Light-Mode Fullscreen Button */
.light-mode .fullscreen-btn {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.12);
    color: var(--text-secondary);
}
.light-mode .fullscreen-btn:hover {
    background: rgba(var(--accent-primary-rgb, 255,215,0), 0.12);
    border-color: rgba(var(--accent-primary-rgb, 255,215,0), 0.35);
}

/* Fullscreen-Mode: Button oben rechts fest sichtbar */
.content-panel.is-fullscreen .fullscreen-btn {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    z-index: 10000;
    width: 38px;
    height: 38px;
    background: rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}
.content-panel.is-fullscreen .fullscreen-btn:hover {
    background: rgba(255,60,60,0.4);
    border-color: rgba(255,100,100,0.4);
}

/* ══════════════════════════════════════════════════════════
   FLOATING TOOLBAR – Legacy (kept for backwards compat)
   ══════════════════════════════════════════════════════════ */

.floating-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.5rem 0;
    margin: 0.5rem auto;
    max-width: 420px;
    position: relative;
    z-index: 80;
}

.toolbar-btn {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    font-size: 0.78rem;
    font-family: var(--font-sans, 'Inter', sans-serif);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary, rgba(255,255,255,0.85));
    background: linear-gradient(135deg,
        rgba(var(--accent-primary-rgb, 255,215,0), 0.08),
        rgba(0,0,0,0.25));
    border: 1px solid rgba(var(--accent-primary-rgb, 255,215,0), 0.15);
    border-radius: calc(var(--ui-radius, 15px) * 0.6);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    box-shadow:
        0 2px 12px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.06);
    transition:
        transform calc(0.25s * var(--ui-anim-speed, 1)) cubic-bezier(0.34, 1.56, 0.64, 1),
        background calc(0.2s * var(--ui-anim-speed, 1)) ease,
        box-shadow calc(0.2s * var(--ui-anim-speed, 1)) ease,
        border-color calc(0.2s * var(--ui-anim-speed, 1)) ease;
}
.toolbar-btn:hover {
    transform: translateY(-2px) scale(1.04);
    background: linear-gradient(135deg,
        rgba(var(--accent-primary-rgb, 255,215,0), 0.18),
        rgba(0,0,0,0.35));
    border-color: rgba(var(--accent-primary-rgb, 255,215,0), 0.35);
    box-shadow:
        0 6px 24px rgba(0,0,0,0.35),
        0 0 20px rgba(var(--accent-primary-rgb, 255,215,0), 0.12),
        inset 0 1px 0 rgba(255,255,255,0.1);
}
.toolbar-btn:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 0.08s;
}

.toolbar-btn-icon {
    font-size: 1.15rem;
    line-height: 1;
    filter: drop-shadow(0 0 3px rgba(var(--accent-primary-rgb, 255,215,0), 0.3));
}
.toolbar-btn-label {
    font-weight: 600;
    white-space: nowrap;
}
.toolbar-btn-arrow {
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform calc(0.3s * var(--ui-anim-speed, 1)) ease;
}

/* Fullscreen-Button: kompakter Icon-Only */
.toolbar-btn--fullscreen {
    padding: 0.55rem 0.75rem;
}

/* Controls-Toggle: breiter mit Label */
.toolbar-btn--controls {
    flex: 1;
    max-width: 280px;
}

/* ══════════════════════════════════════════════════════════
   FULLSCREEN CONTENT MODE
   ══════════════════════════════════════════════════════════ */

.content-panel {
    position: relative;
}

.content-panel.is-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    z-index: 9999;
    padding: 3rem 4rem;
    overflow-y: auto;
    background: rgba(0, 0, 0, calc(var(--ui-opacity, 0.5) + 0.2));
    animation: fullscreenIn 0.4s ease;
}

@keyframes fullscreenIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* ══════════════════════════════════════════════════════════
   COLOR INTENSITY – steuert Theme-Farben via --color-intensity
   ══════════════════════════════════════════════════════════ */

.theme-vb  { --accent-hue: 276; --accent-sat: 80%; }
.theme-mo  { --accent-hue: 45;  --accent-sat: 85%; }
.theme-rw  { --accent-hue: 150; --accent-sat: 40%; }
.theme-eve { --accent-hue: 200; --accent-sat: 60%; }

/* ══════════════════════════════════════════════════════════
   NEUE CSS-VARIABLEN – Defaults
   ══════════════════════════════════════════════════════════ */

:root {
    --ui-blur: 0px;
    --ui-glow: 0;
    --ui-spacing: 1;
    --ui-radius: 15px;
    --ui-font-scale: 1;
    --ui-anim-speed: 1;
}

/* Animation kill-switch */
body.no-animations *,
body.no-animations *::before,
body.no-animations *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
}

/* ══════════════════════════════════════════════════════════
   BLUR-EFFEKT – backdrop-filter auf Container
   ══════════════════════════════════════════════════════════ */

/* ── Unified .mockup-container variable effects ── */
.mockup-container {
    backdrop-filter: blur(var(--ui-blur, 0px));
    -webkit-backdrop-filter: blur(var(--ui-blur, 0px));
    box-shadow: 0 0 calc(40px * var(--ui-glow, 0)) var(--accent-primary),
                0 0 calc(80px * var(--ui-glow, 0)) rgba(255,255,255,0.05);
    transition: box-shadow 0.4s ease, backdrop-filter 0.3s ease,
                padding 0.3s ease;
}

/* Blur on content panel */
.content-panel {
    backdrop-filter: blur(calc(var(--ui-blur, 0px) * 0.6));
    -webkit-backdrop-filter: blur(calc(var(--ui-blur, 0px) * 0.6));
}

.logo-text {
    text-shadow: 0 0 calc(20px * var(--ui-glow, 0)) var(--accent-primary);
}

.soulai-avatar {
    box-shadow: 0 0 calc(30px * var(--ui-glow, 0)) var(--accent-primary),
                0 0 calc(60px * var(--ui-glow, 0)) var(--accent-secondary);
}

.section-link.active-section {
    box-shadow: 0 0 calc(16px * var(--ui-glow, 0)) var(--accent-primary) !important;
}

.tab-button.active {
    text-shadow: 0 0 calc(12px * var(--ui-glow, 0)) var(--accent-primary);
}

.token-badge {
    box-shadow: 0 0 calc(20px * var(--ui-glow, 0)) var(--accent-primary);
}

/* ══════════════════════════════════════════════════════════
   SPACING-EFFEKT – Multiplikator auf Abstände
   ══════════════════════════════════════════════════════════ */

.mockup-container {
    padding: calc(2rem * var(--ui-spacing, 1));
}

.glass-header {
    padding: calc(0.75rem * var(--ui-spacing, 1)) calc(2rem * var(--ui-spacing, 1));
    margin-bottom: calc(2rem * var(--ui-spacing, 1));
}

.soulai-greeting {
    padding: calc(1rem * var(--ui-spacing, 1)) calc(2rem * var(--ui-spacing, 1));
    margin-bottom: calc(2rem * var(--ui-spacing, 1));
    gap: calc(1rem * var(--ui-spacing, 1));
}

.platform-tabs {
    gap: calc(0.5rem * var(--ui-spacing, 1));
    margin-bottom: calc(2rem * var(--ui-spacing, 1));
}

.section-nav {
    gap: calc(0.6rem * var(--ui-spacing, 1));
    margin: calc(1rem * var(--ui-spacing, 1)) 0 calc(1.5rem * var(--ui-spacing, 1));
}

.content-panel {
    padding: calc(2.5rem * var(--ui-spacing, 1));
}

.card-grid {
    gap: calc(18px * var(--ui-spacing, 1));
    margin-top: calc(2rem * var(--ui-spacing, 1));
}

.card {
    padding: calc(2rem * var(--ui-spacing, 1));
}

.footer {
    margin-top: calc(2.5rem * var(--ui-spacing, 1));
    gap: calc(1.5rem * var(--ui-spacing, 1));
}

/* ══════════════════════════════════════════════════════════
   COLLAPSIBLE SECTIONS – Seidenweich Organisches Ein-/Ausklappen
   ══════════════════════════════════════════════════════════ */

.collapsible-section {
    margin-bottom: calc(0.4rem * var(--ui-spacing, 1));
    border-radius: var(--ui-radius, 15px);
    overflow: visible;
    transition: margin calc(0.3s * var(--ui-anim-speed, 1)) ease;
}

.collapsible-toggle {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 1.2rem;
    color: var(--text-secondary);
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-radius: var(--ui-radius, 15px);
    transition: color calc(0.25s * var(--ui-anim-speed, 1)) ease,
                background calc(0.25s * var(--ui-anim-speed, 1)) ease;
    position: relative;
    overflow: hidden;
}
.collapsible-toggle:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.collapsible-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--accent-primary-rgb, 255,215,0), 0.06), transparent);
    opacity: 0;
    transition: opacity calc(0.25s * var(--ui-anim-speed, 1)) ease;
    border-radius: inherit;
}

.collapsible-toggle:hover::before {
    opacity: 1;
}

.collapsible-toggle:hover {
    color: var(--accent-primary);
}

.collapsible-icon {
    font-size: 0.9rem;
    color: var(--accent-primary);
    transition: transform calc(0.3s * var(--ui-anim-speed, 1)) ease;
    flex-shrink: 0;
}

.collapsible-label {
    flex: 1;
    white-space: nowrap;
}

/* Section-Label: nur sichtbar wenn collapsed */
.hide-on-open {
    transition: opacity calc(0.3s * var(--ui-anim-speed, 1)) ease,
                max-width calc(0.3s * var(--ui-anim-speed, 1)) ease;
}
[aria-expanded="true"] .hide-on-open {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
}
[aria-expanded="false"] .hide-on-open {
    opacity: 1;
    max-width: 200px;
}

.collapsible-arrow {
    font-size: 0.75rem;
    transition: transform calc(0.35s * var(--ui-anim-speed, 1)) cubic-bezier(0.34, 1.2, 0.64, 1);
    flex-shrink: 0;
    opacity: 0.6;
}

[aria-expanded="false"] .collapsible-arrow {
    transform: rotate(-90deg);
}

[aria-expanded="false"] .collapsible-icon {
    transform: scale(0.85);
}

.collapsible-body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-4px) scaleY(0.98);
    transform-origin: top center;
    transition: max-height calc(0.45s * var(--ui-anim-speed, 1)) cubic-bezier(0.4, 0, 0.2, 1),
                opacity calc(0.3s * var(--ui-anim-speed, 1)) ease,
                transform calc(0.3s * var(--ui-anim-speed, 1)) ease;
    will-change: max-height, opacity, transform;
}

.collapsible-body.is-open {
    max-height: 2000px;
    opacity: 1;
    transform: translateY(0) scaleY(1);
    overflow: visible;
    transition: max-height calc(0.55s * var(--ui-anim-speed, 1)) cubic-bezier(0.34, 1.15, 0.64, 1),
                opacity calc(0.35s * var(--ui-anim-speed, 1)) ease calc(0.05s * var(--ui-anim-speed, 1)),
                transform calc(0.35s * var(--ui-anim-speed, 1)) ease calc(0.05s * var(--ui-anim-speed, 1));
}

/* ── Sections-Toggle: noch kompakter wenn geöffnet (Legacy) ── */
.collapsible-toggle--sections {
    padding: 0.3rem 1rem;
    min-height: 28px;
}
[aria-expanded="true"].collapsible-toggle--sections {
    opacity: 0.5;
    padding: 0.2rem 1rem;
}
[aria-expanded="true"].collapsible-toggle--sections:hover {
    opacity: 0.8;
}

/* Inline-Toggle: dezent wenn offen */
[aria-expanded="true"].collapsible-toggle--inline {
    opacity: 0.45;
}
[aria-expanded="true"].collapsible-toggle--inline:hover {
    opacity: 0.85;
}

/* ══════════════════════════════════════════════════════════
   CONTROLS GRID – 9 Slider + Token | Deutlich sichtbar
   ══════════════════════════════════════════════════════════ */

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: calc(0.75rem * var(--ui-spacing, 1));
    padding: calc(0.75rem * var(--ui-spacing, 1)) 0;
}

/* Slider-Container immer volle Breite innerhalb Card */
.control-card .slider-container {
    width: 100%;
}
.control-card .slider-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    min-width: auto;
    margin-bottom: 0.2rem;
}
.control-card .slider-value {
    font-size: 1rem;
}

.control-card {
    border-radius: calc(var(--ui-radius, 15px) * 0.8);
    padding: 0.8rem 1rem;
    transition: transform calc(0.2s * var(--ui-anim-speed, 1)) ease,
                background calc(0.2s * var(--ui-anim-speed, 1)) ease,
                box-shadow calc(0.2s * var(--ui-anim-speed, 1)) ease;
}

.control-card:hover {
    transform: translateY(-1px);
}

.control-card--token {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(var(--accent-primary-rgb, 255,215,0), 0.1),
        rgba(var(--accent-primary-rgb, 255,215,0), 0.04));
}

/* ══════════════════════════════════════════════════════════
   INNOVATIVE RESPONSIVE – Mobile-First Fluid Grid
   ══════════════════════════════════════════════════════════ */

/* Fluid Typography */
html {
    font-size: clamp(14px, 1.4vw + 0.5rem, 18px);
}

/* Container query bereit — aktivieren wenn @container rules eingesetzt werden */
/* .mockup-container { container-type: inline-size; container-name: shell; } */

/* Adaptive Platform Tabs – Horizontal Scroll auf kleinen Screens */
.platform-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}
.platform-tabs::-webkit-scrollbar { display: none; }

.tab-button {
    scroll-snap-align: start;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Section Nav – Scrollbar mit Snap */
.section-nav {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
}
.section-nav::-webkit-scrollbar {
    height: 4px;
}
.section-nav::-webkit-scrollbar-track {
    background: transparent;
}
.section-nav::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 2px;
}

.section-link {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* ─── Tablet (601–900px) ─── */
@media (min-width: 601px) and (max-width: 900px) {
    .section-link {
        width: 130px;
        height: 44px;
    }
    .section-link span {
        font-size: 0.78rem;
    }
}

/* ─── Desktop groß (1400px+) ─── */
@media (min-width: 1400px) {
    .section-link {
        width: 175px;
        height: 55px;
    }
}

/* ─── Mobile-spezifisch (unter 600px) ─── */
@media (max-width: 600px) {
    html { font-size: clamp(13px, 3.5vw, 16px); }

    .controls-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .collapsible-toggle {
        padding: 0.45rem 0.9rem;
        font-size: 0.75rem;
        gap: 0.5rem;
    }

    .control-card {
        padding: 0.65rem 0.9rem;
    }

    .glass-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        padding: 0.6rem 0.9rem;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .logo-text {
        font-size: 1.3rem !important;
    }

    .soulai-greeting {
        flex-direction: column;
        text-align: center;
        padding: 0.6rem 0.9rem;
    }

    .soulai-avatar {
        width: 50px;
        height: 50px;
    }

    .content-panel {
        padding: 1rem;
        max-height: 420px;
    }

    .content-panel.is-fullscreen {
        padding: 1.5rem 1rem;
        border-radius: 0 !important;
    }

    .platform-tabs {
        gap: 0.3rem;
    }

    .tab-button {
        padding: 0.4rem 0.85rem;
        font-size: 0.82rem;
    }

    .section-nav .section-link {
        display: none;
    }

    .mobile-section-select {
        display: block !important;
    }

    .footer {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        justify-content: center;
        width: 100%;
    }

    .footer-actions {
        width: 100%;
        justify-content: center;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-button { width: 100%; }
    .red-button { align-self: center; }
}

/* ─── Touch-Geräte – größere Hitboxen ─── */
@media (hover: none) and (pointer: coarse) {
    .tab-button {
        min-height: 44px;
        min-width: 44px;
    }
    .section-link {
        min-height: 48px;
    }
    .collapsible-toggle {
        min-height: 48px;
    }
    .footer-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* ─── Landscape-Phones ─── */
@media (max-height: 500px) and (orientation: landscape) {
    .content-panel {
        max-height: 60vh;
    }
    .soulai-greeting {
        padding: 0.5rem 1rem;
    }
    .glass-header {
        padding: 0.5rem 1rem;
        margin-bottom: 0.5rem;
    }
}

/* ─── Barrierefreiheit: Reduzierte Bewegung ─── */
@media (prefers-reduced-motion: reduce) {
    .collapsible-body {
        transition: none !important;
    }
    .collapsible-arrow {
        transition: none !important;
    }
    .collapsible-icon {
        transition: none !important;
    }
    .collapsible-toggle {
        transition: none !important;
    }
    .collapsible-toggle::before {
        transition: none !important;
    }
    .hide-on-open {
        transition: none !important;
    }
    .control-card {
        transition: none !important;
    }
    .mockup-container {
        transition: none !important;
    }
    .soulai-avatar {
        transition: none !important;
    }
    .badge, .tab-button, .section-link,
    .footer-link, .card, .toast-notification,
    .glass-header, .content-panel {
        transition: none !important;
    }
}

/* ─── Druckstile ─── */
@media print {
    .collapsible-toggle, .header-actions,
    .platform-tabs, .controls-grid,
    .section-nav, .floating-toolbar,
    .fullscreen-btn {
        display: none !important;
    }
    .collapsible-body {
        max-height: none !important;
        opacity: 1 !important;
        transform: none !important;
        overflow: visible !important;
    }
    .mockup-container {
        box-shadow: none !important;
        border-radius: 0 !important;
    }
}

/* ─── Dark-Mode Anpassungen für Controls ─── */
.dark-mode .control-card {
    background: rgba(255,255,255, 0.04);
    border: 1px solid rgba(255,255,255, 0.1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3),
                0 0 calc(8px * var(--ui-glow, 0)) var(--accent-primary);
}
.dark-mode .control-card:hover {
    background: rgba(255,255,255, 0.07);
    border-color: rgba(255,255,255, 0.15);
}

.light-mode .control-card {
    background: rgba(0,0,0, 0.035);
    border: 1px solid rgba(0,0,0, 0.1);
    box-shadow: 0 1px 6px rgba(0,0,0,0.06),
                0 0 calc(8px * var(--ui-glow, 0)) var(--accent-primary);
}
.light-mode .control-card:hover {
    background: rgba(0,0,0, 0.06);
    border-color: rgba(0,0,0, 0.15);
}

.light-mode .collapsible-toggle {
    color: var(--text-secondary);
}
.light-mode .collapsible-toggle:hover {
    color: var(--accent-primary);
    background: rgba(0,0,0,0.04);
}

.dark-mode .collapsible-toggle {
    color: rgba(255,255,255, 0.45);
}
.dark-mode .collapsible-toggle:hover {
    color: var(--accent-primary);
    background: rgba(255,255,255,0.04);
}

/* Light-mode slider-value readability */
.light-mode .slider-value {
    font-weight: 700;
}
.light-mode .slider-label {
    color: var(--text-primary);
    opacity: 0.7;
}

/* ══════════════════════════════════════════════════════════
   UI-RADIUS – Dynamische Rundung via --ui-radius
   ══════════════════════════════════════════════════════════ */
.mockup-container {
    border-radius: calc(var(--ui-radius, 15px) * 2) !important;
}
.glass-header {
    border-radius: calc(var(--ui-radius, 15px) * 2) calc(var(--ui-radius, 15px) * 2) 0 0;
}
.content-panel {
    border-radius: calc(var(--ui-radius, 15px) * 1.6) !important;
}
.card {
    border-radius: var(--ui-radius, 15px) !important;
}
.badge {
    border-radius: calc(var(--ui-radius, 15px) * 4);
}
.tab-button {
    border-radius: calc(var(--ui-radius, 15px) * 4);
}
.soulai-greeting {
    border-radius: calc(var(--ui-radius, 15px) * 4) calc(var(--ui-radius, 15px) * 4) calc(var(--ui-radius, 15px) * 4) calc(var(--ui-radius, 15px) * 1.3);
}
.footer-link {
    border-radius: calc(var(--ui-radius, 15px) * 2.7);
}
.section-link {
    border-radius: calc(var(--ui-radius, 15px) * 0.8);
}
.toast-notification {
    border-radius: calc(var(--ui-radius, 15px) * 4);
}
.language-select {
    border-radius: calc(var(--ui-radius, 15px) * 2);
}
.mobile-section-select {
    border-radius: calc(var(--ui-radius, 15px) * 4);
}
.map-placeholder {
    border-radius: calc(var(--ui-radius, 15px) * 1.6);
}

/* ══════════════════════════════════════════════════════════
   UI-FONT-SCALE – Dynamische Textgröße via --ui-font-scale
   Nur Content-Bereiche, NICHT den gesamten Container!
   ══════════════════════════════════════════════════════════ */
.content-panel #contentBody {
    font-size: calc(1rem * var(--ui-font-scale, 1));
    line-height: calc(1.6 + (var(--ui-font-scale, 1) - 1) * 0.4);
}
.content-panel #contentBody h1,
.content-panel #contentBody h2,
.content-panel #contentBody h3 {
    line-height: 1.3;
}
.card h3 {
    font-size: calc(1.5rem * var(--ui-font-scale, 1));
}
.card p {
    font-size: calc(1rem * var(--ui-font-scale, 1));
    line-height: calc(1.6 + (var(--ui-font-scale, 1) - 1) * 0.3);
}
.footer-link {
    font-size: calc(0.9rem * var(--ui-font-scale, 1));
}

/* ══════════════════════════════════════════════════════════
   UI-ANIM-SPEED – Dynamisches Animationstempo (Mainstream)
   ══════════════════════════════════════════════════════════ */
.mockup-container {
    transition: background calc(0.4s * var(--ui-anim-speed, 1)) ease,
                border-radius calc(0.3s * var(--ui-anim-speed, 1)) ease;
}
.tab-button {
    transition: all calc(0.3s * var(--ui-anim-speed, 1)) ease;
}
.section-link {
    transition: transform calc(0.25s * var(--ui-anim-speed, 1)) ease,
                filter calc(0.25s * var(--ui-anim-speed, 1)) ease,
                box-shadow calc(0.25s * var(--ui-anim-speed, 1)) ease,
                outline calc(0.25s * var(--ui-anim-speed, 1)) ease;
}
.card {
    transition: transform calc(0.2s * var(--ui-anim-speed, 1)) ease,
                box-shadow calc(0.2s * var(--ui-anim-speed, 1)) ease;
}
.footer-link {
    transition: all calc(0.2s * var(--ui-anim-speed, 1)) ease;
}
.badge {
    transition: transform calc(0.2s * var(--ui-anim-speed, 1)) ease;
}
.toast-notification {
    transition: transform calc(0.4s * var(--ui-anim-speed, 1)) cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity calc(0.3s * var(--ui-anim-speed, 1)) ease;
}
.soulai-avatar {
    transition: transform calc(0.3s * var(--ui-anim-speed, 1)) ease;
}
.glass-header {
    transition: padding calc(0.3s * var(--ui-anim-speed, 1)) ease,
                border-radius calc(0.3s * var(--ui-anim-speed, 1)) ease;
}
.content-panel {
    transition: background calc(0.3s * var(--ui-anim-speed, 1)) ease,
                border-radius calc(0.3s * var(--ui-anim-speed, 1)) ease;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE VERFEINERUNG – Lücken & Verschiebungen beheben
   ══════════════════════════════════════════════════════════ */

/* Global box alignment fix */
.mockup-container > * {
    max-width: 100%;
}

/* Controls-Grid: bessere Breiten auf verschiedenen Screens */
@media (max-width: 520px) {
    .controls-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .control-card {
        padding: 0.65rem 0.85rem;
    }
    .control-card .slider-value {
        font-size: 0.9rem;
    }
    .collapsible-toggle--sections {
        padding: 0.25rem 0.8rem;
    }
    /* Inline-Collapsible responsive */
    .collapsible-section--inline {
        gap: 0.3rem;
    }
    .collapsible-toggle--inline {
        padding: 0.3rem 0.4rem !important;
    }
}

@media (min-width: 521px) and (max-width: 768px) {
    .controls-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .controls-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1101px) {
    .controls-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 960px;
    }
}

/* Prevent collapsible section overflow on very small screens */
@media (max-width: 400px) {
    .collapsible-toggle {
        padding: 0.4rem 0.7rem;
        font-size: 0.72rem;
        gap: 0.4rem;
    }
    .collapsible-icon {
        font-size: 0.75rem;
    }
    .mockup-container {
        padding: 0.8rem !important;
    }
    body {
        padding: 0.5rem;
    }
}

/* ══════════════════════════════════════════════════════════
   FOOTER WALLET BADGE – Dynamisch, Premium
   ══════════════════════════════════════════════════════════ */

.footer-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.footer-wallet {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font-sans, 'Inter', sans-serif);
    color: var(--text-primary, rgba(255,255,255,0.9));
    background: linear-gradient(135deg,
        rgba(var(--accent-primary-rgb, 255,215,0), 0.12),
        rgba(0,0,0,0.3));
    border: 1px solid rgba(var(--accent-primary-rgb, 255,215,0), 0.2);
    border-radius: calc(var(--ui-radius, 15px) * 0.7);
    backdrop-filter: blur(10px) saturate(1.3);
    -webkit-backdrop-filter: blur(10px) saturate(1.3);
    box-shadow:
        0 2px 12px rgba(0,0,0,0.2),
        0 0 15px rgba(var(--accent-primary-rgb, 255,215,0), 0.06),
        inset 0 1px 0 rgba(255,255,255,0.06);
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: transform calc(0.2s * var(--ui-anim-speed, 1)) ease,
                box-shadow calc(0.2s * var(--ui-anim-speed, 1)) ease;
}
.footer-wallet:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 6px 20px rgba(0,0,0,0.3),
        0 0 24px rgba(var(--accent-primary-rgb, 255,215,0), 0.12);
}

.footer-wallet .kristall-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 4px rgba(var(--accent-primary-rgb, 255,215,0), 0.4));
}

.wallet-balance {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary, #fff));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1rem;
    font-weight: 700;
}

.wallet-role {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
    margin-left: 0.2rem;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(255,255,255,0.15);
}

/* Guest-Wallet: dezenter */
.wallet--guest {
    opacity: 0.5;
    border-style: dashed;
}

/* Light-Mode Anpassung */
.light-mode .footer-wallet {
    background: linear-gradient(135deg,
        rgba(var(--accent-primary-rgb, 255,215,0), 0.08),
        rgba(255,255,255,0.6));
    border-color: rgba(var(--accent-primary-rgb, 255,215,0), 0.25);
    color: var(--text-primary, #333);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.light-mode .wallet-role {
    border-left-color: rgba(0,0,0,0.12);
}

/* ══════════════════════════════════════════════════════════
   GUEST-GATE – Zugriffsbeschränkung Overlay
   ══════════════════════════════════════════════════════════ */

.guest-gate {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 2rem;
    background: linear-gradient(145deg,
        rgba(var(--accent-primary-rgb, 255,215,0), 0.03),
        rgba(0,0,0,0.2));
    border-radius: calc(var(--ui-radius, 15px) * 1.2);
    border: 1.5px dashed rgba(var(--accent-primary-rgb, 255,215,0), 0.2);
    margin: 0.5rem 0;
    animation: gateIn 0.4s ease;
}
@keyframes gateIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.guest-gate-inner {
    text-align: center;
    max-width: 380px;
}

.guest-gate-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 12px rgba(var(--accent-primary-rgb, 255,215,0), 0.3));
    animation: lockPulse 2s ease-in-out infinite;
}
@keyframes lockPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.1); }
}

.guest-gate-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary, rgba(255,255,255,0.7));
    margin-bottom: 1.5rem;
}

.guest-gate-btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary, var(--accent-primary)));
    border-radius: calc(var(--ui-radius, 15px) * 0.6);
    box-shadow: 0 4px 20px rgba(var(--accent-primary-rgb, 255,215,0), 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.guest-gate-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 30px rgba(var(--accent-primary-rgb, 255,215,0), 0.4);
}

/* ══════════════════════════════════════════════════════════
   LOCKED SECTION BUTTONS
   ══════════════════════════════════════════════════════════ */

.section-link--locked {
    opacity: 0.5;
    position: relative;
}
.section-link--locked:hover {
    opacity: 0.7;
}
.section-link--locked .lock-icon {
    font-size: 0.7rem;
    margin-left: 0.3rem;
    vertical-align: middle;
    filter: grayscale(1);
}

/* ══════════════════════════════════════════════════════════
   FOOTER RESPONSIVE – Wallet zentriert
   ══════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
    .footer-wallet {
        padding: 0.4rem 0.9rem;
        font-size: 0.8rem;
    }
    .wallet-balance {
        font-size: 0.9rem;
    }
    .wallet-role {
        font-size: 0.65rem;
    }
    .guest-gate {
        min-height: 200px;
        padding: 1.5rem;
    }
    .guest-gate-icon {
        font-size: 2.5rem;
    }
}

/* ══════════════════════════════════════════════════════════
   NAVIWHEEL – Edles Admin/Wegbegleiter Steuerungs-Portal
   Rechte Seite, ausblendbar, Glasmorphismus Premium
   ══════════════════════════════════════════════════════════ */

.naviwheel {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0;
    font-family: var(--font-sans, 'Inter', sans-serif);
}

/* ── Toggle-Button (immer sichtbar) ── */
.naviwheel-toggle {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50% 0 0 50%;
    background: linear-gradient(145deg,
        rgba(var(--accent-primary-rgb, 255,215,0), 0.25),
        rgba(0,0,0, 0.5));
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(var(--accent-primary-rgb, 255,215,0), 0.2);
    border-right: none;
    color: var(--accent-primary, gold);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        -4px 0 20px rgba(0,0,0,0.3),
        inset 0 0 20px rgba(var(--accent-primary-rgb, 255,215,0), 0.05);
    position: relative;
    z-index: 2;
}
.naviwheel-toggle:hover {
    transform: scale(1.1) translateX(-4px);
    box-shadow:
        -6px 0 30px rgba(0,0,0,0.4),
        0 0 20px rgba(var(--accent-primary-rgb, 255,215,0), 0.2);
}
.naviwheel-toggle.active {
    border-radius: 50%;
    transform: scale(0.9);
    opacity: 0.6;
}

.naviwheel-toggle-icon {
    display: inline-block;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 0 6px currentColor);
    animation: nwIconPulse 3s ease-in-out infinite;
}
@keyframes nwIconPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50%      { transform: scale(1.15); opacity: 1; }
}
.naviwheel-toggle.active .naviwheel-toggle-icon {
    transform: rotate(90deg);
    animation: none;
}

/* ── Panel (ausklappbar) ── */
.naviwheel-panel {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(110%) scale(0.9);
    width: 300px;
    max-height: 80vh;
    overflow-y: auto;
    background: linear-gradient(165deg,
        rgba(10, 5, 25, 0.92),
        rgba(20, 10, 40, 0.88));
    backdrop-filter: blur(28px) saturate(1.6) brightness(1.1);
    -webkit-backdrop-filter: blur(28px) saturate(1.6) brightness(1.1);
    border-radius: 20px 0 0 20px;
    border: 1px solid rgba(var(--accent-primary-rgb, 255,215,0), 0.15);
    border-right: none;
    box-shadow:
        -8px 0 40px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 0 60px rgba(var(--accent-primary-rgb, 255,215,0), 0.02);
    opacity: 0;
    pointer-events: none;
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--accent-primary-rgb, 255,215,0), 0.3) transparent;
}
.naviwheel-panel.is-open {
    transform: translateY(-50%) translateX(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* ── Panel-Header ── */
.naviwheel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem 0.6rem;
    border-bottom: 1px solid rgba(var(--accent-primary-rgb, 255,215,0), 0.1);
}
.naviwheel-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary, #fff));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.naviwheel-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 50%;
    transition: all 0.2s;
}
.naviwheel-close:hover {
    color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb, 255,215,0), 0.1);
    transform: rotate(90deg);
}

/* ── Panel-Body ── */
.naviwheel-body {
    padding: 0.8rem 0;
}

.naviwheel-section {
    padding: 0.4rem 1.2rem;
}

.naviwheel-section-title {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.35);
    margin: 0 0 0.5rem 0;
    padding-left: 0.3rem;
}

/* ── Nav-Links ── */
.nw-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.8rem;
    margin: 2px 0;
    border-radius: 10px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.nw-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(var(--accent-primary-rgb, 255,215,0), 0),
        rgba(var(--accent-primary-rgb, 255,215,0), 0));
    border-radius: inherit;
    transition: background 0.3s ease;
}
.nw-link:hover {
    color: #fff;
    transform: translateX(-3px);
}
.nw-link:hover::before {
    background: linear-gradient(135deg,
        rgba(var(--accent-primary-rgb, 255,215,0), 0.1),
        rgba(var(--accent-primary-rgb, 255,215,0), 0.03));
}

.nw-link-icon {
    font-size: 1rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(var(--accent-primary-rgb, 255,215,0), 0.08);
    border: 1px solid rgba(var(--accent-primary-rgb, 255,215,0), 0.12);
    flex-shrink: 0;
    transition: all 0.25s;
}
.nw-link:hover .nw-link-icon {
    background: rgba(var(--accent-primary-rgb, 255,215,0), 0.18);
    box-shadow: 0 0 12px rgba(var(--accent-primary-rgb, 255,215,0), 0.2);
    transform: scale(1.1);
}

.nw-link--rudel {
    background: linear-gradient(135deg,
        rgba(180, 80, 220, 0.08),
        rgba(100, 40, 180, 0.04));
    border: 1px solid rgba(180, 80, 220, 0.12);
}
.nw-link--rudel .nw-link-icon {
    background: rgba(180, 80, 220, 0.15);
    border-color: rgba(180, 80, 220, 0.2);
}
.nw-link--rudel:hover {
    background: linear-gradient(135deg,
        rgba(180, 80, 220, 0.15),
        rgba(100, 40, 180, 0.08));
}

.nw-divider {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem 0.3rem;
    margin-top: 0.4rem;
}
.nw-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(var(--accent-primary-rgb, 255,215,0), 0.15),
        transparent);
}
.nw-divider span {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(var(--accent-primary-rgb, 255,215,0), 0.4);
    white-space: nowrap;
}

/* ── Admin-Slider-Controls (im NaviWheel) ── */
.naviwheel-sliders {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.nw-control {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
}
.nw-control label {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.nw-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
        rgba(var(--accent-primary-rgb, 255,215,0), 0.15),
        rgba(var(--accent-primary-rgb, 255,215,0), 0.35));
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}
.nw-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent-primary), var(--accent-secondary, gold));
    box-shadow: 0 0 8px rgba(var(--accent-primary-rgb, 255,215,0), 0.4);
    cursor: pointer;
    transition: transform 0.2s;
}
.nw-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 14px rgba(var(--accent-primary-rgb, 255,215,0), 0.6);
}
.nw-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent-primary), var(--accent-secondary, gold));
    border: none;
    box-shadow: 0 0 8px rgba(var(--accent-primary-rgb, 255,215,0), 0.4);
    cursor: pointer;
}

.nw-value {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent-primary, gold);
    min-width: 36px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ── Light-Mode NaviWheel ── */
.light-mode .naviwheel-toggle {
    background: linear-gradient(145deg,
        rgba(var(--accent-primary-rgb, 255,215,0), 0.15),
        rgba(255,255,255, 0.6));
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.light-mode .naviwheel-panel {
    background: linear-gradient(165deg,
        rgba(255, 252, 245, 0.96),
        rgba(245, 240, 230, 0.93));
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}
.light-mode .naviwheel-close { color: rgba(0,0,0,0.3); }
.light-mode .naviwheel-close:hover { color: var(--accent-primary); }
.light-mode .naviwheel-section-title { color: rgba(0,0,0,0.35); }
.light-mode .nw-link { color: rgba(0,0,0,0.65); }
.light-mode .nw-link:hover { color: rgba(0,0,0,0.9); }
.light-mode .nw-control label { color: rgba(0,0,0,0.5); }
.light-mode .nw-value { color: var(--accent-primary); }
.light-mode .nw-slider {
    background: linear-gradient(90deg,
        rgba(0,0,0,0.06),
        rgba(0,0,0,0.12));
}

/* ══════════════════════════════════════════════════════════
   FX-LAYER – Vignette, Scanlines, Noise, Partikel-Canvas
   ══════════════════════════════════════════════════════════ */

.fx-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9990;
    background: radial-gradient(ellipse at center,
        transparent 40%,
        rgba(0,0,0,0.5) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fx-scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9991;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.06) 2px,
        rgba(0,0,0,0.06) 4px
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fx-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9992;
    opacity: 0;
    transition: opacity 0.4s ease;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    mix-blend-mode: overlay;
}

.fx-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* ── Glass-Depth als CSS Variable (Admin-steuerbar) ── */
.mockup-container {
    backdrop-filter: blur(calc(var(--nw-glass-depth, 12px)));
    -webkit-backdrop-filter: blur(calc(var(--nw-glass-depth, 12px)));
}

/* ── Shadow Intensity (Admin-steuerbar) ── */
.content-panel {
    box-shadow: 0 8px calc(40px * var(--nw-shadow, 0.5)) rgba(0,0,0, calc(0.3 * var(--nw-shadow, 0.5)));
}

/* ── Contrast/Filter (zentral gesteuert über updateBodyFilters() in app.js) ── */

/* ── NaviWheel Responsive ── */
@media (max-width: 768px) {
    .naviwheel-panel {
        width: 260px;
        max-height: 70vh;
    }
    .naviwheel-toggle {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .nw-control {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
    .nw-control label {
        font-size: 0.68rem;
    }
}

@media (max-width: 480px) {
    .naviwheel-panel {
        width: 85vw;
        max-width: 280px;
    }
    .naviwheel {
        top: auto;
        bottom: 80px;
        transform: none;
    }
}
