/* Förder-Funnel Styles */

/* Skip link (accessibility) - visible on focus */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2147483647;
    padding: 0.75rem 1.25rem;
    background: #143C66;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}
.skip-link:focus {
    left: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Button focus visibility (accessibility) – pages using funnel.css */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-secondary-outline:focus-visible,
.step-cta:focus-visible,
a.btn-primary:focus-visible,
a.btn-secondary:focus-visible,
a.btn-secondary-outline:focus-visible {
    outline: 2px solid rgba(20, 60, 102, 0.8);
    outline-offset: 2px;
}

/* Screen-reader only (visually hidden, read by AT) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto !important;
    }
}

/* Overlay – immer im DOM für smooth Transition */
.funnel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 37, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.35s step-end;
}

.funnel-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s step-start;
}

/* Funnel Container – smooth Scale + Fade */
.funnel-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: 99%;
    max-width: 660px;
    max-height: 90vh;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.34, 1.2, 0.64, 1) 0.05s,
                transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1) 0.05s,
                visibility 0.4s step-end 0.05s;
    overflow-x: hidden;
    box-sizing: border-box;
}

.funnel-container.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 0.4s cubic-bezier(0.34, 1.2, 0.64, 1),
                transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1),
                visibility 0s step-start;
}

/* Funnel Card - Glassmorphismus */
.funnel-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 32px;
    position: relative;
    overflow: hidden;
    overflow-x: hidden;
    animation: slideUp 0.4s ease-out;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

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

/* Close Button */
.funnel-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 24px;
    line-height: 1;
    z-index: 10;
}

.funnel-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

/* Progress Bar */
.funnel-progress-container {
    margin-bottom: 32px;
    padding-right: 60px; /* Platz für Close Button */
    padding-left: 60px;  /* Platz für Back Button */
}

.funnel-step-counter {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    text-align: right;
}

.funnel-divider {
    width: 100%;
    max-width: 500px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 20px auto;
    border-radius: 9999px;
}

.funnel-legal-hint {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #ffffff !important;
    text-align: center;
}

.funnel-back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 0;
}

.funnel-back-button svg {
    width: 22px;
    height: 22px;
    color: white;
}

.funnel-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.funnel-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #143C66, #00776C);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.funnel-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Content Area – Texte normal (keine Großbuchstaben) */
.funnel-content {
    color: white;
    text-transform: none !important;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(90vh - 200px);
    padding-right: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.funnel-content *,
.funnel-content .funnel-heading,
.funnel-content .funnel-subheading,
.funnel-content .funnel-button,
.funnel-content .funnel-button-primary,
.funnel-content .funnel-button-secondary {
    text-transform: none !important;
}

.funnel-content::-webkit-scrollbar {
    width: 6px;
}

.funnel-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.funnel-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.funnel-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Step Content with Fade */
.funnel-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.funnel-step.active {
    display: block;
}

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

/* Headings – immer weiß (Override von Seiten-Styles wie businessplan-tipps.html)
   Orientiert an businessplan.html: clamp(2.2rem, 3.5vw, 3rem), hier kompakter für Modal */
.funnel-heading,
.funnel-container .funnel-heading,
.funnel-container h2.funnel-heading {
    font-family: 'Satoshi', sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem) !important;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.funnel-subheading {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.98) !important;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.funnel-result-text {
    color: #ffffff !important;
}

.funnel-result-text *,
.funnel-result-text strong,
.funnel-result-text span,
.funnel-result-text .tooltip,
.funnel-result-text .tooltip * {
    color: #ffffff !important;
}

.funnel-subheading strong {
    color: rgba(255, 255, 255, 0.98);
    font-weight: 600;
}

/* Icon */
.funnel-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #143C66, #00776C);
    border-radius: 50%;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.funnel-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

/* Button Styles */
.funnel-button {
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px; /* Pillenform */
    color: white;
    font-size: clamp(13px, 2.5vw, 15px);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin-bottom: 12px;
    text-align: left;
    white-space: nowrap;
    box-sizing: border-box;
}

.funnel-button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.funnel-button-direct span {
    white-space: normal;
}

.funnel-button:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
}

.funnel-button:active {
    transform: translateY(0);
}

.funnel-button-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #143C66, #00776C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.funnel-button-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

/* Primary CTA Button */
.funnel-button-primary {
    background: linear-gradient(135deg, #143C66, #00776C);
    border: none;
    font-weight: 600;
    justify-content: center;
    padding: 18px 40px;
    margin-top: 24px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 9999px; /* Pillenform */
    font-size: clamp(14px, 2.5vw, 16px);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 100%;
    min-width: auto;
    box-sizing: border-box;
}

.funnel-button-primary:hover {
    background: linear-gradient(135deg, #1e5080, #009885);
}

/* Secondary Link Button */
.funnel-button-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: clamp(12px, 2vw, 14px);
    padding: 14px 24px;
    margin-top: 12px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 9999px; /* Pillenform */
    white-space: nowrap;
    justify-content: center;
}

/* Dropdown */
.funnel-dropdown {
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px; /* Pillenform */
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 20px;
    padding-right: 52px;
    box-sizing: border-box;
}

.funnel-dropdown:hover,
.funnel-dropdown:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    outline: none;
}

.funnel-dropdown:focus-visible {
    outline: 2px solid #143C66;
    outline-offset: 2px;
}

.funnel-dropdown option {
    background: #1a2332;
    color: white;
    padding: 12px;
}

/* Input / Textarea */
.funnel-input,
.funnel-textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px; /* Pillenform für Input */
    color: white;
    font-size: 16px;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    font-family: 'Satoshi', sans-serif;
    box-sizing: border-box;
}

.funnel-textarea {
    border-radius: 20px; /* Abgerundete Ecken für Textarea, aber nicht ganz Pille */
    min-height: 100px;
    resize: vertical;
}

.funnel-input::placeholder,
.funnel-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.funnel-input:hover,
.funnel-textarea:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
}

.funnel-input:focus,
.funnel-textarea:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #143C66;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 143, 209, 0.2);
}

.funnel-input:focus-visible,
.funnel-textarea:focus-visible {
    outline: 2px solid #143C66;
    outline-offset: 2px;
}


/* Loading Animation */
.funnel-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.funnel-loading-spinner {
    width: 64px;
    height: 64px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #143C66;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.funnel-loading-text {
    color: rgba(255, 255, 255, 0.98) !important;
    font-size: 16px;
}

/* Slider Styles */
.funnel-slider {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    outline: none;
    transition: all 0.3s ease;
}

.funnel-slider:focus-visible {
    outline: 2px solid #143C66;
    outline-offset: 2px;
}

.funnel-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #00776C;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.funnel-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #00776C;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.funnel-slider::-webkit-slider-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    height: 8px;
}

.funnel-slider::-moz-range-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    height: 8px;
    border: none;
}

/* Contact Options Grid */
.contact-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 640px) {
    .contact-options-grid {
        grid-template-columns: 1fr;
    }
}

.contact-option {
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.contact-option:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-option.selected {
    background: rgba(76, 143, 209, 0.2);
    border-color: #143C66;
}

.contact-option-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #143C66, #00776C);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-option-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.contact-option-text {
    font-size: 14px;
    line-height: 1.4;
    color: #ffffff !important;
}

.contact-option-hint {
    font-size: 12px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Form Labels – weiß (Override von Seiten-Styles) */
.funnel-label,
.funnel-container label,
.funnel-container .funnel-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    margin-bottom: 8px;
}

.funnel-label.required::after {
    content: ' *';
    color: #f87171;
}

/* Checkbox Container */
.funnel-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.funnel-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #143C66;
    flex-shrink: 0;
}

.funnel-checkbox-label {
    font-size: 13px;
    line-height: 1.6;
    color: #ffffff !important;
    cursor: pointer;
}

.funnel-checkbox-label a {
    color: #00776C;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.funnel-checkbox-label a:hover {
    color: #143C66;
}

/* Error Messages */
.funnel-error {
    color: #fca5a5;
    font-size: 13px;
    margin-top: -8px;
    margin-bottom: 12px;
    padding-left: 20px;
    display: none;
}

.funnel-error.visible {
    display: block;
}

/* Success Checkmark */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.success-checkmark svg {
    width: 100%;
    height: 100%;
}

.checkmark-circle {
    stroke: #00776C;
    stroke-width: 3;
    fill: none;
    animation: checkmarkCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke: #00776C;
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkmarkCheck 0.3s 0.4s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

@keyframes checkmarkCircle {
    0% {
        stroke-dasharray: 0 251.2;
    }
    100% {
        stroke-dasharray: 251.2 0;
    }
}

@keyframes checkmarkCheck {
    from {
        stroke-dashoffset: 48;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    margin-left: 4px;
}

.tooltip .tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.tooltip .tooltip-text {
    visibility: hidden;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 12px 16px;
    position: absolute;
    z-index: 10000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    width: 250px;
    max-width: calc(100% - 40px);
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .funnel-container {
        width: 95%;
        max-height: 95vh;
    }

    .funnel-card {
        padding: 24px;
    }

    .funnel-heading {
        font-size: clamp(1.1rem, 3.5vw, 1.4rem) !important;
    }

    .funnel-button {
        padding: 14px 16px;
        font-size: clamp(11px, 3.2vw, 13px);
        gap: 10px;
    }

    .funnel-button-icon {
        width: 36px;
        height: 36px;
    }
    
    .funnel-button-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .funnel-button-primary {
        padding: 16px 32px;
        font-size: clamp(13px, 3vw, 15px);
    }
    
    .funnel-button-secondary {
        padding: 12px 20px;
        font-size: clamp(11px, 2.5vw, 13px);
    }
    
    .funnel-subheading {
        font-size: 15px;
    }

    .funnel-content {
        max-height: calc(95vh - 180px);
    }

    .tooltip .tooltip-text {
        width: 200px;
        max-width: calc(100% - 40px);
        font-size: 12px;
    }
    
    .funnel-progress-container {
        padding-right: 55px;
        padding-left: 55px;
        box-sizing: border-box;
    }
}

/* Form Grid for larger screens */
@media (min-width: 640px) {
    .funnel-form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .funnel-form-full {
        grid-column: 1 / -1;
    }
}

/* reCAPTCHA Container */
.recaptcha-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.recaptcha-container > div {
    transform: scale(0.95);
    transform-origin: center;
}

@media (max-width: 480px) {
    .funnel-button {
        max-width: 100%;
        padding: 12px 14px;
        font-size: clamp(10px, 3.5vw, 12px);
        gap: 8px;
    }
    
    .funnel-button-icon {
        width: 32px;
        height: 32px;
    }
    
    .funnel-button-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .funnel-button-primary {
        padding: 14px 24px;
        font-size: clamp(12px, 3.5vw, 14px);
    }
    
    .funnel-subheading {
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .recaptcha-container > div {
        transform: scale(0.85);
    }
}

/* Error Notification Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

/* Scroll-Blockade beim Funnel-Modal (html + body, damit Chrome zuverlässig sperrt) */
html.funnel-open,
body.funnel-open {
    overflow: hidden !important;
}

/* Mobile: Logo-Leiste oben ausblenden, wenn Funnel offen ist (obere Kante des Modals nicht verdeckt) */
@media (max-width: 1279px) {
    html.funnel-open .mobile-navbar,
    body.funnel-open .mobile-navbar {
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
    }
}
