/* 
    iMac-Display hat folgende Auflösung:
    2560px * 1440px
*/
:root {
    --breite: clamp(320px, 85%, 2560px);
    --raster: repeat(auto-fit, minmax(600px, 1fr));
}

/* ================================ normalize ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img,
video {
    width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 100%;
    font-weight: 400;
}

html {
    font: 120%/1.3 "untitled-sans", Arial, sans-serif;
    color: #444;
    background-color: rgb(255, 255, 255);
    -ms-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
    scroll-behavior: smooth;
}

a:link,
a:visited {
    text-decoration: none;
    color: inherit;
}

/* ================================ header ================================ */

header {
    background-color: white;
    padding: 1rem 0;
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10;
}

/* wird via JS gesetzt */
header.gescrollt {
    /* border-bottom: 2px solid rgb(188, 188, 188); */
    box-shadow: 0 0 15px 2px rgb(185, 185, 185);
}

header section {
    width: var(--breite);
    margin: 0 auto;
    display: grid;
    grid-template-columns: var(--raster);
    gap: 0 2vmin;
    align-items: end;
    /* outline: 1px solid #ddd; */
}

header div {
    /* width: var(--breite); */
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 150px 115px 2fr;
    gap: 15px;
    align-items: end;
}

header .beschriftung {
    position: relative;
    top: 4px;
}

header h2 {
    font-size: 70%;
    position: relative;
    top: 4px;
}

/* der QR-Code */
#qr-code {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 15px;
    align-items: end;
    font-size: 75%;
    position: relative;
    top: 4px;
    /* outline: 1px solid red; */
}

#qr-code img {
    opacity: 0.6;
}

#qr-code figcaption {
    position: relative;
    top: 4px;
}

/* ================================ main ================================ */

main {
    width: var(--breite);
    margin: 0 auto 3rem auto;
    position: relative;
}

main h2 {
    font-weight: 600;
}

main h3 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: .1rem;
}

.intro {
    display: grid;
    grid-template-columns: var(--raster);
    gap: 0 2vmin;
    margin: 12rem 0 6rem 0;
}

.intro figcaption {
    -ms-hyphens: none;
    -webkit-hyphens: none;
    hyphens: none;
}

.projekte {
    display: grid;
    grid-template-columns: var(--raster);
    gap: 4vmin 2vmin;
}

.projekte article {
    opacity: .9;
    transition: opacity .2s;
}

.projekte article:hover {
    opacity: 1;
}

.projekte span:hover {
    border-bottom: 1px solid;
}

/* =================== Anpassung auf kleine Screens =================== */

@media screen and (max-width: 1450px) {
    #qr-code {
        display: none;
    }
}

@media screen and (max-width: 700px) {
    :root {
        --raster: repeat(auto-fit, minmax(300px, 1fr));
    }

    header div {
        /* outline: 1px solid blue; */
        grid-template-columns: 150px 2fr;
    }

    header .beschriftung {
        display: none;
    }
}