:root {
    --bg-color: #F4F5F7;
    --text-color: #1f2937;
    --accent-blue: #009EE3;
    --accent-dark: #005A9C;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05);
    --highlight-bg: #f0f9ff;
    --highlight-border: #bae6fd;
    --highlight-text: #0369a1;
    --badge-bg: #e0f2fe;
    --badge-text: #0369a1;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header & Top Navigation */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-title-area h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.page-title-area p {
    font-size: 0.875rem;
    color: #6b7280;
}

.header-badges {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
}

.top-nav {
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.nav-link {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background: #f9fafb;
}

.nav-link.active {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: var(--accent-blue);
}

/* KPI Leiste */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.kpi-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-blue);
    display: flex;
    flex-direction: column;
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 10px;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
}

.kpi-subtext {
    font-size: 0.75rem;
    color: #6b7280;
}

.kpi-trend {
    margin-top: 12px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trend-up { color: #059669; font-weight: 600; }
.trend-down { color: #dc2626; font-weight: 600; }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 20px; }

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-dark);
}

.card-title i {
    color: var(--accent-blue);
}

/* Highlight Box */
.highlight-box {
    background: var(--highlight-bg);
    border: 1px solid var(--highlight-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.highlight-box .card-title {
    color: var(--highlight-text);
}

.highlight-box .card-title i {
    color: var(--highlight-text);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--badge-bg);
    color: var(--badge-text);
}
.badge.emerald { background: #d1fae5; color: #059669; }
.badge.amber { background: #fef3c7; color: #d97706; }
.badge.sky { background: #e0f2fe; color: #0284c7; }
.badge.indigo { background: #e0e7ff; color: #4338ca; }
.badge.red { background: #fee2e2; color: #dc2626; }
.badge.slate { background: #f1f5f9; color: #475569; }

/* Content Text */
.content-text {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 12px;
}

.content-text p {
    margin-bottom: 12px;
}
.content-text span.font-medium {
    font-weight: 600;
    color: var(--text-color);
}
.content-text span.text-steelLight {
    color: var(--accent-blue);
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
th {
    font-weight: 600;
    color: #4b5563;
    background: #f9fafb;
}
tr:nth-child(even) {
    background: #f8fafc;
}

/* Tabs for Sub-sections */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.tab-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    color: #4b5563;
    transition: all 0.2s;
}
.tab-btn:hover {
    background: #f9fafb;
}
.tab-btn.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

/* Utilities */
.hidden { display: none !important; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.font-semibold { font-weight: 600; }
.text-center { text-align: center; }
.text-emerald-400 { color: #059669; }
.text-slate-500 { color: #6b7280; }
.text-amber-400 { color: #d97706; }
.text-red-400 { color: #dc2626; }
.text-sky-400 { color: #0284c7; }

/* Flow diagram styles */
.flow-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}
.flow-step {
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    position: relative;
}
.flow-step.bottleneck {
    border: 2px solid #f59e0b;
    background: #fffbeb;
}
.flow-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px auto;
    background: #e0f2fe;
    color: var(--accent-blue);
}
.flow-step.bottleneck .flow-icon {
    background: #fef3c7;
    color: #d97706;
}
.flow-step h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
}
.flow-step p {
    font-size: 0.65rem;
    color: #6b7280;
    margin-top: 4px;
}
.flow-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: bold;
}
.flow-badge.auto { background: #d1fae5; color: #059669; }
.flow-badge.manual { background: #fef3c7; color: #d97706; }

/* Regulatory Landscape */
.reg-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}
.reg-box ul {
    list-style: none;
    margin-top: 12px;
}
.reg-box li {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.reg-box li i {
    margin-top: 3px;
}

/* Charts Containers */
.chart-container {
    position: relative;
    width: 100%;
}

/* Accordion Styles */
.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.accordion-item {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.accordion-item:hover {
    box-shadow: var(--shadow-md);
}
.accordion-header {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid transparent;
    transition: background-color 0.2s ease;
}
.accordion-header:hover {
    background-color: #f8fafc;
}
.accordion-header.active {
    border-bottom-color: var(--border-color);
    background-color: rgba(0,158,227,0.03);
}
.accordion-title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}
.accordion-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,158,227,0.1);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.accordion-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0;
}
.accordion-summary {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.accordion-chevron {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}
.accordion-header.active .accordion-chevron {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background: #fafafa;
}
.accordion-header.active + .accordion-content {
    max-height: 5000px;
    transition: max-height 0.6s ease-in-out;
}
.accordion-inner {
    padding: 24px;
}
.player-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.player-card:last-child {
    margin-bottom: 0;
}
.player-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}
.player-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin: 0 0 4px 0;
}
.player-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}
.player-details p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #4b5563;
}
.player-details p:last-child {
    margin-bottom: 0;
}

/* Sub Tabs */
.sub-tab-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}
.sub-tab-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.sub-tab-btn.active {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}
