/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    font-weight: 400;
    font-size: 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Hoofdkleuren - aangepast naar zwart om bij logo te passen */
:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --hover-color: #444444;
    --accent-color: #f5f5f5;
    --text-color: #333;
    --light-text: #fff;
}

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

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Header Styles - verkleinde menubalk zoals ersbouw.nl */
header {
    height: auto !important;
    min-height: 70px;
    max-height: 80px;
    padding: 5px 5%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    flex: 1;
}

#company-logo {
    height: auto !important;
    width: 180px !important;
    max-width: none !important;
    margin-right: 10px;
}

.logo h1 {
    display: none;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 3;
}

.menu-toggle {
    display: none;
    font-size: 1.2rem;
    cursor: pointer;
    flex: 1;
    text-align: right;
    transition: color 0.2s ease;
}

.menu-toggle:hover {
    color: var(--primary-color);
}

/* Menu met iconen - gebaseerd op ersbouw.nl */
.main-menu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.main-menu li {
    margin: 0 12px;
    text-align: center;
}

.main-menu li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: color 0.3s;
    text-transform: uppercase;
    padding: 8px 0;
}

.main-menu li a i {
    font-size: 1rem;
    margin-bottom: 3px;
}

.main-menu li a:hover, .main-menu li a.active {
    color: var(--primary-color);
}

/* Taalschakelaar / Sprachauswahl im ersbouw.nl-Stil */
.language-selector {
    position: relative;
    margin-left: auto;
    display: flex;
    align-items: center;
}

.language-selector .current-lang {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    transition: background-color 0.2s;
}

.language-selector .current-lang:hover {
    background-color: rgba(0,0,0,0.03);
}

.language-selector .dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    min-width: 100px;
    padding: 3px 0;
}

.language-selector:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-selector .dropdown a {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    transition: background-color 0.2s;
}

.language-selector .dropdown a:hover {
    background-color: rgba(0,0,0,0.03);
}

.language-selector .dropdown a.active {
    background-color: rgba(0,0,0,0.05);
    color: var(--primary-color);
}

.flag-icon {
    height: 12px;
    width: 16px;
    margin-right: 5px;
    display: inline-block;
    vertical-align: middle;
}

/* Verbeterde typografie voor hele website */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
    font-weight: 400;
}

/* Hero Slider Section - styled text */
.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background-color: #333;
}

.slides {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background-color: rgba(0,0,0,0.7);
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.slide-content {
    width: 100%;
    color: #fff;
    z-index: 3;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slide-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #333;
    z-index: 1;
    color: rgba(255,255,255,0.2);
    font-size: 36px;
    text-transform: uppercase;
}

.slide-content h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 2px;
}

.slide-content h1 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1.5px;
}

.slide-description {
    margin-top: 15px;
    font-size: 1.1rem;
    opacity: 0.8;
    font-weight: 400;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.prev-slide, .next-slide {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    margin: 0 15px;
}

.slider-dots {
    display: flex;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    margin: 0 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

/* Services Overview Section */
.services-overview {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.service-item {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Verbeterde placeholder styling voor service-items */
.service-item .placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    color: #555;
    text-align: center;
    border: 1px dashed #ccc;
}

.service-item .placeholder .placeholder-number {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.service-item .placeholder .placeholder-text {
    font-size: 16px;
    font-style: italic;
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-item h3 {
    padding: 20px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #000;
    letter-spacing: 1px;
}

.view-more {
    text-align: center;
    margin-top: 20px;
}

/* About Us Section */
.about-us {
    padding: 80px 0;
    background-color: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.about-item {
    text-align: center;
    padding: 20px;
}

.about-icon {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-item h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.about-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
}

.cta-section p {
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.cta-button:hover {
    background-color: var(--hover-color);
    transform: translateY(-3px);
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.cta-button.secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Footer Styling - Improved */
footer {
    background-color: #222;
    color: #fff;
    padding: 60px 5% 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 1.5px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 10px;
}

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

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

/* Services Detail Page */
.services-detail {
    padding: 80px 5%;
    background-color: #f8f9fa;
}

.service-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    display: flex;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    align-items: stretch;
    max-height: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.service-image {
    width: 35% !important;
    max-width: 35% !important;
    flex: 0 0 35% !important;
    position: relative;
    overflow: hidden;
    min-height: 300px !important;
    max-height: 300px !important;
}

.service-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-info {
    flex: 1;
    padding: 40px 50px;
    overflow-y: auto;
    width: 65% !important;
    max-width: 65% !important;
    display: flex;
    flex-direction: column;
}

.service-info h2 {
    margin-bottom: 20px;
    color: #000;
    font-size: 1.6rem;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 0.5px;
}

.service-info h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.service-info p {
    margin-bottom: 25px;
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

.service-info ul {
    margin-bottom: 30px;
    padding-left: 5px;
}

.service-info ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    list-style-type: none;
    color: #444;
    font-size: 0.95rem;
}

.service-info ul li:before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    font-size: 14px;
}

.service-info .cta-button {
    margin-top: auto;
    align-self: flex-start;
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    border: 2px solid var(--primary-color);
}

.service-info .cta-button:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Media query for service cards on mobile */
@media (max-width: 768px) {
    .services-detail {
        padding: 60px 4%;
    }
    
    .service-container {
        gap: 40px;
    }
    
    .service-card {
        flex-direction: column;
        max-height: none;
        height: auto;
    }
    
    .service-image {
        flex: 0 0 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .service-image img {
        width: 100% !important;
        height: 250px !important;
        object-fit: cover !important;
    }
    
    .service-info {
        padding: 35px 25px;
        overflow-y: visible;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .service-info h2 {
        font-size: 1.4rem;
    }
    
    .service-info h2:after {
        width: 50px;
    }
}

/* Zusätzliche Optimierungen für kleinere Mobilgeräte */
@media (max-width: 480px) {
    .services-detail {
        padding: 40px 4%;
    }
    
    .service-container {
        gap: 30px;
    }
    
    .service-image {
        flex: 0 0 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    .service-image img {
        height: 200px !important;
    }
    
    /* Verbesserte Abstände für mobile Ansicht */
    .service-card {
        margin-bottom: 0;
        border-radius: 10px;
    }
    
    .service-info {
        padding: 25px 20px;
    }
    
    .service-info h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    /* Listenelemente besser lesbar machen */
    .service-info ul li {
        margin-bottom: 10px;
        font-size: 14px;
    }
    
    /* Button besser anpassen */
    .service-info .cta-button {
        width: 100%;
        text-align: center;
        padding: 12px 15px;
    }
}

/* Contact Page Styles */
.contact-section {
    padding: 60px 5%;
}

.contact-container {
    display: flex;
    gap: 40px;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info h2, .contact-form h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 30px;
    color: #555;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Contact Form Styles */
.form-group {
    margin-bottom: 20px;
    width: 48%;
    display: inline-block;
}

.form-group.full-width {
    width: 100%;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

textarea {
    resize: vertical;
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
}

.privacy-checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

/* Map Section */
.map-section {
    padding: 0 5% 60px;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
}

/* Contact Page Responsive */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
    }
}

/* Gallery Page Styles */
.gallery-section {
    padding: 60px 5%;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-button {
    background: none;
    border: none;
    padding: 10px 20px;
    margin: 0 10px 10px 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
}

.filter-button:hover, .filter-button.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    height: 300px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Testimonials Section */
.testimonials {
    background-color: #f8f8f8;
    padding: 60px 5%;
    text-align: center;
}

.testimonials h2 {
    margin-bottom: 40px;
    font-size: 2rem;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.testimonial-stars {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author h4 {
    margin-bottom: 5px;
    font-weight: 600;
}

.testimonial-author p {
    font-style: normal;
    margin-bottom: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Gallery and Testimonials Responsive */
@media (max-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .testimonials-container {
        grid-template-columns: 1fr;
    }
}

/* Privacy Page Styles */
.privacy-section {
    padding: 60px 5%;
}

.privacy-container {
    max-width: 1000px;
    margin: 0 auto;
}

.privacy-container h2 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.privacy-container > p {
    color: #666;
    margin-bottom: 30px;
}

.privacy-content {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.privacy-content .container {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.privacy-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.privacy-content h3 {
    color: var(--primary-color);
    margin: 30px 0 15px;
    font-size: 1.4rem;
}

.privacy-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.privacy-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.privacy-content ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .privacy-content .container {
        padding: 25px;
    }
    
    .privacy-content h2 {
        font-size: 1.7rem;
    }
    
    .privacy-content h3 {
        font-size: 1.2rem;
    }
}

/* About Section */
.about {
    background-color: #f8f8f8;
    padding: 60px 5%;
    text-align: center;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about p {
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

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

/* Media query for responsive menu */
@media (max-width: 992px) {
    .main-menu {
        display: none;
    }
    
    .main-menu.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        padding: 10px 0;
        z-index: 999;
        max-height: 80vh;
        overflow-y: auto;
        animation: fadeInDown 0.3s ease forwards;
    }
    
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .main-menu.show li {
        margin: 5px 15px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding-bottom: 8px;
        width: calc(100% - 30px);
        text-align: left;
    }
    
    .main-menu.show li:last-child {
        border-bottom: none;
    }
    
    .main-menu li a {
        font-size: 0.75rem;
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        padding: 8px 5px;
        font-weight: 500;
    }
    
    .main-menu li a i {
        font-size: 1.1rem;
        margin-right: 10px;
        margin-bottom: 0;
        width: 20px;
        text-align: center;
    }
    
    .main-menu .language-selector {
        order: -1;
        margin: 8px 15px 15px;
        padding: 8px;
        background-color: rgba(0,0,0,0.02);
        border-radius: 4px;
        justify-content: flex-start;
    }
    
    .menu-toggle {
        display: block;
        font-size: 1.4rem;
        cursor: pointer;
        margin-left: auto;
        padding: 8px;
        z-index: 1000;
        color: var(--primary-color);
    }
    
    #company-logo {
        width: 140px !important;
    }
    
    header {
        min-height: 60px;
        max-height: 70px;
        position: relative;
        padding: 5px 4%;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .service-grid, .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .slide-content h1 {
        font-size: 2.2rem;
    }
    
    .slide-content h2 {
        font-size: 1.1rem;
    }
    
    .slide-content {
        width: 90%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 1.8rem;
    }
    
    .slide-content h2 {
        font-size: 1rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-button {
        width: 80%;
        text-align: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-column h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-slider {
        height: 60vh;
    }
    
    .service-item h3 {
        font-size: 0.8rem;
    }
    
    .about-item h3 {
        font-size: 1rem;
    }
    
    /* Verbesserte Touch-Ziele für mobile Geräte */
    .cta-button, button, .filter-button, .service-item, .main-menu li a {
        padding: 12px 20px;
    }
    
    /* Verbesserter Abstand zwischen den Sektionen */
    section {
        padding: 40px 0;
    }
}

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

    .slide-content h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .slide-content h2 {
        font-size: 0.9rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
    }
    
    .slide-content {
        width: 100%;
    }
    
    /* Angepasste Platzhalterbilder für mobile Geräte */
    .service-item .placeholder, .service-image .placeholder {
        height: 180px;
    }
    
    /* Verbesserter Footer für kleine Bildschirme */
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Optimierte Slider-Steuerelemente */
    .slider-controls {
        bottom: 15px;
    }
    
    .prev-slide, .next-slide {
        padding: 8px;
        font-size: 1.2rem;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    #company-logo {
        width: 120px !important;
    }
}

/* Touchscreen-Optimierungen */
@media (hover: none) {
    .cta-button:active, .service-item:active, .gallery-item:active {
        transform: scale(0.98);
    }
}

/* Placeholder Images Styling */
.placeholder-image {
    background-color: #f8f8f8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #666;
    font-weight: bold;
    text-align: center;
    border: 1px dashed #ccc;
}

.placeholder-text {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.placeholder-subtext {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.7;
}

/* Verbesserte placeholder styling voor service card */
.service-image .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    color: #555;
    text-align: center;
    border: 1px dashed #ccc;
    min-height: 350px;
}

.service-image .placeholder .placeholder-number {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
}

.service-image .placeholder .placeholder-text {
    font-size: 20px;
    font-style: italic;
}

/* Mobile Anpassungen für das Sprachmenü */
@media (max-width: 992px) {
    .language-selector {
        margin-left: 0;
        margin-bottom: 10px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding-bottom: 8px;
    }
    
    .language-selector .dropdown {
        position: static;
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: transparent;
        margin-top: 5px;
    }
    
    .language-selector .current-lang {
        display: none;
    }
    
    .main-menu.show .language-selector {
        order: -1;
        width: 100%;
        padding: 0;
        background-color: transparent;
        border-radius: 0;
        justify-content: flex-start;
    }
    
    .language-selector .dropdown a {
        padding: 6px 12px;
        margin-right: 5px;
        border-radius: 3px;
        background-color: rgba(0,0,0,0.03);
    }
    
    .language-selector .dropdown a.active {
        background-color: var(--primary-color);
        color: white;
    }
}

/* Hero Section for other pages like contact, services, etc. */
.hero {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    min-height: 220px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
    animation: fadeIn 1s ease-out forwards;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
    animation: slideInDown 0.8s ease-out forwards;
}

.hero h1:after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, transparent, white, transparent);
    margin: 20px auto 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: widthGrow 1s ease-out forwards;
}

/* Breadcrumb navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.8);
    z-index: 2;
    position: relative;
    animation: fadeIn 1.2s ease-out forwards;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb .separator {
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes widthGrow {
    from {
        width: 20px;
    }
    to {
        width: 100px;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 60px 20px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 50px 20px;
        min-height: 180px;
    }
    
    .hero h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .hero h1:after {
        width: 80px;
        margin: 15px auto 0;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 15px;
        min-height: 150px;
    }
    
    .hero h1 {
        font-size: 1.7rem;
        letter-spacing: 1.5px;
    }
    
    .hero h1:after {
        width: 60px;
        height: 3px;
        margin: 12px auto 0;
    }
}

/* Impressum Page Styles */
.impressum-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.impressum-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.impressum-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.opening-hours {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    max-width: 500px;
}

.opening-hours .day {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.opening-hours .day:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Cookie Table Styles */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px;
}

.cookie-table th, .cookie-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cookie-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: var(--primary-color);
}

.cookie-table tr:hover {
    background-color: #f9f9f9;
}

/* Enhanced Footer Styling */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.legal-links {
    display: flex;
    gap: 15px;
}

.legal-links a {
    position: relative;
    padding: 0 8px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.legal-links a:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -8px;
    color: #444;
}

.legal-links a:hover {
    color: var(--primary-color);
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-column ul li {
    margin-bottom: 12px;
    transition: transform 0.2s, color 0.2s;
}

.footer-column ul li:hover {
    transform: translateX(5px);
    color: var(--primary-color);
}

/* Responsive Styles for Impressum */
@media (max-width: 992px) {
    .impressum-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .impressum-details {
        grid-template-columns: 1fr;
    }
    
    .legal-links {
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 15px 20px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.2);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    flex: 1;
    margin-right: 20px;
    font-size: 14px;
}

.cookie-banner-content p {
    margin: 0 0 10px 0;
}

.cookie-banner-content a {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s;
}

.cookie-banner-content a:hover {
    color: #ccc;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.cookie-btn-accept {
    background-color: #fff;
    color: #000;
}

.cookie-btn-accept:hover {
    background-color: #eee;
}

.cookie-btn-decline {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.cookie-btn-decline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .cookie-banner-content {
        margin-right: 0;
        margin-bottom: 15px;
        font-size: 13px;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        justify-content: space-between;
    }
}

/* Zusätzliche Optimierungen für kleinere Mobilgeräte */
@media (max-width: 480px) {
    .service-image {
        flex: 0 0 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    .service-image img {
        height: 200px !important;
    }
    
    /* Verbesserte Abstände für mobile Ansicht */
    .service-card {
        margin-bottom: 25px;
    }
    
    .service-info {
        padding: 20px;
    }
    
    /* Listenelemente besser lesbar machen */
    .service-info ul li {
        margin-bottom: 8px;
        font-size: 14px;
    }
    
    /* Button besser anpassen */
    .service-info .cta-button {
        width: 100%;
        text-align: center;
    }
}