/*
|--------------------------------------------------------------------------
| Statistikseite
|--------------------------------------------------------------------------
*/

.statistics-page {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
}


/*
|--------------------------------------------------------------------------
| Hero
|--------------------------------------------------------------------------
*/

.statistics-hero {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    display: flex;
    align-items: center;
    padding: clamp(2rem, 6vw, 5rem);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-xl, 28px);
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(96, 165, 250, 0.34),
            transparent 35%
        ),
        radial-gradient(
            circle at 88% 82%,
            rgba(37, 99, 235, 0.28),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #0f172a 0%,
            #172554 48%,
            #1e3a8a 100%
        );
    box-shadow: var(
        --shadow-xl,
        0 30px 70px rgba(15, 23, 42, 0.22)
    );
}

.statistics-hero::before {
    position: absolute;
    top: -140px;
    right: -100px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
}

.statistics-hero::after {
    position: absolute;
    right: 80px;
    bottom: -200px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.statistics-hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.statistics-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 1.25rem;
    padding: 0.65rem 0.9rem;
    color: #dbeafe;
    border: 1px solid rgba(191, 219, 254, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.statistics-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.5rem, 6vw, 4.75rem);
    font-weight: 850;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.statistics-hero p {
    max-width: 680px;
    margin: 1.5rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.75;
}


/*
|--------------------------------------------------------------------------
| Abschnitte
|--------------------------------------------------------------------------
*/

.statistics-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.statistics-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.statistics-section-header > div {
    max-width: 820px;
}

.statistics-section-eyebrow {
    display: block;
    width: fit-content;
    margin: 0;
    color: #3b82f6;
    font-size: clamp(1.65rem, 3.5vw, 2.55rem);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -0.03em;
    text-transform: none;
}

.statistics-section-header p {
    max-width: 760px;
    margin: 1rem 0 0;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.7;
}


/*
|--------------------------------------------------------------------------
| Hauptkennzahlen
|--------------------------------------------------------------------------
*/

.statistics-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.statistics-overview-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.6rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-lg, 22px);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(241, 245, 249, 0.9)
        );
    box-shadow: var(
        --shadow-md,
        0 14px 32px rgba(15, 23, 42, 0.08)
    );
    transition:
        transform var(--transition-base, 180ms ease),
        box-shadow var(--transition-base, 180ms ease),
        border-color var(--transition-base, 180ms ease);
}

.statistics-overview-card::before {
    position: absolute;
    top: -55px;
    right: -55px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    content: "";
}

.statistics-overview-card::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(
        90deg,
        #2563eb,
        #60a5fa
    );
    content: "";
}

.statistics-overview-card:nth-child(2)::after {
    background: linear-gradient(
        90deg,
        #7c3aed,
        #a78bfa
    );
}

.statistics-overview-card:nth-child(3)::after {
    background: linear-gradient(
        90deg,
        #059669,
        #34d399
    );
}

.statistics-overview-card:nth-child(4)::after {
    background: linear-gradient(
        90deg,
        #ea580c,
        #fb923c
    );
}

.statistics-overview-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.32);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.13);
}

.statistics-overview-value {
    position: relative;
    z-index: 1;
    color: var(--color-primary-700, #1d4ed8);
    font-size: clamp(3rem, 6vw, 4.3rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.statistics-overview-card:nth-child(2)
.statistics-overview-value {
    color: #7c3aed;
}

.statistics-overview-card:nth-child(3)
.statistics-overview-value {
    color: #059669;
}

.statistics-overview-card:nth-child(4)
.statistics-overview-value {
    color: #ea580c;
}

.statistics-overview-label {
    position: relative;
    z-index: 1;
    color: var(--color-text-secondary, #64748b);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
}


/*
|--------------------------------------------------------------------------
| Sekundäre Kennzahlen
|--------------------------------------------------------------------------
*/

.statistics-secondary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.statistics-secondary-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 100px;
    padding: 1.25rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-md, 16px);
    background: var(--color-surface, #ffffff);
    box-shadow: var(
        --shadow-sm,
        0 8px 20px rgba(15, 23, 42, 0.06)
    );
}

.statistics-secondary-value {
    flex: 0 0 auto;
    color: var(--color-primary-600, #2563eb);
    font-size: 2rem;
    font-weight: 850;
    line-height: 1;
}

.statistics-secondary-label {
    color: var(--color-text-secondary, #64748b);
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.35;
}


/*
|--------------------------------------------------------------------------
| Veranstaltungen nach Jahren
|--------------------------------------------------------------------------
*/

.statistics-event-years {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.statistics-event-year {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-lg, 22px);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(
        --shadow-sm,
        0 8px 22px rgba(15, 23, 42, 0.06)
    );
}

.statistics-event-year-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1rem;
    min-height: 84px;
    padding: 1.3rem 1.5rem;
    color: var(--color-text-primary, #0f172a);
    cursor: pointer;
    list-style: none;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.98),
            rgba(241, 245, 249, 0.9)
        );
    transition:
        background var(--transition-base, 180ms ease),
        color var(--transition-base, 180ms ease);
}

.statistics-event-year-summary::-webkit-details-marker {
    display: none;
}

.statistics-event-year-summary::marker {
    content: "";
}

.statistics-event-year-summary:hover {
    background:
        linear-gradient(
            135deg,
            rgba(239, 246, 255, 0.98),
            rgba(219, 234, 254, 0.76)
        );
}

.statistics-event-year-summary:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.35);
    outline-offset: -3px;
}

.statistics-event-year-title {
    color: inherit;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.035em;
}

.statistics-event-year-meta {
    color: var(--color-text-secondary, #64748b);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.statistics-event-year-icon {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
}

.statistics-event-year-icon::before,
.statistics-event-year-icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-primary-600, #2563eb);
    content: "";
    transform: translate(-50%, -50%);
    transition: transform var(--transition-base, 180ms ease);
}

.statistics-event-year-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.statistics-event-year[open]
.statistics-event-year-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.statistics-event-year[open]
.statistics-event-year-summary {
    color: var(--color-primary-700, #1d4ed8);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(
            135deg,
            rgba(239, 246, 255, 0.98),
            rgba(219, 234, 254, 0.72)
        );
}

.statistics-event-year-content {
    padding: 1.5rem;
    background: rgba(248, 250, 252, 0.72);
}


/*
|--------------------------------------------------------------------------
| Veranstaltungskarten
|--------------------------------------------------------------------------
*/

.statistics-event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.statistics-event-card {
    --statistics-category-color: #3b82f6;

    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    padding: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-lg, 22px);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(248, 250, 252, 0.94)
        );
    box-shadow: var(
        --shadow-sm,
        0 10px 25px rgba(15, 23, 42, 0.06)
    );
    transition:
        transform var(--transition-base, 180ms ease),
        box-shadow var(--transition-base, 180ms ease),
        border-color var(--transition-base, 180ms ease);
}

.statistics-event-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--statistics-category-color);
    content: "";
}

.statistics-event-card:hover {
    transform: translateY(-4px);
    border-color: var(--statistics-category-color);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.11);
}

.statistics-event-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
}

.statistics-event-card-header > div {
    min-width: 0;
}

.statistics-event-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 0.75rem;
    padding: 0.45rem 0.7rem;
    color: var(--statistics-category-color);
    border: 1px solid var(--statistics-category-color);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.statistics-event-card h3 {
    margin: 0;
    color: var(--color-text-primary, #0f172a);
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.statistics-event-card h3 a {
    color: inherit;
    text-decoration: none;
}

.statistics-event-card h3 a:hover {
    color: var(--statistics-category-color);
}

.statistics-event-date {
    flex: 0 0 auto;
    padding: 0.55rem 0.7rem;
    color: var(--color-text-secondary, #64748b);
    border-radius: 10px;
    background: rgba(241, 245, 249, 0.88);
    font-size: 0.78rem;
    font-weight: 750;
    white-space: nowrap;
}

.statistics-event-location {
    margin: 1rem 0 0;
    color: var(--color-text-secondary, #64748b);
    font-size: 0.92rem;
    line-height: 1.5;
}

.statistics-event-main-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.statistics-event-main-values > div {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.1rem;
    border-radius: var(--radius-md, 16px);
    background: rgba(241, 245, 249, 0.78);
}

.statistics-event-main-values strong {
    color: var(--statistics-category-color);
    font-size: 2rem;
    font-weight: 850;
    line-height: 1;
}

.statistics-event-main-values span {
    color: var(--color-text-secondary, #64748b);
    font-size: 0.82rem;
    font-weight: 650;
}

.statistics-event-roles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.statistics-event-roles > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.72rem 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.84);
}

.statistics-event-roles span {
    overflow: hidden;
    color: var(--color-text-secondary, #64748b);
    font-size: 0.76rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.statistics-event-roles strong {
    color: var(--color-text-primary, #0f172a);
    font-size: 0.92rem;
    font-weight: 800;
}

.statistics-event-link {
    width: fit-content;
    margin-top: auto;
    padding-top: 1.5rem;
    color: var(--statistics-category-color);
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
}

.statistics-event-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}


/*
|--------------------------------------------------------------------------
| Beliebteste Veranstaltungen
|--------------------------------------------------------------------------
*/

.statistics-top-events {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.statistics-top-event {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-md, 16px);
    background: var(--color-surface, #ffffff);
    box-shadow: var(
        --shadow-sm,
        0 8px 20px rgba(15, 23, 42, 0.05)
    );
    transition:
        transform var(--transition-base, 180ms ease),
        box-shadow var(--transition-base, 180ms ease);
}

.statistics-top-event:hover {
    transform: translateX(4px);
    box-shadow: 0 13px 28px rgba(15, 23, 42, 0.09);
}

.statistics-top-event h3 {
    margin: 0;
    color: var(--color-text-primary, #0f172a);
    font-size: 1rem;
    font-weight: 780;
    line-height: 1.35;
}

.statistics-top-event p {
    margin: 0.3rem 0 0;
    color: var(--color-text-secondary, #64748b);
    font-size: 0.8rem;
}

.statistics-top-event > strong {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 56px;
    padding: 0 0.8rem;
    color: #ffffff;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );
    font-size: 1.25rem;
    font-weight: 850;
}


/*
|--------------------------------------------------------------------------
| Eventtypen
|--------------------------------------------------------------------------
*/

.statistics-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.statistics-category-item {
    padding: 1.35rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-md, 16px);
    background: var(--color-surface, #ffffff);
    box-shadow: var(
        --shadow-sm,
        0 8px 20px rgba(15, 23, 42, 0.05)
    );
}

.statistics-category-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
}

.statistics-category-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.statistics-category-header strong {
    color: var(--color-text-primary, #0f172a);
    font-size: 0.95rem;
    font-weight: 780;
}

.statistics-category-header > span:last-child {
    color: var(--color-text-secondary, #64748b);
    font-size: 0.78rem;
    font-weight: 650;
    white-space: nowrap;
}

.statistics-category-item small {
    display: block;
    margin-top: 0.75rem;
    color: var(--color-text-secondary, #64748b);
    font-size: 0.78rem;
    font-weight: 650;
}


/*
|--------------------------------------------------------------------------
| Teilnehmerrollen
|--------------------------------------------------------------------------
*/

.statistics-role-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.statistics-role-item {
    padding: 1.3rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-md, 16px);
    background: var(--color-surface, #ffffff);
    box-shadow: var(
        --shadow-sm,
        0 8px 20px rgba(15, 23, 42, 0.05)
    );
}

.statistics-role-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.statistics-role-header span {
    color: var(--color-text-primary, #0f172a);
    font-size: 0.95rem;
    font-weight: 750;
}

.statistics-role-header strong {
    color: var(--color-primary-600, #2563eb);
    font-size: 1.15rem;
    font-weight: 850;
}


/*
|--------------------------------------------------------------------------
| Fortschrittsbalken
|--------------------------------------------------------------------------
*/

.statistics-progress {
    overflow: hidden;
    width: 100%;
    height: 10px;
    margin-top: 1rem;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.85);
}

.statistics-progress-bar {
    width: 0;
    min-width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        #2563eb,
        #60a5fa
    );
    transition: width 500ms ease;
}


/*
|--------------------------------------------------------------------------
| Jahresentwicklung als Liniendiagramm
|--------------------------------------------------------------------------
*/

.statistics-line-chart-card {
    overflow: hidden;
    padding: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-lg, 22px);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(248, 250, 252, 0.94)
        );
    box-shadow: var(
        --shadow-sm,
        0 10px 25px rgba(15, 23, 42, 0.06)
    );
}

.statistics-line-chart-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.statistics-line-chart-heading > div {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.statistics-line-chart-heading strong {
    color: var(--color-text-primary, #0f172a);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
}

.statistics-line-chart-heading span {
    color: var(--color-text-secondary, #64748b);
    font-size: 0.85rem;
    line-height: 1.5;
}

.statistics-line-chart-legends {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.8rem 1.25rem;
}

.statistics-line-chart-legend {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex: 0 0 auto;
    font-weight: 700;
    white-space: nowrap;
}

.statistics-line-chart-legend > span {
    width: 28px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        #2563eb,
        #60a5fa
    );
}

.statistics-line-chart-legend-events > span {
    background: linear-gradient(
        90deg,
        #ea580c,
        #fb923c
    );
}

.statistics-line-chart-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
    scrollbar-color:
        rgba(59, 130, 246, 0.45)
        rgba(226, 232, 240, 0.7);
}

.statistics-line-chart {
    display: block;
    width: 100%;
    min-width: 720px;
    height: auto;
}

.statistics-line-chart-grid {
    stroke: rgba(148, 163, 184, 0.24);
    stroke-width: 1;
    stroke-dasharray: 5 7;
}

.statistics-line-chart-axis {
    stroke: rgba(100, 116, 139, 0.55);
    stroke-width: 1.5;
}

.statistics-line-chart-axis-events {
    stroke: rgba(234, 88, 12, 0.45);
}

.statistics-line-chart-line {
    fill: none;
    stroke: #2563eb;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(
        0 5px 8px rgba(37, 99, 235, 0.2)
    );
}

.statistics-line-chart-line-events {
    stroke: #ea580c;
    stroke-width: 5;
    stroke-dasharray: 12 10;
    filter: drop-shadow(
        0 5px 8px rgba(234, 88, 12, 0.18)
    );
}

.statistics-line-chart-y-label,
.statistics-line-chart-year,
.statistics-line-chart-event-count,
.statistics-line-chart-value,
.statistics-line-chart-event-value {
    font-family: inherit;
}

.statistics-line-chart-y-label {
    fill: #64748b;
    font-size: 18px;
    font-weight: 650;
}

.statistics-line-chart-y-label-events {
    fill: #c2410c;
}

.statistics-line-chart-year {
    fill: #0f172a;
    font-size: 21px;
    font-weight: 800;
}

.statistics-line-chart-event-count {
    fill: #64748b;
    font-size: 15px;
    font-weight: 650;
}

.statistics-line-chart-value {
    fill: #1d4ed8;
    font-size: 20px;
    font-weight: 850;
}

.statistics-line-chart-event-value {
    fill: #c2410c;
    font-size: 18px;
    font-weight: 850;
}

.statistics-line-chart-point {
    cursor: default;
    outline: none;
}

.statistics-line-chart-point-halo,
.statistics-line-chart-event-point-halo {
    transition:
        r var(--transition-base, 180ms ease),
        fill var(--transition-base, 180ms ease);
}

.statistics-line-chart-point-halo {
    fill: rgba(59, 130, 246, 0.16);
}

.statistics-line-chart-event-point-halo {
    fill: rgba(251, 146, 60, 0.18);
}

.statistics-line-chart-point-dot,
.statistics-line-chart-event-point-dot {
    stroke: #ffffff;
    stroke-width: 5;
    transition:
        r var(--transition-base, 180ms ease),
        fill var(--transition-base, 180ms ease);
}

.statistics-line-chart-point-dot {
    fill: #2563eb;
}

.statistics-line-chart-event-point-dot {
    fill: #ea580c;
}

.statistics-line-chart-point:hover
.statistics-line-chart-point-halo,
.statistics-line-chart-point:focus
.statistics-line-chart-point-halo {
    r: 23;
    fill: rgba(59, 130, 246, 0.25);
}

.statistics-line-chart-point:hover
.statistics-line-chart-event-point-halo,
.statistics-line-chart-point:focus
.statistics-line-chart-event-point-halo {
    r: 21;
    fill: rgba(251, 146, 60, 0.28);
}

.statistics-line-chart-point:hover
.statistics-line-chart-point-dot,
.statistics-line-chart-point:focus
.statistics-line-chart-point-dot {
    r: 10;
    fill: #1d4ed8;
}

.statistics-line-chart-point:hover
.statistics-line-chart-event-point-dot,
.statistics-line-chart-point:focus
.statistics-line-chart-event-point-dot {
    r: 9;
    fill: #c2410c;
}

.statistics-line-chart-summary {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(190px, 1fr)
    );
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.statistics-line-chart-summary > div {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    background: rgba(241, 245, 249, 0.72);
}

.statistics-line-chart-summary strong {
    color: var(--color-primary-700, #1d4ed8);
    font-size: 1rem;
    font-weight: 850;
}

.statistics-line-chart-summary span {
    color: var(--color-text-secondary, #64748b);
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.45;
}


/*
|--------------------------------------------------------------------------
| Leerer Zustand
|--------------------------------------------------------------------------
*/

.statistics-empty {
    padding: 2rem;
    color: var(--color-text-secondary, #64748b);
    border: 1px dashed rgba(148, 163, 184, 0.4);
    border-radius: var(--radius-md, 16px);
    background: rgba(248, 250, 252, 0.8);
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 1180px) {
    .statistics-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .statistics-secondary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .statistics-page {
        gap: 3rem;
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .statistics-hero {
        min-height: 290px;
        padding: 2.5rem;
    }

    .statistics-event-grid {
        grid-template-columns: 1fr;
    }

    .statistics-category-list,
    .statistics-role-list {
        grid-template-columns: 1fr;
    }
}


/*
|--------------------------------------------------------------------------
| Smartphone
|--------------------------------------------------------------------------
*/

@media (max-width: 640px) {
    .statistics-page {
        gap: 2.5rem;
        padding: 1rem 0.75rem 3rem;
    }

    .statistics-hero {
        min-height: auto;
        padding: 2rem 1.35rem;
        border-radius: 20px;
    }

    .statistics-hero h1 {
        font-size: 2.35rem;
    }

    .statistics-hero p {
        margin-top: 1rem;
        font-size: 0.95rem;
    }

    .statistics-section {
        gap: 1.4rem;
    }

    .statistics-section-eyebrow {
        font-size: 1.65rem;
    }

    .statistics-overview-grid,
    .statistics-secondary-grid {
        grid-template-columns: 1fr;
    }

    .statistics-overview-card {
        min-height: 155px;
        padding: 1.35rem;
    }

    .statistics-overview-value {
        font-size: 3.2rem;
    }

    .statistics-secondary-card {
        min-height: 86px;
    }

    .statistics-event-year-summary {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 74px;
        padding: 1.1rem 1.15rem;
    }

    .statistics-event-year-meta {
        grid-column: 1 / -1;
        grid-row: 2;
        white-space: normal;
    }

    .statistics-event-year-icon {
        grid-column: 2;
        grid-row: 1;
        width: 34px;
        height: 34px;
    }

    .statistics-event-year-content {
        padding: 1rem;
    }

    .statistics-event-card {
        min-height: 0;
        padding: 1.25rem;
        border-radius: 18px;
    }

    .statistics-event-card-header {
        flex-direction: column;
        gap: 0.9rem;
    }

    .statistics-event-date {
        white-space: normal;
    }

    .statistics-event-main-values {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .statistics-event-roles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .statistics-top-event {
        gap: 1rem;
        padding: 1rem;
    }

    .statistics-top-event > strong {
        min-width: 50px;
        height: 50px;
        border-radius: 14px;
    }

    .statistics-category-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .statistics-category-header > span:last-child {
        grid-column: 2;
        white-space: normal;
    }

    .statistics-line-chart-card {
        padding: 1rem;
        border-radius: 18px;
    }

    .statistics-line-chart-heading {
        flex-direction: column;
        gap: 0.9rem;
        margin-bottom: 1rem;
    }

    .statistics-line-chart-legend {
        white-space: normal;
    }

    .statistics-line-chart {
        min-width: 640px;
    }

    .statistics-line-chart-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .statistics-event-main-values,
    .statistics-event-roles {
        grid-template-columns: 1fr;
    }

    .statistics-event-main-values > div {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .statistics-event-main-values span {
        text-align: right;
    }

    .statistics-top-event {
        grid-template-columns: 1fr;
    }

    .statistics-top-event > strong {
        width: fit-content;
        min-width: 50px;
    }
}


/*
|--------------------------------------------------------------------------
| Reduzierte Animationen
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
    .statistics-overview-card,
    .statistics-event-card,
    .statistics-event-year-summary,
    .statistics-event-year-icon::before,
    .statistics-event-year-icon::after,
    .statistics-top-event,
    .statistics-progress-bar,
    .statistics-line-chart-point-halo,
    .statistics-line-chart-point-dot,
    .statistics-line-chart-event-point-halo,
    .statistics-line-chart-event-point-dot {
        transition: none;
    }

    .statistics-overview-card:hover,
    .statistics-event-card:hover,
    .statistics-top-event:hover {
        transform: none;
    }
}