html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.modal {
    --bs-modal-zindex: 2000;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main {
    flex: 1;
    display: flex;
    position: relative;
    margin: 0;
}

#map-container {
    flex: 1;
    position: relative;
    margin: 0;
    height: auto;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 !important;
    height: 100% !important;
}

.header .header-logo img {
    max-height: 60px !important;
    height: 60px !important;
    width: auto !important;
}

/* Hover-Menü Styles */
.header-nav .nav .dropdown-menu {
    display: none !important;
    margin-top: 0;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.08);
    position: absolute;
    background: white;
    z-index: 1000;
}
.header-nav .nav .nav-item.dropdown {
    position: relative;
}
.header-nav .nav .nav-item.dropdown:hover .dropdown-menu {
    display: block !important;
}
.header-nav .nav .dropdown-menu .dropdown-item {
    padding: 8px 20px;
    color: #333;
    display: block;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.header-nav .nav .dropdown-menu .dropdown-item:hover {
    background-color: white;
    color: var(--primary-color);
}
.header-nav .nav .dropdown-menu .dropdown-item.active {
    background-color: white;
    color: var(--primary-color);
    font-weight: bold;
}
.header-nav .nav .nav-link.dropdown-toggle {
    font-weight: normal;
    color: #333;
}
.header-nav .nav .nav-link.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}
.header-nav .nav .nav-link.dropdown-toggle:hover {
    color: var(--primary-color);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    justify-content: center;
}

.header-nav ul li a {
    color: #333;
    text-decoration: none;
    padding: 8px 15px;
}

.header-cart {
    margin-left: 20px;
}

.header-cart ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
}

.header-cart ul li a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-cart ul li a i {
    margin-right: 5px;
}

.navbar-toggler {
    display: none;
    color: var(--primary-color);
}

#features {
    padding: 240px 0 45px 0;
}

/* Mobile Anpassungen für den Header */
@media (max-width: 950px) {
    .header-container {
        padding: 15px 0;
        width: 100%;
        position: relative;
    }
    
    .header .header-logo {
        padding: 0 15px;
    }

    .header-nav {
        display: none;
    }

    /* Hover-Menü Mobile Anpassungen */
    .header-nav .nav .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: #f8f9fa;
        margin-left: 20px;
    }
    .header-nav .nav .nav-item.dropdown:hover .dropdown-menu {
        display: none !important;
    }
    .header-nav .nav .nav-item.dropdown.show .dropdown-menu {
        display: block !important;
    }

    .navbar-toggler {
        display: block;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: var(--primary-color);
        font-size: 24px;
        padding: 5px 10px;
        z-index: 1000;
    }

    .header-cart {
        width: 150pt;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .justify-content-end {
        width: 100pt;
    }

    .justify-content-end ul {
        width: 100%;
    }

    .header-nav .navbar-collapse#navbar-collapse {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background: white;
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .header-nav .navbar-collapse#navbar-collapse.show {
        display: block !important;
    }

    .header-nav .navbar-collapse#navbar-collapse ul {
        flex-direction: column;
        padding: 0;
    }

    .header-nav .navbar-collapse#navbar-collapse ul li {
        padding: 10px 20px;
        text-align: left;
    }

    .header-nav .navbar-collapse#navbar-collapse ul li a {
        display: block;
        padding: 5px 0;
    }

    .header-cart ul li a {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
    }
}

#map-container {
    position: relative;
    background: #f8f9fa;
    overflow: visible;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 100%;
}

.search-overlay {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 95%;
    max-width: 1000px;
}

/* Mobile Anpassungen für den Search-Overlay */
@media (max-width: 640px) {
    #features {
        margin-top: 200px !important;
    }
}

@media (max-width: 767px) {
    #map-container {
        height: auto;
        margin-top: 20px;
        margin-bottom: 0;
        position: relative;
    }
    
    .search-overlay {
        position: absolute;
        top: 120%;
        transform: translate(-50%, -50%);
        width: 90%;
    }
    
    .search-box {
        padding: 20px;
    }

    .header-image {
        height: 400px !important;
    }

    #features {
        margin-top: 150px;
    }

    .search-description {
        margin-top: 20px;
    }

    .search-description p {
        font-size: 0.9em;
        line-height: 1.4;
    }
}

.search-box {
    background: var(--primary-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-on-primary);
}

.search-box h1, .search-box p {
    color: var(--text-on-primary);
}

.search-input {
    border-radius: 30px;
    padding-left: 20px;
    padding-right: 20px;
    border: none;
    height: 50px;
}

.search-button {
    border-radius: 30px;
    padding-left: 30px;
    padding-right: 30px;
    background: var(--text-on-accent2);
    color: var(--accent2-color);
    border: none;
    font-weight: bold;
}

.search-button:hover {
    background: #f0f0f0;
    color: var(--primary-hover-color);
}

.search-description {
    margin-top: 40px;
    margin-bottom: 30px;
    color: var(--text-on-primary);
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.search-description h2 {
    color: var(--text-on-accent2);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.search-description p {
    text-align: justify;
    margin: 0;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    height: 100%;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5em;
    color: var(--accent2-color);
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: var(--text-on-accent2);
    margin: 0 auto 20px;
    border: solid 1px;
  }

.feature-item h3 {
    color: #000;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

#footer.footer {
    background-color: #595959;
    padding: 40px 0;
    box-shadow: none !important;
}

#footer a {
    color: white;
    text-decoration: none;
}

#footer a:hover {
    color: #e0e0e0;
}

/* Currency Dropdown Styles */
.currency-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    background: var(--primary-color);
    border: 1px solid var(--primary-hover-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

.currency-dropdown .dropdown-menu.show {
    display: block !important;
}

.currency-dropdown .dropdown-item {
    color: var(--primary-color);
    padding: 8px 20px;
    cursor: pointer;
}

.currency-dropdown .dropdown-item:hover {
    background-color: var(--primary-hover-color);
    color: var(--primary-color);
}

.currency-dropdown .dropdown-item.active {
    background-color: var(--primary-hover-color);
    color: var(--primary-color);
    font-weight: bold;
}

.currency-dropdown .btn-link {
    color: var(--primary-color) !important;
    text-decoration: none;
    padding: 8px 15px;
}

.currency-dropdown .btn-link:hover {
    color: var(--primary-color) !important;
    opacity: 0.8;
} 

 /* Sticky Footer Styles */
 html, body {
    height: 100%;
    margin: 0;
}

#app {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
    background-color: #f8f9fa;
    padding: 20px 0;
    margin-top: auto;
}

/* Kalender Styles */
.fc .fc-col-header-cell-cushion {
    color: var(--primary-color);
    font-weight: 600;
}

.fc .fc-toolbar-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Kalender Cart Styles */
.fc .fc-day-in-cart {
    background-color: var(--cart-color) !important;
    opacity: 0.3;
    color: var(--text-on-cart);
}

.fc .fc-day-in-cart .fc-daygrid-day-number {
    color: var(--text-on-cart);
    font-weight: 600;
}

.fc .fc-day-in-cart:hover {
    color: var(--text-on-cart);
    background-color: var(--primary-hover-color);
}

/* Button Styles */
.btn-primary {
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-bg: var(--primary-hover-color);
    --bs-btn-hover-border-color: var(--primary-hover-color);
    --bs-btn-color: var(--text-on-primary);
    --bs-btn-active-bg: var(--primary-hover-color);
    --bs-btn-active-border-color: var(--primary-hover-color);
    --bs-btn-active-color: var(--text-on-primary);
    --bs-btn-disabled-bg: var(--primary-color);
    --bs-btn-disabled-border-color: var(--primary-color);
}

.btn-outline-primary {
    --bs-btn-color: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-bg: var(--primary-color);
    --bs-btn-hover-border-color: var(--primary-hover-color);
    --bs-btn-hover-color: var(--text-on-primary);
    --bs-btn-active-bg: var(--primary-color);
    --bs-btn-active-border-color: var(--primary-hover-color);
    --bs-btn-active-color: var(--text-on-primary);
    --bs-btn-disabled-color: var(--primary-color);
    --bs-btn-disabled-border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover-color);
    border-color: var(--primary-hover-color);
    color: var(--text-on-primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-hover-color);
    color: var(--text-on-primary);
}

.ctn {
    background-color: var(--accent2-color);
    color: var(--text-on-accent2);
    border: none !important;
}

.ctn:hover {
    border: none;
}

.pace .pace-progress {
    background: var(--primary-color) !important;
}

.pace .pace-activity {
    border-top-color: var(--primary-color) !important;
    border-left-color: var(--primary-color) !important;
}

.leaflet-container {
    margin-bottom: 0 !important;
    background: #1b1f24;
}

.leaflet-tile {
    filter: grayscale(0.9) brightness(0.65) contrast(1.1) saturate(0.5);
    opacity: 0.95;
}

.footer {
    flex: none;
    margin: 0;
    padding: 40px 0;
    background-color: #595959;
}

/* Filter Sidebar */
.filter-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    background: white;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.filter-header {
    padding: 20px;
    background: var(--primary-color);
    color: var(--text-on-primary);
    flex: none;
}

.filter-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.filter-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h4 {
    font-size: 1em;
    margin-bottom: 15px;
    color: #000;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #666;
}

.form-check {
    margin-bottom: 10px;
}

.form-check-label {
    line-height: 1.4;
}

/* Mobile Anpassungen */
@media (max-width: 767px) {
    .filter-sidebar {
        position: fixed;
        left: -300px;
        top: 90px;
        bottom: 70px;
        transition: left 0.3s ease;
    }

    .filter-sidebar.show {
        left: 0;
    }

    .filter-toggle-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1001;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: var(--primary-color);
        color: var(--text-on-primary);
        border: none;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 5px 0;
}

.section-header i {
    font-size: 0.8em;
    color: var(--primary-color);
    transition: transform 0.3s;
    position: relative;
    top: -6px;
}

.section-header[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.range-slider {
    padding: 10px 0;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

.form-range {
    width: 100%;
    -webkit-appearance: none;
    height: 5px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    padding: 0;
    margin: 0;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: background .15s ease-in-out;
}

.form-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: background .15s ease-in-out;
}

.form-range::-webkit-slider-thumb:hover {
    background: var(--primary-hover-color);
}

.form-range::-moz-range-thumb:hover {
    background: var(--primary-hover-color);
}

.dual-range-slider {
    padding: 10px 0;
}

.range-slider-container {
    position: relative;
    height: 15px;
    margin: 10px 0;
}

.slider-track {
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 5px;
    background: #ddd;
    border-radius: 5px;
}

.slider-handle {
    position: absolute;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    margin-left: -8px;
    transition: background .15s ease-in-out;
}

.slider-handle:hover {
    background: var(--primary-hover-color);
}

.slider-handle.min {
    left: 0%;
}

.slider-handle.max {
    left: 100%;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

.form-range.min-range,
.form-range.max-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-range.min-range::-webkit-slider-thumb,
.form-range.max-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: background .15s ease-in-out;
}

.form-range.min-range::-moz-range-thumb,
.form-range.max-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: background .15s ease-in-out;
}

.form-range.min-range::-webkit-slider-runnable-track,
.form-range.max-range::-webkit-slider-runnable-track {
    height: 5px;
    background: transparent;
    border: none;
}

.form-range.min-range::-moz-range-track,
.form-range.max-range::-moz-range-track {
    height: 5px;
    background: transparent;
    border: none;
}

.form-range.min-range::-webkit-slider-thumb:hover,
.form-range.max-range::-webkit-slider-thumb:hover {
    background: var(--primary-hover-color);
}

.form-range.min-range::-moz-range-thumb:hover,
.form-range.max-range::-moz-range-thumb:hover {
    background: var(--primary-hover-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
}

.location-details-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.location-details {
    padding: 1.5rem;
}

.location-details img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

.location-details h6 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.location-details p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.location-details .btn {
    margin-top: 1rem;
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(var(--primary-rgb), 0.4) !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: rgba(var(--primary-rgb), 0.8) !important;
    color: #fff !important;
}

/* Aktuelle Position Marker */
.current-location-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--marker-color);
    color: var(--text-on-primary);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.current-location-marker::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--marker-color);
}

.location-tooltip {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.location-tooltip::before {
    border-top-color: rgba(255, 255, 255, 0.9);
}

/* Location Details Popup Styles */
.location-details {
    padding: 1.5rem;
}

.location-preview img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

.location-info {
    padding: 1rem;
    border-radius: 4px;
}

.location-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.location-info p:last-child {
    margin-bottom: 0;
}

.location-info i {
    margin-right: 0.5rem;
}

.available-periods {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

.available-periods::-webkit-scrollbar {
    width: 6px;
}

.available-periods::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.available-periods::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 3px;
}

.period-item {
    background: #fff;
    transition: all 0.2s ease;
}

.period-item:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.period-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.additional-info {
    font-size: 0.85rem;
    font-style: italic;
}

.add-to-cart {
    width: 100%;
    margin-top: 0.5rem;
}

/* Modal Anpassungen */
.modal-dialog {
    max-width: 800px;
}

@media (max-width: 767px) {
    .location-details {
        padding: 1rem;
    }
    
    .location-info {
        margin-bottom: 1rem;
    }
    
    .available-periods {
        max-height: 250px;
    }
}

#map-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#map-loader .spinner-border {
    color: var(--primary-color);
}

@media (max-width: 767px) {
    #map-loader {
        left: 50%;
    }
}

.location-nav-btn[data-is-available="false"] {
    opacity: 0.7;
    background-color: #dee2e6;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    pointer-events: none;
}

.location-nav-btn[data-is-available="false"]:hover,
.location-nav-btn[data-is-available="false"]:focus {
    opacity: 0.7;
    background-color: #dee2e6;
    border-color: #dee2e6;
    color: #6c757d;
    transform: none;
}

/* Tippy.js Tooltip Styles */
.tippy-box[data-theme~='custom'] {
    background-color: white;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    padding: 12px;
}

.tippy-box[data-theme~='custom'] .tippy-content {
    text-align: left;
    padding: 0;
}

.tippy-box[data-theme~='custom'][data-placement^='bottom'] > .tippy-arrow::before {
    border-bottom-color: white;
}

.tippy-box[data-theme~='custom'][data-placement^='top'] > .tippy-arrow::before {
    border-top-color: white;
}

.tippy-box[data-theme~='custom'][data-placement^='left'] > .tippy-arrow::before {
    border-left-color: white;
}

.tippy-box[data-theme~='custom'][data-placement^='right'] > .tippy-arrow::before {
    border-right-color: white;
}

.restrictions-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    text-align: left;
}

.restrictions-list li {
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

.restrictions-list li:last-child {
    border-bottom: none;
}

/* Company Marker Styles */
.company-marker-container {
    background: white;
    border-radius: 8px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.company-marker-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
} 
