
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 30px;
    background: #111827;
    color: #f3f4f6;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}

.container {
    max-width: 1500px;
    margin: auto;
}

h1 {
    text-align: center;
    margin: 0 0 10px 0;
    font-size: 30px;
}

.subtitle {
    text-align: center;
    color: #9ca3af;
    margin-bottom: 35px;
    line-height: 1.5;
    font-size: 1.2em;
}


/* -------------------------------------------------
   Szenario
------------------------------------------------- */

.scenario {
    margin-bottom: 45px;
}

.scenario-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.scenario-description {
    color: #9ca3af;
    margin-bottom: 15px;
    font-size: 14px;
}


/* -------------------------------------------------
   Heatmap
------------------------------------------------- */

.heatmap-wrapper {
    overflow-x: auto;
    padding-bottom: 10px;
}

.heatmap {
    display: grid;

    /*
     * Erste Spalte:
     * Beschriftung Y-Achse
     */
    grid-template-columns:
        150px repeat(8, minmax(80px, 1fr));

    min-width: 850px;

    border-radius: 10px;
    overflow: hidden;

    box-shadow:
        0 10px 30px rgba(0,0,0,.25);
}


/* X-Achse */

.corner {
    background: #1f2937;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.x-header {
    background: #1f2937;
    padding: 12px 5px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}


/* Y-Achse */

.y-header {
    background: #1f2937;
    padding: 12px;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
}


/* Zellen */

.cell {
    min-height: 72px;

    display: flex;
    flex-direction: column;

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

    padding: 5px;

    color: white;

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

    text-shadow:
        0 1px 3px rgba(0,0,0,.6);

    border-right:
        1px solid rgba(255,255,255,.15);

    border-bottom:
        1px solid rgba(255,255,255,.15);

    transition:
        transform .1s ease,
        filter .1s ease;
}

.cell:hover {
    transform: scale(1.04);
    filter: brightness(1.12);
    position: relative;
    z-index: 5;
}

.cell .percentage {
    font-size: 10px;
    opacity: .8;
    margin-top: 4px;
    font-weight: 400;
}


/* -------------------------------------------------
   Legende
------------------------------------------------- */

.legend {
    margin-top: 15px;

    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 12px;
    color: #9ca3af;
}

.gradient {
    height: 14px;
    flex: 1;

    max-width: 500px;

    border-radius: 7px;

    background:
        linear-gradient(
            to right,
            rgb(30,90,200),
            rgb(0,170,220),
            rgb(30,190,90),
            rgb(245,220,30),
            rgb(245,130,20),
            rgb(220,30,30)
        );
}


/* -------------------------------------------------
   Info
------------------------------------------------- */

.info {
    margin-top: 50px;

    background: #1f2937;

    border-radius: 12px;

    padding: 25px;

    color: #d1d5db;

    line-height: 1.6;
}

.info h2 {
    margin-top: 0;
    color: white;
}

.info table {
    border-collapse: collapse;
    margin-top: 15px;
}

.info td {
    padding: 5px 20px 5px 0;
}

.info td:last-child {
    text-align: right;
    font-weight: 600;
    color: white;
}


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

@media (max-width: 700px) {

    body {
        padding: 15px;
    }

    h1 {
        font-size: 23px;
    }

    .heatmap {
        grid-template-columns:
            110px repeat(8, 75px);
    }

    .cell {
        min-height: 65px;
        font-size: 12px;
    }
}

