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

html, body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

:root {
    --neutral-500: #C4C4C4;
    --black: #000000;
    --white: #FFFFFF;
}

@font-face {
    font-family: 'ABCFavoritEdu-Regular';
    src: url('fonts/ABCFavoritEdu-Regular.woff2') format('woff2'),
         url('fonts/ABCFavoritEdu-Regular.woff') format('woff'),
         url('fonts/ABCFavoritEdu-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'WSKonfetti-ArchitekturBA';
    src: url('fonts/WSKonfetti-ArchitekturBA.woff2') format('woff2'),
         url('fonts/WSKonfetti-ArchitekturBA.woff') format('woff'),
         url('fonts/WSKonfetti-ArchitekturBA.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'WSKonfetti-ArchitekurMA';
    src: url('fonts/WSKonfetti-ArchitekurMA.woff2') format('woff2'),
         url('fonts/WSKonfetti-ArchitekurMA.woff') format('woff'),
         url('fonts/WSKonfetti-ArchitekurMA.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'WSKonfetti-CivicDesign';
    src: url('fonts/WSKonfetti-CivicDesign.woff2') format('woff2'),
         url('fonts/WSKonfetti-CivicDesign.woff') format('woff'),
         url('fonts/WSKonfetti-CivicDesign.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'WSKonfetti-ExhibitionDesignMA';
    src: url('fonts/WSKonfetti-ExhibitionDesignMA.woff2') format('woff2'),
         url('fonts/WSKonfetti-ExhibitionDesignMA.woff') format('woff'),
         url('fonts/WSKonfetti-ExhibitionDesignMA.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'WSKonfetti-InnenArchMA';
    src: url('fonts/WSKonfetti-InnenArchMA.woff2') format('woff2'),
         url('fonts/WSKonfetti-InnenArchMA.woff') format('woff'),
         url('fonts/WSKonfetti-InnenArchMA.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'WSKonfetti-KomDesignBA';
    src: url('fonts/WSKonfetti-KomDesignBA.woff2') format('woff2'),
         url('fonts/WSKonfetti-KomDesignBA.woff') format('woff'),
         url('fonts/WSKonfetti-KomDesignBA.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'WSKonfetti-KomDesignMA';
    src: url('fonts/WSKonfetti-KomDesignMA.woff2') format('woff2'),
         url('fonts/WSKonfetti-KomDesignMA.woff') format('woff'),
         url('fonts/WSKonfetti-KomDesignMA.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'WSKonfetti-NewCraftBA';
    src: url('fonts/WSKonfetti-NewCraftBA.woff2') format('woff2'),
         url('fonts/WSKonfetti-NewCraftBA.woff') format('woff'),
         url('fonts/WSKonfetti-NewCraftBA.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'WSKonfetti-NewCraftMA';
    src: url('fonts/WSKonfetti-NewCraftMA.woff2') format('woff2'),
         url('fonts/WSKonfetti-NewCraftMA.woff') format('woff'),
         url('fonts/WSKonfetti-NewCraftMA.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'WSKonfetti-RetailDesignBA';
    src: url('fonts/WSKonfetti-RetailDesignBA.woff2') format('woff2'),
         url('fonts/WSKonfetti-RetailDesignBA.woff') format('woff'),
         url('fonts/WSKonfetti-RetailDesignBA.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.font-architektur-ba {
    font-family: 'WSKonfetti-ArchitekturBA', sans-serif;
}  

.font-architektur-ma {
    font-family: 'WSKonfetti-ArchitekurMA', sans-serif;
}  

.font-innenarchitektur-ma {
    font-family: 'WSKonfetti-InnenArchMA', sans-serif;
}

.font-civic-design-ma {
    font-family: 'WSKonfetti-CivicDesign', sans-serif;
}

.font-exhibition-design-ma {
    font-family: 'WSKonfetti-ExhibitionDesignMA', sans-serif; 
}

.font-kd-ba {
    font-family: 'WSKonfetti-KomDesignBA', sans-serif;
}  

.font-kd-ma {
    font-family: 'WSKonfetti-KomDesignMA', sans-serif;
}
.font-new-craft-ba {
    font-family: 'WSKonfetti-NewCraftBA', sans-serif;
}

.font-new-craft-ma {
    font-family: 'WSKonfetti-NewCraftMA', sans-serif;
}   

.font-retail-design-ba {
    font-family: 'WSKonfetti-RetailDesignBA', sans-serif;
}

.font-exhibition-design-ma {
    font-family: 'WSKonfetti-ExhibitionDesignMA', sans-serif; 
}

:root {
    --neutral-500: #C4C4C4;
    --black: #000000;
    --white: #FFFFFF;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: white;
    font-family: 'ABCFavoritEdu-Regular', sans-serif;
    cursor: default;
    margin: 0;
    padding: 0;
        
}

.hidden {
    display: none;
}

h1, h2, h3, h4, h5, h6, p, a, button {
    font-weight: 400;
}

h1 {
    font-size: 1.5rem;
    line-height: 1.625rem;
}

p {
    font-size: 1.5rem;
    line-height: 1.625rem;
    margin-bottom: 1.5rem;
}

p:last-child {
    margin-bottom: 0; 
}

a {
    transition: color 0.25s ease;
    line-height: 1.625rem;
}

button {
    color: var(--black);
}

/* HEADER */

.header {
    position: fixed;
    width: 100%;
    background-color: var(--white);
    z-index: 100;
}

.header p, .header a {
    font-size: 1.5rem;
}

.header a {
    text-decoration: none;
    color: var(--black);    
}

.header a:hover {
    color: var(--neutral-500);
}

.header-content {
    margin: 0 auto;
    padding: 34px 28px 26px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-links {
    display: flex;
    flex-direction: column;
}

.header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-links {
    padding-right: 8.75rem;
}

.header-dates {
    text-align: right;
}

.header-dates p {
    margin-bottom: 0;
}


/* CANVAS STYLES */

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* lässt Klicks/Touch durch */
    touch-action: none; /* verhindert Scrollen durch Canvas-Gesten */
}

.cursor-dot {
    display: none;
}

.link-wrapper {
    position: absolute;
    z-index: 99;
}

.link-wrapper-design {
    top: 25%;
    left: 15%;
}

.link-wrapper-architektur {
    bottom: 35%;
    right: 20%;
}

.link-wrapper button {
    font-size: 4.5rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.25s ease;
}

.link-wrapper button:hover {
    color: var(--neutral-500);
}

.link-wrapper-design button {
    font-family: 'WSKonfetti-KomDesignBA', sans-serif;
}

.link-wrapper-architektur button {
    font-family: 'WSKonfetti-ArchitekturBA', sans-serif;
}

/* OVERLAY */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
}



.overlay.open {
    display: flex;
}

.overlay-content {
    background: var(--white);
    padding: 2.875rem;
    min-width: 240px;
    max-width: 90vw;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;

    width: 100%;
    max-width: 55rem;
    height: 80svh;
    overflow: scroll;
}

.overlay-content p {
    font-size: 1.25rem;
}

#overlayDesign h2 {
    font-family: 'WSKonfetti-KomDesignBA', sans-serif;
    font-size: 4.5rem;
}

#overlayArchitektur h2 {
    font-family: 'WSKonfetti-ArchitekturBA', sans-serif;
    font-size: 4.5rem;
}

.overlay-graduates {
    margin-top: 2rem;
}

.overlay-graduates-list {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.overlay-graduate-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    color: var(--black);
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}

.overlay-graduate-link img {
    height: 3.625rem;
}

.overlay-close {
    position: absolute;
    top: 2.625rem;
    right: 3.5rem;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    width: 1.5rem;
}

.footer a img {
    height: 18px;
    margin-top: 2px;
    width: auto;
}


/* FOOTER */

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 100;
    color: var(--neutral-500);
}

#overlayFooter h2 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

#overlayFooter a {
    color: var(--black);
}

#overlayFooter a:hover {
    color: var(--grey);
}


.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    flex-direction: row;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    gap: 1rem;
}

.footer-info a {
    height: 1.5rem;
}

.footer button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: var(--neutral-500);
    transition: color 0.25s ease;
    font-size: 1.5rem;
    line-height: 1.625rem;
}

.footer button:hover {
    color: var(--black);
}


@media screen and (max-width: 768px) {


    h1 {
        font-size: 1rem;
        line-height: 1.125rem;
    }

    p, a {
        font-size: 1rem;
        line-height: 1.125rem;
    }

    .header p, .header a {
        font-size: 1rem;
        line-height: 1.125rem;
    }

    .header-content {
        padding: 1rem 0.75rem 1rem 0.75rem;
    }

    .header-info {
        width: 100%;
    }

    .header-links {
        width: 100%;
        text-align: right;
    }

    .link-wrapper button {
        font-size: 3.125rem;
    }


    .link-wrapper-design {
        top: 25%;
        left: 1rem;
    }

    .link-wrapper-architektur {
        bottom: 30%;
        right: 15%;
    }

    .footer-content {
        padding: 1rem 0.75rem 1rem 0.75rem;
        gap: 0;
    }

    .footer-info {
        flex-direction: column;
        gap: 0;
    }

    .footer button {
        font-size: 1rem;
    }
    
    .footer a img {
        height: 12px;
    }

    .overlay-content {
        height: 90svh;
        width: 95vw;
        padding: 1rem;
    }

    .overlay-content p {
        line-height: 1.375rem;
        font-size: 1rem;
    }

    .overlay-close {
        top: 1.5rem;
        right: 1.5rem;
        width: 1.25rem;
    }

    #overlayDesign h2,
    #overlayArchitektur h2 {
        font-size: 3.125rem;
    }

    .overlay-graduates-list {
        grid-template-columns: 1fr;
    }

    .overlay-graduate-link img {
        height: 2.625rem;
    }

    .header-content,
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-links {
        padding-right: 0;
    }
    
}
