:root {
    --color-primary: rgb(0, 0, 0);
    --color-secondary: rgb(255, 255, 255);
    --color-muted: rgba(255, 255, 255, 0.72);
    --color-bg-out: rgb(32, 32, 32);
    --color-bg-in: rgb(17, 17, 17);
    --color-bg-top: transparent;
    --color-bg-top-white: rgba(255, 255, 255, 0.15);
    --color-panel: rgba(255, 255, 255, 0.08);
    --color-panel-border: rgba(255, 255, 255, 0.18);
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: monospace;
    color: var(--color-secondary);
}

html,
body {
    margin: 0;
    min-height: 100%;
    background-color: var(--color-bg-in);
}

body {
    position: relative;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--color-bg-out), var(--color-bg-in));
    z-index: 0;
}

.background #dots {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.background #dots .moving-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    opacity: 0.75;
    z-index: 50;
    transition: 15s ease-in-out;
}

.background .blur {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 51;
    backdrop-filter: blur(10px) saturate(180%);
    background-color: rgba(0, 0, 0, 0.08);
}

.top {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(1220px, calc(100% - 2rem));
    z-index: 250;
}

.top .header-bar {
    width: 100%;
    min-height: 78px;
    padding: 0.9rem 1rem;
    display: grid;
    grid-template-columns: minmax(0, 24rem) 1fr;
    align-items: center;
    gap: 1rem;
    background-color: rgba(18, 18, 18, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1.2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.top .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.95rem;
    min-height: 60px;
    padding: 0.7rem 1rem;
    background-color: var(--color-bg-top-white);
    border: 1px solid var(--color-secondary);
    border-radius: 1rem;
    backdrop-filter: blur(6px);
}

.top .logo img {
    width: auto;
    height: 52px;
}

.top .logo .brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
}

.top .logo strong {
    font-weight: bold;
    font-size: clamp(0.95rem, 1.3vw, 1.2rem);
}

.top .logo small {
    color: var(--color-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08rem;
}

.top .nav {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    min-height: 60px;
    padding: 0.85rem 1.4rem;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

.top .nav a {
    position: relative;
    padding-bottom: 2px;
    transform: none;
    transition: all 0.3s ease-in-out;
}

.top .nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease-out;
}

.top .nav a:hover::after,
.top .nav a:focus-visible::after {
    width: 100%;
}

.footer {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 110px;
    margin: 0;
    margin-top: 2rem;
    z-index: 249;
    background-color: rgba(0, 0, 0, 0.88);
    border-top: 1px solid var(--color-secondary);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1vh;
    padding: 0.8rem 1rem;
}

.footer .copyright span {
    font-weight: bold;
    font-size: large;
}

.footer .socialmedia {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 2vh;
}

.footer .socialmedia a {
    background-color: var(--color-primary);
    width: 4vh;
    height: 4vh;
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid var(--color-secondary);
    transition: transform 0.1s ease-in;
    font-weight: bold;
}

.footer .socialmedia a img {
    width: 3vh;
    height: 3vh;
    min-width: 22px;
    min-height: 22px;
    filter: invert(1);
}

.footer .socialmedia a#mail img {
    width: 2.5vh;
    height: 2.5vh;
    min-width: 18px;
    min-height: 18px;
}

.footer .socialmedia a:hover,
.footer .socialmedia a:focus-visible {
    transform: scale(1.1);
}

.footer .impressum {
    text-decoration: underline;
    text-align: center;
}

@media (max-width: 980px) {
    .top {
        top: 0.8rem;
        width: calc(100% - 1rem);
    }

    .top .header-bar {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0.8rem;
    }

    .top .logo,
    .top .nav {
        width: 100%;
        min-height: 54px;
    }

    .top .nav {
        justify-content: flex-start;
        gap: 1.2rem;
        flex-wrap: wrap;
        border-radius: 1rem;
    }

    .top .logo img {
        height: 48px;
    }

    .footer {
        min-height: 0;
    }
}
