/* © 2026 Martin Scherer · Fachwerte (https://www.fachwerte.de) · Alle Rechte vorbehalten.
   Steckdosenplaner — Original: https://www.fachwerte.de/tools/steckdosenplaner/
   Stile zu Teil 59/59b (Grundriss tauschen, DXF). Kennung FWSP-2026-09-01 */

/* ═══ Teil 59: Dialog „Lage übernehmen“ ═══════════════════════════════════ */
.ep-dialog.ep-gt-dialog { max-width: 40rem; }
.ep-gt-dialog .ep-dialog-inhalt { max-height: min(90vh, 48rem); overflow-y: auto; }
.ep-gt-dialog .ep-gt-groessen { font-size: .82rem; color: var(--fw-text-2, #44516a); line-height: 1.5; }
.ep-gt-warn { color: #a0261a; font-weight: 600; }
.ep-gt-wahl { display: flex; flex-direction: column; gap: .5rem; margin: .7rem 0 .2rem; }
.ep-gt-karte {
    display: flex; flex-direction: column; align-items: flex-start; gap: .25rem;
    width: 100%; padding: .7rem .85rem; text-align: left;
    background: var(--fw-surface, #fff); color: var(--fw-text, #14283f);
    border: 1px solid var(--fw-border, #d5dbe5); border-radius: 10px;
    font: inherit; cursor: pointer;
}
.ep-gt-karte:hover { border-color: var(--fw-accent, #e8710a); background: var(--fw-accent-sf, #fff5ec); }
.ep-gt-karte:focus-visible { outline: 2px solid var(--fw-accent, #e8710a); outline-offset: 2px; }
.ep-gt-karte.ist-empfohlen { border-left: 4px solid var(--fw-accent, #e8710a); }
.ep-gt-karte-kopf { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .9rem; }
.ep-gt-marke {
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: var(--fw-accent, #e8710a); border: 1px solid currentColor; border-radius: 99px; padding: 0 .45rem;
}
.ep-gt-karte-text { font-size: .8rem; line-height: 1.45; color: var(--fw-text-2, #44516a); }
.ep-gt-karte-warn { font-size: .78rem; line-height: 1.4; color: #a0261a; }

/* ═══ Teil 59: Passpunkte ═════════════════════════════════════════════════ */
.ep-gt-leiste {
    position: absolute; left: 6.6rem; right: 1rem; z-index: 30;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem .8rem;
    padding: .5rem .6rem .5rem .65rem;
    background: var(--fw-surface, #fff); color: var(--fw-text, #14283f);
    border: 1px solid var(--fw-border, #d5dbe5); border-left: 4px solid #1565c0; border-radius: 10px;
    box-shadow: 0 6px 22px rgba(15, 23, 42, .14);
    font-size: .8rem;
}
.ep-gt-leiste[hidden] { display: none; }
.ep-gt-kopf { display: flex; align-items: flex-start; gap: .55rem; min-width: 0; flex: 1 1 22rem; }
.ep-gt-schritt {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 1.6rem; height: 1.6rem; border-radius: 50%;
    background: #1565c0; color: #fff; font-weight: 700; font-size: .85rem;
}
.ep-gt-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.ep-gt-text strong { font-weight: 650; }
.ep-gt-text small { color: var(--fw-text-2, #44516a); font-size: .76rem; }
.ep-gt-optionen { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; }
.ep-gt-optionen .ep-btn { padding: .3rem .65rem; font-size: .78rem; min-height: 0; }
.ep-gt-deck, .ep-gt-drehen { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.ep-gt-deck input[type="range"] { width: 6.5rem; accent-color: #1565c0; }
.ep-app.ist-touch .ep-gt-optionen .ep-btn { min-height: 2.75rem; }
.ep-app.ist-handy .ep-gt-leiste { right: .5rem; }

/* Altes Bild in der Bühne (über dem neuen, unter allem anderen). */
.ep-stage img.ep-gt-altbild {
    position: absolute; left: 0; top: 0; max-width: none; max-height: none;
    transform-origin: 0 0; pointer-events: none;
}
/* Schritt 3/4: Symbole stehen noch an den alten Bildpunkten — blass, damit
   der neue Grundriss zu sehen ist. */
.ep-plan[data-gt-phase="neu"] #ep-stage > :not(img) { opacity: .25; }
.ep-plan[data-gt-phase] { cursor: crosshair; }

.ep-gt-marken { position: absolute; inset: 0; pointer-events: none; z-index: 25; overflow: hidden; }
.ep-gt-marke-p { position: absolute; width: 0; height: 0; }
.ep-gt-marke-p svg { position: absolute; left: -16px; top: -16px; filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff); }
.ep-gt-marke-p span {
    position: absolute; left: 11px; top: -24px; padding: 0 .3rem; border-radius: 4px;
    font: 700 .72rem/1.4 Inter, Arial, sans-serif; color: #fff;
}
.ep-gt-marke-p.ist-alt { color: #c62828; }
.ep-gt-marke-p.ist-neu { color: #1565c0; }
.ep-gt-marke-p.ist-alt span { background: #c62828; }
.ep-gt-marke-p.ist-neu span { background: #1565c0; }

/* ═══ Teil 59b: DXF-Dialog ════════════════════════════════════════════════ */
.ep-dialog.ep-dxf-dialog { max-width: min(62rem, 96vw); width: 62rem; }
.ep-dxf-dialog .ep-dialog-inhalt { max-height: min(92vh, 52rem); overflow-y: auto; }
.ep-dxf-lead { font-size: .82rem; line-height: 1.5; color: var(--fw-text-2, #44516a); }
.ep-dxf-raster { display: grid; grid-template-columns: minmax(0, 1fr) 17.5rem; gap: .9rem; margin: .6rem 0 .3rem; }
.ep-dxf-links { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.ep-dxf-buehne {
    position: relative; height: min(52vh, 26rem); min-height: 14rem;
    border: 1px solid var(--fw-border, #d5dbe5); border-radius: 8px; background: #fff; overflow: hidden;
}
.ep-dxf-vorschau { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.ep-dxf-rahmen {
    position: absolute; pointer-events: none; border: 2px solid #1565c0;
    box-shadow: 0 0 0 9999px rgba(20, 40, 63, .28); border-radius: 2px;
}
.ep-dxf-unter { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.ep-dxf-info { font-size: .8rem; color: var(--fw-text-2, #44516a); }
.ep-dxf-unter .ep-btn, .ep-dxf-lkopf .ep-btn { padding: .2rem .55rem; font-size: .76rem; min-height: 0; }
.ep-dxf-rechts { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.ep-dxf-feld { display: flex; flex-direction: column; gap: .25rem; }
.ep-dxf-feldname { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--fw-text-2, #44516a); }
.ep-dxf-hinweis { font-size: .74rem; line-height: 1.35; color: var(--fw-text-2, #44516a); }
.ep-dxf-feld.ist-unsicher .ep-select { border-color: #c98a00; box-shadow: 0 0 0 2px #c98a0033; }
.ep-dxf-feld.ist-unsicher .ep-dxf-hinweis { color: #8a5a00; }
.ep-dxf-arten { display: flex; flex-direction: column; gap: .2rem; }
.ep-dxf-check { display: flex; align-items: baseline; gap: .4rem; font-size: .8rem; line-height: 1.3; cursor: pointer; }
.ep-dxf-check input { flex: none; transform: translateY(1px); }
.ep-dxf-check small { margin-left: auto; padding-left: .4rem; color: var(--fw-text-2, #44516a); font-size: .7rem; white-space: nowrap; }
.ep-dxf-check.ist-aus .ep-dxf-lname { color: var(--fw-text-2, #44516a); text-decoration: line-through; text-decoration-color: #9aa5b5; }
.ep-dxf-lname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-dxf-lkopf { display: flex; align-items: center; gap: .3rem; }
.ep-dxf-lkopf .ep-dxf-feldname { margin-right: auto; }
.ep-dxf-layer {
    display: flex; flex-direction: column; gap: .15rem; max-height: min(34vh, 17rem); overflow-y: auto;
    padding: .35rem .45rem; border: 1px solid var(--fw-border, #d5dbe5); border-radius: 8px;
}
.ep-dxf-warn { font-size: .76rem; line-height: 1.4; color: #a0261a; margin: 0; }
.ep-dxf-leer { font-size: .85em; opacity: .8; }
.ep-app.ist-touch .ep-dxf-check { min-height: 2.2rem; align-items: center; }
@media (max-width: 46rem) {
    .ep-dxf-raster { grid-template-columns: 1fr; }
    .ep-dxf-buehne { height: 42vh; }
    .ep-dxf-layer { max-height: 30vh; }
}
