/* Global Styles */
:root {
    --primary-color: #003300;
    --secondary-color: #003300;
    --accent-color: #003300;
    --dark-color: #003300;
    --light-color: #E8F5E9;
    --text-color: #fff;
    --light-text: #fff;
    --gray-color: #f4f4f4;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --tile-background: #003300;
    --button-color: #0d7c40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 0;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Gill Sans MT', 'Gill Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #003300;
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 90%;
    max-width: 1920px;
    margin: 0 auto;
}

/* Make sure all text is white */
p, h1, h2, h3, h4, h5, h6, label, input, textarea {
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: var(--light-text);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    background-color: var(--button-color);
    color: var(--light-text);
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.section-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: right;
    margin-top: -5%;
    font-size: 5.3rem;
    color: var(--light-text);
    position: absolute;
    left: 140px;
    top: 70%;
    transform-origin: left;
    transform: translateY(-50%) rotate(180deg);
    z-index: 90;
    white-space: nowrap;
}

.section-subtitle {
    padding-top: 30px;
    font-size: 2.7rem;
    color: var(--light-text);
}

/* Update the CSS selector for the overview subtitle */
#services-overview .section-subtitle {
    display: none; /* Hide by default on large screens */
}

/* Update media query */
@media (max-width: 768px) {
    #services-overview .section-subtitle {
        display: block;
    }
}

section {
    min-height: 100vh;
    padding: 120px 0;
    display: flex;
    align-items: flex-start;
    position: relative;
    justify-content: center;
    overflow: visible;
}

section > .container {
    margin-right: 140px;
    margin-left: 140px;
}

/* Header Styles */
header {
    background-color: #000;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: auto;
    min-height: 80px;
    width: 100%;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin: 0 auto;
    width: 90%;
    max-width: 1920px;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-wrapper {
    height: 60px;
    display: flex;
    align-items: center;
}

.logo-wrapper a {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    padding: 5px 0;
}

.logo h1 {
    display: none;
}

.tagline {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-style: italic;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--light-text);
    font-weight: 600;
    padding: 10px 0;
    position: relative;
}

nav ul li a:hover {
    color: var(--light-text);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--light-text);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.33), rgba(0, 0, 0, 0.33)), url('images/landing_page_img.png') no-repeat center center/cover;
    color: var(--light-text);
    padding: 0;
    display: flex;
    position: relative;
}

.hero-content {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 50%;
    background-color: #003300;
    padding: 30px;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    text-align: left;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.hero h2 {
    font-size: 3.75rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero .section-title {
    color: var(--light-text);
}

.hero .section-title::after {
    background-color: var(--light-text);
}

.intro-container {
    font-size: 1.8rem;
    color: var(--light-text);
    margin-right: 55%;
    padding-top: 20px;
}

.text-highlight {
    background-color: white;
    color: var(--dark-color);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 60px;
    margin-top: 60px;
}

/* Services Section */
.services {
    background-color: var(--tile-background);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: start;
    position: relative;
    width: 100%;
    padding: 30px 0;
}

/* Update the grid layout selectors */
#services-bauherren .services-grid,
#services-architekten .services-grid,
#services-bauunternehmen .services-grid {
    grid-template-columns: repeat(2, minmax(250px, 800px));
    justify-content: center;
    margin: 0 auto;
}

.services-text {
    padding: 30px;
    max-width: 600px;
}

.services-text p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.services-image {
    position: absolute;
    right: 0;
    left: 50%;
    top: 25%;
    height: 66%;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    width: 100%;
    z-index: 1;
    overflow: hidden;
}

.services-image .services-image-img {
    width: 50%; 
    height: auto;
}

.services-image .image-placeholder i {
    display: none;
}

.service-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.service-card p,
.service-card h1,
.service-card h2,
.service-card h3,
.service-card h4,
.service-card h5,
.service-card h6 {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.service-card .service-logo {
    width: 80px;  /* Adjust size as needed */
    height: 80px;  /* Adjust size as needed */
    margin-bottom: 20px;
    object-fit: contain;
}

/* Remove the old icon styles for service cards */
.service-card i {
    display: none;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
}

/* Add specific styling for service cards' lists */
.service-card ul {
    list-style: disc;
    text-align: left;
    margin: 0 auto 15px;
    padding-left: 40px;
    display: inline-block;
    width: fit-content;
}

.service-card ul li {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.service-card .btn {
    display: block;  /* Make button take full width */
    margin-top: 20px;  /* Add space between list and button */
    width: fit-content;  /* Make button only as wide as needed */
    margin-left: auto;  /* Center the button */
    margin-right: auto;
}

/* Fix nested anchor tag styling */
.service-card > a {
    display: block;  /* Make the container anchor block-level */
    text-decoration: none;  /* Remove underline */
}

/* About Section */
.about {
    background-color: var(--tile-background);
    position: relative;
    overflow: visible;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 120px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    width: 100%;
    max-height: none;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--light-text);
    font-size: 1.5rem;
}

.about-image {
    position: relative;
    top: 0;
    bottom: 0;
    height: 85%;
    max-height: none;
    display: flex;
    align-items: center;
}

.about-image .image-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    border: none;
}

.about-image .image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.about-image i {
    display: none;
}

/* Projects Section */
.projects {
    background-color: var(--tile-background);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--tile-background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--light-text);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-image .image-placeholder {
    background-color: var(--tile-background);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image i {
    font-size: 4rem;
    color: var(--light-text);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    color: var(--light-text);
}

/* Contact Section */
.contact {
    background-color: var(--tile-background);
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10rem;
    padding: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-logo {
    color: var(--light-text);
    transition: color 0.3s ease;
    margin-bottom: 1rem;
    font-size: 3vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-logo:hover {
    color: var(--light-text);
    opacity: 0.8;
}

.contact-text {
    font-size: 2rem;
    margin-top: 2rem;
    color: var(--light-text);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--light-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-text);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--light-text);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.contact-info {
    background-color: var(--tile-background);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--light-text);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--light-text);
    margin-right: 15px;
    width: 30px;
}

.social-links {
    display: flex;
    margin-top: 30px;
    margin-bottom: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    margin-right: 15px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 30px 0;
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer p {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--light-text);
    margin: 0 10px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Responsive Styles */
@media (max-width: 1300px) {
    .section-title {
        left: 90px;
        font-size: 4rem;
    }
    
    section > .container {
        margin-left: 90px;
        margin-right: 80px;
    }
    
    .hero-content {
        width: 60%;
    }

    .services-grid {
        gap: 20px;
    }

    .about-text p {
        font-size: 1.2rem;
    }

    .contact-content {
        flex-direction: column;
        gap: 3rem;
    }

    .contact-logo {
        font-size: 4vw;
    }

    .contact-text {
        font-size: 1.8rem;
        margin-top: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 992px) {
    .section-title {
        display: none;
    }

    section > .container {
        margin-left: 60px;
        margin-right: 60px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    #services-bauherren .services-grid,
    #services-architekten .services-grid,
    #services-bauunternehmen .services-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        max-height: none;
    }
    
    .about-image {
        order: -1;
        max-height: 400px;
    }
    
    .hero-content {
        width: 70%;
        padding: 30px;
    }

    .about-text p {
        font-size: 1.2rem;
    }

    .contact-content {
        gap: 5rem;
    }

    .contact-logo {
        font-size: 4vw;
    }

    .contact-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 120px;
    }

    header .container {
        flex-direction: row;
        padding: 15px 0;
        position: relative;
        align-items: center;
    }
    
    .logo {
        margin-right: auto;
    }
    
    .burger-menu {
        display: block !important;
        margin-left: auto;
        order: 2;
        padding: 15px;
    }
    
    nav {
        display: none;
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: auto;
        background-color: #000;
        padding: 20px;
        transition: var(--transition);
        z-index: 1001;
    }

    nav.active {
        display: block;
        right: 0;
    }

    nav ul {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        padding: 10px 0;
        width: 100%;
        gap: 15px;
    }
    
    nav ul li {
        margin: 0;
    }
    
    .section-title {
        left: 10px;
        font-size: 3rem;
    }
    
    section > .container {
        margin-left: 40px;
        margin-right: 40px;
    }

    .intro-container {
        margin: 0;
        font-size: 1.5rem;
        padding-top: 30px;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        width: 80%;
        padding: 25px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: 20px;
    }

    .services-image {
        position: relative;
        left: 0;
        width: 100%;
        height: auto;
        margin-top: 30px;
        border-radius: 8px;
        transform: translateX(10%);
    }

    .services-image .services-image-img {
        width: 100%;
        height: 100%;
    }

    .contact-content {
        flex-direction: column;
        gap: 3rem;
    }

    .about {
        padding: 40px 0;
    }

    .about-content {
        gap: 30px;
    }

    .about-image {
        height: 500px;
    }

    .about-text {
        padding: 0 10px;
    }

    .contact-logo {
        font-size: 6vw;
    }

    .contact-text {
        font-size: 1.3rem;
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .nav-toggle {
        display: block;
        cursor: pointer;
        padding: 10px;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: block;
    }

    /* Add styles for dropdown in mobile */
    .dropdown-content {
        position: static;
        width: 100%;
        transform: none !important;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.3);
        padding: 0 0 0 20px;
        left: 0 !important;
        text-align: left;
    }

    .dropdown:hover .dropdown-content {
        position: static;
        transform: none !important;
        left: 0 !important;
    }

    .dropdown-content li {
        margin: 5px 0;
    }
    
    .dropdown-content a {
        padding: 8px 16px;
        text-align: left;
    }
    
    /* Fix the "Über uns" dropdown specifically */
    .dropdown:nth-child(2) .dropdown-content {
        min-width: 100%;
        left: 0;
        transform: none;
    }
    
    .dropdown:nth-child(2):hover .dropdown-content {
        left: 0;
        transform: none;
    }

    .burger-menu {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul li {
        margin: 10px 0;
        width: 100%;
    }

    /* Burger menu animation when active */
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Make sure header stays above the navigation */
    header {
        z-index: 1002;
    }
}

@media (max-width: 576px) {
    header .container {
        width: 95%;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    nav ul li {
        margin: 0;
    }
    
    .section-title {
        left: 5px;
        font-size: 2.5rem;
    }
    
    section > .container {
        margin-left: 20px;
        margin-right: 20px;
        width: 95%;
    }

    .intro-container {
        font-size: 1.3rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.5rem;
    }
    
    .hero-content {
        width: 90%;
        padding: 20px;
    }

    .section-subtitle {
        font-size: 2rem;
    }
    
    .service-card,
    .project-card {
        padding: 20px;
    }

    .about-text p {
        font-size: 1.2rem;
    }

    .contact-logo {
        font-size: 8vw;
    }

    .contact-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    .hero h2 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.8rem;
    }

    .intro-container {
        font-size: 1.1rem;
    }

    .contact-logo {
        font-size: 10vw;
    }

    .contact-text {
        font-size: 1rem;
    }
}

/* Form elements placeholder text color */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Info items text color */
.info-item p {
    color: var(--light-text);
}

/* Make sure all other text is white */
.project-info p {
    color: var(--light-text);
}

/* Remove the global ul style if it exists */
ul {
    /* Remove this if it exists */
    /* list-style: none; */
}

/* Add specific styling for header navigation */
header nav ul {
    list-style: none;  /* Remove bullets only from header navigation */
    display: flex;  /* Keep the existing flex layout */
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 4px;
    padding: 8px 0;
    list-style: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li {
    margin: 0;
}

.dropdown-content a {
    color: var(--light-text);
    padding: 12px 16px;
    display: block;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Remove the arrow indicator for dropdown */
.dropdown > a::after {
    display: none;  /* This removes the down arrow */
}

/* Responsive adjustments for dropdown */
@media (max-width: 768px) {
    .dropdown-content {
        position: absolute;
        background-color: #000;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        padding: 8px 0;
        margin-top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .dropdown-content a {
        padding: 8px 16px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }
}

/* Adjust dropdown position for longer text */
.dropdown:nth-child(2) .dropdown-content {
    min-width: 200px;  /* Adjust width for German text */
    left: 50%;
    transform: translateX(-50%);  /* Center the dropdown under its parent */
}

/* Ensure the dropdown doesn't get cut off */
.dropdown:nth-child(2):hover .dropdown-content {
    display: block;
    left: 50%;
    transform: translateX(-50%);
}

/* Burger Menu Styles */
.burger-menu {
    display: none;  /* Hidden by default for desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1002;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 5px 0;
    transition: var(--transition);
}

/* Update media query for smaller screens */
@media (max-height: 800px) {
    section {
        padding: 100px 0;
    }
    
    .hero-content {
        position: absolute;
        bottom: 0px;
        margin: 40px 0;
    }
    
    .about-image {
        min-height: 300px;
    }
}

@media (max-height: 600px) {
    section {
        padding: 80px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.5rem;
    }
}

/* Remove hover-based dropdown for touch devices */
.dropdown.touch-device:hover .dropdown-content {
    display: none;
}

/* Keep hover behavior only for non-touch devices */
@media (hover: hover) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* Dropdown styles for desktop hover */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
    
    .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background-color: #000;
        min-width: 250px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        z-index: 1001;
        border-radius: 4px;
        padding: 8px 0;
    }
}

/* Remove hover behavior for touch devices */
.dropdown.touch-device:hover .dropdown-content {
    display: none;
} 