/* ========================================
   GLOBALE STYLES - FÃ¼r ALLE Seiten
======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

:root {
    --primary-color: #2d8fa3;
    --secondary-color: #f5f7fa;
    --light-color: #fff;
    --dark-color: #1f2121;
    --border-radius: 8px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

.content-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* ========================================
   HEADER - DESKTOP HORIZONTAL NAVIGATION
======================================== */
.header {
    background: var(--light-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

/* DESKTOP: Horizontal Navigation */
.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color);
}

.contact-btn {
    background: var(--primary-color);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-block;
}

.contact-btn:hover {
    background: #1f6f7f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hamburger Menu - Hidden on Desktop */
.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem;
    z-index: 101;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   SECTIONS & TITLES
======================================== */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--dark-color);
}

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

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #1f6f7f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer p {
    margin: 0.5rem 0;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    text-decoration: underline;
}

/* ========================================
   ANIMATIONEN
======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

/* ========================================
   RESPONSIVE - TABLET & MOBILE
======================================== */

/* Tablet */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }

    .nav ul {
        gap: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

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

/* Mobile & iPad - RIGHT SIDEBAR */
@media (max-width: 768px) {
    /* Show Hamburger Menu */
    .hamburger-menu {
        display: flex;
    }

    /* Transform Navigation to Right Sidebar */
    .nav {
        position: fixed;
        right: 0;
        top: 0;
        width: 280px;
        height: 100vh;
        background: var(--light-color);
        box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
        z-index: 100;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    /* Show Sidebar when active */
    .nav.active {
        transform: translateX(0);
    }

    /* Vertical Navigation Layout */
    .nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
        align-items: stretch;
    }

    .nav ul li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        border-left: 3px solid transparent;
    }

    .nav-link:hover {
        background: rgba(45, 143, 163, 0.05);
        border-left-color: var(--primary-color);
    }

    .contact-btn {
        margin: 1rem 1.5rem;
        text-align: center;
        display: block;
    }

    /* Hamburger Animation */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

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

    .hamburger-menu.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    /* Dark Overlay when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
        animation: fadeIn 0.3s ease;
    }

    .section {
        padding: 2rem 0;
    }

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

/* Extra Small Mobile */
@media (max-width: 480px) {
    .nav {
        width: 250px;
    }

    .header .container {
        padding: 0.75rem 15px;
    }

    .logo img {
        height: 40px;
    }
}