/* Global Styles */
:root {
    --primary-color: #2a5d2a;
    --secondary-color: #f8f8f8;
    --accent-color: #ff6600;
    --text-color: #333;
    --light-text: #fff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4 {
    margin-bottom: 1rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn:hover {
    background-color: #1e461e;
    transform: translateY(-2px);
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.nav-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

nav.active {
    max-height: 300px;
}

nav ul {
    list-style: none;
}

nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav ul li a {
    display: block;
    padding: 1rem;
    color: var(--light-text);
    text-align: center;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('slider.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--light-text);
    padding-top: 60px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Welcome Section */
.welcome {
    padding: 4rem 0;
    text-align: center;
}

.welcome h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.welcome p {
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Services Section */
.services {
    background-color: #f1f8f1;
    padding: 4rem 0;
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-content {
    padding: 1.5rem;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* About Section */
.about {
    padding: 4rem 0;
}

.about h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Section */
.contact {
    background-color: #f1f8f1;
    padding: 4rem 0;
}

.contact h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-main);
}

textarea {
    min-height: 150px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-column ul li a:hover {
    color: var(--light-text);
}

.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Media Queries */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    nav {
        position: relative;
        max-height: none;
        overflow: visible;
        background-color: transparent;
        width: auto;
    }

    nav ul {
        display: flex;
    }

    nav ul li {
        border-bottom: none;
    }

    nav ul li a {
        padding: 0.5rem 1rem;
        color: var(--primary-color);
    }

    nav ul li a:hover {
        background-color: transparent;
        color: var(--accent-color);
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Referenzen Sektion */
.references {
padding: 4rem 0;
background-color: #f8f8f8;
}

.references h2 {
text-align: center;
font-size: 2rem;
margin-bottom: 1rem;
color: var(--primary-color);
}

.section-intro {
text-align: center;
max-width: 800px;
margin: 0 auto 2rem;
}

/* Filter-Buttons */
.references-filter {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin-bottom: 2rem;
gap: 0.5rem;
}

.filter-btn {
background-color: #fff;
border: 1px solid var(--primary-color);
color: var(--primary-color);
padding: 0.5rem 1rem;
border-radius: 30px;
cursor: pointer;
transition: all 0.3s ease;
font-size: 0.9rem;
}

.filter-btn:hover {
background-color: rgba(42, 93, 42, 0.1);
}

.filter-btn.active {
background-color: var(--primary-color);
color: white;
}

/* Referenzen-Grid */
.references-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.5rem;
}

.reference-item {
background-color: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}

.reference-item:hover {
transform: translateY(-5px);
}

.reference-image {
position: relative;
overflow: hidden;
height: 0;
padding-top: 66.67%; /* 3:2 Aspect Ratio */
}

.reference-image img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}

.reference-item:hover .reference-image img {
transform: scale(1.05);
}

.reference-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.4);
display: flex;
justify-content: center;
align-items: center;
opacity: 0;
transition: opacity 0.3s ease;
}

.reference-item:hover .reference-overlay {
opacity: al
opacity: 1;
}

.reference-buttons {
display: flex;
gap: 0.5rem;
}

.reference-btn {
background-color: var(--primary-color);
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 4px;
cursor: pointer;
font-weight: 600;
transition: all 0.3s ease;
}

.reference-btn:hover {
background-color: #1e461e;
}

.reference-item h3 {
padding: 1rem;
margin: 0;
font-size: 1.1rem;
}

/* Modal für Detailansicht */
.reference-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
z-index: 1000;
overflow-y: auto;
}

.modal-content {
position: relative;
background-color: white;
margin: 5vh auto;
width: 90%;
max-width: 1200px;
border-radius: 8px;
overflow: hidden;
display: flex;
flex-direction: column;
}

.close-modal {
position: absolute;
top: 1rem;
right: 1rem;
font-size: 2rem;
color: white;
cursor: pointer;
z-index: 10;
text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.modal-gallery {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 0.5rem;
padding: 0.5rem;
background-color: #f1f1f1;
}

.modal-gallery img {
width: 100%;
height: 200px;
object-fit: cover;
border-radius: 4px;
cursor: pointer;
transition: opacity 0.3s ease;
}

.modal-gallery img:hover {
opacity: 0.9;
}

.modal-info {
padding: 2rem;
}

.modal-info h3 {
color: var(--primary-color);
margin-bottom: 0.5rem;
font-size: 1.5rem;
}

.project-meta {
color: #666;
font-style: italic;
margin-bottom: 1.5rem;
}

.modal-info p {
margin-bottom: 1rem;
line-height: 1.6;
}

.modal-info ul {
margin-bottom: 1rem;
padding-left: 1.5rem;
}

.modal-info li {
margin-bottom: 0.5rem;
}

/* Responsive Anpassungen */
@media (min-width: 768px) {
.modal-content {
flex-direction: row;
max-height: 90vh;
}

.modal-gallery {
width: 50%;
height: auto;
max-height: 90vh;
overflow-y: auto;
}

.modal-info {
width: 50%;
height: auto;
max-height: 90vh;
overflow-y: auto;
}
}

/* Für sehr kleine Bildschirme */
@media (max-width: 480px) {
  .logo span{ display: none; }

.references-filter {
flex-direction: column;
align-items: center;
}

.filter-btn {
width: 100%;
max-width: 250px;
margin-bottom: 0.5rem;
}
}
