/* CSS Variables */
:root {
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --bg-primary: #333333;
    --bg-secondary: #444444;
    --accent-color: #2B9184;
    --accent-hover: #00b8e6;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1);
    transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.preloader video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
    filter: brightness(1);
}

.preloader.hidden video {
    transform: scale(1);
    filter: brightness(0.8);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Verstecke Scrollbar während Preloader */
body.preloader-active {
    overflow: hidden;
}



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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: #333;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo .logo-img {
    height: auto;
    width: 318px;
    max-height: 106px;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2B9184;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2B9184;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2B9184, #1F7A6F);
    color: white;
    box-shadow: 0 4px 15px rgba(43, 145, 132, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 145, 132, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #2B9184, #1F7A6F);
    color: white;
    box-shadow: 0 4px 15px rgba(43, 145, 132, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 145, 132, 0.4);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.01)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.01)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.01)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-section.logo-section {
    grid-column: 1;
}

.footer-section h4 {
    color: #2B9184;
    margin-bottom: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Logo Section Styles */
.footer-logo-container {
    margin-bottom: 25px;
}

.footer-logo-img {
    height: auto;
    width: 300px;
    max-height: 120px;
    margin-bottom: 20px;
    object-fit: contain;
}



.contact-intro {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon-img {
    width: 43px;
    height: 43px;
    transition: all 0.3s ease;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #2B9184;
}

.footer-links li:not(:has(a)) {
    color: #cccccc;
    font-size: 0.95rem;
}

/* Contact Info */
.contact-info p {
    color: #cccccc;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: #cccccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #2B9184;
}

.footer-copyright {
    color: #999;
    font-size: 0.9rem;
}

/* Utility Classes */
.highlight {
    color: #2B9184;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 60px;
    color: #1a1a1a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.4);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        color: #ffffff;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: #2B9184;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-logo .logo-img {
        width: 296px;
        max-height: 96px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-section.logo-section {
        grid-column: 1;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 70px;
        padding: 0 15px;
    }

    .nav-menu {
        top: 70px;
    }

    .nav-logo .logo-img {
        width: 265px;
        max-height: 85px;
    }

    .footer {
        padding: 50px 0 15px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .social-icons {
        gap: 15px;
    }
    
    .social-icon-img {
        width: 35px;
        height: 35px;
    }
    
    .footer-legal {
        gap: 15px;
        flex-wrap: wrap;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
}

/* Page Header Section - Dunkler geometrischer Hintergrund */
.page-header {
    background-image: url('../assets/hintergrund_muster.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-header .header-content {
    text-align: center;
    color: white;
    padding: 60px 20px;
}

.page-header .page-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.page-header .breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 400;
}

.page-header .breadcrumb a {
    color: white;
    text-decoration: underline;
    transition: all 0.3s ease;
    position: relative;
}

.page-header .breadcrumb a:hover {
    color: #2B9184;
    text-decoration: none;
}

.page-header .breadcrumb .separator {
    color: #666;
    font-weight: 300;
}

.page-header .breadcrumb .current {
    color: #2B9184;
    font-weight: 500;
}

/* Responsive Design für Page Header */
@media (max-width: 768px) {
    .page-header {
        min-height: 36vh;
    }
    
    .page-header .page-title {
        font-size: 2rem;
        letter-spacing: 0.5px;
        margin-bottom: 15px;
    }
    
    .page-header .breadcrumb {
        font-size: 0.9rem;
        flex-direction: row;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .page-header .header-content {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .page-header .page-title {
        font-size: 1.6rem;
        letter-spacing: 0.3px;
        margin-bottom: 12px;
    }
    
    .page-header .breadcrumb {
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .page-header .header-content {
        padding: 20px 10px;
    }
}
