/* Base Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

#page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-left: 2rem;
    padding-right: 2rem;
}


.text-center {
    text-align: center;
}

/* Titelbereich */
.title-container {
    background-color: #9f9f9f; /* Dunkelgrauer Hintergrund */
    color: white; /* Weißer Text */
    border-radius: 8px 8px 0 0; /* Abgerundete Ecken oben */
    text-align: center; /* Zentrierter Text */ 
}




/*-----------------------------------------------------------------------------------*/

/* Inhaltsbereich */
.content-container {
    background-color: #fff; /* Weißer Hintergrund */
    border-radius: 0 0 8px 8px; /* Abgerundete Ecken unten */

}

/* Section Styling */
.section-style {
    margin-bottom: 20px;
    padding: 1rem 0;
}

/* Section Box */
.section-box {
    position: relative; /* Für das Badge-Positioning */
    background-color: #fff; /* Weißer Hintergrund für die Section */
    border-radius: 8px; /* Abgerundete Ecken für die gesamte Section */
    padding-top: 1rem; /* Abstand oben */
    padding-bottom: 1rem; /* Abstand unten */
    padding-left: 2rem; /* Optional: seitlicher Abstand */
    padding-right: 2rem; /* Optional: seitlicher Abstand */
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Section Styling */
.section-style-with-title {
    margin-bottom: 20px;
    padding: 1rem 0;
}

/* Zentrierte Elemente */
.section-title-in-badge {
    position: absolute;
    top: -1rem; /* Etwas oberhalb der Section positionieren */
    left: 2vw; /* Abstand vom linken Rand */
    background-color: #0540F2; /* Dunkelgrauer Hintergrund */
    color: white; /* Weißer Text */
    padding: 0.5rem 1rem; /* Polsterung innerhalb des Badges */
    font-size: 0.9rem; /* Kleinere Schriftgröße */
    border-radius: 12px; /* Runde Form */
    font-size: 1.1rem;

}


.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Section Styling END */
/*-----------------------------------------------------------------------------------*/



.button-group-container {
    display: flex;
    justify-content: center;
    border-radius: 5px;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    .content-container {
        padding-top: 3rem;
    }    
    .section-title-in-badge {
        top: -1rem; /* Etwas oberhalb der Section positionieren */
        left: 0vw; /* Abstand vom linken Rand */
    }
}

/* Navbar Adjustments */
.navbar-brand {
    font-size: 1.2rem;
}

.navbar-nav .nav-link {
    font-size: 1rem;
    color: #f8f9fa;
}

.navbar .img {
    height: 30px;
}

/* Responsive Navbar for Mobile */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-nav .nav-link {
        font-size: 0.9rem;
    }

    .navbar .img {
        height: 25px;
    }

    .navbar-toggler {
        margin-right: 2rem;
    }
}

/* Graph Styles */
.graph-style {
    width: 100%;
    height: 70vh;
    padding: 0;
}

@media (max-width: 768px) {
    .graph-style {
        height: 50vh;
    }
}

/* Dropdown Menu Styles */
#dropdown-menu {
    display: none; /* Default hidden for larger screens */
    width: 100%;
    margin-top: 10px;
    background-color: #0540F2;
    color: white;
}

#dropdown-menu .Select-control {
    background-color: #0540F2;
    border-color: #0540F2;
    color: white;
}

#dropdown-menu .Select-menu-outer {
    background-color: #0540F2;
    border-color: #0540F2;
    color: white;
}

#dropdown-menu .Select-option {
    background-color: #0540F2;
    color: white;
}

#dropdown-menu .Select-option.is-focused {
    background-color: #032b9a;
    color: white;
}

#dropdown-menu .Select-option.is-selected {
    background-color: #031c61;
    color: white;
}

#dropdown-menu .Select-value-label {
    background-color: #0540F2;
    color: white;
}

/* Button Group Styles */
.btn-custom {
    background-color: #0540F2;
    border-color: #0540F2;
    margin: 1px;
}

/* Button Group Styles */
.btn-custom-label {
    background-color: #007bff;
    border-color: #007bff;
    margin: 1px;
}
.btn-custom-label:hover{
    color: var(--bs-btn-hover-color);
    background-color: #007bff;
    border-color: #007bff;
}
.btn-custom-label:active{
    color: var(--bs-btn-hover-color);
    background-color: #007bff !important;
    border-color: #007bff !important;
}

@media (max-width: 768px) {
    .btn-custom {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* Label and Button Spacing */
.label-span {
    color: white;
    font-size: 18px;
    margin-right: 10px;
    display: inline-block;
    margin-bottom: 10px; /* Default spacing */
}

@media (max-width: 768px) {
    .label-span {
        margin-bottom: 8px;
    }
}

/* Section Styles */
.section-style {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .section-style {
        padding: 15px;
        margin-bottom: 15px;
    }
}

.summary-statistics, .map-style, .ranking-style {
    min-height: 250px;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .summary-statistics, .map-style, .ranking-style {
        min-height: 200px;
        margin-bottom: 1rem;
    }
}

/* Flexbox and Alignment Adjustments */
.align-items-stretch {
    display: flex;
    align-items: stretch;
}

.graph-container {
    margin-bottom: 20px;
}

/* Mobile-specific Overrides */
@media (max-width: 768px) {
    #button-group {
        display: none !important; /* Hide button group on mobile */
    }

    #dropdown-menu {
        display: block !important; /* Show dropdown on mobile */
    }

    .section-style {
        padding: 10px;
        margin-bottom: 10px;
    }

    .btn-group {
        margin-top: 8px;
    }
}

@media (min-width: 768px) {
    #dropdown-menu {
        display: none !important; /* Hide dropdown on desktop */
    }

    #button-group {
        display: flex !important; /* Show button group on desktop */
    }

    .label-span {
        margin-bottom: 12px; /* Larger margin for desktop */
    }

    .btn-group {
        margin-top: 12px;
    }
}

/* Card Style Section above front Graph - Facts section*/
/* Container for the entire statistics slide */
.statistics-slide {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

/* Stil für das Raster der Statistik-Karten */
.statistics-grid {
    display: flex;
    justify-content: space-between;
    gap: 5px; /* Abstand zwischen den Karten */
    width: 100%;
}

/* Stil für jede Statistik-Karte */
.stat-card {
    background-color: white;
    border-radius: 6px;
    padding: 10px 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    flex: 1;
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

/* Hover effect for the cards */
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Title of each card */
.card-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
}

/* Primary value displayed in each card */
.card-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #0540F2;
}

/* Style for the change percentage, e.g., growth rate */
.card-change {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .statistics-grid {
        flex-direction: column;
        gap: 10px;
    }
    .stat-card {
        min-width: 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }
}

.title-with-tooltip {
    display: inline-flex; /* Align text and icon inline */
    align-items: flex-start; /* Align items to the top */
    position: relative; /* For positioning the tooltip */
}

.title-with-tooltip .fas {
    margin-left: 5px; /* Space between text and icon */
    cursor: pointer;
    color: #666;
    font-size: 0.7rem; /* Smaller size for superscript effect */
    vertical-align: super; /* Position as superscript */
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.title-with-tooltip .fas:hover {
    color: #0540F2;
    transform: scale(1.1);
}

/* Tooltip Text */
.tooltip-text {
    visibility: hidden;
    width: 180px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position above the icon */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    font-size: 0.8rem;
}

.title-with-tooltip .fas:hover + .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%; /* Arrow pointing down */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}


/* Cookie banner container */
#cookie-banner-container {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #0540F2;
    color: white;
    padding: 20px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
    width: 100%;
    padding: 10px;
}

.cookie-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cookie-banner-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.cookie-btn {
    flex: 1;
    padding: 10px;
}

.privacy-link {
    margin-top: 15px;
    color: white;
    text-decoration: underline;
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
    .cookie-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .cookie-btn {
        padding: 15px;
        font-size: 16px;
    }
    
    .cookie-banner-content p {
        font-size: 14px;
    }
}

/* Stile für das Inhaltsverzeichnis */
.toc-list {
    list-style-type: none;
    padding-left: 0;
}

.toc-list li {
    margin-bottom: 5px;
}

.toc-list li a {
    color: #0540F2;
    text-decoration: none;
}

.toc-list li a:hover {
    text-decoration: underline;
}

.toc-list ul {
    list-style-type: none;
    padding-left: 20px;
}

/* Anpassungen für Überschriften */
h3 {
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: bold;
}

h4 {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Accordion-Stile */
.accordion-button:not(.collapsed) {
    color: #fff;
    background-color: #0540F2;
}

.accordion-button {
    color: #0540F2;
    background-color: #fff;
}

.accordion-item {
    border: none;
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-body {
    padding: 1rem;
}

.footer{
    background-color: #0540F2;
    margin-top: 2.5rem;
    overflow-x: hidden;
}
/* Footer Branding */
.footer-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #ccc;
}

/* Footer Links */
.footer-link {
    font-size: 0.9rem;
    color: #fff;
}

.footer-link:hover {
    text-decoration: underline;
    color: #F2B705;
}

/* Footer Update Time */
.footer-update-time {
    font-size: 0.85rem;
    color: #ccc;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .footer-title {
        font-size: 1rem;
    }
    .footer-link {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    .footer-update-time {
        font-size: 0.75rem;
    }
}


.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner input:not([type=radio]):not([type=checkbox]) {
    color: #f8f9fa !important; 
}


/* Example custom class for your search container */
.my-search-container {
    margin-bottom: 20px;
    padding: 10px;
}

/* Example styling for the search button */
#toggle-search {
    background-color: #0540F2;
    color: white;
    border-color: #0540F2;
}
.Select-menu-outer, .Select-option {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/**************************************************/
/* Styles for Loading... */
._dash-loading {
    position: relative;
    display: flex;
    color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;

  }
  
  /* Define both spinner circles */
  ._dash-loading:before,
  ._dash-loading:after {
    content: '';
    width: 15px;
    height: 15px;
    display: inline-block;
    position: relative;
    margin: 0 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 50px 0, -50px 0;
    animation: left 1s infinite ease-in-out;
  }
  
  /* First circle uses #0540F2 */
  ._dash-loading:before {
    color: #0540F2;
  }
  
  /* Second circle uses #F28500 and a slightly different animation timing */
  ._dash-loading:after {
    color: #F28500;
    animation: right 1.1s infinite ease-in-out;
  }
  
  @keyframes right {
    0%, 100% {
      transform: translateY(-10px);
    }
    50% {
      transform: translateY(10px);
    }
  }
  
  @keyframes left {
    0%, 100% {
      transform: translateY(10px);
    }
    50% {
      transform: translateY(-10px);
    }
  }


  
/* Sticky Sidebar */
.sticky-menu {
    position: -webkit-sticky;  /* Für Safari */
    position: sticky;
    top: 0;
    padding: 0.5em;
    background-color: #f8f9fa;
    height: 100vh;
    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

/* Menu Styling */
.menu-items {
    display: block;
    list-style-type: none;
    padding-left: 0;
    margin-top: 20px;
    position: relative;
}

.menu-items ul{
    list-style-type: none;
    padding-left: 0;

}

/* Menu item dot style */
.menu-items li {
    position: relative;
    
}


/* Connect dots with a line */
.menu-items li::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 100%;
    background-color: #007bff;
}

/* Ensure the custom ID element doesn't wrap and is responsive */
#toc-header {
    font-size: calc(1rem + 0.3vw); /* Scales based on the width of the viewport */
    white-space: nowrap;         /* Prevent text wrapping */
    margin: 2px 0;               /* Adjust margin for spacing */
    box-sizing: border-box;      /* Include padding and border in the element's total width */
}

/* Menu item text styling */
.menu-items a {
    text-decoration: none;
    color: #007bff;
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

/* Highlight active link */
.menu-items a.active,
.menu-items a:hover {
    background-color: #f1f1f1;
    color: #0056b3;
}

/* Center the navbar toggle button */
.navbar-toggler-sidemenu {
    align-self: center;  /* Centers the button horizontally */
    margin-bottom: 10px;  /* Optional: Adds spacing below the button if needed */
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.navbar-toggler-sidemenu:hover {
    background-color: #0540F2;
}


/* Mobile View */
@media (max-width: 768px) {
    .menu-items {
        display: none;
    }
    
    #toc-header {
        font-size: 1.2rem; /* Smaller font size on mobile */
    }
}

/* Show Menu when open */
.show-menu {
    display: block !important;
}

/* Sticky behavior for scroll effect */
.sticky-menu.scrolled {
    transform: translateY(-10px);  /* Slightly move up when scrolling */
}

/* Highlight active menu items */
.menu-items a.active {
    background-color: #f1f1f1;
    color: #007bff;
    font-weight: bold;
}

/* Optional: Add hover effect */
.menu-items a:hover {
    background-color: #f8f9fa;
    color: #0056b3;
}