/* ─── Theme Custom Properties ─── */

[data-theme="dark"] {
    --bg-primary: #0f172a;    /* slate-900 */
    --bg-secondary: #020617;  /* slate-950 */
    --bg-card: #1e293b;       /* slate-800 */
    --text-primary: #f8fafc;  /* slate-50 */
    --text-secondary: #cbd5e1; /* slate-300 */
    --text-muted: #94a3b8;    /* slate-400 */
    --border-color: #334155;  /* slate-700 */
    --nav-bg: rgba(15, 23, 42, 0.85); /* slate-900/85 */
    --accent: #10b981;        /* emerald-500 */
    --accent-hover: #34d399;  /* emerald-400 */
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;  /* slate-50 */
    --bg-card: #ffffff;
    --text-primary: #0f172a;  /* slate-900 */
    --text-secondary: #475569; /* slate-600 */
    --text-muted: #64748b;    /* slate-500 */
    --border-color: #e2e8f0;  /* slate-200 */
    --nav-bg: rgba(255, 255, 255, 0.85);
    --accent: #059669;        /* emerald-600 */
    --accent-hover: #10b981;  /* emerald-500 */
}

/* ─── Base ─── */
html {
    font-size: 20px; /* groesser fuer bessere Lesbarkeit (Senioren) */
}
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ─── Carousel Fade ─── */
.fade-enter        { opacity: 0; }
.fade-enter-active { opacity: 1; transition: opacity 700ms ease-in-out; }
.fade-exit         { opacity: 1; }
.fade-exit-active  { opacity: 0; transition: opacity 700ms ease-in-out; }

/* ─── Theme toggle button ─── */
.theme-toggle {
    cursor: pointer;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}
.theme-toggle:hover {
    background-color: var(--bg-card);
}
