.contact-v2 {
    padding: 120px 0 140px;
    background: transparent; /* bleibt vom globalen Scroll-Gradienten bestimmt */
    position: relative;
}

section#contact {
    margin-top: 5% !important;
    z-index: 20;
}

/* Desktop: während die Section gepinnt ist, wird sie per JS (transform) vertikal zentriert.
   Wichtig: keine Höhe/Padding ändern, damit das Layout unverändert bleibt. */
@media (min-width: 769px) {
  .contact-v2.contact-v2--pinned {
    will-change: transform;
  }
}

.contact-v2__title-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
    margin-bottom: 0;
}

.contact-v2__inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.contact-v2__title {
    font-size: 8vw;
    font-weight: 900;
    color: #ffffff !important;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 0;
    margin-top: 0;
    letter-spacing: 0.06em;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.contact-v2__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-v2__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 80px; /* Gleicher Abstand wie bei anderen Komponenten */
}

.contact-v2__grid--single {
    grid-template-columns: 1fr;
}

.contact-v2__form-wrap {
    position: relative;
}

.contact-v2__row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.contact-v2__row--full {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.contact-v2__field {
    grid-column: span var(--span-desktop, 6);
}

.contact-v2__label {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.contact-v2__input,
.contact-v2__textarea,
.contact-v2__upload {
    width: 100%;
    border: 2px solid #fff;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-v2__textarea {
    border-radius: 22px;
    min-height: 140px;
    resize: vertical;
    padding: 16px 20px;
}

.contact-v2__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='white' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    cursor: pointer;
}

.contact-v2__input::placeholder,
.contact-v2__textarea::placeholder {
    color: rgba(255, 255, 255, 0.9);
}

.contact-v2__input:focus,
.contact-v2__textarea:focus,
.contact-v2__upload:focus-within {
    border-color: #ffe48d;
    box-shadow: 0 0 0 3px rgba(255, 228, 141, 0.25);
}

.contact-v2__upload {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    gap: 10px;
    text-align: center;
    min-height: 56px;
    padding: 12px 18px;
}

.contact-v2__upload-text {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    pointer-events: none;
}

.contact-v2__upload-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.contact-v2__file {
    display: none;
}

/* FilePond Standard-Styling - keine Anpassungen, Standard-Design */
.filepond-wrapper {
    width: 100%;
    margin-bottom: 20px;
}

.contact-v2__option-group {
    background: rgba(255,255,255,0.04);
    border-radius: 18px;
    padding: 12px 16px 12px 0px;
    border: 1px solid rgba(255,255,255,0.2);
}

.contact-v2__option {
    display: flex;
    align-items: start;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-v2__option:last-child {
    margin-bottom: 0;
}

.contact-v2__option--inline {
    border-radius: 18px;
}

.contact-v2__option span a {
    color: #EFFA57;
    text-decoration: none;
}

.contact-v2__option span a:hover {
    text-decoration: underline;
}

.contact-v2__check {
    width: 18px;
    height: 18px;
    min-width: 18px; /* Verhindert Schrumpfen */
    min-height: 18px; /* Verhindert Schrumpfen */
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Verhindert Schrumpfen im Flex-Container */
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    margin-top: 1px;
}

.contact-v2__check:checked {
    background: #ffe48d;
    border-color: #ffe48d;
    box-shadow: 0 0 0 2px rgba(255,228,141,0.35);
}

.contact-v2__actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.contact-v2__submit {
    width: 100%;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    border-radius: 999px;
    padding: 14px 20px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.contact-v2__submit:hover {
    transform: translateY(-1px);
    border-color: #ffe48d;
    color: #ffe48d;
}

.contact-v2__submit:active {
    transform: translateY(0);
}

.contact-v2__required-hint {
    display: none; /* Meldung ausblenden */
}

.contact-v2__alert {
    border-radius: 16px;
    padding: 16px 18px;
    color: #0c4020;
    background: #b4f1c3;
    font-weight: 700;
    text-align: center;
}

.contact-v2__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.contact-v2__sticker {
    position: absolute;
    max-width: 160px;
}

.contact-v2__sticker--title-peach { top: -20px; left: 50%; transform: translateX(-50%); max-width: 140px; }
.contact-v2__sticker--cute { top: 40px; right: 0; max-width: 120px; }
.contact-v2__sticker--comment { top: 45%; right: -30px; max-width: 180px; }
.contact-v2__sticker--submit { bottom: 0; left: -20px; max-width: 120px; }
.contact-v2__sticker--badge { bottom: 40px; left: 40px; max-width: 90px; }

/* Peach-Bilder für Scroll-Animation */
.contact-v2__peaches {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}

.contact-v2__peach {
    position: absolute;
    max-width: var(--peach-size, 200px);
    width: auto;
    height: auto;
    z-index: 10;
}

/* Peach oben links - von links einblenden */
.contact-v2__peach--oben-links {
    top: var(--peach-top, 10%);
    left: -300px; /* Start off-screen left */
    transform: translateX(0);
}

/* Peach oben rechts - von rechts einblenden */
.contact-v2__peach--oben-rechts {
    top: var(--peach-top, 10%);
    right: -300px; /* Start off-screen right */
    transform: translateX(0);
}

/* Peach unten links - von links einblenden */
.contact-v2__peach--unten-links {
    top: var(--peach-top, 80%);
    left: -300px; /* Start off-screen left */
    transform: translateX(0);
}

/* Peach unten rechts - von rechts einblenden */
.contact-v2__peach--unten-rechts {
    top: var(--peach-top, 80%);
    right: -300px; /* Start off-screen right */
    transform: translateX(0);
}

/* Bei Peach unten links - von links einblenden */
.contact-v2__peach--bei-unten-links {
    top: var(--peach-top, 85%);
    left: -300px; /* Start off-screen left */
    transform: translateX(0);
}

/* Pop-Sticker für Scroll-Animation (poppen nach den Peaches) */
.contact-v2__pop-stickers {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.contact-v2__pop-sticker {
    position: absolute;
    max-width: var(--sticker-size, 200px);
    width: auto;
    height: auto;
    z-index: 10;
    transform-origin: center center;
}

/* Bei Peach unten links - Position links */
.contact-v2__pop-sticker--bei-unten-links {
    top: var(--sticker-top, 85%);
    left: var(--sticker-left, 8%);
}

/* Katze rechts - Position rechts */
.contact-v2__pop-sticker--katze-rechts {
    top: var(--sticker-top, 50%);
    right: var(--sticker-right, 5%);
}

/* Sticker oben rechts Titel - Position oben rechts */
.contact-v2__pop-sticker--oben-rechts-titel {
    top: var(--sticker-top, 5%);
    right: var(--sticker-right, 10%);
}

#form-success h3 {
    margin-top: 1rem;
}

.filepond--panel-root {
    background-color: transparent!important;
}

.filepond--drop-label {
    color: #fff!important;
    border: 2px dashed #fff;
    border-radius: 999px;
    font-size: 16px;
}

.filepond--root {
    margin-bottom: 0px!important;
}

.filepond--root .filepond--list-scroller {
    margin: 0!important;
}

.filepond--root .filepond--drop-label {
    min-height: 56px!important;
}

.filepond-wrapper {
    margin-bottom: 0;
    /* border: 2px solid #fff;
    border-radius: 999px;
    font-size: 16px; */
}

.filepond--drop-label.filepond--drop-label label {
    display: flex!important;
    gap: 20px!important;
    justify-content: center!important;
    align-items: center!important;
    padding-left: 20px!important;
    padding-right: 20px!important;
}

.filepond--drop-label.filepond--drop-label label img {
    margin-bottom: 0px!important;
}

.filepond--drop-label {
    justify-content: start!important;
}

.filepond--file {
    background-color: #F0FA56!important;
    color: #0B2EB4!important;
}

@media (max-width: 768px) {
    .contact-v2 {
        padding: 80px 0 100px;
    }
    
    .contact-v2__title {
        font-size: 10vw;
        margin-bottom: 0;
    }
    
    .contact-v2__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .contact-v2__row {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    .contact-v2__field {
        grid-column: span var(--span-mobile, 12);
    }
    .contact-v2__sticker--comment { right: 0; top: 52%; max-width: 120px; }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #F0FA56; /* Gelb */
    border: none;
    border-radius: 12px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-top:hover {
    background-color: #E8F045;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:active {
    transform: translateY(0) scale(0.95);
}

.scroll-to-top__icon {
    width: 36px;
    height: 36px;
    margin-top: 4px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover .scroll-to-top__icon {
    transform: translateY(-3px);
    animation: bounceArrow 1s ease-in-out infinite;
}

.scroll-to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: fadeInBounce 0.5s ease-out;
}

/* Leichte Bounce-Animation für den Pfeil */
@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(-3px);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Fade-in mit leichtem Bounce beim Erscheinen */
@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    60% {
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .scroll-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-to-top__icon {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 575px) {
    /* Pop-Sticker Positionen für Mobile überschreiben */
    .contact-v2__pop-sticker--bei-unten-links {
        top: 87% !important;
        left: 10% !important;
        --sticker-size: 90px !important;
    }
    
    .contact-v2__pop-sticker--katze-rechts {
        top: 63% !important;
        right: 0% !important;
        --sticker-size: 90px !important;
    }
    
    .contact-v2__pop-sticker--oben-rechts-titel {
        top: 0% !important;
        right: 18% !important;
        --sticker-size: 90px !important;
    }
}

/* Zurück Button (für Content und Legal Templates) */
.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #F0FA56;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    margin: 150px 0 0 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.back-button:hover {
    background-color: #E8F045;
    transform: translateX(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-button:active {
    transform: translateX(0) scale(0.95);
}

.back-button__icon {
    width: 36px;
    height: 36px;
    margin-top: 3px;
    object-fit: contain;
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
}

.back-button:hover .back-button__icon {
    transform: translateX(-3px) rotate(-90deg);
    animation: bounceArrowLeft 1s ease-in-out infinite;
}

/* Leichte Bounce-Animation für den Pfeil (nach links) - Hover (infinite) */
@keyframes bounceArrowLeft {
    0%, 100% {
        transform: translateX(-3px) rotate(-90deg);
    }
    50% {
        transform: translateX(-6px) rotate(-90deg);
    }
}

@media (max-width: 768px) {
    .back-button {
        width: 50px;
        height: 50px;
        margin: 90px 0 0 20px;
    }
    
    .back-button__icon {
        width: 30px;
        height: 30px;
    }
}