
:root {
    --primary-color: #344940;
    --secondary-color: #2A2A2A;
    --text-color: #333;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Sorgt für ein konsistentes Box-Modell */
}


html {
    font-size: 14px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html, body {
    height: 100%;
    margin: 0; /* Entfernt Standard-Margin des Browsers */
    display: flex;
    flex-direction: column; /* Stellt sicher, dass die Inhalte vertikal angeordnet sind */
}

main {
    flex-grow: 1; /* Hauptinhalt füllt den freien Platz */
}

footer {
    display: flex;
    /*height: 4.5em;*/
    /*padding: 1rem;*/
    text-align: center;
    justify-content: center;
    flex-shrink: 0; /* Footer wird nicht zusammengedrückt */
}


/*=============== NAVBAR Visibility ===============*/

/* Standard-Navbar für Desktop */
.navbar-desktop {
    display: block;
}

/* Standard-Navbar für mobile Geräte (versteckt auf Desktop) */
.navbar-mobile {
    display: none;
}

.navbar-toggler-custom{
    border-color: white;
}

.navbar-toggler-icon {
    color: white;
}


.btn-close-white{
    color: white;
}


.form-signin{
    max-width: 600px;
    width: 80%;
}

/* Button Table dark */
.icon-button-edit {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: white;
}

    .icon-button-edit:hover {
        color: var(--primary-color);
    }

.icon-button-trash {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: white;
}

    .icon-button-trash:hover {
        color: red;
    }

/* Button Table light */
.icon-button-edit-light {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: black;
}

    .icon-button-edit-light:hover {
        color: green;
    }

.icon-button-trash-light {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: black;
}

    .icon-button-trash-light:hover {
        color: red;
    }


.table-button-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0.2em, 1fr));
    gap: 1.5em;
    justify-content: center;
    align-items: end;
}

.button-popup-header-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0.2em, 1fr));
    gap: 0.01em;
    justify-content: center;
    align-items: center;
}



/* ----------------------------- */
/* Section Navebar               */
/* ----------------------------- */
.navbar {
    background: var(--secondary-color);
}

.navbar-logo {
    width: 2em;
    height: 2em;
    margin-right: 0.5em;
}

/* ----------------------------- */
/* Section Webpage Slider        */
/* ----------------------------- */
#carouselExampleDark {
    width: 100%;
    margin-bottom: 2rem; /* Abstand zwischen Karussell und Suchbox */
    z-index: 2;
}

.carousel-inner {
    height: 15em;
}

.carousel-item {
    height: 15em;
}

.carousel-svg {
    height: 15em;
    width: 100%;
}

/* ----------------------------- */
/* Section MapView               */
/* ----------------------------- */
.map-container {
    flex-grow: 1;
    position: absolute;
    width: 100%;
    top: 18.5em; /*Startpunkt der Karte*/
    left: 0;
    right: 0;
    bottom: 1.5rem;
    z-index: 0; /* Karte liegt auf dem Ground Layer */
}

/*flex-grow: 1;
position: absolute;
top: 13.5em;*/ /*Startpunkt der Karte*/
/*left: 0;
right: 0;
bottom: 3em;
z-index: 0;*/ /*Karte liegt auf dem Ground Layer*/
#map {
    width: 100%;
    height: 100%;
}

/* ----------------------------- */
/* Section Map Popup             */
/* ----------------------------- */
.container-map-popup {
    background: transparent;
    color: white;
    border-radius: 0.5em;
    width: 150px;
/*    padding: 1em;
*/    text-align: center;
    /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);*/
}

    .container-map-popup .h {
        font-weight: normal;
        font-size: 1em;
        /*margin-bottom: 0.2em;*/
    }

    .container-map-popup p {
        /*margin: 0.2em 0;*/
        font-size: 0.9em;
    }

/*.btn-map-popup {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

    .btn-map-popup:hover {
        background: #2980b9;
    }*/

.icon-button-more {
    background: none;
    border: none;
    padding: 0em 0.2em 0em 0em;
    cursor: pointer;
    color: white;
    font-size: 1.5em;
}

    .icon-button-more:hover {
        color: var(--primary-color);
    }

/* Ändert den Hintergrund des Popup-Containers */
.leaflet-popup-content-wrapper {
    background-color: var(--secondary-color); /* Dunkler Hintergrund */
    color: var(--text-color); /* Helle Schriftfarbe */
    border-radius: 10px; /* Abgerundete Ecken */
    z-index: 100;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);*/ /* Schatten für einen 3D-Effekt */
}

/* Ändert den Rahmen des Popups */
.leaflet-popup-tip {
    background: var(--secondary-color); /* Gleiche Farbe wie der Popup-Hintergrund */
}

/* Styling für den Popup-Inhalt */
.leaflet-popup-content {
    font-size: 10px; /* Schriftgröße */
    font-family: Roboto, sans-serif; /* Schriftart */
    padding: 1.2em; /* Innenabstand */
    text-align: center; /* Zentriert den Text */
    justify-content: center;
    z-index: 100;
}

    /* Entfernt Standardmargins */
    .leaflet-popup-content p {
        margin: 0.5em;
    }

    /* Style für Links im Popup */
    .leaflet-popup-content a {
        color: var(--primary-color); /* Blaue Links */
        text-decoration: none; /* Keine Unterstreichung */
    }

        .leaflet-popup-content a:hover {
            text-decoration: underline; /* Unterstreichung beim Hover */
        }


/* ----------------------------- */
/* Section Entity Detail View    */
/* ----------------------------- */
.modal-detail-popup .modal-content {
    background-color: var(--secondary-color); /* Hintergrundfarbe Popup */
    border-radius: 8px; /* Abgerundete Ecken */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Schatten */
}

.modal-detail-popup .modal-header {
    background-color: var(--secondary-color); /* Kopfzeilen-Hintergrund */
    color: #fff; /* Kopfzeilen-Textfarbe */
    border-bottom: 2px solid var(--secondary-color); /* Kopfzeilen-Rahmen */
}

.modal-detail-popup .modal-footer {
    background-color: var(--secondary-color); /* Footer-Hintergrund */
    border-top: 1px solid #ddd; /* Footer-Rahmen */
}

.modal-detail-popup .btn {
    background-color: var(--primary-color); /* Hintergrundfarbe der Buttons */
    color: #fff; /* Textfarbe */
    border: none; /* Ohne Rahmen */
    padding: 10px 20px; /* Abstand */
    border-radius: 5px; /* Abgerundete Ecken */
    transition: background-color 0.3s ease; /* Übergangseffekt */
}

    .modal-detail-popup .btn:hover {
        background-color: var(--hover-color); /* Farbe beim Hover */
        color: #ddd; /* Optional: Hover-Textfarbe */
    }

.modal-detail-popup .btn-close svg {
    fill: #fff; /* Farbe des SVG-Icons */
}

.modal-detail-popup .btn-close:hover svg {
    fill: #ddd; /* Farbe beim Hover */
}

.modal-detail-popup .btn-close {
    background-color: transparent; /* Hintergrund transparent */
    color: #fff; /* Symbolfarbe */
    opacity: 1;
    font-size: 0.8rem; /* Symbolgröße */
}

    .modal-detail-popup .btn-close:hover {
        color: #ddd; /* Hellere Farbe beim Hover */
        opacity: 0.8; /* Leicht transparenter beim Hover */
    }

    .modal-detail-popup .btn-close:focus {
        box-shadow: none; /* Entfernt den Standard-Fokusrahmen */
        outline: none; /* Keine Umrandung bei Fokus */
    }

.modal-detail-popup .modal-title {
    font-size: 1.8rem; /* Titel-Schriftgröße */
    font-weight: bold; /* Fettschrift */
    color: var(--primary-text-color); /* Titel-Farbe */
}

.modal-detail-popup .modal-body {
    font-size: 1rem; /* Text-Schriftgröße */
    line-height: 1.5; /* Zeilenhöhe */
    font-family: Arial, sans-serif; /* Schriftart */
    color: white;
}

.modal-detail-popup .modal-footer .btn {
    font-size: 0.9rem; /* Button-Schriftgröße */
}



.container img {
    max-width: 100%; /* Verhindert, dass das Bild breiter als der Container wird */
    height: auto; /* Beibehaltung des Seitenverhältnisses */
    display: block; /* Entfernt unerwünschte Abstände (optional) */
}

.btn-no-background {
    background: none; /* Kein Hintergrund */
    color: white; /* Textfarbe */
    cursor: pointer; /* Zeigt, dass der Button klickbar ist */
}

/* ----------------------------- */
/* Section Under Construction    */
/* ----------------------------- */
.form-underConstrution {
    width: 100%;
    max-width: 330em;
    padding: 15px;
    margin: auto;
}

.icon-underConstrution {
    font-size: 5em;
}

/* ----------------------------- */
/* Section Search Box            */
/* ----------------------------- */
.containerMainSearch {
    background: white;
    padding: 2em;
    border-radius: 12px; /* Beispiel für eine fixe Rundung */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 600px;
    margin-top: 1rem; /* Optionaler Effekt, um die Box relative zum Karussell zu verschieben */
}

.search-container {
    display: flex;
    gap: 1em;
    margin-bottom: 2em;
}

    .search-container input {
        flex: 1;
        padding: 1em;
        font-size: 1em;
        border: 2px solid var(--secondary-color);
        border-radius: var(--border-radius);
        outline: none;
        z-index: 10;
    }

    .search-container button {
        padding: 1em 1.5em;
        font-size: 1em;
        color: white;
        background-color: var(--secondary-color);
        border: none;
        border-radius: var(--border-radius);
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.2s ease;
        z-index: 10;
    }

        .search-container button:hover {
            background-color: var(--primary-color);
            transform: translateY(-2px);
        }

.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5em;
}

.category-button {
    background: var(--secondary-color);
    padding: 1.5em;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 10;
}

    .category-button:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
        background: var(--primary-color);
    }


/* ----------------------------- */
/* Section SignIn Form           */
/* ----------------------------- */
.form-signin {
    width: 100%;
    max-width: 330px;
    padding: 15px;
    margin: auto;
    
}

    .form-signin .checkbox {
        font-weight: 400;
    }

    .form-signin .form-floating:focus-within {
        z-index: 2;
    }

    .form-signin input[type="email"] {
        margin-bottom: -1px;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    .form-signin input[type="password"] {
        margin-bottom: 10px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    .form-signin button {
        background-color: var(--primary-color);
    }

/* ----------------------------- */
/* Section Register Form         */
/* ----------------------------- */
.registerFormStyle {
    width: 100%;
    max-width: 330px;
    padding: 15px;
    margin: auto;
}

    .registerFormStyle .form-floating:focus-within {
        z-index: 2;
    }

    .registerFormStyle input[type="email"] {
        margin-bottom: -1px;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    .registerFormStyle input[type="password"] {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    .registerFormStylePasswordMiddleInputBox {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .registerFormStyle button {
        background-color: var(--primary-color);
    }

/* ----------------------------- */
/* Section ForgotPassword Form   */
/* ----------------------------- */

.forgotPasswordForm {
    width: 100%;
    max-width: 330px;
    padding: 15px;
    margin: auto;
}

    .forgotPasswordForm button {
        background-color: var(--primary-color);
    }


/* ----------------------------- */
/* Section ForgotPassword Form   */
/* ----------------------------- */

.search-container {
    position: relative;
}

.search-input {
    height: 50px;
    border-radius: 30px;
    padding-left: 35px;
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #888;
}

/* ----------------------------- */
/* Mobile Screen Sizes           */
/* 360x800 - 328x926 - 390x844   */
/* ----------------------------- */
@media screen and (max-width: 768px) {
    html {
        font-size: 12px;
    }

    /* Carousel Anpassungen */
    .carousel-inner {
        height: 10em;
    }

    .carousel-item {
        height: 10em;
    }

    .carousel-svg {
        height: 10em;
        width: 100%;
    }

    /* Map Anpassungen */
    .map-container {
        flex-grow: 1;
        position: relative;
        width: 100%;
        top: 13.5em;  /*Startpunkt der Karte*/ 
        left: 0;
        right: 0;
        bottom: 3em;
        z-index: 0;  /*Karte liegt auf dem Ground Layer*/ 
    }

    /* Search Anpassungen */
    .search-container {
        display: flex;
        gap: 0.5em;
        margin-bottom: 0.5em;
    }

        .search-container input {
            flex: 1;
            padding: 0.9em;
            font-size: 0.8em;
            border: 2px solid var(--secondary-color);
            border-radius: 6px;
            outline: none;
            height: 0.8em;
            z-index: 10;
        }

        .search-container button {
            display: flex; /* Flexbox aktivieren */
            align-items: center; /* Vertikale Zentrierung */
            justify-content: center; /* Horizontale Zentrierung */
            font-size: 0.8em;
            color: white;
            background-color: var(--secondary-color);
            border: none;
            border-radius: 6px;
            cursor: pointer;
            height: 2em; /* Feste Höhe für konsistente Darstellung */
            padding: 1.1em 2em; /* Horizontaler Abstand */
            z-index: 10;
        }

            .search-container button:hover {
                background-color: var(--primary-color);
                transform: translateY(-2px);
            }

    .categories-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.5em;
    }

    .category-button {
        display: flex; /* Flexbox aktivieren */
        background: var(--secondary-color);
        padding: 1.1em 2em; /* Horizontaler Abstand */
        height: 2em; /* Feste Höhe für konsistente Darstellung */
        border-radius: 6px;
        align-items: center; /* Vertikale Zentrierung */
        justify-content: center; /* Horizontale Zentrierung */
        font-size: 0.8em;
        box-shadow: var(--shadow);
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        z-index: 10;
    }

        .category-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
            background: var(--primary-color);
        }

    /* Carousel */
    #carouselExampleDark {
        width: 100%;
        margin-bottom: 0.1rem; /* Abstand zwischen Karussell und Suchbox */
    }

    /* ----------------------------- */
    /* Section Entity Detail View    */
    /* ----------------------------- */
    .modal-detail-popup .modal-content {
        background-color: var(--secondary-color); /* Hintergrundfarbe Popup */
        border-radius: 8px; /* Abgerundete Ecken */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Schatten */
    }

    .modal-detail-popup .modal-header {
        background-color: var(--secondary-color); /* Kopfzeilen-Hintergrund */
        color: #fff; /* Kopfzeilen-Textfarbe */
        border-bottom: 2px solid var(--secondary-color); /* Kopfzeilen-Rahmen */
    }

    .modal-detail-popup .modal-footer {
        background-color: var(--secondary-color); /* Footer-Hintergrund */
        border-top: 1px solid #ddd; /* Footer-Rahmen */
    }

    .modal-detail-popup .btn {
        background-color: var(--primary-color); /* Hintergrundfarbe der Buttons */
        color: #fff; /* Textfarbe */
        border: none; /* Ohne Rahmen */
        padding: 10px 20px; /* Abstand */
        border-radius: 5px; /* Abgerundete Ecken */
        transition: background-color 0.3s ease; /* Übergangseffekt */
    }

        .modal-detail-popup .btn:hover {
            background-color: var(--hover-color); /* Farbe beim Hover */
            color: #ddd; /* Optional: Hover-Textfarbe */
        }

    .modal-detail-popup .btn-close svg {
        fill: #fff; /* Farbe des SVG-Icons */
    }

    .modal-detail-popup .btn-close:hover svg {
        fill: #ddd; /* Farbe beim Hover */
    }

    .modal-detail-popup .btn-close {
        background-color: transparent; /* Hintergrund transparent */
        color: #fff; /* Symbolfarbe */
        opacity: 1;
        font-size: 0.8rem; /* Symbolgröße */
    }

    .modal-detail-popup .modal-title {
        font-size: 1.6rem; /* Titel-Schriftgröße */
        font-weight: bold; /* Fettschrift */
        color: var(--primary-text-color); /* Titel-Farbe */
    }

    .modal-detail-popup .modal-body {
        font-size: 0.9rem; /* Text-Schriftgröße */
        line-height: 1.1; /* Zeilenhöhe */
        font-family: Arial, sans-serif; /* Schriftart */
        color: white;
    }

    .modal-detail-popup .modal-footer .btn {
        font-size: 0.9rem; /* Button-Schriftgröße */
    }

    .modal-detail-popup-contact-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(80px, 2fr));
        gap: 1.5em;
    }


    /* ----------------------------- */
    /* Section Tabellen Layout       */
    /* ----------------------------- */
    .table-product-custom {
        background-color: transparent;
    }

    tr:hover {
        color: white;
    }

}


@media screen and (min-width: 769px) {

    .modal-detail-popup-contact-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 2fr));
        gap: 1.5em;
    }
    
    /* ----------------------------- */
    /* Section Map View              */
    /* ----------------------------- */
    .map-container {
        flex-grow: 1;
        position: absolute;
        width: 100%;
        top: 18.5em;
        left: 0;
        right: 0;
        bottom: 1.5rem;
        z-index: 0;
    }
}

@media screen and (max-width: 768px) {

    .modal-detail-popup-contact-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 2fr));
        gap: 1.5em;
    }

    /* ----------------------------- */
    /* Section Map View              */
    /* ----------------------------- */
    .map-container {
        flex-grow: 1;
        position: absolute;
        width: 100%;
        top: 8.5em;
        left: 0;
        right: 0;
        bottom: 1.5rem;
        z-index: 0;
    }
}

/* Auf mobilen Geräten Navbar für Desktop verstecken und Navbar für Mobile anzeigen */
@media (max-width: 768px) {
    .navbar-desktop {
        display: none;
    }

    .navbar-mobile {
        display: block;
    }
}

/* Entferne Standard-Link-Stile */
.card-link {
    text-decoration: none; /* Entfernt den Unterstrich */
    color: inherit; /* Behält die Textfarbe der Card */
    /*display: block;*/ /* Macht die Card voll klickbar */
    margin: 0;
    padding: 0;
}

    /* Optional: Hover-Effekt für visuelles Feedback */
    .card-link .card:hover {
        cursor: pointer; /* Zeigt an, dass die Card klickbar ist */
        transform: none;
    }

.card-wrapper {
    transition: opacity 0.2s ease-in-out;
}

    .card-wrapper[style*="display: none;"] {
        opacity: 0; /* Für sanftes Ausblenden */
    }

