body { 
    overflow: hidden;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

footer {
    z-index: 1000;
}

.container-fluid {
    flex: 1;
}

.navbar-offset { 
    margin-top: 80px;
}

#map { 
    position: absolute; 
    top: 90px; 
    bottom: 50px; 
    left: 0px; 
    right: 0px;
    z-index: 35;
}

.sidebar { 
    z-index: 45;
    padding-right: 0;
    margin-top: 90px;
    transform: translateZ(0);
 }

.main-row { position: relative; top: 0; }


.slide-submenu{
    background: rgba(0, 0, 0, 0.45);
    display: inline-block;
    padding: 0 8px;
    border-radius: 4px;
    cursor: pointer;
}

.navbar {
 height: 90px
}


.navbar-custom {
    background-color: #252f58;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, .5);
    font-size: 20px
}

.navbar-dark .navbar-nav .nav-link:focus, 
.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: rgba(255, 255, 255, 1);
}

.nav>li>a:hover, .nav>li>a:focus {
    text-decoration: none;
    background-color: transparent;
}


#timeContainer {
    position: relative;
}

#toggleLegendArrow {
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}

#toggleLegendArrow:hover {
    opacity: 1;
    transform: scale(1.15);
}

#loadingSpinner{
    z-index: 100;
}

#taskpane {
    max-height: calc(100vh - 200px);
    overflow-y: auto;  /* Enables vertical scrolling */
    overflow-x: hidden; /* Prevents horizontal scrolling */
    /*padding: 10px;*/
    background: #f8f9fa; /* Light background */
    border-left: 1px solid #ddd; /* Optional: Adds a subtle border */
}

.wms-legend {
    position: absolute;
    left: 10px;
    bottom: 85px;
    background: rgba(255, 255, 255, 1);
    border-radius: 3px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    max-width: 100px;
    z-index: 40;
    word-wrap: break-word;    /* Bricht lange Wörter um */
    overflow-wrap: break-word; /* Moderner Standard für Umbrüche */
    white-space: normal;      /* Erlaubt Zeilenumbrüche */
}

#legendSubtitle {
    font-size: small;
}

#wmsLegendCanvas {
    width: 80%;
    height: auto;
}

#timeseriesChartCanvas {
    width: 100% !important;
    height: auto !important;
  }

.chip {
    display: inline-block;
    height: 32px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(0, 0, 0, .6);
    line-height: 32px;
    padding: 0 12px;
    border-radius: 16px;
    background-color: #eceff1;
    margin-bottom: 5px;
    margin-right: 5px;
    cursor: pointer;
    transition: all .3s linear;
}

.pe-none {
    pointer-events: none;
}

.text-decoration-none {
    text-decoration: none !important;
}

.badge-doi {
    display: inline-flex;
    align-items: center
}
.badge-doi .doi-label {
    background-color: #007bff;
    color: white;
    padding: 0.25em 0.6em;
    border-radius: 1em 0 0 1em;
}
.badge-doi .doi-number {
    border: 1px solid #007bff;
    padding: 0.16em 0.6em;
    color: #007bff;
    background-color: white;
    border-radius: 0 1em 1em 0;
}

.accordion {
    --bs-accordion-border-radius: 0;
    --bs-accordion-inner-border-radius: 0;
}

.accordion-footer {
    background: #e9e9e9;
}

.footer-dark {
    background-color: #252f58;
    color: #fff;
    font-size: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-dark a {
    text-decoration: none;
    color: #adb5bd; 
}

.footer-dark a:hover {
    text-decoration: none;
    color: #fff;
}

.leaflet-control-minimap {
    left: 120px
}

form.svelte-bz0zu3.svelte-bz0zu3 {
    padding: 10px;
}

#geocoding-control {
    contain: layout;
}


.input-group.svelte-bz0zu3.svelte-bz0zu3:focus-within {
    outline: none !important;
}

form.svelte-bz0zu3.svelte-bz0zu3 {
    width: 100% !important;
    max-width: 100% !important;
}

input.svelte-bz0zu3::placeholder {
    font-size: 15px;
    color: #afb4bd
}

/* 1. Deaktiviert die Animation der gesamten Liste (Dropdown) */
div.leaflet-ctrl-geocoder ul,
div.leaflet-ctrl-geocoder .results {
    animation: none !important;
    transition: none !important;
}

/* 2. Deaktiviert die Animation der einzelnen Einträge (Suggestions) */
div.leaflet-ctrl-geocoder li,
div.leaflet-ctrl-geocoder .suggestion {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
}

svg.svelte-1aq105l{
    width: 20px;
    height: 20px;
    stroke: #afb4bd !important
}

/* 3. Falls MapTiler eine Keyframe-Animation nutzt, wird sie hier neutralisiert */
@keyframes -maptiler-geocoding-fade-in {
    0% { opacity: 1; transform: none; }
    100% { opacity: 1; transform: none; }
}


.leaflet-control-zoom-full i {
    font-size: 16px;
}

.leaflet-control-attribution.leaflet-control {
        bottom: 13px
}

.leaflet-bottom .leaflet-control-scale {
    margin-bottom: -5px !important;
    margin-left: 100% !important
}

/* Media controls */

@media (max-width: 1397px) {
    .leaflet-bottom .leaflet-control-scale {
        margin-bottom: 0px !important;
    }
    .leaflet-control-attribution.leaflet-control {
        bottom: 18px
    }
    .wms-legend {
        bottom: 90px
    }
}

@media (max-width: 917px) {
    footer img {
        display: none
    }
}

@media (max-width: 767px) {
    #geocoding-control, footer img {
        display: none
    }
    a.user-profile, .dropdown {
        padding-right: 15px
    }
    .leaflet-bottom .leaflet-control-scale {
        margin-bottom: 17px !important;
    }
    .leaflet-control-attribution.leaflet-control {
        bottom: 35px
    }
    .wms-legend {
        bottom: 105px
    }
}

@media (max-width: 424px) {
    .leaflet-bottom .leaflet-control-scale {
        margin-bottom: 37px !important;
    }
    .leaflet-control-attribution.leaflet-control {
        bottom: 55px
    }
    .wms-legend {
        bottom: 125px
    }
}



a.user-profile {
    color: #fff;
    cursor: pointer;
    font-size: 20px
}

a.user-profile:hover {
    color: #fff;
}

.user-profile img {
    border: 1px solid #fff;
}

.dropdown-menu-end[data-bs-popper]{
    min-width: 280px;
    top: 65px
}

ul.dropdown-menu-end[data-bs-popper]{
    top: 62px;
    min-width: 200px;
}


.header-cart-forgot a {
    font-size: 12px;
    color: #888888;
    line-height: 1.3;
    display: block;
    text-align: right;
}


#sidebar {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    transition: width 0.3s ease;
}

/* geschlossen */
#sidebar.sidebar-collapsed {
    width: 60px;
}

.accordion-button::after {
    width: 30px;
    height: 30px;
    background-size: 30px;
}

.accordion-button.collapsed::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,0.8%29' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Text im Button ausblenden */
#sidebar.sidebar-collapsed #accordionButton {
    font-size: 0;
    padding: 0.5rem;
    justify-content: center;
}

/* Arrow drehen wenn offen */
.accordion-button:not(.collapsed)::after {
    transform: rotate(270deg);
}


