/* ============================================================
   LovePath – Stylesheet
   Farbpalette: Dunkelblau/Indigo + Violett + Warmrosa
   ============================================================ */

:root {
    --bg:          #0d0d1a;
    --bg2:         #13132b;
    --card:        #1a1a33;
    --card2:       #20203e;
    --border:      #2e2e54;
    --primary:     #6c63ff;
    --primary-h:   #7b73ff;
    --accent:      #ff6584;
    --accent-h:    #ff7a97;
    --success:     #43d8a0;
    --warning:     #f7b731;
    --text:        #e8e8f4;
    --text-muted:  #8080a8;
    --radius:      12px;
    --radius-sm:   8px;
    --shadow:      0 4px 24px rgba(0,0,0,0.4);
}

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

html { font-size: 16px; }

body {
    font-family: 'Poppins', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-h); }

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    height: 64px;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand a {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-links {
    display: flex;
    gap: 0.25rem;
    flex: 1;
}

.navbar-links a {
    color: var(--text-muted);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s;
    position: relative;
    white-space: nowrap;
}

.navbar-links a:hover { color: var(--text); background: var(--card); }
.navbar-links a.active { color: var(--primary); background: rgba(108,99,255,0.12); }

.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.navbar-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.streak-badge {
    background: rgba(255,165,0,0.15);
    color: #ffa726;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-count {
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 10px;
    margin-left: 0.25rem;
    vertical-align: middle;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.4rem;  font-weight: 700; }
h3 { font-size: 1.1rem;  font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }

.muted { color: var(--text-muted); font-size: 0.85rem; }
.mt-1  { margin-top: 0.75rem; }

/* ============================================================
   CARDS
   ============================================================ */

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.card-accent {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(255,101,132,0.15), var(--shadow);
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card2);
}

.card-header h3 { margin: 0; }

.card-body { padding: 1.25rem; }

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.col-left, .col-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .dashboard-grid, .detail-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE HEADER
   ============================================================ */

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }

.back-link {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.25rem;
}

/* ============================================================
   WELCOME CARD
   ============================================================ */

.welcome-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    border: 1px solid rgba(108,99,255,0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.welcome-her {
    background: linear-gradient(135deg, #2d1b3d 0%, #4a1942 50%, #6b2153 100%);
    border-color: rgba(255,101,132,0.3);
}

.welcome-text h2 { font-size: 1.3rem; }
.welcome-text p  { color: rgba(232,232,244,0.7); font-size: 0.9rem; margin-top: 0.4rem; }

.streak-display {
    text-align: center;
    flex-shrink: 0;
}

.streak-fire   { font-size: 2rem; display: block; }
.streak-number { font-size: 2.5rem; font-weight: 700; color: #ffa726; display: block; line-height: 1; }
.streak-label  { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================================
   STATS
   ============================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.stat-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
}

.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ============================================================
   FORMS
   ============================================================ */

.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.form-hint {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(108,99,255,0.08);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-check input[type="checkbox"] { accent-color: var(--primary); }
.form-check label { margin: 0; color: var(--text); font-size: 0.875rem; }

input[type="text"],
input[type="password"],
input[type="date"],
input[type="email"],
textarea,
select {
    width: 100%;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.9rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}

textarea { resize: vertical; }

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    outline: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 0 3px rgba(108,99,255,0.3);
}

.slider-group { margin-bottom: 1rem; }
.slider-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-h); color: #fff; transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: rgba(108,99,255,0.1); }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}
.btn-ghost:hover { background: var(--card2); color: var(--text); }

.btn-full { width: 100%; justify-content: center; }
.btn-sm   { padding: 0.35rem 0.7rem; font-size: 0.8rem; }

/* ============================================================
   BADGES
   ============================================================ */

.badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-high   { background: rgba(255,79,79,0.15);    color: #ff4f4f;  border: 1px solid rgba(255,79,79,0.3); }
.badge-mid    { background: rgba(247,183,49,0.15);   color: #f7b731;  border: 1px solid rgba(247,183,49,0.3); }
.badge-low    { background: rgba(67,216,160,0.15);   color: #43d8a0;  border: 1px solid rgba(67,216,160,0.3); }
.badge-open   { background: rgba(128,128,168,0.15);  color: #8080a8;  border: 1px solid rgba(128,128,168,0.3); }
.badge-wip    { background: rgba(108,99,255,0.15);   color: var(--primary); border: 1px solid rgba(108,99,255,0.3); }
.badge-done   { background: rgba(67,216,160,0.15);   color: #43d8a0;  border: 1px solid rgba(67,216,160,0.3); }
.badge-her    { background: rgba(255,101,132,0.15);  color: var(--accent); border: 1px solid rgba(255,101,132,0.3); }

/* ============================================================
   FILTER TABS
   ============================================================ */

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.filter-tab {
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
    border: 1px solid transparent;
}

.filter-tab:hover  { color: var(--text); background: var(--card); }
.filter-tab.active { color: var(--primary); background: rgba(108,99,255,0.12); border-color: rgba(108,99,255,0.3); }

/* ============================================================
   PROGRESS BAR
   ============================================================ */

.progress-bar-wrap {
    background: var(--border);
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
    flex: 1;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 20px;
    transition: width 0.4s ease;
}

.progress-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.progress-label { font-size: 0.8rem; color: var(--text-muted); flex-shrink: 0; }

/* ============================================================
   BAUSTELLEN
   ============================================================ */

.baustellen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.baustelle-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: block;
    transition: all 0.2s;
}

.baustelle-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(108,99,255,0.15);
}

.baustelle-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.baustelle-card h3 { font-size: 1rem; color: var(--text); }
.baustelle-badges { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.baustelle-desc { font-size: 0.85rem; color: var(--text-muted); margin: 0.5rem 0; }
.baustelle-footer { margin-top: 0.75rem; }

.category-tag {
    display: inline-block;
    background: rgba(108,99,255,0.1);
    color: var(--primary);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

/* Baustelle Row (in Dashboard) */
.baustelle-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    transition: background 0.15s;
    text-decoration: none;
}

.baustelle-row:last-child { border-bottom: none; }
.baustelle-row:hover { background: var(--card2); border-radius: var(--radius-sm); }
.baustelle-row-title { font-size: 0.875rem; display: flex; align-items: center; gap: 0.4rem; flex: none; min-width: 0; max-width: 40%; }

/* ============================================================
   DIARY
   ============================================================ */

.entry-list { display: flex; flex-direction: column; gap: 1rem; }

.diary-entry-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.entry-title { font-size: 1.1rem; margin-bottom: 0.25rem; }

.entry-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.entry-content {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(232,232,244,0.85);
}

/* Diary preview (in dashboard) */
.diary-preview {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.diary-preview:last-of-type { border-bottom: none; }
.diary-preview-meta { display: flex; justify-content: space-between; margin-bottom: 0.3rem; font-size: 0.82rem; }
.diary-preview p { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ============================================================
   Q&A
   ============================================================ */

.qa-list { display: flex; flex-direction: column; gap: 1rem; }

.qa-full-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.qa-unanswered { border-color: var(--accent); }

.qa-question-block { margin-bottom: 1rem; }
.qa-from { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.qa-from-him { color: var(--primary); }
.qa-question-text { font-size: 1rem; font-style: italic; margin: 0.4rem 0; color: var(--text); }
.qa-answer-block {
    background: rgba(108,99,255,0.06);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--primary);
}
.qa-answer-text { font-size: 0.9rem; margin: 0.4rem 0; }
.qa-answer-form { margin-top: 0.75rem; }
.qa-pending { margin-top: 0.75rem; }

/* In-dashboard QA */
.question-preview { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.question-preview:last-child { border-bottom: none; }
.question-text { font-style: italic; font-size: 0.9rem; margin-bottom: 0.5rem; }

/* In-dashboard QA item */
.qa-item { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.qa-item:last-child { border-bottom: none; }
.qa-question { font-size: 0.85rem; margin-bottom: 0.25rem; }
.qa-answer   { font-size: 0.85rem; color: var(--primary); }
.qa-answered .qa-question { color: var(--text-muted); }

/* ============================================================
   LOVE LETTERS
   ============================================================ */

.letter-list { display: flex; flex-direction: column; gap: 1rem; }

.letter-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
}

.letter-unread {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(255,101,132,0.2);
}

.letter-header {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card2);
}

.letter-subject { font-size: 1rem; margin-bottom: 0.15rem; }
.letter-preview, .letter-content { padding: 1.25rem; font-size: 0.9rem; line-height: 1.8; color: rgba(232,232,244,0.85); }
.letter-toggle-icon { color: var(--text-muted); font-size: 0.8rem; margin-left: 0.5rem; }
.letter-read-note { font-size: 0.8rem; padding-top: 1rem; }

/* ============================================================
   THOUGHTS
   ============================================================ */

.thoughts-list { display: flex; flex-direction: column; gap: 1rem; }

.thought-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--primary);
}

.thought-card-her { border-left-color: var(--accent); }

.thought-quote {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.thought-meta { font-size: 0.8rem; }

/* ============================================================
   MEMORIES
   ============================================================ */

.memories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.memory-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.2s;
}

.memory-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(108,99,255,0.15);
}

.memory-emotion  { font-size: 2rem; margin-bottom: 0.5rem; }
.memory-title    { font-size: 1rem; margin-bottom: 0.25rem; }
.memory-date     { font-size: 0.8rem; display: block; margin-bottom: 0.5rem; }
.memory-content  { font-size: 0.875rem; color: rgba(232,232,244,0.8); line-height: 1.6; margin-top: 0.5rem; }

/* ============================================================
   TIMELINE
   ============================================================ */

.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item { position: relative; margin-bottom: 1.25rem; }

.timeline-dot {
    position: absolute;
    left: -1.5rem;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg);
    z-index: 1;
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
    font-size: 0.82rem;
}

.timeline-content p { font-size: 0.9rem; }

/* Big progress circle */
.big-progress { display: flex; align-items: center; gap: 1.5rem; }
.big-progress-circle svg { filter: drop-shadow(0 0 8px rgba(108,99,255,0.3)); }

/* ============================================================
   DETAIL SECTION
   ============================================================ */

.detail-section { margin-bottom: 1.25rem; }
.detail-section h4 { margin-bottom: 0.4rem; }
.detail-section p { font-size: 0.9rem; color: rgba(232,232,244,0.8); line-height: 1.7; }

/* ============================================================
   ACTIVITY FEED
   ============================================================ */

.feed-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

.feed-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.feed-item:hover { background: var(--card2); }
.feed-icon { flex-shrink: 0; font-size: 1rem; }
.feed-text { flex: 1; color: var(--text); }
.feed-time { flex-shrink: 0; font-size: 0.78rem; }

/* ============================================================
   HER ACTIONS
   ============================================================ */

.her-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    text-align: center;
}

.action-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }

.action-btn-baustelle { background: rgba(108,99,255,0.15); color: var(--primary); border: 1px solid rgba(108,99,255,0.3); }
.action-btn-question  { background: rgba(247,183,49,0.12);  color: #f7b731;       border: 1px solid rgba(247,183,49,0.3); }
.action-btn-letter    { background: rgba(255,101,132,0.12); color: var(--accent); border: 1px solid rgba(255,101,132,0.3); }
.action-btn-thought   { background: rgba(67,216,160,0.12);  color: #43d8a0;       border: 1px solid rgba(67,216,160,0.3); }

.action-btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,101,132,0.3); }
    50%       { box-shadow: 0 0 0 8px rgba(255,101,132,0);  }
}

/* ============================================================
   QUICK LINKS
   ============================================================ */

.quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.quick-link-btn {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text);
    transition: all 0.2s;
}

.quick-link-btn:hover {
    border-color: var(--primary);
    background: rgba(108,99,255,0.08);
    color: var(--primary);
}

/* ============================================================
   ALERTS
   ============================================================ */

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.alert-success { background: rgba(67,216,160,0.12); color: #43d8a0; border: 1px solid rgba(67,216,160,0.3); }
.alert-error   { background: rgba(255,79,79,0.12);  color: #ff4f4f;  border: 1px solid rgba(255,79,79,0.3); }

/* ============================================================
   EMPTY STATES
   ============================================================ */

.empty-state { color: var(--text-muted); font-size: 0.875rem; text-align: center; padding: 1rem 0; }

.empty-state-big {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state-big h3 { margin-bottom: 0.5rem; }
.empty-state-big p  { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 0.9rem; }

/* ============================================================
   HIDDEN
   ============================================================ */

.hidden { display: none !important; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(ellipse at 50% 0%, #1e1b4b 0%, var(--bg) 70%);
}

.login-wrapper { width: 100%; max-width: 420px; padding: 1.5rem; }

.login-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.login-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-title    { text-align: center; font-size: 1.4rem; margin-bottom: 0.25rem; }
.login-subtitle { text-align: center; color: var(--text-muted); font-size: 0.875rem; margin-bottom: 2rem; }
.login-form     { margin-bottom: 1.5rem; }
.login-hint     { text-align: center; color: var(--text-muted); font-size: 0.78rem; line-height: 1.8; }

code {
    background: var(--bg2);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--primary);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================================
   LEARNINGS
   ============================================================ */

.learnings-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.lstat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    text-align: center;
}

.lstat-value { display: block; font-size: 1.75rem; font-weight: 700; color: var(--primary); line-height: 1; }
.lstat-label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.lstat-high  { border-left: 3px solid #ff4f4f; }
.lstat-mid   { border-left: 3px solid #f7b731; }
.lstat-low   { border-left: 3px solid #43d8a0; }

.learnings-filter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.learnings-list { display: flex; flex-direction: column; gap: 1rem; }

.learning-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--border);
    transition: all 0.2s;
}

.learning-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.learning-hoch    { border-left-color: #ff4f4f; }
.learning-mittel  { border-left-color: #f7b731; }
.learning-niedrig { border-left-color: #43d8a0; }

.learning-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.learning-header-left {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.learning-impact-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
    background: var(--text-muted);
}

.learning-hoch    .learning-impact-dot { background: #ff4f4f; box-shadow: 0 0 6px rgba(255,79,79,0.4); }
.learning-mittel  .learning-impact-dot { background: #f7b731; box-shadow: 0 0 6px rgba(247,183,49,0.4); }
.learning-niedrig .learning-impact-dot { background: #43d8a0; box-shadow: 0 0 6px rgba(67,216,160,0.4); }

.learning-title   { font-size: 1rem; margin-bottom: 0.25rem; }
.learning-meta    { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; font-size: 0.8rem; }
.learning-source  { color: var(--text-muted); font-size: 0.8rem; }
.learning-content { font-size: 0.9rem; line-height: 1.7; color: rgba(232,232,244,0.85); }
