/* Abholung-spezifische CSS Styles */

/* Loading Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Spinner Container */
#pickup-loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

#pickup-loading-spinner > div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

#pickup-loading-spinner .spinner-text {
    margin-bottom: 1rem;
    font-weight: bold;
}

#pickup-loading-spinner .spinner-element {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #28a745;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    margin: 0 auto;
} 

/* Race Selection Styling */
.race-selection-section {
    margin-bottom: 30px;
}

.race-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.race-option {
    position: relative;
}

.race-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.race-option-label {
    display: block;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.race-option-label:hover {
    background: #e9ecef;
    border-color: #FF5722;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.race-option input[type="radio"]:checked + .race-option-label {
    background: #fff3e0;
    border-color: #FF5722;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.2);
}

.race-option input[type="radio"]:checked + .race-option-label:before {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: #FF5722;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.race-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.race-period {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}

.race-teams-info {
    font-size: 13px;
    color: #888;
    font-style: italic;
}

/* Responsive design for race selection */
@media (max-width: 768px) {
    .race-selection-grid {
        grid-template-columns: 1fr;
    }
    
    .race-option-label {
        padding: 15px;
    }
    
    .race-title {
        font-size: 16px;
    }
}

/* ========================================
   NO-RACE PAGE (Abholung) – NEW DESIGN
   ======================================== */

:root {
    --no-race-icon-green: #5b7f2b;
}

.no-race-wrapper {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

.no-race-area {
    background: #f7f8f9; /* graue Außenbox wie "Schule auswählen" */
    padding: 26px 26px;
    border-radius: 0;
    margin: 2rem auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
    max-width: 640px;
}

.ewasterace-login-page .no-race-wrapper .login-yellow-accent {
    display: block;
    height: 4px !important;
    background: #f2c200 !important;
    border-radius: 2px;
    width: 48px;
    margin: 8px auto 0;
}

.ewasterace-login-page .no-race-area h1.login-main-title.no-race-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: rgb(28, 28, 28) !important;
    letter-spacing: 0.2px;
    padding: 6px 0;
    line-height: 1.15;
    text-align: center;
}

.no-race-lead {
    text-align: center;
    font-size: 15px;
    color: #666;
    margin: 14px 0 18px 0;
}

.no-race-help {
    background: #eef5ee;
    border: 1px solid rgba(40, 167, 69, 0.18);
    border-radius: 0;
    box-shadow: none;
    padding: 18px 18px;
    text-align: center;
    margin: 0 auto 18px auto;
    max-width: 560px;
}

.no-race-help-title {
    font-weight: 800;
    margin-bottom: 8px;
    color: #1c1c1c;
}

.no-race-help-contact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.no-race-icon {
    color: var(--no-race-icon-green);
}

.no-race-help-phone {
    color: #1f2937;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.no-race-help-phone:hover {
    text-decoration: underline;
}

.no-race-help-mail {
    color: #ff6600;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.no-race-help-mail:hover {
    text-decoration: underline;
}

.ewasterace-login-page .no-race-area h2.no-race-subtitle {
    text-align: center;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin: 14px 0 10px 0 !important;
    color: #1c1c1c !important;
}

.no-race-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 560px;
    margin: 0 auto 18px auto;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    padding: 18px 20px;
}

.no-race-info-item {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    transition: none;
}



.no-race-info-title {
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: #111;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.no-race-info-text {
    color: #555;
    line-height: 1.45;
    font-size: 14px;
}

.no-race-info-text a {
    color: #ff6600;
    text-decoration: none;
    font-weight: 700;
}

.no-race-info-text a:hover {
    text-decoration: underline;
}

.no-race-thanks {
    text-align: center;
    margin: 18px 0 0 0;
    color: #666;
    font-weight: 500;
    font-size: 13px;
}

.no-race-actions {
    text-align: center;
    margin-top: 16px;
}

.no-race-back {
    display: inline-block;
    color: #ff6600;
    font-weight: 800;
    text-decoration: none;
    font-size: 14px;
}

.no-race-back:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .no-race-title {
        font-size: 20px;
    }

    .no-race-info-grid {
        grid-template-columns: 1fr;
        padding: 14px 14px;
    }

    .no-race-area {
        padding: 16px 16px;
    }
}

.ewasterace-login-page .success-thanks-title {
    font-weight: 800 !important;
}

/* ========================================
   SCHOOL SELECTION (Abholung)
   ======================================== */

.school-selection-wrapper {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

.school-selection-wrapper .login-header-section {
    background: transparent !important;
    margin-bottom: 18px;
}

.ewasterace-login-page .school-selection-wrapper .login-yellow-accent {
    display: block;
    height: 4px !important;
    background: #f2c200 !important; /* gelb wie Vorlage */
    border-radius: 2px;
    width: 48px;
    margin: 8px auto 0;
}

.ewasterace-login-page .school-selection-wrapper .school-selection-title {
    font-size: 24px;
    font-weight: 700;
    color: rgb(28, 28, 28) !important;
    letter-spacing: 0.2px;
    padding: 6px 0;
    line-height: 1.15;
    text-align: center;
}

.school-selection-area {
    background: #f7f8f9; /* graue Außen-Box */
    padding: 26px 26px;
    border-radius: 0;
    margin: 2rem auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
    max-width: 640px; /* schmaler wie Vorlage */
}

.school-selection-form {
    margin: 0;
}

.school-selection-box {
    background: #ffffff; /* Box weiß */
    border-radius: 0;
    padding: 14px 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: none;
    width: 100%;
    margin: 0;
}

.school-selection-list {
    background: transparent;
    padding: 0;
}

.school-selection-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: start;
    column-gap: 10px;
    padding: 7px 6px;
    cursor: pointer;
    border-radius: 0;
    border: 0;
    outline: 0;
}

.school-selection-item input[type="radio"] {
    margin-top: 9px; /* etwas tiefer neben Teamnamen */
    transform: none;
    position: relative;
    top: 0;
}

.school-selection-item-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.school-selection-primary {
    font-size: 16px;
    line-height: 28px;
    color: #1C1C1C;
    font-weight: 800;
}

.school-selection-secondary {
    display: block;
    margin-top: 0;
    font-size: 13px;
    line-height: 18px;
    font-weight: 400;
    color: #444;
}

.school-selection-item:hover {
    background: rgba(255, 255, 255, 0.7);
}

.school-selection-item.is-selected {
    background: #ffffff;
    box-shadow: none;
    border: 0;
}

.school-selection-item:focus,
.school-selection-item:focus-within {
    outline: none;
    box-shadow: none;
}

.school-selection-item input[type="radio"]:focus {
    outline: none;
    box-shadow: none;
}

.school-selection-actions {
    margin-top: 22px;
    text-align: center;
}

.school-selection-confirm {
    background-color: #ff6600;
    color: #fff;
    border: none;
    padding: 9px 18px; /* kleiner als vorher */
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.school-selection-confirm:disabled {
    cursor: not-allowed;
}

.school-selection-confirm:not(:disabled) {
    opacity: 1;
}

.school-selection-confirm:not(:disabled):hover {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .school-selection-area {
        padding: 16px 16px;
    }

    .school-selection-box {
        padding: 12px 12px;
    }
}