﻿/* ============================================
   anfrage2.css - Request Page Styles (Compact)
   ============================================ */

.Anfrage2-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.Anfrage2-page-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-align: center;
    color: var(--color-text);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.Anfrage2-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--spacing-md);
    align-items: start;
}

/* ============================================
   Form Section (Left Side) - Compact
   ============================================ */
.Anfrage2-form-section {
    padding: var(--spacing-md);
    background: rgba(30, 30, 30, 0.95);
    border-radius: 8px;
    border: 1px solid var(--color-border, #3a3a3a);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.Anfrage2-form-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text, #f0f0f0);
    padding-bottom: 4px;
    border-bottom: 2px solid var(--color-primary, #28b4fa);
    display: inline-block;
}

.Anfrage2-form-container {
    max-width: 100%;
}

.Anfrage2-form-row {
    margin-bottom: 8px;
}

.Anfrage2-form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.Anfrage2-form-row-3col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

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

    .Anfrage2-form-group label {
        display: block;
        font-size: 0.75rem;
        font-weight: 500;
        color: var(--color-text, #f0f0f0);
        margin-bottom: 2px;
    }

        .Anfrage2-form-group label.required::after {
            content: " *";
            color: #ef4444;
        }

.Anfrage2-input,
.Anfrage2-textarea,
.Anfrage2-select {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-family: inherit;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--color-border, #3a3a3a);
    border-radius: 4px;
    color: var(--color-text, #f0f0f0);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    height: 38px;
    line-height: 1.3;
    box-sizing: border-box;
}

    .Anfrage2-input::placeholder,
    .Anfrage2-textarea::placeholder {
        color: var(--color-text-muted, #888);
        font-size: 0.75rem;
    }

    .Anfrage2-input:focus,
    .Anfrage2-textarea:focus,
    .Anfrage2-select:focus {
        outline: none;
        border-color: var(--color-primary, #28b4fa);
        box-shadow: 0 0 0 2px rgba(40, 180, 250, 0.15);
    }

.Anfrage2-textarea {
    resize: vertical;
    min-height: 70px;
    height: auto;
}

.Anfrage2-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    height: 38px;
}

    .Anfrage2-select option {
        background-color: #2a2a2a;
        color: #ffffff;
        padding: 8px;
    }

    .Anfrage2-select option:checked {
        background-color: var(--color-primary, #28b4fa);
        color: #ffffff;
    }

.Anfrage2-input.error,
.Anfrage2-textarea.error {
    border-color: #ef4444;
}

/* ============================================
   Section Divider
   ============================================ */
.Anfrage2-section-divider {
    margin: 10px 0;
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border, #3a3a3a), transparent);
}

.Anfrage2-subsection-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text, #f0f0f0);
    margin-bottom: 6px;
    margin-top: 6px;
}

/* ============================================
   Checkbox Styles - Compact
   ============================================ */
.Anfrage2-checkbox-group {
    margin: 4px 0;
}

.Anfrage2-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--color-text-muted, #b0b0b0);
    line-height: 1.4;
    padding: 4px 0;
}

    .Anfrage2-checkbox-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
        min-width: 16px;
        margin-top: 1px;
        accent-color: var(--color-primary, #28b4fa);
        cursor: pointer;
    }

    .Anfrage2-checkbox-label a {
        color: var(--color-primary, #28b4fa);
        text-decoration: none;
    }

        .Anfrage2-checkbox-label a:hover {
            text-decoration: underline;
        }

.Anfrage2-checkbox-hint {
    font-size: 0.75rem;
    color: var(--color-text-muted, #888);
    margin-bottom: 4px;
}

/* ============================================
   Delivery Cost Section - Compact
   ============================================ */
.Anfrage2-delivery-cost {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .Anfrage2-delivery-cost .Anfrage2-input {
        flex: 1;
    }

.Anfrage2-refresh-btn {
    width: 30px;
    height: 30px;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--color-border, #3a3a3a);
    border-radius: 4px;
    color: var(--color-text, #f0f0f0);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .Anfrage2-refresh-btn:hover {
        border-color: var(--color-primary, #28b4fa);
        color: var(--color-primary, #28b4fa);
    }

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

/* ============================================
   Articles Section (Right Side) - Compact
   ============================================ */
.Anfrage2-articles-section {
    position: sticky;
    top: 100px;
    padding: var(--spacing-sm);
    background: rgba(30, 30, 30, 0.95);
    border-radius: 8px;
    border: 1px solid var(--color-border, #3a3a3a);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.Anfrage2-articles-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text, #f0f0f0);
    display: flex;
    align-items: center;
    gap: 6px;
}

    .Anfrage2-articles-title svg {
        color: var(--color-primary, #28b4fa);
        width: 16px;
        height: 16px;
    }

.Anfrage2-articles-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

    .Anfrage2-articles-list::-webkit-scrollbar {
        width: 4px;
    }

    .Anfrage2-articles-list::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 2px;
    }

    .Anfrage2-articles-list::-webkit-scrollbar-thumb {
        background: var(--color-border, #3a3a3a);
        border-radius: 2px;
    }

        .Anfrage2-articles-list::-webkit-scrollbar-thumb:hover {
            background: var(--color-primary, #28b4fa);
        }

.Anfrage2-article-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 8px;
    border: 1px solid var(--color-border, #3a3a3a);
}

.Anfrage2-article-date {
    font-size: 0.65rem;
    color: var(--color-primary, #28b4fa);
    margin-bottom: 2px;
}

.Anfrage2-article-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text, #f0f0f0);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.Anfrage2-article-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.Anfrage2-article-price {
    font-weight: 600;
    color: var(--color-primary, #28b4fa);
    font-size: 0.8rem;
    min-width: 60px;
}

.Anfrage2-article-controls {
    display: flex;
    align-items: center;
    gap: 3px;
}

.Anfrage2-qty-btn {
    width: 24px;
    height: 24px;
    background: var(--color-primary, #28b4fa);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .Anfrage2-qty-btn:hover:not(:disabled) {
        background: #1a9ae0;
    }

    .Anfrage2-qty-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.Anfrage2-qty-value {
    min-width: 22px;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--color-text, #f0f0f0);
}

.Anfrage2-remove-btn {
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 3px;
    font-size: 0.9rem;
}

    .Anfrage2-remove-btn:hover {
        background: #dc2626;
    }

/* Service addon row */
.Anfrage2-addon-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--color-border, #3a3a3a);
    font-size: 0.7rem;
}

.Anfrage2-addon-name {
    color: var(--color-text-muted, #b0b0b0);
}

.Anfrage2-addon-price {
    color: var(--color-text-muted, #b0b0b0);
}

.Anfrage2-addon-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary, #28b4fa);
    cursor: pointer;
}

/* Empty State */
.Anfrage2-articles-empty {
    text-align: center;
    padding: var(--spacing-md);
    color: var(--color-text-muted, #888);
}

.Anfrage2-articles-empty-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
    opacity: 0.5;
}

.Anfrage2-articles-empty p {
    font-size: 0.75rem;
    margin: 2px 0;
}

/* Summary - Compact */
.Anfrage2-summary {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 2px solid var(--color-border, #3a3a3a);
}

.Anfrage2-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.Anfrage2-summary-label {
    font-size: 0.7rem;
    color: var(--color-text-muted, #b0b0b0);
}

.Anfrage2-summary-value {
    font-size: 0.7rem;
    color: var(--color-text, #f0f0f0);
}

.Anfrage2-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--color-border, #3a3a3a);
}

.Anfrage2-summary-total-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text, #f0f0f0);
}

.Anfrage2-summary-total-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary, #28b4fa);
}

.Anfrage2-summary-note {
    font-size: 0.65rem;
    color: var(--color-text-muted, #888);
    margin-top: 4px;
}

/* ============================================
   Error & Success Messages
   ============================================ */
.Anfrage2-error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-bottom: 8px;
    padding: 8px 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 4px;
}

.Anfrage2-banner {
    display: none;
    padding: 8px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.Anfrage2-banner-success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.Anfrage2-banner-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ============================================
   Submit Section - Compact
   ============================================ */
.Anfrage2-submit-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border, #3a3a3a);
}

.Anfrage2-required-hint {
    font-size: 0.75rem;
    color: var(--color-text-muted, #888);
    margin-bottom: 8px;
}

    .Anfrage2-required-hint.error {
        color: #ef4444;
    }

.Anfrage2-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    background: var(--color-primary, #28b4fa);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 6px;
}

    .Anfrage2-submit-btn:hover:not(:disabled) {
        background: #1a9ae0;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(40, 180, 250, 0.3);
    }

    .Anfrage2-submit-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

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

/* ============================================
   Success Page
   ============================================ */
.Anfrage2-success {
    text-align: center;
    padding: var(--spacing-lg);
    background: rgba(30, 30, 30, 0.95);
    border-radius: 8px;
    border: 1px solid var(--color-border, #3a3a3a);
    max-width: 400px;
    margin: 0 auto;
}

.Anfrage2-success-icon {
    width: 60px;
    height: 60px;
    background: rgba(74, 222, 128, 0.15);
    border: 2px solid #4ade80;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #4ade80;
    margin: 0 auto var(--spacing-sm);
}

.Anfrage2-success h2 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--color-text, #f0f0f0);
}

.Anfrage2-success p {
    color: var(--color-text-muted, #b0b0b0);
    margin-bottom: var(--spacing-md);
    font-size: 0.85rem;
}

/* ============================================
   Loading State
   ============================================ */
.Anfrage2-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    color: var(--color-text-muted, #b0b0b0);
}

.Anfrage2-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-border, #3a3a3a);
    border-top-color: var(--color-primary, #28b4fa);
    border-radius: 50%;
    animation: Anfrage2-spin 0.8s linear infinite;
    margin-bottom: 8px;
}

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

/* ============================================
   Responsive - Tablet
   ============================================ */
@media (max-width: 1024px) {
    .Anfrage2-grid {
        grid-template-columns: 1fr 260px;
    }
}

@media (max-width: 850px) {
    .Anfrage2-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .Anfrage2-articles-section {
        position: static;
        order: -1;
    }

    .Anfrage2-articles-list {
        max-height: 200px;
    }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 600px) {
    .Anfrage2-page {
        padding: 0 8px;
    }

    .Anfrage2-page-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .Anfrage2-form-section,
    .Anfrage2-articles-section {
        padding: 10px;
    }

    .Anfrage2-form-row-2col,
    .Anfrage2-form-row-3col {
        grid-template-columns: 1fr;
    }

    .Anfrage2-article-row {
        flex-wrap: wrap;
    }

    .Anfrage2-article-price {
        width: 100%;
        margin-bottom: 4px;
    }

    .Anfrage2-checkbox-label {
        font-size: 0.7rem;
    }

        .Anfrage2-checkbox-label input[type="checkbox"] {
            width: 20px;
            height: 20px;
            min-width: 20px;
        }

    .Anfrage2-submit-btn {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .Anfrage2-input,
    .Anfrage2-textarea,
    .Anfrage2-select,
    .Anfrage2-submit-btn,
    .Anfrage2-qty-btn,
    .Anfrage2-remove-btn,
    .Anfrage2-refresh-btn {
        transition: none;
    }

    .Anfrage2-spinner {
        animation: none;
    }
}

/* ============================================
   Availability Modal
   ============================================ */
.Anfrage2-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.72);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.Anfrage2-modal {
    background: rgba(30, 30, 30, 0.98);
    border: 1px solid rgba(255, 180, 0, 0.35);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    animation: Anfrage2-modalSlideIn 0.3s ease-out;
}

.Anfrage2-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px 14px;
    border-bottom: 1px solid var(--color-border, #3a3a3a);
}

.Anfrage2-modal-icon {
    font-size: 1.2rem;
}

.Anfrage2-modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f0a500;
    margin: 0;
}

.Anfrage2-modal-body {
    padding: 16px 24px;
    color: var(--color-text, #f0f0f0);
    font-size: 0.85rem;
    line-height: 1.5;
}

.Anfrage2-modal-body p {
    margin: 0 0 12px 0;
}

.Anfrage2-modal-body ul {
    margin: 0;
    padding-left: 20px;
}

.Anfrage2-modal-body li {
    margin-bottom: 8px;
    opacity: 0.9;
}

.Anfrage2-modal-footer {
    padding: 12px 24px 20px;
    border-top: 1px solid var(--color-border, #3a3a3a);
}

@keyframes Anfrage2-modalSlideIn {
    from {
        transform: translateY(-16px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
