:root {
    --blur-distance: 5px;
    --flaetchen-color-com: #bcff03;
    --flaetchen-color-net: #e5007e;
    --flaetchen-color-bg: #111111;
}

/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/outfit/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/outfit/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body, html {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    padding: 0;
    height: 100%;
    background-color: var(--flaetchen-color-bg); /* Einheitlicher Hintergrund */
    overflow: hidden; /* Verhindert Scrollbalken */
    font-weight: 200;
}

a {
    color: var(--flaetchen-color-com);
    text-decoration: none;
}

/* Hauptcontainer mit zwei Bereichen */
.main-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Linke Spalte (Info) */
.info-column {
    width: 25%; /* Feste Breite für die linke Spalte */
    background-color: var(--flaetchen-color-bg); /* Dunkler Hintergrund */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

.info-column .info-logo {
    width: 180px;
    margin-bottom: 20px;
}

.menu-logo{
    width: 180px;
}

.info-content {
    margin: 15px 0;
    width: 80%;
    max-width: 100%;
}

.info-column h1 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-column p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Animierter Bereich */
.container {
    display: flex;
    flex: 1; /* Nimmt den restlichen Platz ein */
    overflow: hidden;
    position: relative; /* Basis für absolute Positionierung der Logos */
}

.logo {
    width: 300px;
    max-width: 90%;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.column {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    filter: grayscale(1) brightness(0.5) blur(var(--blur-distance));
    transition: filter 0.5s ease-in-out, flex 0.5s ease-in-out;
    margin-left: calc(-1 * var(--blur-distance));
    margin-right: calc(-1 * var(--blur-distance));
    width: calc(100% + 2 * var(--blur-distance));
    height: 100%;
}

.column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: none;
    transition: filter 0.5s ease-in-out;
}

.column#unit1 {
    background-image: url('../img/flaetchen.net-bg7.webp');
}

.column#unit2 {
    background-image: url('../img/flaetchen.net-bg3.webp');
}

.column#unit3 {
    background-image: url('../img/flaetchen.net-bg8.webp');
}

/* Basislogos */
.base-logo {
    position: absolute;
    bottom: 30px; /* Position im unteren Bereich */
    width: 180px; /* Logo-Größe */
    opacity: 1; /* Sichtbar im Standardzustand */
    z-index: 5; /* Über den Spalten sichtbar */
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none; /* Keine Interaktion möglich */
}

/* Positionierung der Basislogos relativ zur Spalte */
.base-logo[data-column="unit1"] {
    left: 16.66%; /* Links über der ersten Spalte */
    transform: translateX(-50%);
}

.base-logo[data-column="unit2"] {
    left: 50%; /* Mittig über der zweiten Spalte */
    transform: translateX(-50%);
}

.base-logo[data-column="unit3"] {
    left: 83.33%; /* Rechts über der dritten Spalte */
    transform: translateX(-50%);
}

/* Hover-Effekt: Basislogos ausblenden */
.column:hover ~ .base-logo[data-column="unit1"],
.column:hover ~ .base-logo[data-column="unit2"],
.column:hover ~ .base-logo[data-column="unit3"] {
    opacity: 0; /* Logo verschwindet */   
}

/* Hover-Effekt für Spalten */
.container:hover .column {
    filter: grayscale(1) brightness(0.5) blur(var(--blur-distance));
    flex: 1;
}

.container .column:hover {
    flex: 3;
    filter: grayscale(0) brightness(1) blur(0);
    z-index: 1;
}

/* Inhalt der Spalten */
.content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.description {
    font-size: 1.4rem;
    margin: 15px 0;
    max-width: 620px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.column:hover .content {
    transform: translateY(0);
    opacity: 1;
}

/* Footer */
.footer {
    position: absolute;
    text-align: center;
    bottom: 35px;
    font-size: 0.8em;
    font-weight: 300;
}
.footer span{
    margin:0px 10px;
}

.container-mobil{
    display:none;
}

.desktop-view {
    display: flex;
}

.mobile-view {
    display: none;
     height: auto; /* Inhalt wächst je nach Höhe */
}



/* Responsive Design: Mobile Ansicht */





@media (max-width: 1024px) {
    
    *,
    *::before,
    *::after {
    box-sizing: border-box;
    }
    
     html, body {
        overflow: auto; /* Scrollen erlauben */
          overflow-x: hidden;
    }
    
    .main-container {
        flex-direction: column; /* Spalten vertikal stapeln */
        overflow: auto; /* Scrollen zulassen, falls nötig */
        height: auto;
         text-align: left; /* Links ausrichten */
    }
    
    .info-column {
        width: 100%; /* Info-Spalte füllt gesamte Breite */
        display: block;
        max-width: 100vw;
        box-shadow: none; /* Schatten entfernen */
        margin-bottom: 30px; /* Abstand zur nächsten Spalte */
        text-align: left;
        padding: 95px 40px 15px 40px;
        z-index:999;
    }
    .info-content{
        width: 100%;
         text-align: left; /* Links ausrichten */
    }
    
    .desktop-view {
        display: none; /* Desktop-Version ausblenden */
    }

    .mobile-view {
        display: block; /* Mobile-Version einblenden */

    }

    .mobile-column {
        margin-bottom: 20px;
        text-align: left; /* Links ausrichten */
        max-width: 80%;
        padding: 25px 0px 20px 40px;
    }

    .mobile-logo {
        width: 190px;
        margin-bottom: 10px;
    }

    .mobile-description {
        font-size: 1rem;
        margin-bottom: 10px;
        color: #fff;
    }
    .footer{
       display:none;
    }
    
}

/* Vollbild-Overlay */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dunkler Hintergrund */
    color: #fff;
    opacity: 0; /* Start: unsichtbar */
    visibility: hidden;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.fullscreen-overlay.show {
    opacity: 1; /* Sichtbar */
    visibility: visible;
}

/* Overlay-Inhalt */
.overlay-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 50px auto 0; /* Start weiter unten */
    background-color: #111;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow-y: auto;
    max-height: 80vh; /* Inhalt scrollbar bei viel Text */
    transform: translateY(50px); /* Startposition unten */
    opacity: 0; /* Start: unsichtbar */
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Sichtbar mit sanfter Bewegung */
.fullscreen-overlay.show .overlay-content {
    transform: translateY(0); /* Nach oben bewegen */
    opacity: 1; /* Sichtbar */
}

/* Schließen-Button */
.overlay-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--flaetchen-color-com);
    cursor: pointer;
    transition: transform 0.5s ease;
}

.overlay-close:hover {
    transform: rotate(90deg);
}

/* Preloader Container */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #111; /* Hintergrundfarbe des Preloaders */
    z-index: 9999; /* Ganz oben */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

/* Lade-Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3); /* Transparente Farbe */
    border-top-color: var(--flaetchen-color-com); /* Akzentfarbe */
    border-radius: 50%;
    animation: spin 1s linear infinite; /* Dreh-Animation */
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Preloader ausblenden */
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
