/* ==========================================
   Contact Modal - KI-Prozessnavigator
   Professional & Responsive Design
   ========================================== */

/* ===== Modal Backdrop ===== */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ===== Modal Container ===== */
.contact-modal__container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
    background: #0f172a;
    border-radius: 24px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 119, 255, 0.2),
        inset 0 1px 0 rgba(0, 119, 255, 0.1);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.contact-modal.active .contact-modal__container {
    transform: translateY(0) scale(1);
}

/* ===== Scrollable Content Wrapper ===== */
.contact-modal__scroll-area {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.contact-modal__scroll-area::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* ===== Close Button ===== */
.contact-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.contact-modal__close:hover {
    background: rgba(0, 119, 255, 0.2);
    color: #00D4FF;
    transform: rotate(90deg);
}

.contact-modal__close svg {
    width: 18px;
    height: 18px;
}

/* ===== Modal Header ===== */
.contact-modal__header {
    padding: 1.75rem 2rem 1rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 119, 255, 0.1) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.contact-modal__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 2px solid rgba(0, 119, 255, 0.3);
    border-radius: 16px;
    font-size: 1.75rem;
}

.contact-modal__title {
    font-family: var(--font-heading, 'Instrument Serif', Georgia, serif);
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    font-weight: 400;
    color: #00D4FF !important;
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.contact-modal__subtitle {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* ===== Path Selection ===== */
.contact-modal__paths {
    padding: 2rem 2.5rem 2.5rem;
}

.path-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.path-card {
    position: relative;
    padding: 1.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.path-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.25s ease;
}

.path-card:hover {
    border-color: rgba(0, 119, 255, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 119, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.path-card:hover::before {
    background: linear-gradient(90deg, #0077FF, #00D4FF);
}

.path-card--inquiry:hover {
    border-color: rgba(0, 119, 255, 0.6);
}

.path-card--inquiry:hover::before {
    background: linear-gradient(90deg, #0077FF, #0099FF);
}

.path-card--analysis:hover {
    border-color: rgba(0, 212, 255, 0.6);
}

.path-card--analysis:hover::before {
    background: linear-gradient(90deg, #00D4FF, #0077FF);
}

.path-card__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1.5rem;
    transition: all 0.25s ease;
}

.path-card:hover .path-card__icon {
    transform: scale(1.05);
}

.path-card--inquiry:hover .path-card__icon {
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.2), rgba(0, 119, 255, 0.1));
}

.path-card--analysis:hover .path-card__icon {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.1));
}

.path-card__content {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.path-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.path-card__description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.path-card__time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #00D4FF;
    background: rgba(0, 119, 255, 0.15);
    padding: 0.375rem 0.75rem;
    border-radius: 100px;
}

/* ===== Form Content ===== */
.contact-modal__content {
    padding: 0.5rem 1.75rem 0.75rem;
    display: none;
}

.contact-modal__content.active {
    display: block;
    animation: fadeInUp 0.35s ease;
}

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

/* ===== Back Button ===== */
.form-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    padding: 0;
    margin-bottom: 0.5rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s ease;
}

.form-back-btn:hover {
    color: #00D4FF;
}

.form-back-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.form-back-btn:hover svg {
    transform: translateX(-3px);
}

/* ===== Progress Indicator ===== */
.form-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.progress-step {
    width: 28px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: linear-gradient(90deg, #0077FF, #00D4FF);
    width: 44px;
}

.progress-step.completed {
    background: #0077FF;
}

/* ===== Step Container ===== */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.35s ease;
}

.form-step__header {
    text-align: center;
    margin-bottom: 0.75rem;
}

.form-step__title {
    font-family: var(--font-heading, 'Instrument Serif', Georgia, serif);
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    font-weight: 400;
    color: #00D4FF !important;
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.form-step__subtitle {
    font-size: 0.9375rem;
    color: #78716c;
}

/* ===== Form Fields ===== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group:last-of-type {
    margin-bottom: 2rem;
}

/* Komprimiert: Schritt 3 (Kontaktdaten) – ohne Scrollen, Header bleibt */
.contact-modal__content .form-step[data-step="3"] .form-group,
.contact-modal__content form#inquiry-form .form-group {
    margin-bottom: 0.5rem !important;
}
.contact-modal__content .form-step[data-step="3"] .form-group:last-of-type,
.contact-modal__content form#inquiry-form .form-group:last-of-type {
    margin-bottom: 0.75rem !important;
}
.contact-modal__content .form-step[data-step="3"] .form-label,
.contact-modal__content form#inquiry-form .form-label {
    margin-bottom: 0.3rem !important;
    font-size: 0.8125rem !important;
}
.contact-modal__content .form-step[data-step="3"] .form-input,
.contact-modal__content .form-step[data-step="3"] .form-textarea,
.contact-modal__content form#inquiry-form .form-input,
.contact-modal__content form#inquiry-form .form-textarea {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9375rem !important;
}
.contact-modal__content .form-step[data-step="3"] .form-textarea,
.contact-modal__content form#inquiry-form .form-textarea {
    min-height: 56px !important;
}
.contact-modal__content .form-step[data-step="3"] .form-row,
.contact-modal__content form#inquiry-form .form-row {
    gap: 0.5rem !important;
}
.contact-modal__content .form-step[data-step="3"] .form-step__header,
.contact-modal__content .form-step[data-step="3"] .form-step__title {
    margin-bottom: 0.35rem !important;
}
.contact-modal__content .form-step[data-step="3"] .privacy-checkbox {
    padding: 0.5rem 0.65rem !important;
}
.contact-modal__content .form-step[data-step="3"] .privacy-checkbox__text {
    font-size: 0.8125rem !important;
    line-height: 1.4 !important;
}
.contact-modal__content .form-step[data-step="3"] .form-actions {
    padding-top: 0 !important;
    margin-top: 0.25rem !important;
}
.contact-modal__content .form-step[data-step="3"] .btn--modal-primary,
.contact-modal__content .form-step[data-step="3"] .btn--modal-secondary {
    padding: 0.6rem 1.25rem !important;
    font-size: 0.9375rem !important;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.form-label .required {
    color: #0077FF;
    margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.form-select {
    background: rgba(10, 22, 40, 0.6);
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.form-input:focus:not(:focus-visible),
.form-select:focus:not(:focus-visible),
.form-textarea:focus:not(:focus-visible) {
    outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #0077FF;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(0, 119, 255, 0.15);
}
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.form-select:focus {
    background: rgba(10, 22, 40, 0.8);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-color: rgba(10, 22, 40, 0.6);
    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='%23ffffff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
    padding-right: 3rem;
    cursor: pointer;
}

.form-select option {
    background: #0a1628;
    color: #ffffff;
    padding: 0.5rem;
}

/* ===== Industry Select (Custom Dropdown mit SVG-Icons) ===== */
.industry-select-wrap {
    position: relative;
}
.industry-select-wrap select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}
.industry-select-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(10, 22, 40, 0.6);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.industry-select-trigger:hover {
    border-color: rgba(0, 212, 255, 0.5);
}
.industry-select-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #00D4FF;
    display: flex;
    align-items: center;
    justify-content: center;
}
.industry-select-icon svg {
    stroke: currentColor;
}
.industry-select-label {
    flex: 1;
    min-width: 0;
    color: rgba(255, 255, 255, 0.9);
}
.industry-select-wrap.open .industry-select-label:empty::after,
.industry-select-label:not(:empty) {
    color: #fff;
}
.industry-select-chevron {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: transform 0.2s;
}
.industry-select-wrap.open .industry-select-chevron {
    transform: rotate(180deg);
}
.industry-select-panel {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 100;
    max-height: 240px;
    overflow-y: auto;
    background: rgba(13, 25, 45, 0.98);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    padding: 8px 0;
    display: none;
}
.industry-select-wrap.open .industry-select-panel {
    display: block;
}
.industry-select-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.95rem;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
}
.industry-select-option:hover {
    background: rgba(0, 212, 255, 0.12);
}
.industry-select-option.selected {
    background: rgba(0, 212, 255, 0.15);
    color: #00D4FF;
}
.industry-select-option__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00D4FF;
}
.industry-select-option__icon svg {
    stroke: currentColor;
}

/* ===== Option Cards ===== */
.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

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

.option-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 72px;
}

.option-card:hover {
    border-color: rgba(0, 119, 255, 0.5);
    background: rgba(0, 119, 255, 0.15);
}

.option-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.option-card.selected {
    border-color: #0077FF;
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
    box-shadow: 0 2px 12px rgba(0, 119, 255, 0.3);
}

.option-card__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1.125rem;
    flex-shrink: 0;
    pointer-events: none;
}

.option-card__icon svg {
    transition: none;
}

/* Icon bleibt sichtbar bei Auswahl – kein solid blue, kein Hover-Effekt */
.option-card.selected .option-card__icon {
    background: rgba(255, 255, 255, 0.1);
}

.option-card.selected .option-card__icon svg {
    stroke: #00D4FF;
}

.option-card__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.option-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    display: block;
    width: 100%;
}

.option-card__desc {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0;
    line-height: 1.4;
    display: block;
    width: 100%;
}

.option-card__check {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: transparent;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

/* Haken nur bei ausgewählter Karte sichtbar */
.option-card__check svg {
    opacity: 0;
    transition: opacity 0.2s ease;
}
.option-card.selected .option-card__check svg {
    opacity: 1;
}

.option-card.selected .option-card__check {
    background: #0077FF;
    border-color: #0077FF;
    color: #ffffff;
}

/* ===== Sliders ===== */
.slider-group {
    margin-bottom: 1.75rem;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.slider-label__text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.slider-label__value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #00D4FF;
    background: rgba(0, 119, 255, 0.15);
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
}

.form-slider {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    appearance: none;
    cursor: pointer;
}

.form-slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #0077FF, #00D4FF);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 119, 255, 0.4);
    transition: transform 0.15s ease;
}

.form-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(0, 119, 255, 0.6);
}

.form-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #0077FF, #00D4FF);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* ===== Potential Results ===== */
.potential-results {
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    border: 2px solid rgba(0, 119, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.potential-results__header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.potential-results__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0077FF, #00D4FF);
    border-radius: 12px;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.potential-results__title {
    font-family: var(--font-heading, 'Instrument Serif', Georgia, serif);
    font-size: 1.125rem;
    color: #ffffff;
    font-weight: 400;
}

.potential-results__subtitle {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.potential-results__content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.result-card {
    text-align: center;
    padding: 1rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-card__value {
    font-family: var(--font-heading, 'Instrument Serif', Georgia, serif);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    background: linear-gradient(135deg, #00D4FF 0%, #0077FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 400;
    line-height: 1.2;
}

.result-card__label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
    font-weight: 500;
}

.potential-recommendations {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 0.5rem;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #44403c;
    line-height: 1.5;
}

.recommendation-item__icon {
    color: #00CC82;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== Form Row ===== */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* ===== Form Actions ===== */
.form-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0;
    margin-top: 0;
}

.btn--modal-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    color: #ffffff;
    background: linear-gradient(135deg, #0077FF 0%, #0099FF 100%);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 119, 255, 0.3);
    flex: 1;
    min-width: 0;
}

.btn--modal-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 119, 255, 0.5);
}

.btn--modal-primary:active {
    transform: translateY(0);
}

.btn--modal-primary svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn--modal-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn--modal-secondary:hover {
    border-color: #0077FF;
    color: #00D4FF;
    background: rgba(0, 119, 255, 0.1);
}

/* ===== Success State ===== */
.form-success {
    display: none;
    text-align: center;
    padding: 3.5rem 2rem;
}

.form-success.active {
    display: block;
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.success-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.2), rgba(0, 212, 255, 0.1));
    border: 3px solid #0077FF;
    border-radius: 50%;
    font-size: 2.5rem;
    animation: successPop 0.4s 0.15s ease forwards;
    opacity: 0;
    transform: scale(0);
}

@keyframes successPop {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-title {
    font-family: var(--font-heading, 'Instrument Serif', Georgia, serif);
    font-size: 1.75rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.success-message {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 360px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.success-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: #00D4FF;
    background: rgba(0, 119, 255, 0.15);
    border: 2px solid rgba(0, 119, 255, 0.3);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.success-cta:hover {
    background: #0077FF;
    border-color: #0077FF;
    color: white;
}

/* ===== Privacy Checkbox ===== */
.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.privacy-checkbox:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.privacy-checkbox input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #0077FF;
    flex-shrink: 0;
    cursor: pointer;
}

.privacy-checkbox__text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.privacy-checkbox__text a {
    color: #0077FF;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-checkbox__text a:hover {
    color: #00D4FF;
}

/* ===== Trust Footer ===== */
.modal-trust {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.625rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.modal-trust__item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.modal-trust__icon {
    color: #00D98F;
    font-size: 0.875rem;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet */
@media (max-width: 768px) {
    .contact-modal {
        padding: 0.5rem;
    }
    
    .contact-modal__container {
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - 1rem);
        border-radius: 20px;
    }
    
    .contact-modal__header {
        padding: 2rem 1.5rem 1.25rem;
    }
    
    .contact-modal__paths {
        padding: 1.5rem;
    }
    
    .path-selection {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .path-card {
        padding: 1.25rem;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 1rem;
    }
    
    .path-card__icon {
        margin: 0;
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }
    
    .path-card__content {
        flex: 1;
        text-align: left;
    }
    
    .path-card__description {
        margin-bottom: 0.5rem;
    }
    
    .contact-modal__content {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .option-grid {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }
    
    .option-card {
        padding: 0.875rem;
        min-height: auto;
    }
    
    .option-card__icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .potential-results {
        padding: 1.25rem;
    }
    
    .potential-results__content {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .result-card {
        padding: 0.75rem 0.5rem;
    }
    
    .result-card__value {
        font-size: 1.125rem;
    }
    
    .result-card__label {
        font-size: 0.6875rem;
    }
    
    .form-actions {
        flex-direction: column-reverse;
        gap: 0.625rem;
    }
    
    .btn--modal-primary,
    .btn--modal-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .modal-trust {
        gap: 1rem;
        padding: 1rem;
    }
    
    .modal-trust__item {
        font-size: 0.75rem;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .contact-modal__header {
        padding: 1.75rem 1.25rem 1rem;
    }
    
    .contact-modal__icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    
    .contact-modal__title {
        font-size: 1.375rem;
    }
    
    .contact-modal__paths {
        padding: 1.25rem;
    }
    
    .path-card__title {
        font-size: 1rem;
    }
    
    .contact-modal__content {
        padding: 1.25rem;
    }
    
    .form-step__title {
        font-size: 1.25rem;
    }
    
    .slider-label {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .potential-results__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .potential-results__content {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .result-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.875rem 1rem;
        text-align: left;
    }
    
    .result-card__value {
        font-size: 1.25rem;
        order: 2;
    }
    
    .result-card__label {
        font-size: 0.8125rem;
        margin-top: 0;
        order: 1;
    }
    
    .form-success {
        padding: 2.5rem 1.5rem;
    }
    
    .success-icon {
        width: 72px;
        height: 72px;
        font-size: 2rem;
    }
    
    .success-title {
        font-size: 1.5rem;
    }
    
    .modal-trust {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Handle notch/safe areas on modern phones */
@supports (padding: max(0px)) {
    .contact-modal {
        padding-left: max(0.5rem, env(safe-area-inset-left));
        padding-right: max(0.5rem, env(safe-area-inset-right));
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    }
}

/* Landscape phone orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .contact-modal__container {
        max-height: calc(100vh - 1rem);
    }
    
    .contact-modal__header {
        padding: 1rem 1.5rem 0.75rem;
    }
    
    .contact-modal__icon {
        display: none;
    }
    
    .form-step__header {
        margin-bottom: 1rem;
    }
    
    .form-progress {
        margin-bottom: 1rem;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .contact-modal,
    .contact-modal__container,
    .path-card,
    .option-card,
    .btn--modal-primary,
    .btn--modal-secondary,
    .form-step,
    .contact-modal__content,
    .form-success,
    .success-icon {
        transition: none;
        animation: none;
    }
    
    .success-icon {
        opacity: 1;
        transform: scale(1);
    }
}

/* Glow-Karten: Wird zuletzt geladen – verhindert, dass Hover-Glow abgeschnitten wird */
html,
body,
main {
    overflow-x: visible !important;
}
section.problems,
section.solutions,
section.problems .container,
section.solutions .container,
.problems__grid,
.solutions__grid {
    overflow: visible !important;
}
