.loipen-summary-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.loipen-summary-box {
    background: #ffffff;
    padding: 20px 25px;
    text-align: center;
    flex: 1 1 180px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s, box-shadow 0.2s;
}

.loipen-summary-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.summary-number {
    font-size: 32px;
    font-weight: 700;
    color: #222;
}

.summary-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weather-card {
    background: #f9fbfd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.weather-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.weather-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px 20px;
}

.weather-image {
    width: 40%;
    object-fit: cover;
}

.weather-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.weather-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.weather-location {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 2px;
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 15px;
    margin-top: 10px;
    font-size: 0.95rem;
}

.weather-grid i {
    width: 16px;
}

.update-dot-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 25px;
    font-size: 0.85rem;
    color: #444;
    gap: 6px;
}

.update-dot {
    width: 8px;
    height: 8px;
    background-color: #e74c3c;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}


:root {
    --primary: #0d47a1;
    --background: #f4f7f6;
    --text: #222;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

html {
    box-sizing: border-box;
    overflow-x: hidden;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    font-family: "Inter", "Segoe UI", sans-serif;
    background-color: var(--background);
    color: var(--text);
    margin: 0;
    line-height: 1.5;
    font-size: 18px;
    overflow-x: hidden;
}

.page-container {
    width: 100%;
    max-width: 1200px;
    margin: 10px auto;
    padding: 0 clamp(12px, 3vw, 24px);
    overflow-x: hidden;
}

.maplibregl-ctrl-bottom-right {
    background-color: transparent !important;
}

/* ====== HEADER ====== */
.header-main {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 10px;
}

.header-main h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 10px;
    color: var(--primary);
    letter-spacing: -0.5px;
    word-break: break-word;
}

.header-main p {
    color: #555;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

/* ====== NAVIGATION ====== */
.location-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    padding: 0 10px;
}

.location-nav a {
    text-decoration: none;
    padding: 10px 20px;
    font-weight: 600;
    color: var(--primary);
    background-color: white;
    border: 1px solid var(--primary);
    transition: all 0.25s ease;
    box-shadow: var(--shadow);
    white-space: nowrap;
}

.location-nav a:hover,
.location-nav a.active {
    background-color: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* ====== SECTION TITLE ====== */
.header-location {
    background-color: var(--primary);
    color: white;
    padding: 12px 16px;
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin: 30px 0 20px;
    box-shadow: var(--shadow);
    word-wrap: break-word;
}

/* ====== MAP ====== */
#loipen-map {
    height: clamp(300px, 40vw, 500px);
    width: 100%;
    box-shadow: var(--shadow);
    z-index: 1;
    overflow: hidden;
}

/* ====== LOIPEN LIST ====== */
.loipen-list {
    background-color: white;
    box-shadow: var(--shadow);
    overflow: hidden;
}

#loipen-legend {

    z-index: 1000;
    margin-top: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 1);
    padding: 10px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 30px;
    font-size: 20px;
}

#loipen-legend div {
    display: flex;
    align-items: center;
    gap: 4px;
}

#loipen-legend .label {
    margin-left: 4px;
}

#loipen-legend .green {
    color: #4caf50;
}

#loipen-legend .yellow {
    color: #ffb300;
}

#loipen-legend .red {
    color: #e53935;
}

#loipen-legend .difficulty {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 1vh;
}

#loipen-legend .difficulty.blue {
    background: #2196f3;
}

#loipen-legend .difficulty.red {
    background: #e53935;
}

#loipen-legend .difficulty.black {
    background: #212121;
}

#loipen-legend .tirol-lining {
    font-size: 18px;
    line-height: 1;
}


.loipe-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px clamp(12px, 3vw, 24px);
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-wrap: wrap;
    gap: 8px;
}

.loipe-row:last-child {
    border-bottom: none;
}

.loipe-row:hover {
    background-color: #eef5ff;
}

.loipe-important-info {
    flex: 1 0 100%;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #f0f7ff;
    border-left: 4px solid var(--primary);
    font-size: 0.9em;
    color: #444;
    line-height: 1.4;
    box-sizing: border-box;
}

.loipe-important-info i {
    margin-right: 8px;
    color: var(--primary);
}

/* ====== STATUS & ICONS ====== */
.status-icon {
    font-size: 1.9rem;
    width: 36px;
    text-align: center;
    margin-right: 10px;
}

.status-icon.open {
    color: #2e7d32;
}

.status-icon.closed {
    color: #d32f2f;
}

.status-icon.limited {
    color: #f9a825;
}

.loipe-name {
    flex: 2;
    font-weight: 600;
    display: flex;
    align-items: center;
    min-width: 180px;
}

.loipe-difficulty {
    flex: 0.3;
    text-align: center;
    min-width: 100px;
}

.loipe-status-icon {
    flex: 1.2;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
    flex-wrap: wrap;
}

.loipe-status-icon i {
    color: var(--primary);
    font-size: 1.3em;
}

.km-open {
    color: #2e7d32;
    font-weight: 600;
}

.km-closed {
    color: #d32f2f;
    font-weight: 600;
}

/* ====== BREAKPOINTS ====== */

/* 4K & große Monitore (z. B. 2160×3840) */
@media (min-height: 2000px) {
    body {
        font-size: 24px;
    }

    .page-container {
        min-width: 2000px;
        padding: 0 48px;
    }

    #loipen-map {
        height: 750px !important;
    }

    .loipe-row {
        padding: 38px 36px;
    }

    .loipe-name {
        font-size: xx-large;
    }

    .loipe-status-icon {
        font-size: x-large;
    }

    .loipe-difficulty>span {
        height: 20px !important;
        width: 20px !important;
    }

    .difficulty {
        height: 15px !important;
        width: 15px !important;
    }

    .location-nav a {
        font-size: xx-large;
        padding-left: 40px;
        padding-right: 40px;

    }

    .location-nav {
        gap: 20px;
    }

    .weather-info {
        flex: 1;
        position: relative;
        font-size: 2.5rem;
    }

    .weather-title {
        font-size: 3rem;
        font-weight: 600;
        margin: 0;
    }

    .weather-location {
        display: block;
        font-size: 2.5rem;
        color: #666;
        margin-top: 2px;
    }

    .weather-grid {
        font-size: 1.5rem;
        gap: 25px;
    }

    .weather-grid i {
        width: 30px;
    }

}

/* WQHD (1440p) */
@media (min-width: 1600px) and (max-width: 2399px) {
    body {
        font-size: 20px;
    }

    .page-container {
        max-width: 1600px;
    }

    #loipen-map {
        height: 500px;
    }
}

/* Tablets & kleinere Laptops */
@media (max-width: 1024px) {
    .loipe-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    #loipen-map {
        height: 400px;
    }

    .location-nav a {
        padding: 8px 14px;
        font-size: 1rem;
    }
}

/* Smartphones */
@media (max-width: 600px) {
    body {
        font-size: 15px;
    }

    .page-container {
        padding: 0 10px;
    }

    .header-main h1 {
        font-size: 1.7rem;
    }

    #loipen-map {
        height: 400px;
    }

    .loipe-row {
        padding: 14px;
    }
}