/**
 * Zeugnisservice.com - Bestellprozess Styles
 */

/* Progress Bar */
.order-progress {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.order-progress__bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-bottom: 16px;
    overflow: hidden;
}

.order-progress__fill {
    height: 100%;
    background: #1a365d;
    border-radius: 2px;
    transition: width 0.4s ease;
    width: 0%;
}

.order-progress__steps {
    display: flex;
    justify-content: space-between;
}

.order-progress__step {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
    font-family: inherit;
    font-size: 14px;
    color: #9ca3af;
}

.order-progress__step:hover {
    background: #f3f4f6;
}

.order-progress__step.active {
    color: #1a365d;
    font-weight: 600;
}

.order-progress__step.completed {
    color: #059669;
}

.order-progress__step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    font-weight: 600;
    font-size: 13px;
    transition: background-color 0.2s, color 0.2s;
}

.order-progress__step.active .order-progress__step-num {
    background: #1a365d;
    color: #fff;
}

.order-progress__step.completed .order-progress__step-num {
    background: #059669;
    color: #fff;
}

.order-progress__step-label {
    display: none;
}

@media (min-width: 640px) {
    .order-progress__step-label {
        display: inline;
    }
}

/* Main */
.order-main {
    padding: 40px 0 80px;
    min-height: 60vh;
}

/* Steps */
.order-step {
    display: none;
}

.order-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.order-step__header {
    margin-bottom: 32px;
}

.order-step__header h1,
.order-step__header h2 {
    margin: 0 0 8px;
    color: #1a365d;
}

.order-step__header p {
    color: #545B62;
    margin: 0;
}

.order-step__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

/* Service Cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

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

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

.service-card__content {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
    position: relative;
    background: #fff;
}

.service-card input:checked + .service-card__content {
    border-color: #1a365d;
    background: #f0f4ff;
    box-shadow: 0 0 0 1px #1a365d;
}

.service-card__content:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.service-card__badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: #059669;
    color: #fff;
    padding: 2px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.service-card__icon {
    color: #1a365d;
    margin-bottom: 12px;
}

.service-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.service-card p {
    color: #545B62;
    font-size: 14px;
    margin: 0 0 16px;
}

.service-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.service-card__price strong {
    font-size: 24px;
    color: #1a365d;
}

.service-card__price span {
    color: #545B62;
    font-size: 14px;
}

/* Variante-Auswahl (Standard / Express / Premium) */
.variante-auswahl {
    margin-bottom: 24px;
}

.variante-auswahl h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

.variante-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.variante-option {
    cursor: pointer;
    display: block;
}

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

.variante-option__content {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
    background: #fff;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.variante-option__content strong {
    display: block;
    font-size: 16px;
    margin-bottom: 2px;
}

.variante-option__zeit {
    font-size: 14px;
    color: #545B62;
}

.variante-option__price {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-top: 4px;
}

.variante-option__features {
    margin: 4px 0;
    padding: 0 0 0 18px;
    list-style: disc;
    font-size: 13px;
    color: #545B62;
    text-align: left;
}

.variante-option__features li {
    margin-bottom: 2px;
}

/* Standard selected */
.variante-option input:checked + .variante-option__content {
    border-color: #1a365d;
    background: #f0f4ff;
    box-shadow: 0 0 0 1px #1a365d;
}

/* Express selected */
.variante-option--express input:checked + .variante-option__content {
    border-color: #d97706;
    background: #fffbeb;
    box-shadow: 0 0 0 1px #d97706;
}

/* Premium selected */
.variante-option--premium input:checked + .variante-option__content {
    border-color: #d97706;
    background: #fffbeb;
    box-shadow: 0 0 0 1px #d97706;
}

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

/* Price Display */
.order-price-display {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.order-price-display__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.order-price-display__row--mwst {
    color: #545B62;
    font-size: 14px;
}

.order-price-display__row--item {
    font-size: 14px;
    color: #374151;
}

.order-price-display__row--total {
    border-top: 2px solid #e5e7eb;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
    color: #1a365d;
}

.price-included-tag {
    color: #059669;
    font-style: italic;
    font-size: 13px;
}

/* Form Elements in Order Steps */
.order-step label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--color-text);
    font-size: 0.9rem;
}

.order-step input[type="text"],
.order-step input[type="email"],
.order-step input[type="tel"],
.order-step input[type="date"],
.order-step select,
.order-step textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.order-step input:focus,
.order-step select:focus,
.order-step textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

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

.order-step .required {
    color: var(--color-danger);
}

.order-step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 32px;
    margin-bottom: 16px;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid .form-group {
    margin-bottom: 0;
}

.form-grid--address {
    grid-template-columns: 1fr 3fr;
}

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

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

    .form-grid--address {
        grid-template-columns: 1fr;
    }
}

/* Upload Area */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #1a365d;
    background: #f0f4ff;
}

.upload-area__content svg {
    color: #9ca3af;
    margin-bottom: 12px;
}

.upload-area__content p {
    margin: 0 0 4px;
}

.upload-area__content span {
    font-size: 14px;
    color: #9ca3af;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    margin-top: 12px;
}

.file-preview #file-name {
    font-weight: 500;
    flex: 1;
}

.file-preview #file-size {
    color: #545B62;
    font-size: 14px;
}

/* File List (Multi-Upload) */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.file-list__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
}

.file-list__icon {
    flex-shrink: 0;
    color: #059669;
}

.file-list__name {
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-list__size {
    color: #545B62;
    font-size: 13px;
    flex-shrink: 0;
}

.file-list__remove {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
}

.file-list__remove:hover {
    color: #ef4444;
}

.file-list__count {
    font-size: 13px;
    color: #545B62;
    margin-top: 4px;
}

/* Upload Hints */
.upload-hints {
    margin-top: 20px;
    padding: 16px 20px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    font-size: 13px;
    color: #0c4a6e;
    line-height: 1.5;
}

.upload-hints__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #bae6fd;
}

.upload-hints__header svg {
    flex-shrink: 0;
    color: #0284c7;
}

.upload-hints__header strong {
    font-size: 14px;
    color: #0369a1;
}

.upload-hints ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.upload-hints li {
    padding: 3px 0 3px 24px;
    position: relative;
}

.upload-hints li::before {
    content: "\2713";
    position: absolute;
    left: 4px;
    color: #0284c7;
    font-weight: 700;
    font-size: 12px;
}

/* Beurteilungsbogen sections */
.bogen-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.bogen-section h3 {
    margin: 0 0 16px;
    color: #1a365d;
    font-size: 18px;
}

/* Rating Grid */
.rating-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rating-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.rating-item-highlight {
    background: #f0f4ff;
    border-color: #93c5fd;
}

.rating-label strong {
    display: block;
    margin-bottom: 2px;
}

.rating-label span {
    font-size: 13px;
    color: #545B62;
}

.rating-scale {
    display: flex;
    gap: 6px;
}

.rating-option {
    cursor: pointer;
}

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

.rating-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.rating-option input:checked + span {
    background: #1a365d;
    border-color: #1a365d;
    color: #fff;
}

.rating-option span:hover {
    border-color: #93c5fd;
}

@media (max-width: 768px) {
    .rating-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Schlussformel options */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.checkbox-card {
    cursor: pointer;
    display: block;
}

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

.checkbox-card-content {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    transition: border-color 0.2s, background-color 0.2s;
}

.checkbox-card input:checked + .checkbox-card-content {
    border-color: #1a365d;
    background: #f0f4ff;
}

.checkbox-card-content strong {
    display: block;
    margin-bottom: 4px;
}

.checkbox-card-content span {
    font-size: 13px;
    color: #545B62;
}

/* Order Summary */
.order-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

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

.order-summary__section {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.order-summary__section h3 {
    margin: 0 0 16px;
    font-size: 16px;
    color: #1a365d;
}

.order-summary__table {
    width: 100%;
    border-collapse: collapse;
}

.order-summary__table td {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.order-summary__table td:last-child {
    text-align: right;
    font-weight: 500;
}

.order-summary__total td {
    border-bottom: none;
    border-top: 2px solid #1a365d;
    padding-top: 12px;
    font-size: 18px;
    color: #1a365d;
    font-weight: 700;
}

/* Coupon */
.coupon-section {
    margin-bottom: 32px;
}

.coupon-section h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

.coupon-input {
    display: flex;
    gap: 8px;
    max-width: 400px;
}

.coupon-input input {
    flex: 1;
}

.coupon-message {
    margin-top: 8px;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
}

.coupon-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #86efac;
}

.coupon-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Consent */
.consent-section {
    margin-bottom: 32px;
}

.consent-section .checkbox-group {
    margin-bottom: 12px;
}

/* Payment Methods */
.payment-section {
    margin-bottom: 32px;
}

.payment-section h3 {
    margin: 0 0 16px;
    font-size: 16px;
}

.payment-methods {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.payment-method {
    cursor: pointer;
    flex: 1;
}

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

.payment-method__content {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    transition: border-color 0.2s, background-color 0.2s;
}

.payment-method input:checked + .payment-method__content {
    border-color: #1a365d;
    background: #f0f4ff;
}

.payment-method__content strong {
    display: block;
    margin-bottom: 4px;
}

.payment-method__content span {
    font-size: 13px;
    color: #545B62;
}

.stripe-element {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    margin-top: 12px;
}

/* Guest Hint */
.guest-hint {
    text-align: center;
    padding: 20px;
    margin-top: 32px;
    color: #545B62;
    font-size: 14px;
}

.guest-hint a {
    color: #1a365d;
    font-weight: 500;
}

/* Service Category Title */
.service-category-title {
    font-size: 16px;
    color: #374151;
    margin: 0 0 12px;
    font-weight: 600;
}

.service-cards--erstellung {
    margin-bottom: 32px;
}


/* Field Validation Errors */
.field-error {
    border-color: #e53e3e !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15) !important;
}

.field-error-message {
    color: #c53030;
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

.field-error-message.visible {
    display: block;
}

/* Field Status (Email Check) */
.field-status {
    display: none;
    font-size: 13px;
    margin-top: 4px;
}

.field-status--checking {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #718096;
}

.field-status--checking::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #e2e8f0;
    border-top-color: #3182ce;
    border-radius: 50%;
    animation: field-spin 0.8s linear infinite;
}

@keyframes field-spin {
    to { transform: rotate(360deg); }
}

/* Trust Signals */
.trust-signals {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.trust-signals__lock {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #718096;
    font-weight: 500;
}

.trust-signals__lock svg {
    flex-shrink: 0;
}

.trust-signals__methods {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #a0aec0;
}

.trust-signal {
    padding: 2px 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-weight: 500;
}

/* Upload Progress */
.upload-progress {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.upload-progress.visible {
    display: block;
}

.upload-progress__bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.upload-progress__fill {
    height: 100%;
    background: #3182ce;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.upload-progress__text {
    font-size: 14px;
    color: #4a5568;
    text-align: center;
}

/* Utility */
.mt-lg {
    margin-top: 24px;
}

.mt-xl {
    margin-top: 32px;
}

.mb-md {
    margin-bottom: 16px;
}

.text-muted {
    color: #545B62;
}

/* Account Choice Cards (Step 2 for guests) */
.account-choice-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.account-choice-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background-color 0.2s;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.account-choice-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.account-choice-card--highlight {
    border-color: #1a365d;
    background: #f0f4ff;
}

.account-choice-card__icon {
    flex-shrink: 0;
    color: #1a365d;
    margin-top: 2px;
}

.account-choice-card__content h3 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #1a365d;
}

.account-choice-card__content p {
    margin: 0;
    font-size: 14px;
    color: #545B62;
}

@media (max-width: 480px) {
    .account-choice-card {
        padding: 16px;
        gap: 12px;
    }
}
