:root {
    color-scheme: dark;
    --bg: #151617;
    --surface: #1c1d1f;
    --text: #eeefed;
    --muted: #a9abaa;
    --accent: #d4d7d1;
    --border: #404344;
    font-family: "Segoe UI",system-ui,sans-serif;
    font-synthesis: none;
    line-height: 1.55;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    isolation: isolate;
}

body:after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: .035;
    background-image: repeating-linear-gradient(17deg,transparent 0 2px,#e6e7e2 2px 3px,transparent 3px 7px),repeating-linear-gradient(109deg,transparent 0 3px,#000 3px 4px,transparent 4px 9px);
}

[hidden] {
    display: none!important;
}

a {
    color: inherit;
    text-underline-offset: .25em;
}

button,input {
    font: inherit;
}

a:focus-visible,button:focus-visible,input:focus-visible {
    outline: 2px solid #e4e6e0;
    outline-offset: 4px;
}

button,a,input {
    -webkit-tap-highlight-color: transparent;
}

.shell {
    width: calc(100% - 88px);
    max-width: 1440px;
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    z-index: 10;
    left: 1rem;
    top: -6rem;
    padding: .7rem 1rem;
    background: #e1e3de;
    color: #141616;
}

.skip-link:focus {
    top: 1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
}

.brand {
    font-family: Consolas,"Courier New",monospace;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-decoration: none;
    color: #b5b8b5;
}

.site-header nav {
    display: flex;
    gap: 1rem;
}

.site-header nav a {
    font-size: .85rem;
    text-decoration: none;
    color: #d0d2cf;
    padding: .5rem 0;
}

.site-header nav a:hover {
    text-decoration: underline;
}

main {
    min-height: calc(100svh - 166px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 60px;
    position: relative;
}

.hero {
    text-align: center;
    width: min(100%,650px);
}

h1 {
    font-size: clamp(2.8rem,6.2vw,4.7rem);
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: -.06em;
    margin: 0 0 .65rem;
    text-shadow: 0 2px 28px #0005;
}

.hero-line {
    font-family: Consolas,"Courier New",monospace;
    font-size: .85rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #b9bcb7;
    margin: 0 0 2.2rem;
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #bec1bd;
    margin: 0 auto 2rem;
    max-width: 560px;
}

.hero-note {
    font-size: .85rem;
    color: var(--muted);
    margin: 1rem 0 1.6rem;
}

.actions {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.actions:empty {
    display: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .7rem 1.2rem;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
}

.primary {
    background: #d2d6cf;
    color: #171a18;
    border-color: #e0e3db;
}

.primary:hover {
    background: #edf0e9;
}

.secondary {
    background: #242729;
    color: var(--text);
    border-color: #5a605c;
}

.secondary:hover {
    background: #343938;
}

.button:disabled {
    opacity: .6;
    cursor: wait;
}

.account-section {
    width: min(100%,448px);
    scroll-margin-top: 5rem;
}

.account-panel {
    background: linear-gradient(145deg,#222426,#1a1c1e);
    border: 1px solid #4b4f4e;
    border-top-color: #777c76;
    border-radius: 2px;
    padding: 30px 32px 26px;
    box-shadow: 0 16px 70px #0005,0 1px 0 #ffffff08 inset;
}

.form-tabs {
    display: flex;
    gap: 1.6rem;
    border-bottom: 1px solid #414644;
}

.tab {
    border: 0;
    border-bottom: 2px solid transparent;
    color: #a6aaa6;
    background: none;
    padding: 0 0 .9rem;
    cursor: pointer;
    font-size: .9rem;
    min-height: 42px;
}

.tab.active {
    color: #f3f5ef;
    border-bottom-color: #d3d8cd;
}

h3 {
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.035em;
    margin: 1.6rem 0 .65rem;
}

.account-panel p {
    color: #b4b8b2;
    font-size: .9rem;
}

.account-panel form {
    display: grid;
    gap: 1.15rem;
    margin-top: 1.6rem;
}

.field {
    display: grid;
    gap: .45rem;
}

.field label {
    font-size: .9rem;
    color: #d7dad4;
}

input {
    min-height: 48px;
    width: 100%;
    border: 1px solid #565d58;
    border-radius: 2px;
    background: #141718;
    padding: .65rem .8rem;
    color: var(--text);
    box-shadow: 0 1px 3px #0003 inset;
}

input:focus {
    border-color: #d3d8cd;
}

input[aria-invalid=true] {
    border-color: #e4aaa0;
}

.field-help {
    color: var(--muted);
    font-size: .8rem;
}

.field-error {
    font-size: .85rem;
    color: #f0b5ac;
}

.message:empty {
    display: none;
}

.message {
    padding: .8rem 0;
    overflow-wrap: anywhere;
}

.message.error {
    color: #f0b5ac;
}

.account-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .4rem 1rem;
    margin-top: 1.3rem;
    padding-top: 1rem;
    border-top: 1px solid #3a403b;
}

.text-button {
    background: none;
    border: 0;
    padding: .3rem 0;
    text-decoration: underline;
    text-underline-offset: .25em;
    color: #b2b8af;
    cursor: pointer;
    font-size: .8rem;
    min-height: 36px;
}

.text-button:hover {
    color: #f1f3eb;
}

.account-details {
    padding: 1.2rem 0;
    border-block: 1px solid var(--border);
    margin-block: 1.5rem;
}

.account-details dt {
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: .2rem;
}

.account-details dd {
    margin: 0 0 1rem;
    overflow-wrap: anywhere;
}

.account-details dd:last-child {
    margin-bottom: 0;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    min-height: 80px;
    padding-block: 20px;
}

.site-footer p {
    font-family: Consolas,"Courier New",monospace;
    font-size: .75rem;
    letter-spacing: .05em;
    color: #8e9490;
    margin: 0;
}

.site-footer nav {
    display: flex;
    gap: 1.5rem;
}

.site-footer nav a {
    font-size: .8rem;
    color: #b1b8b1;
    text-decoration: none;
}

.site-footer nav a:hover {
    text-decoration: underline;
}

body:has(#konto:not([hidden])) .hero-description,body:has(#konto:not([hidden])) .actions .register-link,body:has(#konto:not([hidden])) .actions [data-open-login] {
    display: none!important;
}

body:has(#konto:not([hidden])) h1 {
    font-size: clamp(2.7rem,5vw,3.8rem);
}

body:has(#konto:not([hidden])) .hero-line {
    margin-bottom: .8rem;
}

body:has(#konto:not([hidden])) .actions:has(#download:not([hidden])) {
    margin-bottom: 1rem;
}

.landscape {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 45%,#202225 0,transparent 65%),#151617;
}

.terrain {
    position: absolute;
    width: 790px;
    height: 650px;
    mask-image: radial-gradient(ellipse 95% 95% at 0 0,#000 28%,#000a 48%,transparent 84%);
    opacity: .85;
}

.terrain-nw {
    top: -75px;
    left: -125px;
}

.terrain-se {
    right: -135px;
    bottom: -110px;
    transform: rotate(180deg);
    opacity: .65;
}

.terrain i {
    display: block;
    position: absolute;
    inset: 0;
    background: #33363a;
}

.terrain i:nth-child(1) {
    clip-path: polygon(0 0,22% 0,10% 18%);
    background: #45484a;
}

.terrain i:nth-child(2) {
    clip-path: polygon(22% 0,34% 17%,10% 18%);
    background: #2c3032;
}

.terrain i:nth-child(3) {
    clip-path: polygon(22% 0,51% 0,34% 17%);
    background: #3a3d40;
}

.terrain i:nth-child(4) {
    clip-path: polygon(51% 0,65% 23%,34% 17%);
    background: #282c2f;
}

.terrain i:nth-child(5) {
    clip-path: polygon(51% 0,83% 0,65% 23%);
    background: #3a3d40;
}

.terrain i:nth-child(6) {
    clip-path: polygon(0 0,10% 18%,0 35%);
    background: #272c2f;
}

.terrain i:nth-child(7) {
    clip-path: polygon(10% 18%,34% 17%,23% 43%);
    background: #404346;
}

.terrain i:nth-child(8) {
    clip-path: polygon(0 35%,10% 18%,23% 43%);
    background: #323639;
}

.terrain i:nth-child(9) {
    clip-path: polygon(34% 17%,65% 23%,47% 47%);
    background: #36393c;
}

.terrain i:nth-child(10) {
    clip-path: polygon(34% 17%,47% 47%,23% 43%);
    background: #24282b;
}

.terrain i:nth-child(11) {
    clip-path: polygon(65% 23%,83% 0,93% 39%);
    background: #292c2f;
}

.terrain i:nth-child(12) {
    clip-path: polygon(65% 23%,93% 39%,47% 47%);
    background: #2e3235;
}

.terrain i:nth-child(13) {
    clip-path: polygon(0 35%,23% 43%,8% 77%);
    background: #3d4043;
}

.terrain i:nth-child(14) {
    clip-path: polygon(23% 43%,47% 47%,36% 77%);
    background: #303437;
}

.terrain i:nth-child(15) {
    clip-path: polygon(23% 43%,36% 77%,8% 77%);
    background: #252a2d;
}

.terrain i:nth-child(16) {
    clip-path: polygon(47% 47%,93% 39%,64% 82%);
    background: #292d30;
}

@media(min-width:1500px) {
    .terrain {
        width: 1000px;
        height: 800px;
    }
}

@media(max-width:700px) {
    .shell {
        width: calc(100% - 40px);
    }
    .site-header {
        min-height: 70px;
    }
    .brand {
        font-size: .7rem;
    }
    .site-header nav a {
        font-size: .8rem;
    }
    main {
        min-height: calc(100svh - 150px);
        padding-top: 35px;
        padding-bottom: 45px;
    }
    .hero-description {
        font-size: 1rem;
        max-width: 370px;
    }
    .hero-description br {
        display: none;
    }
    .account-panel {
        padding: 24px 24px 20px;
    }
    .terrain {
        width: 590px;
        height: 520px;
        opacity: .65;
    }
    .terrain-nw {
        top: -90px;
        left: -180px;
    }
    .terrain-se {
        right: -200px;
        bottom: -120px;
        opacity: .55;
    }
    .hero-note {
        font-size: .8rem;
    }
    .site-footer p {
        font-size: .7rem;
    }
    .account-links {
        gap: .3rem;
    }
    .text-button {
        font-size: .8rem;
    }
    .hero-line {
        font-size: .75rem;
    }
    h1 {
        letter-spacing: -.065em;
    }
    .site-footer {
        min-height: 80px;
    }
}

@media(max-width:360px) {
    .account-panel {
        padding-inline: 19px;
    }
    .account-links {
        display: grid;
        justify-content: start;
    }
    h1 {
        font-size: 2.5rem;
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
}

.terrain i:nth-child(17) {
    clip-path: polygon(0 0,10% 18%,6% 6%);
    background: #383c3e;
}

.terrain i:nth-child(18) {
    clip-path: polygon(10% 18%,6% 6%,22% 0);
    background: #4b4d50;
}

.terrain i:nth-child(19) {
    clip-path: polygon(0 35%,10% 18%,7% 32%);
    background: #47494b;
}

.terrain i:nth-child(20) {
    clip-path: polygon(34% 17%,45% 21%,42% 31%);
    background: #45474a;
}

.terrain i:nth-child(21) {
    clip-path: polygon(0 35%,8% 77%,10% 52%);
    background: #292c30;
}

.terrain i:nth-child(22) {
    clip-path: polygon(51% 0,65% 23%,63% 10%);
    background: #404245;
}
