/* General Styles */

html {scroll-behavior: smooth;}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: #f7f7f7;
    font-size: 16px; /* Base font size */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    margin: 0 0 15px 0;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: #333;
}

h2 {
    font-size: 2.5rem; /* Relative font size */
    text-align: center;
    margin-bottom: 40px;
}

p {
    font-size: 1rem; /* Relative font size */
    line-height: 1.8;
}

/* Header Section */
.header {
    background-image: url(images/Haus.jpg); /* Insert picture here */
    background-size: cover;
    background-position: center;
    height: 100vh;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-align: center;
}

.header:after {
    content: '';
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.navbar {
    display: flex;
    justify-content: space-between; /* Space between logo and nav links */
    align-items: center;
    padding: 20px 30px;
    position: absolute;
    width: 100%; /* Full-width navbar */
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 10;
    box-sizing: border-box; /* Ensures padding does not affect total width */
}

.logo {
    font-size: 1.75rem; /* Relative font size */
    font-weight: 700;
    margin-right: auto; /* Add margin to push links to the right */
}

.logo-img {
    max-height: 50px; /* Adjust the height as needed */
    margin-right: 10px; /* Space between the image and the text */
}

nav {
    flex-grow: 1;
    text-align: right; /* Aligns the nav links to the right */
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav ul {
    display: flex;
    justify-content: flex-end; /* Ensures links are right-aligned */
    gap: 20px;
    align-items: center;
}

nav ul li a {
    color: #fff;
    padding: 8px 16px;
    transition: background 0.3s;
    border-radius: 5px;
    display: block;
    font-size: 1rem; /* Relative font size */
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Menu Icon */
.menu-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    height: 24px;
    width: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.menu-icon span {
    background-color: #fff;
    height: 3px;
    width: 100%;
    display: block;
    transition: all 0.3s ease;
}

.menu-icon.cross span:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    left: 0;
}

.menu-icon.cross span:nth-child(2) {
    opacity: 0;
}

.menu-icon.cross span:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
    top: 50%;
    left: 0;
}

/* Hero Section */
.hero {
    text-align: center;
    z-index: 1;
    color: #fff;
    padding: 20px;
}

.hero h2 {
    font-size: 4rem; /* Relative font size */
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem; /* Relative font size */
}

/* About Section */
.about-section {
    padding: 60px 0;
    background-color: #fff;
}

.about-section:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    height: 300px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem; /* Relative font size */
    text-align: center;
    color: #999;
}

.about-image img {
    width: 100%; /* Make the image responsive */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Optional: adds rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Optional: adds shadow */
}

/* Features Section */
.features-section {
    padding: 60px 0;
}

.features-gallery {
    display: flex;
    gap: 30px;
}

.feature-item {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.feature-image {
    height: 200px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem; /* Relative font size */
    text-align: center;
    color: #999;
}

.feature-image img {
    width: 100%; /* Make the image responsive */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Optional: adds rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Optional: adds shadow */
}

.feature-description {
    padding: 20px;
    text-align: center;
}

.feature-description h3 {
    font-size: 1.5rem; /* Relative font size */
    margin-bottom: 15px;
}

.feature-description p {
    font-size: 1rem; /* Relative font size */
}

.feature-item1:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.feature-item1 {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.features-section1 {
    padding: 60px 0;
    background-color: #fff;
}

/* Pricing Section */
.pricing-section {
    padding: 60px 0;
    background-color: #fff;
}

.pricing-table {
    display: flex;
    gap: 30px;
}

.pricing-option {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.pricing-option h3 {
    font-size: 1.5rem; /* Relative font size */
    margin-bottom: 15px;
}

.pricing-option p {
    font-size: 1rem; /* Relative font size */
    margin-bottom: 20px;
}

.pricing-option ul {
    list-style-type: none;
    padding: 0;
    font-size: 1rem; /* Relative font size */
}

.pricing-option ul li {
    padding: 5px 0;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background-color: #fff;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    font-size: 2.5rem; /* Relative font size */
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem; /* Relative font size */
}

textarea {
    height: 100px;
    resize: vertical;
}

button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem; /* Relative font size */
    cursor: pointer;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background-color: #555;
}

/* Footer Section */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.footer p {
    margin: 0;
    font-size: 0.875rem; /* Relative font size */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 70px;
        right: 0;
        background-color: rgba(0, 0, 0, 0.9);
        width: 100%;
        padding: 20px 0;
        border-radius: 0;
        text-align: right; /* Aligns mobile menu to the right */
    }

    .menu-icon {
        display: flex;
        margin-left: 15px; /* Add margin to push icon to the right */
    }

    nav ul.show {
        display: flex;
    }

    .about-content {
      flex-direction: column;
    }

    .FeWo-content {
      flex-direction: column;
    }

    .features-gallery,
    .pricing-table {
        flex-direction: column;
    }

    .feature-item,
    .pricing-option {
        flex: 1 1 100%;
    }

    /* Adjust font sizes for tablet devices */
    body {
        font-size: 14px; /* Smaller base font size */
    }

    h2 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.25rem;
    }

    .feature-description h3,
    .pricing-option h3 {
        font-size: 1.25rem;
    }

    .pricing-option p {
        font-size: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo-img {
        max-height: 40px; /* Adjust for smaller screens */
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    .about-image,
    .feature-image {
        font-size: 1rem;
    }

    .contact-form h2 {
        font-size: 2rem;
    }

    /*gallery */

    .gallery-container {
      max-width: 800px;
      margin: 0 auto;
      text-align: center;
    }

    .main-image img {
      width: 100%;
      height: auto;
      border-radius: 10px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .thumbnails {
      display: flex;
      justify-content: center;
      margin-top: 20px;
    }

    .thumbnails img {
      width: 100px;
      height: auto;
      margin: 0 10px;
      cursor: pointer;
      border: 2px solid transparent;
      border-radius: 5px;
      transition: border 0.3s;
    }

    .thumbnails img:hover,
    .thumbnails img.active {
      border-color: #333;
    }
}

@media (max-width: 768px) {
    .surrounding-content {
        flex-direction: column;
        align-items: center; /* Center align items in the column */
    }

    .surrounding-text,
    .surrounding-image {
        width: 100%; /* Ensure full width in a column layout */
        text-align: center; /* Optional: center the text */
    }

    .surrounding1-gallery {
            flex-direction: column;
            align-items: stretch; /* Allow items to stretch to full width */
        }

        .surrounding1-item {
            width: 100%; /* Ensure full width for each item in column layout */
            margin-bottom: 20px; /* Space between stacked items */
        }
}

@media (max-width: 480px) {
    /* Adjust font sizes for mobile devices */
    body {
        font-size: 12px; /* Even smaller base font size */
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about-section h2,
    .features-section h2,
    .pricing-section h2,
    .contact-form h2 {
        font-size: 1.5rem;
    }

    .feature-description h3,
    .pricing-option h3 {
        font-size: 1rem;
    }

    .pricing-option p {
        font-size: 0.875rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    nav ul li a {
        font-size: 0.8rem;
    }

    .about-image,
    .feature-image {
        font-size: 0.875rem;
    }

    .contact-form h2 {
        font-size: 1.5rem;
    }

    input[type="text"],
    input[type="email"],
    textarea,
    button[type="submit"] {
        font-size: 0.875rem;
    }

    .footer p {
        font-size: 0.75rem;
    }
}


/* Responsive Styles Gallery */
@media (max-width: 600px) {
    .thumbnails {
        flex-wrap: wrap;
    }

    .thumbnails img {
        margin: 5px;
        width: 80px;
    }
}

/* Figcaption */

figcaption {
    margin-top: 10px;
    font-size: 1rem;
}

/* FeWo Section */
.FeWo-section {
    padding: 60px 0;
    background-color: #fff;
}

.FeWo-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.FeWo-text {
    flex: 1;
}

.FeWo-image {
    flex: 1;
    height: 300px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem; /* Relative font size */
    text-align: center;
    color: #999;
}

.FeWo-image img {
    width: 100%; /* Make the image responsive */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Optional: adds rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Optional: adds shadow */
}
.FeWo1-section {
    padding: 60px 0;
    background-color: #f7f7f7
}

/* Surrounding section */

.surrounding-section {
    padding: 60px 0;
    background-color: #fff;
}

.surrounding-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.surrounding-text {
    flex: 1;
}

.surrounding-image {
    flex: 1;
    height: 300px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem; /* Relative font size */
    text-align: center;
    color: #999;
}

.surrounding-image img {
    width: 100%; /* Make the image responsive */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Optional: adds rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Optional: adds shadow */
}

/* surrounding1 Section */

.surrounding1-section {
    padding: 60px 0;
    background-color: #f7f7f7;
}

/* Gallery Container */
.gallery-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.main-image img {
    background-color: #f7f7f7;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.thumbnails img {
    width: 100px;
    height: auto;
    margin: 0 10px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border 0.3s, transform 0.3s;
}

.thumbnails img:hover,
.thumbnails img.active {
    border-color: #333;
    transform: scale(1.05);
}

.gallery-content {
  background-color: #fff;
}

.gallery-content1 {
  background-color: #f7f7f7;
}


.FeWo1-section {
    text-align: center; /* Center content horizontally */
}

.FeWo1-section .FeWo1-content {
    display: flex;
    justify-content: center;  /* Ensure the content is centered */
    align-items: center; /* Vertically centers the content */
}

.FeWo1-section .FeWo1-script {
    display: inline-block; /* This will make sure the script stays inline and is centered */
    text-align: center; /* Center text inside this block */
}
