.rd-mobile-note {
    display: none;
    margin-top: 1.6rem; max-width: var(--inner-content-max);
    padding: 0.9rem 1.1rem;
    border: 1px solid rgba(var(--pg-red-rgb), 0.45); border-radius: 2px;
    font-size: 0.88rem; line-height: 1.6; color: var(--text-strong);
}
.rd-is-mobile .rd-mobile-note { display: block; }

/* ---------- Verbindungsschema ---------- */
.rd-card { padding-bottom: clamp(22px, 3vw, 40px); }
.rd-flow {
    display: grid;
    grid-template-columns: auto minmax(40px, 1fr) auto minmax(40px, 1fr) auto;
    align-items: center;
    gap: 0;
    padding: clamp(18px, 3vw, 40px) 0 calc(clamp(18px, 3vw, 40px) + 3.6rem);
}
/* Nur das Symbol bestimmt die Hoehe des Knotens, die Beschriftung haengt
   darunter. So liegen alle drei Symbole und beide Leitungen auf einer Achse. */
.rd-node { position: relative; display: flex; justify-content: center; min-width: 0; }
.rd-node__label {
    position: absolute; top: calc(100% + 0.9rem); left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
    width: max-content; max-width: 34vw;
    text-align: center;
}
.rd-node__icon {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: clamp(56px, 7vw, 84px); height: clamp(56px, 7vw, 84px);
    border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 2px;
    background: linear-gradient(180deg, #111, #050505);
    color: var(--white);
}
.rd-node__icon .lucide { width: 44%; height: 44%; stroke-width: 1.5; }
.rd-node__name { font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.1rem, 1.8vw, 1.5rem); letter-spacing: 0.05em; line-height: 1; }
.rd-node__sub { font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-faint); }

/* Der Server in der Mitte: rot, mit Pulsringen und Schloss. */
.rd-node--server .rd-node__icon {
    width: clamp(72px, 9vw, 112px); height: clamp(72px, 9vw, 112px);
    border-color: rgba(var(--pg-red-rgb), 0.7);
    background: radial-gradient(circle at 50% 35%, rgba(var(--pg-red-rgb), 0.28), #070707 70%);
    color: var(--red);
    box-shadow: 0 0 60px -10px rgba(var(--pg-red-rgb), 0.55);
}
.rd-node--server .rd-node__icon::before,
.rd-node--server .rd-node__icon::after {
    content: '';
    position: absolute; inset: -1px;
    border: 1px solid rgba(var(--pg-red-rgb), 0.6); border-radius: 2px;
    animation: rd-ring 2.8s ease-out infinite;
    pointer-events: none;
}
.rd-node--server .rd-node__icon::after { animation-delay: 1.4s; }
@keyframes rd-ring {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.7); opacity: 0; }
}
.rd-lock {
    position: absolute; right: -9px; bottom: -9px;
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
    background: var(--red); color: var(--white);
    border-radius: 2px;
    box-shadow: 0 6px 18px -6px rgba(var(--pg-red-rgb), 0.9);
}
.rd-lock .lucide { width: 14px; height: 14px; stroke-width: 2.2; }

/* Leitungen mit wandernden Datenpaketen. Die Pakete sind kleine Quadrate,
   wie die Pixel im Logo. */
.rd-wire { position: relative; height: 54px; margin: 0 clamp(6px, 1.4vw, 18px); }
.rd-wire__line {
    position: absolute; left: 0; right: 0; top: 50%;
    height: 1px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 6px, transparent 6px 12px);
    animation: rd-dash 1.2s linear infinite;
}
@keyframes rd-dash { to { background-position: 12px 0; } }
.rd-pkt {
    position: absolute; top: calc(50% - 3px); left: 0;
    width: 6px; height: 6px;
    background: var(--red);
    box-shadow: 0 0 12px rgba(var(--pg-red-rgb), 0.9);
    animation: rd-go 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    animation-delay: calc(var(--d, 0) * 1s);
    opacity: 0;
}
.rd-pkt--back { background: var(--white); box-shadow: 0 0 10px rgba(255, 255, 255, 0.7); animation-name: rd-back; }
@keyframes rd-go {
    0% { left: 0; opacity: 0; }
    10%, 85% { opacity: 1; }
    100% { left: calc(100% - 6px); opacity: 0; }
}
@keyframes rd-back {
    0% { left: calc(100% - 6px); opacity: 0; }
    10%, 85% { opacity: 1; }
    100% { left: 0; opacity: 0; }
}
.rd-cipher {
    position: absolute; left: 0; right: 0; top: 0;
    overflow: hidden; white-space: nowrap; text-align: center;
    font-size: 0.6rem; letter-spacing: 0.12em; color: rgba(var(--pg-red-rgb), 0.85);
    font-variant-numeric: tabular-nums;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.rd-wire__tag {
    position: absolute; left: 0; right: 0; bottom: 0;
    text-align: center;
    font-size: 0.55rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-faint);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rd-scheme-note { margin-top: 0.9rem; font-size: 0.76rem; line-height: 1.6; color: var(--text-dim); font-weight: 300; }

/* ---------- Downloads ---------- */
.rd-dls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rd-dl {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column;
    padding: clamp(22px, 3vw, 36px);
    border: 1px solid var(--pg-line); border-radius: 2px;
    background:
        radial-gradient(420px circle at var(--spot-x, 50%) var(--spot-y, -20%), rgba(var(--pg-red-rgb), 0.12), transparent 60%),
        linear-gradient(180deg, #0c0c0c, #050505);
    transition: border-color 0.3s var(--pg-ease), transform 0.3s var(--pg-ease), box-shadow 0.3s var(--pg-ease);
}
.rd-dl:hover { border-color: rgba(var(--pg-red-rgb), 0.55); transform: translateY(-3px); box-shadow: 0 30px 60px -34px rgba(var(--pg-red-rgb), 0.6); }
.rd-dl.is-recommended { border-color: rgba(var(--pg-red-rgb), 0.7); order: -1; }
.rd-dl__badge {
    position: absolute; top: 0; right: 0;
    display: none; align-items: center; gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    background: var(--red); color: var(--white);
    font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase;
}
.rd-dl__badge .lucide { width: 12px; height: 12px; stroke-width: 2.2; }
.rd-dl.is-recommended .rd-dl__badge { display: inline-flex; }
.rd-dl__os { display: flex; align-items: center; gap: 1rem; }
.rd-dl__logo {
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; flex-shrink: 0;
    border: 1px solid rgba(var(--pg-red-rgb), 0.5); border-radius: 2px;
    color: var(--white);
}
.rd-dl__logo svg { width: 24px; height: 24px; }
.rd-winlogo { display: grid; grid-template-columns: repeat(2, 10px); gap: 2px; }
.rd-winlogo span { width: 10px; height: 10px; background: var(--white); transition: background 0.3s var(--pg-ease); }
.rd-dl:hover .rd-winlogo span:nth-child(1), .rd-dl:hover .rd-winlogo span:nth-child(4) { background: var(--red); }
.rd-dl__name { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(2rem, 3vw, 2.6rem); letter-spacing: 0.04em; line-height: 1; }
.rd-dl__compat { font-size: 0.86rem; color: var(--text-mid); font-weight: 300; margin-top: 0.25rem; }
.rd-dl__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 1.5rem 0 0; padding: 0; list-style: none; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
.rd-dl__meta li { display: inline-flex; align-items: center; gap: 0.45rem; }
.rd-dl__meta .lucide { width: 13px; height: 13px; color: var(--red); }
.rd-dl__btn { margin-top: 1.6rem; width: 100%; text-decoration: none; }
.rd-dl__btn .rd-done { display: none; }
.rd-dl__btn.is-started { background: #000; color: var(--white); border-color: rgb(var(--rd-green)); }
.rd-dl__btn.is-started .rd-idle { display: none; }
.rd-dl__btn.is-started .rd-done { display: inline-flex; align-items: center; gap: 0.7rem; }
.rd-dl__btn.is-started svg { color: rgb(var(--rd-green)); animation: pw-pop 0.35s var(--pg-ease); }
.rd-dl__btn .rd-idle { display: inline-flex; align-items: center; gap: 0.7rem; }
.rd-dl__btn:hover svg.lucide-download { animation: rd-drop 0.7s var(--pg-ease); }
@keyframes rd-drop { 0% { transform: translateY(0); } 40% { transform: translateY(4px); } 100% { transform: translateY(0); } }

.rd-hash { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--pg-line); }
.rd-hash__label { display: block; font-size: 0.58rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.5rem; }
.rd-hash__row { display: flex; align-items: stretch; border: 1px solid var(--pg-line); border-radius: 2px; background: #000; }
.rd-hash__val {
    flex: 1; min-width: 0;
    padding: 0.6rem 0.75rem;
    font-size: 0.72rem; line-height: 1.5; letter-spacing: 0.04em; color: var(--text-mid);
    overflow-wrap: anywhere; word-break: break-all;
    user-select: all; -webkit-user-select: all;
}
.rd-copy {
    display: flex; align-items: center; justify-content: center;
    width: 46px; flex-shrink: 0;
    background: none; border: none; border-left: 1px solid var(--pg-line);
    color: var(--text-dim); cursor: pointer;
    transition: color 0.2s var(--pg-ease), background 0.2s var(--pg-ease);
}
.rd-copy svg { width: 16px; height: 16px; }
.rd-copy:hover { color: var(--white); background: rgba(var(--pg-red-rgb), 0.12); }
.rd-copy:focus-visible { outline: 2px solid var(--red); outline-offset: -4px; }
.rd-copy .rd-copy__done { display: none; }
.rd-copy.is-copied { color: var(--red); }
.rd-copy.is-copied .rd-copy__idle { display: none; }
.rd-copy.is-copied .rd-copy__done { display: block; animation: pw-pop 0.35s var(--pg-ease); }
.rd-verify { margin-top: 1.2rem; font-size: 0.82rem; line-height: 1.7; color: var(--text-dim); font-weight: 300; }
.rd-verify code {
    font-family: 'Space Grotesk', sans-serif; font-size: 0.78rem; color: var(--white);
    background: var(--gray-dark); border: 1px solid var(--pg-line); border-radius: 2px;
    padding: 0.1rem 0.4rem; white-space: normal; overflow-wrap: anywhere;
}

/* ---------- Was ist RustDesk ---------- */
.rd-about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.rd-about__text p { font-size: 0.975rem; line-height: 1.85; color: var(--text-strong); font-weight: 300; }
.rd-about__text p + p { margin-top: 1.1rem; }
.rd-about__text strong { color: var(--white); font-weight: 700; }

/* ---------- Breiten ---------- */
@media (max-width: 1024px) {
    .rd-dls { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .rd-about { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .rd-flow { grid-template-columns: auto minmax(22px, 1fr) auto minmax(22px, 1fr) auto; }
    .rd-wire { margin: 0 4px; }
    .rd-wire__tag, .rd-cipher { display: none; }
    .rd-node__sub { letter-spacing: 0.12em; font-size: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .rd-pkt,
    .rd-wire__line,
    .rd-node--server .rd-node__icon::before,
    .rd-node--server .rd-node__icon::after { animation: none; }
    .rd-pkt { opacity: 0; }
    .rd-dl, .rd-dl:hover { transition: none; transform: none; }
}

