/* ==========================================================================
   DIE CHAT-AMPEL & DER KLARTEXT-SCANNER (LEICHTE SPRACHE)
   Vollständige Inklusions- & Präventions-Zentrale (WCAG AAA)
   Co-Kreation: Schutzschild Verlag (Fiona Harms) x mach es deutlich (Yvonne Kramelhofer)
   ========================================================================== */

:root {
    --bg-main: #0c0f1d;
    --bg-card: #151a30;
    --bg-card-hover: #1e2544;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #a855f7;
    --primary-light: #d8b4fe;
    --accent: #ec4899;
    --accent-light: #fbcfe8;
    
    /* Ampel-Farben (Barrierefrei & kräftig) */
    --ampel-green: #22c55e;
    --ampel-green-bg: rgba(34, 197, 94, 0.15);
    --ampel-green-border: #4ade80;
    
    --ampel-yellow: #eab308;
    --ampel-yellow-bg: rgba(234, 179, 8, 0.15);
    --ampel-yellow-border: #facc15;
    
    --ampel-red: #ef4444;
    --ampel-red-bg: rgba(239, 68, 68, 0.15);
    --ampel-red-border: #f87171;

    --font-base: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-size-multiplier: 1;
}

/* Schriftgrößen-Varianten */
body.font-large {
    --font-size-multiplier: 1.15;
}
body.font-xlarge {
    --font-size-multiplier: 1.3;
}

/* Kontrast-Modi (Maximaler Kontrast) */
body.high-contrast {
    --bg-main: #000000;
    --bg-card: #000000;
    --text-main: #ffffff;
    --text-muted: #ffffff;
    --ampel-green-border: #00ff66;
    --ampel-yellow-border: #ffff00;
    --ampel-red-border: #ff3333;
}

/* ==========================================================================
   HELLER MODUS (VOLLSTÄNDIGER WCAG AAA KONTRAST - 100% LESBAR)
   ========================================================================== */
body.light-theme {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #334155;
    --primary: #7c3aed;
    --primary-light: #6d28d9;
    --accent: #db2777;
    --accent-light: #be185d;
    --ampel-green-bg: #dcfce7;
    --ampel-yellow-bg: #fef9c3;
    --ampel-red-bg: #fee2e2;
}

body.light-theme .a11y-bar {
    background: #ffffff;
    border-bottom: 2px solid #cbd5e1;
    color: #0f172a;
}

body.light-theme .a11y-btn {
    background: #f1f5f9;
    color: #0f172a;
    border: 1.5px solid #94a3b8;
}

body.light-theme .a11y-btn:hover {
    background: #e2e8f0;
}

body.light-theme .partner-badge-header {
    background: #f3e8ff;
    border-color: #c084fc;
    color: #581c87;
}

body.light-theme .tool-subtitle {
    background: #f1f5f9 !important;
    border-left-color: #7c3aed !important;
    color: #0f172a !important;
}

body.light-theme .tool-subtitle p {
    color: #0f172a !important;
}

body.light-theme .game-box,
body.light-theme .chat-bubble-container,
body.light-theme .scanner-card,
body.light-theme .scanner-text-box,
body.light-theme .radar-card,
body.light-theme .response-card,
body.light-theme .sos-step-card {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

body.light-theme .tool-title,
body.light-theme .chat-message-text,
body.light-theme #taeter-text,
body.light-theme #truth-text,
body.light-theme .radar-text,
body.light-theme .response-text,
body.light-theme .sos-step-card h3,
body.light-theme .sos-step-card p,
body.light-theme .question-prompt {
    color: #0f172a !important;
}

body.light-theme .sender-avatar-badge {
    background: #f1f5f9;
}

body.light-theme .sender-name-badge {
    color: #6d28d9 !important;
}

body.light-theme .chat-bubble-header {
    background: #f3e8ff !important;
    border-color: #d8b4fe !important;
}

body.light-theme .mode-btn {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body.light-theme .mode-btn.active {
    background: #f3e8ff !important;
    border-color: #7c3aed !important;
    color: #581c87 !important;
}

body.light-theme .mode-btn.btn-sos-tab {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #991b1b !important;
}

body.light-theme .mode-btn.btn-sos-tab.active {
    background: #ef4444 !important;
    color: #ffffff !important;
}

body.light-theme .btn-green {
    background: #dcfce7 !important;
    border-color: #22c55e !important;
    color: #14532d !important;
}
body.light-theme .btn-green * {
    color: #14532d !important;
}

body.light-theme .btn-yellow {
    background: #fef9c3 !important;
    border-color: #eab308 !important;
    color: #713f12 !important;
}
body.light-theme .btn-yellow * {
    color: #713f12 !important;
}

body.light-theme .btn-red {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
    color: #7f1d1d !important;
}
body.light-theme .btn-red * {
    color: #7f1d1d !important;
}

body.light-theme .feedback-correct {
    background: #dcfce7 !important;
    border-color: #22c55e !important;
    color: #14532d !important;
}
body.light-theme .feedback-correct * {
    color: #14532d !important;
}

body.light-theme .feedback-wrong {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
    color: #7f1d1d !important;
}
body.light-theme .feedback-wrong * {
    color: #7f1d1d !important;
}

body.light-theme .feedback-rule-box {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-left: 6px solid #7c3aed !important;
    color: #0f172a !important;
}
body.light-theme .feedback-rule-box * {
    color: #0f172a !important;
}

body.light-theme .scanner-text-box {
    background: #f3e8ff !important;
    border-color: #c084fc !important;
}

body.light-theme .scanner-truth-box {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
}

body.light-theme .btn-copy-response {
    background: #f3e8ff !important;
    color: #6d28d9 !important;
    border-color: #a855f7 !important;
}

body.light-theme .btn-copy-response:hover {
    background: #7c3aed !important;
    color: #ffffff !important;
}

body.light-theme .progress-track {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

body.light-theme footer {
    background: #ffffff !important;
    border-top-color: #cbd5e1 !important;
    color: #475569 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-base);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.8;
    font-size: calc(18px * var(--font-size-multiplier));
    letter-spacing: 0.3px;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Mediopunkt-Hervorhebung für Leichte Sprache */
.dot {
    color: var(--accent);
    font-weight: 900;
    padding: 0 1px;
}

/* Barrierefreiheits-Leiste */
.a11y-bar {
    background: #000000;
    border-bottom: 2px solid rgba(168, 85, 247, 0.4);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 1000;
}

.a11y-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.a11y-btn {
    background: #1e2544;
    color: #ffffff;
    border: 1.5px solid #a855f7;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.a11y-btn:hover, .a11y-btn:focus {
    background: #a855f7;
    outline: 3px solid #ffffff;
}

/* Container */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 20px 80px;
}

/* Header & Partner-Branding */
.tool-header {
    text-align: center;
    margin-bottom: 35px;
}

.partner-badge-header {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(168, 85, 247, 0.15);
    border: 1.5px solid rgba(192, 132, 252, 0.4);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 800;
    color: #e9d5ff;
}

.tool-title {
    font-size: calc(2.4rem * var(--font-size-multiplier));
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* ==========================================================================
   UK-PIKTOGRAMM-SYSTEM (UNTERSTÜTZTE KOMMUNIKATION / AAC)
   ========================================================================== */
.uk-symbols-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

body.uk-hidden .uk-symbols-strip,
body.uk-hidden .uk-picto-card,
body.uk-hidden .uk-btn-picto {
    display: none !important;
}

.uk-picto-card {
    background: #ffffff;
    border: 2.5px solid #8b5cf6;
    border-radius: 14px;
    padding: 6px 12px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 75px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    text-align: center;
    transition: transform 0.2s ease;
}

.uk-picto-card:hover {
    transform: scale(1.05);
}

.uk-picto-icon {
    font-size: 1.8rem;
    line-height: 1.1;
    margin-bottom: 3px;
}

.uk-picto-label {
    font-size: 0.72rem;
    font-weight: 900;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.uk-picto-card.uk-green { border-color: #22c55e; }
.uk-picto-card.uk-yellow { border-color: #eab308; }
.uk-picto-card.uk-red { border-color: #ef4444; }

/* UK-Symbole in Buttons */
.uk-btn-picto {
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    padding: 4px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    min-width: 55px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.uk-btn-picto-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.uk-btn-picto-label {
    font-size: 0.65rem;
    font-weight: 900;
    color: #0f172a;
    text-transform: uppercase;
}

/* ==========================================================================
   DGS / GuK GEBÄRDEN-SYSTEM (DEUTSCHE GEBÄRDENSPRACHE / UNTERSTÜTZTE GEBÄRDEN)
   ========================================================================== */
.dgs-card {
    background: rgba(168, 85, 247, 0.12);
    border: 2px dashed #c084fc;
    border-radius: 16px;
    padding: 12px 18px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

body.light-theme .dgs-card {
    background: #fdf4ff !important;
    border-color: #d946ef !important;
    color: #0f172a !important;
}

body.dgs-hidden .dgs-card,
body.dgs-hidden .dgs-badge {
    display: none !important;
}

.dgs-icon-wrap {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: #ffffff;
    border: 2.5px solid #a855f7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    padding: 4px;
}

body.light-theme .dgs-icon-wrap {
    background: #ffffff;
    border-color: #9333ea;
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.2);
}

.dgs-svg-anim {
    width: 100%;
    height: 100%;
    display: block;
}

/* DGS Keyframe Animationen für Handbewegungen */
@keyframes dgsPush {
    0% { transform: translateX(-4px) scale(0.92); opacity: 0.85; }
    50% { transform: translateX(4px) scale(1.05); opacity: 1; }
    100% { transform: translateX(-4px) scale(0.92); opacity: 0.85; }
}

@keyframes dgsWave {
    0% { transform: rotate(-12deg); }
    50% { transform: rotate(12deg); }
    100% { transform: rotate(-12deg); }
}

@keyframes dgsHeartPulse {
    0% { transform: scale(0.94); }
    50% { transform: scale(1.08); }
    100% { transform: scale(0.94); }
}

@keyframes dgsShhMove {
    0% { transform: translateY(3px); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(3px); }
}

@keyframes dgsClaspMove {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    100% { transform: scale(0.95); }
}

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

.anim-push { animation: dgsPush 1.8s ease-in-out infinite; transform-origin: center; }
.anim-wave { animation: dgsWave 1.4s ease-in-out infinite; transform-origin: bottom center; }
.anim-heart { animation: dgsHeartPulse 1.5s ease-in-out infinite; transform-origin: center; }
.anim-shh { animation: dgsShhMove 1.6s ease-in-out infinite; transform-origin: center; }
.anim-clasp { animation: dgsClaspMove 2s ease-in-out infinite; transform-origin: center; }
.anim-flash { animation: dgsFlashPulse 1.6s ease-in-out infinite; transform-origin: center; }

.dgs-content {
    flex: 1;
}

.dgs-title {
    font-size: 0.85rem;
    font-weight: 900;
    color: #f472b6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

body.light-theme .dgs-title {
    color: #c026d3 !important;
}

.dgs-guide {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
}

body.light-theme .dgs-guide {
    color: #0f172a !important;
}

/* 5-Modi Navigation Grid */
.mode-switch-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 35px;
}

.mode-btn {
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 16px 14px;
    border-radius: 18px;
    cursor: pointer;
    font-size: calc(1rem * var(--font-size-multiplier));
    font-weight: 800;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.mode-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.mode-btn.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3));
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.25);
}

.mode-btn.btn-sos-tab {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #fca5a5;
}

.mode-btn.btn-sos-tab.active {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.mode-icon {
    font-size: 1.8rem;
    line-height: 1;
}

/* Spiel-Karte (Groß, lesefreundlich, reizarm) */
.game-box {
    background: var(--bg-card);
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 28px;
    padding: 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    margin-bottom: 40px;
    position: relative;
}

/* Fortschritts-Anzeige */
.progress-bar-wrapper {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    color: var(--primary-light);
    font-size: 0.95rem;
    flex-wrap: wrap;
    gap: 10px;
}

.progress-track {
    flex: 1;
    min-width: 120px;
    height: 10px;
    background: #0f172a;
    border-radius: 10px;
    margin: 0 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ec4899, #a855f7);
    width: 10%;
    transition: width 0.4s ease;
}

/* Vorlese-Button */
.tts-btn {
    background: rgba(168, 85, 247, 0.2);
    border: 1.5px solid #c084fc;
    color: #f3e8ff;
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.tts-btn:hover, .tts-btn:focus {
    background: #a855f7;
    color: #ffffff;
}

/* Chat-Sprechblase im Ampel-Modus */
.chat-bubble-container {
    background: #0a0e1c;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.chat-bubble-header {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(192, 132, 252, 0.35);
    padding: 6px 14px;
    border-radius: 100px;
}

.sender-avatar-badge {
    font-size: 1.3rem;
    line-height: 1;
}

.sender-name-badge {
    font-size: 0.95rem;
    color: #d8b4fe;
    font-weight: 800;
}

.chat-message-text {
    font-size: calc(1.3rem * var(--font-size-multiplier));
    font-weight: 700;
    line-height: 1.6;
    color: #ffffff;
    width: 100%;
    word-break: break-word;
}

/* Die 3 Ampel-Buttons */
.ampel-buttons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.ampel-choice-btn {
    padding: 18px 24px;
    border-radius: 18px;
    cursor: pointer;
    font-size: calc(1.15rem * var(--font-size-multiplier));
    font-weight: 800;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.25s ease;
    border: 3px solid transparent;
}

.ampel-choice-btn:focus {
    outline: 4px solid #ffffff;
}

.btn-green {
    background: var(--ampel-green-bg);
    border-color: var(--ampel-green);
    color: #ffffff;
}
.btn-green:hover {
    background: rgba(34, 197, 94, 0.3);
    transform: scale(1.02);
}

.btn-yellow {
    background: var(--ampel-yellow-bg);
    border-color: var(--ampel-yellow);
    color: #ffffff;
}
.btn-yellow:hover {
    background: rgba(234, 179, 8, 0.3);
    transform: scale(1.02);
}

.btn-red {
    background: var(--ampel-red-bg);
    border-color: var(--ampel-red);
    color: #ffffff;
}
.btn-red:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.02);
}

.ampel-circle-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #000000;
    flex-shrink: 0;
}

.icon-green { background: var(--ampel-green); }
.icon-yellow { background: var(--ampel-yellow); }
.icon-red { background: var(--ampel-red); color: #ffffff; }

/* Feedback-Box */
.feedback-box {
    margin-top: 25px;
    padding: 25px;
    border-radius: 20px;
    border: 2px solid transparent;
    display: none;
    animation: fadeIn 0.3s ease;
}

.feedback-correct {
    background: rgba(34, 197, 94, 0.15);
    border-color: var(--ampel-green);
}

.feedback-wrong {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--ampel-red);
}

.feedback-title {
    font-size: calc(1.35rem * var(--font-size-multiplier));
    font-weight: 900;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feedback-rule-box {
    background: #000000;
    border-left: 5px solid var(--accent);
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    margin: 18px 0;
    font-weight: 700;
    color: #fce7f3;
}

.btn-next-step {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 800;
    font-size: calc(1.05rem * var(--font-size-multiplier));
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.35);
}

.btn-next-step:hover, .btn-next-step:focus {
    transform: translateY(-2px);
    outline: 3px solid #ffffff;
}

/* ==========================================================================
   KLARTEXT-SCANNER SPEZIAL-STILE (MODUS 2)
   ========================================================================== */
.scanner-card {
    background: #0a0e1c;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 25px;
}

.scanner-text-box {
    background: rgba(168, 85, 247, 0.1);
    border: 2px dashed #c084fc;
    padding: 22px;
    border-radius: 18px;
    margin-bottom: 22px;
}

.scanner-truth-box {
    background: rgba(239, 68, 68, 0.12);
    border: 2px solid #ef4444;
    padding: 22px;
    border-radius: 18px;
    margin-top: 22px;
    display: none;
    animation: fadeIn 0.4s ease;
}

.btn-scan-trigger {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 900;
    font-size: calc(1.15rem * var(--font-size-multiplier));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
    transition: all 0.3s ease;
}

.btn-scan-trigger:hover, .btn-scan-trigger:focus {
    transform: scale(1.02);
    outline: 4px solid #ffffff;
}

/* ==========================================================================
   KÖRPER-RADAR SPEZIAL-STILE (MODUS 3)
   ========================================================================== */
.radar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.radar-card {
    background: #0a0e1c;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.3s ease;
}

.radar-card.zone-green { border-top: 6px solid var(--ampel-green); }
.radar-card.zone-yellow { border-top: 6px solid var(--ampel-yellow); }
.radar-card.zone-red { border-top: 6px solid var(--ampel-red); }

.radar-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 0.9rem;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    align-self: flex-start;
}

.radar-badge.green { background: var(--ampel-green-bg); color: #4ade80; border: 1px solid var(--ampel-green); }
.radar-badge.yellow { background: var(--ampel-yellow-bg); color: #facc15; border: 1px solid var(--ampel-yellow); }
.radar-badge.red { background: var(--ampel-red-bg); color: #f87171; border: 1px solid var(--ampel-red); }

/* ==========================================================================
   ANTWORT-BAUKASTEN SPEZIAL-STILE (MODUS 4)
   ========================================================================== */
.response-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.response-card {
    background: #0a0e1c;
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.response-text {
    font-size: calc(1.2rem * var(--font-size-multiplier));
    font-weight: 800;
    color: #ffffff;
    line-height: 1.5;
}

.btn-copy-response {
    background: rgba(168, 85, 247, 0.2);
    border: 1.5px solid #a855f7;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-copy-response:hover {
    background: #a855f7;
}

/* Toast Nachricht für Kopieren */
.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #22c55e;
    color: #ffffff;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: none;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

/* ==========================================================================
   NOTFALL SOS SPEZIAL-STILE (MODUS 5)
   ========================================================================== */
.sos-step-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.sos-step-card {
    background: #0a0e1c;
    border: 2px solid rgba(239, 68, 68, 0.35);
    border-left: 8px solid #ef4444;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.sos-step-num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ef4444;
    color: #ffffff;
    font-weight: 900;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sos-call-btn {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #ffffff;
    padding: 16px 28px;
    border-radius: 100px;
    font-weight: 900;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
    margin-top: 15px;
}

/* ==========================================================================
   SCHUTZ-PASS ZUM AUSDRUCKEN & LEHRER-LEITFADEN
   ========================================================================== */
.schutzpass-wrapper, .lehrer-guide-wrapper {
    background: #ffffff;
    color: #000000;
    border: 4px solid #8b5cf6;
    border-radius: 24px;
    padding: 35px;
    margin-top: 35px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.schutzpass-header, .lehrer-header {
    border-bottom: 3px solid #ec4899;
    padding-bottom: 18px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.schutzpass-rule-item {
    background: #f1f5f9;
    border-left: 6px solid #8b5cf6;
    padding: 14px 20px;
    margin-bottom: 12px;
    border-radius: 0 10px 10px 0;
    font-weight: 700;
    font-size: 1.05rem;
}

.btn-print {
    background: #000000;
    color: #ffffff;
    border: 2px solid #8b5cf6;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 800;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

/* Mobile Media Queries */
@media (max-width: 650px) {
    .container {
        padding: 15px 12px 60px;
    }
    .a11y-bar {
        padding: 8px 12px;
        gap: 8px;
    }
    .a11y-controls {
        gap: 6px;
    }
    .a11y-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    .tool-title {
        font-size: 1.7rem;
    }
    .game-box {
        padding: 20px 14px;
        border-radius: 20px;
    }
    .chat-bubble-container {
        padding: 16px 14px;
        border-radius: 16px;
    }
    .chat-message-text {
        font-size: 1.15rem;
        line-height: 1.55;
    }
    .ampel-choice-btn {
        padding: 16px 14px;
        gap: 12px;
        border-radius: 16px;
        font-size: 1.05rem;
    }
    .ampel-circle-icon {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }
    .scanner-card {
        padding: 20px 14px;
        border-radius: 18px;
    }
    .scanner-text-box {
        padding: 16px 14px;
    }
    #taeter-text {
        font-size: 1.15rem !important;
    }
    .btn-scan-trigger {
        padding: 14px 20px;
        font-size: 1.05rem;
    }
    .sos-step-card {
        flex-direction: column;
        gap: 12px;
        padding: 18px 14px;
    }
    .schutzpass-wrapper, .lehrer-guide-wrapper {
        padding: 20px 14px;
    }
}

@media print {
    body * {
        visibility: hidden;
    }
    .schutzpass-wrapper, .schutzpass-wrapper *,
    .lehrer-guide-wrapper, .lehrer-guide-wrapper * {
        visibility: visible;
    }
    .schutzpass-wrapper, .lehrer-guide-wrapper {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: 2px solid #000;
        box-shadow: none;
    }
    .btn-print, .a11y-bar, footer {
        display: none !important;
    }
}

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