/* === Fonts: Nunito Variable === */
@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-Italic-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
}

/* === Fonts: Merienda === */
@font-face {
    font-family: 'Merienda';
    src: url('../fonts/Merienda-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Merienda';
    src: url('../fonts/Merienda-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Merienda';
    src: url('../fonts/Merienda-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Merienda';
    src: url('../fonts/Merienda-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
}

/* === Reset & Basics === */
body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    background-color: #000407;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 {
    margin-bottom: 0.5rem;
	margin-top: 2rem;
}

h1 + p, h2 + p, h3 + p {
    margin-top: 0;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.content-with-image {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.content-with-image img {
    height: 150px;
    max-width: 100%;
}

.center-text {
    text-align: center;
max-width: 600px;
}


header, footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    width: 100%;
    z-index: 100;
}

/* === Header === */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 20px 40px; /* Gleichmäßiger Abstand links und rechts */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
}

.header-left {
    text-align: left;
    justify-self: start;
    font-size: 1.2rem;
    font-weight: 400;
}

.header-center {
    text-align: center;
    justify-self: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.header-right {
    text-align: right;
    justify-self: end;
	margin-right: 80px;
}

.header-right img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.header-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 15px 0 0 0;
    grid-column: 1 / -1; /* Nimmt die volle Breite im Grid ein */
}

.nav-btn {
    text-decoration: none;
    color: #fff;
    background-color: #4b6986;
    padding: 4px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    position: relative;
    font-weight: bold;
}

.nav-btn:hover {
    background-color: #2980b9;
}

.nav-marker {
    margin-right: 8px;
    display: none;
    color: #fff;
    font-weight: bold;
}

.nav-btn.active .nav-marker {
    display: inline;
}


main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 120px;
}

h1 {
    font-size: 2.5rem;
    margin: 20px 0;
}

footer {
    bottom: 0;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

footer a {
    color: #e1e9ed;
}

.subtext {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Szenario 3: Nur 1 Bild – rechts positioniert mit Textfluss */
.image-single {
    float: right;
    margin: 0 0 20px 20px;
    max-width: 300px;
    height: auto;
}

/* Szenario 2 & 4: Mehrere Bilder – normale Grid-Anordnung */
.image-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 8px;
}

.image-section img {
    max-width: 100%;
    height: auto;
    width: 300px;
}

.main-text {
    font-size: 1rem;
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 60px;
}

/* === Animationen === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-delay-1 { animation-delay: 0.3s; }
.fade-in-delay-2 { animation-delay: 0.6s; }
.fade-in-delay-3 { animation-delay: 0.9s; }
.fade-in-delay-4 { animation-delay: 1.2s; }

/* === Bild Hover Effekt === */
.image-section img {
    transition: transform 0.4s ease;
}

.image-section img:hover {
    transform: scale(1.05);
}

/* Formular: Fehlerhervorhebung */
.input-error {
    border: 2px solid #e74c3c;
    background-color: #fdecea;
}

/* Inaktiver Button */
#submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Aktiver Button */
#submit-btn {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#submit-btn:hover:enabled {
    background-color: #2980b9;
}



/* === Responsive Design === */
@media (max-width: 768px) {
    header, footer {
        flex-direction: column;
        text-align: center;
        position: relative;
        padding-left: 0; /* Gilt für beide */
    }
	
	.footer-nav {
   position: sticky;
}


    .header-left, .header-center, .header-right {
        margin: 5px 0 5px 15px;
    }

    .header-right {
        margin-right: 40px;
    }

    .image-section img {
        width: 90%;
    }
	
	main {
    padding: 40px 18px;
}
	
}


/* FORM - Anfrage */

/* === Kontaktformular Styling === */
form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    text-align: left;
}

input[type="text"], 
input[type="tel"], 
input[type="email"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit; /* Optional: Gleiche Schrift wie die anderen Felder */
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-row div {
    flex: 1;
}

fieldset {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    text-align: left;
}

fieldset legend {
    font-weight: bold;
}

fieldset label {
    display: block;
    margin: 8px 0;
}

#submit-btn {
    background-color: rgba(90, 175, 106, 0.9);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#submit-btn:disabled {
    background-color: #a4a4a4;
    cursor: not-allowed;
}

#submit-btn:hover:enabled {
    background-color: rgba(42, 156, 63, 0.9); /* Grün, leicht transparent */
}

.success-message {
    position: fixed;
    top: 220px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(74, 169, 93, 0.9); /* Grün, leicht transparent */
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: none;
    z-index: 9999;
}


/* === Mobile Optimierung Kontaktformular === */
@media (max-width: 600px) {
    form {
        padding: 0 10px;
    }

    .form-row {
        flex-direction: column;
    }

    input[type="text"], 
    input[type="tel"], 
    input[type="email"] {
        width: 100%;
    }

    #submit-btn {
        width: 100%;
    }
}

