
:root {
    --color-yellow: #FFFF00;
    --color-cyan:   #C0FFFF;
    --color-pink:   #FF4BE8;
    --color-white:  #FFFFFF;
    --color-black:  #000000;
}

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


@font-face {
    font-family: 'PPRadioGrotesk';
    src: url('./fonts/PPRadioGrotesk-Black.woff2') format('woff2'),
         url('./fonts/PPRadioGrotesk-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* --- BASIS-STYLES --- */

body {
    overscroll-behavior-y: none;
    overflow-x: hidden;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'PPRadioGrotesk', sans-serif;
     -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1; 
}

#ui-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

/* --- DER SAFARI-SICHERE TICKER --- */
.marquee-container {
width: 100%;
background-color: var(--color-pink);
color: var(--color-black);
padding: 12px 0;
overflow: hidden;
white-space: nowrap;
pointer-events: auto;
}

.marquee-scroll {
    display: flex;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    
    /* Geschwindigkeit: 20s (passe die Zahl an, um es schneller/langsamer zu machen) */
    animation: scroll-marquee 40s linear infinite; 
    
    /* Safari Hardware-Fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;

    font-size: 1.125rem;
font-weight: 900;
text-transform: uppercase;
}

.marquee-content sup {
font-size: 1.125rem;
top: 6px;
position: relative;
line-height: 0;
}

@keyframes scroll-marquee {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100% {
        /* Fährt exakt um die eigene Breite nach links, dann startet der Loop unsichtbar neu */
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
    }
}

/* --- INFO PANELS --- */

.info-container {
    display: flex;
    flex-direction: row; 
    width: 100%;
    align-items: flex-start; 
}

.info-panel {
    flex: 1; 
    display: flex;
    flex-direction: column;
    min-width: 0; 
}

.panel-design { background-color: var(--color-cyan); }
.panel-architektur { background-color: var(--color-yellow); }

.panel-header {
    padding: 20px 40px;
    cursor: pointer;
    text-align: center;
    user-select: none; 
}

.panel-header h2 {
    margin: 0;
    font-size: 3rem; 
    font-weight: 900;
    word-break: break-word; 
}

.panel-content-wrapper {
    display: grid;
    grid-template-rows: 0fr; 
    transition: grid-template-rows 0.4s ease-out;
}

.info-panel.is-open .panel-content-wrapper {
    grid-template-rows: 1fr; 
}

.panel-content {
    overflow: hidden; 
}

.panel-content p {
    margin: 0;
    padding: 20px 30px 30px 30px;
    font-size: 1.2rem;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    max-width: 760px
}

.close-btn {
    display: block;
    margin-left: auto; 
    margin-right: 40px;
    margin-bottom: 40px;
    width: 40px;
    height: 35px;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease;
    background-image: url('./assets/close-icon.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: none;
    color: inherit;
}

.close-btn:hover {
    opacity: 0.5; 
}

/* --- IMPRESSUM OVERLAY --- */

#impressum-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-cyan);
    z-index: 99999;
    overflow-y: auto;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#impressum-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.impressum-header {
    display: flex;
    justify-content: flex-end;
    padding: 20px 40px; 
}

#close-impressum-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    font-weight: 900;
    font-family: inherit;
    color: var(--color-black);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

#close-impressum-btn:hover {
    opacity: 0.5;
}

.impressum-content {
    padding: 0 40px 40px 40px;
    color: var(--color-black);
}

.impressum-content h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-top: 0;
}

.impressum-content p {
    font-size: 1.2rem;
    line-height: 1.5;
    max-width: 760px;
}

.impressum-content a {
    color: var(--color-black);
    text-decoration: underline;
}

body.no-scroll {
    overflow: hidden; 
}

/* --- FOOTER --- */

#footer-layer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background-color: var(--color-yellow);
}

.footer-container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 12px 40px;
}

.footer-link {
    color: var(--color-black);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 900;
    text-transform: uppercase;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
    opacity: 0.5;
}




/* --- START BUTTON (GYROSKOP-ERLAUBNIS) --- */
/* --- LADEBILDSCHIRM HAUPT-CONTAINER --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-black); 
    color: var(--color-black); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Garantiert über allem anderen */
    transition: opacity 0.6s ease, visibility 0.6s ease;
    background-image: url('./assets/loader-background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Klasse, die per JS hinzugefügt wird, um den Loader nach Start sanft auszublenden */
.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* --- INHALT & TEXT --- */
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-text {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
    animation: pulse 1.5s infinite alternate; /* Ein leichtes Pulsieren */
    text-align: center;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* --- START BUTTON (GYROSKOP-ERLAUBNIS) --- */
#start-experience-btn {
    background-color: var(--color-cyan); /* Oder Pink, wie du magst */
    color: var(--color-black);
    border: none;
    padding: 15px 40px;
    font-size: 1.5rem;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#start-experience-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}




/* --- MOBILE BREAKPOINT --- */

@media (max-width: 768px) {

    .marquee-content {
        font-size: 1rem;
    }


    .info-container {
        flex-direction: column; 
        align-items: stretch;
    }
    
    .panel-content p {
        max-height: calc(100vh - 220px); 
    }

    .panel-header {
        padding: 13px 16px;
    }

    .panel-header h2 {
        font-size: 2.5rem;
        text-align: left;
    }

    .panel-content p {
        padding: 0 16px 16px 16px;
        font-size: 1rem;
    }

    .close-btn {
        margin-right: 16px;
        margin-bottom: 16px;
        width: 24px;
        height: 21px;
    }

    .impressum-header {
        padding: 20px;
    }

    .impressum-content {
        padding: 0 20px 40px 20px;
    }

    .impressum-content h2 {
        font-size: 2rem;
    }

    .footer-container {
        padding: 12px 15px;
    }
    
    .footer-link {
        font-size: 0.75rem;
    }


}


