/*STYLES & TYPO*/

html ::selection {
    scroll-behavior: smooth;
    letter-spacing: 0.04em;
    background: blue;
    color: white;
}

body::selection {
    background: blue;
    color: white;
    margin-left: 16px;
    padding-left: 16px;
}

body {
    overflow-x: hidden;
    letter-spacing: 0.04em;
    display: block;
    font-family: "neue-haas-grotesk-display", sans-serif;
    font-weight: light;
    font-style: normal;
    margin-top: 20px;
    margin-left: 0;
    margin-right: 0;
    min-width: 400px;
    color: #323232;
    background-color: #fafafa;
}

strong {
    font-size: 30px;
    color: blue;
}

p {
    letter-spacing: 0.04em;
}

/*header*/

.header-left {
    box-sizing: border-box;
    font-size: 20px;
    padding-right: 8px;
}

.header-logo {
    text-decoration: none;
    color: #323232;
}

.header-logo:hover {
    color: blue;
    transition: color 0.3s ease;
}

.header-right {
    box-sizing: border-box;
    font-size: 20px;
    padding-left: 15px;
    padding-right: 15px;
    text-align: right;
}

.header-right ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-right a {
    margin-left: 20px;
    text-decoration: none;
    color: #323232;
}

.header-right a:hover {
    color: grey;
    transition: color 0.3s ease;
}

li.active a {
    color: blue;
}

/*SCROLLBAR*/

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

::-webkit-scrollbar-track {
    background-color: #fafafa;
}

::-webkit-scrollbar-thumb {
    background-color: blue;
    border-radius: 5px;
    width: 5px;
    transition: background-color 0.3s ease;
}

/*SCROLLTOTOP*/

#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    font-size: 24px;
    border: none;
    background-color: #323232;
    color: white;
    border-radius: 20%;
    text-decoration: none;
    text-align: center;
    transition: 0.5s ease;
}

#scrollToTopBtn:hover {
    border-radius: 15%;
    background-color: #0000ff;
    transition: 0.5s ease;
}

/*ARTICLE*/

article p {
    max-width: 550px;
    line-height: 1.4em;
    letter-spacing: 0.04em;
    font-size: 18px;
    margin-bottom: 18px;
}

article {
    margin-left: 16px;
    margin-right: 16px;
    margin-bottom: 70px;
}

article a {
    text-decoration: none;
    color: blue;
    font-size: 18px;
}

article a::after {
    text-decoration: none;
    color: blue;
    content: " ↗";
    font-weight: 300;
    font-family: system-ui;
    transition: color 0.3s ease;
}

article h2 {
    font-weight: 400;
    margin-bottom: 3px;
}

header {
    display: block;
    border-bottom: #b3b3b3 solid 1px;
    padding-bottom: 16px;
    padding-left: 16px;
    padding-right: 8px;
}

/*INTRO STYLING*/

.intro-start h1 {
    font-family: "neue-haas-grotesk-text";
    font-size: 48px;
    line-height: 1.2;
    font-weight: 400;
    color: #323232;
    margin-bottom: 0;
}

.intro-start {
    margin-top: 38px;
    max-width: 800px;
    margin-left: 16px;
    letter-spacing: -0.01em;
    margin-right: 37px;
    padding-right: 16px;
}

.intro-container.p {
    display: flex;
    justify-content: space-between;
    margin-top: 0;
}

.intro {
    margin-top: 38px;
    max-width: 550px;
    margin-left: 16px;
    letter-spacing: 0.04em;
    margin-right: 37px;
    padding-right: 16px;
}

.intro h1::selection {
    background: blue;
    color: white;
}

.intro h1 {
    font-family: "neue-haas-grotesk-text";
    font-size: 48px;
    line-height: 1.2;
    font-weight: 400;
    color: #323232;
    margin-bottom: 3px;
}

.intro p {
    font-size: 18px;
    line-height: 1.4em;
    margin-bottom: 20px;
    margin-top: 7px;
}

/*MARKUP*/

.mark-up {
    color: #323232;
    transition: color 5s ease;
    font-weight: 400;
}

.mark-up:hover {
    cursor:
        url(assets/cursor.png) 16 16,
        auto;
    color: blue;
    transition: color 0.2s ease-in-out;
}

/*kontakt-link*/

.kontakt-link {
    color: black;
    text-decoration: none;
    position: relative;
    padding: 1px;
    border-radius: 3px;
}

.kontakt-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: blue;
    transition: width 0.3s ease;
    border-radius: 3px;
    padding-top: 0.3px;
}

.kontakt-link:hover {
    color: blue;
}

.kontakt-link:hover::after {
    width: 100%;
}

/*iframe-einbettung*/

iframe {
    display: block;
    width: 700px;
    max-width: 100%;
    aspect-ratio: 7 / 10;
    margin-top: 50px;
    border-radius: 3px;
    transition:
        border-radius 0.5s,
        transform 0.5s;
}

iframe:hover {
    border-radius: 10px;
    transition: border-radius 0.5s;
}

/*label & kleinigkeiten*/

.label-new {
    position: relative;
    font-size: 20px;
    color: blue;
    text-align: left;
    width: auto;
    font-weight: 500;
    transition: color 0.3s ease;
    letter-spacing: 0.04em;
    border: solid 2px blue;
    padding: 5px 5px 4px;
    border-radius: 3px;
    margin-bottom: 7px;
    display: inline-block;
    margin-top: 40px;
}

.punkt {
    color: blue;
    font-size: 50px;
}

time {
    font-size: 16px;
    color: gray;
}

/*projects*/

.project-title a::after {
    content: " ↗";
    font-size: 20px;
    font-weight: 300;
    font-family: system-ui;
    transition: color 0.3s ease;
}

.project-title a:hover {
    color: blue;
    transition: color 0.3s ease;
}

.project-title {
    position: absolute;
    bottom: -38px;
    left: 0;
    font-size: 20px;
    color: #323232;
    text-align: left;
    width: auto;
    box-sizing: border-box;
    font-weight: 500;
    transition: color 0.3s ease;
    letter-spacing: 0.04em;
}

.project-title a {
    text-decoration: none;
    color: #323232;
}

.project-description {
    position: absolute;
    bottom: -62px;
    left: 0;
    font-size: 18px;
    color: grey;
    text-align: left;
    width: auto;
    box-sizing: border-box;
    letter-spacing: 0.04em;
}

p.description {
    color: gray;
    margin-top: 0;
    margin-bottom: 40px;
    padding-bottom: 0;
}

.project-tools {
    position: absolute;
    bottom: -87px;
    left: 0;
    font-size: 18px;
    color: grey;
    text-align: left;
    width: auto;
    box-sizing: border-box;
    letter-spacing: 0.04em;
}

/*grid-layout*/

.columns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: 24px;
}

.case-row {
    margin: 0 auto;
    padding: 16px;
}

.columns-free {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.col-6-free,
.col-4-free {
    margin-bottom: 0;
    box-sizing: border-box;
    transition: border-radius 1s;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.col-12-free img,
.col-6-free img,
.col-4-free img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    transition: 0.7s ease;
}
.col-12-free img:hover,
.col-6-free img:hover,
.col-4-free img:hover {
    border-radius: 3px;
    transition: 0.7s ease;
}

.col-12:hover .project-title a,
.col-6:hover .project-title a,
.col-4:hover .project-title a {
    color: blue;
}

.col-12:hover .project-title a,
.col-6:hover .project-title a,
.col-4:hover .project-title a {
    color: blue;
    transition: color 0.3s ease;
}

.col-12,
.col-6,
.col-4 {
    margin-bottom: 120px;
    box-sizing: border-box;
    transition: border-radius 1s;
    background-color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.col-12 img,
.col-6 img,
.col-4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 3px;
    transition: 0.7s ease;
}

.col-6 img:hover,
.col-12 img:hover,
.col-4 img:hover {
    border-radius: 8px;
    transition: border-radius 0.7s ease;
    cursor:
        url(assets/cursor.png) 16 16,
        auto;
}

.col-6-free {
    max-width: calc(50% - 12px);
}

.col-4-free {
    max-width: calc(33.333% - 16px);
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-6 {
    max-width: calc(50% - 12px);
    aspect-ratio: 1 / 1;
}

.col-4 {
    max-width: calc(33.333% - 16px);
    aspect-ratio: 1 / 1;
}

/*footer*/

footer {
    margin-top: 30px;
    border-top: #b3b3b3 solid 1px;
    padding-top: 16px;
    padding-left: 16px;
    padding-right: 16px;
    font-size: 16px;
    margin-bottom: 30px;
}

footer a {
    text-decoration: none;
    color: gray;
}

footer a::after {
    content: " ↗";
    font-size: 16px;
    font-weight: 300;
    font-family: system-ui;
    transition: color 0.3s ease;
}

footer p {
    line-height: 0.8em;
}

footer a:hover {
    color: #323232;
}

/* responsive layout für mobile  */
@media (max-width: 900px) {
    .col-6,
    .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        aspect-ratio: 1 / 1;
    }

    .col-6-free,
    .col-4-free {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .header-right ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-top: 16px;
    }

    .header-right a {
        margin-left: 0;
    }
}
