/* Font-Einbindung von Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&display=swap');

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* ------------------------------------------------ */
/* ===== 1. Header & Navigation ===== */
/* ------------------------------------------------ */
header {
    background-color: #E6E6FA; 
    color: #333333; 
    display: flex;
    justify-content: space-between;
    align-items: center; 
    padding: 10px 20px; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); 
    min-height: 80px;
    border-bottom: 2px solid #72708B;
}

.logo {
    display: flex;
    align-items: center; 
    max-width: 50%; 
}

.logo img {
    height: auto;
    width: 80px;
    margin-right: 15px;
    display: inline; 
    margin: 0 15px 0 0;
    transform: none;
}

.company-name {
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    margin: 0;
    padding: 0;
    position: relative; 
    top: 5px;
}

.company-name h1 {
    font-family: 'Caveat', Arial, sans-serif;
    font-size: 32px; 
    color: #333333;
    margin: 0;
    line-height: 1.1; 
}

.company-name p {
    font-family: 'Caveat', Arial, sans-serif;
    font-size: 16px; 
    color: #333333;
    margin: 0;
    line-height: 1.1;
}

nav {
    width: auto; 
    position: relative;
    top: 10px; 
    margin: 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #333333;
    text-decoration: underline; 
    font-size: 18px;
    padding-bottom: 2px; 
    transition: color 0.3s; 
}

nav ul li a:hover {
    color: #555;
    text-decoration: underline;
}

/* Burger-Menü (standardmäßig versteckt) */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: #333333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ------------------------------------------------ */
/* ===== 2. Banner-Styling (Home) ===== */
/* ------------------------------------------------ */
#home {
    width: 100%;
    height: 700px; 
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid #72708B;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 90%;
}

.banner-text h1,
.banner-text p {
    color: #000000; 
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7); 
    font-family: 'Caveat', Arial, sans-serif;
}

.banner-text h1 {
    font-size: 60px;
    font-weight: bold;
    margin: 0 0 20px 0;
}

.banner-text p {
    font-size: 26px;
    margin: 0;
}

/* ------------------------------------------------ */
/* ===== 3. Allgemeine Sektionen & Titel ===== */
/* ------------------------------------------------ */
#services, #about, #contact, #gallery {
    padding: 80px 20px; 
    text-align: center;
}

h2 {
    font-family: 'Caveat', Arial, sans-serif;
    font-size: 60px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#services h2 {
    margin-bottom: 60px;
}

#services, #contact, footer#imprint {
    background-color: #E6E6FA;
}

.services-grid {
    display: flex;
    flex-direction: row;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch; 
}

.service-card {
    border-radius: 10px;
    padding: 25px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-icon {
    max-height: 80px;
    width: auto;
    filter: grayscale(100%) brightness(20%);
    margin-bottom: 15px;
}

.service-card h3 {
    font-family: Arial, sans-serif;
    font-size: 28px; 
    color: #333333;
    margin: 0 0 15px 0;
    text-align: left;
}

.service-card ul {
    text-align: left;
    list-style-position: inside;
    padding-left: 0;
    margin-top: 0;
}

.service-card li {
    font-size: 16px;
    margin-bottom: 8px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ------------------------------------------------ */
/* ===== 4. Galerie-Sektion ===== */
/* ------------------------------------------------ */
#gallery {
    padding: 100px 0 0 0; 
    overflow: hidden; 
    position: relative;
    background-color: #E6E6FA;
}

.gallery-carousel {
    max-width: 100%;
    position: static; 
    overflow-x: scroll; 
    white-space: nowrap; 
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; 
}

.gallery-carousel::-webkit-scrollbar {
    display: none; 
}

.gallery-band {
    display: inline-flex; 
    padding-left: 20px; 
    will-change: transform; 
}

.gallery-band.scrolling {
    animation: scroll 30s linear infinite;
    animation-play-state: running;
}

.gallery-band img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-band img:hover {
    transform: scale(1.05);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-1 * (300px + 20px) * 9)); } 
}

/* Navigations-Pfeile */
.carousel-arrow {
    position: absolute; 
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: #333;
    font-size: 36px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    display: none; 
    z-index: 10;
    transition: background 0.3s, opacity 0.3s;
    opacity: 0.8;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 1);
    opacity: 1;
}

.carousel-arrow.left {
    left: 20px;
}

.carousel-arrow.right {
    right: 20px;
}

/* Lightbox-Modal */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); 
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
}

/* ------------------------------------------------ */
/* ===== 5. About-Sektion ===== */
/* ------------------------------------------------ */
#about {
    background-color: #f4f4f4;
    padding: 100px 20px 80px 20px;
}

.about-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.about-image {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-text {
    width: 50%;
    padding: 20px;
}

.about-text h2 {
    font-family: 'Caveat', Arial, sans-serif;
    font-size: 60px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.about-text p {
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333333;
    line-height: 1.5;
    text-align: justify;
}

/* ------------------------------------------------ */
/* ===== 6. Contact-Sektion ===== */
/* ------------------------------------------------ */
#contact {
    padding: 80px 20px;
}

.contact-info {
    max-width: 600px;
    margin: 60px auto 30px auto;
    text-align: left;
}

.contact-highlight {
    background-color: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #333333;
    border-radius: 5px;
    margin-bottom: 15px;
}

.contact-highlight a {
    color: #333333;
    text-decoration: underline;
}

.contact-highlight a:hover {
    color: #555555;
}

.contact-text {
    margin-bottom: 30px;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 600px; 
    margin: 0 auto;
    padding: 20px;
    background-color: #E6E6FA; 
    border-radius: 8px;
    box-shadow: none; 
    text-align: left;
    border: none;
}

form label {
    margin-top: 15px;
    font-weight: bold;
    color: #333;
}

form input,
form textarea {
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 100%; 
    box-sizing: border-box;
}

form textarea {
    resize: vertical;
}

form button {
    background-color: #333333;
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #555555;
}

#form-status {
    margin-top: 15px;
    font-weight: bold;
}

/* ------------------------------------------------ */
/* ===== 7. Impressum (Footer) - ANGEPASST AN HEADER-STIL ===== */
/* ------------------------------------------------ */
footer#imprint {
    background-color: #E6E6FA;
    color: #333333;
    padding: 10px 20px;
    margin-top: 0; 
    border-top: 2px solid #72708B; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.imprint-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

/* Linker Block: Logo + Name/Adresse */
.imprint-left {
    display: flex;
    align-items: center; 
    gap: 15px; 
    max-width: 50%;
}

.imprint-logo {
    height: auto;
    width: 96px;
    margin-right: 0;
}

.imprint-left .company-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    top: 5px;
}

.imprint-left .company-name .imprint-name {
    font-family: 'Caveat', Arial, sans-serif;
    font-size: 28px;
    color: #333333;
    margin: 0;
    line-height: 1.1;
    font-weight: normal;
}

.imprint-left .company-name p {
    font-family: 'Caveat', Arial, sans-serif;
    font-size: 14px;
    color: #333333;
    margin: 0;
    line-height: 1.1;
    font-weight: normal;
}

.imprint-left .company-name address {
    font-family: 'Caveat', Arial, sans-serif;
    font-size: 14px;
    color: #333333;
    margin: 0;
    line-height: 1.1;
    font-style: normal;
}

/* Rechter Block: Kontaktdaten */
.imprint-right {
    text-align: left; 
    width: auto;
    position: relative;
    top: 10px;
}

.imprint-right p {
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin: 5px 0;
    color: #333333;
}

.imprint-right strong {
    font-weight: normal;
}

.imprint-right a {
    color: #333333;
    text-decoration: underline;
    pointer-events: auto;
    cursor: pointer;
}

.imprint-right a:hover {
    color: #555555;
}

/* ------------------------------------------------ */
/* ===== 8. Back to Top Button ===== */
/* ------------------------------------------------ */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #333333;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top:hover {
    background-color: #555555;
}

/* ------------------------------------------------ */
/* ===== 9. RESPONSIVE DESIGN - MEDIA QUERIES ===== */
/* ------------------------------------------------ */

/* --- 9.1 Tablet-Ansicht (max-width: 900px) --- */
@media (max-width: 900px) {
    
    /* Header & Navigation Tablet */
    .burger-menu {
        display: flex;
        position: relative;
        top: 5px;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: #E6E6FA;
        padding: 80px 20px 20px 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav ul li {
        margin-left: 0;
        margin-bottom: 20px;
        width: 100%;
    }
    
    nav ul li a {
        font-size: 20px;
        display: block;
        padding: 10px 0;
    }
    
    /* Services Tablet */
    .services-grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .service-card {
        width: 100%;
        max-width: 600px;
        height: auto;
    }
    
/* About Tablet */
    #about {
        padding: 200px 20px 80px 20px;
    }
    
    .about-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 60px;
    }

    .about-image, .about-text {
        width: 100%;
        min-width: 0;
    }
    
    .about-image {
        max-height: 400px;
        width: 100%;
        object-fit: contain;
        box-shadow: none;
    }
    
    .about-text {
        text-align: center;
        padding: 0;
    }
    
    .about-text h2 {
        text-align: center;
    }
    
    .about-text p {
        text-align: left;
    }
    
    /* Gallery Tablet */
    .gallery-band img {
        width: 280px;
        height: 200px;
    }
    
    .carousel-arrow {
        font-size: 30px;
        padding: 8px 12px;
    }
    
    /* Animation auf Tablet aktivieren */
    .gallery-band.scrolling {
        animation: scroll 30s linear infinite;
    }

/* Impressum Tablet */
    .imprint-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .imprint-left {
        flex-direction: row;
        align-items: center;
        text-align: left;
        margin-bottom: 20px;
        gap: 15px;
    }
    
    .imprint-left img {
        margin-bottom: 0;
    }
    
    .imprint-left .company-name {
        top: 0;
        text-align: left;
    }
    
    .imprint-left .company-name p {
        white-space: nowrap;
    }
    
    .imprint-right {
        text-align: center;
    }
}

/* --- 9.2 Mobile-Ansicht (max-width: 600px) --- */
@media (max-width: 600px) {
    
 /* Header Mobile */
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }
    
    .logo {
        margin-bottom: 0;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .logo img {
        width: 60px;
    }
    
    .company-name {
        top: 0;
        text-align: left;
        align-items: flex-start;
    }
    
    .company-name h1 {
        font-size: 18px;
        font-weight: bold;
        white-space: nowrap;
    }
    
    .company-name p {
        font-size: 11px;
        line-height: 1.3;
    }
    
    nav {
        width: 200px;
    }
    
    /* Banner Mobile */
    .banner-text h1 {
        font-size: 40px;
    }
    
    /* Services Mobile */
    .service-card {
        width: 100%;
    }

    /* Titles Mobile */
    h2 {
        font-size: 48px;
    }

 /* Gallery Mobile */
    #gallery {
        padding: 60px 0 0 0;
    }
    
    .gallery-band {
        padding-left: 10px;
    }
    
    .gallery-band img {
        width: 250px;
        height: 220px;
    }
    
    /* Animation auf Mobile aktivieren */
    .gallery-band.scrolling {
        animation: scroll 30s linear infinite;
    }
    
    /* Pfeile auf Mobile ausblenden (Touch ist intuitiver) */
    .carousel-arrow {
        display: none !important;
    }
    
    /* Lightbox auf Mobile optimieren */
    #lightbox-img {
        max-width: 95%;
        max-height: 95%;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 35px;
    }

    /* About Mobile */
    #about {
        padding: 120px 20px 60px 20px;
    }
    
    .about-container {
        padding: 0;
    }
    
    .about-text {
        text-align: left;
        padding: 20px;
    }
    
    .about-text h2 {
        text-align: center;
    }

/* Impressum Mobile */
    footer#imprint {
        padding: 15px 10px;
        min-height: auto;
    }
    
    .imprint-container {
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
        gap: 20px;
    }
    
    .imprint-left {
        flex-direction: row;
        align-items: center;
        max-width: 100%;
        gap: 10px;
        margin-top: 15px;
    }
    
    .imprint-logo {
        width: 75px;
    }
    
    .imprint-left .company-name {
        top: 0;
    }
    
    .imprint-left .company-name .imprint-name {
        font-size: 20px;
        font-weight: bold;
    }
    
    .imprint-left .company-name p {
        font-size: 12px;
    }
    
    .imprint-right {
        top: 0;
        text-align: center;
    }
    
    .imprint-right p {
        font-size: 11px;
        margin: 2px 0;
        line-height: 1.4;
    }
    
    .imprint-right strong {
        display: inline;
        min-width: auto;
        margin-right: 5px;
    }
    
    .imprint-right a {
        color: #333333;
        text-decoration: underline;
        pointer-events: auto;
        cursor: pointer;
    }
    
    .imprint-right a:hover {
        text-decoration: underline;
    }
}