﻿/* ---------------- Global Styles ---------------- */

body {
    /* Global body styles können hier hinzugefügt werden */
    height: 800px !important;
}

#header {
    z-index: 100;
}

#footer_menue {
    padding: 15px;
    background-color: #1C1C1E !important;
    color: white;
    font-size: 15px;
    text-align: center !important;
}

#logo-img_footer_menue {
    max-height: 80px !important;
    width: auto !important;
    margin-right: auto !important;
    margin-left: 20px !important;
}

/* ---------------- Webseite / Header ---------------- */

#header-container-website {
    padding: 120px !important; /* Abstand je nach Header-Höhe */
    background-color: darkgrey;
    position: center;
    text-align: center !important;
}

/* ---------------- Tabelle (MyDevices) ---------------- */

#custom-table {
    border-radius: 8px;
    overflow: hidden;
}

.custom-table th {
    background-color: dimgrey;
    color: white;
    text-align: center;
}

.custom-table td {
    text-align: center;
    vertical-align: middle;
}

.custom-table button {
    padding: 4px 8px;
}

/* ---------------- Piechart ---------------- */

#piechart {
    text-anchor: middle !important;
    dominant-baseline: middle !important;
}

/* ---------------- Header ---------------- */

#header-bar {
    background-color: #1C1C1E !important;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0 !important;
    z-index: 100 !important;
    position: relative;
    max-height: 65px !important;
}

/* ---------------- Global Container Einstellungen ---------------- */

/* Container für Seiteninhalte, z. B. für Header-Platz etc. */
#container {
    justify-content: space-between;
    padding-top: 60px !important; /* Platz für den Header */
    flex-direction: column; /* Elemente (Cards) übereinander anordnen */
}

/* Container für mehrere Cards in einer Reihe – standardmäßig vertikal angeordnet */
#container-row {
    display: flex;
    flex-wrap: wrap; /* Elemente umbrechen, wenn nicht genügend Platz vorhanden ist */
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 1200px; /* Maximale Breite für gute Lesbarkeit */
}




/* ---------------- Card-spezifische Einstellungen ---------------- */

/* Card Styling für spezielle Fälle (z. B. Login/Register) */
#card-with-spacing {
    margin-top: 40px;
    border: 1px solid #e0e0e0;
    justify-content: space-between;
    align-items: initial;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 300px; /* Cards nicht kleiner als 300px werden lassen */
}

/* Allgemeine Card Einstellungen */
#card {
    margin: 50px !important;
    justify-content: space-between;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    /* Hover-Effekt für Cards */
    #card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    }


/* Card Title Styling */
.card-title,
#card-title {
    font-weight: bold !important;
    font-size: 25px;
    margin-bottom: 20px !important;
}


/* Falls du einzelne Cards in einer Zeile platzierst */
#cardonerow {
    flex: 1;
    margin: 20px;
    height: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ---------------- Sidebar ---------------- */

#side-menue {
    background-color: #1C1C1E !important;
}

#slide_menue_elements {
    color: white;
}

/* Abstand im Side-Menü zwischen Elementen */
#slide_menu_elements span {
    margin-left: 8px;
    display: inline-block;
}

/* Bei komprimiertem Side-Menü */
.sidebar-collapsed #slide_menu_elements span {
    margin-left: 0;
    display: none;
}

/* Logo */
#logo-img {
    max-height: 65px !important;
    width: auto !important;
    margin-right: auto !important;
}

/* Icon Styling */
#baricon {
    max-width: 24px;
    max-height: 24px;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ---------------- Config Page ---------------- */

#configfields {
    margin: 20px !important;
    font-weight: 500 !important;
    font-size: 17px !important;
}

/* ---------------- Info Icons ---------------- */

#info-icons-charts {
    height: 20px !important;
    width: 10px !important;
    color: black;
    border-radius: 2px;
    border-color: black;
}

/* ---------------- Labels & Form Fields ---------------- */

#fieldlabel {
    font-size: 15px;
}

.input-field {
    width: 100%;
    font-size: 1rem;
    padding: 5px;
    background-color: white;
}

input[readonly] {
    color: black !important;
}

/* ---------------- Tabelle Styling ---------------- */

table {
    width: 100%;
    table-layout: auto;
}

th, td {
    text-align: left;
    padding: 10px;
}

/* ---------------- Mini Cards ---------------- */

#mini_cards {
    margin: 10px;
    background-color: white;
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    height: 100px;
}

/* ---------------- Layout for Table Rows ---------------- */

.table-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Horizontal Labels */
.horizontal-label {
    display: inline-block;
    white-space: nowrap;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ---------------- Map Container & Map Card ---------------- */

#map-container {
    justify-content: center;
    padding-top: 60px !important;
    flex-direction: column;
}

#map-card {
    width: 100% !important;
    margin: 200px auto !important;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#map-wrapper {
    height: 700px !important;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f5f5f5;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#map1 {
    height: 100%;
    width: 100%;
}

/* ---------------- Maps Marker Window ---------------- */

#maps_marker_window {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 500px;
}

#maps_marker_window_titel {
    font-weight: 700;
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

#maps_marker_window_text {
    font-size: 16px;
    font-weight: 700;
    color: #666;
    margin-top: 5px;
    margin-right: 40px;
}

/* ---------------- Responsive Anpassungen bei geöffnetem Side-Menü ---------------- */

/* Falls das Side-Menü geöffnet ist, könnte dem Body oder einem Wrapper z. B. die Klasse "side-menu-open" hinzugefügt werden.
   Hier wird dann der Content-Bereich in der Breite reduziert, sodass keine Überlappung entsteht. */
.side-menu-open #container,
.side-menu-open #container-row,
.side-menu-open .mud-card-content {
    margin-left: 240px; /* Beispiel: Breite des Side-Menüs */
    width: calc(100% - 240px);
}

/* Zusätzlich: Bei kleineren Viewports generell Reduzierung von Margin/Padding, damit Inhalte nicht überlappen */
@media (max-width: 1200px) {
    #container,
    #container-row {
        padding-left: 20px;
        padding-right: 20px;
        margin-left: 0;
        width: 100%;
    }

    #card, #card-with-spacing, #cardonerow {
        margin: 20px !important;
        padding: 15px !important;
    }

    .mud-card-content {
        gap: 15px;
    }

        .mud-card-content > * {
            flex: 1 1 100%;
        }
}
