/*
 * Noetische Wesen 5.13.9b – Ursprung (Serverabgleich).
 * Gleiche Navigationsordnung wie Hauptwelt 5.13.7.
 * Alle Selektoren sind auf den Aufzeichnungsheader begrenzt.
 * recording.css, Audio, Licht und Textanimation bleiben unberührt.
 */
:root {
    --nw-origin-header-height: 70px;
}

body.ursprung-page #nw-origin-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    display: grid;
    grid-template-columns: max-content max-content minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(12px, 1.6vw, 24px);
    width: 100%;
    min-height: var(--nw-origin-header-height);
    box-sizing: border-box;
    padding: 9px clamp(16px, 3vw, 44px);
    border-bottom: 1px solid rgba(154, 197, 221, .28);
    background: #070e19;
    color: #dfeaf0;
    font: 500 11px/1.3 Arial, sans-serif;
    letter-spacing: .10em;
}

body.ursprung-page #nw-origin-header a {
    color: inherit;
    text-decoration: none;
}

body.ursprung-page #nw-origin-header a:hover,
body.ursprung-page #nw-origin-header button:hover {
    color: #f0c58b;
}

body.ursprung-page #nw-origin-header :is(a, button):focus-visible,
body.ursprung-page .nw-origin-compass :is(a, button):focus-visible {
    outline: 2px solid #f0c58b;
    outline-offset: 3px;
}

body.ursprung-page .nw-origin-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    white-space: nowrap;
}

body.ursprung-page .nw-origin-brand-name em {
    color: #e9b679;
    font-style: normal;
}

body.ursprung-page .nw-origin-location {
    padding-left: clamp(14px, 1.5vw, 24px);
    border-left: 1px solid rgba(185, 203, 217, .38);
    color: #e6bd89;
    white-space: nowrap;
    letter-spacing: .16em;
}

body.ursprung-page .nw-origin-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(4px, .7vw, 10px);
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

body.ursprung-page .nw-origin-links > :is(a, button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 34px;
    padding: 8px 9px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #d5dce3;
    font: 600 10px/1.2 Arial, sans-serif;
    letter-spacing: .07em;
    white-space: nowrap;
    cursor: pointer;
}

body.ursprung-page .nw-origin-links > .nw-origin-exit {
    order: 99;
    margin-left: 4px;
    border-color: rgba(107, 184, 230, .45);
    background: rgba(40, 112, 164, .15);
    color: #8ed2fa !important;
}

body.ursprung-page .nw-origin-links > .nw-origin-exit:hover {
    background: rgba(48, 134, 194, .3);
    color: #e4f5ff !important;
}

/* Das bestehende SVG-Programm nw-header.js zeichnet die animierte Acht. */
body.ursprung-page #nw-origin-header [data-nw-infinity] {
    display: inline-flex;
    width: 66px;
    height: 30px;
    align-items: center;
    justify-content: center;
    flex: 0 0 66px;
}

body.ursprung-page #nw-origin-header .nw-symbol {
    display: block;
    width: 66px;
    height: 30px;
    overflow: visible;
}

body.ursprung-page #nw-origin-header .nw-symbol-halo {
    fill: none;
    stroke: #8ccbe3;
    stroke-width: 7;
    stroke-opacity: .23;
}

body.ursprung-page #nw-origin-header .nw-symbol-path {
    fill: none;
    stroke-width: 3.5;
    stroke-linecap: round;
}

body.ursprung-page #nw-origin-header .nw-symbol-point {
    fill: #fff0c4;
    stroke: #f1b66e;
    stroke-width: .7;
    filter: drop-shadow(0 0 3px #e9b679);
}

/* Der Kompass wird auf derselben Seite geöffnet. */
body.ursprung-page .nw-origin-compass {
    position: fixed;
    top: var(--nw-origin-header-height);
    right: 12px;
    z-index: 1300;
    width: min(410px, calc(100vw - 24px));
    max-height: calc(100dvh - var(--nw-origin-header-height) - 16px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 22px;
    border: 1px solid rgba(154, 197, 221, .32);
    border-radius: 0 0 12px 12px;
    background: rgba(6, 15, 28, .98);
    color: #e1ebf0;
    box-shadow: 0 18px 65px rgba(0, 0, 0, .55);
}

body.ursprung-page .nw-origin-compass[hidden] {
    display: none !important;
}

body.ursprung-page .nw-compass-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #e9bd87;
    letter-spacing: .15em;
}

body.ursprung-page .nw-compass-top button {
    border: 0;
    background: transparent;
    color: #e1ebf0;
    font-size: 25px;
    cursor: pointer;
}

body.ursprung-page .nw-origin-compass p {
    margin: 10px 0 18px;
    color: #a9bfcd;
    font-size: 12px;
}

body.ursprung-page .nw-origin-compass nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

body.ursprung-page .nw-origin-compass nav a {
    padding: 11px;
    border: 1px solid rgba(154, 197, 221, .2);
    border-radius: 6px;
    color: #dceaf1;
    font: 500 11px/1.4 Arial, sans-serif;
    letter-spacing: .06em;
    text-decoration: none;
}

body.ursprung-page .nw-origin-compass nav a:hover {
    border-color: #e9bd87;
    color: #e9bd87;
}

@media (max-width: 980px) {
    :root {
        --nw-origin-header-height: 106px;
    }

    body.ursprung-page #nw-origin-header {
        grid-template-columns: max-content minmax(0, 1fr);
        grid-template-rows: auto auto;
        row-gap: 8px;
    }

    body.ursprung-page .nw-origin-location {
        grid-column: 2;
        grid-row: 1;
    }

    body.ursprung-page .nw-origin-links {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }
}

@media (max-width: 540px) {
    body.ursprung-page #nw-origin-header {
        column-gap: 8px;
        padding: 8px 12px;
    }

    body.ursprung-page .nw-origin-brand-name {
        font-size: 9px;
    }

    body.ursprung-page #nw-origin-header [data-nw-infinity],
    body.ursprung-page #nw-origin-header .nw-symbol {
        width: 48px;
        height: 23px;
    }

    body.ursprung-page .nw-origin-location {
        padding-left: 8px;
        font-size: 9px;
    }

    body.ursprung-page .nw-origin-links > :is(a, button) {
        min-height: 29px;
        padding: 6px;
        font-size: 9px;
    }
}

/* Ursprung besitzt einen eigenen Erlebnisraum. Header bleibt auch beim Scrollen sichtbar. */
body.ursprung-page #nw-origin-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
}
body.ursprung-page main {
    padding-top: 70px;
}
body.ursprung-page .nw-origin-compass {
    position: fixed;
    z-index: 1201;
}
@media (max-width: 700px) {
    body.ursprung-page main {
        padding-top: 112px;
    }
}
