/* Ensure the html and body take up the full height */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100%; /* Ensure the body fills the entire viewport height */
    font-family: 'Kefa', sans-serif; /* Use Kefa as the primary font, with sans-serif as a fallback */
    display: flex;
    flex-direction: column; /* Use Flexbox to structure the layout */
    background-image: url('Naturheilpraxis_Dufner_Schiltach_BG-P.webp'); /* Background for PC */
    background-size: cover; /* Ensure the image scales proportionally to cover the entire body */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent the image from repeating */
    color: white; /* Change text color to white */
}

/* Background for mobile devices */
@media (max-width: 768px) {
    body {
        background-image: url('Naturheilpraxis_Dufner_Schiltach_BG-M.webp'); /* Background for mobile devices */
        background-size: cover; /* Ensure it also fills the screen on mobile */
        background-position: center;
        background-repeat: no-repeat;
    }
}

/* Header styles */
header {
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent background for readability */
    padding: 1rem 0;
    text-align: center;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

header nav ul li a {
    font-size: 1rem;
    text-decoration: none;
    color: white; /* Change navigation links to white */
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #007BFF;
}

/* Main content should take up all available space */
main {
    flex: 1; /* Allow the main content to grow and fill the available space */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content at the top */
}

/* Logo Section */
#logo {
    text-align: center;
    margin: 2rem 0; /* Add spacing around the logo */
}

#logo img {
    max-width: 200px; /* Adjust the size of the logo */
    height: auto; /* Maintain aspect ratio */
}

/* Section styles */
section {
    padding: 2rem;
    text-align: center;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white; /* Ensure section headings are white */
}

section p, section ul {
    font-size: 1rem;
    margin: 0 auto;
    max-width: 600px;
    color: white; /* Ensure section text is white */
}

section ul {
    list-style: none;
    padding: 0;
}

section ul li {
    margin: 0.5rem 0;
}

/* Add extra margin under the Kontakt section */
#contact {
    margin-bottom: 2rem; /* Adjust the value as needed */
}

/* Style for email link in the Kontakt section */
#contact a {
    color: white; /* Make the link text white */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s; /* Add a smooth transition for hover effect */
}

#contact a:hover {
    color: #007BFF; /* Change color on hover (optional) */
}

/* Footer styles */
footer {
    background: #333;
    color: white; /* Footer text color is white */
    text-align: center;
    padding: 1rem 0;
    margin-top: auto; /* Push the footer to the bottom of the page */
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}