/* ========================================== */
/* LANDING PAGE - FINANCE DASHBOARD */
/* Professional CFO-grade design */
/* ========================================== */

.landing-page-v2 {
    max-width: 100%;
    margin: 0;
    padding: 0.5rem 0;
}

/* ========================================== */
/* DASHBOARD HEADER */
/* ========================================== */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.dashboard-header-left {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
}

.dashboard-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.01em;
}

.dashboard-date {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 400;
}

/* ========================================== */
/* FX TICKER - Wechselkurse Widget */
/* ========================================== */

.fx-ticker {
    background: white;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.fx-ticker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.fx-ticker-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fx-update-time {
    font-size: 0.7rem;
    color: #9ca3af;
}

.fx-ticker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
}

.fx-rate-card {
    text-align: center;
    padding: 0.5rem 0.25rem;
    border-radius: 6px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    transition: all 0.15s ease;
}

.fx-rate-card:hover {
    background: #f0f4ff;
    border-color: #dbeafe;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.08);
}

.fx-rate-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 0.2rem;
}

.fx-flag {
    font-size: 0.8rem;
}

.fx-pair {
    font-size: 0.65rem;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.3px;
}

.fx-rate-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.1rem;
    font-variant-numeric: tabular-nums;
}

.fx-change {
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
}

.fx-change.up { color: #059669; }
.fx-change.down { color: #dc2626; }
.fx-change.stable { color: #9ca3af; }

.fx-arrow {
    font-size: 0.55rem;
}

.fx-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 0.75rem;
    color: #9ca3af;
    font-size: 0.8rem;
}

/* ========================================== */
/* MAIN GRID: Calendar + News */
/* ========================================== */

.landing-main-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1rem;
}

/* ========================================== */
/* WIDGET SHARED STYLES */
/* ========================================== */

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.widget-header h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 4px;
    color: #6b7280;
    transition: all 0.15s;
    line-height: 1;
}

.btn-icon:hover {
    background: #f3f4f6;
    color: #111827;
}

/* ========================================== */
/* CALENDAR WIDGET */
/* ========================================== */

.calendar-widget {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    align-self: start;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.calendar-nav h4 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.weekday-header {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: #9ca3af;
    padding: 0.25rem 0;
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    color: #374151;
}

.calendar-day:not(.empty):hover {
    background: #f3f4f6;
}

.calendar-day.today {
    background: #2563eb;
    color: white;
    font-weight: 700;
}

.calendar-day.empty {
    cursor: default;
}

/* Calendar Notes */
.calendar-notes {
    margin-bottom: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.calendar-notes h4,
.calendar-reminders h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.note-input {
    width: 100%;
    min-height: 60px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.8rem;
    resize: vertical;
    margin-bottom: 0.4rem;
    font-family: inherit;
    color: #374151;
}

.note-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

/* Calendar Reminders */
.calendar-reminders {
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.reminder-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem 0;
}

.reminder-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.25rem;
    border-radius: 4px;
    transition: background 0.15s;
}

.reminder-item:hover {
    background: #f9fafb;
}

.reminder-item input[type="checkbox"] {
    cursor: pointer;
    width: 14px;
    height: 14px;
}

.reminder-item span {
    flex: 1;
    font-size: 0.8rem;
    color: #374151;
}

.btn-icon-sm {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
    font-size: 0.75rem;
    padding: 0.15rem;
}

.reminder-item:hover .btn-icon-sm {
    opacity: 0.5;
}

.btn-icon-sm:hover {
    opacity: 1 !important;
}

/* ========================================== */
/* NEWS WIDGET */
/* ========================================== */

.news-widget {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.news-categories {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.category-tab {
    padding: 0.375rem 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    color: #374151;
}

.category-tab:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.category-tab.active {
    background: #111827;
    color: white;
    border-color: #111827;
}

/* News Feed */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ========================================== */
/* NEWS ITEMS - Kompakte Listenansicht */
/* ========================================== */

.news-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.1s;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: #fafbfc;
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 4px;
}

.news-item.lead {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.news-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.impact-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.impact-dot.positive { background: #059669; }
.impact-dot.negative { background: #dc2626; }
.impact-dot.neutral { background: #d1d5db; }

.news-item-time {
    font-size: 0.65rem;
    color: #9ca3af;
    font-variant-numeric: tabular-nums;
}

.news-item-source {
    font-size: 0.65rem;
    color: #6b7280;
    font-weight: 500;
}

.news-item-link {
    font-size: 0.6rem;
    color: #2563eb;
    text-decoration: none;
    margin-left: auto;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.news-item:hover .news-item-link {
    opacity: 1;
}

.news-item-link:hover {
    text-decoration: underline;
}

.news-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.15rem 0;
    line-height: 1.3;
}

.news-item.lead .news-item-title {
    font-size: 0.95rem;
}

.news-item-summary {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 0 0 0.35rem 0;
}

/* ========================================== */
/* ALBO AI-KOMMENTAR */
/* ========================================== */

.albo-comment {
    margin-top: 0.4rem;
    padding: 0.5rem 0.65rem;
    border-radius: 5px;
    border-left: 2px solid #d1d5db;
    background: #fafafa;
}

.albo-comment.positive {
    border-left-color: #059669;
    background: #f0fdf4;
}

.albo-comment.negative {
    border-left-color: #dc2626;
    background: #fef2f2;
}

.albo-comment.neutral {
    border-left-color: #6b7280;
    background: #f9fafb;
}

.albo-comment-header {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.albo-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #eff6ff;
    padding: 0.1rem 0.35rem;
    border-radius: 2px;
}

.albo-tag {
    font-size: 0.6rem;
    color: #6b7280;
    background: white;
    border: 1px solid #e5e7eb;
    padding: 0.05rem 0.3rem;
    border-radius: 2px;
    font-weight: 500;
}

.albo-comment-text {
    font-size: 0.75rem;
    color: #374151;
    line-height: 1.4;
    margin: 0;
}

.albo-prompt-ref {
    margin-top: 0.3rem;
}

.albo-prompt-btn {
    font-size: 0.65rem;
    color: #2563eb;
    background: white;
    border: 1px solid #dbeafe;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s;
}

.albo-prompt-btn:hover {
    background: #eff6ff;
    border-color: #2563eb;
}

/* ========================================== */
/* TREASURY SECTION */
/* ========================================== */

.treasury-section {
    margin-bottom: 1rem;
}

.treasury-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e5e7eb;
}

.treasury-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.treasury-loading {
    font-size: 0.7rem;
    color: #9ca3af;
}

/* FX Charts Row */
.treasury-fx-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.fx-chart-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
}

.fx-chart-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.fx-chart-pair {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.03em;
}

.fx-chart-current {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    font-variant-numeric: tabular-nums;
}

.fx-chart-change {
    font-size: 0.65rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.fx-chart-change.up { color: #059669; }
.fx-chart-change.down { color: #dc2626; }
.fx-chart-change.stable { color: #9ca3af; }

.fx-chart-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.fx-chart-range {
    font-size: 0.6rem;
    color: #9ca3af;
    font-weight: 500;
}

.fx-chart-minmax {
    font-size: 0.6rem;
    color: #9ca3af;
    font-variant-numeric: tabular-nums;
}

.fx-sparkline {
    width: 100%;
    height: 60px;
    display: block;
}

/* Reference Rates Row */
.treasury-rates-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1.5fr;
    gap: 0.5rem;
}

.rate-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
}

.rate-card-header {
    font-size: 0.6rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}

.rate-card-body {
    display: flex;
    flex-direction: column;
}

.rate-main {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.rate-sub {
    font-size: 0.6rem;
    color: #9ca3af;
    margin-top: 0.15rem;
}

.rate-detail {
    font-size: 0.65rem;
    color: #6b7280;
    margin-top: 0.25rem;
    font-weight: 500;
}

.rate-sparkline {
    width: 100%;
    height: 30px;
    display: block;
    margin-top: 0.3rem;
}

.ecb-card {
    border-left: 3px solid #2563eb;
}

/* EURIBOR Grid */
.euribor-card {
    grid-column: span 1;
}

.euribor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 0.75rem;
}

.euribor-tenor {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.15rem 0;
}

.tenor-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: #6b7280;
}

.tenor-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111827;
    font-variant-numeric: tabular-nums;
}

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

.btn-primary,
.btn-secondary {
    border: none;
    border-radius: 5px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-sm {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1e40af;
}

.btn-secondary {
    background: white;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.btn-secondary:hover {
    background: #eff6ff;
}

.btn-link {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 500;
    padding: 0.35rem 0;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ========================================== */
/* UTILITIES */
/* ========================================== */

.loading {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
    font-size: 0.8rem;
}

.no-news {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
    font-size: 0.8rem;
}

.toast-notification {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #111827;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================== */
/* RESPONSIVE */
/* ========================================== */

@media (max-width: 1200px) {
    .treasury-rates-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .euribor-card {
        grid-column: span 1;
    }
}

@media (max-width: 1024px) {
    .landing-main-grid {
        grid-template-columns: 1fr;
    }
    .fx-ticker-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .treasury-fx-row {
        grid-template-columns: 1fr 1fr;
    }
    .treasury-rates-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .landing-page-v2 {
        padding: 0.75rem 1rem;
    }
    .dashboard-header-left {
        flex-direction: column;
        gap: 0.25rem;
    }
    .dashboard-title {
        font-size: 1.125rem;
    }
    .fx-ticker-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fx-rate-value {
        font-size: 0.85rem;
    }
    .treasury-fx-row {
        grid-template-columns: 1fr;
    }
    .treasury-rates-row {
        grid-template-columns: 1fr 1fr;
    }
    .news-categories {
        gap: 0.25rem;
    }
    .category-tab {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
}
