/* ── Compact Widget (Statusleiste) ─────────────────────────── */
.freibad-widget-compact {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}
.freibad-widget-compact:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.freibad-widget-compact.open {
    background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%);
}
.freibad-widget-compact.closed {
    background: linear-gradient(135deg, #e53935 0%, #ef5350 100%);
}
.freibad-widget-compact.teaser {
    background: linear-gradient(135deg, #1e88e5 0%, #42a5f5 100%);
}

/* ── Full Widget (Freibad-Seite) ────────────────────────────── */
.freibad-widget-full {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 14px 14px 8px 8px;
    box-shadow: 0 10px 30px rgba(12, 58, 91, 0.08);
    color: #17212b;
    overflow: hidden;
    margin-bottom: 20px;
}
.freibad-widget-full__hero {
    position: relative;
    display: block;
    width: 100%;
    height: var(--freibad-hero-height, 180px);
    min-height: 80px;
    margin: 0;
    background-image: var(--freibad-hero-image);
    background-position: center;
    background-size: cover;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
}
.freibad-widget-full__hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 31, 48, 0.12), rgba(9, 31, 48, 0.58));
}
.freibad-widget-full__hero-title {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 26px;
    z-index: 1;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.05;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}
.freibad-widget-full__wave {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 30px;
}
.freibad-widget-full__wave path {
    fill: #fafaf7;
}
.freibad-widget-full__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    background: #fafaf7;
    padding: 20px 18px 22px;
}
.freibad-widget-full__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.freibad-widget-full__meta h2 {
    margin: 0;
    color: #0c3a5b;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.08;
}
.freibad-widget-full__eyebrow {
    margin: 0;
    color: #7a8593;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}
.freibad-widget-full__hours {
    margin: 0;
    color: #17212b;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}
.freibad-widget-full__temps {
    min-width: 0;
}
.freibad-widget-full__temps-head {
    margin-bottom: 10px;
}
.freibad-temp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.freibad-temp-card {
    --temp-color: #28b8a0;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
}
.freibad-temp-card--cool {
    --temp-color: #2f86c9;
}
.freibad-temp-card--fresh {
    --temp-color: #2aa9c7;
}
.freibad-temp-card--pleasant {
    --temp-color: #28b8a0;
}
.freibad-temp-card--warm {
    --temp-color: #d78a1f;
}
.freibad-temp-gauge {
    display: flex;
    width: 66px;
    height: 66px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: conic-gradient(var(--temp-color) var(--temp-deg), #ecedef 0);
}
.freibad-temp-gauge__inner {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #0c3a5b;
    font-size: 14px;
    line-height: 1;
}
.freibad-temp-card__text {
    min-width: 0;
}
.freibad-temp-card__text h4 {
    margin: 0;
    color: #17212b;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.15;
}
.freibad-temp-card__text p {
    margin: 0;
    color: #7a8593;
    font-size: 13px;
    font-weight: 700;
}
.freibad-widget-full__updated {
    padding: 8px 20px 12px;
    background: #fafaf7;
    color: #7a8593;
    font-size: 12px;
}
.freibad-section-title {
    margin: 0;
    color: #7a8593;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

/* ── Status Badges ──────────────────────────────────────────── */
.freibad-badge {
    display: inline-flex;
    align-items: center;
    border: 0;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
}
.freibad-badge.open {
    background: #1c8d55;
}
.freibad-badge.closed {
    background: #b83f3f;
}
.freibad-badge--hero {
    position: absolute;
    top: 16px;
    left: 18px;
    z-index: 3;
}

.freibad-reason {
    margin: 0;
    color: #7a8593;
    font-size: 14px;
    font-style: italic;
}

@media (min-width: 520px) {
    .freibad-temp-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .freibad-temp-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}

@media (min-width: 768px) {
    .freibad-widget-full__body {
        grid-template-columns: minmax(180px, 0.9fr) 2.1fr;
        align-items: center;
        gap: 22px;
        padding: 24px;
    }
    .freibad-widget-full__meta {
        min-height: 150px;
        justify-content: center;
        padding-right: 22px;
        border-right: 1px solid #ececec;
    }
}

/* ── Feature Disabled ───────────────────────────────────────── */
.freibad-feature-disabled {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 6px;
    padding: 12px 16px;
    color: #666;
    margin: 10px 0;
}
.freibad-feature-disabled__icon {
    font-size: 20px;
    margin-right: 12px;
}

/* ── Chart / Webcam Container ───────────────────────────────── */
.freibad-chart-container,
.freibad-webcam-container {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
}
.freibad-export {
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
}
.freibad-export-link {
    color: #1565c0;
    text-decoration: none;
    font-weight: 600;
}
.freibad-export-link:hover {
    text-decoration: underline;
}
