/* ============================================================================
   USt-ID Validierung Styles
   ============================================================================ */

/* USt-ID Container (wird ein/ausgeblendet) */
#ust-id-container {
    display: none; /* Default ausgeblendet */
}

#ust-id-container.active {
    display: block;
}

/* USt-ID Input Styling */
input[name="ust_id"] {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Feedback Box */
.ust-id-feedback {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Feedback Types */
.ust-id-feedback.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.ust-id-feedback.error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.ust-id-feedback.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.ust-id-feedback.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* Feedback Text */
.ust-id-feedback strong {
    font-weight: 700;
}

.ust-id-feedback small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    opacity: 0.9;
}

/* Input Border Farben (werden von JS gesetzt) */
input[name="ust_id"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 107, 161, 0.1);
}

/* Loading Spinner für VIES Check */
.ust-id-feedback::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: middle;
}

.ust-id-feedback.info::before {
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #17a2b8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .ust-id-feedback {
        font-size: 12px;
        padding: 8px 10px;
    }
}

/* NoScript Fallback */
noscript #ust-id-container {
    display: block !important;
}

/* MwSt-Berechnung Info Box */
.vat-calculation-info {
    margin-top: 15px;
    padding: 12px;
    background: #e7f3ff;
    border-left: 4px solid #276ba1;
    border-radius: 4px;
    font-size: 13px;
}

.vat-calculation-info strong {
    color: #276ba1;
}

.vat-calculation-info.reverse-charge {
    background: #d4edda;
    border-color: #28a745;
}

.vat-calculation-info.reverse-charge strong {
    color: #28a745;
}
