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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background: #0e1116;
    color: #f0f0f0;
    overflow-x: hidden;
}

.hero {
    height: 100vh;
    background-image: url('https://rassweiler-it.de/res/img/rassweiler-it_jerome_rassweiler_webdesign_grey_wall_icon.png');
    background-size: cover;
    background-position: top;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem 2rem;
    border-radius: 12px;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.hero-btn {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translate(-50%);
}

section {
    padding: 5rem 10%;
}

.section_intro {
    padding: 50px 0 50px 0;
}

.intro {
    background: #1a1d23;
    color: #f0f0f0;
    border-radius: 12px;
    padding: 50px 60px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    max-width: 960px;
    margin: auto;
}

.intro h3 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-align: center;
    color: #ffffff;
    margin-bottom: 2rem;
    position: relative;
}

.intro h3::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #3b82f6;
    margin: 12px auto 0;
    border-radius: 2px;
}

.intro p {
    font: 400 16px / 1.8 "Lato", sans-serif;
    color: #ccc;
}


.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 1100px) {
    .services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services {
        grid-template-columns: 1fr;
    }
}


.card {
    background: #1a1d23;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.5s;
}

.card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.card p {
    color: #f0f0f0;
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

.card:hover {
    /*transform: translateY(-5px);*/
    /*box-shadow: 0 6px 30px rgba(0,0,0,0.5);*/
    background: white;
}

.card:hover p {
    color: black;
}

.projects {
    display: flex;
    flex-direction: column; /* ← Wichtig */
    gap: 3rem;
    align-items: center; /* Optional: Zentriert den Inhalt */
}


.project_item {
    display: flex;
    color: #ccc;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    max-width: 1000px;
    width: 100%;
    height: 400px;
}

.project_item:hover {
    background: #fff;
    color: #000000;
}

.project_description {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project_description h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.project_description p {
    font-size: 1rem;
}

.project_image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project_image img {
    max-width: 90%;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

.project_item:hover .project_image img {
    transform: scale(1.05);
}

.button_custom {
    position: relative;
    cursor: pointer;
}

.button_custom *, .button_custom *:hover {
    transition: 0.3s;
    user-select: none;
    margin-top: 10px;
}

.button_custom_circle {
    position: absolute;
    background-color: white;
    width: 36px;
    height: 36px;
    border-radius: 18px;
}

.button_custom_arrow, .button_custom_txt {
    position: absolute;
    top: 0;
    text-align: center;
    line-height: 36px;
}

.button_custom_arrow {
    width: 36px;
    left: 0;
    font-size: 20px;
}

.button_custom_txt {
    width: 120px;
    left: 36px;
    color: white;
}

.button_custom:hover .button_custom_circle {
    width: 156px;
}

.project_item:hover .button_custom_txt {
    color: #000000;
}

.button_custom:hover .button_custom_txt {
    color: white;
}

.button_custom:hover .button_custom_arrow {
    left: 6px;
}

.project_item:hover .button_custom_circle {
    background-color: #3b82f6;
}

.project_item:hover .button_custom_arrow img {
    filter: invert(1);
}

.more_projects {
    height: 36px;
    line-height: 36px;
    display: flex;
}

.more_projects a {
    color: #000000;
    background: #fff;
    transition: 0.3s;
    border-radius: 18px;
    height: 36px;
    text-decoration: none;
    padding: 0 10px;
}

.more_projects a:hover {
    color: #fff;
    background: #3b82f6;
}

/*
footer {
    text-align: center;
    padding: 3rem 1rem;
    font-size: 0.9rem;
    color: #888;
}

footer .footer-link {
    color: #888;
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

footer .footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}*/

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .intro {
        padding: 2rem;
    }
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #0e1116;
    padding: 1rem 10%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: #f0f0f0;
}

.logo a {
    text-decoration: none;
    cursor: pointer;
    color: #f0f0f0;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: #aaa;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: white;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    color: #f0f0f0;
    position: relative;
}

section h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #3b82f6;
    margin: 16px auto 0;
    border-radius: 3px;
}

@media (max-width: 800px) {
    .project_item {
        flex-direction: column;
        height: auto;
    }

    .order-image {
        order: 1;
    }

    .order-text {
        order: 2;
    }

    .project_image img {
        max-width: 100%;
        width: 100%;
        height: auto;
        border-radius: 0;
    }

    .project_description {
        padding: 20px;
        height: auto;
    }

    .project_description h3 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .button_custom {
        margin-bottom: 50px;
    }
}

#contact {
    background: #FFFFFF;
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
}

.contact-box {
    max-width: 700px;
    background: #FFFFFF;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.contact-box h2 {
    font-size: 2.5rem;
    color: #111;
    margin-bottom: 1rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.contact-box h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #3b82f6;
    margin: 1rem auto 1.5rem;
    border-radius: 2px;
}

.contact-lead {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.contact-box p {
    color: #aaa;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.contact-button {
    display: inline-block;
    padding: 12px 28px;
    background-color: #3b82f6;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: background-color 0.3s;
}

.contact-button:hover {
    background-color: #2563eb;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-item {
    position: relative;
}

.form-item input,
.form-item textarea {
    width: 100%;
    padding: 10px 6px;
    border: none;
    border-bottom: 2px solid black;
    background: transparent;
    font-size: 16px;
    outline: none;
    resize: none;
}

.form-item label {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: grey;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-item:has(textarea) label {
    top: 75%;
}

.form-item input:focus + label,
.form-item textarea:focus + label,
.form-item input:not(:placeholder-shown) + label,
.form-item textarea:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 12px;
    color: black;
}

.form-button {
    background-color: black;
    color: white;
    border: none;
    padding: 12px 0;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.form-button:hover {
    background-color: #3b82f6;
    color: white;
}

.project_item.active {
    background: #fff;
    color: #000000;
}

.project_item.active .project_image img {
    transform: scale(1.05);
}

.project_item.active .button_custom_txt {
    color: #000000;
}

.project_item.active .button_custom:hover .button_custom_txt {
    color: white;
}

.project_item.active .button_custom_circle {
    background-color: #3b82f6;
}

.project_item.active .button_custom_arrow img {
    filter: invert(1);
}

/* Responsive Sidebar */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 7px;
    right: 20px;
    z-index: 2000;
}

.menu-icon {
    cursor: pointer;
}

.menu-icon div {
    width: 36px;
    height: 5px;
    background-color: white;
    margin: 6px 0;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toMiddle .bar1 { transform: translateY(11px); }
.toMiddle .bar3 { transform: translateY(-11px); }
.fadeOut .bar2 { opacity: 0; }
.toX .bar1 { transform: translateY(11px) rotate(45deg); }
.toX .bar3 { transform: translateY(-11px) rotate(-45deg); }

.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    right: 0;
    background-color: #0e1116;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    z-index: 1500;
}

.sidebar a {
    display: block;
    padding: 1rem 2rem;
    color: #f0f0f0;
    text-decoration: none;
    font-size: 1.2rem;
    border-bottom: 1px solid #333;
}

.sidebar a:hover {
    background-color: #3b82f6;
    color: white;
}

/* Nur auf kleinen Bildschirmen sichtbar */
@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }

    .navbar .nav-links {
        display: none;
    }
}

/* Footer Styles */
footer {
    background: #0e1116;
    color: #888;
    padding: 3rem 1rem;
    font-size: 0.9rem;
    border-top: 1px solid #1a1d23;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.footer-contact h3,
.footer-social h3 {
    width: 276px;
    color: #f0f0f0;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-contact h3::after,
.footer-social h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #3b82f6;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.contact-item svg {
    margin-right: 10px;
    color: #3b82f6;
}

.contact-item a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #3b82f6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #aaa;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #3b82f6;
}

.social-links svg {
    width: 24px;
    height: 24px;
}

.footer-legal {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #1a1d23;
}

.legal-links {
    margin-top: 0.5rem;
}

.footer-link {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-content {
        text-align: center;
    }

    .footer-content-links {
        flex-direction: column;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-contact h3::after,
    .footer-social h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}