/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

/* Top Bar */
.top-bar {
    background-color: #0d73b6; /* Blue matching the image */
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-container {
    display: flex;
    justify-content: flex-end; /* Changed from space-between */
    align-items: center;
}

.social-icons a {
    color: #fff;
    margin-right: 15px;
    font-size: 14px;
    transition: opacity 0.3s;
}

.social-icons a:hover {
    opacity: 0.8;
}

.contact-info span {
    margin-left: 20px;
}

.contact-info a {
    color: #fff;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-info i {
    margin-right: 5px;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* slightly more pronounced but soft shadow */
    padding: 20px 0; /* Increased from 10px */
    border-bottom: 1px solid #f0f0f0;
}

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

.logo img {
    height: 60px; /* Matched from HTML info */
    display: block;
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 15px;
    color: #555;
    transition: color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    color: #3399cc; /* Active light blue color */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sign-in {
    font-size: 14px;
    color: #3399cc; /* Matched sign in text color */
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
}

/* Hamburger Menu */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #333;
    transition: all 0.3s;
}

/* Carousel Section */
.carousel-section {
    padding-top: 0;
    margin-bottom: 80px; /* Increased from 50px */
}

.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-inner {
    display: flex;
    width: 100%;
}

.carousel-item {
    min-width: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Give it a reasonable max height */
}

/* Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s;
    z-index: 10;
}

.carousel-control:hover {
    color: rgba(255, 255, 255, 1);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* Carousel control icons customized */
.carousel-control i {
    font-size: 32px; /* Slightly larger */
    border: none; /* Removed the weird border */
    background-color: transparent;
    padding: 0;
    display: inline-block;
}

/* Override fontawesome square caret for standard square border */
.carousel-control.prev i:before,
.carousel-control.next i:before {
    /* Optional: replace icon with actual square border box if desired, 
       but standard fa-solid fa-square... works fine */
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid #fff;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s;
}

.carousel-indicators button.active {
    background-color: #fff;
}

/* Main Title Section */
.main-title-section {
    text-align: center;
    margin-bottom: 80px; /* Increased from 50px */
}

.main-title {
    font-weight: 500; /* Medium weight */
}

/* Features Section */
.features-section {
    padding-bottom: 80px; /* Increased from 50px */
}

.features-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.feature-item h2 {
    font-weight: 500;
    margin-bottom: 20px;
}

.feature-item p {
    color: #444;
    margin-bottom: 10px;
    font-size: 16px;
}

/* Video Section */
.video-section {
    margin-bottom: 100px; /* Increased from 50px and added more room */
    padding-top: 40px; /* Added padding above video */
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Stealth mode to hide YouTube branding (title/icon) */
.video-wrapper.stealth {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.video-wrapper.stealth iframe {
    top: -60px; /* Hide the top title bar */
    height: calc(100% + 120px); /* Extend height to crop top and bottom slightly */
}

/* Flyer Section */
.flyer-section {
    text-align: center;
    margin-bottom: 100px; /* Increased from 60px */
}

.flyer-section h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #000;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f1f3f5;
    color: #333;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    border: 1px solid #e9ecef;
    transition: background-color 0.3s;
}

.btn-download:hover {
    background-color: #e2e6ea;
}

/* Text Carousel Section */
.text-carousel-section {
    text-align: center;
    margin-bottom: 80px;
}

.relative {
    position: relative;
}

.text-carousel {
    overflow: hidden;
    margin: 0 auto;
    max-width: 600px; /* Constrain width to look nice */
}

.text-carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.text-carousel-item {
    min-width: 100%;
}

.text-carousel-item h2 {
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #000;
    letter-spacing: -0.5px;
}

.text-carousel-item p {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.text-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s;
    padding: 10px;
}

.text-carousel-control:hover {
    color: #999;
}

.text-carousel-control.prev {
    left: 20px;
}

.text-carousel-control.next {
    right: 20px;
}

/* Footer */
.footer {
    padding: 40px 0; /* Increased from 20px */
    font-size: 13px; /* Slightly larger footer text */
    color: #888;
    border-top: 1px solid #f0f0f0;
}

/* Testimonials Section (Galerie) */
.testimonials-section {
    padding: 60px 0;
    text-align: center;
}

.testimonials-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
}

.testimonial {
    flex: 1;
    min-width: 300px;
}

.testimonial-icon {
    font-size: 32px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.testimonial p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}

.testimonial-author {
    color: #2980b9; /* Matching blue text */
    font-weight: 600;
    font-size: 13px;
}

/* Gallery Section (Galerie) */
.gallery-section {
    padding-bottom: 80px;
}

.gallery-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.gallery-column {
    flex: 1;
    min-width: 300px;
}

.gallery-title {
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 0px;
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #fff;
    border-left: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.gallery-column:last-child .image-wrapper {
    border-right: 1px solid #e0e0e0;
}

.image-placeholder {
    color: #fff;
    font-size: 20px;
}

.image-placeholder i {
    color: #3f9dd4;
    background: #e8f4fa;
}

/* Service Section */
.service-section {
    padding: 80px 0 100px 0; /* Increased from 40px 0 80px 0 */
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 40px;
    max-width: 600px; /* Constrain width to look more compact like the image */
}

.service-table {
    width: 100%;
    border-collapse: collapse;
}

.service-table th {
    text-align: left;
    padding: 10px 10px 20px 0;
    font-weight: 400;
    color: #333;
}

.service-table th:not(:first-child) {
    min-width: 70px;
}

.service-table td {
    padding: 10px 10px 10px 0;
    vertical-align: top;
    color: #333;
    font-size: 14px;
}

.service-table tfoot td {
    padding-top: 30px;
}

.service-info-blocks {
    margin-top: 20px;
}

.info-block {
    margin-bottom: 25px;
}

.info-block p {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

.info-block h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

/* Impressum Section */
.impressum-section {
    padding: 60px 0;
}

.impressum-section p {
    margin-bottom: 15px;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

.impressum-section h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 20px;
}

/* Contact Section */
.contact-section {
    padding: 100px 0; /* Increased from 60px */
}

.contact-title {
    color: #0d73b6;
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 20px;
}

.contact-details p {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}

.contact-flyer {
    margin-top: 60px;
}

.contact-flyer h3 {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
}

/* Responsive Menu and Layout */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 100;
        padding: 20px 0;
    }
    .main-nav.active {
        display: flex;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .header-container {
        position: relative;
    }
    .top-bar-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .contact-info span {
        margin-left: 0;
    }
    .features-grid {
        flex-direction: column;
    }
}
@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
}
