/* ==========================================================================
   SEWOBE Vereinsmanager - TBV Lemgo 1911 e.V. Clean Style
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBALER RESET & ANIMIERTER DUNKLE-BLAU-GRADIENT HINTERGRUND
   -------------------------------------------------------------------------- */
*, *:after, *:before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

@keyframes bgShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 15px;
    color: #0f172a;
    line-height: 1.5;
    background: linear-gradient(-45deg, #0b1528, #162c54, #2e5dad, #1b3769);
    background-size: 300% 300%;
    animation: bgShift 16s ease infinite;
    min-height: 100vh;
}

form, .form {
    width: 100%;
    max-width: 880px;
    padding: 35px 15px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   2. HEADER & PROZESS-PROGRESSION
   -------------------------------------------------------------------------- */
header {
    margin-bottom: 25px;
    background: #ffffff;
    padding: 24px 24px 16px 24px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    border-top: 5px solid #2e5dad;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #2e5dad;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
    text-align: left;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f8fafc;
}

.nav-item {
    flex: 1 1 calc(33.333%);
    min-width: 150px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    border-right: 1px solid #cbd5e1;
    color: #64748b;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.15s ease;
}

.nav-item:last-child {
    border-right: none;
}

.nav-item h2 {
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    border: none;
    margin: 0;
    text-align: center;
}

.nav-item.active {
    background-color: #2e5dad;
    color: #ffffff;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   3. KARTEN-LAYOUT & TYPOGRAFIE
   -------------------------------------------------------------------------- */
main section {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #cbd5e1;
    border-left: 5px solid #2e5dad;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    clear: both;
}

main h2 {
    font-size: 19px;
    font-weight: 700;
    color: #2e5dad;
    padding-bottom: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    background: transparent;
    padding-left: 0;
}

main h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 20px 0 10px 0;
    clear: both;
}

/* --------------------------------------------------------------------------
   4. FLEXIBLES RESPONSIVE GRID-SYSTEM
   -------------------------------------------------------------------------- */
.inputs {
    margin-left: -8px;
    margin-right: -8px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.inputs:after, .inputs:before, section:after, section:before {
    content: " ";
    display: table;
}

.inputs:after, section:after {
    clear: both;
}

[class*="col-"] {
    position: relative;
    min-height: 1px;
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
    margin-bottom: 16px;
    float: none !important;
}

.col-xs-12 { width: 100%; }

@media (min-width: 768px) {
    .col-sm-1 { width: 8.33333%; }
    .col-sm-2 { width: 16.66667%; }
    .col-sm-3 { width: 25%; }
    .col-sm-4 { width: 33.33333%; }
    .col-sm-5 { width: 41.66667%; }
    .col-sm-6 { width: 50%; }
    .col-sm-7 { width: 58.33333%; }
    .col-sm-8 { width: 66.66667%; }
    .col-sm-9 { width: 75%; }
    .col-sm-10 { width: 83.33333%; }
    .col-sm-11 { width: 91.66667%; }
    .col-sm-12 { width: 100%; }
    .col-sm-offset-4 { margin-left: 33.33333%; }
    .col-sm-offset-8 { margin-left: 66.66667%; }
    .col-sm-offset-9 { margin-left: 75%; }
}

/* --------------------------------------------------------------------------
   5. EINGABEFELDER, VALIDIERUNG & PFLICHTFELD-STYLING
   -------------------------------------------------------------------------- */
.input-field {
    position: relative !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    float: none !important;
}

.input-field label,
.input-field label.inlineLabel,
.input-field > label {
    order: 1 !important;
    display: block !important;
    position: relative !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin-bottom: 5px !important;
    margin-top: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
    height: auto !important;
    background: transparent !important;
    float: none !important;
    width: 100% !important;
}

.required-label::after {
    content: " *" !important;
    color: #dc2626 !important;
    font-weight: bold !important;
}

.input-field input:not([type='checkbox']),
.input-field select,
.input-field textarea,
input:not([type='checkbox']),
select,
textarea {
    order: 2 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 42px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    border: 1px solid #94a3b8 !important;
    border-radius: 4px !important;
    outline: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    float: none !important;
}

textarea {
    height: auto !important;
    min-height: 80px !important;
}

select {
    -webkit-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
    background: #ffffff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>") no-repeat calc(100% - 12px) center !important;
    padding-right: 36px !important;
}

input:focus, select:focus, textarea:focus {
    border-color: #2e5dad !important;
    box-shadow: 0 0 0 3px rgba(46, 93, 173, 0.2) !important;
}

.input-field > *:not(label):not(input):not(select):not(textarea) {
    order: 3 !important;
}

/* --------------------------------------------------------------------------
   6. AUSBLENDEN VON SEWOBE-KALENDER-ICONS
   -------------------------------------------------------------------------- */
.ui-datepicker-trigger,
button.ui-datepicker-trigger,
.input-field button,
.input-field img,
.input-field a.ui-datepicker-trigger,
.input-field .input-icon,
.input-field svg,
.input-field img[src*="calendar"],
.input-field img[src*="kalender"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
}

/* --------------------------------------------------------------------------
   7. CHECKBOX-KACHELN & ABTEILUNGEN
   -------------------------------------------------------------------------- */
.input-checkbox {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    padding: 10px 14px !important;
    margin-bottom: 0 !important;
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #1e293b !important;
    min-height: 42px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease !important;
}

.input-checkbox:hover {
    background-color: #d5e5f6 !important;
    border-color: #2e5dad !important;
}

.input-checkbox input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin-right: 12px !important;
    margin-top: 0 !important;
    flex: 0 0 18px !important;
    cursor: pointer !important;
    accent-color: #2e5dad !important;
}

/* --------------------------------------------------------------------------
   8. SYSTEM-MELDUNGEN
   -------------------------------------------------------------------------- */
.alert {
    background-color: #d5e5f6;
    border-left: 4px solid #2e5dad;
    color: #1e3a8a;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 20px;
    width: 100%;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    box-shadow: none !important;
}

.alert-danger:not(:empty) {
    background-color: #fef2f2;
    border-left-color: #dc2626;
    color: #991b1b;
}

.alert-success:not(:empty),
.status-meldung {
    background-color: #f0fdf4;
    border-left: 4px solid #16a34a;
    color: #166534;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --------------------------------------------------------------------------
   9. BUTTONS & FOOTER-DOWNLOAD-LINK FIX
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    border: 1px solid transparent;
    cursor: pointer;
    width: 100%;
    height: 44px;
    transition: all 0.15s ease;
    margin-top: 5px;
    margin-bottom: 10px;
}

.btn-primary {
    background-color: #2e5dad;
    color: #ffffff !important;
    border-color: #2e5dad;
}

.btn-primary:hover {
    background-color: #2020b2;
    border-color: #2020b2;
}

.btn-plain {
    background-color: #ffffff;
    color: #2e5dad !important;
    border-color: #2e5dad;
}

.btn-plain:hover {
    background-color: #d5e5f6;
}

footer {
    text-align: center;
    margin-top: 15px;
}

footer a,
footer a:link,
footer a:visited {
    display: inline-block !important;
    background-color: #ffffff !important;
    color: #2e5dad !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    border: 2px solid #2e5dad !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s ease !important;
    margin-top: 10px !important;
}

footer a:hover,
footer a:active {
    background-color: #2e5dad !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   10. MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    [class*="col-sm-"] {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    .nav-item {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: 1px solid #cbd5e1;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    main section {
        padding: 18px 14px 8px 14px;
    }
    
    header h1 {
        font-size: 22px;
    }
}