.coati-weather {
    box-sizing: border-box;
    width: 100%;
    margin: 24px 0;
    padding: 22px;
    color: #1f2937;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.coati-weather *,
.coati-weather *::before,
.coati-weather *::after {
    box-sizing: border-box;
}

.coati-weather__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.coati-weather__kicker {
    margin: 0 0 3px;
    color: #64748b;
    font-size: .82rem;
}

.coati-weather__title {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.2;
}

.coati-weather__current {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.coati-weather__main-icon {
    font-size: 2.6rem;
    line-height: 1;
}

.coati-weather__temperature {
    font-size: 2.8rem;
    line-height: 1;
    font-weight: 700;
}

.coati-weather__quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}

.coati-weather__quick-item {
    min-height: 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 12px;
    text-align: center;
    background: #f8fafc;
    border-radius: 11px;
}

.coati-weather__quick-item span {
    color: #64748b;
    font-size: .82rem;
}

.coati-weather__quick-item strong {
    font-size: 1rem;
}

.coati-weather__forecast {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 0;
    padding: 0;
}

.coati-weather__day {
    min-height: 285px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 8px;
    text-align: center;
    background: #f8fafc;
    border-radius: 10px;
}

.coati-weather__day-name {
    font-size: .9rem;
    font-weight: 600;
}

.coati-weather__day-icon {
    margin: 42px 0 36px;
    font-size: 1.8rem;
    line-height: 1;
}

.coati-weather__day-max {
    font-size: 1rem;
    font-weight: 700;
}

.coati-weather__day-min {
    margin-top: 34px;
    color: #64748b;
    font-size: .9rem;
}

.coati-weather__day-rain {
    margin-top: auto;
    color: #475569;
    font-size: .8rem;
}

.coati-weather__more {
    margin-top: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.coati-weather__more > summary {
    padding: 11px 13px;
    cursor: pointer;
    list-style: none;
    color: #475569;
    background: #f8fafc;
    font-size: .82rem;
    font-weight: 600;
}

.coati-weather__more > summary::-webkit-details-marker {
    display: none;
}

.coati-weather__assessment {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 10px;
    padding: 12px 12px 0;
}

.coati-weather__status,
.coati-weather__recommendation {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    background: #f8fafc;
    border-radius: 9px;
}

.coati-weather__status > span,
.coati-weather__recommendation > span {
    font-size: 1.3rem;
}

.coati-weather__status small,
.coati-weather__recommendation small {
    display: block;
    color: #64748b;
    font-size: .68rem;
}

.coati-weather__status strong,
.coati-weather__recommendation strong {
    display: block;
    font-size: .88rem;
}

.coati-weather__status--ideal { border-left: 4px solid #16a34a; }
.coati-weather__status--gut { border-left: 4px solid #eab308; }
.coati-weather__status--eingeschraenkt { border-left: 4px solid #dc2626; }

.coati-weather__facts {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 12px;
}

.coati-weather__fact {
    padding: 9px 6px;
    text-align: center;
    background: #f8fafc;
    border-radius: 8px;
}

.coati-weather__fact > span {
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: .68rem;
}

.coati-weather__fact strong {
    font-size: .85rem;
}

.coati-weather__wind-arrow {
    display: inline-block;
    transform: rotate(var(--coati-wind));
}

.coati-weather__details {
    margin: 0 12px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    overflow: hidden;
}

.coati-weather__details summary {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    cursor: pointer;
    list-style: none;
    background: #f8fafc;
    font-size: .82rem;
    font-weight: 600;
}

.coati-weather__details summary::-webkit-details-marker {
    display: none;
}

.coati-weather__toggle-label {
    color: #64748b;
    font-size: .7rem;
    font-weight: 400;
}

.coati-weather__toggle-label .hide {
    display: none;
}

.coati-weather__details[open] .coati-weather__toggle-label .show {
    display: none;
}

.coati-weather__details[open] .coati-weather__toggle-label .hide {
    display: inline;
}

.coati-weather__hourly {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 10px;
    scroll-snap-type: x mandatory;
}

.coati-weather__hour {
    flex: 0 0 82px;
    padding: 8px 5px;
    text-align: center;
    background: #f8fafc;
    border-radius: 8px;
    scroll-snap-align: start;
}

.coati-weather__hour strong,
.coati-weather__hour span,
.coati-weather__hour small {
    display: block;
}

.coati-weather__hour strong {
    font-size: .76rem;
}

.coati-weather__hour-icon {
    margin: 4px 0;
    font-size: 1.35rem;
}

.coati-weather__hour small {
    font-size: .65rem;
}

.coati-weather__source {
    margin: 14px 0 0;
    text-align: right;
    color: #64748b;
    font-size: .7rem;
}

.coati-weather-error {
    padding: 10px 12px;
    background: #fff7f7;
    border-left: 4px solid #dc2626;
}

@media (max-width: 900px) {
    .coati-weather__facts {
        grid-template-columns: repeat(3, 1fr);
    }

    .coati-weather__day {
        min-height: 250px;
    }
}

@media (max-width: 600px) {
    .coati-weather {
        padding: 14px;
    }

    .coati-weather__header {
        grid-template-columns: 1fr auto;
        gap: 10px;
    }

    .coati-weather__title {
        font-size: 1.15rem;
    }

    .coati-weather__main-icon {
        font-size: 1.8rem;
    }

    .coati-weather__temperature {
        font-size: 2rem;
    }

    .coati-weather__quick {
        gap: 7px;
    }

    .coati-weather__quick-item {
        min-height: 90px;
        padding: 12px 5px;
    }

    .coati-weather__forecast {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        scroll-snap-type: x mandatory;
    }

    .coati-weather__day {
        flex: 0 0 122px;
        min-height: 245px;
        scroll-snap-align: start;
    }

    .coati-weather__assessment {
        grid-template-columns: 1fr;
    }

    .coati-weather__facts {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* =========================================================
   COATI Wetter – mobile Optimierung
   ========================================================= */

@media (max-width: 600px) {

    .coati-weather {
        margin: 32px 0;
    }

    .coati-weather__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        min-height: 0;
        padding: 18px;
    }

    .coati-weather__heading {
        flex: 1;
        min-width: 0;
    }

    .coati-weather__kicker {
        margin: 0 0 4px;
        font-size: 0.82rem;
    }

    .coati-weather__title {
        margin: 0;
        font-size: 1.25rem;
        line-height: 1.2;
    }

    .coati-weather__current {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 8px;
    }

    .coati-weather__main-icon {
        font-size: 1.7rem;
        line-height: 1;
    }

    .coati-weather__temperature {
        font-size: 2rem;
        font-weight: 700;
        line-height: 1;
    }
}
/* COATI Wetter – Header auf Mobilgeräten kompakt erzwingen */
@media (max-width: 600px) {

    .coati-weather__header {
        min-height: 0 !important;
        height: auto !important;
        padding: 16px !important;
        margin: 0 !important;

        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-rows: auto auto !important;
        column-gap: 12px !important;
        row-gap: 2px !important;

        align-items: center !important;
    }

    .coati-weather__heading {
        grid-column: 1;
        grid-row: 1 / 3;
        margin: 0 !important;
        padding: 0 !important;
    }

    .coati-weather__kicker {
        margin: 0 0 3px !important;
        padding: 0 !important;
    }

    .coati-weather__title {
        margin: 0 !important;
        padding: 0 !important;
    }

    .coati-weather__current {
        grid-column: 2;
        grid-row: 1 / 3;

        position: static !important;
        margin: 0 !important;
        padding: 0 !important;

        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .coati-weather__main-icon {
        margin: 0 !important;
        font-size: 1.5rem !important;
        line-height: 1 !important;
    }

    .coati-weather__temperature {
        margin: 0 !important;
        font-size: 1.8rem !important;
        line-height: 1 !important;
    }
}
