/**
 * VIA Kartenbestellung - WordPress/Enfold Styles
 * Version: 2.2.6 - Minimalistisches Design
 * 
 * Alle Klassen mit "via-" Prefix für Enfold-Kompatibilität
 */

/* Container & Layout */
.via-kartenbestellung-wrapper {
    margin: 0 auto;
    max-width: 100%;
}

.via-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 0;
    background: white;
}

.via-header {
    text-align: center;
    padding: 40px 30px 20px;
    background: #ffffff;
    color: #003d82;
    border-bottom: 2px solid #003d82;
}

.via-header h1 {
    margin: 0 0 8px 0;
    font-size: 26px;
    font-weight: 600;
    color: #003d82 !important;
}

.via-header p {
    margin: 0;
    font-size: 15px;
    color: #666 !important;
}

.via-content {
    padding: 30px;
}

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

.via-step.via-active {
    display: block;
}

/* Form Elements */
.via-form-group {
    margin-bottom: 25px;
}

.via-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

.via-required {
    color: #dc3545;
}

.via-form-group input[type="text"],
.via-form-group input[type="email"],
.via-form-group input[type="number"],
.via-form-group input[type="date"],
.via-form-group input[type="time"],
.via-form-group select,
.via-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
    background: #ffffff;
}

.via-form-group input:focus,
.via-form-group select:focus,
.via-form-group textarea:focus {
    outline: none;
    border-color: #003d82;
}

.via-hint {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}

/* Buttons */
.via-btn {
    display: inline-block;
    padding: 15px 30px;
    background: #003d82;
    color: white !important;
    border: none;
    border-radius: 2px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none !important;
    width: 100%;
}

.via-btn:hover {
    background: #002a5c;
    color: white !important;
}

.via-btn:active {
    transform: none;
}

.via-btn-secondary {
    background: transparent;
    color: #003d82 !important;
    border: 1px solid #003d82;
}

.via-btn-secondary:hover {
    background: #f8f9fa;
    color: #003d82 !important;
}

/* Error & Success Messages */
.via-error {
    background: #fff;
    border: 1px solid #f5c6cb;
    border-left: 3px solid #dc3545;
    padding: 15px 20px;
    border-radius: 2px;
    margin-bottom: 20px;
    color: #721c24;
}

.via-success-box {
    background: #ffffff;
    color: #212529;
    padding: 50px 30px;
    border: 2px solid #28a745;
    border-radius: 2px;
    text-align: center;
    display: none;
}

.via-success-box.via-show {
    display: block;
}

.via-success-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: white;
}

.via-success-box h2 {
    font-size: 24px;
    margin: 0 0 15px 0;
    color: #003d82 !important;
    font-weight: 600;
}

.via-success-box p {
    font-size: 15px;
    margin: 10px 0;
    color: #555 !important;
    line-height: 1.6;
}

.via-success-box .via-btn {
    background: #003d82;
    color: white !important;
    margin-top: 25px;
    width: auto;
    display: inline-block;
}

.via-success-box .via-btn:hover {
    background: #002a5c;
    color: white !important;
}

/* Info Box */
.via-info-box {
    background: #ffffff;
    padding: 25px 0;
    margin-bottom: 30px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.via-info-box h3 {
    margin: 0 0 15px 0;
    color: #003d82;
    font-size: 18px;
    font-weight: 600;
}

.via-info-box p {
    margin: 6px 0;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.via-info-box strong {
    color: #333;
    font-weight: 500;
}

/* Preis-Highlight */
.via-preis-highlight {
    background: transparent;
    padding: 25px 0;
    margin: 30px 0;
    text-align: center;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.via-preis-highlight .via-betrag {
    font-size: 36px;
    font-weight: 600;
    color: #003d82;
    margin: 10px 0;
}

.via-preis-info {
    font-size: 14px;
    color: #999;
    margin-top: 8px;
}

/* Loading Spinner */
.via-loading {
    text-align: center;
    padding: 40px;
}

.via-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #003d82;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: via-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes via-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .via-container {
        padding: 15px;
        border-radius: 0;
    }
    
    .via-header {
        margin: -15px -15px 20px -15px;
        padding: 20px 15px;
    }
    
    .via-header h1 {
        font-size: 24px;
    }
    
    .via-content {
        padding: 15px;
    }
    
    .via-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .via-preis-highlight .via-betrag {
        font-size: 28px;
    }
}

/* Enfold-spezifische Anpassungen */
.avia-builder-el-0 .via-kartenbestellung-wrapper {
    margin-top: 0;
}

.main_color .via-container {
    background: white;
}

/* Enfold Content-Bereich */
.content .via-kartenbestellung-wrapper {
    max-width: 100%;
}

.container_wrap .via-container {
    max-width: 800px;
}
