/* TSV Martfeld - Spielerlaubnis Form Styles */

.tsv-form-container{max-width:900px;margin:0 auto}
.tsv-online-header{background:linear-gradient(135deg,#0c2941,#15446b);color:#fff;padding:25px;border-radius:12px;margin-bottom:25px;display:flex;align-items:center;gap:20px}
.tsv-online-header img{width:70px}
.tsv-online-header h1{color:#fff!important;margin:0 0 8px 0}
.tsv-online-header p{margin:0;opacity:.9}
.tsv-page{background:#fff;border-radius:10px;box-shadow:0 3px 12px rgba(0,0,0,.08);padding:20px;margin-bottom:15px}
.tsv-page h2{color:#0c2941;font-size:1.2rem;margin:0 0 12px 0;padding-bottom:6px;border-bottom:2px solid #257bc1}
.tsv-page h3{color:#0c2941;font-size:1rem;margin:15px 0 8px 0}
.tsv-print-header{display:none}
.tsv-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.tsv-form-group{display:flex;flex-direction:column}
.tsv-form-group label{font-weight:500;color:#333;margin-bottom:3px;font-size:.85rem}
.tsv-form-group input,.tsv-form-group select{padding:10px;border:1px solid #ddd;border-radius:5px;font-size:.95rem;transition:border-color .2s}
.tsv-form-group input:focus,.tsv-form-group select:focus{border-color:#257bc1;outline:none;box-shadow:0 0 0 2px rgba(37,123,193,.15)}
.tsv-form-group.full-width{grid-column:1/-1}
.tsv-required{color:#dc3545;font-weight:bold}

/* Radio + Checkbox Labels */
.tsv-radio-label{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:.9rem}
.tsv-radio-label input{width:16px;height:16px}

/* Antragsart-Optionen */
.tsv-antragsart-options{display:flex;flex-direction:column;gap:10px}
.tsv-antragsart-option{padding:12px 15px;background:#f8f9fa;border-radius:6px;border:2px solid transparent;transition:border-color .2s}
.tsv-antragsart-option:hover{border-color:#257bc1}
.tsv-antragsart-option.selected{border-color:#257bc1;background:#e8f4fd}
.tsv-option-desc{margin:5px 0 0 22px;font-size:.8rem;color:#666}

/* Info/Text Boxes */
.tsv-text-box{background:#f8f9fa;padding:12px;border-radius:6px;margin:10px 0;font-size:.8rem;line-height:1.5}
.tsv-text-box h4{margin:10px 0 5px 0;font-size:.85rem;color:#0c2941}
.tsv-text-box h4:first-child{margin-top:0}
.tsv-text-box p{margin:5px 0}
.tsv-info-box{background:#fff3cd;border-left:3px solid #ffc107;padding:10px 12px;margin:10px 0;font-size:.85rem}
.tsv-info-box p{margin:0}

/* Consent Checkboxes */
.tsv-checkbox-consent{display:flex;align-items:flex-start;gap:8px;margin:10px 0;padding:12px;background:#e8f4fd;border-radius:6px}
.tsv-checkbox-consent input{width:18px;height:18px;min-width:18px;margin-top:2px;cursor:pointer}
.tsv-checkbox-consent label{font-size:.85rem;line-height:1.4}
.tsv-checkbox-consent a{color:#257bc1;text-decoration:underline}
.tsv-consent-required{border-left:3px solid #257bc1}

/* Buttons */
.tsv-form-actions{display:flex;gap:12px;margin-top:15px;flex-wrap:wrap}
.tsv-btn{display:inline-flex;align-items:center;gap:6px;padding:12px 20px;border:none;border-radius:6px;font-size:.95rem;cursor:pointer;transition:all .2s}
.tsv-btn svg{width:18px;height:18px;fill:currentColor}
.tsv-btn-secondary{background:#6c757d;color:#fff}
.tsv-btn-secondary:hover{background:#5a6268}
.tsv-submit-btn{background:#257bc1;color:#fff;font-weight:600;font-size:1rem;padding:14px 28px}
.tsv-submit-btn:hover:not(:disabled){background:#0c2941}
.tsv-submit-btn:disabled{background:#adb5bd;cursor:not-allowed;opacity:.7}

/* Fehler */
.tsv-error{border-color:#dc3545!important;box-shadow:0 0 0 2px rgba(220,53,69,.15)!important}
.tsv-field-error{color:#dc3545;font-size:.8rem;margin-top:4px}
.tsv-form-errors{background:#f8d7da;border:1px solid #f5c6cb;color:#721c24;border-radius:6px;padding:12px;margin:15px 0}
.tsv-form-errors ul{margin:0;padding-left:20px}
.tsv-form-errors li{margin:3px 0}

/* Lade-Overlay */
.tsv-loading-overlay{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,.9);z-index:9999;flex-direction:column;align-items:center;justify-content:center}
.tsv-spinner{width:40px;height:40px;border:4px solid #ddd;border-top-color:#257bc1;border-radius:50%;animation:tsv-spin .8s linear infinite}
.tsv-loading-overlay p{margin-top:15px;font-size:1rem;color:#0c2941}
@keyframes tsv-spin{to{transform:rotate(360deg)}}

/* Erfolgsmeldung */
.tsv-success-message{text-align:center;padding:30px!important}
.tsv-success-icon{width:60px;height:60px;background:#28a745;color:#fff;border-radius:50%;font-size:30px;line-height:60px;margin:0 auto 15px}
.tsv-success-message h2{color:#28a745!important;border:none!important}

/* Seitenumbruch Print */
.tsv-page-break{display:none}
.online-only{display:block}

/* Responsive */
@media (max-width:600px){
    .tsv-form-row{grid-template-columns:1fr}
    .tsv-form-actions{flex-direction:column}
    .tsv-online-header{flex-direction:column;text-align:center}
}

/* ===== PRINT ===== */
@media print{
@page{size:A4;margin:10mm}
*{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
html body header,html body footer,html body nav,html body .site-header,html body .site-footer,html body .main-header-bar,html body #masthead,html body .custom-logo-link,html body img.custom-logo,html body .entry-header,html body .ast-breadcrumbs-wrapper,html body #ast-scroll-top,html body .ast-mobile-header-wrap{display:none!important}
body{font-size:8.5pt!important;line-height:1.2!important}
.tsv-form-container{max-width:100%!important;margin:0!important}
.tsv-online-header,.online-only,.no-print,.tsv-submit-btn,.tsv-loading-overlay,.tsv-form-errors,.tsv-success-message{display:none!important}
.tsv-print-header{display:flex!important;align-items:center;gap:8px;padding-bottom:4px;margin-bottom:6px;border-bottom:1pt solid #0c2941}
.tsv-print-header img{width:28px!important}
.tsv-print-header .title{font-size:10pt!important;font-weight:bold!important;color:#0c2941!important;margin:0!important}
.tsv-print-header .subtitle{font-size:7pt!important;color:#555!important;margin:1px 0 0 0!important}
.tsv-page{box-shadow:none!important;border:none!important;padding:0!important;margin:0!important}
.tsv-page h2{font-size:9pt!important;margin:0 0 5px 0!important;padding-bottom:2px!important}
.tsv-form-row{gap:3px 8px!important;margin-bottom:4px!important}
.tsv-form-group label{font-size:7pt!important;margin-bottom:1px!important}
.tsv-form-group input{border:none!important;border-bottom:.5pt solid #333!important;border-radius:0!important;padding:1px 0!important;font-size:7.5pt!important}
.tsv-text-box{font-size:6pt!important;padding:4px!important;line-height:1.15!important;margin:4px 0!important}
.tsv-checkbox-consent{padding:3px!important;margin:3px 0!important}
.tsv-checkbox-consent input{width:8px!important;height:8px!important;min-width:8px!important}
.tsv-checkbox-consent label{font-size:6.5pt!important;line-height:1.15!important}
.tsv-info-box{padding:3px 5px!important;margin:3px 0!important}
.tsv-info-box p{font-size:6.5pt!important}
p{font-size:7pt!important;margin:3px 0!important}
}
