.freibad-dashboard {
    color: #17212b;
}
.freibad-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #e6e8eb;
}
.freibad-dashboard-header h1 {
    margin: 0;
    color: #0c3a5b;
    font-size: 24px;
    line-height: 1.15;
}
.freibad-user {
    margin: 0;
    color: #65707d;
    font-size: 14px;
}

.freibad-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 1.375rem;
}

.freibad-dashboard-editor,
.freibad-dashboard-preview-panel {
    min-width: 0;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(12, 58, 91, 0.06);
}

.freibad-dashboard-editor {
    padding: 18px;
}

.freibad-dashboard-editor h2,
.freibad-preview-header h2 {
    margin: 0 0 12px;
    color: #0c3a5b;
    font-size: 18px;
    line-height: 1.2;
}

.freibad-preview-header p {
    margin: -6px 0 14px;
    color: #7a8593;
    font-size: 13px;
}

/* ── Status Card ────────────────────────────────────────────── */
.freibad-status-card {
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e8e4dc;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 22px rgba(12, 58, 91, 0.05);
}
.freibad-status-card.open {
    background: #fff;
    border-left: 4px solid #43a047;
}
.freibad-status-card.closed {
    background: #fff;
    border-left: 4px solid #e53935;
}
.freibad-last-update {
    margin: 0;
    color: #666;
    font-size: 13px;
}

/* ── Widget Toggle (Hauptcheckbox) ──────────────────────────── */
.freibad-widget-toggle {
    background: #fff;
    border: 1px solid #d7e6f0;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.freibad-widget-toggle input[type="checkbox"] {
    transform: scale(1.4);
    margin-top: 2px;
    cursor: pointer;
}
.freibad-widget-toggle label {
    font-weight: 700;
    color: #0c3a5b;
    cursor: pointer;
    font-size: 15px;
}
.freibad-widget-toggle small {
    display: block;
    color: #666;
    margin-top: 4px;
    font-weight: 400;
}

/* ── Form Fields ────────────────────────────────────────────── */
.freibad-fieldset {
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid #e0e5ea;
    border-radius: 8px;
    background: #fff;
}
.freibad-fieldset legend,
.freibad-season-group legend {
    padding: 0 6px;
    color: #0c3a5b;
    font-size: 14px;
    font-weight: 800;
}
.freibad-field-group {
    margin-bottom: 16px;
}
.freibad-field-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}
.freibad-field-group input,
.freibad-field-group select,
.freibad-field-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.freibad-field-group input:focus,
.freibad-field-group select:focus,
.freibad-field-group textarea:focus {
    border-color: #1e88e5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.12);
}
.freibad-field-group--inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.freibad-radio {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #e2e7ec;
    border-radius: 8px;
    background: #fff;
    color: #4f5964;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.freibad-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.freibad-radio__indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #c6cdd5;
    box-shadow: 0 0 0 4px #f0f3f6;
    flex: 0 0 auto;
}
.freibad-radio__text {
    display: grid;
    gap: 2px;
}
.freibad-radio__text strong {
    color: #17212b;
    font-size: 14px;
    line-height: 1.1;
}
.freibad-radio__text small {
    color: #7a8593;
    font-size: 11px;
    line-height: 1.2;
}
.freibad-radio:has(input:checked) {
    border-color: #8fc9ae;
    background: #f7fcf9;
    box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.12);
}
.freibad-radio--closed:has(input:checked) {
    border-color: #efaaa6;
    background: #fff8f8;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}
.freibad-radio--open:has(input:checked) .freibad-radio__indicator {
    background: #43a047;
    box-shadow: 0 0 0 4px #dff3e5;
}
.freibad-radio--closed:has(input:checked) .freibad-radio__indicator {
    background: #e53935;
    box-shadow: 0 0 0 4px #fde2e1;
}

.freibad-temp-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 0;
}
.freibad-temp-input {
    text-align: right;
    font-size: 18px !important;
    font-weight: 600;
}
.freibad-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ── Season Group ───────────────────────────────────────────── */
.freibad-season-group {
    background: #fff;
    border: 1px solid #d8eadc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}
.freibad-season-group h3 {
    margin: 0 0 12px 0;
    color: #2e7d32;
}

/* ── Save Button ────────────────────────────────────────────── */
.freibad-save-btn {
    background: #1c8d55;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.freibad-save-btn:hover,
.freibad-save-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(28, 141, 85, 0.28);
}

/* ── Preview Section ────────────────────────────────────────── */
.freibad-dashboard-preview-panel {
    padding: 16px;
}
.freibad-preview-sticky {
    top: 16px;
}
.freibad-preview-block {
    margin-top: 16px;
}
.freibad-preview-block h3 {
    margin: 0 0 8px;
    color: #65707d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.freibad-preview-statusbar {
    min-height: 34px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
}
.freibad-widget-full--dashboard-preview {
    margin-bottom: 0;
    box-shadow: none;
}
.freibad-widget-full--dashboard-preview .freibad-widget-full__body {
    padding: 16px;
}
.freibad-widget-full--dashboard-preview .freibad-widget-full__meta h2 {
    font-size: 20px;
}
.freibad-widget-full--dashboard-preview .freibad-widget-full__hours {
    font-size: 16px;
}
.freibad-widget-full--dashboard-preview .freibad-temp-card__text h5 {
    margin: 0;
    color: #17212b;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
}
.freibad-widget-full--dashboard-preview [data-preview-temp-card][hidden] {
    display: none;
}
.freibad-preview-disabled {
    opacity: 0.45;
    filter: grayscale(0.35);
}

/* ── Feature Boxes ──────────────────────────────────────────── */
.freibad-feature-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}
.freibad-feature-info__header {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: 0 8px 22px rgba(12, 58, 91, 0.05);
}
.freibad-feature-info__header p {
    margin: 0 0 4px;
    color: #7a8593;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.freibad-feature-info__header h2 {
    margin: 0;
    color: #0c3a5b;
    font-size: 18px;
    line-height: 1.2;
}
.freibad-feature-disabled {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    min-height: 112px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(12, 58, 91, 0.05);
}
.freibad-feature-disabled__icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #edf5fa;
    color: #0c3a5b;
    font-size: 18px;
}
.freibad-feature-disabled__text {
    min-width: 0;
    padding-right: 78px;
}
.freibad-feature-disabled__text strong {
    display: block;
    color: #17212b;
    font-size: 15px;
    line-height: 1.2;
}
.freibad-feature-disabled__text span {
    display: block;
    margin-top: 5px;
    color: #65707d;
    font-size: 13px;
    line-height: 1.3;
}
.freibad-feature-disabled__text small {
    display: block;
    margin-top: 10px;
    color: #87919c;
    font-size: 11px;
}
.freibad-feature-disabled__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #0c3a5b;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Access Denied ──────────────────────────────────────────── */
.freibad-access-denied {
    background: #fff3e0;
    border: 1px solid #ffb74d;
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    color: #e65100;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .freibad-temp-group {
        grid-template-columns: 1fr;
    }
    .freibad-field-row {
        grid-template-columns: 1fr;
    }
    .freibad-field-group--inline,
    .freibad-feature-info {
        grid-template-columns: 1fr;
    }
    .freibad-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (min-width: 980px) {
    .freibad-dashboard-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
        gap: 24px;
    }
    .freibad-preview-sticky {
        position: sticky;
    }
}
