/* NexusCore | Stylesheets */

:root {
    --bg-color: #1a1c1e;
    --card-bg: #25282a;
    --accent-color: #a5d6a7;
    --accent-dark: #4e7d5a;
    --text-primary: #e2e2e2;
    --text-secondary: #b0b0b0;
    --card-shadow: 0 15px 45px rgba(0,0,0,0.5);
    --glow: 0 0 15px rgba(165, 214, 167, 0.2);
    --font-main: 'Nunito', sans-serif;
    --info-blue: #90caf9;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

/* Header */
header { padding: 40px 20px 20px; text-align: center; max-width: 600px; z-index: 10; }
.main-greeting { font-size: 3.2rem; color: var(--accent-color); margin: 0; }
.sub-greeting { color: var(--accent-dark); font-size: 1.2rem; font-weight: 700; margin-top: 5px; }

/* Layout */
.container { width: 100%; max-width: 700px; display: flex; flex-direction: column; gap: 20px; padding-bottom: 120px; z-index: 10; }
.card { background: var(--card-bg); border-radius: 20px; padding: 25px; box-shadow: var(--card-shadow); border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(10px); transition: 0.3s; }

/* Spezifische Karte für die Einleitung (Info-Kachel) */
.intro-card {
    border-left: 4px solid var(--accent-color) !important;
    background: var(--card-bg) !important;
    box-shadow: var(--card-shadow);
    padding-left: 20px;
    backdrop-filter: none !important;
}

/* Spezifische Karte für den Begleiter */
.bot-link-card {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 2px solid var(--accent-color) !important;
    background: rgba(165, 214, 167, 0.05) !important;
}

.bot-link-card:hover {
    background: rgba(165, 214, 167, 0.1) !important;
    transform: translateY(-5px);
}

/* Chat-Container Styles */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 70vh;
    background: var(--card-bg);
    border-radius: 28px;
    border: 1px solid rgba(165, 214, 167, 0.2);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.chat-messages {
    flex-grow: 1;
    padding: 25px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(0,0,0,0.1);
}

.message {
    max-width: 85%;
    padding: 15px 20px;
    border-radius: 20px;
    line-height: 1.6;
    font-size: 1rem;
    animation: fadeIn 0.4s ease forwards;
}

.message.bot {
    align-self: flex-start;
    background: rgba(255,255,255,0.05);
    border-bottom-left-radius: 4px;
    color: var(--text-primary);
}

.message.user {
    align-self: flex-end;
    background: var(--accent-color);
    color: #1a1c1e;
    font-weight: 700;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 20px;
    background: rgba(0,0,0,0.2);
    display: flex;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.chat-input {
    flex-grow: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 12px 20px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.chat-input:focus { outline: none; border-color: var(--accent-color); }

.send-btn {
    background: var(--accent-color);
    border: none;
    border-radius: 15px;
    padding: 0 25px;
    cursor: pointer;
    font-weight: 700;
    color: #1a1c1e;
}

/* Atemübung */
.breath-container { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 0; }
.breath-circle {
    width: 140px; height: 140px; border-radius: 50%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    box-shadow: 0 0 30px var(--accent-color);
    transition: transform 4s ease-in-out;
    cursor: pointer;
}
.breath-circle.inhale { transform: scale(1.7); }
.breath-instruction { margin-top: 25px; font-weight: 700; color: var(--accent-color); }

/* Hintergrund-Deko */
#flower-overlay-bg { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    pointer-events: none; 
    z-index: -1; 
}
.flower-deco { 
    position: absolute; 
    background-size: contain; 
    background-repeat: no-repeat; 
    opacity: 0.35; 
    animation: sway 15s infinite ease-in-out; 
}
.flower-bloomed { opacity: 1 !important; filter: saturate(1.8) drop-shadow(0 0 10px var(--accent-color)) !important; }

#sky-overlay-bg { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 45vh; 
    pointer-events: none; 
    z-index: -1; 
}
.sky-deco { position: absolute; background-size: contain; background-repeat: no-repeat; opacity: 0.25; animation: drift 40s infinite ease-in-out; }

/* Untere Bordüre */
#bottom-decoration {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 160px;
    pointer-events: none; z-index: 5; display: flex; justify-content: space-between; align-items: flex-end;
}
.border-img { width: 320px; height: 100%; background-size: contain; background-repeat: no-repeat; opacity: 0.8; }
#border-left { background-image: url('border_left.png'); background-position: left bottom; }
#border-right { background-image: url('border_right.png'); background-position: right bottom; }

/* Erfolgs-Fenster */
#success-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(26, 28, 30, 0.95); display: none;
    align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(10px); 
}
#success-overlay.success-visible { display: flex; }
.success-content { text-align: center; background: var(--card-bg); padding: 40px; border-radius: 30px; border: 2px solid var(--accent-color); }
.heart-icon { font-size: 5rem; display: block; margin-bottom: 20px; animation: pulse 1.5s infinite; }

/* Aufgaben */
.task-item { display: flex; align-items: center; gap: 15px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; }
input[type="checkbox"] { appearance: none; width: 28px; height: 28px; border: 2px solid var(--accent-color); border-radius: 8px; cursor: pointer; position: relative; }
input[type="checkbox"]:checked { background-color: var(--accent-color); }
input[type="checkbox"]:checked::after { content: '✓'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--bg-color); font-weight: bold; }

.reveal-on-scroll { opacity: 0; transform: translateY(15px); transition: 0.8s ease; }
.reveal-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Rezepte-Spezifisches für lange Texte */
.recipe-instructions { white-space: pre-wrap; line-height: 1.6; color: var(--text-secondary); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sway { 
    0%, 100% { transform: translate(0,0) rotate(0deg); } 
    50% { transform: translate(25px, -15px) rotate(6deg); } 
}
@keyframes drift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(25px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }