html, body {
    height: 100svh; /* Ensure the body takes the full height of the viewport */
    margin: 0; /* Remove default margin */
    overflow-x: hidden; /* Prevent horizontal overflow */
}

body {
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack children vertically */
    font-family: 'Space Mono', monospace;
    
}

header {
    background-color: #BD9490;
    color: white;
    padding: 20px 20px;
    position: relative;
}

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

.logo {
    font-size: 24px;
}

.nav-links {
    display: flex;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.sidebar {
    display: none;
    position: fixed;
    top: 0;
    right: 0; /* Change from left to right */
    width: 250px;
    height: 100%;
    background-color: #BD9490;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5); /* Change shadow direction */
    z-index: 1000; /* Add this line to ensure sidebar is above other content */
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 10px 0;
}

.close {
    font-size: 30px;
    cursor: pointer;
    color: white;
    position: absolute; /* Position it absolutely */
    top: 20px; /* Distance from the top */
    right: 20px; /* Distance from the right */
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .kontakt-container {
        flex-direction: column; /* Stack columns on small screens */
       padding: 0px;
    }
}

.active {
    color: black; /* Set the font color to black for the active link */
}

.sidebar a.active,
.nav-links a.active {
    color: black !important; /* Force the font color to black for the active link */
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Change from center to flex-start */
    text-align: center;
    max-width: 100%;
    padding: 0 10px;
}

h1, h2 {
    margin: 10px 0; /* Add some margin above and below headers */
}

p {
    margin: 10px 0; /* Add some margin above and below paragraphs */
}

ul {
    padding-left: 20px; /* Optional: Add padding to the left for better alignment */
}

ul li {
    margin-bottom: 15px; /* Increase the margin between bullet points */
}

/* Main container for contact page */
.kontakt-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    padding: 0 10px;
    height: 100%;
}

/* Contact info and form containers */
.contact-info, .contact-form {
    flex: 0 1 auto;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

/* Contact info container */
.contact-info {
    flex: 0 1 auto;
    width: 100%;
    max-width: 500px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to the start */
}

/* Contact item styling */
.contact-item {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    padding-left: calc(50% - 100px); /* Center the items with fixed offset */
}

.icon-container {
    width: 30px;
    display: flex;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0; /* Prevent icon container from shrinking */
}

.icon {
    width: 20px;
    height: 20px;
}

/* Ensure text alignment */
.contact-item span {
    display: inline-block;
    text-align: left; /* Align text to the left */
}

/* Contact form specific styles */
.contact-form {
    margin-right: 0;
    padding: 15px;
}

.info-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

/* Footer styling */
footer {
    background-color: #BD9490;
    color: black;
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

footer a {
    color: black;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Media query for mobile screens */
@media (max-width: 768px) {
    body {
        position: relative; /* Enable scrolling */
        min-height: 100vh;
        overflow-y: auto; /* Enable vertical scrolling */
    }

    .kontakt-container {
        flex-direction: column;
        padding: 0;
        margin: 20px auto;
        min-height: auto; /* Remove fixed height on mobile */
    }

    .contact-info, .contact-form {
        max-width: 100%;
    }

    .contact-form {
        margin-bottom: 60px; /* Add space for footer */
    }
}

.contact-form label {
    display: block; /* Make labels block elements */
    margin: 10px 0 5px; /* Add margin for spacing */
    font-weight: bold;
}

.contact-form input, .contact-form textarea {
    width: 95%; /* Full width for inputs */
    padding: 10px; /* Add padding for comfort */
    margin-bottom: 15px; /* Space between inputs */
    border-radius: 8px; /* Increase border radius */
    border: 1px solid #ccc; /* Optional: Add a border */
    box-sizing: border-box; /* Include padding in width calculation */
}

.contact-form input {
    text-align: center; /* Center text for inputs */
}

.contact-form textarea {
    text-align: left; /* Left-align text for textarea */
}


.contact-form button {
    padding: 10px 15px; /* Button padding */
    background-color: #BD9490; /* Button background color */
    color: white; /* Button text color */
    border: none; /* Remove border */
    cursor: pointer; /* Pointer cursor on hover */
    border-radius: 8px; /* Increase border radius */
}

.contact-form button:hover {
    background-color: #a86f6f; /* Darker shade on hover */
}

/* Update the consent checkbox styles */
.consent-checkbox {
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    text-align: left;
}

.consent-checkbox input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 10px;
    width: auto;
}

.consent-checkbox label {
    display: inline;
    margin: 0;
    font-weight: normal;
    text-align: left;
    flex: 1;
}

@media (max-width: 768px) {
    .project-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .kontakt-container {
        flex-direction: column;
        padding: 0px;
    }
    .image-gallery {
        flex-direction: column;
    }
    
}

.email {
    font-family: inherit; /* Ensure it inherits the same font as the rest of the text */
    font-size: 16px; /* Adjust size if necessary */
}

.at-sign {
    font-family: 'Arial', monospace; /* Change to your desired font */
    font-size: 16px; /* Adjust size if necessary */
    font-weight: bold; /* Optional: Make it bold */
}

.image-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    height: 100%;
}

.project-item {
    flex: 0 0 calc(50% - 20px);
    display: flex;
    flex-direction: column;
}

.project-item a {
    width: 100%;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-item img {
    width: 100%;
    height: auto;
    display: block;
}

.project-label {
    margin-top: 10px;
    background-color: #BD9490;
    padding: 10px 20px;
    text-align: center;
}

.project-label span {
    color: black;
    font-weight: normal;
}

.image-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-container {
    width: 100%;
    overflow: hidden;
}

.slider-container img {
    width: 100%;
    height: auto;
    display: block;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(189, 148, 144, 0.7);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 4px;
}

.slider-button:hover {
    background-color: rgba(189, 148, 144, 0.9);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.project-info {
    margin: 20px 0;
    width: 100%;
    max-width: 1200px;
}

h1 {
    width: 100%;


}

p{
    width: 95%;
    max-width: 1200px;
}

span p{
    width: 100%;
    text-align: left;
}

footer p{
    max-width: 100%;
    width: 100%;
}

main h2, main ul {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
}

article {
    margin: 0 10px;
    text-align: left;

/* Media query for smaller screens */
@media (max-width: 768px) {
    .project-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}



/* Form validation styles */
.error {
    border-color: #ff0000 !important;
    background-color: #fff0f0;
}

.error-message {
    color: #ff0000;
    font-size: 12px;
    display: block;
    margin-top: -10px;
    margin-bottom: 10px;
    height: 15px;
}

.success-message {
    color: #28a745;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    background-color: #d4edda;
    border-radius: 4px;
}

.privacy-policy-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.privacy-policy-container h1 {
    margin-bottom: 30px;
    font-size: 2em;
}

.privacy-policy-container section {
    margin-bottom: 30px;
}

.privacy-policy-container h2 {
    margin-bottom: 15px;
    font-size: 1.4em;
}

.privacy-policy-container p, 
.privacy-policy-container ul {
    margin-bottom: 15px;
    line-height: 1.6;
}

.privacy-policy-container ul {
    padding-left: 20px;
}

.privacy-policy-container li {
    margin-bottom: 8px;
}

.image-gallery a {
    transition: opacity 0.3s ease;
}

.image-gallery a:hover {
    opacity: 0.9;
}

/* Add focus styles for better accessibility */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid #BD9490;
    outline-offset: 2px;
}

/* Ensure sufficient color contrast */
.error {
    border-color: #d32f2f;
}

.error-message {
    color: #d32f2f;
}

@font-face {
    font-family: 'Space Mono';
    src: url('../fonts/SpaceMono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Mono';
    src: url('../fonts/SpaceMono-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}