/* ── Schauglasleuchte Plugin Styles ── */

.sgl-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Panel ── */
.sgl-panel {
    flex: 1 1 280px;
    background: #f8f9fb;
    border: 1px solid #dde2ea;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.sgl-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
}

.sgl-subtitle {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 20px;
}

/* ── Input ── */
.sgl-input-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.sgl-input-row label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.sgl-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sgl-input-group input[type="number"] {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    background: #fff;
    transition: border-color .2s;
    box-sizing: border-box;
}

.sgl-input-group input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
}

.sgl-unit {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

input[type="range"]#sgl-slider {
    width: 100%;
    accent-color: #3b82f6;
    cursor: pointer;
}

/* ── Ergebnis ── */
.sgl-result {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
    transition: background .4s;
}

.sgl-lumen {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -1px;
}

.sgl-lumen-label {
    font-size: 12px;
    color: rgba(255,255,255,.8);
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── Stufentabelle ── */
.sgl-stufen {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sgl-stufe-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 7px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    transition: border-color .2s, background .2s;
    font-size: 12px;
}

.sgl-stufe-row.active {
    border-color: currentColor;
    background: #fafbff;
    font-weight: 700;
}

.sgl-stufe-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sgl-stufe-vol {
    flex: 1;
    color: #374151;
}

.sgl-stufe-lum {
    font-weight: 600;
}

/* ── SVG Diagramm ── */
.sgl-diagram-wrap {
    flex: 2 1 320px;
    min-width: 280px;
}

.sgl-diagram-wrap svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .sgl-wrapper {
        flex-direction: column;
    }
    .sgl-lumen {
        font-size: 28px;
    }
}
