/**
 * Order Page Styles
 * Bestellseite mit Produktkarten und Formularen
 * Inkl. Verifizierungs-Formular und Spam-Schutz
 */

/* Honeypot - versteckt für normale Nutzer */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Verifizierungs-Formular */
.verification-form-container {
    max-width: 480px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.verification-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1e73be;
    border-radius: 50%;
    color: #fff;
}

.verification-icon svg {
    width: 40px;
    height: 40px;
}

.verification-form-container h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.verification-info {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.code-input-container {
    margin-bottom: 1.5rem;
}

.code-input-container input {
    width: 100%;
    max-width: 200px;
    padding: 1rem 1.5rem;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.code-input-container input:focus {
    outline: none;
    border-color: #1e73be;
    box-shadow: 0 0 0 4px rgba(30, 115, 190, 0.1);
}

.code-input-container input::placeholder {
    color: #d1d5db;
    letter-spacing: 0.5rem;
}

.verification-form .btn-submit {
    width: 100%;
    max-width: 200px;
}

.verification-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.btn-link {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
}

.btn-link:hover {
    color: #1e73be;
}

.btn-link-danger:hover {
    color: #ef4444;
}

.verification-actions .divider {
    color: #d1d5db;
    margin: 0 0.5rem;
}

/* DSGVO Checkboxen */
.gdpr-section {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 12px;
}

.gdpr-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.gdpr-checkbox:last-child {
    margin-bottom: 0;
}

.gdpr-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0.125rem;
    accent-color: #1e73be;
    cursor: pointer;
    flex-shrink: 0;
}

.gdpr-checkbox label {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
}

.gdpr-checkbox label a {
    color: #1e73be;
    text-decoration: underline;
}

.gdpr-checkbox label a:hover {
    color: #F84F2B;
}

/* Messages */
.message {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.message-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

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

.message-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.message-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.credentials-box {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.credentials-box h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.credentials-box p {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.credentials-note {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/**
 * Order Page Styles
 * Bestellformular und Produktkarten
 */

/* Order Hero */
.order-hero {
    padding: 5rem 0 4rem;
    text-align: center;
    background: #f9fafb;
}

.order-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.order-hero .lead {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Products Section */
.products-section {
    padding: 5rem 0;
    background: #fff;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 3rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

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

/* Product Card */
.product-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.product-card:hover {
    border-color: #ccc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.product-card.selected {
    border-color: #1e73be;
    box-shadow: 0 4px 15px rgba(30, 115, 190, 0.15);
}

.product-card.popular {
    border-color: #1e73be;
    z-index: 1;
}

.product-card.popular::after {
    content: 'Empfehlung';
    position: absolute;
    top: 0;
    right: 0;
    background-color: #1e73be;
    color: #fff;
    padding: 8px 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0 12px 0 12px;
}

/* Product Badge */
.product-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.product-badge-quick-check {
    background-color: rgba(31, 180, 87, 0.1);
    color: #1FB457;
}

.product-badge-strategie {
    background-color: rgba(30, 115, 190, 0.1);
    color: #1e73be;
}

.product-badge-full-service {
    background-color: #1a1a2e;
    color: #fff;
}

/* Product Price */
.product-price {
    margin-bottom: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
}

.price-currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: #64748b;
    margin-left: 2px;
    vertical-align: super;
}

.price-period {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 8px;
    font-weight: 500;
}

/* Product Description */
.product-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
    min-height: 50px;
}

/* Product Features */
.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
}

.product-features li {
    padding: 0.65rem 0;
    padding-left: 2rem;
    position: relative;
    color: #475569;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #1FB457;
    border-radius: 50%;
}

.product-features li::after {
    content: '✓';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Select Button */
.btn-select {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    background: #fff;
    color: #1e73be;
    border: 2px solid #1e73be;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-select span {
    pointer-events: none;
}

.btn-select:hover {
    background-color: #1e73be;
    color: #fff;
}

.product-card.selected .btn-select {
    background-color: #1e73be;
    color: #fff;
    border-color: #1e73be;
}

/* Order Section */
.order-section {
    padding: 5rem 0;
    background: #f9fafb;
}

/* Order Form */
.order-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e5;
}

.order-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Selected Product Display */
.selected-product {
    background: #f9fafb;
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.selected-product.has-product {
    background: rgba(30, 115, 190, 0.05);
    border: 2px solid #1e73be;
}

.selected-product p {
    color: #64748b;
    margin: 0;
}

.selected-product .product-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.selected-product .product-price {
    color: #1e73be;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    padding: 0;
    margin: 0;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select {
    padding: 1rem 1.25rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e73be;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

/* GDPR Checkboxes */
.form-group-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-group-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #1e73be;
}

.form-group-checkbox label {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    font-size: 0.9rem;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1.25rem 2rem;
    background-color: #1FB457;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-submit:hover {
    filter: brightness(1.1);
}

.btn-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Messages */
.message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.message-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

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

/* Credentials Box */
.credentials-box {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.credentials-box h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #166534;
    margin: 0 0 0.75rem;
}

.credentials-box p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.credentials-box .credentials-note {
    font-size: 0.8rem;
    color: #15803d;
    margin-top: 0.75rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .order-hero h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group-full {
        grid-column: 1;
    }
    
    .order-form {
        padding: 1.5rem;
    }
}
