:root {
    color-scheme: dark;

    --paleblue: #c3f6ff;
    --lightblue: #078bd9;
    --blue: #1e90ff;
    --darkblue: #00275b;
    --orange: #ffcf00;
    --yellow: #ffff00;

    --r-canvas: #061426;
    --r-canvas-deep: #04101e;
    --r-panel: #081a2e;
    --r-panel-raised: #0d2945;
    --r-text: #bdd2e1;
    --r-text-strong: #d7e6ef;
    --r-text-muted: #87a7bc;
    --r-line: #365d79;
    --r-line-strong: #5d86a5;
    --r-action: #83b6d6;
    --r-action-strong: #a7cee3;
    --r-focus: #ddcc77;
    --r-brand-letter: #96bdd5;
    --r-brand-x: #e51d45;
    --r-hex-glint: #c49a5a;
    --r-curiosity: #ff6a1a;
    --r-curiosity-soft: #ff9a62;
    --r-success: #68b684;
    --r-danger: #d17a84;
    --r-warning: #d6bd6a;
    --r-info: #83b6d6;
    --r-special: #b787b3;

    --red: var(--r-danger);
    --green: var(--r-success);
    --followergreen: var(--r-success);
    --subscribergreen: #99ad72;
    --followermod: #a99ac9;
    --subscribermod: #927eae;
    --mxsgmember: #5c91bd;
    --mxsgspezialist: var(--r-warning);
    --mxsgkoordinator: var(--r-special);
    --mxsgrat: #d99669;
    --rotorange: var(--r-danger);
    --modmix: #927eae;

    --r-radius-small: 0.22rem;
    --r-radius: 0.45rem;
    --r-shadow: 0 1.5rem 4rem rgba(1, 8, 16, 0.34);
}

html[data-r-vision="distinguishable"] {
    --r-success: #44aa99;
    --r-danger: #cc6677;
    --r-warning: #ddcc77;
    --r-info: #88ccee;
    --r-action: #88ccee;
    --r-action-strong: #b9e3f2;
    --r-special: #aa4499;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--r-canvas-deep);
    scroll-behavior: smooth;
}

body.r-site-page {
    --r-focus: var(--r-action-strong);
    min-height: 100dvh;
    margin: 0;
    background:
        radial-gradient(circle at 72% -12%, rgba(93, 134, 165, 0.15), transparent 38rem),
        linear-gradient(145deg, var(--r-canvas) 0%, var(--r-canvas-deep) 100%);
    color: var(--r-text);
    font-family: "Rajdhani", "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.55;
    isolation: isolate;
}

body.r-site-page::before {
    position: fixed;
    inset: -12rem;
    z-index: -3;
    content: "";
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 156 90'%3E%3Cpath d='M0 45L26 0H78L104 45L78 90M0 45L26 90M104 45H156' fill='none' stroke='%2383b6d6' stroke-opacity='.10' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 9.75rem 5.625rem;
    background-position: center top;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.88), transparent 92%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.88), transparent 92%);
    opacity: 0.9;
    animation: r-hex-drift 52s linear infinite;
}

body.r-site-page::after {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(4, 16, 30, 0.72), transparent 23%, transparent 77%, rgba(4, 16, 30, 0.72)),
        linear-gradient(180deg, transparent 74%, rgba(4, 16, 30, 0.78));
}

html[data-r-background="calm"] body.r-site-page::before {
    opacity: 0;
}

.r-hex-glints {
    --r-hex-glint-cycle: 48s;
    position: fixed;
    inset: -12rem;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.88), transparent 88%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.88), transparent 88%);
    animation: r-hex-drift 52s linear infinite;
    transition: opacity 240ms ease;
}

.r-hex-glint {
    position: absolute;
    width: 6.5rem;
    height: 5.625rem;
    background: var(--r-hex-glint);
    opacity: 0;
    filter: drop-shadow(0 0 0.72rem rgba(196, 154, 90, 0.3));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 104 90'%3E%3Cpath d='M0 45L26 0H78L104 45L78 90H26Z' fill='none' stroke='white' stroke-width='1.2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 104 90'%3E%3Cpath d='M0 45L26 0H78L104 45L78 90H26Z' fill='none' stroke='white' stroke-width='1.2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    animation: r-hex-starry-night var(--r-hex-glint-cycle) ease-in-out infinite;
    will-change: opacity;
}

/*
 * Gemeinsamer Sternenhimmel-Takt fuer alle neuen Seiten.
 * Der erste Glint wird innerhalb der ersten drei Sekunden sichtbar;
 * danach folgt im Vier-Sekunden-Takt ein anderer Bereich der Seite.
 */
body.r-site-page .r-hex-glints {
    --r-hex-glint-cycle: 24s;
}

body.r-site-page .r-hex-glints .r-hex-glint:nth-child(1) {
    top: calc(12rem + 10vh);
    right: auto;
    bottom: auto;
    left: calc(12rem + 8vw);
    animation-delay: 1.6s;
}

body.r-site-page .r-hex-glints .r-hex-glint:nth-child(2) {
    top: calc(12rem + 25vh);
    right: calc(12rem + 10vw);
    bottom: auto;
    left: auto;
    animation-delay: 5.6s;
}

body.r-site-page .r-hex-glints .r-hex-glint:nth-child(3) {
    top: calc(12rem + 40vh);
    right: auto;
    bottom: auto;
    left: calc(12rem + 46vw);
    animation-delay: 9.6s;
}

body.r-site-page .r-hex-glints .r-hex-glint:nth-child(4) {
    top: calc(12rem + 55vh);
    right: calc(12rem + 22vw);
    bottom: auto;
    left: auto;
    animation-delay: 13.6s;
}

body.r-site-page .r-hex-glints .r-hex-glint:nth-child(5) {
    top: calc(12rem + 70vh);
    right: auto;
    bottom: auto;
    left: calc(12rem + 18vw);
    animation-delay: 17.6s;
}

body.r-site-page .r-hex-glints .r-hex-glint:nth-child(6) {
    top: calc(12rem + 82vh);
    right: calc(12rem + 42vw);
    bottom: auto;
    left: auto;
    animation-delay: 21.6s;
}

html[data-r-background="calm"] .r-hex-glints {
    opacity: 0;
}

html[data-r-background="calm"] body.r-site-page::before,
html[data-r-background="calm"] .r-hex-glints,
html[data-r-background="calm"] .r-hex-glint {
    animation: none;
}

html[data-r-motion="reduced"] .r-hex-glints,
html[data-r-motion="reduced"] .r-hex-glint {
    animation: none;
}

html[data-r-motion="reduced"] .r-hex-glint {
    opacity: 0;
}

a {
    color: var(--r-action);
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 0.18rem solid var(--r-focus);
    outline-offset: 0.22rem;
}

.r-skip-link {
    position: fixed;
    top: 0.75rem;
    left: 50%;
    z-index: 12000;
    padding: 0.65rem 1rem;
    transform: translate(-50%, -180%);
    border: 1px solid var(--r-focus);
    border-radius: var(--r-radius-small);
    background: var(--r-panel-raised);
    color: var(--r-text-strong);
    font-family: "Orbitron", "Segoe UI", sans-serif;
    font-size: 0.82rem;
    text-decoration: none;
    transition: transform 160ms ease;
}

.r-skip-link:focus {
    transform: translate(-50%, 0);
}

.login {
    position: fixed;
    top: 0.7rem;
    right: clamp(0.75rem, 2vw, 2rem);
    z-index: 9999;
    max-width: min(38rem, calc(100vw - 6rem));
    margin: 0;
    padding: 0.5rem 0.72rem;
    border: 1px solid rgba(93, 134, 165, 0.5);
    border-radius: var(--r-radius-small);
    background: rgba(6, 20, 38, 0.91);
    color: var(--r-warning);
    font-family: "Orbitron", "Segoe UI", sans-serif;
    font-size: clamp(0.72rem, 0.68rem + 0.16vw, 0.9rem);
    line-height: 1.45;
    text-align: right;
    box-shadow: 0 0.7rem 1.8rem rgba(1, 8, 16, 0.28);
    backdrop-filter: blur(0.6rem);
}

.green,
.perm-15 {
    color: var(--r-success);
}

.paleblue {
    color: var(--r-text);
}

.perm-55 {
    color: var(--mxsgmember);
}

.red,
.perm-1,
.perm-99 {
    color: var(--r-danger);
}

.perm-25 {
    color: #99ad72;
}

.perm-35 {
    color: #a99ac9;
}

.perm-45,
.perm-65 {
    color: #927eae;
}

.perm-75 {
    color: var(--r-warning);
}

.perm-85 {
    color: var(--r-special);
}

.perm-95 {
    color: #d99669;
}

.x-menu-normalfont {
    color: var(--r-text-muted);
    font: inherit;
}

#settings-icon {
    position: fixed;
    top: 0.72rem;
    right: auto;
    bottom: auto;
    left: clamp(0.75rem, 2vw, 2rem);
    z-index: 10000;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid var(--r-line-strong);
    border-radius: var(--r-radius-small);
    background: rgba(6, 20, 38, 0.94);
    color: var(--r-text);
    font-size: 1.24rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 0.7rem 1.8rem rgba(1, 8, 16, 0.3);
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
    backdrop-filter: blur(0.6rem);
}

#settings-icon:hover,
#settings-icon:focus-visible,
#settings-icon.clicked {
    border-color: var(--r-action);
    background: var(--r-panel-raised);
    color: var(--r-action-strong);
    transform: none;
}

.r-back-link {
    position: fixed;
    top: 0.8rem;
    left: calc(clamp(0.75rem, 2vw, 2rem) + 3.35rem);
    z-index: 9999;
    display: inline-flex;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    padding: 0 0.82rem;
    border: 1px solid rgba(93, 134, 165, 0.62);
    border-radius: var(--r-radius-small);
    background: rgba(6, 20, 38, 0.94);
    color: var(--r-action);
    font-family: "Orbitron", "Segoe UI", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 0.7rem 1.8rem rgba(1, 8, 16, 0.3);
    backdrop-filter: blur(0.6rem);
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.r-back-link:hover,
.r-back-link:focus-visible {
    border-color: var(--r-action);
    background: var(--r-panel-raised);
    color: var(--r-action-strong);
}

.r-back-link-arrow {
    font-size: 1rem;
    transition: transform 160ms ease;
}

.r-back-link:hover .r-back-link-arrow,
.r-back-link:focus-visible .r-back-link-arrow {
    transform: translateX(-0.12rem);
}

.r-settings {
    width: min(33rem, calc(100vw - 2rem));
    max-height: min(46rem, calc(100vh - 2rem));
    padding: 0;
    overflow: auto;
    border: 1px solid var(--r-line-strong);
    border-radius: var(--r-radius);
    background: var(--r-panel);
    color: var(--r-text);
    box-shadow: var(--r-shadow);
}

.r-settings::backdrop {
    background: rgba(1, 8, 16, 0.76);
    backdrop-filter: blur(0.22rem);
}

.r-settings-form {
    display: grid;
    gap: 1.1rem;
    padding: clamp(1.15rem, 3vw, 1.8rem);
}

.r-settings-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--r-line);
}

.r-settings-heading h2 {
    margin: 0.18rem 0 0;
    color: var(--r-text-strong);
    font-family: "Orbitron", "Segoe UI", sans-serif;
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    font-weight: 500;
    letter-spacing: 0.035em;
}

.r-settings-close {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 1px solid var(--r-line);
    border-radius: var(--r-radius-small);
    background: transparent;
    color: var(--r-text);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.r-settings-close:hover {
    border-color: var(--r-action);
    color: var(--r-action-strong);
}

.r-settings-group {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.r-settings-group legend {
    width: 100%;
    margin-bottom: 0.45rem;
    color: var(--r-text-strong);
    font-family: "Orbitron", "Segoe UI", sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.r-setting-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.78rem;
    border: 1px solid var(--r-line);
    border-radius: var(--r-radius-small);
    background: rgba(13, 41, 69, 0.42);
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.r-setting-option:hover,
.r-setting-option:has(input:checked) {
    border-color: var(--r-action);
    background: rgba(13, 41, 69, 0.78);
}

.r-setting-option input {
    width: 1.08rem;
    height: 1.08rem;
    flex: 0 0 auto;
    margin: 0.18rem 0 0;
    accent-color: var(--r-action);
}

.r-setting-option span {
    display: grid;
    gap: 0.1rem;
}

.r-setting-option strong {
    color: var(--r-text-strong);
    font-family: "Orbitron", "Segoe UI", sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
}

.r-setting-option small {
    color: var(--r-text-muted);
    font-size: 0.9rem;
}

.r-setting-switch {
    margin-top: 0.15rem;
}

.r-settings-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
    padding-top: 0.3rem;
}

.r-button {
    display: inline-flex;
    min-height: 2.8rem;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.68rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--r-radius-small);
    font-family: "Orbitron", "Segoe UI", sans-serif;
    font-size: clamp(0.76rem, 0.72rem + 0.16vw, 0.9rem);
    font-weight: 500;
    letter-spacing: 0.035em;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.r-button:hover {
    transform: translateY(-0.1rem);
}

.r-button-primary {
    border-color: var(--r-action);
    background: var(--r-action);
    color: var(--r-canvas-deep);
}

.r-button-primary:hover,
.r-button-primary:focus-visible {
    border-color: var(--r-action-strong);
    background: var(--r-action-strong);
    color: var(--r-canvas-deep);
}

.r-button-quiet {
    border-color: var(--r-line-strong);
    background: rgba(8, 26, 46, 0.72);
    color: var(--r-text-strong);
}

.r-button-quiet:hover,
.r-button-quiet:focus-visible {
    border-color: var(--r-action);
    background: var(--r-panel-raised);
    color: var(--r-action-strong);
}

.r-section-code {
    color: var(--r-action);
    font-family: "Orbitron", "Segoe UI", sans-serif;
    font-size: clamp(0.65rem, 0.61rem + 0.14vw, 0.78rem);
    font-weight: 500;
    letter-spacing: 0.13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.r-brand-x,
.r-brand-accent {
    position: relative;
    display: inline-block;
    color: var(--r-brand-x);
    font-style: normal;
    isolation: isolate;
}

.r-brand-x {
    font-family: "Permanent Marker", "Segoe UI", sans-serif;
    font-size: 1.08em;
    line-height: 0.9;
    vertical-align: -0.04em;
}

.r-brand-accent {
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    vertical-align: baseline;
}

.r-brand-x::after,
.r-brand-accent::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: linear-gradient(
        100deg,
        #8b0e29 0%,
        var(--r-brand-x) 32%,
        #ff4c6c 45%,
        var(--r-curiosity) 50%,
        #ff4c6c 55%,
        var(--r-brand-x) 68%,
        #8b0e29 100%
    );
    background-repeat: no-repeat;
    background-size: 240% auto;
    background-clip: text;
    color: transparent;
    font: inherit;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: r-x-sweep 3.8s ease-in-out infinite;
    pointer-events: none;
}

.r-brand-x::after {
    content: "X";
}

.r-brand-accent::after {
    content: attr(data-r-letter);
}

.r-masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    min-height: clamp(2.7rem, 4.4vh, 4rem);
    padding-bottom: clamp(0.55rem, 1vh, 0.95rem);
    border-bottom: 1px solid var(--r-line);
}

.r-wordmark {
    display: inline-flex;
    width: fit-content;
    align-items: baseline;
    gap: clamp(0.65rem, 1vw, 1.15rem);
    color: var(--r-text-strong);
    text-decoration: none;
}

.r-wordmark-short {
    color: var(--r-brand-letter);
    font-family: "Orbitron", "Segoe UI", sans-serif;
    font-size: clamp(1.02rem, 0.9rem + 0.48vw, 1.65rem);
    font-weight: 600;
    letter-spacing: 0.16em;
}

.r-wordmark-short .r-brand-x {
    margin-inline: -0.04em 0.03em;
    font-size: 1.18em;
    line-height: 1;
    vertical-align: -0.08em;
}

.r-wordmark-long {
    color: var(--r-text-muted);
    font-size: clamp(0.75rem, 0.65rem + 0.28vw, 1.08rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.r-masthead-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.58rem;
    color: var(--r-text-muted);
    font-family: "Orbitron", "Segoe UI", sans-serif;
    font-size: clamp(0.65rem, 0.58rem + 0.18vw, 0.82rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.r-live-mark {
    display: inline-block;
    width: 0.46rem;
    height: 0.46rem;
    border: 1px solid var(--r-success);
    border-radius: 50%;
    background: var(--r-success);
    box-shadow: 0 0 0.8rem rgba(104, 182, 132, 0.45);
}

.r-site-signature {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    min-height: clamp(2.25rem, 3.8vh, 3rem);
    padding-top: clamp(0.42rem, 0.8vh, 0.7rem);
    border-top: 1px solid var(--r-line);
    color: var(--r-text-muted);
    font-size: clamp(0.6rem, 0.53rem + 0.14vw, 0.72rem);
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.r-signature-name {
    color: var(--r-brand-letter);
    font-family: "Permanent Marker", "Segoe UI", sans-serif;
    font-size: clamp(0.78rem, 0.68rem + 0.22vw, 1rem);
    letter-spacing: 0.025em;
    text-transform: none;
}

.r-signature-name .r-brand-x {
    margin-inline: 0.06em;
    font-size: 1.16em;
}

.r-signature-line {
    color: var(--r-action);
    font-family: "Orbitron", "Segoe UI", sans-serif;
    text-align: center;
}

.r-signature-community {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    line-height: 1;
    white-space: nowrap;
}

.r-signature-community img {
    display: block;
    width: auto;
    height: clamp(1.35rem, 1.05rem + 0.35vw, 1.7rem);
    flex: 0 0 auto;
    object-fit: contain;
}

.r-signature-right {
    justify-self: end;
    text-align: right;
}

.r-signature-right .r-brand-x {
    font-size: 1.12em;
}

/* Gemeinsame Werkzeug-Hülle: erste Bedienzeile, Werkzeugkennung und breiter Footer. */
.r-tool-page {
    --r-tool-outer-edge: clamp(0.75rem, 2vw, 2rem);
}

.r-tool-page .r-tool-main {
    position: relative;
    z-index: 1;
    display: grid;
    width: auto;
    min-height: 100dvh;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: clamp(0.55rem, 1vh, 0.9rem);
    margin: 0 var(--r-tool-outer-edge);
    padding: clamp(4.1rem, 5.8vh, 5.7rem) 0 clamp(0.65rem, 1.25vh, 1.2rem);
}

.r-tool-page .r-tool-global-row,
.r-tool-page .r-tool-stage {
    display: grid;
    width: min(94vw, 120rem);
    max-width: 100%;
    min-width: 0;
    align-content: start;
    gap: clamp(0.55rem, 0.9vw, 0.85rem);
    margin-inline: auto;
    padding-block: clamp(0.2rem, 0.55vw, 0.5rem);
}

.r-tool-global-row {
    display: grid;
    min-width: 0;
    align-items: center;
    border-bottom: 1px solid rgba(54, 93, 121, 0.48);
}

.r-tool-masthead {
    width: 100%;
    justify-self: center;
    padding-bottom: clamp(0.42rem, 0.7vh, 0.65rem);
    border-bottom: 0;
}

.r-toolhead {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(10rem, 1fr) minmax(20rem, 34rem) minmax(10rem, 1fr);
    grid-template-areas: "back identity deck";
    align-items: center;
    gap: clamp(0.8rem, 1.5vw, 1.6rem);
    padding: clamp(0.3rem, 0.7vh, 0.6rem) 0 clamp(0.5rem, 0.9vh, 0.75rem);
    border-bottom: 1px solid rgba(54, 93, 121, 0.48);
}

.r-toolhead-back {
    grid-area: back;
    width: fit-content;
    color: var(--r-action);
    font-family: "Orbitron", "Segoe UI", sans-serif;
    font-size: clamp(0.68rem, 0.63rem + 0.14vw, 0.82rem);
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.r-toolhead-back:hover,
.r-toolhead-back:focus-visible {
    color: var(--r-action-strong);
}

.r-tool-identity {
    display: grid;
    min-width: 0;
    grid-area: identity;
    justify-items: center;
    gap: clamp(0.18rem, 0.35vh, 0.3rem);
    text-align: center;
}

.r-tool-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    margin: 0;
    color: var(--r-action);
    font-family: "Orbitron", "Segoe UI", sans-serif;
    font-size: clamp(0.64rem, 0.59rem + 0.14vw, 0.78rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.r-tool-mark {
    white-space: nowrap;
}

.r-tool-mark > .r-brand-x {
    font-size: 1.18em;
    vertical-align: baseline;
    transform: translateY(-0.06em);
}

.r-tool-title {
    margin: 0;
    color: var(--r-text-strong);
    font-family: "Orbitron", "Segoe UI", sans-serif;
    font-size: clamp(2.2rem, 2.8vw, 3.35rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 0.9;
}

.r-tool-title .r-brand-x {
    margin-right: 0.02em;
    font-size: 0.92em;
}

.r-toolhead-deck {
    grid-area: deck;
    justify-self: end;
    color: var(--r-text-muted);
    font-family: "Orbitron", "Segoe UI", sans-serif;
    font-size: clamp(0.68rem, 0.63rem + 0.14vw, 0.82rem);
    letter-spacing: 0.08em;
    text-align: right;
    text-transform: uppercase;
}

.r-tool-summary {
    max-width: 72ch;
    margin: 0;
    color: var(--r-text-muted);
    font-size: clamp(0.86rem, 0.82rem + 0.12vw, 0.98rem);
    line-height: 1.45;
}

/*
 * Einheitliche MXSG-Signatur fuer die primaeren Such- und Filterfenster:
 * links ein feiner hellblauer Steg, oben Orange -> Hellorange -> Hellblau
 * mit einer duennen blauen Fortsetzung und einem wandernden Funken.
 */
body.r-site-page .r-signal-panel {
    position: relative;
    border-left: 0.18rem solid var(--r-action);
}

.r-panel-signal {
    --r-panel-spark-duration: 9.5s;
    position: absolute;
    top: -2px;
    right: -1px;
    left: -0.18rem;
    z-index: 8;
    display: block;
    height: 3px;
    overflow: hidden;
    pointer-events: none;
}

.r-panel-signal::before,
.r-panel-signal::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
}

.r-panel-signal::before {
    background: linear-gradient(
        90deg,
        var(--r-curiosity) 0%,
        var(--r-curiosity-soft) 5%,
        var(--r-action-strong) 13%,
        var(--r-action) 22%,
        rgba(93, 134, 165, 0.68) 42%,
        rgba(54, 93, 121, 0.5) 72%,
        rgba(54, 93, 121, 0.3) 100%
    );
    clip-path: polygon(0 0, 100% 0, 100% 34%, 31% 34%, 15% 100%, 0 100%);
}

.r-panel-signal::after {
    background-image: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 106, 26, 0.06) 20%,
        rgba(255, 154, 98, 0.58) 62%,
        #ffe2ca 84%,
        var(--r-curiosity) 92%,
        transparent 100%
    );
    background-repeat: no-repeat;
    background-position: -8rem center;
    background-size: 8rem 100%;
    filter: drop-shadow(0 0 0.35rem rgba(255, 106, 26, 0.72));
    opacity: 0;
    animation: r-panel-signal-spark var(--r-panel-spark-duration) linear infinite;
    will-change: background-position, opacity;
}

[data-r-signal-sequence] .r-panel-signal::after {
    animation: none;
    opacity: 0;
}

[data-r-signal-sequence] .r-panel-signal.is-active::after {
    animation: r-panel-signal-spark var(--r-panel-spark-duration) linear 1;
}

@keyframes r-x-sweep {
    0%,
    18% {
        background-position: 200% center;
    }

    62%,
    100% {
        background-position: -40% center;
    }
}

@keyframes r-hex-drift {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(9.75rem, 5.625rem, 0);
    }
}

@keyframes r-hex-starry-night {
    0%,
    2%,
    7%,
    100% {
        opacity: 0;
    }

    3.2% {
        opacity: 0.16;
    }

    4.3% {
        opacity: 0.38;
    }

    5.4% {
        opacity: 0.12;
    }
}

@keyframes r-panel-signal-spark {
    0%,
    12% {
        background-position: -8rem center;
        opacity: 0;
    }

    17% {
        opacity: 1;
    }

    76% {
        background-position: calc(100% + 8rem) center;
        opacity: 1;
    }

    82%,
    100% {
        background-position: calc(100% + 8rem) center;
        opacity: 0;
    }
}

html[data-r-motion="reduced"] {
    scroll-behavior: auto;
}

html[data-r-motion="reduced"] .r-brand-x::after,
html[data-r-motion="reduced"] .r-brand-accent::after {
    animation: none;
}

html[data-r-motion="reduced"] body.r-site-page .r-panel-signal::after,
html[data-r-motion="reduced"] body.r-site-page [data-r-signal-sequence] .r-panel-signal.is-active::after {
    animation: none;
    opacity: 0;
}

html[data-r-motion="reduced"] *,
html[data-r-motion="reduced"] *::before,
html[data-r-motion="reduced"] *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .r-brand-x::after,
    .r-brand-accent::after {
        animation: none;
    }

    body.r-site-page .r-panel-signal::after,
    body.r-site-page [data-r-signal-sequence] .r-panel-signal.is-active::after {
        animation: none;
        opacity: 0;
    }
}

@media (min-width: 2800px) and (min-height: 1350px) {
    html {
        font-size: clamp(18px, 0.63vw, 24px);
    }
}

@media (min-width: 1181px) {
    .r-tool-page .r-tool-main {
        padding-top: 0.72rem;
    }

    .r-tool-page .r-tool-masthead {
        width: min(50vw, 78rem);
        min-height: 2.75rem;
        padding-bottom: 0.28rem;
    }

    .r-tool-page .login {
        max-width: calc(25vw - clamp(1.5rem, 3vw, 3rem));
    }
}

@media (min-width: 1181px) and (max-width: 1500px) {
    .r-tool-page .r-tool-masthead {
        width: 48vw;
    }

    .r-tool-page .login {
        max-width: calc(26vw - clamp(0.75rem, 2vw, 2rem));
    }
}

@media (max-width: 820px) {
    .r-masthead {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .r-wordmark {
        display: grid;
        gap: 0.1rem;
    }

    .r-site-signature {
        grid-template-columns: 1fr;
        gap: 0.32rem;
        padding-block: 0.75rem;
        text-align: center;
    }

    .r-signature-right {
        justify-self: center;
        text-align: center;
    }

    .r-tool-page .r-tool-main {
        padding-top: 4.8rem;
    }

    .r-tool-page .r-tool-global-row,
    .r-tool-page .r-tool-stage {
        width: min(92vw, 48rem);
    }

    .r-tool-page .r-toolhead {
        grid-template-columns: 1fr;
        grid-template-areas:
            "identity"
            "back"
            "deck";
        justify-items: center;
    }

    .r-tool-page .r-toolhead-back,
    .r-tool-page .r-toolhead-deck {
        justify-self: center;
        text-align: center;
    }

    .r-tool-page .r-tool-title {
        font-size: clamp(2.6rem, 14vw, 4.5rem);
    }
}

@media (max-width: 700px) {
    .r-tool-page {
        --r-tool-outer-edge: 0.55rem;
    }

    .r-site-page:not(.r-start-page) .login {
        max-width: calc(100vw - 7.6rem);
    }

    .login {
        top: 0.55rem;
        right: 0.55rem;
        max-width: calc(100vw - 4.55rem);
        padding: 0.43rem 0.55rem;
        font-size: 0.7rem;
    }

    #settings-icon {
        top: 0.55rem;
        left: 0.55rem;
        width: 2.55rem;
        height: 2.55rem;
    }

    .r-back-link {
        top: 0.55rem;
        left: 3.7rem;
        width: 2.55rem;
        height: 2.55rem;
        padding: 0;
    }

    .r-back-link-text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
    }

    .r-settings-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .r-settings-actions .r-button {
        width: 100%;
    }
}
