@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

body {
    background-color: #f8fafc;
    font-family: 'Nunito', sans-serif;
    color: #334155;
    transition: background-color 0.3s;
}

.shadow-soft { box-shadow: 0 12px 35px -10px rgba(99, 102, 241, 0.15); }
.perspective-1000 { perspective: 1000px; }

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.card-inner.flipped { transform: rotateY(180deg); }

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 2.5rem;
    border: 2px solid #e2e8f0;
    border-bottom-width: 8px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-back {
    background-color: #fcfaff;
    border-color: #e0e7ff;
    transform: rotateY(180deg);
}

.view-transition { animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-haptic { transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1), filter 0.2s; }
.btn-haptic:active { transform: scale(0.96); }
#assessment-buttons.opacity-100 { pointer-events: auto; }

/* SVG Icons sind standardmäßig versteckt, Emojis sichtbar */
.enterprise-icon { display: none; }
.emoji { display: inline-block; }


/* ==========================================================
   ENTERPRISE EDITION OVERRIDES (B2B Corporate Navy Design)
   ========================================================== */

body.theme-enterprise {
    background-color: #f1f5f9 !important;
    font-family: system-ui, -apple-system, Arial, sans-serif !important;
    color: #0f172a !important;
}

.theme-enterprise .emoji { display: none !important; }
.theme-enterprise .enterprise-icon { display: inline-flex !important; align-items: center; justify-content: center; }

/* Scharfe Kanten für den echten SaaS-Look */
.theme-enterprise * { border-radius: 4px !important; }

/* Weiche Schatten entfernen, dezente Rahmen-Schatten nutzen */
.theme-enterprise .shadow-soft,
.theme-enterprise .shadow-xl { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important; }
.theme-enterprise .bg-gradient-to-br { background: #ffffff !important; }

/* Feine, funktionale Rahmen (1px solid) */
.theme-enterprise .border-2,
.theme-enterprise .border-4 { border-width: 1px !important; border-color: #cbd5e1 !important; }
.theme-enterprise .border-b-8,
.theme-enterprise .border-b-4 { border-bottom-width: 1px !important; }

/* Karten fixieren (Flach, weiss, feiner blauer Akzent-Rahmen) */
.theme-enterprise .card-front,
.theme-enterprise .card-back { border: 1px solid #94a3b8 !important; background-color: #ffffff !important; }

/* CORPORATE NAVY BLAU (#1e3a8a) */
.theme-enterprise .bg-indigo-500,
.theme-enterprise .bg-indigo-600,
.theme-enterprise .bg-violet-600 {
    background-color: #1e3a8a !important;
    border-color: #1e3a8a !important;
    color: #ffffff !important;
}

.theme-enterprise .text-indigo-500,
.theme-enterprise .text-indigo-600,
.theme-enterprise .text-indigo-800,
.theme-enterprise .text-indigo-900,
.theme-enterprise .text-indigo-950 { color: #1e3a8a !important; }

/* Pastellige Boxen in sachliches Hellblau/Grau verwandeln */
.theme-enterprise .bg-indigo-50,
.theme-enterprise .bg-teal-50,
.theme-enterprise .bg-amber-50,
.theme-enterprise .bg-purple-50 {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

/* Action Buttons im Quiz */
.theme-enterprise .bg-teal-400,
.theme-enterprise .bg-teal-500 {
    background-color: #f0fdf4 !important;
    color: #166534 !important;
    border: 1px solid #166534 !important;
}
.theme-enterprise .bg-rose-400,
.theme-enterprise .bg-rose-500 {
    background-color: #fff1f2 !important;
    color: #9f1239 !important;
    border: 1px solid #9f1239 !important;
}

.theme-enterprise .font-black { font-weight: 700 !important; }