/* investiclean-windpark: Stylesheet im Look des bisherigen Streamlit-Dashboards */

.ic-wrapper { max-width: 1100px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

.ic-banner {
    background: #fff; padding: 0.85rem 1.25rem; border-radius: 8px; border: 1px solid #e5e7eb;
    margin: 0 0 1rem 0; box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.ic-banner-title { font-size: 1.35rem; font-weight: 600; color: #111827; }
.ic-banner-metrics { display: flex; gap: 2rem; }
.ic-metric { text-align: right; }
.ic-metric span { display: block; font-size: 0.78rem; color: #9ca3af; }
.ic-metric strong { font-size: 1.1rem; color: #111827; }

.ic-card {
    background: #fff; padding: 1.2rem; border-radius: 6px; border: 1px solid #e5e7eb;
    margin: 0 0 1rem 0; box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.ic-card-title { font-size: 0.875rem; color: #6b7280; margin-bottom: 0.75rem; }

.ic-company-list { list-style: none; margin: 0; padding: 0; }
.ic-company-list li { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid #f3f4f6; }
.ic-company-list a { color: #111827; text-decoration: none; font-weight: 500; }
.ic-company-list a:hover { text-decoration: underline; }
.ic-initiator { color: #9ca3af; font-size: 0.85rem; }

.ic-company-name { font-size: 1.25rem; font-weight: 600; color: #111827; margin: 1rem 0; }

.ic-history-row { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid #f3f4f6; }
.ic-muted { color: #9ca3af; font-size: 0.85rem; }
.ic-badge-current { background: #dcfce7; color: #166534; font-size: 0.78rem; padding: 0.1rem 0.4rem; border-radius: 4px; }

.ic-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-bottom: 1rem; }
.ic-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-bottom: 1rem; }
@media (max-width: 700px) { .ic-grid-4, .ic-grid-2 { grid-template-columns: 1fr; } }

.ic-kpi {
    background: #fff; padding: 1.2rem; border-radius: 6px; border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); min-height: 80px;
    display: flex; flex-direction: column; justify-content: space-between;
}
.ic-kpi span { font-size: 0.875rem; color: #6b7280; margin-bottom: 0.5rem; }
.ic-kpi strong { font-size: 1rem; font-weight: 500; color: #374151; }

.ic-warning { color: #9a3412; background: #fff7ed; padding: 0.75rem 1rem; border-radius: 6px; border: 1px solid #fed7aa; }

/* Tabs */
.ic-tabs-nav { display: flex; gap: 0.5rem; border-bottom: 2px solid #e5e7eb; margin-bottom: 1rem; }
.ic-tab-btn {
    background: none; border: none; padding: 0.6rem 1rem; cursor: pointer; font-size: 0.95rem;
    color: #6b7280; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.ic-tab-btn.active { color: #111827; font-weight: 600; border-bottom-color: #52796f; }
.ic-tab-panel { display: none; }
.ic-tab-panel.active { display: block; }

/* Finanz-/Bilanztabellen */
.ic-table-scroll { overflow-x: auto; margin-bottom: 1.5rem; }
.ic-finance-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.ic-finance-table th { text-align: right; padding: 0.4rem 0.75rem; color: #9ca3af; border-bottom: 2px solid #e5e7eb; }
.ic-finance-table th:first-child { text-align: left; }
.ic-finance-table td { padding: 0.35rem 0.75rem; border-bottom: 1px solid #f3f4f6; }
.ic-position-name { text-align: left; }
.ic-position-value { text-align: right; white-space: nowrap; }
.ic-section-header td { background: #f9fafb; font-weight: 600; color: #374151; padding-top: 0.75rem; }
.ic-haupt td { font-weight: 600; }
.ic-ebene-2 .ic-position-name { padding-left: 1.25rem; }
.ic-ebene-3 .ic-position-name { padding-left: 2.5rem; color: #6b7280; }
