:root {
    --black: #000000;
    --white: #ffffff;
    --almostwhite: #fffffe;
    --lightgrey: #eeeeee;
    --midgrey: #888888;
    --darkgrey: #101010;
    --machinegreen: #79a8ad;
    --winqueeze: #3badb1;
    --redgrey: #A69894;
    --rosa: #a57373;
    --black: #000000;
    --container: #fffffe;
    --mimfGreen: rgb(0, 148, 116);
    --background: #eeeeee;
}

/* ------------- layout: large display --------------- */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    min-height: 100vh;
    margin: 0;
    background-color: var(--background);

    font-family: 'Crimson Text', 'Times New Roman', 'Times', serif;
    font-weight: normal;
    font-size: 1rem;
    color:  #222222;
}

.layout {
    width: 100%;
    max-width: 768px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 1rem;
    background-color: var(--almostwhite);
}

/* ------------- layout: small display --------------- */

@media (max-width: 767px) {
    .layout {
        margin: 0;
        text-align: left;
    }
}


/* ------------- navbar: large display --------------- */

.navbar {
    position: relative;
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    z-index: 1000;
}

.nav-button {
    display: inline-block;
    padding: 0.1rem 1rem;
    width: fit-content;
    
    background: #efefef;
    border: 2px solid;
    border-color: #eee #aaa #aaa #eee;
    border-radius: 5px;
        
    font-family: 'TGL0-16', sans-serif;
    font-size: 1.2rem;
    line-height: 1.2;
    letter-spacing: 1px;
    color: #000;
    text-decoration: none;
    text-align: center;
    
    cursor: pointer;
    transition: 0.2s;
}

.nav-button:hover {
    color: #000;
    background: #ddd;
}

.nav-button:active {
    border-color: #666666 #dddddd #dddddd #666666;
    box-shadow: none;
    transform: translate(1px, 1px);
}

.nav-button:focus-visible {
    outline: 1px dotted #000;
    outline-offset: -4px;
}

.nav-button:focus-visible {
    outline: 1px dotted #000;
    outline-offset: -4px;
}

.menu-button, .close-button {
    &copy;display: none;
}


/* ------------- navbar: small-display --------------- */

@media (max-width: 767px) {
    .navbar {
        position: fixed;
        inset: 0;
        z-index: 1000;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;

        margin: 0;
        padding: 2rem;
        background-color: #fff;
        overflow-y: hidden;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 1s, visibility 1s;
    }

    .navbar.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .menu-button {
        display: block;
        position: sticky;
        width: max-content;
        margin-left: auto;
        z-index: 999;
    }

    .close-button {
        display: block;
    }

    .nav-button {
        font-size: 1.5rem;
    }
}

/* ------------- section: large display --------------- */

h1.title {
    width: 100%;
    margin-top: 0;
    margin-bottom: 2rem;
    border-bottom: #19c897 6px solid;
    /*margin: 3rem 0 0.5rem 0;*/
    padding: 0;
    font-family: 'TGL12096.01'; 
    font-weight: bold; 
    font-style: normal;
    font-size: 2.5rem;
}

.content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-bottom: 4rem;
}

.section {
    display: flex;
    flex-direction: column;
    margin-bottom: 4rem;
}

.section-2-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.col img {
    display: block;
    width: 100%;
    height: auto;
}

a {
}

img {
    display: block;
    margin: auto;
    margin-top: 1rem;
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
}

.work-subscript {
    /*font-family: 'TGL31034-1';*/
    font-family: 'Crimson Text', 'Times New Roman', 'Times', serif;
    font-style: normal;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.2;
    margin: 0.5rem 0 0.5rem 0;
    padding-left: 0.5rem;
    text-align: center;
}

.arrow-link {
    display: inline-block;
    width: fit-content;
    margin-left: auto;
    margin-right: 4.3rem;
    margin-top: 0;
    font-size: 2rem;
    text-decoration: none;
    color: var(--redgrey);
    transition: color 0.5s;
}

.arrow-link:hover {
    color: #a00;
    text-shadow: 2px 2px 2px yellow;
}

.arrow-backwards {
    display: inline-block;
    transform: scaleX(-1);
    position: sticky;
    left: 0;
    top: 0rem;
    width: fit-content;
    margin-right: auto;
    margin-left: 0rem;
    margin-top: 0;
    font-size: 3rem;
    text-decoration: none;
    color: var(--redgrey);
    transition: color 0.5s;
}

.arrow-backwards:hover {
    color: #a00;
    text-shadow: 2px 2px 2px yellow;
}


/* ------------- section: small display --------------- */

@media (max-width: 767px) {
    .h1 {
        margin: 1rem 0;
    }
        
    .content {
        align-items: center;
    }
    
    .section {
        margin-bottom: 4rem;
    }
    
    .work-subscript {
        font-size: 1.0rem;
        margin: 10px 0;
    }

    .arrow-link {
        margin-right: 0;
    }
}

/* ------------- text: large display --------------- */ 

p {
    margin: 0.5rem 2rem 0.5rem 2rem;
    font-family: 'Crimson Text', 'Times New Roman', 'Times', serif;
    font-weight: normal;
    font-size: 1.2rem;
    color:  #222222;
}

.center {
    text-align: center;
}

.small {
    font-size: 0.9rem;
}

.big {
    font-size: 1.4rem;
}

p a {
    color: #02b;
}

p a:hover {
    text-shadow: 2px 2px 2px #cc0;
    transition: 2s;
}


/* ------------- mimf: large display --------------- */

.mimf {
    display: block;
    width: auto;
    height: auto;
    height: 100vh;
    overflow-x: none;
    overflow-y: none;
    z-index: 1;
}

.mimf-scroll {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior: none;
    background-color: #fff;
    cursor: grab;
    user-select: none;
    touch-action: none;
    z-index: 0;
}

.mimf-scroll.is-dragging {
    cursor: grabbing;
}


/* ------------- table --------------- */

.table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border-bottom: 1px solid #dee2e6;
    line-height: 1.0;
}

.table td {
    padding: 0.5rem;
    vertical-align: middle;
    /*border: 1px solid #aaa;*/
    border-top: 1px solid #dee2e6;
    overflow-wrap: normal;
}

.abbr {
    font-family: 'TGL31034-1';
    font-style: normal;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    vertical-align: -0.15em;
    border: 1px solid #222;
    border-radius: 20px;
    padding: 0.2em;
    padding-left: 0.4em;
    padding-top: 0.25em;
}

/* ------------- imprint --------------- */

.imprint {
    text-align: center;
    font-size: 1rem;
    color: #aaa;
}

.imprint>a {
    color: #aaa;
    transition: 1s;
}

.imprint>a:hover {
    color:  #333;
    text-decoration: underline #333;
    transition: 2s;
}
