html, body {
    overflow-x: hidden;
}

.hero {
    min-height: 100vh; /* Make hero section full screen */
    padding: 0 5%; /* Remove vertical padding, rely on flexbox for centering */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1522252234503-e356532cafd5?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column; /* Ensure content is stacked vertically */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content horizontally */
    position: relative;
    overflow: hidden;
}
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

#particles-js canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    display: block; /* verhindert Pixel-Überstand */
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.cta-button {
    background: var(--primary-color);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-block; /* Changed to inline-block to allow margin auto to work horizontally */
}

.cta-button:hover {
    background: var(--primary-color-hover);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .cta-button {
        padding: 1.2rem 2rem; /* Reduced padding for smaller screens */
        max-width: 80%; /* Added max-width */
        margin: 0 auto; /* Centered the button */
        display: block; /* Ensure it takes full available width within max-width */
    }
}

@media (max-width: 480px) {
    .cta-button {
        padding: 1rem 1.5rem; /* Further reduced padding for very small screens */
        font-size: 0.9rem;
        max-width: 90%; /* Adjusted max-width for very small screens */
    }
}
