@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

:root {
    --neo-black: #000000;
    --neo-white: #ffffff;
    --neo-accent: #00F5FF;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }

body, html {
    background: url('src/Background.png') no-repeat center center fixed;
    background-size: cover;
    height: 100%;
    width: 100%;
    overflow: hidden; 
    color: var(--neo-black);
}

.bg-shape { position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; opacity: 0.8; background-size: cover; background-position: center; background-repeat: no-repeat; pointer-events: none; }

.shape-circles { background-image: url('src/ShapesCircles.png'); animation: floatSubtle 20s infinite ease-in-out; }
.shape-lines { background-image: url('src/ShapesLines.png'); animation: driftSubtle 25s infinite linear; }
.shape-dots { background-image: url('src/ShapesDotts.png'); animation: floatSubtle 30s infinite ease-in-out reverse; }
.shape-rects { background-image: url('src/ShapesRectangles.png'); animation: driftSubtle 35s infinite linear reverse; }

@keyframes floatSubtle { 0%, 100% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-40px) rotate(5deg); } }
@keyframes driftSubtle { 0%, 100% { transform: translate(0px, 0px); } 50% { transform: translate(50px, 50px); } }

#app-container { position: relative; width: 100%; height: 100%; z-index: 10; }

.view-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    overflow-y: auto; overflow-x: hidden; 
    display: flex; justify-content: center; align-items: center;
    padding: 20px; 
    transition: transform 0.6s cubic-bezier(0.8, 0, 0.2, 1), opacity 0.3s ease;
}

/* --- HAUPTANSICHT --- */
#main-view { flex-direction: row; justify-content: center; align-items: center; gap: clamp(20px, 4vw, 50px); }
#main-view.slide-left { transform: translateX(-100vw) !important; opacity: 0 !important; pointer-events: none !important; visibility: hidden; }

/* TRICHTER BEREICH */
#funnel-wrapper { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; max-width: 400px; }
#funnel-info { margin-bottom: 2vh; min-height: 12vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 100%; }

#phase-title:not(:empty) { font-size: clamp(18px, 2.5vh, 32px); font-weight: 900; text-transform: uppercase; background: #000; color: #fff; padding: 8px 20px; box-shadow: 6px 6px 0px var(--neo-accent); max-width: 100%; word-wrap: break-word; }
#phase-desc:not(:empty) { font-size: clamp(12px, 1.5vh, 14px); font-weight: 700; margin-top: 1vh; max-width: 100%; background: rgba(255, 255, 255, 0.8); padding: 5px 10px; border: 3px solid #000; }

#funnel-image-stack { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: min(380px, 45vh); }

.funnel-segment { width: 100%; height: auto; cursor: pointer; transition: all 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28); filter: drop-shadow(8px 8px 0px #000); margin-top: -1%; }
#tofu-segment { margin-top: 0; z-index: 1; }
#mofu-segment { z-index: 2; }
#bofu-segment { z-index: 3; }
.funnel-segment:hover { transform: scale(1.06) translateY(-2%); filter: drop-shadow(15px 15px 0px #000); z-index: 10; }

/* --- VIDEO BUTTONS --- */
.video-types-column { display: flex; flex-direction: column; gap: 3vh; width: 100%; max-width: min(280px, 25vw); opacity: 0; visibility: hidden; transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
#video-types-left { transform: perspective(1200px) rotateY(-15deg) translateX(-30px); }
#video-types-right { transform: perspective(1200px) rotateY(15deg) translateX(30px); }
.video-types-column.visible { opacity: 1; visibility: visible; transform: perspective(1200px) rotateY(0deg) translateX(0); }

.video-btn {
    background: rgba(255, 255, 255, 0.9); border: clamp(2px, 0.3vw, 4px) solid #000;
    box-shadow: 6px 6px 0px #000; padding: clamp(10px, 2vh, 20px);
    font-size: clamp(11px, 1.2vw, 15px); font-weight: 900; text-transform: uppercase; cursor: pointer; transition: all 0.1s ease;
}
.video-btn:hover { transform: translate(-4px, -4px); box-shadow: 10px 10px 0px #000; background: var(--neo-accent); }

/* --- ZURÜCK BUTTON & DETAIL VIEW --- */
#back-btn { position: absolute; top: 20px; right: 20px; z-index: 100; background: #fff; border: 4px solid #000; box-shadow: 6px 6px 0px #000; padding: 10px 20px; font-weight: 900; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: all 0.1s ease; }
#back-btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0px #000; }
#back-btn.hidden { opacity: 0; visibility: hidden; }

#detail-view { transform: translateX(100vw); opacity: 0; align-items: flex-start; }
#detail-view.active { transform: translateX(0); opacity: 1; pointer-events: all; }

.detail-content { width: 100%; max-width: 1000px; padding: 40px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }

/* --- NEU: DETAIL VIEW HEADER STYLING --- */
#detail-header-wrapper {
    display: flex; flex-direction: column; align-items: center;
    margin-bottom: 40px; width: 100%; max-width: 700px;
}

#detail-title { 
    font-size: clamp(24px, 4vw, 45px); font-weight: 900; text-transform: uppercase; 
    background: #000; color: #fff; padding: 10px 30px; 
    box-shadow: 8px 8px 0px var(--neo-accent); 
    margin-bottom: 20px; /* Abstand zur Beschreibung */
    text-align: center;
}

#detail-desc {
    font-size: clamp(14px, 1.5vh, 16px); font-weight: 700; color: #000;
    background: rgba(255, 255, 255, 0.9); padding: 12px 20px;
    border: 4px solid #000; width: 100%; text-align: center;
}

.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(15px, 2vw, 30px); width: 100%; }
.info-block { background: rgba(255, 255, 255, 0.95); border: 4px solid #000; box-shadow: 8px 8px 0px #000; padding: 25px; width: 100%; }
.info-block h3 { color: #000; padding: 0; margin-bottom: 15px; font-weight: 900; text-transform: uppercase; font-size: clamp(16px, 1.5vw, 20px); border-bottom: 4px solid #000; }
.info-block li { font-weight: 700; border-left: 4px solid #000; padding-left: 10px; margin-bottom: 10px; list-style: none; font-size: clamp(12px, 1vw, 14px);}
.info-block p { font-weight: 600; line-height: 1.6; font-size: clamp(12px, 1vw, 14px); }

/* =========================================
   MOBILE ANSICHT
   ========================================= */
@media (max-width: 1000px) {
    .view-container { position: absolute; height: 100%; align-items: flex-start; padding: 80px 20px 40px 20px; }
    #main-view { flex-direction: column; justify-content: flex-start; align-items: center; gap: 30px; width: 100%; }
    #funnel-wrapper { order: 1; margin: 0 auto; }
    #funnel-image-stack { max-width: min(380px, 80vw); }
    #video-types-left { order: 2; max-width: 100%; align-items: center; transform: translateY(30px); }
    .video-types-column.visible { transform: translateY(0); }
    #video-types-right { display: none; }
    
    .detail-content { padding: 0; }
    
    /* Mobil Titel und Beschreibung leicht verkleinern */
    #detail-title { font-size: clamp(20px, 5vw, 32px); padding: 8px 20px; margin-bottom: 15px; }
    #detail-desc { font-size: 14px; padding: 10px; border-width: 3px; }
    
    .detail-grid { grid-template-columns: 1fr; }
    #back-btn { top: 15px; right: 15px; padding: 8px 16px; }
}