.navbar {
    position: fixed;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100vw - 40px);
    padding: 18px 28px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    background: transparent;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        background 0.4s ease,
        padding 0.4s ease,
        box-shadow 0.4s ease,
        backdrop-filter 0.4s ease;
    z-index: 10000;
}

.contact-hero {
    position: relative;

    height: 60vh;
    min-height: 420px;

    overflow: hidden;
}

.contact-hero-img {
    position: absolute;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;

    justify-content: center; /* vertikal zentriert */
    align-items: flex-start; /* links ausrichten */

    text-align: left;

    padding-left: 10%;
    padding-right: 20px;

    color: white;

    background: rgba(0, 0, 0, 0.35);
}

.contact-hero-overlay h1 {
    font-size: clamp(3rem, 5vw, 4rem);

    margin-bottom: 15px;
}

.contact-hero-overlay h1 {
    font-size: clamp(3rem, 5vw, 4rem);
    margin-bottom: 10px;
}

.contact-section {
    padding: 60px 40px;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f1efe7;
    border-radius: 20px;
}

.contact-section {
    margin-top: 120px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-text p {
    color: #444;
    margin-bottom: 20px;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 35px;
    animation: formFade 0.6s ease;
}

.contact-form {
    background: white;

    padding: 35px;

    border-radius: 18px;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04);

    display: flex;
    flex-direction: column;

    gap: 30px;
}

@keyframes formFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid #e5e2d8;
    box-sizing: border-box;
    font-size: 0.95rem;
    font-family: inherit;

    background: #faf9f5;

    transition: all 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;

    border-color: #c7a97f;

    box-shadow: 0 0 0 3px rgba(199, 169, 127, 0.15);

    background: white;
}

.form-group {
    position: relative;
}

.select-wrapper {
    position: relative;
    margin: 12px 0;
}

.select-wrapper select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    appearance: none;
    cursor: pointer;
}

/* Custom Pfeil */

.select-wrapper::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
}

.select-wrapper label {
    position: absolute;
    left: 16px;
    top: 50%;

    transform: translateY(-50%);
    background: #faf9f5;

    padding: 0 6px;

    color: #777;
    font-size: 0.9rem;

    pointer-events: none;

    transition: all 0.2s ease;
}

.select-wrapper:has(select:focus) label,
.select-wrapper:has(select:not([value=""])) label {
    top: 5px;
    font-size: 0.75rem;
    color: #c7a97f;
}

.form-group-select select {
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 16px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 1rem;
    background: #faf9f5;
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 50%;

    transform: translateY(-50%);
    background: #faf9f5;

    padding: 0 6px;

    color: #777;
    font-size: 0.9rem;

    pointer-events: none;

    transition: all 0.2s ease;
}

.dynamic-fields {
    display: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -8px;

    font-size: 0.75rem;

    color: #c7a97f;
}
.contact-form button {
    background: #554c40;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 40px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: #463e34;
}

/* Kalender Container */
.flatpickr-calendar {
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    font-family: "Inter", sans-serif;
}

/* Monat / Header */
.flatpickr-month {
    color: #333;
    font-weight: 500;
}

/* Wochentage */
.flatpickr-weekday {
    color: #9b8b73;
    font-weight: 500;
}

/* Normale Tage */
.flatpickr-day {
    border-radius: 8px;
}

/* Hover */
.flatpickr-day:hover {
    background: #efe6d6;
}

/* Ausgewählter Tag */
.flatpickr-day.selected {
    background: #c7a97f;
    border-color: #c7a97f;
    color: white;
}

/* Heute */
.flatpickr-day.today {
    border: 1px solid #c7a97f;
}

/* deaktivierte Tage */
.flatpickr-day.disabled {
    color: #ccc;
}

#date {
    background-image: url("https://cdn-icons-png.flaticon.com/512/747/747310.png");
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: right 16px center;
}

#birthDate {
    background-image: url("https://cdn-icons-png.flaticon.com/512/747/747310.png");
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
}

/* Standard Checkbox verstecken */

.custom-checkbox input {
    display: none;
}

/* Box */

.checkmark {
    width: 20px;
    height: 20px;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
}

/* Haken */

.checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

/* Aktiv */

.custom-checkbox input:checked + .checkmark {
    background: #111;
    border-color: #111;
}

.custom-checkbox input:checked + .checkmark::after {
    opacity: 1;
}

/* Hover */

.custom-checkbox:hover .checkmark {
    border-color: #999;
}

.contact-response {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-size: 0.85rem;
    color: #6d6a63;

    background: #f6f4ee;
    padding: 10px 16px;

    border-radius: 30px;

    width: fit-content;
}

select {
    margin: 12px 0;
}

.response-icon {
    font-size: 0.9rem;
}

.contact-process {
    margin-top: 80px;
    text-align: center;

    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-process h3 {
    font-size: 1.8rem;
    margin-bottom: 40px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;

    margin-top: 20px;
}

.process-step {
    background: white;
    padding: 30px 25px;
    width: 100%;
    box-sizing: border-box;

    border-radius: 16px;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04);

    transition: all 0.25s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.step-number {
    width: 36px;
    height: 36px;

    margin: 0 auto 15px auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #c7a97f;
    color: white;

    font-weight: 600;
}

.process-step h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.process-step p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.contact-alternative {
    margin-top: 40px;
    margin-bottom: 100px;
    padding-top: 35px;
    text-align: center;
    position: relative;
}

.contact-alt-text {
    margin-bottom: 25px;
    color: #777;
    font-size: 0.95rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.contact-btn {
    position: relative;

    width: 60px;
    height: 60px;

    border-radius: 14px;
    background: #111;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    font-size: 22px;
    text-decoration: none;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

    animation: fadeUp 0.6s ease forwards;
}

.contact-btn span {
    position: absolute;
    bottom: -28px;

    font-size: 0.75rem;
    color: #666;

    opacity: 0;
    transform: translateY(5px);
    transition: all 0.25s ease;
}

/* Hover Effekt */

.contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.contact-btn:hover span {
    opacity: 1;
    transform: translateY(0);
}

.contact-btn {
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.availability-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-size: 0.85rem;
    color: #6d6a63;

    background: #f6f4ee;

    padding: 10px 16px;

    border-radius: 30px;

    width: fit-content;
}

.availability-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;
    background: #3bb273;

    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 178, 115, 0.6);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(59, 178, 115, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 178, 115, 0);
    }
}

.contact-info-badges {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 100px;
}

/* TESTIMONIAL */

.contact-testimonial {
    margin-top: 70px;

    max-width: 650px;
    margin-left: auto;
    margin-right: auto;

    padding: 40px 30px 35px 60px;

    position: relative;

    display: flex;
    flex-direction: column;
    gap: 20px;

    text-align: center;

    border-top: 1px solid #e5e2d8;
    border-bottom: 1px solid #e5e2d8;
}

/* großes Quote links */

.contact-testimonial::before {
    content: "“";

    position: absolute;
    left: 10px;
    top: 10px;

    font-size: 80px;
    line-height: 1;

    color: #c7a97f;

    font-family: "Playfair Display", serif;
}

/* Text + Bild */

.testimonial-main {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Text */

.testimonial-text {
    flex: 1;

    font-size: 1rem;
    line-height: 1.7;
    color: #444;

    font-style: italic;
}

/* Bild */

.testimonial-img {
    width: 70px;
    height: 70px;

    border-radius: 50%;
    object-fit: cover;

    flex-shrink: 0;
}

/* Autor */

.testimonial-author {
    font-size: 0.85rem;
    color: #777;
}

.privacy-check {
    margin-top: 25px;
    margin-bottom: 10px;
}

.privacy-check label {
    font-size: 0.9rem;
    line-height: 1.6;
}

.privacy-check a {
    color: #554c40;
    text-decoration: underline;
}

.privacy-check a:hover {
    opacity: 0.7;
}

.privacy-check {
    margin-top: 25px;
    margin-bottom: 10px;
}

.privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.privacy-text {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 520px;
}

.privacy-text a {
    color: #554c40;
    text-decoration: underline;
}

.privacy-text a:hover {
    opacity: 0.7;
}

.form-trust {
    font-size: 0.85rem;
    color: #777;
    margin-top: 8px;
    margin-bottom: 20px;
}

.legal-page-section {
    margin-top: 170px;
}

.legal-container {
    max-width: 900px;
    grid-template-columns: 1fr;
    gap: 0;
}

.legal-container .contact-text {
    max-width: 760px;
}

.legal-container .contact-text h1,
.legal-container .contact-text h2,
.legal-container .contact-text h3 {
    overflow-wrap: anywhere;
}

.popup-button {
    background: #554c40;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 40px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: #463e34;
}

.popup {
    background: rgba(251, 248, 242, 0.86);
    border: 1px solid #554c40;
    box-shadow: 0 24px 60px rgba(85, 76, 64, 0.12);
    backdrop-filter: blur(14px);
    margin-top: 38px;
    padding: 32px 36px;
    border-radius: 34px;
    align-items: center;
    gap: 28px;
}

@media (max-width: 1200px) {
    .contact-section {
        width: min(90%, 1100px);
        padding: 48px 28px;
    }

    .contact-container {
        gap: 48px;
    }

    .contact-info-badges {
        gap: 32px;
    }
}

@media (max-width: 980px) {
    .contact-hero {
        min-height: 360px;
    }

    .contact-hero-overlay {
        padding-left: 7%;
    }

    .contact-section {
        margin-top: 90px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .contact-form {
        padding: 28px 24px;
    }

    .testimonial-main {
        flex-direction: column;
        text-align: center;
    }

    .contact-buttons {
        flex-wrap: wrap;
    }

    .contact-process {
        width: min(760px, calc(100% - 120px));
        box-sizing: border-box;
    }

    .legal-page-section {
        margin-top: 130px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        height: 360px;
        min-height: 300px;
    }

    .contact-hero-overlay {
        justify-content: center;
        padding: 72px 24px 48px;
        align-items: center;
        text-align: center;
    }

    .contact-hero-overlay h1 {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
    }

    .contact-section {
        width: calc(100% - 32px);
        padding: 32px 18px;
        border-radius: 18px;
        margin-top: 56px;
    }

    .contact-text h2 {
        font-size: 1.9rem;
    }

    .contact-form {
        gap: 22px;
        padding: 24px 18px;
        border-radius: 16px;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select,
    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }

    .process-steps {
        gap: 18px;
    }

    .process-step {
        padding: 22px 18px;
    }

    .contact-process {
        width: calc(100% - 48px);
        box-sizing: border-box;
    }

    .contact-testimonial {
        padding: 32px 18px 28px;
    }

    .contact-testimonial::before {
        left: 50%;
        top: -8px;
        transform: translateX(-50%);
        font-size: 58px;
    }

    .privacy-label {
        gap: 8px;
    }

    .legal-page-section {
        margin-top: 96px;
    }
}

@media (max-width: 480px) {
    .contact-hero-overlay {
        padding: 72px 24px 42px;
    }

    .contact-section {
        width: calc(100% - 48px);
        padding: 26px 18px;
    }

    .contact-form {
        padding: 20px 18px;
    }

    .contact-info-badges {
        gap: 14px;
    }

    .availability-badge,
    .contact-response {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .contact-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }

    .legal-page-section {
        margin-top: 86px;
    }
}
