body.dark {
    background-color: #fdfcfb;
    color: #000000;
}


.divider {
    border: 1px solid black;
    position: relative;
    margin: 1rem;
}

.divider>span {
    position: absolute;
    background-color: #fdfcfb;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    padding: 0 1rem;
}

#ich,
#lebensweg {
    background-color: #000000;
    color: #ffffff;

    padding: 2rem;
}

#ich .primary,
#lebensweg .primary {
    color: #008B9E;
}

nav,
footer {
    background-color: #000000;
    color: #d8a298;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;

    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}



.actions {
    width: fit-content;
}

.actions .button {
    width: 100%;
}

.hero .button {
    margin: 1rem auto;
    width: fit-content;
}

.hero .textContainer {
    font-size: 1.2rem;
    max-width: 50rem;
}

.quote {
    color: #d8a298;

}

.quote b {
    color: #ffffff;
    display: inline-block;

}

.quote b,
.quote_start {
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out, margin 0.2s ease-in-out;

}

.quote_start {
    font-size: 5rem;
    margin-bottom: -3rem;
}

.quote:hover b:nth-child(even),
.quote.hinted b:nth-child(even) {
    transform: translateY(-5px) scale(1.1);
    margin: 0 0.5rem;

}

.quote:hover b:nth-child(odd),
.quote.hinted b:nth-child(odd) {
    transform: translateY(5px) scale(1.1);
}

.quote:hover .quote_start,
.quote:hover b,
.quote.hinted .quote_start,
.quote.hinted b {
    color: #d8a298;

}

.subheading {
    color: #d8a298;
    font-size: 1.2rem;
}


.button {
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: inherit;
    color: #008B9E;
    border: 2px solid #008B9E;

    text-align: center;

    transition: box-shadow 0.2s ease-in-out, opacity 0.2s ease-in-out;


    margin: 1rem 0;
    display: block;

}

.button:hover {
    opacity: 0.8;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.5rem;
}

.container {
    margin: 5%;
    display: flex;
    flex-wrap: wrap-reverse;
    flex-direction: row-reverse;
    justify-content: space-around;
    align-items: center;
    gap: 1rem 5%;

    font-size: 1.1rem;
}

.container:nth-of-type(2n+1) {
    flex-direction: row;
}

#ich.container,
#lebensweg.container {
    margin: 0;
}


.img_wrapper img {
    max-width: 500px;
    max-height: 500px;
    height: auto;

    filter: grayscale(1);

    transition: filter 0.2s ease-in-out;
    border-radius: 0.5rem;

}

.img_wrapper {
    overflow: hidden;
}

.seals {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
}

.seals img {
    max-height: min(150px, 25vw);
    width: auto;
}

.img_wrapper>img:hover,
.img_wrapper.hinted img {
    filter: grayscale(0);
}

.text_wrapper {
    max-width: 40rem;
}

.large_text_wrapper {
    margin: 0 15%;
}

@media (orientation: portrait) {
    .large_text_wrapper {
        margin: 0;
    }
}


nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem 2rem;
}

body {
    padding: 0;
    margin: 0;

    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif
}

.primary {
    color: #008B9E
}

.hero {
    box-sizing: border-box;

    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    padding: 2rem 5%;
    background-color: #001322;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);

    text-align: center;

    margin: 2rem 0;
}

.hero>p {
    font-size: 1.2rem;
    color: #333;
    margin: 2rem;
    max-width: clamp(300px, 40vw, 700px);
}

body.dark .hero {
    background-color: #000000;
    color: #f5f5f5;
}



.cardContainer {
    position: relative;

    overflow: hidden;
}




img {
    width: 100%;
}


a {
    color: inherit;
    text-decoration: none;
    opacity: 1;

    transition: opacity 0.2s ease-out;
}

a:hover {
    opacity: 0.8;
}

ul.ausbildung {
    margin-top: 0.5rem;
    margin-left: -1rem;
}


.spoiler_button {
    text-decoration: underline;
    font-style: italic;
    opacity: 0.8;
    cursor: pointer;

    transition: opacity 0.5s ease-out;
    transition-delay: 0.5s;

}

.spoiler_button:hover {
    transition: opacity 0.2s ease-out;
    transition-delay: 0s;
    opacity: 1;
}

.spoiler>.spoiler_content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s;
}

.spoiler>.spoiler_content>div {
    overflow: hidden;
}

.spoiler.open>.spoiler_content {
    grid-template-rows: 1fr;
}

.spoiler.open>.spoiler_open_button {
    opacity: 0;
}

.cites p {
    color: grey;
    scale: 0.9;
    font-size: 1.2rem;
    animation: highlights 20s infinite;
}

.cites p:nth-child(1) {
    animation-delay: 0s;
}

.cites p:nth-child(3) {
    animation-delay: 10s;
}


@keyframes flash {
    0% {
        opacity: 1;
        background-color: red;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
        background-color: green;
    }
}


@keyframes highlights {
    0% {
        color: grey;
        scale: 0.9
    }

    5% {
        color: #008B9E;
        scale: 1
    }

    40% {
        color: #008B9E;
        scale: 1
    }

    50% {
        color: grey;
        scale: 0.9;
    }

    100% {
        color: grey;
        scale: 0.9
    }
}

@keyframes toFront {
    0% {
        z-index: 1;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);

        rotate: 1deg;
    }

    50% {
        z-index: 3;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    }

    100% {
        z-index: 3;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
        rotate: -1deg;
    }
}

@keyframes toBack {
    0% {
        z-index: 3;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
        rotate: -1deg;
    }

    50% {
        z-index: 1;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    }

    100% {
        z-index: 1;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
        rotate: 1deg;
    }
}


@media (orientation: portrait) {

    nav,
    footer {
        padding: 1rem 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .container {
        flex-direction: column;
        gap: 0;
    }

    .container:nth-of-type(2n+1) {
        flex-direction: column;
    }
}

/* custom scrollbar */

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track:hover {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #008B9E;
}