/* Allgemeine Stile */
body {
    overflow-x: hidden;
    min-width: 800px;
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
    margin: 0;
    
   
}

/* Hauptcontainer */
.container {
    -webkit-appearane:none;
    -moz-appearance:none;
    -ms-appearance:none;
    -o-appearance:none;
    appearance:none;
    font-size: 14px;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 70%;
    text-align: center;
    /*margin-top: 20px; / Genug Abstand zum Header */
}
.container-small{ 
    -webkit-appearane:none;
    -moz-appearance:none;
    -ms-appearance:none;
    -o-appearance:none;
    appearance:none;
    font-size: 14px;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 50%;
    text-align: center;
    margin-top: 4rem;
}

h1 {
    margin-bottom: 20px;
}
h2 {
    margin-bottom: 10px;
}
h3 {
    margin-bottom: 10px;
}

h4 {
    margin-bottom: 5px;
}

/* Buttons */
button {
    padding: 6px 12px; /* Kompaktere Buttons */
    font-size: 14px;
    background-color: #001b41; /* Grün */
    border: 1px solid #001b41;
    color: white;
   
    font-size: 12px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    transition-duration: 0.3s;
}

button:hover {
    background-color: white;
    color: black;
    border: 1px solid #4CAF50;
}

/* Links */
a {
    text-decoration: none;
    color: rgb(26, 24, 24);
}

/* Fehleranzeige */
.error {
    color: red;
    margin: 10px 0;
}
.impressum-link {
    margin-top: 20px;
    font-size: 12px;
    text-align: center;
}
.message-box {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* Navbar-Styling */
.navbar {
    width: 73%;  /* Begrenzte Breite */
    max-width: 1350px;  /* Maximale Breite */
    min-height: 10px; /* Setzt eine Mindesthöhe */
    background-color: #001b41;
    color: white;
    /*padding: 10px 10px;   Mehr Platz innen */
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%); /* Navbar mittig zentrieren */
    z-index: auto;
    display: flex;
    
    align-items: center;
    border-radius: 8px; /* Leichte Abrundung */
}

.active-contract {
    background-color: #d4edda !important; /* Helles Grün mit Priorität */
    color: #155724 !important; /* Dunklere Schrift für besseren Kontrast */
    font-weight: bold !important;
}
/* Navigationselemente */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    width: 100%;
    justify-content: center;  /* Menü mittig ausrichten */
}

.nav-item {
    position: relative;
    margin-right: 20px;
}

.nav-item a {
    color: #dedc00;
    text-decoration: none;
    padding: 10px;
    display: block;
}
/* Hauptinhalt mit Abstand zur Navbar */
.main-content {
    margin-top: 50px; /* Statt fester 30px */
   /* margin-top: 30px;   Platz für die feste Navbar schaffen */
    display: flex;
    justify-content: center;
}

/* Dropdown-Menüs */
.dropdown-menu {
    position: absolute;
    left: 0;
    top: 100%;
    display: none;
    background-color: #444;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu li {
    border-bottom: 1px solid #555;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    padding: 10px;
    display: block;
    color: white;
}

.dropdown-menu a:hover {
    background-color: #555;
}

/* Benutzeranzeige */
.user-info {
    font-weight: bold;
    text-decoration: none;
    color: #dedc00;
    font-size: 14px;
    padding: 0 30px;  /* Links & rechts Abstand */
    white-space: nowrap; /* Kein Zeilenumbruch */
}



/* Dropdown anzeigen bei Hover */
.nav-item:hover .dropdown-menu {
    display: block;
}



.content {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
.sidebar {
    width: 30%;
}
.main {
    width: 65%;
}
.info-box {
    background: #eef;
    padding: 15px;
    border-radius: 5px;
}

.header {
    background-color: #dedc00; /* Gelbe Hintergrundfarbe */
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    width: 95%;  /* Gleiche Breite wie die Tabelle */
    max-width: 1250px; /* Optional: Begrenzung der maximalen Breite */
    margin: 0 auto; /* Zentrieren */
}

.header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.header p {
    font-size: 16px;
    color: #666;
}

hr {
    border: none;  /* Standard-Rahmen entfernen */
    height: 2px;  /* Höhe der Linie */
    background-color: #001b41;  /* Farbe (Blau) */
    margin: 20px 0;  /* Abstand nach oben und unten */
}

.stat-section { 
    display: flex; 
    justify-content: space-between; 
    align-items: stretch; 
    margin-top: 20px; 
}

.stat-box {
    font-size:14px; 
    font-weight: bold; 
    color: #dedc00; 
    background-color: #001b41; 
   
    padding: 10px; 
    border: 1px solid #ccc; 
    border-radius: 5px; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.text-red {
    color: red; /* Setzt die Schriftfarbe auf Rot */
    font-weight: bold; /* Optional für bessere Sichtbarkeit */
}
/*Monatliche Darstellung der Barwerte im Chart --------------------------------------*/
.chart-wrapper {
    width: 100%;
    /*max-width: 800px; /* oder was du möchtest */
    margin: 0 auto;   /* zentriert optional */
    position: relative; /* wichtig für Canvas in Chart.js */
}

#barwertChart {
    width: 100% !important;  /* Wichtig, um die Standard-Angaben zu überschreiben */
    height: 250px !important; /* z.B. feste Höhe, die du anpassen kannst */
}
/*-----------------------------------------------------------------------------------*/

#erfuellungChart {
    max-width: 500px;
    max-height: 50px;  /*Setzt eine feste Höhe */
    width: 100%;
    height: auto;
}
.chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 20px; /* Optional für Abstand nach oben */
}

.chart-container h2 {
    margin-bottom: 10px; /* Abstand zwischen Überschrift & Chart */
    font-size: 20px; /* Optional für größere Schrift */
    font-weight: bold;
}

.dashboard-top {
    margin-top: -30px; /* Reduziert den Abstand nach oben */
    display: flex; 
    justify-content: space-between; /* Abstand zwischen den Boxen */
    align-items: center; /* Vertikale Zentrierung */
    flex-wrap: wrap; /* Falls der Bildschirm zu schmal ist, untereinander anzeigen */
    gap: 20px; /* Abstand zwischen den Elementen */
    margin-bottom: 20px; /* Abstand nach unten */
}

.chart-box {
    flex: 1; /* Nimmt 50% der verfügbaren Breite */
    min-width: 300px; /* Mindestbreite für kleinere Bildschirme */
}

.form-box {
    flex: 1; /* Ebenfalls 50% der Breite */
    min-width: 400px;
}

.submit-container {
    display: flex;
    color: #dedc00 !important;
    gap: 10px; /* Abstand zwischen Buttons */
}

.submit-container button[type="submit"] {
    color: #dedc00;
}
.submit-container button:hover {
    background-color: #dedc00;
    color: black;
}

#help-btn {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #edc6f5;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
}

#help-btn:hover {
    background-color: #f5c6cb;
}

/* Modal-Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    width: 50%;
    text-align: center;
}

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

/* .analysis-table tr.highlighted-row {
    background-color: #fff3cd !important;
} */
 .highlighted-row {
    background-color: #fff3cd;
    animation: pulseHighlight 0.3s ease-in-out;
}

@keyframes pulseHighlight {
    0%   { background-color: red; }
    100% { background-color: #fff3cd; }
}
