/* ==========================================
   GLOBAL.CSS
   ========================================== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 80px; /* Platz für fixe Navbar */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   Floating Navbar
   ========================================== */

.nb-wrap {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.nb-bar {
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 8px 10px 8px 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    width: 820px;
    max-width: calc(100vw - 40px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nb-bar.scrolled {
    width: 500px;
    padding: 6px 8px 6px 14px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.13);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0066cc;
    letter-spacing: -0.03em;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    overflow: hidden;
    max-width: 160px;
    transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
}

.logo svg {
    flex-shrink: 0;
}

.logo-text {
    overflow: hidden;
}

.nb-bar.scrolled .logo {
    max-width: 0;
    opacity: 0;
    gap: 0;
}

/* Nav Links */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.nav-links li a {
    text-decoration: none;
    color: #555;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 7px 15px;
    border-radius: 999px;
    display: block;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease;
}

.nav-links li a:hover {
    background: #f1f5f9;
    color: #0066cc;
}

.nav-links li a.active,
.nav-links li.active a {
    background: #e6f1fb;
    color: #0066cc;
}

/* Kontakt CTA */
.nav-cta {
    background: #0066cc;
    color: #ffffff;
    border-radius: 999px;
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.18s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
}

.nav-cta:hover {
    background: #0052a3;
    color: #ffffff;
}

/* ==========================================
   Section Titles
   ========================================== */

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #0066cc;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

/* ==========================================
   Footer
   ========================================== */

footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #0066cc;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #0066cc;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* ==========================================
   Animations
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .nb-bar {
        width: calc(100vw - 32px);
        padding: 6px 8px 6px 14px;
    }

    .nb-bar.scrolled {
        width: calc(100vw - 32px);
    }

    .nav-links li a {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .nav-cta {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.8rem;
        padding: 0 10px;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    footer {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }

    .nav-links li a {
        font-size: 0.78rem;
        padding: 5px 8px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }
}