/* ==========================================
   GRUND-DESIGN & ATMOSPHÄRE
   ========================================== */
body {
    margin: 0;
    background-color: #050505;
    
    /* HINTERGRUNDBILD MIT DUNKLEM SCHLEIER (SOFORT SICHTBAR) */
    background-image: linear-gradient(rgba(5, 5, 5, 0.85), rgba(5, 5, 5, 0.85)), url('hintergrund.jpg');
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    
    color: #fff;
    font-family: 'Courier New', monospace;
    overflow-x: hidden;
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    background-color: transparent;
}

.enter-text {
    font-size: 22px;
    letter-spacing: 6px;
    color: #888;
    font-weight: bold;
    transition: color 0.3s, text-shadow 0.3s;
}

#splash-screen:hover .enter-text {
    color: #fff;
    text-shadow: 0 0 12px #fff;
}

.light-flash {
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
}

.flash-active .light-flash {
    animation: flashAnim 1.5s ease-out forwards;
}

@keyframes flashAnim {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* ==========================================
   3D WÜRFEL (DESKTOP STANDARD)
   ========================================== */
#scene {
    width: 200px;
    height: 200px;
    perspective: 600px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10;
}

#scene.minimized {
    top: 50px;
    left: calc(100% - 70px);
    transform: scale(0.4);
}

#cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.spinning {
    animation: spin 20s infinite linear;
}

#scene.minimized #cube {
    animation-play-state: paused;
}

@keyframes spin {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(20, 20, 20, 0.85);
    border: 2px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, text-shadow 0.3s;
    backface-visibility: visible;
}

.face:hover {
    background: rgba(40, 40, 40, 0.95);
    border-color: #fff;
    text-shadow: 0 0 8px #fff;
}

.front  { transform: rotateY(0deg) translateZ(100px); }
.back   { transform: rotateY(180deg) translateZ(100px); }
.right  { transform: rotateY(90deg) translateZ(100px); }
.left   { transform: rotateY(-90deg) translateZ(100px); }
.top    { transform: rotateX(90deg) translateZ(100px); }
.bottom { transform: rotateX(-90deg) translateZ(100px); }

/* ==========================================
   INHALT & ANIMATIONEN
   ========================================== */
#content-area {
    padding: 140px 40px 120px 40px;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#content-area.visible { 
    opacity: 1; 
}

h1 {
    font-size: 32px;
    letter-spacing: 3px;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

p {
    line-height: 1.6;
    color: #ccc;
}

.pulse-btn {
    display: block;
    margin: 80px auto 20px auto;
    background: transparent;
    color: #aaa;
    border: 1px solid #444;
    padding: 15px 30px;
    cursor: pointer;
    letter-spacing: 2px;
    font-family: inherit;
    animation: pulse 2s infinite;
    transition: color 0.3s, border-color 0.3s;
}

.pulse-btn:hover { 
    color: #fff; 
    border-color: #fff;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2); }
    70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.hidden { display: none !important; }

/* ==========================================
   FUSSZEILE (FOOTER)
   ========================================== */
#main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.85);
    border-top: 1px solid #222;
    padding: 15px 0;
    z-index: 100;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    letter-spacing: 2px;
}

.footer-link {
    color: #888;
    cursor: pointer;
    transition: color 0.3s, text-shadow 0.3s;
    text-transform: uppercase;
}

.footer-link:hover {
    color: #fff;
    text-shadow: 0 0 5px #fff;
}

.footer-divider {
    color: #333;
    user-select: none;
}

/* ==========================================
   INTERAKTIVE BILDERGALERIE (HOVER-EFFECTS)
   ========================================== */
.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.media-item {
    position: relative;
    border: 1px solid #222;
    background: #111;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    transition: border-color 0.4s;
}

.media-item:hover {
    border-color: #fff;
}

.media-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.media-item:hover img {
    transform: scale(1.1);
}

.media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(5, 5, 5, 0.95));
    padding: 20px 15px 15px 15px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.media-item:hover .media-overlay {
    opacity: 1;
    transform: translateY(0);
}

.media-title {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin: 0 0 5px 0;
    letter-spacing: 1px;
}

.media-desc {
    font-size: 12px;
    color: #bbb;
    margin: 0;
    line-height: 1.4;
}

/* ==========================================
   LIGHTBOX (BILD-GROSSANSICHT)
   ========================================== */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

#lightbox img {
    max-width: 90%;
    max-height: 85%;
    border: 2px solid #333;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #888;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #fff;
}

/* ==========================================
   RESPONSIVE DESIGN (Tablets & Handys)
   ========================================== */
@media (max-width: 1024px) {
    #scene { width: 160px; height: 160px; }
    .face { width: 160px; height: 160px; }
    .front  { transform: rotateY(0deg) translateZ(80px); }
    .back   { transform: rotateY(180deg) translateZ(80px); }
    .right  { transform: rotateY(90deg) translateZ(80px); }
    .left   { transform: rotateY(-90deg) translateZ(80px); }
    .top    { transform: rotateX(90deg) translateZ(80px); }
    .bottom { transform: rotateX(-90deg) translateZ(80px); }
    #content-area { padding: 120px 20px 100px 20px; }
}

@media (max-width: 768px) {
    #scene { width: 130px; height: 130px; perspective: 400px; }
    .face { width: 130px; height: 130px; font-size: 14px; }
    .front  { transform: rotateY(0deg) translateZ(65px); }
    .back   { transform: rotateY(180deg) translateZ(65px); }
    .right  { transform: rotateY(90deg) translateZ(65px); }
    .left   { transform: rotateY(-90deg) translateZ(65px); }
    .top    { transform: rotateX(90deg) translateZ(65px); }
    .bottom { transform: rotateX(-90deg) translateZ(65px); }
    #scene.minimized { top: 40px; left: calc(100% - 45px); transform: scale(0.25); opacity: 0.7; }
    #content-area { padding: 90px 15px 100px 15px; }
    h1 { font-size: 24px; }
    .footer-nav { flex-wrap: wrap; gap: 10px 15px; padding: 0 10px; }
    .footer-divider { display: none; }
}