/* ===== NAVBAR & FOOTER COMPONENT STYLES ===== */
/* Basierend auf dem Stil von calculator.php */

/* ===== HEADER / NAV ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 15, 11, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dim);
    z-index: 1001;
    padding: 12px 0;
}
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.logo img {
    height: 42px;
    width: auto;
}
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}
.nav-links a:hover { 
    color: var(--primary); 
}
.nav-app-btn {
    padding: 8px 20px !important;
    background: var(--primary) !important;
    color: #0B0F0B !important;
    font-weight: 700;
    border-radius: 100px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}
.mobile-menu {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    user-select: none;
    z-index: 1002;
}

/* Mobile Styles */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(11, 15, 11, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 30px 20px;
        border-bottom: 1px solid var(--border-dim);
        z-index: 1000;
    }
    
    .nav-links.mobile-open {
        display: flex !important;
    }
    
    .nav-links a {
        white-space: nowrap;
        font-size: 1.1rem;
        padding: 8px 0;
        width: auto;
        text-align: center;
    }
    
    .nav-app-btn {
        margin-top: 8px;
    }
    
    .mobile-menu {
        display: block;
    }
}

/* ===== FOOTER (genau wie calculator.php) ===== */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border-dim);
    padding: 48px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
@media (max-width: 768px) {
    .footer-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}
@media (max-width: 640px) {
    .footer-grid { 
        grid-template-columns: 1fr; 
    }
}
footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
footer ul li {
    line-height: 2;
}
footer ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
footer ul li a:hover {
    color: var(--primary);
}
footer h4 {
    margin-bottom: 16px;
    font-weight: 600;
}
footer p {
    color: var(--text-muted);
}

/* ===== WHATSAPP BUTTON (genau wie calculator.php) ===== */
.fixed {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
}
.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 9999px;
    background: #25D366;
    padding: 12px 20px;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    text-decoration: none;
}
.whatsapp-link:hover {
    background: #1ebe57;
    transform: scale(1.05);
}
.whatsapp-link svg {
    width: 24px;
    height: 24px;
}
@media (max-width: 640px) {
    .whatsapp-link span {
        display: none;
    }
    .whatsapp-link {
        padding: 14px;
        border-radius: 50%;
    }
}

/* Damit der Footer immer unten ist */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}
main {
    margin-top: 80px;
    flex: 1;
}