/* Globale Stile */
* {
    box-sizing: border-box; /* Inkludiere Padding und Border in der Gesamtbreite */
}

/*
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    background-color: grey;
    font-size: 16px;
    line-height: 1.5;
}
*/

/* Überschriften */
h1 {
    text-align: left;
    color: #333;
    margin-bottom: 30px;
    font-size: 1.5em;
}

/* Flex-Container */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Container-Stil */
.container {
    flex: 1 1 calc(33.3333% - 40px);
    padding-bottom: 5px;
    padding-left: 20px;
    margin-bottom: 20px;
    border: 1px solid #00796b; /* Deutlicherer Rahmen */
    border-radius: 4px;
    background-color: #f7ebd8;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-width: 350px;
    max-width: 880px;
    box-sizing: border-box;
}

/* Anpassungen für h2 innerhalb der Container */
.container h2 {
    margin-top: 0;
    text-align: left;
    color: #00796b;
    margin-bottom: 5px;
    font-size: 1.2em;
}

/* Input-Gruppe */
.input-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 5px;
    width: 100%;
    gap: 10px;
    font-size: clamp(0.8em, 1.2vw, 0.8em);
}

.input-group option {
    font-size: 0.9em;
}

.input-group label {
    flex: 1;
    font-weight: bold;
    color: #444;
    max-width: 100%;
    white-space: nowrap;
}

.column_pop {
    padding: 20px;
    margin: 0;
}

/* Stil für a-Tags nur innerhalb des Containers */
.container a {
    text-decoration: none; /* Entfernt Unterstrich */
    background-color: #f0f0f0; /* Hintergrundfarbe für Links */
    color: #00796b;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s; /* Hover-Effekt */
}

/* Hover-Effekt für a-Tags nur innerhalb des Containers */
.container a:hover {
    background-color: #00796b; /* Ändert Hintergrundfarbe beim Hover */
    color: #fff; /* Ändert Schriftfarbe beim Hover */
}


/* Neue CSS-Regeln für die select-Box */
#populationChart-select {
    background-color: orange; /* Hintergrundfarbe */
    color: black;              /* Schriftfarbe */
    font-size: 1em;          /* Schriftgröße anpassen */
    padding: 4px 4px;        /* Innenabstand für bessere Optik */
    border: 1px solid #00796b; /* Rahmenfarbe und -breite */
    border-radius: 4px;       /* Abgerundete Ecken */
    appearance: none;         /* Entfernt das Standard-Aussehen */
        -webkit-appearance: none; /* Für Safari */
        -moz-appearance: none;    /* Für Firefox */
    width: 50%;              /* Volle Breite innerhalb des Containers */
}

/* Optional: Styling für die Optionen (eingeschränkt durch Browser) */
#populationChart-select option {
    font-size: 0.9em;
}

 /* Styling für das Dropdown-Pfeil-Symbol */
 .input-group::after {
    content: '▼'; /* Dropdown-Pfeil */
    position: relative;
    top: 10px;
    left: -30px;
    right: 1em;
    transform: translateY(-50%);
    pointer-events: none;
    color: black; /* Farbe des Pfeils */
    font-size: 1em;
}


.aktuell {
    background-color: #faca78;
    border-radius: 4px;
    border: 1px solid #faca78;
    padding: 4px;
    text-align: right;
    font-size: clamp(0.9em, 1.2vw, 0.9em);
    min-width: 20%;
    max-width: 40%;
}

/* Bereichs Styling */
.statistik-container .column_pop { 
    margin-top: 20px;
    padding-top: 0;
    border-top: 1px solid #ccc;
    text-align: left;
    width: 100%;
}


/* Responsive Anpassungen */
@media (max-width: 1100px) {
    
    .statistik-container {
        min-width: 900px;
        max-width: 1000px;
    }

    .column_pop {
        flex: none;
        text-align: left;
        width: 100%;
        margin-top: 20px;
        min-width: 900px;
        max-width: 1000px;
        margin-bottom: 20px;
    }

    .column_pop > h2 {
        font-size: 1.5rem;
    }

    .column_pop > p {
        font-size: 1rem;
    }
}

/* Responsive Anpassungen */
@media (max-width: 900px) {
    
    .statistik-container {
        min-width: 550px;
        max-width: 780px;
    }

    .column_pop {
        flex: none;
        text-align: left;
        
        margin-top: 20px;
        min-width: 550px;
        max-width: 780px;
        margin-bottom: 20px;
    }

    .column_pop > h2 {
        font-size: 1.5rem;
    }

    .column_pop > p {
        font-size: 1rem;
    }

    /* Neue CSS-Regeln für die select-Box */
    #populationChart-select {
    background-color: orange; /* Hintergrundfarbe */
    color: black;              /* Schriftfarbe */
    font-size: 0.7em;          /* Schriftgröße anpassen */
    padding: 4px 4px;        /* Innenabstand für bessere Optik */
    border: 1px solid #00796b; /* Rahmenfarbe und -breite */
    border-radius: 4px;       /* Abgerundete Ecken */
    appearance: none;         /* Entfernt das Standard-Aussehen */
        -webkit-appearance: none; /* Für Safari */
        -moz-appearance: none;    /* Für Firefox */
    width: 50%;              /* Volle Breite innerhalb des Containers */
}
}


@media (max-width: 768px) {

    .statistik-container {
        min-width: 350px;
        max-width: 370px;
    }

    .column_pop {
        flex: none;
        text-align: left;
        margin-top: 20px;
        min-width: 350px;
        max-width: 370px;
        margin-bottom: 20px;
    }

    .column_pop > h2 {
        font-size: 1.5rem;
    }

    .column_pop > p {
        font-size: 1rem;
    }


    /* Neue CSS-Regeln für die select-Box */
    #populationChart-select {
        background-color: orange; /* Hintergrundfarbe */
        color: black;              /* Schriftfarbe */
        font-size: 0.7em;          /* Schriftgröße anpassen */
        padding: 4px 4px;        /* Innenabstand für bessere Optik */
        border: 1px solid #00796b; /* Rahmenfarbe und -breite */
        border-radius: 4px;       /* Abgerundete Ecken */
        appearance: none;         /* Entfernt das Standard-Aussehen */
            -webkit-appearance: none; /* Für Safari */
            -moz-appearance: none;    /* Für Firefox */
        width: 100%;              /* Volle Breite innerhalb des Containers */
    }


    /* Optional: Styling für die Optionen (eingeschränkt durch Browser) */
    #populationChart-select option {
        font-size: 1em;
    }

    /* Styling für das Dropdown-Pfeil-Symbol */
    .input-group::after {
        content: '▼'; /* Dropdown-Pfeil */
        position: relative;
        top: 10px;
        left: -30px;
        right: 1em;
        transform: translateY(-50%);
        pointer-events: none;
        color: black; /* Farbe des Pfeils */
        font-size: 1em;
    }
}
