/* Anfrage Questionnaire Styles */

:root {
    --primary-color: #c9ab81;
    --primary-hover: #b89a70;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --text-light: #999;
    --bg-light: #f5f5f5;
    --bg-input: #f0f0f0;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --selected-dark: #2b2b2b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: var(--text-dark);
    background-color: var(--white);
    min-height: 100vh;
}

/* Return Button */
.btn-return {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background-color: var(--bg-light);
    border: none;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-gray);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-return:hover {
    background-color: var(--border-color);
    color: var(--text-dark);
}

.btn-return svg {
    width: 14px;
    height: 14px;
}

/* Language Switcher — Editorial Toggle */
.language-switcher {
    position: absolute;
    top: 22px;
    right: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0;
}

.lang-toggle a {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-gray);
    opacity: 0.45;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-toggle a:hover {
    opacity: 0.7;
    text-decoration: none;
}

.lang-toggle a.active {
    color: var(--text-dark);
    opacity: 1;
    font-weight: 500;
}

.lang-toggle a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-dark);
    animation: langUnderlineIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes langUnderlineIn {
    from { width: 0; opacity: 0; }
    to { width: 100%; opacity: 1; }
}

.lang-divider {
    width: 1px;
    height: 12px;
    background: var(--border-color);
    margin: 0 12px;
    transform: rotate(15deg);
}

/* Container */
.anfrage-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 30px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header */
.anfrage-header {
    text-align: center;
    margin-bottom: 40px;
}

.anfrage-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.anfrage-header .subtitle {
    font-size: 14px;
    color: var(--text-gray);
    letter-spacing: 0.5px;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    gap: 0;
}

.step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
}

.step:hover {
    transform: scale(1.1);
}

.step.active {
    background-color: var(--selected-dark);
    color: var(--white);
    animation: stepPulse 2s ease-in-out infinite;
}

.step.completed {
    background-color: var(--primary-color);
    color: var(--white);
}

.step.completed::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0;
    animation: stepComplete 0.5s ease-out;
}

@keyframes stepPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(43, 43, 43, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(43, 43, 43, 0);
    }
}

@keyframes stepComplete {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.step-line {
    width: 30px;
    height: 2px;
    background-color: var(--bg-light);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.step-line.completed {
    background-color: var(--primary-color);
}

.step-line.completed::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: lineShine 1.5s ease-out;
}

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

/* Form Styles */
.anfrage-form {
    flex: 1;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-gray);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-dark);
    background-color: var(--bg-input);
    border: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background-color: #e8e8e8;
    box-shadow: 0 0 0 3px rgba(201, 171, 129, 0.15);
    transform: translateY(-1px);
}

/* Phone input with country code */
.phone-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.phone-input-wrapper .country-code-select {
    width: 120px;
    flex-shrink: 0;
    padding: 16px 20px;
    padding-right: 32px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-dark);
    background-color: var(--bg-input);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    text-align: center;
    transition: all 0.3s ease;
}

.phone-input-wrapper .country-code-select:focus {
    outline: none;
    background-color: #e8e8e8;
    box-shadow: 0 0 0 3px rgba(201, 171, 129, 0.15);
}

.phone-input-wrapper .country-code-select:hover {
    background-color: #eaeaea;
}

.phone-input-wrapper input[type="tel"] {
    flex: 1;
}

/* Input hover states */
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    background-color: #eaeaea;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

/* Date input — ensure consistent height and appearance on iOS */
.form-group input[type="date"] {
    min-height: 52px;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
}

.form-group input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}

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

/* Section Labels */
.section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-gray);
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Service Cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .service-cards {
        grid-template-columns: 1fr;
    }
}

.service-card {
    position: relative;
    cursor: pointer;
    display: flex;
    height: 100%;
}

.service-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.service-card .card-content {
    background-color: var(--bg-input);
    border-radius: 12px;
    padding: 24px 28px;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
}

.service-card .card-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.service-card .card-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-gray);
    opacity: 1;
}

.service-card input:checked + .card-content {
    background-color: var(--selected-dark);
}

.service-card input:checked + .card-content h3 {
    color: var(--white);
}

.service-card input:checked + .card-content .card-description {
    color: rgba(255, 255, 255, 0.8);
}

/* Style Cards */
.style-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .style-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.style-card {
    position: relative;
    cursor: pointer;
}

.style-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.style-card .card-content {
    background-color: var(--bg-input);
    border-radius: 12px;
    padding: 22px 18px;
    text-align: center;
    transition: all 0.15s ease;
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.style-card .card-content h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.style-card .card-content p {
    font-size: 11px;
    color: var(--text-gray);
    line-height: 1.5;
}

.style-card:hover .card-content {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.style-card input:checked + .card-content {
    background-color: var(--selected-dark);
}

.style-card input:checked + .card-content h4,
.style-card input:checked + .card-content p {
    color: var(--white);
}

/* Style Cards - Full Width */
.style-cards-fullwidth {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.style-card-full {
    position: relative;
    cursor: pointer;
    display: flex;
    height: 100%;
}

.style-card-full input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.style-card-full .card-content {
    background-color: var(--bg-input);
    border-radius: 35px;
    padding: 24px 28px;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
}

.style-card-full .card-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.style-card-full .card-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-gray);
    opacity: 1;
}

.style-card-full input:checked + .card-content {
    background-color: var(--selected-dark);
}

.style-card-full input:checked + .card-content h3 {
    color: var(--white);
}

.style-card-full input:checked + .card-content .card-description {
    color: rgba(255, 255, 255, 0.8);
}

/* Summary Page */
.summary-content {
    margin-bottom: 30px;
}

.summary-section {
    background-color: var(--bg-light);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 15px;
}

.summary-title {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 13px;
    color: var(--text-gray);
}

.summary-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    text-align: right;
    max-width: 60%;
}

/* Privacy Checkbox */
.privacy-check {
    margin-top: 30px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label a {
    color: var(--text-dark);
    text-decoration: underline;
}

/* Buttons */
.btn-weiter,
.btn-absenden {
    width: 100%;
    padding: 16px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-dark);
    background-color: var(--primary-color);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.btn-weiter::before,
.btn-absenden::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-weiter:hover,
.btn-absenden:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 171, 129, 0.35);
}

.btn-weiter:hover::before,
.btn-absenden:hover::before {
    width: 300px;
    height: 300px;
}

.btn-weiter:active,
.btn-absenden:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(201, 171, 129, 0.25);
}

.btn-zurueck {
    padding: 16px 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-gray);
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-zurueck::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.03), transparent);
    transition: left 0.5s ease;
}

.btn-zurueck:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-color: var(--text-gray);
    transform: translateY(-1px);
}

.btn-zurueck:hover::before {
    left: 100%;
}

.form-navigation {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-navigation .btn-weiter,
.form-navigation .btn-absenden {
    flex: 1;
    margin-top: 0;
}

/* Confirmation Page */
.confirmation-page {
    justify-content: center;
    text-align: center;
}

.confirmation-content {
    margin: 40px 0;
}

.main-message {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.hint-message {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
}

.btn-home {
    display: inline-block;
    padding: 14px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-dark);
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-home:hover {
    background-color: var(--bg-light);
}

/* Brand Footer */
.brand-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 30px;
}

.brand-footer a {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.brand-footer a:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.brand-footer .footer-logo {
    width: 300px;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.brand-footer .footer-logo:hover {
    opacity: 1;
}

/* Budget Slider */
.budget-slider-container {
    margin-top: 15px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 35px;
}

.budget-value-display {
    text-align: center;
    margin-bottom: 25px;
}

.budget-value-display span {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-dark);
}

.slider-group {
    margin-bottom: 20px;
}

.slider-label {
    display: block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.slider-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.slider-group input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
}

.slider-group input[type="range"]::-moz-range-track {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: -7px;
}

.slider-group input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--primary-hover);
    transform: scale(1.15);
}

.slider-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.slider-group input[type="range"]::-moz-range-thumb:hover {
    background: var(--primary-hover);
    transform: scale(1.15);
}

.budget-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 10px;
}

/* Responsive */

@media (max-width: 600px) {
    .anfrage-container {
        padding: 40px 20px;
    }

    .anfrage-header h1 {
        font-size: 32px;
    }

    .form-navigation {
        flex-direction: column-reverse;
    }

    .btn-zurueck {
        width: 100%;
    }

    .step-line {
        width: 20px;
    }

    .step {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .summary-row {
        flex-direction: column;
        gap: 4px;
    }

    .summary-value {
        text-align: left;
        max-width: 100%;
    }
}

/* ===== Enhanced UX Animations ===== */

/* Entrance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.anfrage-header {
    animation: fadeInUp 0.6s ease-out;
}

.progress-indicator {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.form-group {
    animation: fadeInUp 0.5s ease-out both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.15s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.25s; }
.form-group:nth-child(5) { animation-delay: 0.3s; }
.form-group:nth-child(6) { animation-delay: 0.35s; }
.form-group:nth-child(7) { animation-delay: 0.4s; }
.form-group:nth-child(8) { animation-delay: 0.45s; }

.btn-weiter,
.btn-absenden {
    animation: fadeInUp 0.5s ease-out 0.5s both;
}

/* Form group hover effect */
.form-group {
    padding: 8px;
    margin: -8px;
    margin-bottom: 17px;
    border-radius: 30px;
    transition: background-color 0.3s ease;
}

.form-group:hover {
    background-color: rgba(201, 171, 129, 0.03);
}

/* Label animation on focus-within */
.form-group label {
    transition: color 0.3s ease, transform 0.3s ease;
}

.form-group:focus-within label {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Service card hover enhancements */
.service-card .card-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .card-content {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-card input:checked + .card-content {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(43, 43, 43, 0.15);
}

/* Style card hover enhancements */
.style-card .card-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.style-card input:checked + .card-content {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(43, 43, 43, 0.15);
}

/* Full-width style card enhancements */
.style-card-full .card-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.style-card-full:hover .card-content {
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.style-card-full input:checked + .card-content {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(43, 43, 43, 0.12);
}

/* Summary section hover */
.summary-section {
    transition: all 0.3s ease;
}

.summary-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* Checkbox animation */
.checkbox-label input[type="checkbox"] {
    transition: all 0.2s ease;
}

.checkbox-label:hover input[type="checkbox"] {
    transform: scale(1.1);
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Selection color */
::selection {
    background-color: var(--primary-color);
    color: var(--white);
}
