/* ==========================================================================
   PREMIUM PORTAL-DESIGN (LIGHT THEME)
   ========================================================================== */

.tdl-ms-wrapper {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 50px 40px !important;
    max-width: 650px !important;
    margin: 40px auto !important;
    font-family: 'Open Sans', 'Inter', sans-serif !important;
    box-shadow: 0 15px 40px rgba(0, 34, 68, 0.08) !important;
    position: relative;
    color: #2d3748 !important;
    border: 1px solid #edf2f7 !important;
}

/* Progress Bar */
.tdl-progress-container {
    position: absolute;
    top: 0; left: 0; width: 100%;
    height: 6px;
    background: #edf2f7;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.tdl-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #003366, #0055a4);
    width: 33%;
    transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Steps */
.tdl-ms-step { display: none; }
.tdl-ms-step.active { display: block; animation: tdlFadeUp 0.5s ease forwards; }

@keyframes tdlFadeUp { 
    from { opacity: 0; transform: translateY(15px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.tdl-badge {
    color: #0055a4 !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    background: #ebf4ff;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: inline-block;
}

.tdl-ms-header h2 {
    color: #003366 !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    margin: 10px 0 !important;
}

.tdl-ms-step p {
    color: #718096 !important;
    font-size: 16px !important;
    margin-bottom: 30px !important;
    line-height: 1.6;
}

/* Auswahl-Karten */
.tdl-ms-grid { display: grid; grid-template-columns: 1fr; gap: 15px; margin: 30px 0; }
@media (min-width: 600px) { .tdl-ms-grid { grid-template-columns: 1fr 1fr; } }

.tdl-ms-card input { display: none !important; }

.card-box {
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    padding: 22px !important;
    border-radius: 12px !important;
    color: #4a5568 !important;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.tdl-ms-card:hover .card-box {
    border-color: #cbd5e0 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}

.tdl-ms-card input:checked + .card-box {
    border-color: #0055a4 !important;
    background: #f0f7ff !important;
    color: #003366 !important;
    box-shadow: 0 0 0 1px #0055a4 !important;
}

/* Floating Labels - Die elegante Lösung für Textfelder */
.tdl-ms-field { position: relative; margin-bottom: 35px; }

.tdl-ms-field input {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #cbd5e0 !important;
    color: #2d3748 !important;
    padding: 15px 0 !important;
    font-size: 16px !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.3s ease !important;
}

.tdl-ms-field label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 16px;
    color: #a0aec0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.tdl-ms-field input:focus ~ label,
.tdl-ms-field input:not(:placeholder-shown) ~ label {
    top: -16px;
    font-size: 12px;
    color: #0055a4;
    font-weight: 700;
}

.tdl-ms-field input:focus {
    border-bottom-color: #0055a4 !important;
}

/* Buttons */
.tdl-ms-footer.split { display: flex; gap: 15px; margin-top: 35px; }

.tdl-ms-btn, .tdl-ms-btn-submit {
    flex: 1;
    background: #003366 !important;
    color: #ffffff !important;
    padding: 20px !important;
    border-radius: 8px !important;
    border: none !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
}

.tdl-ms-btn.secondary { 
    background: #f7fafc !important; 
    color: #4a5568 !important; 
    border: 1px solid #e2e8f0 !important;
}

.tdl-ms-btn:hover, .tdl-ms-btn-submit:hover { 
    background: #0055a4 !important; 
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 85, 164, 0.2) !important;
}

/* Checkbox */
.tdl-ms-check { display: flex; gap: 15px; cursor: pointer; color: #718096; font-size: 13px; align-items: flex-start; }
.tdl-ms-check input { display: none !important; }

.tdl-ms-check .box {
    min-width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 5px;
    position: relative;
    background: #fff;
    transition: 0.2s;
}

.tdl-ms-check input:checked + .box {
    background: #0055a4;
    border-color: #0055a4;
}

.tdl-ms-check input:checked + .box:after {
    content: '✓';
    position: absolute;
    color: #fff;
    left: 4px;
    top: -2px;
    font-weight: bold;
}

.tdl-ms-check a { color: #0055a4; text-decoration: underline; font-weight: 600; }