/* ==========================================================================
   1. GRUNDEINSTELLUNGEN & CSS-VARIABLEN
   ========================================================================== */
:root {
    --Papier: #E8E8E8;
    --Hintergrund: #000000;
    --Schatten-Farbe: rgba(0, 0, 0, 0.45);
    --Schatten-Farbe-Inhalt: rgba(0, 0, 0, 0.25);
    --Eselsohr-Farbe: var(--Papier);

    --font-script: 'Pinyon Script', cursive;
    --font-mono: 'Helvetica', monospace;
    --tab-radius: 35px;
    --inhalt-radius-gross: 80px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
    background-color: rgb(215, 215, 215);
    color: var(--Hintergrund);
    font-family: var(--font-mono);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    z-index: -1;
}

.page-wrapper { flex: 1 0 auto; display: flex; flex-direction: column; }
.page-header { padding: 2rem 2rem 1rem 2rem; color: var(--Papier); }

/* ==========================================================================
   2. ORDNER-SYSTEM
   ========================================================================== */
.ordner-system {
    flex-grow: 1;
    position: relative;
    margin-top: -1.5rem;
}

.no-transition { transition: none !important; }

.ordner-tabs {
    position: relative;
    height: 30px;
     left: 3rem;
}
.tab {
   
    position: absolute;
    top: 1.6rem;
    border: none;
    min-width: 350px;
    height: 75px;
    padding: 0.5rem 3rem 1.5rem 3rem;
    font-family: var(--font-script);
    font-size: 3.2rem;
    font-weight: 100;
    background-color: var(--Papier);
    border-top-left-radius: var(--tab-radius);
    border-top-right-radius: var(--tab-radius);
    cursor: pointer;
    transition: transform 0.3s ease-out, box-shadow 0.4s ease-out;
    color: transparent;
    -webkit-text-stroke: 0.5px var(--Hintergrund);
    text-stroke: 0.5px var(--Hintergrund);
    box-shadow: 0 -18px 15px -10px rgba(0, 0, 0, 0.2);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    filter: blur(0.3px);
   
}

.tab.active { box-shadow: 0 -18px 15px -10px rgba(0, 0, 0, 0.2); }

.tab::before, .tab::after {
    content: '';
    position: absolute;
  
    width: 35px;
    height: 45px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    box-shadow: 0 -18px 15px -10px rgba(0, 0, 0, 0.2);
    background-color: rgb(225, 225, 225);
}
.tab::before {
    top: calc(var(--tab-radius) - 4.2px);
    left: 100%;
    -webkit-mask-image: radial-gradient(circle 35px at top right, transparent 35px, black 35px);
    mask-image: radial-gradient(circle 35px at top right, transparent 35px, black 35px);
}
.tab::after {
    top: calc(var(--tab-radius) - 4.2px);
    right: 100%;
    -webkit-mask-image: radial-gradient(circle 35px at top left, transparent 35px, black 35px);
    mask-image: radial-gradient(circle 35px at top left, transparent 35px, black 35px);
}
.active.tab::before, .active.tab::after { background-color: var(--Papier); }

.tab[data-tab-target="startseite"] { left: 0; background-color: rgb(225, 225, 225); }
.tab[data-tab-target="projekte"] { left: 260px; background-color: rgb(225, 225, 225) }
.tab[data-tab-target="about"] { left: 520px; background-color: rgb(225, 225, 225) }
.tab[data-tab-target="info-toggle-button"] { left: 0px; background-color: rgb(225, 225, 225) }

.tab:hover { transform: translateY(-8px); }
.tab.tab.active { background-color: var(--Papier); }

.ordner-inhalt-stapel {
    position: absolute;
    top: calc(2rem + 60px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    border-top-right-radius: var(--inhalt-radius-gross);
    transition: transform 0.3s ease-out;
    box-shadow: 0 -18px 15px -10px rgba(0, 0, 0, 0.2);
}

.ordner-inhalt {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--Papier);
    padding: 0.8rem;
    border-top-right-radius: var(--inhalt-radius-gross);
    opacity: 0;
    visibility: hidden;
    
    overflow-x: hidden;
    overflow-y: auto;
}

.ordner-inhalt.active {
    opacity: 1;
    visibility: visible;
}
.ordner-inhalt[data-content="startseite"] { border-top-left-radius: 0; }
.ordner-inhalt-stapel.is-lifted { transform: translateY(-8px); }

/* ==========================================================================
   ALLGEMEINE TEXTBLÖCKE & HINTERGRUND
   ========================================================================== */
.text-block {
    max-width: 800px;
    margin: 8rem auto;
    line-height: 1.6;
    margin-top: 8rem;
    position: relative;
    z-index: 2;
        background: transparent;
        font-family: "Rounded", monospace;
        font-style: thin;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    filter: blur(0.4px);
    font-size: 0.8rem;
}

.logo {
    display: none;
}

.unterschrift-bg {
    position: fixed;
    top: 0px;
    right: 5%;
    width: 220px;
    height: auto;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    filter: blur(0.6px);
}

/* ==========================================================================
   PROJEKT-LAYOUT (FILMSTREIFEN)
   ========================================================================== */
.ordner-inhalt[data-content="projekte"] {
    padding: 0;
    overflow: hidden;
    border-top-right-radius: inherit;
}

.projekte-container {
    position: relative; 
    width: 100%;
    height: 100%;
    background-color: #333;
    border-top-right-radius: inherit;
    
}

.ordner-inhalt[data-content="projekte"].active .projekte-container {
    cursor: none;
}

.projekte-container.info-overlay-active {
    cursor: default;
}

.projekt-slides-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.projekt-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0; visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    z-index: 1;
}
.projekt-slide.active {
    opacity: 1; visibility: visible;
    z-index: 2;
}

.media-filmstrip {
    display: flex;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    transform: translateX(0);
}

.media-filmstrip.transitioning {
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.media-filmstrip > * {
    flex-shrink: 0;
    height: 100%;
    width: auto;
    filter: blur(12px);
    transition: filter 0.6s ease;
}

.media-filmstrip > .media-active {
    filter: none;
}

/* === UI-OVERLAYS === */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--Papier);
    font-size: 2.2rem;
    font-family: 'Courier Prime', monospace;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%);
    text-shadow: #333 0px 0px 2px, #333 0px 0px 4px, #333 0px 0px 6px;
}

body.touch-device .custom-cursor {
    display: none !important;
}

.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5rem;
    background-color: var(--Papier);
    z-index: 6;
}

.combined-overlay {
    position: absolute;
    top: 1.5rem;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    pointer-events: none;
    background-image:
        radial-gradient(ellipse 70% 85% at center, transparent 65%, rgba(232, 232, 232, 0.5) 100%),
        linear-gradient(to bottom, rgba(232, 232, 232, 1) 0%, rgba(232, 232, 232, 0.95) 10%, rgba(232, 232, 232, 0.9) 15%, rgba(232, 232, 232, 0.2) 70%, rgba(232, 232, 232, 0.1) 80%, rgba(232, 232, 232, 0.05) 90%, rgba(232, 232, 232, 0) 100%),
        linear-gradient(to top, rgba(232, 232, 232, 1) 0%, rgba(232, 232, 232, 0.95) 10%, rgba(232, 232, 232, 0.9) 15%, rgba(232, 232, 232, 0.2) 70%, rgba(232, 232, 232, 0.1) 80%, rgba(232, 232, 232, 0.05) 90%, rgba(232, 232, 232, 0) 100%);
    background-position: center, top, bottom;
    background-size: 100% 100%, 100% 6rem, 100% 6rem;
    background-repeat: no-repeat;
}

.projekt-navigation-links {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.projekte-container.info-overlay-active .projekt-navigation-links {
    opacity: 0;
    pointer-events: none;
}

.projekt-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--Papier);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.4;
    filter: blur(1px);
    box-shadow: 0px 3px 9px #898989, 3px 0px 9px #898989, -3px 0px 9px #898989, 0px -3px 9px #898989;
}

.projekt-nav-dot:hover {
    opacity: 1;
    transform: scale(1.1);
}

.projekt-nav-dot.active { 
    opacity: 1; 
    transform: scale(1.2); 
    filter: none;
    box-shadow: 0px 3px 9px #898989, 3px 0px 9px #898989, -3px 0px 9px #898989, 0px -3px 9px #898989;
    filter: blur(0.6px);
}

.pfeil {
    display: none;
}

/* ==========================================================================
   INFO-OVERLAY STYLING (FINAL WRAPPER ARCHITECTURE)
   ========================================================================== */
.info-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    z-index: 20;
    pointer-events: none; /* Wrapper ist unsichtbar für Klicks */
    /* NUR DER WRAPPER WIRD ANIMIERT */
    transform: translateY(calc(100% - 1.6rem));
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
    cursor: pointer;
}

.info-paper,
.info-overlay,
.info-toggle-button {
    position: absolute;
    pointer-events: auto; /* Kinder sind wieder klickbar */
}

.info-paper {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    cursor: pointer;
    background-color: var(--Papier);
    border-top-left-radius: var(--inhalt-radius-gross);
    border-top-right-radius: var(--inhalt-radius-gross);
    box-shadow: 0px 3px 9px #898989, 3px 0px 9px #898989, -3px 0px 9px #898989, 0px -3px 9px #898989;
}

.info-overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 25;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0; /* Inhalt ist nur im offenen Zustand sichtbar */
    transition: opacity 0.3s ease-in-out 0.1s; /* Leichte Verzögerung */
    
}

.info-toggle-button {
    top: 7px; /* Klebt am oberen Rand des Wrappers */
    left: 50%;
    transform: translateX(-50%) translateY(-100%); /* Platziert ihn genau über der Kante */
    z-index: 30;

    height: 50px;
    background-color: var(--Papier);
    color: var(--Hintergrund);
    font-family: "Rounded", monospace;
    font-size: 0.8rem;
    filter: blur(0.4px);
    border: none;
    padding: 0.8rem 2.5rem;
    cursor: pointer;
    white-space: nowrap;
    display: grid;
    place-items: center;
    border-top-left-radius: var(--tab-radius);
    border-top-right-radius: var(--tab-radius);
    box-shadow: 0 -11px 15px -3px #898989;
}

.info-toggle-button::before, .info-toggle-button::after {
    content: '';
    position: absolute;
    width: var(--tab-radius);
    height: 30px;
    bottom: 5px;
    background-color: var(--Papier);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    box-shadow: 0px -3px 9px #898989;
}

.info-toggle-button::before {
    left: 98%;
    -webkit-mask-image: radial-gradient(circle var(--tab-radius) at top right, transparent var(--tab-radius), black calc(var(--tab-radius) + 1px));
}

.info-toggle-button::after {
    right: 98%;
    -webkit-mask-image: radial-gradient(circle var(--tab-radius) at top left, transparent var(--tab-radius), black calc(var(--tab-radius) + 1px));
}

.info-toggle-button span { grid-area: 1 / 1; transition: opacity 0.3s ease-in-out; }
.info-toggle-button .text-close { opacity: 0; }

/* GEÖFFNETER ZUSTAND: NUR DER WRAPPER WIRD BEWEGT */
.projekte-container.info-overlay-active .info-wrapper {
    transform: translateY(0);
}

.projekte-container.info-overlay-active .info-overlay {
    opacity: 1;
    pointer-events: auto; /* Inhalt wird klickbar */
}

.projekte-container.info-overlay-active .info-toggle-button .text-information { opacity: 0; }
.projekte-container.info-overlay-active .info-toggle-button .text-close { opacity: 1; }

.info-overlay-content { 
    display: flex; gap: 2rem;
     align-items: left; text-align: left; 
      color: var(--Hintergrund);
       max-width: 900px;
        filter: blur(0.4px);
        font-family: "Rounded", monospace;
        font-size: 0.8rem;
            width: 100%; /* <-- DIESE ZEILE IST NEU */
}

/* ==========================================================================
   GIF HINTERGRUND STYLING
   ========================================================================== */
.gif-background-container {
    /* Positionierung: Zentriert und hinter dem Text */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Liegt hinter dem Text (.text-block z-index: 2) */
    
    /* Größe & Aussehen */
      width: 100%;  /* Größer als der Bildschirm */
    height: 800px; /* Höhe nach Wunsch anpassen */
    
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Macht das GIF "durchklickbar" */
    opacity: 0.1; /* Macht das GIF dezent und durchscheinend */
    filter: blur(4px);
     overflow: hidden; /* Wichtig: Schneidet die Ränder des gezoomten Bildes ab */
}


.gif-background-container img {
     width: auto; /* Behält das Seitenverhältnis bei */
    height: 100%; /* << HIER STEUERST DU DIE GRÖSSE! (z.B. 100%, 150%, 200%) */
    object-fit: contain; /* Stellt sicher, dass das GIF komplett sichtbar ist */
}

    
    
.info-overlay-title-container { margin-bottom: 0; flex-shrink: 0; max-width: 40%; margin-left: auto; margin-right: auto; }
.info-overlay-title-container img { width: 60%; height: auto; }
.info-overlay-content p { font-family: "Rounded", monospace; font-size: 0.8rem; line-height: 1.6; }


/* ==========================================================================
   MOBILE ANPASSUNGEN (FINAL WRAPPER ARCHITECTURE)
   ========================================================================== */
@media (max-width: 992px) {
     html, body {
        overflow: hidden;
        overscroll-behavior: none;
    }
    .ordner-inhalt[data-content="startseite"].active,
    .ordner-inhalt[data-content="about"].active {
        overflow: hidden;
         overscroll-behavior: contain;

        /* Deaktiviert Touch-Gesten wie Wischen und Zoomen komplett */
        touch-action: none;
    }

    .tab, .info-toggle-button, .info-overlay-content, .text-block { filter: none; }
    .ordner-system { margin-top: -2.3rem; }
    .tab { -webkit-tap-highlight-color: transparent; top: -0vw; min-width: 29vw; height: 8vw; padding: 1vw 2.5vw 1.5vw 2.5vw; border-top-left-radius: 4vw; border-top-right-radius: 4vw; font-size: clamp(1.6rem, 4vw, 2.8rem); }
	.tab:hover { transform: none; }
    .tab[data-tab-target="projekte"] { left: 21.6vw; }
    .tab[data-tab-target="about"] { left: 43.2vw; }
    .tab::before, .tab::after { width: 2.9vw; height: 3.75vw; top: 4.12vw; }
    .tab::before { -webkit-mask-image: radial-gradient(circle 2.9vw at top right, transparent 2.9vw, black 2.9vw); }
    .tab::after { -webkit-mask-image: radial-gradient(circle 2.9vw at top left, transparent 2.9vw, black 2.9vw); }
    .ordner-inhalt-stapel { top: 7vw; }
    .tab, .tab.active, .tab::before, .tab::after, .ordner-inhalt-stapel { box-shadow: 0 -2vw 1.5vw -1.2vw rgba(0, 0, 0, 0.2); }
    .ordner-inhalt-stapel.is-lifted { transform: none; }
    .ordner-inhalt, .ordner-inhalt-stapel { border-top-right-radius: 6.6vw; }
    .text-block { margin-top: 3rem; padding: 0 1rem; }
    .unterschrift-bg { display: none; }
    .projekt-navigation-links { left: 0.5rem; width: 30px; }
    .projekt-nav-dot { width: 10px; height: 10px; -webkit-tap-highlight-color: transparent;}
    
    .info-wrapper {
        transform: translateY(calc(100% - 1rem)); 
      
    }
    
    .info-paper {
        border-top-left-radius: 6.6vw;
        border-top-right-radius: 6.6vw;
        overflow: hidden;
         overscroll-behavior: contain;

        /* Deaktiviert Touch-Gesten wie Wischen und Zoomen komplett */
        touch-action: none;
    }
    
    .info-toggle-button {
        height: 25px;
        padding: 0.6rem 1.8rem;
        font-size: 0.6rem;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        box-shadow: 0 -12px 15px -3px #898989;
         -webkit-tap-highlight-color: transparent;
         
    }

    

    .info-toggle-button::before, .info-toggle-button::after {
        width: 20px;
        height: 20px;
        bottom: -2px;
        box-shadow: 0 -15px 15px -3px #898989; 
        
       
    }
    .info-toggle-button::before { -webkit-mask-image: radial-gradient(circle 20px at top right, transparent 20px, black 20px); }
    .info-toggle-button::after { -webkit-mask-image: radial-gradient(circle 20px at top left, transparent 20px, black 20px); }

    .info-overlay-content { flex-direction: column; gap: 1rem; text-align: left; align-items: left;  overflow: hidden;
         }
    .info-overlay-title-container { max-width: 300px; }
    .info-overlay-content p { font-size: 0.9rem; text-align: center;  }

       
  
}




