/* Grundlayout und Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    background-color: #1e88e5;
    color: #fff;
    padding: 20px;
    text-align: center;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Chart-Container und Abschnitt */
.chart-section, #realtime-section {
    width: 80%;
    max-width: 800px;
    margin-bottom: 40px;
    background-color: #fff;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden; /* Verhindert das „Herausrutschen“ */
}

.chart-container {
    width: 100% !important;
    max-height: 400px !important; /* Maximale Höhe für Diagramme festlegen */
    height: 400px; /* Standard-Höhe für Diagramme */
}

/* Modal-Overlay für Detailansicht */
/* Versteckt das Modal standardmäßig */
.dialog-overlay {
    display: none; /* Standardmäßig ausgeblendet */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}


.dialog-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    max-height: 80%;
    overflow-y: auto; /* Scrollbar bei Überlauf */
}

.close-btn {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .chart-section {
        width: 90%;
    }
}

.language-buttons {
    margin: 20px 0;
}

.language-button {
    display: inline-block;
    margin: 0 5px;
    padding: 10px 15px;
    background-color: #1e88e5;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.language-button:hover {
    background-color: #1565c0;
}


.footer-links {
    margin-top: 20px;
    padding: 20px;
    background-color: #f4f4f9;
    border-top: 1px solid #ddd;
    text-align: center; /* Zentriert den Text */
}

.footer-links ul {
    list-style-type: none;
    padding: 0;
    margin: 0; /* Entfernt die Standard-Margin */
}

.footer-links li {
    margin: 5px 0;
}

.footer-links a {
    color: #1e88e5;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}
.footer-banners {
    margin-top: 20px;
    padding: 20px;
    background-color: #f4f4f9;
    border-top: 1px solid #ddd;
}

.footer-banners h2 {
    margin-bottom: 10px;
}

.footer-banners .banner {
    margin: 10px 0;
}

.footer-banners img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s;
}

.footer-banners img:hover {
    transform: scale(1.05);
}

.banner-section {
    margin-bottom: 20px; /* Abstand nach unten */
    text-align: center;  /* Zentriert den Inhalt */
}

.banner-img {
    margin: 0 auto; /* Zentriert das Bild horizontal */
}
