/*
 * Sicherheitsseite der Produkt-Website (templates/start/security.html.twig): das Schema „DIWA läuft weiter, wenn ein
 * Server ausfällt“ (_security_schema.html.twig, Präfix sec-) und die kleinen Bilder der Zusagen
 * (_security_pictures.html.twig, Präfix sp- in den SVG). Ergänzt start.css; gilt nur unter body.web.
 *
 * Das Schema steht auf Dunkelblau wie die übrigen Sicherheitsabschnitte der Website, Zustand immer mit Symbol und Wort.
 * Kontraste auf dem Grund (#152349 … #1f3062) und auf den Kacheln (7 % Weiß darüber): Weiß ≥ 9 : 1, #dfe5f2 ≥ 8 : 1,
 * #b9c4de ≥ 6 : 1, Grün #a8dca2 ≥ 6 : 1, Bernstein #f2c46b ≥ 5 : 1 (auch auf der Kachel im Ausfall).
 *
 * Bewegung nur ohne „Bewegung reduzieren“: Datenflüsse auf den Leitungen, ein Server der ersten Reihe (30–50 % des Takts)
 * und einer der zweiten (65–85 %) fallen kurz aus, die anderen leuchten auf und arbeiten weiter, gegen Ende des Takts
 * läuft die Sicherung. Schrift wird nie überblendet, nur sprunghaft getauscht (axe misst sonst Zwischenstände).
 * Anhalten: .sec-map.is-paused (web_motion_controller.js).
 */

.web {
    --sec-bg: #152349;
    --sec-bg-top: #1f3062;
    --sec-tile: rgba(255, 255, 255, 0.07);
    --sec-tile-line: rgba(255, 255, 255, 0.16);
    --sec-text: #fff;
    --sec-soft: #dfe5f2;
    --sec-meta: #b9c4de;
    --sec-line: rgba(223, 229, 242, 0.42);
    --sec-ok: #a8dca2;
    --sec-ok-glow: rgba(168, 220, 162, 0.55);
    --sec-warn: #f2c46b;
    --sec-warn-tile: rgba(242, 196, 107, 0.16);
    --sec-badge: #2a3d74;
    --sec-a: #7fd1c7;
    --sec-b: #c2b3f5;
    --sec-c: #8ec5ff;
    --sec-on-key: #14203f;
    --sec-gap: 12px;
    --sec-label: 196px;
    --sec-col-gap: 24px;
    --sec-dc-pad: 24px;
    --sec-cycle: 20s;
    --sec-flow: 2.4s;
}

/* ==== Abschnitt und Überschrift ==================================================================================== */

/* Knapper Kopf (Überschrift links, Satz rechts), damit das Schema schon im ersten Bildschirm beginnt */
.web .sec-aufbau {
    padding-top: clamp(40px, 5vw, 72px);
}

.sec-aufbau .web-head {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: end;
    gap: 12px clamp(32px, 4vw, 64px);
    max-width: none;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.web .sec-aufbau__title {
    max-width: 26ch;
    margin-bottom: 0;
}

.sec-aufbau .web-lead {
    font-size: 18px;
}

.sec-eyebrow {
    display: block;
    width: fit-content;
    margin-bottom: 14px;
    padding: 3px 12px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    color: var(--sec-soft);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

/* ==== Schema: Tafel, Raster, Beschriftungen ========================================================================== */

.sec-map {
    margin: 0;
}

.sec-map__board {
    position: relative;
    padding: clamp(16px, 2.4vw, 32px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1.2px, transparent 1.4px) 0 0 / 22px 22px,
        linear-gradient(170deg, var(--sec-bg-top) 0%, var(--sec-bg) 70%);
    box-shadow: 0 40px 80px -40px rgba(4, 9, 28, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: var(--sec-text);
    font-size: 14px;
    line-height: 1.35;
}

.sec-map__board p {
    max-width: none;
    margin: 0;
}

.sec-map__board ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sec-map__tag {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px !important;
    color: var(--sec-meta);
    font-size: 13px;
}

.sec-map__tag span {
    padding: 2px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--sec-text);
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* Zwei Spalten: links die Zeilenbeschriftung, rechts das Bild */
.sec-grid {
    display: grid;
    grid-template-columns: var(--sec-label) minmax(0, 1fr);
    column-gap: var(--sec-col-gap);
    align-items: center;
}

.sec-grid > :not(.sec-label) {
    grid-column: 2;
}

/* Außerhalb des Rahmens: gleiche Spalten wie im Rahmen (Innenabstand + Rand) */
.sec-grid--outside {
    padding-inline: calc(var(--sec-dc-pad) + 1.5px);
}

.sec-label {
    grid-column: 1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--sec-meta);
    font-size: 13px;
    line-height: 1.35;
}

.sec-label__text {
    display: grid;
    gap: 2px;
}

.sec-label strong {
    color: var(--sec-text);
    font-size: 15px;
    line-height: 1.25;
}

/* Nummernschild (Leitmotiv der Website), hell auf Dunkelblau */
.sec-plate {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--c-white);
    color: var(--web-navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* Rahmen „Rechenzentren in Deutschland“ */
.sec-dc {
    position: relative;
    padding: calc(var(--sec-dc-pad) + 6px) var(--sec-dc-pad) var(--sec-dc-pad);
    border: 1.5px dashed rgba(223, 229, 242, 0.38);
    border-radius: 18px;
}

.sec-dc__label {
    position: absolute;
    top: 0;
    left: 18px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: #1c2c5c;
    color: var(--sec-soft);
    font-size: 13px;
    font-weight: 700;
    transform: translateY(-50%);
}

.sec-de {
    width: 14px;
    height: 19px;
    fill: var(--sec-ok);
}

/* Ihr Jobcenter: Geräte und Wege, aus denen Anfragen kommen */
.sec-clients {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.sec-clients li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--sec-tile-line);
    border-radius: 999px;
    background: var(--sec-tile);
    color: var(--sec-soft);
    font-size: 13.5px;
    font-weight: 500;
}

.sec-clients .icon {
    width: 16px;
    height: 16px;
    color: var(--sec-text);
}

/* Zustand: Symbol und Wort; „Ausfall“ liegt an derselben Stelle und erscheint nur in der Bewegung */
.sec-state {
    display: inline-grid;
    justify-items: center;
    color: var(--sec-ok);
    font-size: 13px;
    font-weight: 500;
}

.sec-state__on,
.sec-state__off {
    display: inline-flex;
    grid-area: 1 / 1;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.sec-state__off {
    visibility: hidden;
    color: var(--sec-warn);
}

.sec-state .icon {
    flex: none;
    width: 15px;
    height: 15px;
}

/* Schloss an einer Leitung */
.sec-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px 3px 8px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: var(--sec-badge);
    color: var(--sec-text);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transform: translate(-50%, -50%);
}

.sec-lock .icon {
    width: 13px;
    height: 13px;
}

.sec-lock--icon {
    padding: 5px;
}

/* ==== Schema: Leitungen ============================================================================================== */

/* Leitung von Ihrem Jobcenter in den Verbund (reicht über den Rahmen hinweg) */
.sec-wire {
    position: relative;
    z-index: 1;
    height: calc(56px + var(--sec-dc-pad) + 8px);
    margin-bottom: calc(-1 * (var(--sec-dc-pad) + 8px));
}

.sec-wire::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 1px);
    border-left: 2px solid var(--sec-line);
}

.sec-wire--in .sec-lock {
    top: 34%;
}

/* Sammelschiene: je Server ein Stich, in der Mitte der Stamm */
.sec-bus {
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0 var(--sec-gap);
    height: 46px;
}

.sec-bus::before {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    right: calc((100% - 6 * var(--sec-gap)) / 14);
    left: calc((100% - 6 * var(--sec-gap)) / 14);
    border-top: 2px solid var(--sec-line);
}

.sec-bus__trunk {
    position: absolute;
    left: calc(50% - 1px);
    width: 2px;
    height: 50%;
    background: var(--sec-line);
}

.sec-bus--down .sec-bus__trunk {
    top: 0;
}

.sec-bus__stub {
    position: relative;
}

.sec-bus__stub::before {
    content: "";
    position: absolute;
    left: calc(50% - 1px);
    height: 50%;
    border-left: 2px solid var(--sec-line);
}

.sec-bus--down .sec-bus__stub::before {
    bottom: 0;
}

/* Datenfluss: kurze, ruhig wandernde Lichtpunkte (unsichtbar, solange keine Bewegung läuft) */
.sec-wire::after,
.sec-bus__trunk::after,
.sec-bus__stub::after,
.sec-split__trunk::after {
    content: "";
    position: absolute;
    left: calc(50% - 3px);
    width: 6px;
    height: 12px;
    border-radius: 3px;
    background: linear-gradient(to bottom, rgba(168, 220, 162, 0), var(--sec-ok));
    box-shadow: 0 0 10px var(--sec-ok-glow);
    opacity: 0;
}

.sec-bus__trunk::after,
.sec-split__trunk::after {
    left: -2px;
}


/* ==== Schema: Server im Verbund ====================================================================================== */

.sec-nodes {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: var(--sec-gap);
}

.sec-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 0;
    padding: 12px 4px 10px;
    border: 1px solid var(--sec-tile-line);
    border-top: 3px solid var(--sec-ok);
    border-radius: 10px;
    background: var(--sec-tile);
    text-align: center;
}

.sec-node__icon {
    width: 22px;
    height: 22px;
    color: var(--sec-soft);
}

.sec-verbund {
    position: relative;
    padding: 0 14px 10px;
    border: 1.5px solid rgba(168, 220, 162, 0.45);
    border-radius: 14px;
    background: rgba(168, 220, 162, 0.05);
}

.sec-nodes + .sec-nodes {
    margin-top: var(--sec-gap);
}

.sec-verbund__note {
    margin-top: 10px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--sec-meta);
    font-size: 12.5px;
}

.sec-verbund__note .icon {
    width: 14px;
    height: 14px;
}

/* Vom Verbund zu den Sicherungen; Sicherungen und Schlüssel mittig, nicht über die ganze Breite */
.sec-split,
.sec-backups,
.sec-keys {
    justify-self: center;
    width: 100%;
    max-width: 640px;
}

.sec-split {
    position: relative;
    height: 56px;
}

.sec-split__trunk {
    position: absolute;
    top: 0;
    left: calc(50% - 1px);
    width: 2px;
    height: 50%;
    background: var(--sec-line);
}

.sec-split::after {
    content: "";
    position: absolute;
    top: 50%;
    right: calc((100% - 24px) / 4 - 1px);
    bottom: 0;
    left: calc((100% - 24px) / 4 - 1px);
    border: 2px solid var(--sec-line);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
}

.sec-backups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sec-gap) 24px;
}

.sec-backup {
    display: grid;
    grid-template-areas: "icon name" "icon meta" "lock lock";
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 12px;
    padding: 12px 14px;
    border: 1px solid var(--sec-tile-line);
    border-top: 3px solid var(--sec-ok);
    border-radius: 12px;
    background: var(--sec-tile);
}

.sec-backup__icon {
    grid-area: icon;
    align-self: center;
    width: 26px;
    height: 26px;
    color: var(--sec-soft);
}

.sec-backup__name {
    grid-area: name;
    font-size: 14.5px;
    font-weight: 700;
}

.sec-backup__meta {
    grid-area: meta;
    color: var(--sec-meta);
    font-size: 12.5px;
}

.sec-backup__lock,
.sec-safe__lock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
}

.sec-backup__lock {
    grid-area: lock;
    justify-self: start;
    margin-top: 8px;
    padding: 2px 9px 2px 7px;
    border-radius: 999px;
    background: rgba(168, 220, 162, 0.14);
    color: var(--sec-ok);
}

.sec-backup__lock .icon,
.sec-safe__lock .icon {
    flex: none;
    width: 13px;
    height: 13px;
}

/* Ihre Daten: je Jobcenter ein eigener Schlüssel */
.sec-grid > .sec-label--keys,
.sec-grid > .sec-keys {
    margin-top: 28px;
}

.sec-keys {
    display: grid;
    justify-items: center;
}

.sec-keys__vaults {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 var(--sec-gap);
    width: 100%;
}

.sec-safe {
    --sec-key: var(--sec-a);
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 12px 6px;
    border: 1px solid var(--sec-tile-line);
    border-top: 3px solid var(--sec-key);
    border-radius: 12px;
    background: var(--sec-tile);
    text-align: center;
}

.sec-safe--b {
    --sec-key: var(--sec-b);
}

.sec-safe--c {
    --sec-key: var(--sec-c);
}

.sec-safe__key {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--sec-key);
    color: var(--sec-on-key);
}

.sec-safe__key .icon {
    width: 18px;
    height: 18px;
}

.sec-safe__name {
    font-size: 14px;
    font-weight: 700;
}

.sec-safe__lock {
    color: var(--sec-meta);
}

/* Zeichenerklärung */
.sec-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin-top: 22px !important;
    color: var(--sec-soft);
    font-size: 13px;
}

.sec-legend li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
}

.sec-legend .icon {
    width: 15px;
    height: 15px;
}

.sec-legend__ok {
    color: var(--sec-ok);
}

.sec-legend__warn {
    color: var(--sec-warn);
}

.sec-legend__ok,
.sec-legend__warn,
.sec-legend__lock {
    display: inline-flex;
}

/* ==== Schema: Textfassung und Taste ================================================================================ */

.sec-plate--lock .icon {
    width: 14px;
    height: 14px;
}

.sec-map__pause {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    margin-top: 14px;
    padding: 4px 14px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: transparent;
    color: var(--c-white);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.sec-map__pause:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sec-map__pause .icon {
    width: 14px;
    height: 14px;
}

.sec-map__text {
    margin-top: clamp(24px, 3vw, 40px);
}

.sec-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sec-steps li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.sec-steps p {
    margin: 0;
    color: var(--web-on-navy);
    font-size: 15.5px;
    line-height: 1.5;
}

.sec-steps strong {
    display: block;
    color: var(--c-white);
}

/* ==== Kleine Bilder der Zusagen ===================================================================================== */

/* Wo start.css dieselben Bausteine formt, mit .web davor (start.css wird nach dieser Datei geladen) */
.web .sec-promises > li {
    padding-top: 0;
    border-top: 0;
}

.sec-pic {
    margin-bottom: var(--space-4);
    padding: 10px;
    border: 1px solid var(--web-line);
    border-radius: 16px;
    background: var(--web-tint);
}

.web-section--tint .sec-pic {
    background: var(--c-white);
}

.sec-pic__svg {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-inline: auto;
    font-family: inherit;
}

.web .sec-callout {
    grid-template-columns: 172px minmax(0, 1fr);
    align-items: center;
}

.web .sec-callout .sec-pic {
    margin: 0;
    padding: 8px;
    background: var(--web-tint);
}

.sec-pic__svg--small {
    max-width: 160px;
}

/* Schrift in den Bildern */
.sp-t {
    fill: var(--web-ink);
    font-size: 12px;
    font-weight: 500;
}

.sp-small {
    fill: var(--c-muted);
    font-size: 11px;
}

.sp-bold {
    font-weight: 700;
}

.sp-ink-t {
    fill: var(--web-ink);
}

.sp-muted-t {
    fill: var(--c-muted);
}

.sp-ok {
    fill: var(--c-success-text);
    font-weight: 700;
}

.sp-bad {
    fill: var(--c-danger-text);
    font-weight: 700;
}

.sp-warn-t {
    fill: var(--c-warning-text);
    font-weight: 700;
}

.sp-letter {
    fill: var(--c-white);
    font-size: 16px;
    font-weight: 700;
}

.sp-code {
    fill: var(--web-navy);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.sp-code-lg {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.sp-dots {
    letter-spacing: 0.12em;
}

.sp-day {
    fill: var(--c-muted);
    font-size: 10.5px;
    font-weight: 700;
}

.sp-on-ink {
    fill: var(--c-white);
    font-size: 11px;
    font-weight: 700;
}

.sp-chip-t {
    fill: var(--web-navy);
    font-size: 11px;
    font-weight: 700;
}

.sp-on-screen-soft {
    fill: var(--web-on-navy);
    font-size: 11px;
}

.sp-on-screen-big {
    fill: var(--c-white);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sp-on-screen {
    fill: var(--c-white);
}

/* Formen in den Bildern */
.sp-ink,
.sp-box,
.sp-server rect,
.sp-house__win,
.sp-screen,
.sp-safe__hinge {
    fill: var(--web-navy);
}

.sp-card {
    fill: var(--c-white);
    stroke: #c3cbdb;
    stroke-width: 1.5;
}

.sp-land {
    fill: #e3e8f2;
    stroke: var(--web-navy);
    stroke-width: 1;
    stroke-linejoin: round;
}

.sp-bar-top,
.sp-chip {
    fill: #e3e8f2;
}

.sp-line {
    fill: #c9d1df;
}

.sp-dot {
    fill: #7d889e;
}

.sp-net {
    fill: none;
    stroke: var(--c-blue);
    stroke-width: 1.5;
    stroke-dasharray: 3 3;
}

.sp-wire,
.sp-arrow,
.sp-hands {
    fill: none;
    stroke: var(--web-navy);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sp-house,
.sp-safe,
.sp-rack rect,
.sp-clock {
    fill: var(--c-white);
    stroke: var(--web-navy);
    stroke-width: 2;
    stroke-linejoin: round;
}

.sp-db,
.sp-door {
    fill: #e3e8f2;
    stroke: var(--web-navy);
    stroke-width: 2;
}

.sp-lock circle {
    fill: var(--web-navy);
}

.sp-lock rect {
    fill: var(--c-white);
}

.sp-lock__bow {
    fill: none;
    stroke: var(--c-white);
    stroke-width: 1.8;
    stroke-linecap: round;
}

.sp-tick circle {
    fill: var(--c-success-text);
}

.sp-tick path,
.sp-try {
    fill: none;
    stroke: var(--c-muted);
    stroke-width: 1.8;
    stroke-dasharray: 4 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sp-try--head {
    stroke-dasharray: none;
}

.sp-ban circle {
    fill: var(--c-white);
    stroke: var(--c-danger);
    stroke-width: 2.4;
}

.sp-ban path,
.sp-strike {
    fill: none;
    stroke: var(--c-danger);
    stroke-width: 2.4;
    stroke-linecap: round;
}

.sp-safe--gone {
    fill: #f1f3f7;
    stroke: #7d889e;
    stroke-dasharray: 5 4;
}

.sp-safe__dial {
    fill: none;
    stroke: var(--web-navy);
    stroke-width: 2;
    stroke-linecap: round;
}

.sp-key {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sp-key--a {
    stroke: #0f766e;
}

.sp-key--b {
    stroke: #6247c4;
}

.sp-key--broken {
    stroke: var(--c-danger);
}

.sp-go {
    fill: none;
    stroke: var(--c-success-text);
    stroke-width: 2.5;
    stroke-linecap: round;
}

.sp-stop {
    fill: none;
    stroke: #b37600;
    stroke-width: 2;
    stroke-dasharray: 4 4;
}

.sp-rack__led {
    fill: var(--c-success-text);
}

.sp-rack--fail rect {
    fill: var(--c-warning-bg);
    stroke: #b37600;
    stroke-dasharray: 4 3;
}

.sp-rack--fail .sp-rack__led {
    fill: #b37600;
}

.sp-warn > path {
    fill: var(--c-warning);
}

.sp-warn > .sp-warn__mark {
    fill: none;
    stroke: #3d2a00;
    stroke-width: 2;
    stroke-linecap: round;
}

.sp-check {
    fill: none;
    stroke: var(--c-success-text);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sp-field {
    fill: var(--c-white);
    stroke: var(--c-border);
    stroke-width: 1.5;
}

.sp-plate circle {
    fill: var(--web-navy);
}

.sp-plate text {
    fill: var(--c-white);
    font-size: 11px;
    font-weight: 700;
}

.sp-plus {
    stroke: var(--web-navy);
    stroke-width: 3;
    stroke-linecap: round;
}

.sp-phone {
    fill: var(--c-white);
    stroke: #1f2a3a;
    stroke-width: 3;
}

.sp-phone__ear {
    stroke: #1f2a3a;
    stroke-width: 3;
    stroke-linecap: round;
}

.sp-timer {
    fill: var(--c-success-text);
}

.sp-knob,
.sp-qr-bg {
    fill: var(--c-white);
}

.sp-rows,
.sp-eyeoff path,
.sp-eyeoff circle {
    fill: none;
    stroke: #7d889e;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.sp-stand,
.sp-qr {
    fill: #1f2a3a;
}

.sp-sep {
    stroke: var(--c-line);
    stroke-width: 1;
}

/* ==== Bewegung ===================================================================================================== */

@media (prefers-reduced-motion: reduce) {
    .sec-map__pause {
        display: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    /* Datenflüsse */
    .sec-wire::after {
        animation: sec-drop var(--sec-flow) linear infinite;
    }

    .sec-bus--down .sec-bus__trunk::after {
        animation: sec-drop-half var(--sec-flow) linear 0.5s infinite;
    }

    .sec-bus--down .sec-bus__stub::after {
        animation: sec-drop-low var(--sec-flow) linear 1.1s infinite;
    }

    .sec-bus--down .sec-bus__stub:nth-of-type(even):not(.sec-bus__stub--fail)::after {
        animation-delay: 1.4s;
    }

    /* Ein Server der ersten Reihe fällt aus (30–50 %), die anderen übernehmen */
    .sec-bus--down .sec-bus__stub--fail::before {
        animation: sec-wire-fail-first var(--sec-cycle) step-end infinite;
    }

    .sec-bus--down .sec-bus__stub--fail::after {
        animation: sec-drop-low var(--sec-flow) linear 1.1s infinite, sec-hide-first var(--sec-cycle) step-end infinite;
    }

    .sec-nodes--first .sec-node--fail {
        animation: sec-tile-fail-first var(--sec-cycle) step-end infinite;
    }

    .sec-nodes--first .sec-node--fail .sec-node__icon {
        animation: sec-icon-fail-first var(--sec-cycle) step-end infinite;
    }

    .sec-nodes--first .sec-node--fail .sec-state__on {
        animation: sec-hide-first var(--sec-cycle) step-end infinite;
    }

    .sec-nodes--first .sec-node--fail .sec-state__off {
        animation: sec-show-first var(--sec-cycle) step-end infinite;
    }

    .sec-nodes--first .sec-node:not(.sec-node--fail) {
        animation: sec-take-first var(--sec-cycle) ease-in-out infinite;
    }

    /* Ein Server der zweiten Reihe fällt aus (65–85 %), der Verbund arbeitet weiter */

    .sec-nodes--second .sec-node--fail {
        animation: sec-tile-fail-second var(--sec-cycle) step-end infinite;
    }

    .sec-nodes--second .sec-node--fail .sec-node__icon {
        animation: sec-icon-fail-second var(--sec-cycle) step-end infinite;
    }

    .sec-nodes--second .sec-node--fail .sec-state__on {
        animation: sec-hide-second var(--sec-cycle) step-end infinite;
    }

    .sec-nodes--second .sec-node--fail .sec-state__off {
        animation: sec-show-second var(--sec-cycle) step-end infinite;
    }

    .sec-nodes--second .sec-node:not(.sec-node--fail) {
        animation: sec-take-second var(--sec-cycle) ease-in-out infinite;
    }

    .sec-legend__fail {
        animation: sec-legend var(--sec-cycle) step-end infinite;
    }

    /* Sicherung gegen Ende des Takts */
    .sec-split__trunk::after {
        animation: sec-daily var(--sec-cycle) linear infinite;
    }

    .sec-backup {
        animation: sec-backup-in var(--sec-cycle) ease-in-out infinite;
    }

    .sec-map.is-paused *,
    .sec-map.is-paused *::before,
    .sec-map.is-paused *::after {
        animation-play-state: paused !important;
    }
}

@keyframes sec-drop {
    0% { top: 0; opacity: 0; }
    15%, 85% { opacity: 1; }
    100% { top: calc(100% - 12px); opacity: 0; }
}

@keyframes sec-drop-half {
    0% { top: 0; opacity: 0; }
    20%, 80% { opacity: 1; }
    100% { top: calc(50% - 12px); opacity: 0; }
}

@keyframes sec-drop-low {
    0% { top: 50%; opacity: 0; }
    20%, 80% { opacity: 1; }
    100% { top: calc(100% - 12px); opacity: 0; }
}

@keyframes sec-wire-fail-first {
    0% { border-left-style: solid; border-left-color: var(--sec-line); }
    30% { border-left-style: dashed; border-left-color: var(--sec-warn); }
    50% { border-left-style: solid; border-left-color: var(--sec-line); }
}

@keyframes sec-hide-first {
    0% { visibility: visible; }
    30% { visibility: hidden; }
    50% { visibility: visible; }
}

@keyframes sec-show-first {
    0% { visibility: hidden; }
    30% { visibility: visible; }
    50% { visibility: hidden; }
}

@keyframes sec-hide-second {
    0% { visibility: visible; }
    65% { visibility: hidden; }
    85% { visibility: visible; }
}

@keyframes sec-show-second {
    0% { visibility: hidden; }
    65% { visibility: visible; }
    85% { visibility: hidden; }
}

@keyframes sec-tile-fail-first {
    0% { border-style: solid; border-color: var(--sec-tile-line); border-top-color: var(--sec-ok); background-color: var(--sec-tile); }
    30% { border-style: dashed; border-top-style: solid; border-color: rgba(242, 196, 107, 0.6); border-top-color: var(--sec-warn); background-color: var(--sec-warn-tile); }
    50% { border-style: solid; border-color: var(--sec-tile-line); border-top-color: var(--sec-ok); background-color: var(--sec-tile); }
}

@keyframes sec-tile-fail-second {
    0% { border-style: solid; border-color: var(--sec-tile-line); border-top-color: var(--sec-ok); background-color: var(--sec-tile); }
    65% { border-style: dashed; border-top-style: solid; border-color: rgba(242, 196, 107, 0.6); border-top-color: var(--sec-warn); background-color: var(--sec-warn-tile); }
    85% { border-style: solid; border-color: var(--sec-tile-line); border-top-color: var(--sec-ok); background-color: var(--sec-tile); }
}

@keyframes sec-icon-fail-first {
    0% { color: var(--sec-soft); }
    30% { color: var(--sec-warn); }
    50% { color: var(--sec-soft); }
}

@keyframes sec-icon-fail-second {
    0% { color: var(--sec-soft); }
    65% { color: var(--sec-warn); }
    85% { color: var(--sec-soft); }
}

@keyframes sec-take-first {
    0%, 30%, 50%, 100% { box-shadow: 0 0 0 0 rgba(168, 220, 162, 0); }
    33%, 47% { box-shadow: 0 0 0 2px var(--sec-ok-glow), 0 0 18px rgba(168, 220, 162, 0.3); }
}

@keyframes sec-take-second {
    0%, 65%, 85%, 100% { box-shadow: 0 0 0 0 rgba(168, 220, 162, 0); }
    68%, 82% { box-shadow: 0 0 0 2px var(--sec-ok-glow), 0 0 18px rgba(168, 220, 162, 0.3); }
}

@keyframes sec-legend {
    0% { background-color: transparent; }
    30% { background-color: var(--sec-warn-tile); }
    50% { background-color: transparent; }
    65% { background-color: var(--sec-warn-tile); }
    85% { background-color: transparent; }
}

@keyframes sec-daily {
    0%, 88% { top: 0; opacity: 0; }
    89% { opacity: 1; }
    94% { top: calc(100% - 12px); opacity: 1; }
    95%, 100% { top: calc(100% - 12px); opacity: 0; }
}

@keyframes sec-backup-in {
    0%, 94%, 100% { box-shadow: 0 0 0 0 rgba(168, 220, 162, 0); }
    96%, 98% { box-shadow: 0 0 0 2px var(--sec-ok-glow), 0 0 18px rgba(168, 220, 162, 0.3); }
}

/* ==== Schmal und Druck ============================================================================================== */

@media (max-width: 1119.98px) {
    .sec-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1023.98px) {
    .sec-aufbau .web-head {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Unter 900 px: Beschriftung über jeder Ebene, Server als Raster (4 je Zeile), Leitungen nur noch als Stamm */
@media (max-width: 899.98px) {
    .web {
        --sec-gap: 8px;
        --sec-dc-pad: 16px;
    }

    .sec-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sec-grid > :not(.sec-label) {
        grid-column: 1;
    }

    .sec-grid--outside {
        padding-inline: 0;
    }

    .sec-label {
        margin: 6px 0 10px;
    }

    .sec-grid > .sec-label--keys {
        margin-bottom: 10px;
    }

    .sec-grid > .sec-keys {
        margin-top: 0;
    }

    .sec-bus::before,
    .sec-bus__stub {
        display: none;
    }

    .sec-bus--down {
        height: 28px;
    }

    .sec-bus--down .sec-bus__trunk {
        top: 0;
        bottom: 0;
        height: auto;
    }

    .sec-nodes {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sec-node {
        flex: 0 0 calc((100% - 3 * var(--sec-gap)) / 4);
    }

    .sec-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .sec-map__board {
        padding: 14px;
        border-radius: 18px;
    }

    .sec-eyebrow {
        font-size: 14px;
    }

    .sec-map__tag {
        margin-bottom: 16px !important;
    }

    .sec-node {
        padding: 9px 3px 8px;
    }

    .sec-state {
        font-size: 12px;
    }

    .sec-node .sec-state__on,
    .sec-node .sec-state__off {
        flex-direction: column;
        gap: 2px;
    }

    .sec-verbund {
        padding: 0 8px 8px;
    }

    .sec-backups {
        grid-template-columns: minmax(0, 1fr);
    }

    .sec-split {
        height: 40px;
    }

    .sec-split::after {
        display: none;
    }

    .sec-split__trunk {
        height: 100%;
    }

    .sec-safe {
        padding: 10px 4px;
    }

    .sec-safe__name {
        font-size: 13px;
    }

    .sec-safe__lock {
        flex-direction: column;
        gap: 2px;
        font-size: 11.5px;
    }

    .sec-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .web .sec-callout {
        grid-template-columns: minmax(0, 1fr);
    }

    .web .sec-callout .sec-pic {
        justify-self: start;
        width: 100%;
        max-width: 220px;
    }
}

/* Sehr schmal (bis 360 px): kleinere Schrift und Tresore */
@media (max-width: 360px) {
    .sec-map__board {
        padding: 10px;
    }

    .web {
        --sec-dc-pad: 10px;
        --sec-gap: 6px;
    }

    .sec-state {
        font-size: 11px;
    }

    .sec-dc__label {
        left: 10px;
        font-size: 12px;
    }
}

@media print {
    .sec-map__board,
    .sec-map__pause {
        display: none;
    }

    .sec-steps p,
    .sec-steps strong {
        color: #000;
    }

    .sec-plate {
        border: 1px solid #000;
    }
}
