@font-face {
    font-family: "Cascadia Code";
    font-display: swap;
    src: local("Cascadia Code"), url("CascadiaCode.woff2") format("woff2");
}

small {
    color: red;
    font-weight: bold;
}

:root {
    --background: 255, 255, 255;
    --text: 0, 0, 0;
    --primary: 244, 186, 132;
    --secondary: 224, 97, 151;
}

html {
    height: 100%;
    font-family: sans-serif;
    /*    background: url('bg.svg') fixed center rgb(var(--background));
        background-size: cover; */

    scroll-behavior: smooth;

    text-align: justify;
    line-height: 1.3;

    color: rgb(var(--text));
}

li {
    text-align: left;
}

p {
    margin: 8px 0;
}

h1, h2, h3, h4, h5, h6, b, em, strong, .brand {
    font-family: 'Cascadia Code', monospace;
    margin: 0;
}

a {
    color: rgb(var(--text));
    text-decoration: underline dashed rgba(var(--text), 0.2);

    &:hover {
        text-decoration: underline;
    }
}

body {
    margin: 0;
}

@media (max-width: 700px) {
    .fill {
        font-size: 1em !important;
    }

    .fill svg {
        max-width: 80vw;
    }
}

header {
    position: sticky;
    left: 0;
    top: 0;
    right: 0;
    background: rgb(var(--background));
    margin-bottom: 5px;
    z-index: 10; /* otherwise fa-icon goes in front somehow */
}

header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 5px;
    background: linear-gradient(to right, rgb(var(--primary)), rgb(var(--secondary)));
}

.menu {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
    align-items: center;

    padding: 20px;
    margin: 0 auto;

    max-width: 850px;
}

.menu .spacer {
    flex-grow: 1;
}

.menu a {
    color: rgb(var(--text));
    font-family: "Cascadia Code", monospace;
    text-decoration: none;
    font-weight: bold;
    transition: 75ms color;

    &:hover {
        color: rgb(var(--primary));
    }
}

.page-home header {
    display: none;
}

a.brand {
    font-size: 1.5em;
    text-decoration: none;
}

.brand svg {
    height: 1.3em;
    width: auto;
    margin-right: 0.25em;
    vertical-align: sub;
    display: inline;
}

.brand svg path {
    transition: 75ms fill;
}

.brand:hover svg path {
    fill: rgb(var(--primary)) !important;
}

main {
    margin: 0;
    max-width: 100%; /* Entfernt die Begrenzung auf 850px */
    padding: 25px;
    box-sizing: border-box;
}

footer {
    margin: 0 auto;
    max-width: 850px;
    padding: 25px;
    box-sizing: border-box;
}

.fill {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    font-size: 2em;
    background: url('bg.svg') center, linear-gradient(90deg, rgba(var(--primary), 0.3), rgba(var(--background), 0.3), rgba(var(--secondary), 0.3));
    background-size: cover;
}

.more {
    display: block;
    transition: transform 75ms;
}

.more:hover {
    transform: scale(1.2);
}

@keyframes cta-border {
    0% {
        border-color: rgb(var(--primary));
    }
    100% {
        border-color: rgb(var(--secondary));
    }
}

.cta {
    background: rgb(var(--background));
    padding: 15px 30px;
    border: 3px solid rgb(var(--primary));
    animation: cta-border 2s infinite alternate;
    border-radius: 15px;
    font-family: "Cascadia Code", monospace;
    font-size: 1.2em;
    text-decoration: none !important;
    transition: 50ms;
    display: inline-block;
}

.cta:hover {
    animation: none;
    background: rgb(var(--primary));
    color: rgb(var(--background));
    transform: scale(1.05);
}

.block {
    background: linear-gradient(120deg, rgba(var(--primary), 0.5), rgba(var(--background), 0.5), rgba(var(--secondary), 0.5));
    padding: 3px;
    border-radius: 2px;
    display: block !important;
    margin-bottom: 20px;

    &.narrow {
        max-width: 850px;
        margin-left: auto;
        margin-right: auto;
    }

    & h2 {
        text-align: center;
        margin-top: 2px;
        margin-bottom: 4px;
        text-shadow: 0 0 4px rgba(var(--background), 0.5);
    }

    & .content {
        background: rgba(var(--background), 0.9);
        padding: 15px;
        border-radius: 1px;

        &:not(:last-child) {
            margin-bottom: 3px;
        }
    }

    &:is(a) {
        /*margin-left: auto;
        margin-right: auto;
        width: fit-content;*/

        & .content {
            padding: 6px;
        }

        transition: 75ms transform;

        &:hover {
            text-decoration: none;
            transform: scale(1.1);
        }
    }
}

.contact {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;

    & > div, & > a {
        display: block;
        background: linear-gradient(120deg, rgba(var(--secondary), 0.75), rgba(var(--background), 0.75));
        padding: 3px;
        border-radius: 2px;
        transition: 75ms transform;

        & .content {
            background: rgba(var(--background), 0.5);
            padding: 6px;
            border-radius: 1px;
        }
    }

    & a {
        background: linear-gradient(120deg, rgba(var(--primary), 0.75), rgba(var(--background), 0.75));
    }

    & a:hover {
        text-decoration: none;
        transform: scale(1.1);
    }

    & .far, & .fas, & .fab {
        transform: scale(1.2);
    }
}


#contact .list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

#contact .person {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 10px;

    background: rgba(var(--background), 0.75);
    border-radius: 5px;
    border: 1px solid rgba(var(--text), 0.1);
}

.person .avatar {
    width: 130px;
    height: 130px;
    border-radius: 5px 0 0 5px;
}

.person .data {
    padding: 10px 0;
    flex-grow: 1;
    line-height: 1.5em;
}

.image-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.image-container > div {
    position: relative;
    aspect-ratio: 2 / 1;
    border-radius: 2px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-container .label {
    font-family: "Cascadia Code", monospace;
    font-weight: bolder;
    text-align: center;
    position: absolute;
    padding:5px;
    bottom: 0;
    left: 0;
    right: 0;
    text-shadow: rgba(var(--background)) 0 0 3px, rgba(var(--background)) 0 0 2px, rgba(var(--background)) 0 0 1px;
    color: rgb(var(--text));
}

.image-container .label.inverted{
    text-shadow: rgba(var(--text)) 0 0 3px, rgba(var(--text)) 0 0 2px, rgba(var(--text)) 0 0 1px;
    color: rgb(var(--background));
}