/* ===== Liquid Glass Design-System (DESIGN-SYSTEM.md) ===== */
:root {
    /* Primärfarben */
    --yellow:       #ffea00;
    --black:        #000;
    --white:        #fff;
    --error:        #c0392b;
    --success:      #1a8a3f;
    
    /* Glass-Materialien */
    --glass-white:  rgba(255, 255, 255, 0.62);
    --glass-border: rgba(255, 255, 255, 0.80);
    --glass-yellow: rgba(255, 234, 0, 0.72);
    --glass-shadow: 0 24px 64px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
    
    /* Blur */
    --blur-strong:  blur(32px) saturate(200%);
    --blur-mid:     blur(20px) saturate(180%);
    --blur-soft:    blur(12px) saturate(160%);
    
    /* Radien & Touch */
    --radius-card:  28px;
    --radius-el:    18px;
    --radius-input: 14px;
    --radius-pill:  999px;
    --touch:        48px;
    
    /* Abstände */
    --space-block-lg:  1.75rem;
    --space-block-md:  1.25rem;
    --space-block:    1rem;
    --space-actions:  1.5rem;
    --space-step-h2:  1.1rem;
    --space-label:    0.45rem;
    --gap-options:    0.5rem;
    --gap-buttons:    0.6rem;
    --gap-actions:    0.75rem;
    
    /* Legacy / Kompatibilität */
    --glass-bg:     var(--glass-white);
    --radius-sm:    12px;
    --radius-md:    var(--radius-el);
    --radius-lg:    var(--radius-card);
    --radius-xl:    24px;
    --shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md:    0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg:    0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl:    0 12px 48px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-normal: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-slow: 500ms ease-in-out;
    /* Legacy Gradient (für Kompatibilität) */
    --gradient-header-from: #9333ea;
    --gradient-header-to: #2563eb;
    --gradient-tutor-from: #10b981;
    --gradient-tutor-to: #06b6d4;
    --gradient-ki-from: #ec4899;
    --gradient-ki-to: #f97316;
    --gradient-bingo-from: #fbbf24;
    --gradient-bingo-to: #d946ef;
    --bg-light: #f9fafb;
    --bg-gradient-light: #eff6ff;
}

/* ===== Global Styles ===== */
body {
    font-family: system-ui, -apple-system, 'SF Pro Display', 'Segoe UI', sans-serif;
    line-height: 1.5;
    color: var(--black);
    background: #fffbe6;
    background-image:
        radial-gradient(ellipse 80% 60% at 0% 0%, rgba(255,234,0,0.55) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 100% 100%, rgba(255,200,0,0.45) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(255,245,130,0.35) 0%, transparent 45%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255,255,200,0.3) 0%, transparent 60%);
    min-height: 100vh;
    padding: 1.25rem;
    -webkit-tap-highlight-color: transparent;
}

/* ===== Design-System: Logo, Container, Glass ===== */
.logo-area {
    background: var(--black);
    padding: 1rem 1.75rem;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.logo-area .site-logo {
    max-height: 48px;
    width: auto;
}

.container {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.admin-wrap.container {
    max-width: 1200px;
}

.admin-header {
    background: var(--glass-yellow);
    backdrop-filter: var(--blur-mid);
    -webkit-backdrop-filter: var(--blur-mid);
    padding: 1.5rem 1.75rem;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.admin-header h1 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--black);
    margin: 0;
}

.form-body {
    padding: 1.5rem 1.75rem 1.75rem;
}

.step-actions {
    margin-top: var(--space-actions);
    display: flex;
    gap: var(--gap-actions);
}

/* ===== Glassmorphism Components ===== */
.glass-card {
    background: var(--glass-white);
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-card);
}

/* ===== Dashboard Cards - Buttons am unteren Rand fixieren ===== */
#dashboardView .glass-card {
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

#dashboardView .glass-card > *:last-child {
    margin-top: auto;
}

/* Stationen-Aktivierung Karten */
#dashboardView .glass-card.p-4 {
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

#dashboardView .glass-card.p-4 > button {
    margin-top: auto;
}

.glass-panel {
    background: var(--glass-white);
    backdrop-filter: var(--blur-strong);
    -webkit-backdrop-filter: var(--blur-strong);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-card);
}

.glass-button {
    background: var(--glass-white);
    backdrop-filter: var(--blur-soft);
    -webkit-backdrop-filter: var(--blur-soft);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-el);
    transition: all var(--transition-fast);
}

.glass-button:hover {
    background: var(--glass-yellow);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ===== Gradient Backgrounds (Legacy) ===== */
.gradient-header {
    background: linear-gradient(135deg, var(--gradient-header-from), var(--gradient-header-to));
}

.gradient-tutor {
    background: linear-gradient(135deg, var(--gradient-tutor-from), var(--gradient-tutor-to));
}

.gradient-ki {
    background: linear-gradient(135deg, var(--gradient-ki-from), var(--gradient-ki-to));
}

.gradient-bingo {
    background: linear-gradient(135deg, var(--gradient-bingo-from), var(--gradient-bingo-to));
}

/* ===== Dashboard Layout ===== */
.dashboard-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--glass-yellow);
    backdrop-filter: var(--blur-mid);
    -webkit-backdrop-filter: var(--blur-mid);
    color: var(--black);
    padding: 16px 24px;
    z-index: 50;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 340px 1fr 340px;
    grid-template-rows: auto;
    gap: 0;
    padding: 0;
    margin-top: 68px;
    height: calc(100vh - 68px);
    overflow: hidden;
}

.dashboard-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

/* Linke Spalte: Bingo + Info */
.left-column {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    position: sticky;
    top: 68px;
    overflow: hidden;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

/* Hauptbereich: Assistent/Chat - scrollbar */
.main-panel {
    grid-column: 2;
    overflow-y: auto;
    overflow-x: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
}

/* Rechte Spalte: KI-Chat - fixiert */
.ki-chat-panel {
    grid-column: 3;
    position: sticky;
    top: 68px;
    height: calc(100vh - 68px);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

/* Bingo Panel */
.bingo-panel {
    flex: 0 0 auto;
    max-height: 50%;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.bingo-panel .panel-content {
    overflow-y: hidden;
    overflow-x: hidden;
}

/* Info Card unter Bingo */
.info-card {
    flex: 1;
    overflow-y: auto;
    border-radius: 0;
    border: none;
    position: relative;
    z-index: 1003 !important;
}

/* Panel Header */
.panel-header {
    padding: 16px;
    color: white;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Panel Content */
.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.panel-content::-webkit-scrollbar {
    width: 6px;
}

.panel-content::-webkit-scrollbar-track {
    background: transparent;
}

.panel-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.panel-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* ===== Answer Options Area ===== */
.answer-options-area {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 2px solid rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin: 20px -16px -16px -16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.panel-close-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: rgba(0, 0, 0, 0.1);
    color: inherit;
}

.panel-close-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

/* ===== Chat Messages ===== */
.chat-message {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    animation: slideInUp 0.3s ease-out;
}

.chat-message.user {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(37, 99, 235, 0.15));
    border-color: rgba(147, 51, 234, 0.3);
}

.chat-message.ai {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Assistent-Nachricht (KIDA) */
.assistant-message {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.08));
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    animation: slideInLeft 0.3s ease-out;
}

.ki-chat-message {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(249, 115, 22, 0.1));
    border-left: 4px solid var(--gradient-ki-from);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
}

/* ===== Buttons ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--gradient-header-from), var(--gradient-header-to));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 28px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #6b7280;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    padding: 14px 28px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ===== Answer Options ===== */
#chatAnswerOptions {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    pointer-events: auto !important;
    position: relative;
    z-index: 1000 !important;
}

#chatButtons {
    pointer-events: auto !important;
    position: relative;
    z-index: 1001 !important;
}

#chatButtons button {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(37, 99, 235, 0.1));
    border: 2px solid rgba(147, 51, 234, 0.2);
    border-radius: var(--radius-md);
    color: #4b5563;
    transition: all var(--transition-fast);
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 1002 !important;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

#chatButtons button:hover {
    background: linear-gradient(135deg, var(--gradient-header-from), var(--gradient-header-to));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#chatButtons button:active {
    transform: translateY(0);
    background: linear-gradient(135deg, var(--gradient-header-from), var(--gradient-header-to));
}

#chatButtons button:focus {
    outline: 2px solid rgba(147, 51, 234, 0.5);
    outline-offset: 2px;
}

/* Multi-Select Checkboxen klickbar machen */
#chatButtons input[type="checkbox"] {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 1003 !important;
    touch-action: manipulation;
    -webkit-appearance: checkbox;
    appearance: checkbox;
}

#chatButtons label {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 1002 !important;
    touch-action: manipulation;
}

#chatButtons > div {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 1002 !important;
    touch-action: manipulation;
}

/* ===== Video Container ===== */
.video-container {
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.video-container .aspect-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000;
    box-shadow: var(--shadow-lg);
}

.video-container .aspect-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Bingo Grid ===== */
.bingo-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-md);
}

.bingo-header {
    display: grid;
    grid-template-columns: 140px repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.bingo-header-cell {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(37, 99, 235, 0.15));
    border: 2px solid rgba(147, 51, 234, 0.3);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: white;
}

.bingo-row {
    display: grid;
    grid-template-columns: 140px repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.bingo-label-cell {
    background: rgba(107, 114, 128, 0.15);
    border: 2px solid rgba(107, 114, 128, 0.3);
    border-radius: var(--radius-md);
    padding: 18px 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bingo-cell {
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    font-size: 28px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    cursor: default;
}

.bingo-cell-clickable {
    cursor: pointer;
}

.bingo-cell-clickable:hover {
    border-color: rgba(147, 51, 234, 0.5);
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(37, 99, 235, 0.1));
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.bingo-cell-marked {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
    border-color: rgba(16, 185, 129, 0.5);
    animation: bingoMark 0.5s ease;
}

/* ===== Neues vereinfachtes 4x4 Bingo-Grid ===== */
.bingo-grid-simple {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.bingo-row-simple {
    display: contents;
}

.bingo-cell-simple {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    cursor: default;
    position: relative;
    min-height: 70px;
    box-sizing: border-box;
}

.bingo-cell-emoji {
    font-size: 28px;
    line-height: 1;
}

.bingo-cell-simple.bingo-cell-clickable {
    cursor: pointer;
}

.bingo-cell-simple.bingo-cell-clickable:hover {
    border-color: rgba(147, 51, 234, 0.6);
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(37, 99, 235, 0.15));
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.bingo-cell-simple.bingo-cell-completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25));
    border-color: rgba(16, 185, 129, 0.6);
    animation: bingoMark 0.5s ease;
}

.bingo-cell-simple.bingo-cell-failed {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.25));
    border-color: rgba(239, 68, 68, 0.6);
    animation: bingoMark 0.5s ease;
}

.bingo-cell-check {
    font-size: 32px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: checkPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bingo-cell-cross {
    font-size: 32px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: checkPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* ===== Chat-Sprechblasen ===== */
.chat-message-bubble {
    animation: slideInUp 0.4s ease-out;
}

.chat-bubble-user {
    animation: slideInRight 0.4s ease-out;
}

.chat-bubble-ai {
    animation: slideInLeft 0.4s ease-out;
}

.link-label {
    display: inline-block;
    transition: all 0.2s ease;
    text-decoration: none;
}

.link-label:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Animations ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Typing Indicator */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-header-from), var(--gradient-header-to));
    animation: typingDot 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ===== Scrollbar Styling ===== */
.slide-panel-content::-webkit-scrollbar,
#mainChatArea::-webkit-scrollbar {
    width: 8px;
}

.slide-panel-content::-webkit-scrollbar-track,
#mainChatArea::-webkit-scrollbar-track {
    background: transparent;
}

.slide-panel-content::-webkit-scrollbar-thumb,
#mainChatArea::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.slide-panel-content::-webkit-scrollbar-thumb:hover,
#mainChatArea::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Firefox Scrollbar */
.slide-panel-content,
#mainChatArea {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

/* ===== Input Fields ===== */
input[type="text"],
input[type="email"],
textarea {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    transition: all var(--transition-fast);
    color: var(--ci-black);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--gradient-header-from);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

/* ===== Cards & Panels ===== */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    transition: all var(--transition-normal);
}

/* ===== Badges ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
}

.badge-primary {
    background: linear-gradient(135deg, var(--gradient-header-from), var(--gradient-header-to));
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, var(--gradient-tutor-from), var(--gradient-tutor-to));
    color: white;
}

/* ===== Header with Gradient ===== */
.app-header {
    background: linear-gradient(135deg, var(--gradient-header-from), var(--gradient-header-to));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
}

/* ===== Modal Overlay ===== */
.modal-overlay {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn var(--transition-normal);
}

/* Leaderboard Modal - muss über Antwort-Optionen liegen */
#leaderboardModal {
    z-index: 10000 !important;
}

#leaderboardModal .glass-card {
    z-index: 10001 !important;
    position: relative;
}

/* ===== Compact Bingo for Panel ===== */
.bingo-container-compact {
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.bingo-container-compact .bingo-header {
    grid-template-columns: 80px repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.bingo-container-compact .bingo-row {
    grid-template-columns: 80px repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.bingo-container-compact .bingo-header-cell {
    padding: 8px 6px;
    font-size: 10px;
    border-radius: 8px;
}

.bingo-container-compact .bingo-label-cell {
    padding: 10px 6px;
    font-size: 10px;
    border-radius: 8px;
}

.bingo-container-compact .bingo-cell {
    padding: 14px 10px;
    font-size: 18px;
    min-height: 50px;
    border-radius: 8px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1280px) {
    .dashboard-grid {
        grid-template-columns: 300px 1fr 300px;
    }
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        overflow: visible;
    }
    
    .left-column,
    .main-panel,
    .ki-chat-panel {
        grid-column: 1;
        position: relative;
        top: auto;
        height: auto;
        min-height: 400px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: var(--radius-lg);
        margin-bottom: 12px;
    }
    
    .left-column {
        min-height: 600px;
    }
    
    .main-panel {
        min-height: 500px;
        overflow-y: visible;
    }
    
    .ki-chat-panel {
        height: 500px;
    }
    
    .dashboard-header {
        padding: 12px 16px;
    }
    
    .dashboard-grid {
        padding: 12px;
        margin-top: 68px;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        margin-top: 60px;
        padding: 8px;
        gap: 8px;
        min-height: calc(100vh - 76px);
    }
    
    .dashboard-header {
        padding: 10px 12px;
    }
    
    .panel-header {
        padding: 12px;
    }
    
    .panel-content {
        padding: 12px;
    }
    
    .dashboard-panel {
        min-height: 250px;
    }
    
    .main-panel {
        min-height: 400px;
    }
    
    /* Kleinere Cards auf Mobile */
    .glass-card,
    .card {
        padding: 16px;
        border-radius: var(--radius-md);
    }
    
    .chat-message {
        padding: 16px;
        margin-bottom: 12px;
    }
    
    /* Buttons volle Breite auf Mobile */
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    /* Video Container anpassen */
    .video-container {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .answer-options-area {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .dashboard-grid {
        padding: 6px;
        gap: 6px;
    }
    
    .dashboard-panel {
        min-height: 200px;
    }
    
    .main-panel {
        min-height: 300px;
    }
    
    .panel-header {
        padding: 10px;
    }
    
    .panel-header h3 {
        font-size: 12px;
    }
    
    .panel-header p {
        font-size: 10px;
    }
    
    .panel-content {
        padding: 10px;
    }
    
    .chat-message {
        padding: 12px;
        font-size: 14px;
    }
    
    .answer-options-area {
        padding: 10px;
    }
}

/* ===== Main Chat Area ===== */
#mainChatArea {
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
}

.main-panel {
    position: relative;
}

/* ===== Utility Classes ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--gradient-header-from), var(--gradient-header-to));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow {
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
}

.shimmer {
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ===== Enhanced Transitions & Hover Effects ===== */

/* Smooth entrance animations for registration/intro */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeInScale 0.5s ease-out;
}

/* Badge animations */
.badge {
    transition: all var(--transition-fast);
}

.badge:hover {
    transform: scale(1.05);
}

/* Dashboard panel entrance animations */
.dashboard-panel {
    animation: fadeInScale 0.4s ease-out;
}

.dashboard-panel:nth-child(1) { animation-delay: 0.05s; }
.dashboard-panel:nth-child(2) { animation-delay: 0.1s; }
.dashboard-panel:nth-child(3) { animation-delay: 0.15s; }
.dashboard-panel:nth-child(4) { animation-delay: 0.2s; }

/* Chat message entrance */
.chat-message,
.tutor-message,
.ki-chat-message {
    animation: slideInUp 0.4s ease-out;
}

/* Button ripple effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-primary:active::after,
.btn-secondary:active::after,
.glass-button:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 0.6s ease-out;
}

.btn-primary,
.btn-secondary,
.glass-button {
    position: relative;
    overflow: hidden;
}

/* Input focus animations */
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    animation: inputGlow 0.3s ease-out;
}

@keyframes inputGlow {
    from {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.3);
    }
    to {
        box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
    }
}

/* Video container hover effect */
.video-container:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

/* Panel header gradient animation on hover */
.panel-header {
    position: relative;
    overflow: hidden;
}

.panel-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.panel-header:hover::before {
    left: 100%;
}

/* Bingo cell hover glow */
.bingo-cell-clickable:hover {
    animation: bingoGlow 1.5s ease-in-out infinite;
}

@keyframes bingoGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(147, 51, 234, 0.3);
    }
    50% {
        box-shadow: 0 0 16px rgba(147, 51, 234, 0.6);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading state animations */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Floating animation for emojis */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Gradient text animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.text-gradient-animated {
    background: linear-gradient(270deg, var(--gradient-header-from), var(--gradient-header-to), var(--gradient-tutor-from));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}


/* Success/Error feedback animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake-animation {
    animation: shake 0.5s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.bounce-animation {
    animation: bounce 1s ease-in-out;
}

/* Stagger animation for lists */
@keyframes staggerFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-item {
    animation: staggerFadeIn 0.4s ease-out;
}

.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.2s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ===== Workshop Dashboard - Station Cards ===== */
.station-card {
    position: relative;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    min-height: 350px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 
                0 2px 8px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    animation: fadeInScale 0.5s ease-out;
    overflow: hidden;
}

/* Startseite: Stationsboxen mit #ffea00 Branding */
#introScreen .station-card {
    border: 2px solid #ffea00;
}

#introScreen .station-card.station-active {
    border: 2px solid #ffea00;
    cursor: pointer;
}

#introScreen .station-card.station-active:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 234, 0, 0.4), 0 0 20px rgba(255, 234, 0, 0.2);
}

.station-card.station-active {
    border: 2px solid rgba(147, 51, 234, 0.3);
    cursor: pointer;
}

.station-card.station-active:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(147, 51, 234, 0.3);
}

.station-card.station-locked {
    opacity: 0.65;
    border: 2px solid rgba(107, 114, 128, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 
                0 1px 4px rgba(0, 0, 0, 0.06);
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.85);
}

.station-card.station-locked:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 
                0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Staggered animation für Stationsboxen */
.station-card:nth-child(1) {
    animation-delay: 0.1s;
}

.station-card:nth-child(2) {
    animation-delay: 0.2s;
}

.station-card:nth-child(3) {
    animation-delay: 0.3s;
}

.station-number {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--gradient-header-from), var(--gradient-header-to));
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    z-index: 10;
    transition: all var(--transition-fast);
}

/* Startseite: Station Number mit #ffea00 */
#introScreen .station-number {
    background: linear-gradient(135deg, #ffea00, #ffd700);
    color: #000000;
}

.station-card.station-active:hover .station-number {
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.station-icon {
    font-size: 64px;
    text-align: center;
    margin: 20px 0;
    transition: all var(--transition-normal);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.station-card.station-active:hover .station-icon {
    transform: scale(1.1) translateY(-2px);
    filter: drop-shadow(0 4px 8px rgba(255, 234, 0, 0.3));
}

/* Startseite: Icon Shadow mit #ffea00 */
#introScreen .station-card.station-active:hover .station-icon {
    filter: drop-shadow(0 4px 8px rgba(255, 234, 0, 0.5));
}

.station-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--ci-black);
    text-align: center;
    margin-bottom: 12px;
    transition: color var(--transition-fast);
}

.station-card.station-active:hover .station-title {
    color: var(--ci-black);
    text-shadow: 0 1px 2px rgba(255, 234, 0, 0.2);
}

.station-description {
    font-size: 14px;
    color: #333333;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
}

.station-progress {
    margin-bottom: 8px;
}

/* Button-Container für gleichmäßige Höhe */
.station-buttons {
    margin-top: auto;
    padding-top: 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gradient-header-from), var(--gradient-header-to));
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Startseite: Progress Bar mit #ffea00 */
#introScreen .progress-fill {
    background: linear-gradient(90deg, #ffea00, #ffd700);
}

.progress-text {
    font-size: 12px;
    color: #333333;
    display: block;
    text-align: center;
}

.station-button {
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

/* Startseite: Station Buttons mit #ffea00 */
#introScreen .station-button.btn-primary {
    background: linear-gradient(135deg, #ffea00, #ffd700);
    color: #000000;
    border: none;
}

#introScreen .station-button.btn-primary:hover {
    background: linear-gradient(135deg, #ffd700, #ffea00);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 234, 0, 0.4);
}

#introScreen .station-button.btn-secondary {
    background: rgba(255, 234, 0, 0.1);
    color: #000000;
    border: 2px solid #ffea00;
}

#introScreen .station-button.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 234, 0, 0.2);
    border-color: #ffd700;
}

/* Startseite: Testlabor und Workshop Feedback Buttons mit #ffea00 */
#introScreen #testlabCard .btn-primary,
#introScreen #feedbackCard .btn-primary {
    background: linear-gradient(135deg, #ffea00, #ffd700);
    color: #000000;
    border: none;
}

#introScreen #testlabCard .btn-primary:hover,
#introScreen #feedbackCard .btn-primary:hover {
    background: linear-gradient(135deg, #ffd700, #ffea00);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 234, 0, 0.4);
}

.station-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.station-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ===== Stats Cards ===== */
.stat-card {
    text-align: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #333333;
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 20px;
    color: var(--ci-black);
    font-weight: bold;
}

/* Emoji Auswahl Styles */
#emojiSelection button {
    cursor: pointer;
    transition: all 0.2s ease;
}

#emojiSelection button:hover {
    transform: scale(1.15);
}

#emojiSelection button:active {
    transform: scale(0.95);
}

/* Würfel-Button Animation */
#rollNameButton:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 234, 0, 0.3);
}

#rollNameButton:active {
    transform: translateY(0);
}

/* Select Dropdown Styling */
select {
    cursor: pointer;
}

select option {
    padding: 10px;
}

/* ===== System Prompt Test Page Styles ===== */
.perplexity-link-card {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-normal);
    background: rgba(255, 255, 255, 0.9);
}

.perplexity-link-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.95);
}

.perplexity-link-card:active {
    transform: translateY(-2px);
}

.perplexity-link-card h3 {
    transition: color var(--transition-fast);
}

.perplexity-link-card:hover h3 {
    color: var(--gradient-header-from);
}

.perplexity-link-card .text-blue-600 {
    transition: all var(--transition-fast);
}

.perplexity-link-card:hover .text-blue-600 {
    transform: translateX(4px);
}

/* Info Boxes */
.glass-card.bg-gradient-to-r {
    transition: all var(--transition-normal);
}

.glass-card.bg-gradient-to-r:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Links in Info Boxes */
.glass-card a {
    transition: all var(--transition-fast);
    text-decoration: none;
}

.glass-card a:hover {
    text-decoration: none;
    transform: scale(1.02);
}

/* ===== Testlabor Styles ===== */
#testlabCard {
    transition: all var(--transition-normal);
}

#testlabCard.opacity-60 {
    opacity: 0.6;
    cursor: not-allowed;
}

#testlabCard:not(.opacity-60):hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

#startTestlabBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== Workshop Feedback Modal Styles ===== */
.star-rating {
    font-size: 2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
    display: inline-block;
}

.star-rating:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

.star-rating:active {
    transform: scale(0.95);
}

#feedbackModal .glass-card {
    position: relative;
    z-index: 10001;
}

#feedbackForm .glass-card {
    border: 2px solid rgba(255, 255, 255, 0.5);
}

#feedbackError {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
}

/* Responsive adjustments for feedback modal */
@media (max-width: 640px) {
    .star-rating {
        font-size: 1.5rem;
    }
    
    #feedbackModal .glass-card {
        padding: 1.5rem;
    }
}

/* ===== Admin Tutorial Styles ===== */

/* Tutorial Overlay */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* backdrop-filter removed to prevent blur on highlighted elements */
    z-index: 100000;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

/* Tutorial Highlight Box */
.tutorial-highlight {
    position: fixed;
    border: 3px solid #3b82f6;
    border-radius: 12px;
    /* Transparent background so content shows through */
    background: transparent;
    z-index: 100001;
    pointer-events: none;
    animation: highlightPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
    display: none;
    /* Create cutout effect - large box-shadow creates the dark overlay effect */
    /* The box-shadow creates a "hole" in the dark overlay, making the content visible */
    box-shadow: 
        0 0 0 0 rgba(59, 130, 246, 0),
        0 0 0 99999px rgba(0, 0, 0, 0.75),
        0 0 20px rgba(59, 130, 246, 0.4);
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 
            0 0 0 0 rgba(59, 130, 246, 0),
            0 0 0 99999px rgba(0, 0, 0, 0.75),
            0 0 20px rgba(59, 130, 246, 0.4);
        border-color: #3b82f6;
    }
    50% {
        box-shadow: 
            0 0 0 0 rgba(59, 130, 246, 0),
            0 0 0 99999px rgba(0, 0, 0, 0.75),
            0 0 30px rgba(59, 130, 246, 0.8),
            0 0 50px rgba(59, 130, 246, 0.3);
        border-color: #2563eb;
    }
}

/* Tutorial Tooltip */
.tutorial-tooltip {
    position: fixed;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 100002;
    max-width: 400px;
    min-width: 320px;
    display: none;
    animation: slideUp 0.3s ease-out;
    border: 2px solid #3b82f6;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tutorial-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.tutorial-tooltip-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    margin: 0;
}

.tutorial-tooltip-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.tutorial-tooltip-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tutorial-tooltip-description {
    padding: 1.5rem;
    color: #374151;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.tutorial-tooltip-progress {
    padding: 0.75rem 1.5rem;
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.tutorial-tooltip-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.tutorial-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tutorial-btn-primary {
    background: #3b82f6;
    color: white;
}

.tutorial-btn-primary:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.tutorial-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tutorial-btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.tutorial-btn-secondary:hover:not(:disabled) {
    background: #d1d5db;
}

.tutorial-btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tutorial-btn-skip {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.tutorial-btn-skip:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Responsive adjustments for tutorial */
@media (max-width: 640px) {
    .tutorial-tooltip {
        min-width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        left: 20px !important;
        right: 20px !important;
    }
    
    .tutorial-tooltip-actions {
        flex-direction: column;
    }
    
    .tutorial-btn {
        width: 100%;
    }
}

/* ── Aufgabenstellung: groß und immer auf der Seite sichtbar (alle Stationen) ── */
.ki-task {
    background: rgba(255, 229, 0, 0.16);
    border: 2px solid rgba(0, 0, 0, 0.85);
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
}
.ki-card.ki-task { background: rgba(255, 229, 0, 0.16); }
.ki-task-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.ki-task-text {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.6rem;
}
.ki-task-steps {
    margin: 0;
    padding-left: 1.3rem;
    list-style: decimal;
    font-size: 1rem;
    line-height: 1.5;
}
.ki-task-steps li + li { margin-top: 0.3rem; }
/* Sozialform: allein / zu zweit / im Team / mit der Klasse */
.ki-social {
    display: inline-block;
    background: #000;
    color: #fff;
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}
