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

/* ================= BASIS ================= */
body {
    background-color: #0f172a;
    font-family: Arial, sans-serif;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Wenn Menü offen ist - Body scrollen verhindern */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ================= NAVBAR ================= */
#menu {
    width: 100%;
    background: #020617;
    padding: 20px;
    border-bottom: 2px solid #22c55e;
    box-shadow: 0 2px 15px rgba(0,0,0,0.5);
    position: relative;
    z-index: 100;
}

.menu-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-name {
    font-size: 22px;
    font-weight: bold;
    color: #22c55e;
    letter-spacing: 1px;
}

.logo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid #22c55e;
    object-fit: cover;
    transition: all 0.3s ease;
}

.logo:hover {
    box-shadow: 0 0 15px #22c55e;
    transform: scale(1.05);
}

/* Desktop NAVIGATION - Standard sichtbar (ab 950px) */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links li a {
    text-decoration: none;
    color: #cbd5f5;
    font-size: 15px;
    transition: all 0.25s ease;
    position: relative;
    white-space: nowrap;
}

.nav-links li a:hover {
    color: #22c55e;
}

.nav-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #22c55e;
    transition: 0.3s;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* ================= HAMBURGER (NUR MOBILE & TABLET) ================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #22c55e;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* MOBILE NAVIGATION - Standard unsichtbar */
.nav-links-mobile {
    display: none;
}

/* OVERLAY - Standard unsichtbar */
.menu-overlay {
    display: none;
}

/* ================= MOBILE & TABLET (bis 950px Breite) ================= */
@media (max-width: 950px) {
    /* Desktop-Menü ausblenden */
    .nav-links {
        display: none !important;
    }
    
    /* Hamburger anzeigen */
    .hamburger {
        display: flex !important;
    }
    
    /* Mobile Navigation - Fix für Samsung S10 */
    .nav-links-mobile {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100dvh;  /* dynamic viewport height für mobile Geräte */
        max-height: 100dvh;
        background: #020617;
        flex-direction: column;
        padding-top: 80px;
        padding-bottom: 30px;
        gap: 5px;
        list-style: none;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fallback für ältere Browser */
    @supports not (height: 100dvh) {
        .nav-links-mobile {
            height: 100vh;
        }
    }
    
    /* Scrollbar styling */
    .nav-links-mobile::-webkit-scrollbar {
        width: 4px;
    }
    
    .nav-links-mobile::-webkit-scrollbar-track {
        background: #0f172a;
    }
    
    .nav-links-mobile::-webkit-scrollbar-thumb {
        background: #22c55e;
        border-radius: 4px;
    }
    
    .nav-links-mobile.active {
        display: flex !important;
        left: 0;
    }
    
    .nav-links-mobile li {
        width: 100%;
        flex-shrink: 0;
    }
    
    .nav-links-mobile li a {
        color: #cbd5f5;
        text-decoration: none;
        font-size: 18px;
        padding: 14px 25px;
        display: block;
        transition: all 0.25s ease;
        border-left: 3px solid transparent;
    }
    
    .nav-links-mobile li a:active {
        color: #22c55e;
        background: rgba(34,197,94,0.2);
        border-left-color: #22c55e;
    }
    
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: rgba(0,0,0,0.7);
        z-index: 999;
    }
    
    .menu-overlay.active {
        display: block !important;
    }
}

/* ================= QUERFORMAT OPTIMIERUNG ================= */
@media (max-width: 950px) and (orientation: landscape) {
    .nav-links-mobile {
        padding-top: 60px;
        padding-bottom: 20px;
    }
    
    .nav-links-mobile li a {
        padding: 8px 25px;
        font-size: 16px;
    }
}

/* ================= PC & GROSSE TABLETS (ab 951px) ================= */
@media (min-width: 951px) {
    .nav-links {
        display: flex !important;
    }
    
    .hamburger,
    .nav-links-mobile,
    .menu-overlay {
        display: none !important;
    }
    
    body.menu-open {
        overflow: auto;
        position: relative;
        width: auto;
        height: auto;
    }
}

/* ================= MAIN ================= */
main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

/* ================= FOOTER ================= */
.footer {
    width: 100%;
    background: #020617;
    padding: 60px 20px 50px 20px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #22c55e, transparent);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #22c55e;
}

.footer-column a {
    text-decoration: none;
    color: #cbd5f5;
    margin-bottom: 8px;
    transition: all 0.25s ease;
}

.footer-column a:hover {
    color: #22c55e;
    transform: translateX(5px);
}

.footer-column input {
    padding: 10px;
    border: none;
    border-radius: 6px;
    margin-bottom: 10px;
    outline: none;
    background: #0f172a;
    color: #fff;
}

.footer-column button {
    padding: 10px;
    background: #22c55e;
    color: #020617;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.25s ease;
}

.footer-column button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34,197,94,0.4);
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .footer-column {
        align-items: center;
    }
}