.card.same-height {
    transition: all 0.2s ease-in-out;
}
img {
    max-width: 400px;
    height: auto;
    float: right;
    margin-left: 10px;
}

header {
    background-color: #055093;
    color: white;
    padding: 5px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

header img {
    max-height: 50px;
    margin-right: 10px;
    margin-left: 10px;
    float: none;
}

header h1 {
    margin: 0;
    font-size: 1.5em;
    margin-left: auto;
    margin-right: 10px;
}

body {
    padding-top: 70px; /* damit der Inhalt nicht vom Header überdeckt wird */
}

.same-height {
    min-height: 300px; /* Adjust the value as needed */
}

.section-image {
    width: 200px;
    height: auto;
}

/* Responsive improvements */
@media (max-width: 991.98px) {
    #weather-chart {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Make Wetter card full width below lg breakpoint */
    .col-md-6:nth-child(2) {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .section-image {
        width: 150px;
        margin-top: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 0.5rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    #weather-chart {
        height: 200px !important;
    }
}

@media (max-width: 576px) {
    #weather-chart {
        height: 180px !important;
    }
}

/* Improve card spacing */
.card {
    margin-bottom: 1.5rem;
}

/* Better form styling */
.form-range {
    margin-top: 0.5rem;
}

/* Status badges */
.badge {
    font-size: 0.75em;
}




#weather-chart {
    width: 100%;
    max-width: 100%;
}

.full-width-chart {
    width: 100%;
    min-height: 320px;
}

.btn-outline-secondary:focus {
    box-shadow: none;
}

.forecast-legend text {
    font-size: 11px;
}

.today-line {
    stroke: #0d6efd;
    stroke-width: 2px;
    stroke-dasharray: 4, 2;
    opacity: 0.7;
}

.today-label {
    fill: #0d6efd;
    font-weight: bold;
    font-size: 10px;
    pointer-events: none;
}

/* Scrollbare Chart-Container */
.chart-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #888 #f1f1f1; /* Firefox */
}

/* Webkit Scrollbar Styling */
.chart-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.chart-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.chart-scroll-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.chart-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}