/* General Body Styling */
body {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}




/* Styling for the header */
header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: white; /* Ensures the background remains white */
    text-align: center; /* Centers the content inside the header */
}

/* Assuming you have a header list like this */
header ul {
    list-style-type: none;  /* Remove bullets */
    padding: 0;
    margin: 0;
    display: flex;          /* Use flexbox for horizontal alignment */
    justify-content: center; /* Center the items */
}

header ul li {
    display: inline-block;   /* Ensure the items are inline */
    margin: 0 15px;          /* Add spacing between items */
}

header ul li a {
    text-decoration: none;   /* Remove underlines from links */
    color: #000;             /* Set your preferred color */
}


/* First Section: Logo and Background Image */
.logo-container {
    background-image: url("images/dplogo-wide.png");
    background-size: 50% 200% ;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 300px;
    position: relative;
}

.logo {
    position: absolute;
    top: 15px;
    left: 20px;
}

.logo a {
    background-image: url("images/DPLogo-clean.png");
    background-size: contain;
    display: inline-block;
    background-repeat: no-repeat;
    border-radius: 20%;
    height: 50px;
    width: 50px;
    text-indent: -999999px;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.1);
}

/* Second Section: Navbar */
.navbar-container {
    width: 100%;
    background-color: white; /* Ensure the background doesn't overlap with the image */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow for separation */
}

.navbar {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 15px 0;
    margin: 0;
}

.nav-item {
    margin-left: 20px;
}

.nav-item a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-item a:hover {
    color: #007bff;
}





/* Main Grid Styling */
.grid-container {
    display: grid;
    justify-items: center; /* Center horizontally */
    align-items: center;   /* Center vertically */
    grid-template-columns: 1fr; /* Single-column grid layout */
    width: 100%;
}

/* Text sections */
/* Fade-in effect with opacity and transform */
/* Initially hidden elements */


/* Visible elements will fade in */
.visible {
    opacity: 1;
    transform: translateY(0); /* Remove the offset */
}

.text0, .text1, .text2, .text3, .text4, .text5 {
    text-align: center; /* Ensure text inside each div is centered */
    max-width: 800px;   /* Limit the width of each text block for better readability */
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    opacity: 0; /* Start invisible for fade-in */
    transform: translateY(30px); /* Start with downward offset */
    transition: opacity 1s ease, transform 1s ease; /* Fade-in transition */
}

/* Fade-in effect triggered by scrolling */
.grid-container .visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Fade-in animation */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0; /* Start off invisible */
    animation: fadeIn 1s ease forwards; /* Apply the fade-in animation */
}

.appointment-form-container {
    display: grid;
    justify-content: center; /* Horizontally centers the container */
    align-items: center;     /* Vertically centers the container */
    position: relative;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.appointment-section {
    display: grid;
    justify-content: center; /* Centers the appointment form horizontally */
    align-items: center;     /* Centers the appointment form vertically */
    height: 70vh;           /* Ensures the container takes full viewport height */
    padding: 0 20px;         /* Optional: Padding to avoid the container sticking to the edges on small screens */
}

.appointment-form-container h2 {
    text-align: center;
    color: #007bff;
    margin-bottom: 20px;
    font-size: 28px;
}

.appointment-form .form-group {
    margin-bottom: 15px;
}

.appointment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.appointment-form input[type="text"],
.appointment-form input[type="email"],
.appointment-form input[type="tel"],
.appointment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    box-sizing: border-box;
}

.appointment-form textarea {
    resize: vertical; /* Allow vertical resizing */
}

.appointment-form .submit-btn {
    width: 50%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    margin-left: 25%;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.appointment-form .submit-btn:hover {
    background-color: #007bff;
}

/* Service Section Styling */
.service-container {
    padding: 40px 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
    text-align: center;
    max-width: 100%;
}

.service-section {
        display: grid;
        justify-content: center; /* Centers the appointment form horizontally */
        align-items: center;     /* Centers the appointment form vertically */
        height: 70vh;           /* Ensures the container takes full viewport height */
        padding: 0 20px;         /* Optional: Padding to avoid the container sticking to the edges on small screens */
}

.service-container h2 {
    color: #007bff;
    margin-bottom: 20px;
    font-size: 28px;
}

.service-item {
    margin-bottom: 20px;
    text-align: left;
}

.service-header {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #333;
}

.service-header:hover {
    background-color: #007bff;
    color: white;
}

.service-list {
    list-style-type: none;
    padding: 10px 20px;
    margin: 0;
    display: none; /* Hidden by default */
    background-color: #f9f9f9;
    border-left: 3px solid #007bff;
    border-radius: 0 0 4px 4px;
}

.service-list li {
    padding: 8px 0;
    font-size: 18px;
    color:  #333;
}

.service-list li:not(:last-child) {
    border-bottom: 1px solid #ddd;
}

/* Formular Section Styling */
#formulare-section {
    padding: 40px 20px;
    background-color: #f5f5f5; /* Light background */
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    margin-bottom: 50px;
    max-width: 800px;
}

#formulare-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color:  #007bff;
    letter-spacing: 1px;
}

#formulare-section p {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 30px;
}

/* Styling the file list */
#formulare-section ul {
    list-style-type: none;
    padding: 0;
}

#formulare-section ul li {
    margin-bottom: 15px;
}

#formulare-section ul li a {
    font-size: 1.1rem;
    text-decoration: none;
    color: #3498db;
    padding: 12px 20px;
    background-color: #fff;
    border: 1px solid #3498db;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
}

#formulare-section ul li a:hover {
    background-color: #3498db;
    color: #fff;
}

/* Footer section styling */
.footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: #333;
    color: #007bff;
    padding: 20px;
    position: relative;
    width: 100%;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section .header {
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 18px;
    margin-bottom: 10px;
    position: relative;
}

.footer-section .header:after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #007bff;
    margin-top: 8px;
}

.footer .contact-details,
.footer-section .content {
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 12px;
    color: #ccc;
    line-height: 1.6;
}

/* Footer links hover effect */
.footer-section .content:hover {
    color: #fff;
}

.location {
    grid-row: 3;
    grid-column: 1;
}
.bbh {
    background-image: url("images/bbh\ Mitglied.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    text-indent: -999999px;
    height: 200px;
    grid-row: 3;
    grid-column: 3;
}

@media (max-width: 480px) {
    .logo-container {
        background-size: 130% 200% ;
    }

    .nav-item a {
        font-size: 14px;
    }

    .footer-section .header {
        font-size: 18px;
    }

    .footer .contact-details,
    .footer-section .content {
        font-size: 14px;
    }

    .grid-container div {
        padding: 5px;
    }

    .footer {
        padding: 15px;
    }
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 600px) {
    .logo-container {
        background-size: 180% 200% ;
    }

    .appointment-form-container {
        padding: 15px;
    }

    .appointment-form-container h2 {
        font-size: 24px;
    }

    .appointment-form input[type="text"],
    .appointment-form input[type="email"],
    .appointment-form input[type="tel"],
    .appointment-form textarea {
        font-size: 14px;
        padding: 8px;
    }

    .appointment-form .submit-btn {
        font-size: 16px;
        padding: 8px;
    }

    .text0, .text5, .text1, .text2, .text3, .text4 {
        font-size: 18px; /* Smaller font size for better readability on mobile */
    }

    #formulare-section h2 {
        font-size: 1.5rem;
    }

    #formulare-section ul li a {
        font-size: 1rem;
        padding: 10px 15px;
    }
}


/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .logo-container {
        background-size: 190% 200% ;
    }

    .logo-container {
        height: 300px; /* Adjust height for smaller screens */
    }

    .grid-container {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
        gap: 30px; /* Adjust gap for smaller screens */
    }

    .pic1, .pic2, .text1, .text2 {
        min-height: 400px; /* Adjust height for smaller screens */
    }
    
    .footer {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    header {
        height: auto;
        padding: 10px;
    }

    .logo {
        top: 10px;
        left: 10px;
    }

    .header-content h1 {
        font-size: 36px;
    }

    .header-content h2 {
        font-size: 20px;
    }

     .navbar {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }

    .nav-item {
        margin-left: 0;
        margin-top: 10px;
    }
}




