/*! Copyright (c) 2026 copuNET GmbH · https://copunet.de/
 * Eigene Entwicklung von copuNET GmbH. Weiterverwendung eigenstaendig lizenzierbarer Bestandteile nur mit schriftlicher Zustimmung; gesetzliche Rechte und geltende Drittlizenzen bleiben unberuehrt. */
/* Backup: Worst-Case-Szene mit der Farbpalette des Prozesslabors. */
.copunet-worst[hidden],.copunet-labor-szene[hidden] {
    display:none
}
.copunet-labor.is-worst>.copunet-labor-aktionen {
    display:none
}
.copunet-worst {
    padding-block:var(--copunet-labor-abstand);
    color:var(--copunet-labor-akzent);
    transition:opacity var(--copunet-labor-textwechsel,.4s)
}
.copunet-labor.is-resetting .copunet-worst {
    opacity:0
}
.copunet-worst-labels {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
    color:var(--copunet-labor-text);
    text-align:center;
    font-size:14px
}
.copunet-worst-map {
    display:block;
    width:100%;
    height:auto;
    max-height:390px;
    overflow:hidden;
    margin-top:12px
}
.copunet-worst-map path,.copunet-worst-map rect,.copunet-worst-map circle {
    vector-effect:non-scaling-stroke
}
.worst-grid {
    stroke:var(--copunet-labor-linie);
    opacity:.25
}
.worst-building {
    stroke:var(--copunet-labor-linie);
    fill:var(--copunet-labor-flaeche)
}
.worst-server rect,.worst-nas rect {
    fill:var(--copunet-labor-flaeche)
}
.worst-route {
    stroke:var(--copunet-labor-linie)
}
.worst-cloud {
    fill:var(--copunet-labor-flaeche);
    transition:color .5s
}
.worst-cloud-check {
    opacity:0;
    transition:opacity .5s
}
.worst-packet {
    fill:var(--copunet-labor-akzent);
    filter:drop-shadow(0 0 5px currentColor)
}
.worst-site {
    transition:opacity .65s,transform .65s;
    transform-origin:330px 220px
}
.worst-comet {
    opacity:0
}
.worst-comet path:last-child {
    fill:var(--copunet-labor-flaeche)
}
.worst-impact {
    opacity:0
}
.copunet-worst[data-phase="2"] .worst-cloud,.copunet-worst[data-phase="3"] .worst-cloud,.copunet-worst[data-phase="4"] .worst-cloud {
    color:var(--copunet-labor-empfangsfarbe,#72cf94)
}
.copunet-worst[data-phase="2"] .worst-cloud-check,.copunet-worst[data-phase="3"] .worst-cloud-check,.copunet-worst[data-phase="4"] .worst-cloud-check {
    opacity:1
}
.copunet-worst[data-phase="3"] .worst-site,.copunet-worst[data-phase="4"] .worst-site {
    opacity:.2;
    transform:translateY(5px) rotate(1deg)
}
.copunet-worst[data-phase="3"] .worst-impact,.copunet-worst[data-phase="4"] .worst-impact {
    opacity:.8
}
.copunet-worst-caption {
    display:flex;
    justify-content:space-between;
    gap:20px;
    color:var(--copunet-labor-gedaempft);
    font-size:12px;
    margin-bottom:24px
}
.worst-safe-label {
    opacity:0;
    color:var(--copunet-labor-empfangsfarbe,#72cf94)
}
.copunet-worst[data-phase="2"] .worst-safe-label,.copunet-worst[data-phase="3"] .worst-safe-label,.copunet-worst[data-phase="4"] .worst-safe-label {
    opacity:1
}
.copunet-worst-result {
    border-top:1px solid var(--copunet-labor-linie);
    padding-top:24px;
    display:flex;
    align-items:center;
    gap:18px;
    min-height:112px;
    color:var(--copunet-labor-text)
}
.copunet-worst-result>div {
    flex:1
}
.copunet-worst-result strong {
    font-size:clamp(16px,1.6vw,22px);
    font-weight:400
}
.copunet-worst-result p {
    font-size:14px;
    line-height:1.6;
    margin:6px 0 0;
    color:var(--copunet-labor-gedaempft)
}
.worst-happy {
    width:56px;
    height:56px;
    flex:none;
    color:var(--copunet-labor-empfangsfarbe,#72cf94);
    opacity:0;
    transform:translateY(6px);
    transition:opacity .5s,transform .5s
}
.worst-end-copy {
    visibility:hidden
}
.copunet-worst[data-phase="4"] .worst-happy {
    opacity:1;
    transform:none
}
.copunet-worst[data-phase="4"] .worst-end-copy {
    visibility:visible
}
.copunet-worst[data-phase="4"] [data-worst-status] {
    color:var(--copunet-labor-empfangsfarbe,#72cf94)
}
.copunet-worst [data-worst-replay] {
    font-size:12px;
    padding:10px 14px
}
@media(max-width:767px) {
    .copunet-worst-labels {
        font-size:11px;
        gap:8px;
        overflow-wrap:anywhere
    }
    .copunet-worst-map {
        min-height:190px
    }
    .copunet-worst-result {
        flex-wrap:wrap;
        gap:12px
    }
    .copunet-worst-result>div {
        flex-basis:calc(100% - 70px)
    }
    .copunet-worst-caption {
        font-size:10px;
        gap:12px
    }
    .worst-happy {
        width:44px;
        height:44px
    }
    .copunet-worst-result p {
        font-size:12px
    }
    .copunet-worst-result strong {
        font-size:17px
    }
}
@media(prefers-reduced-motion:reduce) {
    .copunet-worst * {
        transition:none!important
    }
    .copunet-worst .worst-site {
        transform:none
    }
}
/* Die Übertragungsszene dient als Größenreferenz für alle Bildschirmbreiten. */
.copunet-labor-buehne {
    position:relative
}
.copunet-labor.is-worst .copunet-labor-szene[hidden] {
    display:grid;
    visibility:hidden;
    pointer-events:none
}
.copunet-labor-buehne>.copunet-worst {
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    min-height:0
}
.copunet-labor-buehne>.copunet-worst[hidden] {
    display:none
}
.copunet-labor-buehne .copunet-worst-map {
    flex:1 1 0;
    min-height:0;
    max-height:none
}
.copunet-worst-labels,.copunet-worst-caption,.copunet-worst-result {
    flex-shrink:0
}
/* Beschriftungen und Geräte verwenden bei jeder Größe dasselbe SVG-Koordinatensystem. */
.copunet-worst-map .worst-device-labels,.copunet-worst-map .worst-location-labels {
    stroke:none;
    text-anchor:middle;
    fill:var(--copunet-labor-text);
    font-family:inherit
}
.copunet-worst-map .worst-location-labels {
    fill:var(--copunet-labor-gedaempft)
}
.copunet-worst-map text.worst-safe-label {
    fill:var(--copunet-labor-empfangsfarbe,#72cf94)
}
/* Gleich große Server- und NAS-Fenster mit reserviertem Statusbereich. */
.copunet-labor--backup .copunet-labor-szene {
    align-items:stretch
}
.copunet-labor--backup .copunet-labor-fenster {
    margin-top:0;
    display:flex;
    flex-direction:column
}
.copunet-labor--backup .copunet-labor-bruecke {
    align-self:center
}
.copunet-labor--backup .copunet-labor-fensterinhalt {
    flex:1;
    display:flex;
    flex-direction:column
}
.copunet-labor--backup .copunet-labor-fensterinhalt:has([data-eingabe])::after {
    content:'';
    display:block;
    min-height:1.6em
}
.copunet-labor--backup .copunet-labor-fensterinhalt pre {
    flex:1
}
.worst-boundary {
    stroke:var(--copunet-labor-linie);
    opacity:.6
}
.worst-separation-label {
    fill:var(--copunet-labor-gedaempft);
    stroke:none;
    text-anchor:middle
}
@media(max-width:767px) {
    .copunet-labor.is-worst .copunet-labor-szene[hidden] {
        display:none
    }
    .copunet-labor-buehne>.copunet-worst {
        position:relative;
        inset:auto
    }
    .copunet-labor-buehne .copunet-worst-map {
        flex:none;
        height:auto;
        min-height:0;
        aspect-ratio:960/440;
        margin-bottom:20px
    }
    .copunet-worst-map .worst-device-labels {
        font-size:28px
    }
    .copunet-worst-map .worst-location-labels {
        font-size:23px
    }
    .copunet-worst-map .worst-separation-label {
        font-size:24px
    }
}
