:root {
    --primary-color: #1a5f7a;  /* Deep teal-green */
    --secondary-color: #d32f2f;  /* Vibrant red */
    --accent-green: #4caf50;  /* Bright green */
    --accent-red: #f44336;    /* Bright red */
    --text-color: #333;
    --background-color: #f0f4f8;  /* Soft light blue-gray */
    --white: #ffffff;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--secondary-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 3px 0;
    transition: 0.4s;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 5% 2rem;
}

#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh; 
    background: linear-gradient(135deg, var(--primary-color), var(--accent-green));
    color: var(--white);
    text-align: center;
    border-radius: 10px;
    margin-bottom: 3rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.hero-content {
    max-width: 600px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--accent-red);
}

section {
    margin-bottom: 4rem;
    text-align: center;
}

h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.product-grid, .service-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.product-card, .service-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--accent-green);
}

.product-card:hover, .service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.icon {
    width: 64px;
    height: 64px;
    fill: var(--secondary-color);
    margin-bottom: 1rem;
}

#kontakt {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 10px;
    border-left: 5px solid var(--accent-green);
}

#impressum {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 10px;
    border-left: 5px solid var(--accent-green);
}

.impressum-content h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.impressum-content p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem;
    text-align: center;
    border-top: 3px solid var(--secondary-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-red);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-top: 4px solid var(--accent-green);
}

.close-modal {
    color: var(--secondary-color);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--accent-red);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.link-item {
    background-color: var(--background-color);
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.link-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.link-item:hover a {
    color: var(--white);
}

.service-item#nutzliche-links {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.2s ease;
}

.service-item#nutzliche-links:hover {
    transform: scale(1.05);
    background-color: rgba(26, 95, 122, 0.05); /* Soft highlight using primary color */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.service-item#nutzliche-links:hover .icon {
    fill: var(--secondary-color); /* Optional: change icon color on hover */
}

@media screen and (max-width: 768px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 5%;
    }

    .logo {
        margin-bottom: 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem;
        width: 100%;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        z-index: 1100;
    }

    .product-grid, .service-list, .contact-info {
        flex-direction: column;
        align-items: center;
    }

    #hero {
        min-height: 40vh; 
    }
}