/*
|--------------------------------------------------------------------------
| Roxanne - Minimalist Vinci ERP Style
|--------------------------------------------------------------------------
*/

:root {
    --black: #111111;
    --black-soft: #181818;

    --gray-900: #292929;
    --gray-700: #5f5f5f;
    --gray-600: #707070;
    --gray-500: #909090;
    --gray-400: #b5b5b5;
    --gray-300: #d5d5d5;
    --gray-200: #e5e5e5;
    --gray-150: #ededed;
    --gray-100: #f4f4f4;
    --gray-050: #f8f8f8;

    --green: #2e9b59;
    --green-light: #eaf7ef;

    --red: #c94a4a;
    --red-light: #faeeee;

    --white: #ffffff;

    --sidebar-width: 220px;
    --header-height: 64px;

    --radius: 6px;
    --transition: 160ms ease;
}

/*
|--------------------------------------------------------------------------
| Reset
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background: var(--gray-100);
    color: var(--black);

    font-size: 14px;
    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.header {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    height: var(--header-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 28px;

    background: var(--white);

    border-bottom: 1px solid var(--gray-200);

    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;

    font-size: 17px;
    font-weight: 700;

    letter-spacing: 0.18em;

    color: var(--black);
}

.logo span {
    display: block;
}

/*
|--------------------------------------------------------------------------
| Language Selector
|--------------------------------------------------------------------------
*/

.language-selector {
    position: relative;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 7px;

    height: 34px;

    padding: 0 9px;

    background: transparent;

    border: 1px solid transparent;
    border-radius: 4px;

    color: var(--gray-700);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.05em;

    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition);
}

.language-button:hover {
    background: var(--gray-100);
    border-color: var(--gray-200);

    color: var(--black);
}

.language-button .language-symbol {
    width: 13px;
    height: 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.language-button .language-symbol svg {
    width: 13px;
    height: 13px;
}

.language-arrow {
    font-size: 9px;
    color: var(--gray-500);
}

.language-menu {
    position: absolute;

    top: calc(100% + 7px);
    right: 0;

    min-width: 150px;

    padding: 5px;

    background: var(--white);

    border: 1px solid var(--gray-200);
    border-radius: var(--radius);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.07);

    display: none;

    z-index: 1100;
}

.language-menu.open {
    display: block;
}

.language-option {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 9px 10px;

    background: transparent;

    border: 0;
    border-radius: 4px;

    color: var(--gray-700);

    font-size: 13px;

    text-align: left;

    transition:
        background var(--transition),
        color var(--transition);
}

.language-option:hover {
    background: var(--gray-100);
    color: var(--black);
}

.language-option.active {
    background: var(--gray-100);

    color: var(--black);

    font-weight: 600;
}

.language-option .check {
    font-size: 11px;
    color: var(--gray-500);
}

/*
|--------------------------------------------------------------------------
| Sidebar
|--------------------------------------------------------------------------
*/

.sidebar {
    position: fixed;

    top: var(--header-height);
    left: 0;
    bottom: 0;

    width: var(--sidebar-width);

    padding: 26px 14px;

    background: var(--gray-100);

    border-right: 1px solid var(--gray-200);

    z-index: 900;

    overflow-y: auto;
}

/*
|--------------------------------------------------------------------------
| Sidebar Sections
|--------------------------------------------------------------------------
*/

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section-title {
    padding: 0 12px 9px;

    color: var(--gray-500);

    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.12em;
}

/*
|--------------------------------------------------------------------------
| Navigation
|--------------------------------------------------------------------------
*/

.nav {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.nav-item {
    position: relative;

    width: 100%;

    display: flex;
    align-items: center;

    min-height: 38px;

    padding: 0 12px;

    background: transparent;

    border: 0;
    border-radius: 4px;

    color: var(--gray-700);

    font-size: 13px;
    font-weight: 500;

    text-align: left;

    transition:
        background var(--transition),
        color var(--transition);
}

/*
|--------------------------------------------------------------------------
| Navigation Icons
|--------------------------------------------------------------------------
| Alle Icons im linken Menü vollständig entfernen.
|--------------------------------------------------------------------------
*/

.nav-icon {
    display: none !important;
}

.nav-item:hover {
    background: var(--white);

    color: var(--black);
}

.nav-item.active {
    background: var(--white);

    color: var(--black);

    font-weight: 600;

    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.025);
}

.nav-item.active::before {
    content: "";

    position: absolute;

    left: 0;
    top: 8px;
    bottom: 8px;

    width: 2px;

    background: var(--black);

    border-radius: 0 2px 2px 0;
}

/*
|--------------------------------------------------------------------------
| Main Content
|--------------------------------------------------------------------------
*/

.main {
    margin-left: var(--sidebar-width);

    padding-top: var(--header-height);

    min-height: 100vh;
}

.content {
    max-width: 1500px;

    margin: 0 auto;

    padding: 34px 36px 50px;
}

/*
|--------------------------------------------------------------------------
| Pages
|--------------------------------------------------------------------------
*/

.page {
    display: none;
}

.page.active {
    display: block;
}

/*
|--------------------------------------------------------------------------
| Page Header
|--------------------------------------------------------------------------
*/

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 28px;

    padding-bottom: 18px;

    border-bottom: 1px solid var(--gray-200);
}

.page-title {
    margin: 0;

    color: var(--black);

    font-size: 24px;
    font-weight: 600;

    letter-spacing: -0.025em;
}

.page-description {
    margin: 5px 0 0;

    color: var(--gray-700);

    font-size: 13px;
}

/*
|--------------------------------------------------------------------------
| Grid
|--------------------------------------------------------------------------
*/

.grid {
    display: grid;

    gap: 16px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/*
|--------------------------------------------------------------------------
| Cards
|--------------------------------------------------------------------------
*/

.card {
    background: var(--white);

    border: 1px solid var(--gray-200);

    border-radius: var(--radius);

    box-shadow: none;

    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 54px;

    padding: 0 20px;

    border-bottom: 1px solid var(--gray-200);
}

.card-title {
    margin: 0;

    color: var(--gray-700);

    font-size: 12px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.06em;
}

.card-body {
    padding: 20px;
}

/*
|--------------------------------------------------------------------------
| Status Cards
|--------------------------------------------------------------------------
*/

.status-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 20px;
}

.status-card {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 82px;

    padding: 0 22px;

    background: var(--white);

    border: 1px solid var(--gray-200);

    border-radius: var(--radius);

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.status-card:hover {
    border-color: var(--gray-300);

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.025);
}

.status-label {
    color: var(--gray-700);

    font-size: 12px;
    font-weight: 500;
}

.status-value {
    display: flex;
    align-items: center;

    gap: 9px;

    color: var(--black);

    font-size: 13px;
    font-weight: 600;
}

/*
|--------------------------------------------------------------------------
| Status Indicator
|--------------------------------------------------------------------------
*/

.status-dot {
    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 3px var(--green-light);
}

.status-dot.offline {
    background: var(--gray-400);

    box-shadow:
        0 0 0 3px var(--gray-100);
}

/*
|--------------------------------------------------------------------------
| Status States
|--------------------------------------------------------------------------
*/

.status-online,
.status-connected,
.status-success,
.online,
.connected {
    color: var(--green);
}

.status-online .status-dot,
.status-connected .status-dot,
.status-success .status-dot,
.online .status-dot,
.connected .status-dot {
    background: var(--green);

    box-shadow:
        0 0 0 3px var(--green-light);
}

.status-offline,
.status-error,
.offline,
.disconnected {
    color: var(--gray-600);
}

.status-offline .status-dot,
.status-error .status-dot,
.offline .status-dot,
.disconnected .status-dot {
    background: var(--gray-400);

    box-shadow:
        0 0 0 3px var(--gray-100);
}

/*
|--------------------------------------------------------------------------
| Statistics Cards
|--------------------------------------------------------------------------
|
| Desktop:
|
| Follower | Zuschauer | Token | Zufriedenheit
|
|--------------------------------------------------------------------------
*/

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    width: 100%;

    margin-bottom: 16px;
}

.stat-card {
    position: relative;

    min-width: 0;

    min-height: 130px;

    padding: 21px;

    background: var(--white);

    border: 1px solid var(--gray-200);

    border-radius: var(--radius);

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.stat-card:hover {
    border-color: var(--gray-300);

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.025);
}

.stat-label {
    margin-bottom: 18px;

    color: var(--gray-700);

    font-size: 11px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.07em;
}

.stat-value {
    color: var(--black);

    font-size: 30px;
    font-weight: 600;

    letter-spacing: -0.04em;

    line-height: 1;
}

.stat-unit {
    margin-left: 4px;

    color: var(--gray-500);

    font-size: 12px;
    font-weight: 400;
}

/*
|--------------------------------------------------------------------------
| Last Update
|--------------------------------------------------------------------------
*/

.last-update {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 17px;

    color: var(--gray-500);

    font-size: 11px;
}

/*
|--------------------------------------------------------------------------
| Settings
|--------------------------------------------------------------------------
*/

.settings-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(260px, 1fr);

    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;

    margin-bottom: 7px;

    color: var(--gray-700);

    font-size: 12px;
    font-weight: 600;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;

    padding: 0 11px;

    background: var(--white);

    border: 1px solid var(--gray-300);

    border-radius: 4px;

    color: var(--black);

    font-size: 13px;

    outline: none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.form-input,
.form-select {
    height: 40px;
}

.form-textarea {
    min-height: 100px;

    padding-top: 10px;
    padding-bottom: 10px;

    resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--gray-700);

    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 0.04);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
    background: var(--gray-100);

    color: var(--gray-500);

    cursor: not-allowed;
}

.form-help {
    margin-top: 6px;

    color: var(--gray-500);

    font-size: 11px;
}

/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/

.btn {
    min-height: 38px;

    padding: 0 15px;

    border-radius: 4px;

    font-size: 12px;
    font-weight: 600;

    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition);
}

.btn-primary {
    background: var(--black);

    border: 1px solid var(--black);

    color: var(--white);
}

.btn-primary:hover {
    background: #292929;

    border-color: #292929;
}

.btn-primary:disabled {
    background: var(--gray-400);

    border-color: var(--gray-400);

    cursor: not-allowed;
}

.btn-secondary {
    background: var(--white);

    border: 1px solid var(--gray-300);

    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-100);

    border-color: var(--gray-300);

    color: var(--black);
}

.button-group {
    display: flex;
    align-items: center;

    gap: 8px;
}

/*
|--------------------------------------------------------------------------
| System Rows
|--------------------------------------------------------------------------
*/

.system-list {
    display: flex;

    flex-direction: column;
}

.system-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 56px;

    padding: 0 18px;

    border-bottom: 1px solid var(--gray-200);
}

.system-row:last-child {
    border-bottom: 0;
}

.system-label {
    color: var(--gray-700);

    font-size: 13px;
}

.system-value {
    color: var(--black);

    font-size: 13px;
    font-weight: 600;
}

/*
|--------------------------------------------------------------------------
| System Status
|--------------------------------------------------------------------------
*/

.system-status {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    font-size: 12px;
    font-weight: 600;
}

.system-status::before {
    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 3px var(--green-light);
}

/*
|--------------------------------------------------------------------------
| Tables
|--------------------------------------------------------------------------
*/

.table-wrapper {
    width: 100%;

    overflow-x: auto;
}

table {
    width: 100%;

    border-collapse: collapse;

    font-size: 12px;
}

thead th {
    padding: 11px 14px;

    background: var(--gray-050);

    border-bottom: 1px solid var(--gray-200);

    color: var(--gray-700);

    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.06em;

    text-align: left;
}

tbody td {
    padding: 13px 14px;

    border-bottom: 1px solid var(--gray-200);

    color: var(--gray-700);
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: var(--gray-050);
}

/*
|--------------------------------------------------------------------------
| Statistics Charts
|--------------------------------------------------------------------------
*/

.chart-container {
    min-height: 300px;

    padding: 20px;

    background: var(--white);

    border: 1px solid var(--gray-200);

    border-radius: var(--radius);
}

.chart-placeholder {
    min-height: 260px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--gray-500);

    font-size: 12px;
}

/*
|--------------------------------------------------------------------------
| Badges
|--------------------------------------------------------------------------
*/

.badge {
    display: inline-flex;
    align-items: center;

    min-height: 24px;

    padding: 0 8px;

    border: 1px solid var(--gray-300);

    border-radius: 4px;

    background: var(--white);

    color: var(--gray-700);

    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.05em;
}

.badge-active {
    background: var(--green-light);

    color: var(--green);

    border-color: #cfe8d8;
}

/*
|--------------------------------------------------------------------------
| Empty State
|--------------------------------------------------------------------------
*/

.empty-state {
    padding: 50px 20px;

    text-align: center;

    color: var(--gray-500);

    font-size: 13px;
}

/*
|--------------------------------------------------------------------------
| Alerts / Messages
|--------------------------------------------------------------------------
*/

.alert {
    padding: 12px 14px;

    border: 1px solid var(--gray-300);

    border-radius: 4px;

    background: var(--white);

    color: var(--gray-700);

    font-size: 12px;
}

.alert strong {
    color: var(--black);
}

.alert-success {
    border-color: #cfe8d8;

    background: var(--green-light);

    color: var(--green);
}

.alert-error {
    border-color: #efd0d0;

    background: var(--red-light);

    color: var(--red);
}

/*
|--------------------------------------------------------------------------
| Loading
|--------------------------------------------------------------------------
*/

.loading {
    color: var(--gray-500);

    font-size: 12px;
}

.loading::after {
    content: "...";
}

/*
|--------------------------------------------------------------------------
| Utility
|--------------------------------------------------------------------------
*/

.text-muted {
    color: var(--gray-500);
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-bold {
    font-weight: 600;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

/*
|--------------------------------------------------------------------------
| Scrollbars
|--------------------------------------------------------------------------
*/

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);

    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {

    :root {
        --sidebar-width: 0px;
    }

    .header {
        padding: 0 18px;
    }

    .sidebar {
        position: fixed;

        top: var(--header-height);
        bottom: 0;

        width: 210px;

        transform: translateX(-100%);

        transition: transform 180ms ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main {
        margin-left: 0;
    }

    .content {
        padding: 25px 18px 40px;
    }

    .status-grid,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-title {
        font-size: 21px;
    }
}

@media (max-width: 500px) {

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 27px;
    }

    .page-header {
        align-items: flex-start;
    }

    .card-body {
        padding: 16px;
    }

    .header {
        padding: 0 14px;
    }
}

/* =========================================================
   ROXANNE DASHBOARD - STATISTIKKARTEN
   ========================================================= */

.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100%;
}

/* Menü ohne Icons */
.nav-item .nav-icon {
    display: none !important;
}

/* Responsive */
@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   Dashboard Abstand zum Header
   ========================================================= */

#dashboardPage {
    margin-top: 32px;
}

/* =========================================================
   Roxane Statistik
   ========================================================= */

.statistics-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.statistics-metrics,
.statistics-periods {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.statistics-metric,
.statistics-period {
    appearance: none;
    border: 1px solid #d9d9d9;
    background: #ffffff;
    color: #222222;
    border-radius: 7px;
    padding: 9px 14px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.statistics-metric:hover,
.statistics-period:hover {
    border-color: #999999;
}

.statistics-metric.active,
.statistics-period.active {
    background: #222222;
    border-color: #222222;
    color: #ffffff;
}

.statistics-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    overflow: hidden;
}

.statistics-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 26px 18px;
    border-bottom: 1px solid #eeeeee;
}

.statistics-current-label {
    color: #777777;
    font-size: 13px;
    margin-bottom: 5px;
}

.statistics-current-value {
    color: #171717;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
}

.statistics-data-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #888888;
    font-size: 12px;
    line-height: 1.5;
}

.statistics-data-info span:last-child {
    color: #333333;
    font-size: 14px;
    font-weight: 600;
}

.statistics-chart-wrapper {
    position: relative;
    width: 100%;
    height: 360px;
    padding: 10px 18px 0 8px;
    box-sizing: border-box;
}

.statistics-chart {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.statistics-grid-line {
    stroke: #ededed;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.statistics-y-label {
    fill: #999999;
    font-size: 11px;
    font-family: inherit;
}

.statistics-line {
    fill: none;
    stroke: #222222;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.statistics-area {
    fill: rgba(0, 0, 0, 0.045);
    stroke: none;
}

.statistics-point {
    fill: #ffffff;
    stroke: #222222;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

.statistics-axis {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 0 28px 18px 62px;
    color: #999999;
    font-size: 11px;
}

.statistics-axis span {
    white-space: nowrap;
}

.statistics-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    font-size: 13px;
}

.statistics-empty[hidden] {
    display: none;
}

@media (max-width: 700px) {
    .statistics-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .statistics-metrics,
    .statistics-periods {
        width: 100%;
    }

    .statistics-metric,
    .statistics-period {
        flex: 1;
        text-align: center;
    }

    .statistics-card-header {
        padding: 18px;
    }

    .statistics-chart-wrapper {
        height: 280px;
        padding-right: 8px;
    }

    .statistics-axis {
        padding-left: 52px;
        padding-right: 18px;
    }

    .statistics-current-value {
        font-size: 24px;
    }
}

/* Einheitlicher Abstand der Seitenüberschriften */
#statisticsPage {
    margin-top: 32px;
}


/* =========================================================
   Sprachumschaltung - korrigierte Version
   ========================================================= */

.language-selector {
    position: relative;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 9px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--gray-700);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.language-button:hover {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--black);
}

.language-button .globe {
    display: none;
}

.language-button .arrow {
    font-size: 8px;
    color: var(--gray-500);
}

.language-menu {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    min-width: 140px;
    padding: 5px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    z-index: 1100;
}

.language-menu[hidden] {
    display: none !important;
}

.language-menu:not([hidden]) {
    display: block;
}

.language-menu button {
    display: block;
    width: 100%;
    padding: 9px 10px;
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: var(--gray-700);
    font-family: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.language-menu button:hover {
    background: var(--gray-100);
    color: var(--black);
}


/* ============================================================
   INTERAKTIVES STATISTIK-DIAGRAMM
   ============================================================ */

.statistics-chart-wrapper {
    position: relative;
}

.statistics-hover-line {
    position: absolute;
    top: 10px;
    bottom: 0;
    width: 1px;
    background: #cfcfcf;
    pointer-events: none;
    display: none;
    z-index: 5;
}

.statistics-tooltip {
    position: absolute;
    min-width: 145px;
    padding: 10px 12px;
    background: #222;
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    pointer-events: none;
    display: none;
    z-index: 10;
    font-size: 12px;
    line-height: 1.45;
    white-space: nowrap;
}

.statistics-tooltip-time {
    color: #bdbdbd;
    font-size: 11px;
    margin-bottom: 3px;
}

.statistics-tooltip-value {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.statistics-hover-point {
    fill: #222;
    stroke: #fff;
    stroke-width: 2;
    pointer-events: none;
    display: none;
    vector-effect: non-scaling-stroke;
}

.statistics-chart-hitarea {
    fill: transparent;
    cursor: crosshair;
}

@media (max-width: 700px) {
    .statistics-tooltip {
        min-width: 125px;
        padding: 8px 10px;
    }
}


.statistics-chart-hitarea {
    fill: transparent;
    pointer-events: all;
    cursor: crosshair;
}

/* Statistik – Kennzahlen */
.statistics-summary {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-left: auto;
    margin-right: 36px;
}

.statistics-summary-item {
    min-width: 105px;
    padding: 0 18px;
    border-left: 1px solid #eeeeee;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.statistics-summary-item span {
    color: #888;
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.statistics-summary-item strong {
    color: #222;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
}

@media (max-width: 900px) {
    .statistics-card-header {
        flex-wrap: wrap;
        gap: 20px;
    }

    .statistics-summary {
        order: 3;
        width: 100%;
        margin: 0;
        border-top: 1px solid #eeeeee;
        padding-top: 16px;
    }

    .statistics-summary-item {
        flex: 1;
    }
}

@media (max-width: 600px) {
    .statistics-summary {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .statistics-summary-item {
        min-width: 0;
        padding: 10px 14px;
        border-bottom: 1px solid #eeeeee;
    }

    .statistics-summary-item:nth-child(odd) {
        border-left: none;
    }
}


/* Statistik – zusätzliche API-Werte */
.statistics-details {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-top: 1px solid #eeeeee;
    background: #fafafa;
}

.statistics-detail-item {
    min-width: 0;
    padding: 15px 14px 16px;
    border-left: 1px solid #eeeeee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.statistics-detail-item:first-child {
    border-left: none;
}

.statistics-detail-item span {
    color: #888;
    font-size: 10px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.statistics-detail-item strong {
    color: #222;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

@media (max-width: 1100px) {
    .statistics-details {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .statistics-detail-item:nth-child(4n + 1) {
        border-left: none;
    }
}

@media (max-width: 700px) {
    .statistics-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .statistics-detail-item:nth-child(4n + 1) {
        border-left: 1px solid #eeeeee;
    }

    .statistics-detail-item:nth-child(odd) {
        border-left: none;
    }
}

