/* Allgemeine Stile */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    border: solid 0px;
    box-sizing: border-box;
    overflow-x: hidden; /* ← Versteckt horizontalen Scroll */
}

.container {
    width: 100%;
    max-width: 98vw;
    margin: 0 auto;
    padding: 2%;
    display: flex;
    flex-direction: column;
    min-height: 80vh;
    border: solid 0px;
    box-sizing: border-box;
}

/* Header-Stile */
header {
    text-align: center;
    padding: 40px 0;
}

.logo {
    max-width: 300px;
    height: auto;
}

/* Footer */
footer {
    position: center;
    margin-top: auto;
    color: #666;
    text-align: right;
    font-size: 12px;
    padding: 5px 10px 5px 20px; /* Oben, Rechts, Unten, Links */
    width: 100%;
    box-sizing: border-box;
    border: solid 0px;
    /* box-sizing: border-box; */
}

/* Hauptinhalt */
main {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* padding: 0 20px 20px 20px; */
    border: solid 0px;
    box-sizing: border-box;
    width: 100%
    /* max-width: 100%; */
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #222;
    border: solid 0px;
}

p {
    font-size: 1.0rem;
    max-width: 600px;
    margin-bottom: 30px;
    border: solid 0px;
}


.image-background {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #3e3c5c;
    width: 100%;
    height: 400px;
    z-index: -1; /* Hintergrund liegt im Hintergrund */
    box-sizing: border-box;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 100%; /* ← WICHTIG */
    /* margin: 3vh auto 10px auto; */
    /* padding: 0 20px; */
    border: solid 0px;
    box-sizing: border-box;
    left: 0; /* Zurücksetzen */
}

.image-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: brightness(0.7);
    opacity: 0.5;
    box-sizing: border-box;
    max-width: 100%; /* ← WICHTIG für das Bild */
}

.text-overlay {
    position: absolute;
    top: 0;
    left: 4%;
    color: white;
    z-index: 1;
    margin: 8px;
    padding: 1% 2%;
    background: rgba(0, 0, 0, 0.6);
    font-weight: bold;
    font-size: clamp(12px, 4vw, 24px);
    line-height: 1.3;
    max-width: 92%;
}

/* Für größere Bildschirme */
@media (min-width: 768px) {
  .text-overlay {
    top: 5%;
    left: 4%;
    padding: 1.5% 3%;
    font-size: clamp(14px, 3vw, 28px);
  }
}

/* Sehr kleine Bildschirme */
@media (max-width: 480px) {
  .text-overlay {
    font-size: clamp(10px, 3.5vw, 16px);
    padding: 2% 3%;
  }
}

.section {
    width: 100%;
    margin: 40px 0;
    padding: 20px;
    position: relative; /* Stellt sicher, dass sie über dem Hintergrund liegen */
    z-index: 1;
    border: solid 0px;
}

/* Kontaktformular Stile */
.contact-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.contact-form-wrapper {
    background: #ffffff;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

.contact-heading {
    font-size: 2.2rem;
    color: #3e3c5c;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
}

.contact-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3e3c5c;
    box-shadow: 0 0 0 3px rgba(62, 60, 92, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.form-checkbox {
    margin-top: 4px;
    transform: scale(1.2);
}

.checkbox-label {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.privacy-link {
    color: #3e3c5c;
    text-decoration: none;
    font-weight: 600;
}

.privacy-link:hover {
    text-decoration: underline;
}

.submit-btn {
    background-color: #3e3c5c;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #2a2845;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(62, 60, 92, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .contact-container {
        margin: 40px auto;
        padding: 0 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-form-wrapper {
        padding: 30px 25px;
        width: 100%;
        max-width: 100%; /* Ändern auf 100% */
        box-sizing: border-box; /* WICHTIG: Padding in Breite einrechnen */
    }
    
    /* NEU: Schriftgrößen reduzieren */
    .form-label {
        font-size: 0.85rem; /* Vorher: 0.95rem */
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 0.9rem; /* Vorher: 1rem */
        padding: 10px 14px; /* Padding etwas reduzieren */
    }
    
    .checkbox-label {
        font-size: 0.8rem; /* Vorher: 0.9rem */
    }
    
    .submit-btn {
        font-size: 1rem; /* Vorher: 1.1rem */
        padding: 14px 28px; /* Padding reduzieren */
    }
    
    /* Ihre bestehenden Styles bleiben */
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .checkbox-group {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .contact-form-wrapper {
        padding: 20px 15px; /* Noch weniger Padding */
    }
    
    .contact-heading {
        font-size: 1.4rem; /* Noch kleiner */
    }
    
    /* Schriftgrößen weiter reduzieren */
    .form-label {
        font-size: 0.8rem;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .checkbox-label {
        font-size: 0.75rem;
    }
    
    .submit-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    /* Gap zwischen Formularfeldern reduzieren */
    .form-row {
        gap: 12px;
    }
}

/* Validierungsstile */
.form-input:invalid:not(:focus):not(:placeholder-shown),
.form-select:invalid:not(:focus) {
    border-color: #e74c3c;
}

.form-input:valid:not(:focus):not(:placeholder-shown),
.form-select:valid:not(:focus) {
    border-color: #27ae60;
}

/* Loading State */
.submit-btn.loading {
    background-color: #666;
    cursor: not-allowed;
}

.submit-btn.loading:hover {
    transform: none;
    box-shadow: none;
}


/* Navigation-Stile */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 97vh;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.nav-link:hover {
    color: #3e3c5c;
}

/* Aktiver Navigationslink */
.nav-link.active {
    color: #3e3c5c;
    font-weight: 700;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3e3c5c;
    animation: slideIn 0.3s ease;
}

/* Alternative Version mit Hintergrund */
.nav-link.active-alt {
    color: #3e3c5c;
    font-weight: 700;
    background-color: #f8f8fa;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Noch eine elegante Variante */
.nav-link.active-elegant {
    color: #3e3c5c;
    font-weight: 600;
    border-bottom: 2px solid #3e3c5c;
    padding-bottom: 8px;
}

/* Animation für den Unterstrich */
@keyframes slideIn {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Für Mobile Ansicht anpassen */
@media (max-width: 768px) {
    .nav-link.active::after {
        bottom: 0;
        width: 4px;
        height: 100%;
        left: -10px;
        background-color: #3e3c5c;
    }
    
    .nav-link.active-alt {
        background-color: transparent;
        border-left: 4px solid #3e3c5c;
        border-radius: 0;
        padding-left: 16px;
    }
}

/* Burger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 21px;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.construction-icon {
    font-size: 3rem;
    margin: 30px 0;
    animation: pulse 2s infinite;
}


/* Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 10px 0;
    }
    
    .nav-link {
        padding: 15px 20px;
        display: block;
    }
    
    .logo {
        max-width: 200px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}
