
/* Basics */

body {
    font-family:Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    width: 95%;
    max-width: 840px;
    margin: auto;
    overflow: hidden;
}

.quelle {
    width: 100%;
    font-size: 14px;
    color: grey;
    background-color: #ffffff;

}

/* Mobile Navigation (Burger-Menü) */
.mobile-nav {
    background: #333;
    color: white;
    padding: 10px;
    text-align: left;
}

.menuToggle {
    display: none;
}

.menuIcon {
    display: none;
    cursor: pointer;
}

.menuIcon .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color:rgb(255, 255, 255);
}

#menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#menu li a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
}

@media only screen and (max-width: 600px) {
    .menuIcon {
        display: block;
    }

    #menuToggle:checked + .menuIcon + #menu {
        display: block;
    }

    #menu {
        display: none;
    }
}

/* Suchfeld-Container */
.search-container {
    max-width: 99%;
    margin: auto;
    padding: 20px;
    background-color:aliceblue;
    border-radius: 4px;
}

.radio-buttons {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.radio-buttons label {
    cursor: pointer;
    margin-left: -10px; /* Anpassen für bessere Platzierung */
}

.radio-buttons input[type="radio"] {
    margin-right: 5px;
}

#searchInput {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    color: #004494;
    margin-bottom: 15px;
    border: 1px solid #858585;
    border-radius: 4px;
    
}

#searchForm button {
    width: 100%;
    padding: 10px;
    background-color: #0056b3;
    color: white;
    border: none;
    font-weight: 600;;
    border-radius: 4px;
    cursor: pointer;
}

#searchForm button:hover {
    background-color: #004494;
}

/* Ergebnistabelle */

#table-container {
    display: none; /* Versteckt die Tabelle beim Laden der Seite */
    max-width: 100%;
    margin: 20px auto;
    overflow-x: auto; /* Ermöglicht horizontales Scrollen bei Bedarf */
}

#chargingStationsTable {
    width: 100%;
    border-collapse: collapse;
}

#chargingStationsTable th {
    background-color: #000000; 
    color: white;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

#chargingStationsTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;

}

#chargingStationsTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#chargingStationsTable tr:hover {
    background-color: #eef4ff; /* Farbe beim Hover */
    cursor: pointer; /* Zeigt an, dass die Zeile klickbar ist */
}

@media only screen and (max-width: 600px) {
    .table-container, #searchInput {
        width: 100%;
    }
}

/* Tabelle */
table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

@media only screen and (max-width: 600px) {
    #chargingStationsTable {
        font-size: 14px; /* Verkleinern der Schriftgröße */
    }
}



/* Infolayer */

.modal-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    text-align: center;
    font-size: 14px; /* Anpassung der Schriftgröße */
    line-height: 1.5; /* Verbesserung der Lesbarkeit */
}

.modal-content h3 {
    margin-bottom: 15px;
    color: #0056b3; /* Farbanpassung für den Titel */
}

.modal-content p {
    margin-bottom: 10px;
    text-align: left; /* Links ausgerichteter Text */
}

.modal-content a {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    width: 80%;
    text-decoration: none;
}

.close-modal {
    display: block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #f44336;
    color: white;
    border: none;
    float: right;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px; 
} 

@media only screen and (max-width: 600px) {
    #chargingStationsTable {
        font-size: 14px; /* Anpassung der Schriftgröße */
        width: 100%; /* Stellen Sie sicher, dass die Tabelle nicht breiter als der Bildschirm ist */
    }
}

