/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* BODY MIT RESPONSIVEM HINTERGRUNDBILD */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('asepro.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* BURGER BUTTON - OBEN RECHTS! */
.burgerBtn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 900;
}

.burgerBtn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.burgerIcon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
}

.burgerIcon span {
    display: block;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* BACKDROP */
.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* MENU - ÖFFNET VON LINKS - SCHWARZER HINTERGRUND */
.menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: #000;
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.5);
}

.menu.active {
    transform: translateX(0);
}

.menuHead {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1.5rem;
    border-bottom: 1px solid #333;
}

.menuClose {
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.menuClose:hover {
    background: #222;
    color: #e63946;
}

/* DB STATUS MIT HEARTBEAT */
.dbStatus {
    padding: 1rem;
    border-bottom: 1px solid #333;
}

.heartbeat {
    width: 100%;
    height: 60px;
    color: #51cf66;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.heartbeat.error {
    color: #ff6b6b;
}

.heartbeat.success {
    color: #51cf66;
}

.heartbeat svg {
    width: 100%;
    height: 100%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(0);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-10px);
    }
}

.heartbeat.error svg {
    animation: flatline 2s linear infinite;
}

@keyframes flatline {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-200px);
    }
}

.dbStatusText {
    text-align: center;
    font-size: 0.875rem;
    color: #666;
    transition: color 0.3s ease;
}

.dbStatusText.success {
    color: #51cf66;
}

.dbStatusText.error {
    color: #ff6b6b;
}

.menuBody {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.menuLink {
    display: block;
    width: 100%;
    padding: 1rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.menuLink:hover {
    background: #222;
    color: #e63946;
}

.menuFoot {
    padding: 1.5rem;
    text-align: center;
    color: #666;
    font-size: 0.875rem;
    border-top: 1px solid #333;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .burgerBtn {
        top: 15px;
        right: 15px;
        padding: 10px;
    }
    
    .burgerIcon {
        width: 24px;
    }
}

@media (max-width: 480px) {
    .burgerBtn {
        top: 10px;
        right: 10px;
    }
}
