/* ==========================================================================
   DESKTOP VERSION (MIT BOXEN & SCHWARZEM SCHRIFTRAHMEN)
   ========================================================================== */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
}

body { 
    color: #fff;
    background: #1e1203 url(img/bodybg.jpg) no-repeat center center fixed; 
    background-size: cover;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    display: flex;
}

/* Versteckt den Content initial auf allen Geräten */
.bodybox {	
    display: flex;
    width: 100%;
    opacity: 0;
    filter: blur(5px);
    transition: opacity 1.5s ease-in-out, filter 1.5s ease-in-out;
}

/* Wird nach 5 Sekunden per JS getriggert */
.bodybox.content-show {
    opacity: 1 !important;
    filter: blur(0px) !important;
}

/* Sidebar links fixiert */
.leftbox { 
    width: 260px; 
    min-width: 260px;
    background: rgba(0, 0, 0, 0.4); 
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed; 
    top: 0;
    left: 0;
    padding: 30px 20px;
    box-sizing: border-box;
    z-index: 2000;
}

.leftbox a.logo img { 
    max-width: 100%; 
    height: auto; 
}

#menu ul { list-style: none; padding: 0; margin: 0; }
#menu li a {
    display: block;	
    color: #fff;
    text-decoration: none;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(0,0,0,0.5);
    border-left: 4px solid transparent;
    transition: 0.3s ease;
}

#menu a:hover, #menu a.menu-current { 
    background: #555555; 
    color: #fff; 
    border-left: 4px solid #fff;
}

.mainbox { 
    flex: 1;
    margin-left: 260px; 
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.contentbox .inner { 
    padding: 100px 50px; 
    font-size: 20px;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
         2px  2px 10px rgba(0,0,0,0.8);
}

.contentbox .inner a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
         2px  2px 10px rgba(0,0,0,0.8);
    transition: 0.3s ease;
}

.contentbox .inner a:hover {
    color: #bbbbbb; 
    text-decoration: none;
}

.contentbox h1, .contentbox h2, .contentbox h3 {
    color: #ffffff !important; 
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-shadow: 
        -2px -2px 0 #000,  
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000,
         0px 0px 15px rgba(0,0,0,0.9);
}

.contentbox img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

/* ==========================================================================
   MOBILE VERSION
   ========================================================================== */

.menu-button { display: none; }

@media screen and (max-width: 768px) {
    
    html, body {
        overflow-x: hidden;
    }

    body {
        background-attachment: scroll; 
        flex-direction: column;
        display: block; 
    }

    .bodybox {
        flex-direction: column;
        display: block; 
    }

    .leftbox { 
        position: relative; 
        width: 100%; 
        height: auto; 
        min-width: 0;
        background: rgba(0, 0, 0, 0.6); 
        padding: 15px;
        z-index: 1000;
        text-align: center;
        box-sizing: border-box;
    }

    .leftbox a.logo img {
        max-height: 70px;
        width: auto;
    }
    
    .mainbox { 
        margin-left: 0 !important; 
        width: 100%;
        display: block;
    }
    
    .menu-button {
        display: block !important;
        position: fixed; 
        top: 15px; 
        right: 15px; 
        z-index: 11000;
        background: #555555; 
        padding: 12px 18px; 
        color: #fff; 
        font-weight: bold; 
        border: none; 
        border-radius: 4px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.6);
        cursor: pointer;
    }
    
    #menu {
        display: none; 
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100vh;
        background: rgba(20, 15, 10, 0.98); 
        z-index: 10000;
        padding: 100px 20px 60px 20px;
        box-sizing: border-box;
        overflow-y: auto;
    }

    #menu.is-open { 
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }
    
    #menu ul {
        width: 100%;
        padding: 0;
    }

    #menu li {
        width: 100%;
        list-style: none;
    }

    #menu li a {
        background: rgba(255,255,255,0.05);
        padding: 20px;
        text-align: center;
        font-size: 1.3rem;
        border-radius: 8px;
        border-bottom: 2px solid #555555;
        margin-bottom: 10px;
        border-left: none;
    }

    .contentbox h1, .contentbox h2, .contentbox h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto; 
        font-size: 1.8rem !important; 
        line-height: 1.2;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .contentbox img {
        width: 100% !important;
        height: auto !important;
        margin: 20px 0;
    }

    .contentbox .inner { 
        padding: 30px 15px; 
        font-size: 18px; 
        box-sizing: border-box;
    }
}

/* ==========================================================================
   CRONKA LOADER SYSTEM
   ========================================================================== */

#squirrel-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #23160a 0%, #0d0702 100%);
    z-index: 999999 !important; 
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

#squirrel-loader.loader-hide {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.loader-scene {
    position: relative;
    text-align: center;
    z-index: 10;
}

.big-squirrel-wrap {
    width: 260px;
    height: auto;
    margin: 0 auto 25px auto;
    animation: squirrelBounce 1.4s infinite ease-in-out;
}

.big-squirrel {
    width: 100%;
    height: auto;
    display: block !important;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.85));
}

.loader-text {
    color: #ffffff !important;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0,0,0,0.9);
    animation: textPulse 1.5s infinite alternate ease-in-out;
}

@keyframes squirrelBounce {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes textPulse {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.forest-light {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 180, 100, 0.08), transparent 65%);
    pointer-events: none;
    z-index: 1;
}

/* ==========================================================================
   MAUS CURSOR (🐿️)
   ========================================================================== */

#cursor-squirrel {
    position: fixed;
    top: 0;
    left: 0;
    font-size: 22px; 
    pointer-events: none; 
    z-index: 999998; 
    user-select: none;
    line-height: 1;
    margin: 0 !important;
    padding: 0 !important;
}

@media screen and (max-width: 768px) {
    #cursor-squirrel {
        display: none !important;
    }
}