/* EWasteRace Login Page CSS v2.1 */
.ewasterace-login-page {
    min-height: 80vh;
    padding: 40px 20px;
    margin-top: 130px; /* Abstand von oben */
}

/* Ab 1023px kein margin-top */
@media (max-width: 1023px) {
    .ewasterace-login-page {
        margin-top: 0;
    }
}

.ewasterace-login-page:not(.logged-in) {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px; /* Login-Form weniger Abstand */
}

.ewasterace-login-page .container {
    max-width: 500px;
    width: 100%;
}

/* Nach Login: Volle Breite für Dashboard */
.ewasterace-login-page.logged-in .container {
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

/* Volle Breite nur für spezifische Seiten */
body.page-template-page-abholung .ewasterace-login-page.logged-in .container,
body.page-template-page-abholtermine .ewasterace-login-page.logged-in .container {
    max-width: 100%;
}

/* Reduziertes Container-Padding bei kleinen Bildschirmen */
@media (max-width: 768px) {
    .ewasterace-login-page.logged-in .container {
        padding: 0 5px;
    }
}

/* ========================================
   SHARED STATISTICS STYLES - ORANGE THEME
   ======================================== */

/* Statistics Header - Simple */
.stats-simple-header {
    margin-bottom: 1.5rem;
    padding: 1rem 0;
}

.stats-header-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.stats-header-left {
    flex: 1;
}

.stats-header-right {
    flex: 0 0 auto;
    text-align: right;
    min-width: 200px;
}

.stats-user-info {
    /* User and points on the left */
}

.stats-username {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.stats-points-text {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.stats-race-team-line {
    color: #333;
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
}

.stats-period-info {
    font-size: 0.85rem;
    color: #888;
}

@media (max-width: 768px) {
    .stats-header-layout {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-header-right {
        text-align: left;
        min-width: auto;
    }
    
    .stats-race-team-line {
        font-size: 0.9rem;
    }
    
    .stats-username {
        font-size: 1.1rem;
    }
}





/* Statistics Tables */
.stats-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #E64A19;
}

.stats-table-header {
    background: linear-gradient(135deg, #FF5722 0%, #FF7043 100%);
    color: white;
}

.stats-table-header th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #E64A19;
}

.stats-table-header th:first-child {
    border-top-left-radius: calc(0.5rem - 1px);
}

.stats-table-header th:last-child {
    border-top-right-radius: calc(0.5rem - 1px);
}

.stats-table-header th.text-center {
    text-align: center;
}

.stats-table tbody tr {
    background: white;
    transition: all 0.2s ease;
}

.stats-table tbody tr:hover {
    background: #fff8f5;
}

.stats-table tbody td {
    padding: 12px 15px;
    color: #555;
}

.stats-table tbody td.text-center {
    text-align: center;
}

.stats-table tbody td:first-child {
    font-weight: 600;
    color: #333;
}

.stats-table tbody td:last-child {
    font-weight: 600;
    color: #FF5722;
}



.stats-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: calc(0.5rem - 1px);
}

.stats-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: calc(0.5rem - 1px);
}

/* User's team highlighting - subtle orange */
.stats-user-team-row {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0cc 100%) !important;
}

.stats-user-team-row td {
    font-weight: 600 !important;
}

.stats-user-team-row:hover {
    background: linear-gradient(135deg, #ffecb3 0%, #ffd699 100%) !important;
}

/* ========================================
   VIEW TOGGLE BUTTONS
   ======================================== */

.race-toggle-btn:first-of-type{
    margin:0 5px 0 0;
}
.view-toggle-container {
    display: flex;
    justify-content: center;
    margin: 20px 0 30px 0;
    gap: 0;
}

.view-toggle-buttons {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #dee2e6;
}

.view-toggle-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.view-toggle-btn:hover {
    color: #495057;
    background: rgba(255, 87, 34, 0.1);
}

.view-toggle-btn.active {
    background: #FF5722;
    color: white;
    box-shadow: 0 2px 4px rgba(255, 87, 34, 0.3);
}

.view-toggle-btn i {
    font-size: 1rem;
}

/* Responsive Toggle Buttons
@media (max-width: 480px) {
    .view-toggle-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 100px;
    }
    
    .view-toggle-btn span {
        display: none;
    }
} */

/* ========================================
   CARD VIEW FOR RESPONSIVE RANKINGS
   ======================================== */

.rankings-card-view {
    display: none;
    gap: 15px;
    margin: 20px 0;
}

.rankings-card-view.active {
    display: flex;
    flex-direction: column;
}

.ranking-card {
    background: white;
    border: 1px solid #E64A19;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* When details are open, adjust the main card's bottom radius */
.ranking-card:has(.card-details-row[style*="block"]) {
    border-radius: 12px 12px 0 0;
}

/* Fallback for browsers that don't support :has() */
.ranking-card.details-open {
    border-radius: 12px 12px 0 0;
}

.ranking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 74, 25, 0.15);
}

.ranking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.ranking-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.ranking-card-rank {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF5722;
    min-width: 40px;
}

.ranking-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    word-wrap: break-word;
    line-height: 1.3;
}

.ranking-card-points {
    background: linear-gradient(135deg, #FF5722 0%, #FF7043 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(255, 87, 34, 0.3);
}

.ranking-card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.ranking-card-stat {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ranking-card-stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    display: block;
}

.ranking-card-stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 4px;
    display: block;
}

.ranking-card-actions {
    margin-top: 15px;
    text-align: center;
}

.ranking-card-details-btn {
    background: transparent;
    border: 1px solid #FF5722;
    color: #FF5722;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ranking-card-details-btn:hover {
    background: #FF5722;
    color: white;
}

/* Special styling for top 3 cards */
.ranking-card.rank-1 {
    border-left: 6px solid #FFD700;
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
}

.ranking-card.rank-2 {
    border-left: 6px solid #C0C0C0;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.ranking-card.rank-3 {
    border-left: 6px solid #CD7F32;
    background: linear-gradient(135deg, #fdf5e6 0%, #ffffff 100%);
}

/* User team highlighting in card view */
.ranking-card.user-team {
    border: 2px solid #FF5722;
    background: linear-gradient(135deg, #fff3e0 0%, #ffffff 100%);
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.2);
}

/* Card Detail Sections */
.card-details-row {
    margin-top: 15px;
    transition: all 0.3s ease;
}

.card-details-content {
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
    padding: 15px;
    margin-top: 0;
}

.card-details-header h4 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.card-details-stats .detail-section {
    margin-bottom: 20px;
}

.card-details-stats .detail-section:last-child {
    margin-bottom: 0;
}

.card-details-stats h5 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.detail-item-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px;
    transition: all 0.2s ease;
}

.detail-item-card:hover {
    border-color: #FF5722;
    box-shadow: 0 2px 4px rgba(255, 87, 34, 0.1);
}

.detail-item-card .detail-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.detail-item-card .detail-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.detail-item-card .detail-count {
    color: #666;
}

.detail-item-card .detail-points {
    color: #FF5722;
    font-weight: 600;
}

/* Responsive adjustments for card details */
@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .card-details-content {
        padding: 12px;
    }
    
    .detail-item-card {
        padding: 8px;
    }
}

/* Responsive card adjustments */
@media (max-width: 768px) {
    .ranking-card {
        padding: 15px;
    }
    
    .ranking-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .ranking-card-points {
        align-self: flex-end;
        font-size: 0.95rem;
        padding: 6px 14px;
    }
    
    .ranking-card-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .ranking-card-stat-value {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .ranking-card-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .ranking-card-stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 12px;
    }
    
    .ranking-card-stat-value,
    .ranking-card-stat-label {
        margin: 0;
    }
}

/* ========================================
   TABLE VIEW CONTROL
   ======================================== */

.rankings-table-view {
    display: block;
}

.rankings-table-view.hidden {
    display: none;
}

/* Improved table responsiveness */
.rankings-table-container {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* View-specific detail visibility */
.rankings-table-view .card-view-only {
    display: none !important;
}

.rankings-card-view .table-view-only {
    display: none !important;
}

.rankings-table-view.hidden .table-view-only {
    display: none !important;
}

.rankings-card-view.active .card-view-only {
    /* Will be controlled by JavaScript */
}

.rankings-table-container::-webkit-scrollbar {
    height: 8px;
}

.rankings-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.rankings-table-container::-webkit-scrollbar-thumb {
    background: #FF5722;
    border-radius: 4px;
}

.rankings-table-container::-webkit-scrollbar-thumb:hover {
    background: #E64A19;
}

/* ========================================
   TEAM MEMBERS CARD VIEW
   ======================================== */

.team-members-card-view {
    display: none;
    gap: 15px;
    margin: 15px 0;
}

.team-members-card-view.active {
    display: flex;
    flex-direction: column;
}

.team-member-card {
    background: white;
    border: 1px solid #E64A19;
    border-radius: 10px;
    padding: 18px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(230, 74, 25, 0.1);
}

.team-member-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(230, 74, 25, 0.15);
}

.team-member-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.team-member-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.team-member-total-points {
    background: linear-gradient(135deg, #FF5722 0%, #FF7043 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.team-member-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.team-member-stat {
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.team-member-stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 2px;
}

.team-member-stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    display: block;
    line-height: 1.2;
}

/* Special highlighting for high performers */
.team-member-card.top-performer {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
}

.team-member-card.top-performer .team-member-total-points {
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
}

/* Responsive adjustments for team member cards */
@media (max-width: 768px) {
    .team-member-card {
        padding: 15px;
    }
    
    .team-member-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .team-member-total-points {
        align-self: flex-end;
        font-size: 0.85rem;
        padding: 5px 10px;
    }
    
    .team-member-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .team-member-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .team-member-stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 10px;
    }
    
    .team-member-stat-value,
    .team-member-stat-label {
        margin: 0;
    }
}

/* Top 3 teams - more subtle styling with orange accents */
.stats-rank-1 {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%) !important;
}

.stats-rank-2 {
    background: linear-gradient(135deg, #fff5f0 0%, #ffebe0 100%) !important;
}

.stats-rank-3 {
    background: linear-gradient(135deg, #fff2e8 0%, #ffe5d1 100%) !important;
}

/* Summary statistics box */
.stats-summary {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 0.5rem;
    border: 1px solid #E64A19;
}

.stats-summary h4 {
    margin: 0 0 15px 0;
    color: #FF5722;
    font-weight: 600;
}

.stats-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stats-summary-item {
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #E64A19;
}

.stats-summary-number {
    font-size: 24px;
    font-weight: bold;
    color: #FF5722;
}

.stats-summary-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Race info styling */
.stats-race-info h4 {
    color: #FF5722;
    margin-bottom: 0.5rem;
}

.stats-race-info p {
    color: #666;
    margin-bottom: 0.5rem;
}

/* Statistics section titles */
.stats-section-title {
    color: #FF5722;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ffe0cc;
}

h5.mb-3 {
    color: #FF5722;
    font-weight: 600;
    margin-bottom: 1rem !important;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ffe0cc;
}

.section-title {
    color: #FF5722;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ffe0cc;
}

/* Responsive design */
@media (max-width: 768px) {
    .stats-table {
        font-size: 14px;
    }
    
    .stats-table th,
    .stats-table td {
        padding: 8px 10px !important;
    }
    
    .stats-summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .stats-table {
        font-size: 12px;
    }
    
    .stats-table th:nth-child(2),
    .stats-table td:nth-child(2),
    .stats-table th:nth-child(3),
    .stats-table td:nth-child(3) {
        display: none;
    }
    
    .stats-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ORIGINAL STYLES CONTINUE
   ======================================== */

.ewasterace-login-page .card {
    box-shadow: none;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    margin-top: 10px;
}

/* Spezifische orangene Borders nur für die zwei Profil-Karten in der linken Spalte */
.ewasterace-login-page div[style*="flex: 1"] .card {
    border: 1px solid #ff6b35 !important;
    transition: all 0.3s ease;
}

.ewasterace-login-page div[style*="flex: 1"] .card:hover {
    transform: translateY(-2px);
    border-color: #ff8a65 !important;
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.15);
}

.ewasterace-login-page .card-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    padding: 25px;
    text-align: center;
}

.ewasterace-login-page .card-body {
    padding: 30px;
}

.ewasterace-login-page .card .form-control {
    border-radius: 8px;
    border: 2px solid #e1e5e9;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.ewasterace-login-page .card .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

/* Nur Buttons innerhalb der Login-Page Card betreffen */
.ewasterace-login-page .card .btn {
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.ewasterace-login-page .card .btn-primary {
    background: linear-gradient(135deg, #FF5722 0%, #FF7043 100%);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.ewasterace-login-page .card .btn-primary:hover {
    background: linear-gradient(135deg, #E64A19 0%, #FF5722 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
}

.ewasterace-login-page .card .btn-success {
    background: white;
    border: 1px solid #FF5722;
    color: #FF5722;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.ewasterace-login-page .card .btn-success:hover {
    background: #fff5f2;
    border-color: #E64A19;
    color: #E64A19;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.3);
}

/* Logout Button in Dashboard Content (alte Klasse noch für Kompatibilität) */
.ewasterace-login-page .logout-link {
    background: #ff6b35 !important;
    color: white !important;
    border-color: #ff5722 !important;
    font-family: inherit !important;
    font-weight: 500 !important;
}

.ewasterace-login-page .logout-link:hover {
    background: #ff5722 !important;
    color: white !important;
    text-decoration: none;
    border-color: #f44336 !important;
}

.ewasterace-login-page .dashboard-logout-btn {
    background: linear-gradient(135deg, #FF5722 0%, #FF7043 100%) !important;
    color: white !important;
    padding: 8px 16px !important;
    border: none !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    text-align: center !important;
    min-width: 80px !important;
    box-shadow: none !important;
}

.ewasterace-login-page .dashboard-logout-btn:hover {
    background: linear-gradient(135deg, #E64A19 0%, #FF5722 100%) !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2) !important;
}

.ewasterace-login-page .dashboard-logout-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.2) !important;
}

/* Team Join Logout Section */
.ewasterace-login-page .team-join-logout-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ewasterace-login-page .team-join-logout-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ewasterace-login-page .team-join-logout-link:hover {
    color: #ff6b35;
    text-decoration: none;
}

.ewasterace-login-page .team-join-logout-link i {
    font-size: 16px;
}

/* Dashboard Navigation */
.ewasterace-login-page .dashboard-nav {
    flex-direction: column;
    gap: 15px;
}

.ewasterace-login-page .main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.ewasterace-login-page .nav-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ewasterace-login-page .nav-links-secondary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    gap: 0.5rem;
}

.ewasterace-login-page .dashboard-link {
    padding: 10px 20px;
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ewasterace-login-page .dashboard-link-small {
    padding: 6px 12px;
    font-size: 0.875rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    opacity: 0.8;
}

.ewasterace-login-page .dashboard-link:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
}

.ewasterace-login-page .dashboard-link-small:hover {
    background: #e9ecef;
    color: #495057;
    opacity: 1;
    border-color: #adb5bd;
}

.ewasterace-login-page .dashboard-link.active {
    background: #667eea;
    color: white;
    border-color: #5a6fd8;
}

/* Sekundäre Navigation für temporäre Test-Links */
.ewasterace-login-page .nav-links-secondary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    gap: 0.5rem;
}

/* Kleinere Links für sekundäre Navigation */
.ewasterace-login-page .dashboard-link-small {
    padding: 6px 12px;
    font-size: 0.875rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    opacity: 0.8;
}

.ewasterace-login-page .dashboard-link-small:hover {
    background: #e9ecef;
    color: #495057;
    opacity: 1;
    border-color: #adb5bd;
}

/* Admin Section Styles */
.ewasterace-login-page .admin-section {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    padding: 20px;
    color: white;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ewasterace-login-page .admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.ewasterace-login-page .admin-badge {
    font-size: 18px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ewasterace-login-page .admin-context-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.ewasterace-login-page .admin-selector-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 180px;
}

.ewasterace-login-page .admin-selector-group label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin: 0;
}

.ewasterace-login-page .admin-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ewasterace-login-page .admin-select:focus {
    outline: none;
    background: white;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.ewasterace-login-page .admin-select:hover {
    background: white;
}

/* Loading state for admin selects */
.ewasterace-login-page .admin-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile responsive admin controls */
@media (max-width: 768px) {
    .ewasterace-login-page .admin-header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .ewasterace-login-page .admin-context-controls {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .ewasterace-login-page .admin-selector-group {
        width: 100%;
        min-width: auto;
    }
    
    /* Mobile Logout Button */
    .ewasterace-login-page .dashboard-logout-section {
        position: static;
        text-align: right;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .ewasterace-login-page .dashboard-logout-btn {
        font-size: 13px !important;
        padding: 6px 12px !important;
        min-width: 70px !important;
    }
}

/* Dashboard Content Area - Proper positioning */
.ewasterace-login-page .dashboard-content-area {
    position: relative;
    z-index: 1;
}

/* Dashboard Layout für volle Breite */
.ewasterace-login-page.logged-in .card {
    margin-bottom: 0;
}

.ewasterace-login-page.logged-in .dashboard-content-area .card {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ewasterace-login-page.logged-in .dashboard-content-area .card-body {
    padding: 40px;
    min-height: 400px;
}

.ewasterace-login-page .card .alert {
    border-radius: 8px;
    border: none;
}

.ewasterace-login-page .card .alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.ewasterace-login-page .card .alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.ewasterace-login-page .card .alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

/* Advanced Loading Screen */
.ewasterace-login-page .advanced-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    margin: 20px 0;
}

/* Login Form - Modern Design (Login-specific classes) */
.ewasterace-login-page .login-design-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.ewasterace-login-page .login-section-block {
    background: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

/* Reduziertes login-section-block Padding bei kleinen Bildschirmen */
@media (max-width: 768px) {
    .ewasterace-login-page .login-section-block {
        padding: 15px;
    }
}

.ewasterace-login-page .login-header-section {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
}

.ewasterace-login-page .login-title-area {
    position: relative;
    display: inline-block;
}

.ewasterace-login-page .login-main-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #495057;
    margin: 0;
    padding-bottom: 5px;
}

.ewasterace-login-page .login-yellow-accent {
    height: 2px;
    background: linear-gradient(90deg, #FF5722, #E64A19);
    border-radius: 1px;
    margin: 5px auto 0;
    width: 40px;
}

.ewasterace-login-page .login-form .login-form-group {
    margin-bottom: 20px;
}

.ewasterace-login-page .login-form .login-form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.ewasterace-login-page .login-form .login-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #fff;
}

.ewasterace-login-page .login-form .login-form-control:focus {
    border-color: #FF5722;
    box-shadow: 0 0 0 0.2rem rgba(255, 87, 34, 0.15);
    outline: none;
}

.ewasterace-login-page .login-form .login-form-control::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.ewasterace-login-page .login-actions {
    margin-top: 25px;
    text-align: center;
}

.ewasterace-login-page .login-btn-orange {
    background: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
    margin-bottom: 25px;
}

.ewasterace-login-page .login-btn-orange:hover {
    background: linear-gradient(135deg, #E64A19 0%, #D84315 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.ewasterace-login-page .login-btn-orange:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 87, 34, 0.3);
}

.ewasterace-login-page .login-links {
    margin-top: 10px;
    text-align: center;
}

.ewasterace-login-page .login-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.ewasterace-login-page .login-link:hover {
    color: #FF5722;
    text-decoration: underline;
}

.ewasterace-login-page .login-separator {
    color: #dee2e6;
    margin: 0 10px;
}



/* Step Navigation - kleinere orange Buttons */
.step-navigation .login-btn-orange {
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    min-width: auto !important;
}

/* New Clean Pickup Times Design */
.pickup-times-new-design {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.pickup-times-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Medium screens - when right column becomes too narrow */
@media (max-width: 1200px) and (min-width: 1025px) {
    .pickup-times-layout {
        gap: 2rem;
    }
}

/* When right column gets too small, stack vertically */
@media (max-width: 1024px) {
    .pickup-times-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .pickup-times-hints {
        order: 1;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .pickup-times-inputs {
        order: 0;
    }
    
    .pickup-times-info,
    .pickup-warning-box {
        width: 100%;
        margin: 0;
        flex: 1;
        min-height: auto;
    }
}

.pickup-times-inputs {
    flex: 1;
}

.pickup-times-hints {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pickup-times-box {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pickup-times-title {
    margin: 0 0 1.5rem 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 0.75rem;
}

.pickup-times-info {
    background: white;
    border: 2px solid #FF5722;
    border-radius: 8px;
    margin: 0;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.15);
}

.pickup-info-header {
    background: #FF5722;
    color: white;
    padding: 1rem 1.5rem;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px 6px 0 0;
    margin: 0;
}

.pickup-info-box {
    margin: 0;
    padding: 1.5rem;
}

.pickup-info-text {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Legacy styles - can be removed later */
.pickup-info-section {
    display: none;
}

.month-range {
    font-weight: 600;
}

/* Pickup Warning Box - weniger auffällig */
.pickup-warning-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 3px solid #ffc107;
    border-radius: 8px;
    margin: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pickup-warning-content {
    padding: 1.25rem;
    font-size: 14px;
    line-height: 1.5;
    color: #6c757d;
}

.pickup-times-clean {
    margin-bottom: 1rem;
}

.pickup-time-row {
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 36px;
    gap: 1rem;
    align-items: center;
}

/* Responsive pickup-time-row für kleinere Bildschirme */
@media (max-width: 768px) {
    .pickup-time-row {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
        padding: 0.75rem;
        background: #f8f9fa;
        border-radius: 8px;
        margin-bottom: 1rem;
    }
    
    .pickup-remove-btn,
    .pickup-remove-placeholder {
        width: 100%;
        height: 44px;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .pickup-time-row {
        padding: 0.5rem;
        gap: 0.5rem;
    }
}

.pickup-date-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: white;
    transition: border-color 0.3s ease;
}

.pickup-date-input:focus {
    border-color: #FF5722;
    outline: none;
}

.pickup-time-select,
select.form-control,
select.pickup-select,
select.admin-select,
select {
    padding: 12px 26px 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.pickup-time-select {
    width: 100%;
}

.pickup-time-select:focus {
    border-color: #FF5722;
    outline: none;
}

.pickup-time-select option:disabled {
    color: #999;
    background-color: #f5f5f5;
}

.pickup-remove-btn {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.7;
    flex-shrink: 0;
}

.pickup-remove-placeholder {
    width: 36px;
    height: 36px;
}

.pickup-remove-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    opacity: 1;
}

.pickup-add-time-btn {
    background: #FF5722;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pickup-add-time-btn::before {
    content: "+";
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.pickup-add-time-btn:hover {
    background: #E64A19;
    box-shadow: 0 6px 16px rgba(255, 87, 34, 0.4);
    transform: translateY(-2px);
}

.pickup-team-section {
    margin-bottom: 3rem;
}

.pickup-team-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.pickup-select {
    width: 100%;
}

.pickup-select:focus {
    border-color: #FF5722;
    outline: none;
}


.pickup-single-team-info label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #666;
    font-size: 13px;
}

.pickup-team-info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 0;
    font-size: 13px;
    color: #666;
}

.pickup-team-info-box strong {
    color: #333;
    font-weight: 600;
}

/* No Teams Available */
.pickup-no-teams-info {
    margin-bottom: 3rem;
}

.pickup-no-teams-info label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #856404;
    font-size: 14px;
}

.pickup-no-teams-info .alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 0;
    font-size: 14px;
}

.pickup-navigation {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.pickup-btn-back {
    background: transparent !important;
    color: #FF5722 !important;
    border: 2px solid #FF5722 !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.pickup-btn-back:hover {
    background: #FF5722 !important;
    border-color: #FF5722 !important;
    color: white !important;
}

.pickup-btn-next {
    background: #FF5722;
    color: white;
    border: 2px solid #FF5722;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.2);
}

.pickup-btn-next:hover {
    background: #E64A19;
    border-color: #E64A19;
    box-shadow: 0 6px 16px rgba(255, 87, 34, 0.3);
    transform: translateY(-1px);
}

/* Tablet Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .pickup-times-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pickup-times-hints {
        order: 1;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .pickup-times-inputs {
        order: 0;
    }
    
    .pickup-times-box {
        padding: 1.75rem;
        margin: 0 15px;
        width: calc(100% - 30px);
    }
    
    .pickup-times-info,
    .pickup-warning-box {
        margin: 0 15px;
        width: calc(100% - 30px);
        flex: 1;
    }
    
    .pickup-time-row {
        grid-template-columns: 2fr 1fr 1fr 36px;
        gap: 0.75rem;
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .pickup-times-new-design {
        padding: 0 5px;
        margin: 0 -5px;
    }
    
    .pickup-times-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pickup-times-hints {
        order: 1; /* Keep hints below the inputs on mobile too */
    }
    
    .pickup-times-inputs {
        order: 0;
    }
    
    .pickup-times-info {
        position: static;
        margin: 0 5px;
        width: calc(100% - 10px);
        min-width: unset;
        max-width: calc(100% - 10px);
    }
    
    .pickup-warning-box {
        margin: 0 5px;
        width: calc(100% - 10px);
        min-width: unset;
        max-width: calc(100% - 10px);
    }
    
    .pickup-times-box {
        padding: 1.25rem;
        margin: 0 5px;
        border-radius: 8px;
        width: calc(100% - 10px);
        min-width: unset;
        max-width: calc(100% - 10px);
    }
    
    .pickup-times-title {
        font-size: 16px;
        margin-bottom: 1rem;
    }
    
    .pickup-tooltip-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    .pickup-tooltip-header {
        padding: 0.75rem 1rem;
        font-size: 14px;
    }
    
    .pickup-tooltip-body {
        padding: 1rem;
        font-size: 13px;
    }
    
    .pickup-time-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
        background: #f8f9fa;
        border-radius: 8px;
        margin-bottom: 1rem;
    }
    
    .pickup-date-input,
    .pickup-time-select {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 6px;
    }
    
    .pickup-remove-btn {
        width: 100%;
        height: 44px;
        font-size: 18px;
        border-radius: 6px;
        margin-top: 0.5rem;
    }
    
    .pickup-remove-placeholder {
        width: 100%;
        height: 44px;
        margin-top: 0.5rem;
    }
    
    .pickup-add-time-btn {
        width: 100%;
        padding: 16px;
        margin: 0 5px 1rem 5px;
        font-size: 16px;
        min-width: unset;
        max-width: calc(100% - 10px);
    }
    
    .pickup-navigation {
        justify-content: space-between;
        margin: 2rem 5px 1rem 5px;
        gap: 1rem;
    }
    
    .pickup-btn-back,
    .pickup-btn-next {
        flex: 1;
        max-width: none;
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .pickup-times-new-design {
        padding: 0;
        margin: 0;
    }
    
    .pickup-times-box {
        padding: 1rem;
        margin: 0;
        width: 100%;
        min-width: unset;
        max-width: 100%;
    }
    
    .pickup-times-info {
        margin: 0;
        width: 100%;
        min-width: unset;
        max-width: 100%;
    }
    
    .pickup-warning-box {
        margin: 0;
        width: 100%;
        min-width: unset;
        max-width: 100%;
    }
    
    .pickup-add-time-btn {
        margin: 0 0 1rem 0;
        width: 100%;
        min-width: unset;
        padding: 16px 12px;
        font-size: 14px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .pickup-navigation {
        margin: 2rem 0 1rem 0;
        flex-direction: column;
    }
    
    .pickup-btn-back,
    .pickup-btn-next {
        width: 100%;
        max-width: none;
        min-width: unset;
    }
    
    /* Remove any container margins on very small screens */
    .login-section-block {
        margin: 0;
        padding: 10px;
    }
    
    .step-indicator {
        margin: 0;
        padding: 10px;
    }
    
    /* Fix uneven margins */
    .ewasterace-login-page.logged-in .container {
        padding: 0 !important;
    }
    
    .login-design-container {
        margin: 0;
        padding: 10px;
    }
}

/* Alert Messages in Login Design - Match Dashboard Style */
.ewasterace-login-page .login-section-block .alert {
    border-radius: 8px;
    border: none;
    margin-bottom: 25px;
    padding: 15px 20px;
    font-weight: 500;
}

.ewasterace-login-page .login-section-block .alert-success {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #f39c12;
}

.ewasterace-login-page .login-section-block .alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
}

.ewasterace-login-page .login-section-block .alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    border-left: 4px solid #17a2b8;
}

/* Erfolgsmeldung Liste ohne Bullet-Points */
.ewasterace-login-page .alert-info ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.ewasterace-login-page .alert-info li {
    padding: 8px 0;
    border: none;
    margin: 0;
}

/* Zur Startseite Button - mehr Abstand */
.ewasterace-login-page .alert-info + .login-btn-orange,
.ewasterace-login-page .alert + .login-btn-orange {
    margin-top: 20px;
    display: inline-block;
}

.ewasterace-login-page .loading-spinner-container {
    margin-bottom: 30px;
}

.ewasterace-login-page .custom-spinner {
    position: relative;
    width: 60px;
    height: 60px;
}

.ewasterace-login-page .spinner-ring {
    position: absolute;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.ewasterace-login-page .spinner-ring:nth-child(1) {
    width: 60px;
    height: 60px;
    border-top: 3px solid #667eea;
    animation-delay: 0s;
}

.ewasterace-login-page .spinner-ring:nth-child(2) {
    width: 50px;
    height: 50px;
    top: 5px;
    left: 5px;
    border-right: 3px solid #764ba2;
    animation-delay: -0.4s;
}

.ewasterace-login-page .spinner-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 10px;
    left: 10px;
    border-bottom: 3px solid #28a745;
    animation-delay: -0.8s;
}

.ewasterace-login-page .spinner-ring:nth-child(4) {
    width: 30px;
    height: 30px;
    top: 15px;
    left: 15px;
    border-left: 3px solid #ffc107;
    animation-delay: -1.2s;
}

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

.ewasterace-login-page .loading-text {
    text-align: center;
}

.ewasterace-login-page .loading-text h5 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 18px;
}

.ewasterace-login-page .loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.ewasterace-login-page .loading-dots span {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    animation: pulse 1.4s ease-in-out infinite both;
}

.ewasterace-login-page .loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.ewasterace-login-page .loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.ewasterace-login-page .loading-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes pulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Neues Design basierend auf dem Screenshot */
.ewasterace-login-page .ewaste-new-design {
    padding: 0;
    background: #ffffff;
}

/* Header Section */
.ewasterace-login-page .header-section {
    text-align: center;
    margin-bottom: 50px;
}

.ewasterace-login-page .title-area {
    margin-bottom: 30px;
}

.ewasterace-login-page .main-title {
    font-size: 32px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
}

.ewasterace-login-page .yellow-accent {
    width: 60px;
    height: 4px;
    background-color: #FFD700;
    margin: 0 auto;
    border-radius: 2px;
}

.ewasterace-login-page .action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.ewasterace-login-page .btn-orange {
    background-color: #FF5722;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ewasterace-login-page .btn-orange:hover {
    background-color: #E64A19;
}

.ewasterace-login-page .btn-gray {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ewasterace-login-page .btn-gray:hover {
    background-color: #5a6268;
}

/* Global button styles for dialogs */
.btn-orange {
    background-color: #FF5722;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-orange:hover {
    background-color: #E64A19;
}

.btn-gray {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-gray:hover {
    background-color: #5a6268;
}

/* External Link Dialog Styles */
.header-content {
    flex: 1;
}

.external-link-url {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    padding-left: 2px;
    word-break: break-all;
    font-family: monospace;
    font-weight: normal;
}

/* Section Block */
.ewasterace-login-page .section-block {
    margin-bottom: 50px;
}

.ewasterace-login-page .section-title {
    font-size: 22px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 25px 0;
    padding: 0;
    border: none;
}

.ewasterace-login-page .section-divider {
    width: 60px;
    height: 4px;
    background-color: #FFD700;
    margin: 50px auto;
    border-radius: 2px;
}

/* Cards Grid */
.ewasterace-login-page .cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
    justify-content: center;
    align-items: flex-start;
}

.ewasterace-login-page .waste-card {
    background: #ffffff;
    border: 1px solid #FF5722;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    width: 350px;
    flex-shrink: 0;
    min-height: 225px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ewasterace-login-page .waste-card:hover {
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.2);
    transform: translateY(-2px);
}

.ewasterace-login-page .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.ewasterace-login-page .card-divider {
    width: 100%;
    height: 1px;
    background-color: #E0E0E0;
    margin: 12px 0;
}

.ewasterace-login-page .card-status {
    font-size: 14px;
    color: #333333;
    margin-bottom: 8px;
    font-weight: 500;
}

.ewasterace-login-page .status-offen {
    font-weight: bold;
    color: #ff4715;
}

.ewasterace-login-page .status-erledigt {
    font-weight: bold;
    color: #ff4715;
}

.ewasterace-login-page .status-abholbereit {
    font-weight: bold;
    color: #ff4715;
}

.ewasterace-login-page .status-bestaetigen {
    font-weight: bold;
    color: #ff4715;
}

.ewasterace-login-page .status-abgelehnt {
    font-weight: bold;
    color: #ff4715;
}

.ewasterace-login-page .status-wird-abgeholt {
    font-weight: bold;
    color: #ff4715;
}

.ewasterace-login-page .status-abgeholt {
    font-weight: bold;
    color: #ff4715;
}

.ewasterace-login-page .card-author {
    font-size: 14px;
    color: #666666;
    margin: 0;
}

.ewasterace-login-page .no-data-message {
    text-align: center;
    font-size: 16px;
    color: #666666;
    font-style: italic;
    margin-top: 20px;
    display: none; /* Standardmäßig versteckt - nur anzeigen wenn keine Daten */
}

.ewasterace-login-page .highlight-text {
    color: #FF5722;
    font-weight: 600;
}

/* Dialog Styles */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dialog-content {
    background: white;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.dialog-header h2,
.dialog-header h3 {
    margin: 0;
    color: #333;
}

.dialog-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-close:hover {
    color: #333;
}

.dialog-body {
    padding: 20px;
}

/* Bonuspunkte Dialog Spezifische Styles */
.bonuspunkte-button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

/* Responsive Breakpoints für Bonuspunkte-Grid */
@media (max-width: 480px) {
    .bonuspunkte-button-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
        margin: 15px 0;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .bonuspunkte-button-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        margin: 15px 0;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .bonuspunkte-button-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
}

@media (min-width: 1024px) {
    .bonuspunkte-button-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
        gap: 15px;
    }
}

@media (min-width: 1200px) {
    .bonuspunkte-button-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        gap: 15px;
    }
}

/* Responsive Schriftgrößen für Bonuspunkt-Buttons */
@media (max-width: 480px) {
    .bonuspunkt-type-button .button-title {
        font-size: 14px;
        line-height: 1.3;
        word-break: break-word;
        hyphens: auto;
    }
    
    .bonuspunkt-type-button .button-points-badge {
        font-size: 10px;
        padding: 4px 8px;
        top: 6px;
        right: 6px;
        min-width: 45px;
    }
    
    .bonuspunkt-type-button .button-header {
        padding: 12px 12px 10px 12px;
        padding-right: 55px;
        min-height: 50px;
        height: auto;
    }
    
    .bonuspunkt-type-button {
        min-height: 50px;
        height: auto;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .bonuspunkt-type-button .button-title {
        font-size: 14px;
        line-height: 1.3;
        word-break: break-word;
        hyphens: auto;
    }
    
    .bonuspunkt-type-button .button-points-badge {
        font-size: 10px;
        padding: 4px 9px;
        min-width: 48px;
    }
    
    .bonuspunkt-type-button .button-header {
        padding: 13px 13px 11px 13px;
        padding-right: 58px;
        min-height: 55px;
        height: auto;
    }
    
    .bonuspunkt-type-button {
        min-height: 55px;
        height: auto;
    }
}

.bonuspunkt-type-button {
    background: white;
    border: 1px solid #FF5722;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 60px;
    height: auto; /* Automatische Höhe für mehrzeiligen Text */
    width: 100%;
    box-shadow: 0 2px 6px rgba(255, 87, 34, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible; /* Text kann umbrechen */
    text-align: left;
    /* Verbesserte Skalierung */
    aspect-ratio: auto;
    container-type: inline-size;
}

.bonuspunkt-type-button .button-header {
    position: relative;
    padding: 15px 15px 12px 15px;
    padding-right: 60px; /* Reduziertes Padding da Badge im Button positioniert */
    flex-shrink: 0;
    min-height: 60px;
    display: flex;
    align-items: flex-start;
    flex: 1;
}

.bonuspunkt-type-button .button-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    white-space: normal;
    overflow-wrap: break-word;
    max-width: calc(100% - 5px);
    padding-right: 5px;
    margin-top: 14px;
    flex: 1;
}

.bonuspunkt-type-button .button-points-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #6c757d;
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    opacity: 0.9;
    z-index: 3;
    flex-shrink: 0;
    min-width: 50px;
    text-align: center;
    box-sizing: border-box;
}

.bonuspunkt-type-button .button-body {
    display: none;
}

.bonuspunkt-type-button .button-description {
    display: none;
}

.bonuspunkt-type-button:hover {
    background: #fff5f2;
    border-color: #E64A19;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 87, 34, 0.2);
}

.bonuspunkt-type-button:hover .button-points-badge {
    opacity: 0.9;
}

/* Elementor CSS Override für Bonuspunkte-Auswahl-Buttons */
.ewasterace-login-page .bonuspunkt-type-button,
.dialog-overlay .bonuspunkt-type-button,
.elementor-kit-5 .bonuspunkt-type-button {
    background: white !important;
    border: 1px solid #FF5722 !important;
    color: #333 !important;
    border-style: solid !important;
    border-radius: 8px !important;
}

.ewasterace-login-page .bonuspunkt-type-button:hover,
.dialog-overlay .bonuspunkt-type-button:hover,
.elementor-kit-5 .bonuspunkt-type-button:hover {
    background: #fff5f2 !important;
    border-color: #E64A19 !important;
    color: #333 !important;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}

.back-button {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.back-button:hover {
    background: #e9ecef;
}

.step-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333333;
}

.file-upload-area {
    border: 2px dashed #E0E0E0;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: #FF5722;
    background: #fff3f0;
}

.upload-text {
    font-size: 16px;
    color: #666666;
}

.upload-text strong {
    color: #FF5722;
}

.file-list {
    margin-top: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f8f9fa;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    margin-bottom: 8px;
}

.file-name {
    font-weight: 500;
    color: #333333;
}

.file-size {
    color: #666666;
    font-size: 14px;
}

.remove-file {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-file:hover {
    background: #c82333;
}

/* User Einreichung Dialog Styles */
.einreichungstypen-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 15px !important;
    margin-bottom: 20px;
    width: 100% !important;
}

/* Responsive Grid - weniger Karten pro Reihe bei kleineren Bildschirmen */
@media (max-width: 768px) {
    .einreichungstypen-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

/* Tablet - 2 Karten pro Reihe */
@media (min-width: 769px) and (max-width: 1023px) {
    .einreichungstypen-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

/* Desktop - 3-4 Karten pro Reihe */
@media (min-width: 1024px) {
    .einreichungstypen-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        gap: 15px !important;
    }
}

/* Große Bildschirme - 4-5 Karten pro Reihe */
@media (min-width: 1200px) {
    .einreichungstypen-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
        gap: 15px !important;
    }
}

.einreichungstyp-card {
    border: 1px solid #FF5722;
    border-radius: 8px;
    padding: 20px;
    background-color: white;
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0px;
    box-shadow: 0 2px 6px rgba(255, 87, 34, 0.1);
    position: relative;
}

/* Hover-Effekt entfernt, da Karten nicht klickbar sind */

.einreichungstyp-card.selected {
    background-color: #fff5f2;
    border-color: #E64A19;
    box-shadow: 0 3px 8px rgba(255, 87, 34, 0.2);
}

.einreichungstyp-card .card-header {
    position: relative;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    border-bottom: 1px solid #FF5722 !important;
    padding: 0 !important;
    padding-bottom: 12px !important;
    padding-right: 70px !important; /* Platz für das Badge */
    display: flex !important;
    align-items: flex-start !important;
    min-height: 24px;
}

.einreichungstyp-card .card-header h6 {
    margin: 0 !important;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    color: #333 !important;
    background: none !important;
    border: none !important;
    text-align: left !important;
    flex: 1;
}

.punkte-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    opacity: 0.8;
}

.einreichungstyp-card.selected .punkte-badge {
    background-color: #6c757d;
    opacity: 0.9;
}

.einreichungstyp-card .card-body {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    padding-top: 12px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 !important;
    padding: 0 !important;
}

.quantity-controls label {
    font-weight: 500;
    font-size: 14px;
    margin: 0 !important;
    padding: 0 !important;
    color: #666;
    flex-shrink: 0;
}

.quantity-input {
    display: flex;
    align-items: center;
    border: none;
    border-radius: 6px;
    overflow: hidden;
    background: transparent;
}

.quantity-input button {
    background-color: #ff5722 !important;
    border: none !important;
    outline: none !important;
    padding: 10px 12px !important;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: white !important;
    transition: background-color 0.2s;
    min-width: 36px;
    margin: 5px !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input button:hover {
    background-color: #e64a19 !important;
    border: none !important;
    outline: none !important;
}

.quantity-input button:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.quantity-input input {
    border: none;
    width: 100px !important;
    max-width: 100px !important;
    min-width: 100px !important;
    height: 32px;
    text-align: center !important;
    padding: 0;
    outline: none;
    background: white;
    font-size: 1rem;
    font-weight: 600;
    color: #2c5530;
    border-radius: 4px;
    margin: 5px;
    box-sizing: border-box;
}

.selected-items-summary {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
}

.selected-items-summary h6 {
    margin-bottom: 10px;
    color: #495057;
}

.selected-item {
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.selected-item:last-child {
    border-bottom: none;
}

.total-points {
    background-color: #e8f5e8;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    color: #155724;
}

.form-group {
    margin-bottom: 15px;
}

/* Mock Data Overlay */
.mock-data-container {
    position: relative;
}

.no-data-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.no-data-overlay-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    margin: 20px;
}

.no-data-overlay-content h4 {
    color: #ff5722;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.no-data-overlay-content h4 i {
    margin-right: 8px;
}

.no-data-overlay-content p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.5;
}

.no-data-overlay-content ul {
    text-align: left;
    margin-bottom: 0;
    padding-left: 20px;
}

.no-data-overlay-content li {
    margin-bottom: 8px;
    color: #666;
}

.no-data-overlay-content strong {
    color: #333;
}



.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Spezielle Regel für anzahl-input */
#anzahl-input.form-control {
    width: 100px !important;
    max-width: 100px !important;
    min-width: 100px !important;
    text-align: center !important;
}

.form-control:focus {
    border-color: #007bff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.form-check-input {
    margin-top: 4px;
}

.form-check-label {
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.form-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .einreichungstypen-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .dialog-content {
        width: 95%;
        max-height: 95%;
        margin: 10px;
    }
    
    .dialog-header {
        padding: 15px;
    }
    
    .dialog-body {
        padding: 15px;
    }
    
    .dialog-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }
    
    .dialog-actions .btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
    }
    
    /* Bonuspunkte responsive - bereits oben definiert */
    
    .bonuspunkt-type-button {
        min-height: 90px;
    }
    
    .bonuspunkt-type-button .button-header {
        padding: 15px 0 12px 0;
    }
    
    .bonuspunkt-type-button .button-title {
        font-size: 15px;
    }
    
    .bonuspunkt-type-button .button-body {
        display: none;
    }
    
    .bonuspunkt-type-button .button-description {
        display: none;
    }
    
    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .step-header h3 {
        font-size: 18px;
    }
    
    .file-upload-area {
        padding: 30px 15px;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }
    
    .remove-file {
        align-self: flex-end;
    }
}

/* Old running-races-info styles removed - using new card design */

/* Loading State für Race Info */
.race-info-display .loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #2c5530;
    font-weight: 600;
}

.race-info-display .loading-state .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
    border-color: #2c5530;
    border-right-color: transparent;
}

/* Animation für laufende Races */
@keyframes pulse-green {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Responsive für Race Info - Minimal */
@media (max-width: 768px) {
    .race-info-display {
        margin-bottom: 15px;
    }
}

/* Race Info Card Design (Dashboard Style) - SIMPLIFIED */
.race-info-container {
    margin-top: 40px;
    margin-bottom: 25px;
}

.race-info-header {
    margin-bottom: 20px;
}

.race-info-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c5530;
    margin: 0;
}

/* Removed: race-info-accent (gelb-grüne Linie) */

.race-info-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    width: 350px;
    flex-shrink: 0;
    min-height: 225px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Removed: ::before pseudo-element (oberer farbiger Border) */

/* Disable hover effect for race info cards - they are not interactive */
.ewasterace-login-page .waste-card.race-info-card:hover {
    box-shadow: none !important;
    transform: none !important;
}

.race-info-card .card-title {
    margin-bottom: 12px;
}

.race-info-card .card-title strong {
    font-size: 1.1rem;
    color: #2c5530;
    font-weight: 700;
}

/* Removed: race-status-badge, running-badge und pulse-running animation */

.race-info-card .race-details {
    margin-top: 15px;
}

.race-info-card .race-details p {
    margin: 8px 0;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.race-info-card .race-details strong {
    color: #495057;
    font-weight: 600;
}

.race-timeframe {
    margin: 12px 0;
}

.race-teams {
    background: #f8f9fa;
    padding: 10px 12px;
    border-radius: 8px;
}

.no-races-message {
    margin-top: 20px;
}

.no-races-message .alert {
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    color: #1565c0;
    padding: 20px;
}

/* Responsive Updates für Card Design */
@media (max-width: 768px) {
    .race-info-card {
        padding: 15px;
    }

    .race-info-title {
        font-size: 1.1rem;
    }

    .race-details p {
        font-size: 0.85rem;
    }
}

/* ====== PICKUP PAGE STYLES ====== */
/* Gemeinsame Styles für Dashboard und Pickup Page */

/* Override login-design-container width für pickup page */
.ewasterace-login-page.logged-in .login-design-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Special width override für abholtermine page */
body.page-template-page-abholtermine .ewasterace-login-page.logged-in .login-design-container {
    max-width: 1400px;
    width: 100%;
}

/* Step indicator für pickup page */
.login-design-container .step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.login-design-container .step {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 20px;
    background: #e9ecef;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.login-design-container .step.active {
    background: #FF5722;
    color: white;
}

.login-design-container .step.completed {
    background: #E64A19;
    color: white;
}

.login-design-container .step.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-design-container .step.clickable:hover {
    background: #FF5722;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.login-design-container .step.disabled {
    background: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

.login-design-container .step.disabled:hover {
    background: #f8f9fa;
    color: #adb5bd;
    transform: none;
    box-shadow: none;
}

/* Modal styles für pickup page */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
    padding: 20px 0;
}

.modal-content {
    background-color: #fefefe;
    margin: 20px auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.modal-header {
    border-bottom: 2px solid #2c5530;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.modal-header h3 {
    color: #2c5530;
    margin: 0;
    font-size: 1.3rem;
    padding-right: 3rem;
}

.close {
    position: absolute;
    right: -1rem;
    top: -1rem;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    z-index: 10;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close:hover {
    color: #000;
    background-color: rgba(0,0,0,0.1);
    transform: scale(1.1);
}

/* Mobile specific modal adjustments */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        margin: 10px auto;
        padding: 1.5rem;
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        border-radius: 8px;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
        padding-right: 3rem;
    }
    
    .close {
        right: -1rem;
        top: -1rem;
        font-size: 24px;
        min-width: 40px;
        min-height: 40px;
        padding: 6px;
    }
}

/* Items container für pickup page */
.items-container {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    min-height: 100px;
}

.item-row {
    display: flex;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.item-row .form-group {
    margin-bottom: 0;
    flex: 1;
}

.remove-item {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    height: fit-content;
}

.add-item-btn {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-top: 1rem;
}

/* Pickup times für pickup page */
.pickup-time {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
}

.time-inputs {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

/* Address grid für pickup page */
.address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.plz-city-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
}

/* Success page für pickup page - Fullwidth Layout */
.success-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.success-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.success-left {
    padding-right: 1rem;
}

.success-right {
    padding-left: 1rem;
}

.success-summary-container {
    position: sticky;
    top: 2rem;
}

.summary-title {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #FF5722;
}

/* Summary Boxes */
.summary-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.summary-box:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.summary-box-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.summary-box-content {
    padding: 1.5rem;
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.summary-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-quantity {
    background: #FF5722;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 0.75rem;
    min-width: 35px;
    text-align: center;
    flex-shrink: 0;
}

.summary-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 14px;
    color: #856404;
}

/* Contact Info Styling */
.contact-info {
    line-height: 1.6;
}

/* Pickup Appointment Styling */
.pickup-appointment {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.pickup-appointment:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.appointment-label {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    min-width: 90px;
    flex-shrink: 0;
    padding-top: 2px;
}

.appointment-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.appointment-date {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.appointment-time {
    font-size: 15px;
    color: #666;
    font-weight: 400;
    padding-left: 0.5rem;
}

.contact-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.contact-email,
.contact-phone,
.contact-address {
    margin-bottom: 0.5rem;
    color: #555;
}

.contact-email {
    color: #FF5722;
    font-weight: 500;
}

.contact-address {
    color: #666;
    font-style: italic;
}

/* Mobile Responsive für Success Page */
@media (max-width: 768px) {
   
    div.ewasterace-login-page.logged-in {
       padding:  0;     
    }


    
    .login-design-container {
        margin: 0 -5px;
        padding: 20px 5px;
    }
    
    .login-section-block {
        margin: 0 5px 20px 5px;
        padding: 15px 10px;
    }
    
    .step-indicator {
        flex-direction: column;
        gap: 0.5rem;
        margin: 0 10px 20px 10px;
        padding: 15px;
    }
    
    .step-indicator .step {
        padding: 12px 16px;
        font-size: 14px;
        text-align: center;
    }
    
    /* Success page specific */
    .success-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 0 10px;
    }
    
    .success-left,
    .success-right {
        padding: 0;
    }
    
    .success-summary-container {
        position: static;
        margin-top: 2rem;
    }
    
    .summary-box {
        margin: 0 0 1.5rem 0;
        border-radius: 8px;
    }
    
    .summary-box-header {
        padding: 0.75rem 1rem;
        font-size: 14px;
    }
    
    .summary-box-content {
        padding: 1rem;
    }
    
    .contact-name {
        font-size: 16px;
    }
    
    .item-row {
        flex-direction: column;
        gap: 0.5rem;
        margin: 0 5px 1rem 5px;
        padding: 15px;
    }
    
    .time-inputs {
        grid-template-columns: 1fr;
    }
    
    .address-grid,
    .plz-city-grid {
        grid-template-columns: 1fr;
    }
    
    /* Form inputs mobile spacing */
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-control,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 6px;
    }
    
    /* Mobile Responsive für Pickup Appointments */
    .pickup-appointment {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .appointment-label {
        min-width: auto;
        font-size: 14px;
    }
    
    .appointment-details {
        gap: 0.125rem;
    }
    
    .appointment-date {
        font-size: 14px;
    }
    
    .appointment-time {
        font-size: 13px;
        padding-left: 0;
    }
    
    /* Alert messages mobile spacing */
    .alert {
        margin: 0 10px 20px 10px;
        padding: 15px;
        border-radius: 6px;
    }
}

/* Extra mobile spacing for very small screens */
@media (max-width: 480px) {
    .login-design-container {
        padding: 15px 0;
    }
    
    .login-section-block {
        margin: 0 0 15px 0;
        padding: 10px 5px;
    }
    
    .step-indicator {
        margin: 0 0 15px 0;
        padding: 10px;
    }
    
    .success-layout {
        margin: 0 5px;
    }
    
    .item-row {
        margin: 0 0 1rem 0;
        padding: 10px;
    }
    
    .alert {
        margin: 0 5px 15px 5px;
        padding: 12px;
    }
}

/* Pickup Page Specific Design (Screenshot Design) */
.pickup-main-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c5530;
    margin-bottom: 0.5rem;
    text-align: center;
}

.pickup-yellow-underline {
    width: 80px;
    height: 4px;
    background: #ffc107;
    margin: 0 auto 2rem auto;
    border-radius: 2px;
}

/* Pickup Einreichungstypen List - Simple Design */
.pickup-einreichungstypen-grid {
    margin: 2rem 0;
}

/* Pickup Items - Simple List Style */
.pickup-einreichungstyp-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.pickup-einreichungstyp-card:hover {
    background-color: #f8f9fa;
}

.pickup-einreichungstyp-card.selected {
    background-color: #fff8f6;
    border-bottom-color: #FF5722;
}

.pickup-card-header {
    background: none !important;
    border: none;
    padding: 0;
    text-align: left;
    flex: 1;
}

.pickup-card-header h6 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c5530;
    line-height: 1.3;
}

.pickup-card-body {
    padding: 0;
}

.pickup-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
}

.pickup-quantity-controls label {
    display: none; /* "Anzahl:" label entfernen */
}

.pickup-quantity-input {
    display: flex;
    align-items: center;
    gap: 0;
    border: 0px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}

.pickup-quantity-btn {
    background: #f8f9fa;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    margin: 5px;
}

.pickup-quantity-btn:hover {
    background: #e9ecef;
    color: #2c5530;
}

.pickup-quantity-btn:active {
    background: #dee2e6;
}

.pickup-btn-minus {
    border-right: 1px solid #e9ecef;
}

.pickup-btn-plus {
    border-left: 1px solid #e9ecef;
}

.pickup-quantity-input input {
    border: none;
    outline: none;
    text-align: center !important;
    width: 100px !important;
    max-width: 100px !important;
    min-width: 100px !important;
    height: 32px;
    font-size: 1rem;
    font-weight: 600;
    color: #2c5530;
    background: white;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    
}

.pickup-quantity-input input:focus {
    outline: none;
}

.pickup-continue-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 2rem auto;
    display: block;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pickup-continue-btn:hover {
    background: linear-gradient(135deg, #218838, #1c9970);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
    transform: translateY(-2px);
}

.pickup-continue-btn:active {
    transform: translateY(0);
}

/* Responsive für Pickup Einreichungstypen List */
@media (max-width: 768px) {
    .pickup-einreichungstypen-grid {
        max-width: 100%;
    }
    
    .pickup-einreichungstyp-card {
        padding: 0.75rem 0;
    }
    
    .pickup-card-header h6 {
        font-size: 1rem;
    }
    
    .pickup-main-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .pickup-einreichungstyp-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .pickup-quantity-controls {
        align-self: flex-end;
    }
}

/* ====== ABHOLTERMINE PAGE STYLES ====== */
/* Styles für die neue Abholtermine-Bearbeitungsseite */

/* Verwende das success-layout für bessere Übersicht */
.pickup-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pickup-info-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.pickup-info-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.pickup-info-section .section-title {
    background: #f8f9fa;
    color: #333;
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
}

.pickup-info-section .info-box {
    padding: 1.5rem;
}

/* Contact Info Styles */
.contact-info .contact-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.contact-info .contact-email {
    color: #FF5722;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-info .contact-phone {
    color: #555;
    margin-bottom: 0.5rem;
}

/* Address Info Styles */
.address-info div {
    color: #555;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Items List Styles */
.items-list {
    margin-bottom: 1rem;
}

.item-entry {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.item-entry:last-child {
    border-bottom: none;
}

.item-quantity {
    background: #FF5722;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 35px;
    text-align: center;
    flex-shrink: 0;
}

.item-name {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.item-points {
    color: #666;
    font-size: 14px;
}

.items-message {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 14px;
    color: #555;
}

/* Team Info Styles */
.team-info .team-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.team-info .team-contact {
    color: #666;
    font-size: 14px;
}

/* Editable Pickup Times Section */
.pickup-times-section {
    grid-column: 1 / -1; /* Full width */
}

.pickup-times-section .info-box {
    padding: 2rem;
}

.pickup-times-section .alert {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #1565c0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

/* Status Styles */
.status-offen {
    color: #ff4715;
    font-weight: bold;
}

.status-bestaetigt {
    color: #ff4715;
    font-weight: bold;
}

.status-erledigt {
    color: #ff4715;
    font-weight: bold;
}

.status-abgelehnt {
    color: #ff4715;
    font-weight: bold;
}

.status-wird-abgeholt {
    color: #ff4715;
    font-weight: bold;
}

.status-abgeholt {
    color: #ff4715;
    font-weight: bold;
}

.status-open {
    color: #ff4715;
    font-weight: bold;
}

.status-pickup {
    color: #ff4715;
    font-weight: bold;
}

.status-collected {
    color: #ff4715;
    font-weight: bold;
}

.status-confirmed {
    color: #ff4715;
    font-weight: bold;
}

.status-default {
    color: #ff4715;
    font-weight: bold;
}

/* Allgemeine Status-Klassen-Regel für alle Status-Werte 
[class*="status-"] {
    color: #ff4715;
    font-weight: bold;
}*/

/* Message Container für Success/Error */
#message-container {
    margin-bottom: 2rem;
}

#message-container .alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
    font-weight: 500;
    margin-bottom: 0;
}

#message-container .alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

#message-container .alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Additional Info */
.pickup-additional-info {
    margin-top: 2rem;
}

.pickup-additional-info .alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 0;
}

/* Loading State für Save Button */
.pickup-btn-next.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.pickup-btn-next.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Abholtermine page specific styles für summary boxes */
.page-template-page-abholtermine .summary-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-template-page-abholtermine .item-name {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.page-template-page-abholtermine .item-points {
    color: #666;
    font-size: 14px;
    margin-left: auto;
}

/* Editable pickup times box highlighting */
.page-template-page-abholtermine .summary-box[style*="border: 2px solid #FF5722"] {
    animation: glow-orange 2s ease-in-out infinite alternate;
}

@keyframes glow-orange {
    from {
        box-shadow: 0 2px 8px rgba(255, 87, 34, 0.2);
    }
    to {
        box-shadow: 0 4px 20px rgba(255, 87, 34, 0.4);
    }
}

/* Responsive Design für Abholtermine */
@media (max-width: 768px) {
    .pickup-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pickup-info-section .section-title {
        padding: 0.75rem 1rem;
        font-size: 14px;
    }
    
    .pickup-info-section .info-box {
        padding: 1rem;
    }
    
    .contact-info .contact-name {
        font-size: 16px;
    }
    
    .item-entry {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .pickup-times-section .info-box {
        padding: 1rem;
    }
    
    .pickup-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pickup-btn-back,
    .pickup-btn-next {
        width: 100%;
    }
    
    /* Mobile adjustments for new layout */
    body.page-template-page-abholtermine .success-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Auf Mobile: Termine bleiben oben (kein order change mehr nötig) */
    body.page-template-page-abholtermine .success-summary-container {
        position: static;
    }
    
    .page-template-page-abholtermine .item-points {
        margin-left: 0;
        margin-top: 0.25rem;
    }
}

/* Confirmation Page Layout */
.confirmation-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.confirmation-left {
    min-width: 0;
}

.confirmation-right {
    display: flex;
    flex-direction: column;
}

.confirmation-info-container {
    position: sticky;
    top: 2rem;
}

/* Mobile responsive for confirmation layout */
@media (max-width: 768px) {
    .confirmation-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1rem;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .confirmation-left,
    .confirmation-right {
        margin: 0;
        padding: 0;
    }
    
    .confirmation-info-container {
        position: static;
    }
    
    /* Ensure step 4 navigation has proper spacing */
    #step-4 .pickup-navigation {
        margin: 2rem 10px 2rem 10px;
        padding-bottom: 2rem;
    }
    
    #step-4 .pickup-btn-back,
    #step-4 .pickup-btn-next {
        padding: 16px 20px;
        font-size: 15px;
        min-height: 50px;
    }
}

@media (max-width: 480px) {
    .confirmation-layout {
        margin-left: 5px;
        margin-right: 5px;
    }
    
    #step-4 .pickup-navigation {
        margin: 2rem 5px 2rem 5px;
        flex-direction: column;
        gap: 1rem;
    }
    
    #step-4 .pickup-btn-back,
    #step-4 .pickup-btn-next {
        width: 100%;
        max-width: none;
    }
}

.confirmation-info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.confirmation-info-header {
    background: #ff5722;
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 16px;
}

.confirmation-info-content {
    padding: 1.5rem;
}

.confirmation-info-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.confirmation-info-content li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    color: #555;
    font-size: 14px;
}

.confirmation-info-content li:last-child {
    border-bottom: none;
}

.confirmation-info-content li::before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Compact Summary Styles */
.summary-box.compact {
    margin-bottom: 1rem;
}

.summary-box.compact .summary-box-header {
    padding: 0.75rem 1rem;
    font-size: 14px;
}

.summary-box.compact .summary-box-content {
    padding: 1rem;
}

.summary-list.compact li {
    padding: 0.4rem 0;
    font-size: 14px;
}

.summary-list.compact li strong {
    padding-right: 0.5rem;
}

.summary-note.compact {
    padding: 0.75rem;
    margin-top: 0.75rem;
    font-size: 13px;
}

.contact-info.compact {
    line-height: 1.4;
}

.contact-info.compact .contact-name {
    font-size: 14px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-info.compact .contact-email,
.contact-info.compact .contact-phone,
.contact-info.compact .contact-street,
.contact-info.compact .contact-city {
    margin-bottom: 0.3rem;
    font-size: 14px;
}

@media (max-width: 768px) {
    .confirmation-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .confirmation-right {
        order: -1;
    }
    
    .confirmation-info-container {
        position: static;
    }
}

/* Gesamtpunkteanzeige - Header mit Punkten */
.content-header-with-points {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.content-header-with-points h5 {
    margin: 0;
}

.total-points-display-inline {
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Hide points display for pickup pages - only show in dashboard */
.ewasterace-login-page .total-points-display-inline {
    display: none !important;
}

#total-points-badge {
    background-color: #007bff;
    color: white;
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

#total-points-badge.total-points-inactive {
    background-color: #6c757d;
    color: white;
}

#total-points-badge.total-points-active {
    background-color: #28a745;
    color: white;
}

.dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.dialog-actions .btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.dialog-actions .btn-primary {
    background: white;
    border: 1px solid #FF5722;
    color: #FF5722;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.dialog-actions .btn-primary:hover {
    background: #fff5f2;
    border-color: #E64A19;
    color: #E64A19;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 87, 34, 0.2);
}

.dialog-actions .btn-success {
    background: white;
    border: 1px solid #FF5722;
    color: #FF5722;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.dialog-actions .btn-success:hover {
    background: #fff5f2;
    border-color: #E64A19;
    color: #E64A19;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 87, 34, 0.2);
}

.dialog-actions .btn-secondary {
    background-color: #6c757d;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.dialog-actions .btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.dialog-actions .btn-outline-secondary {
    background-color: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.dialog-actions .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.dialog-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Fix für Erfolgs-Button - orangen Text sicherstellen */
.dialog-actions .btn-success:disabled {
    color: #FF5722 !important;
    background: white !important;
    border: 1px solid #FF5722 !important;
}

/* ========================================
   ELEKTROSCHROTT ÜBERSICHT LAYOUT
   ======================================== */

.elektroschrott-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

.elektroschrott-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.elektroschrott-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #FF5722 0%, #FF7043 100%);
    margin: 0 auto 1rem auto;
    border-radius: 2px;
}

.race-team-info {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.elektroschrott-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.elektroschrott-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.elektroschrott-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.elektroschrott-btn:active {
    transform: translateY(0);
}

.btn-eintragen {
    background: linear-gradient(135deg, #FF5722 0%, #FF7043 100%);
    color: white;
}

.btn-eintragen:hover {
    background: linear-gradient(135deg, #E64A19 0%, #FF5722 100%);
    color: white;
}

.btn-bonuspunkte {
    background: linear-gradient(135deg, #FF5722 0%, #FF7043 100%);
    color: white;
}

.btn-bonuspunkte:hover {
    background: linear-gradient(135deg, #E64A19 0%, #FF5722 100%);
    color: white;
}

/* Content-Zentrierung für wenig Inhalt */
.ewasterace-login-page .dashboard-content-area {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ewasterace-login-page .dashboard-content-area .card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ewasterace-login-page .dashboard-content-area .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Wenig-Inhalt-Zentrierung */
.ewasterace-login-page .cards-grid {
    min-height: 40vh;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
}

.ewasterace-login-page .no-data-message {
    text-align: center;
    padding: 3rem 1rem;
    margin: 2rem auto;
    max-width: 500px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .elektroschrott-header {
        padding: 1rem 0;
    }
    
    .elektroschrott-title {
        font-size: 1.5rem;
    }
    
    .elektroschrott-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .elektroschrott-btn {
        width: 100%;
        max-width: 280px;
        min-width: auto;
    }
    
    .race-team-info {
        font-size: 0.9rem;
    }
    
    .ewasterace-login-page .dashboard-content-area {
        min-height: 50vh;
    }
    
    .ewasterace-login-page .cards-grid {
        min-height: 30vh;
        justify-content: flex-start;
    }
    
    /* Responsive Kartengröße für kleinere Bildschirme */
    .ewasterace-login-page .waste-card,
    .race-info-card {
        width: 100%;
        max-width: 350px;
        flex-shrink: 1;
    }
}

/* Container für Überschrift + Cards Alignment */
.ewasterace-login-page .section-with-cards {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ewasterace-login-page .section-with-cards h6 {
    text-align: left;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    width: 100%;
    align-self: flex-start;
}

.ewasterace-login-page .section-with-cards:not(:first-of-type) h6 {
    margin-top: 40px;
}

/* Cards-Grid Ausrichtung innerhalb des Containers */
.ewasterace-login-page .section-with-cards .cards-grid {
    justify-content: flex-start;
    width: 100%;
}

/* Fallback für normale cards-grid ohne Container */
.ewasterace-login-page .cards-grid {
    max-width: 1100px;
    margin: 0 auto;
    justify-content: flex-start;
}

/* Responsive Anpassungen für kleinere Bildschirme */
@media (max-width: 1140px) {
    .ewasterace-login-page .section-with-cards {
        max-width: 725px;
    }
    
    .ewasterace-login-page .cards-grid {
        max-width: 725px;
    }
}

@media (max-width: 775px) {
    .ewasterace-login-page .section-with-cards {
        max-width: 350px;
    }
    
    .ewasterace-login-page .cards-grid {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .ewasterace-login-page .section-with-cards {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .ewasterace-login-page .cards-grid {
        max-width: 100%;
        padding: 0 15px;
        justify-content: flex-start;
    }
    
    .ewasterace-login-page .section-with-cards .cards-grid {
        justify-content: flex-start;
    }
}

/* ========================================
   EINREICHUNG DETAILS PAGE
   ======================================== */

.einreichung-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.einreichung-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.details-back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: #f8f9fa;
}

.details-back-button:hover {
    color: #FF5722;
    background: #fff5f2;
    transform: translateX(-3px);
}

.details-back-button span {
    font-size: 1.2rem;
    font-weight: bold;
}

.details-title-area {
    text-align: center;
    flex: 1;
}

.details-main-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.details-orange-accent {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #FF5722 0%, #FF7043 100%);
    margin: 0 auto;
    border-radius: 2px;
}

.details-status-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.details-status-banner .status-icon {
    font-size: 1.5rem;
}

.details-status-banner .status-text {
    flex: 1;
    text-align: center;
}

.details-status-banner .total-points {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.details-status-banner.status-open,
.details-status-banner.status-pickup,
.details-status-banner.status-collected,
.details-status-banner.status-confirmed,
.details-status-banner.status-default {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8a65 100%);
    color: white;
}

.details-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.details-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #ff6b35;
}

.details-card:hover {
    transform: translateY(-2px);
    border-color: #ff5722;
}

.details-card.full-width {
    grid-column: 1 / -1;
}

.details-card .card-icon {
    font-size: 1.3rem;
    margin-right: 0.5rem;
    display: inline;
    vertical-align: middle;
}

.details-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
}

.details-card .card-content {
    color: #555;
}

.info-item {
    display: flex;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    color: #666;
    min-width: 80px;
    flex-shrink: 0;
    margin-right: 1rem;
}

.info-value {
    color: #333;
    flex: 1;
    word-break: break-word;
}

.items-table-container {
    overflow-x: auto;
    margin: -0.5rem;
    padding: 0.5rem;
}

.details-items-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #E64A19;
    font-size: 0.95rem;
}

.details-items-table thead {
    background: linear-gradient(135deg, #FF5722 0%, #FF7043 100%);
    color: white;
}

.details-items-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #E64A19;
}

.details-items-table th:first-child {
    border-top-left-radius: calc(0.5rem - 1px);
}

.details-items-table th:last-child {
    border-top-right-radius: calc(0.5rem - 1px);
}

.details-items-table tbody tr {
    background: white;
    transition: all 0.2s ease;
}

.details-items-table tbody tr:hover {
    background: #fff8f5;
}

.details-items-table td {
    padding: 12px 15px;
    color: #555;
}

.details-items-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: calc(0.5rem - 1px);
}

.details-items-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: calc(0.5rem - 1px);
}

.details-items-table td.center,
.details-items-table th.center {
    text-align: center;
}

.details-items-table td.total-column {
    font-weight: 600;
    color: #FF5722;
}

.details-items-table .item-name {
    font-weight: 600;
    color: #333;
}

.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.appointment-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #FF5722;
}

.appointment-date {
    font-weight: 600;
    color: #333;
    min-width: 80px;
}

.appointment-time {
    color: #666;
    font-size: 0.95rem;
}

/* Concrete Appointment Styling */
.appointment-item.concrete-appointment {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-left: 4px solid #28a745;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin: 8px 0;
}

.appointment-item.concrete-appointment .appointment-date {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.appointment-item.concrete-appointment .appointment-time {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.note-content {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #FF5722;
    line-height: 1.6;
    color: #555;
}

.files-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.file-item {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.file-preview {
    position: relative;
    padding-bottom: 60%;
    overflow: hidden;
    cursor: pointer;
}

.file-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.file-preview:hover img {
    transform: scale(1.05);
}

.file-description {
    padding: 0.75rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .einreichung-details-container {
        padding: 0 0.5rem;
    }
    
    .einreichung-details-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 1rem;
    }
    
    .details-back-button {
        align-self: flex-start;
        margin-bottom: 1rem;
    }
    
    .details-main-title {
        font-size: 1.5rem;
    }
    
    .details-status-banner {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        text-align: center;
    }
    
    .details-status-banner .status-text {
        text-align: center;
    }
    
    .details-content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .details-card {
        padding: 1rem;
    }
    
    .info-item {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .info-label {
        min-width: auto;
        margin-right: 0;
        font-size: 0.9rem;
    }
    
    .details-items-table {
        font-size: 0.85rem;
    }
    
    .details-items-table th,
    .details-items-table td {
        padding: 0.5rem 0.75rem;
    }
    
    .appointment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .appointment-date {
        min-width: auto;
    }
    
    .files-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .details-items-table th:nth-child(3),
    .details-items-table td:nth-child(3) {
        display: none;
    }
    
    .files-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* ========================================
   IMAGE MODAL
   ======================================== */

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.image-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 10001;
}

.image-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #FF5722;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
}

.image-modal-close:hover {
    background: #E64A19;
    transform: scale(1.1);
}

.image-modal-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .image-modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .image-modal-close {
        top: -10px;
        right: -10px;
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
}

/* ========================================
   BONUSPUNKT-KARTEN
   ======================================== */

.bonus-card {
    border-left: 4px solid #ff6b35 !important;
    background: linear-gradient(45deg, #fff9f7, #ffffff) !important;
}

.bonus-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15) !important;
}

/* ========================================
   BONUSPUNKTE DETAILS - GRAUES LAYOUT WIE EINREICHUNGEN
   ======================================== */

/* Überschreibe Bonuspunkte Details für einheitliches graues Layout */
.bonuspunkte-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.bonuspunkte-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Bonus Cards in Detailansicht - graues Layout anstatt orange */
.bonuspunkte-details-container .bonus-card,
.bonuspunkte-details-container .details-card,
body[data-view="bonuspunkte-details"] .bonus-card {
    background: white !important;
    border: 1px solid #ddd !important;
    border-left: 4px solid #666 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.bonuspunkte-details-container .bonus-card:hover,
.bonuspunkte-details-container .details-card:hover,
body[data-view="bonuspunkte-details"] .bonus-card:hover {
    transform: translateY(-2px);
    border-color: #555 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Bonus Details verwenden das gleiche Layout wie Einreichung Details */
.bonuspunkte-details-container .bonus-card-details,
body[data-view="bonuspunkte-details"] .bonus-card-details {
    border-top: 1px solid #e9ecef !important;
    background: transparent !important;
}

.bonuspunkte-details-container .bonus-card-details strong,
body[data-view="bonuspunkte-details"] .bonus-card-details strong {
    color: #666 !important;
}

/* Stelle sicher, dass Zurück-Button funktioniert */
.bonuspunkte-details-container .details-back-button,
body[data-view="bonuspunkte-details"] .details-back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: #f8f9fa;
}

.bonuspunkte-details-container .details-back-button:hover,
body[data-view="bonuspunkte-details"] .details-back-button:hover {
    color: #FF5722;
    background: #fff5f2;
    transform: translateX(-3px);
}

.bonus-icon {
    font-size: 16px;
    margin-right: 8px;
    color: #ff6b35;
}

.bonus-card .card-title {
    font-weight: 600 !important;
    color: #2c3e50 !important;
}

.bonus-card .card-author {
    color: #7f8c8d !important;
    font-size: 14px !important;
}

.bonus-card-details {
    margin: 0.75rem 0;
    padding-top: 0.5rem;
    border-top: 1px solid #ffe0cc;
}

.bonus-card-details p {
    margin: 0.4rem 0;
    font-size: 0.85rem;
    line-height: 1.3;
}

.bonus-card-details strong {
    color: #ff6b35;
    font-weight: 600;
}

.bonus-description {
    color: #555;
}

.bonus-url {
    color: #555;
}

.bonus-url a {
    color: #ff6b35;
    text-decoration: none;
}

.bonus-url a:hover {
    text-decoration: underline;
}

.bonus-vergeber {
    color: #333;
    font-weight: 500;
}

.bonus-bemerkung {
    color: #d32f2f;
    background: #ffebee;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    border-left: 3px solid #d32f2f;
}

/* Mobile Responsive für Dashboard Logout Button */
@media (max-width: 768px) {
    .ewasterace-login-page .dashboard-logout-section {
        position: static;
        text-align: right;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .ewasterace-login-page .dashboard-logout-btn {
        font-size: 13px !important;
        padding: 6px 12px !important;
        min-width: 70px !important;
    }
}

/* ========================================
   PROFIL LAYOUT - RESPONSIVE TWO-COLUMN
   ======================================== */

.profile-layout-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: flex-start;
}

.profile-left-column {
    flex: 1;
}

.profile-right-column {
    flex: 1;
}

/* Responsive: Ab 768px alle Boxen volle Breite */
@media (max-width: 768px) {
    .profile-layout-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .profile-left-column,
    .profile-right-column {
        flex: none;
        width: 100%;
    }
}

/* ========================================
   PROFIL INFO CARDS (Rechte Spalte)
   ======================================== */

.profile-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-info-card {
    background: #ffffff;
    border: 1px solid #ff6b35;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.profile-info-card:hover {
    transform: translateY(-2px);
    border-color: #ff8a65;
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.15);
}

.profile-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.profile-info-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.profile-info-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 0.9rem;
}

.profile-info-value {
    font-weight: 600;
    color: #2c3e50;
    text-align: right;
}

/* Punktestand-Anzeige */
.profile-points-display {
    text-align: center;
    margin: 1rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8a65 100%);
    border-radius: 8px;
    color: white;
}

.profile-total-points {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.profile-points-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Warning Card */
.profile-info-card.profile-warning {
    border-left: 4px solid #ffc107;
    background: linear-gradient(45deg, #fff9e6, #ffffff);
}

.profile-warning-text {
    color: #856404;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Admin Card */
.profile-info-card.profile-admin {
    border-left: 4px solid #6f42c1;
    background: linear-gradient(45deg, #f8f7ff, #ffffff);
}

.profile-admin-badge {
    background: linear-gradient(135deg, #6f42c1 0%, #8e44ad 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Responsive für Profil */
@media (max-width: 768px) {
    .profile-info-sidebar {
        margin-top: 2rem;
    }
    
    .profile-info-card {
        padding: 1rem;
    }
    
    .profile-card-title {
        font-size: 0.9rem;
    }
    
    .profile-total-points {
        font-size: 2rem;
    }
    
    .profile-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .profile-info-value {
        text-align: left;
        font-size: 0.9rem;
    }
}

/* Spezifische orangene Borders nur für die zwei Profil-Karten */
.ewasterace-login-page .profile-personal-data-card,
.ewasterace-login-page .profile-password-card {
    border: 1px solid #ff6b35 !important;
    transition: all 0.3s ease;
    margin-top: 0 !important;
}

.ewasterace-login-page .profile-personal-data-card:hover,
.ewasterace-login-page .profile-password-card:hover {
    transform: translateY(-2px);
    border-color: #ff8a65 !important;
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.15);
}

/* Spezifischer Abstand für die Passwort-Karte */
.ewasterace-login-page .profile-password-card {
    margin-top: 20px !important;
}

/* ========================================
   SEKUNDÄRE NAVIGATION (TEMPORÄRE TEST-LINKS)
   ======================================== */

/* Sekundäre Navigation für temporäre Test-Links */
.ewasterace-login-page .nav-links-secondary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    gap: 0.5rem;
}

/* Kleinere Links für sekundäre Navigation */
.ewasterace-login-page .dashboard-link-small {
    padding: 6px 12px;
    font-size: 0.875rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    opacity: 0.8;
}

.ewasterace-login-page .dashboard-link-small:hover {
    background: #e9ecef;
    color: #495057;
    opacity: 1;
    border-color: #adb5bd;
}

/* ========================================
   BONUSPUNKTE DETAILS - GRAUES LAYOUT WIE EINREICHUNGEN
   ======================================== */

/* Überschreibe Bonuspunkte Details für einheitliches graues Layout */
.bonuspunkte-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.bonuspunkte-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Bonus Cards in Detailansicht - graues Layout anstatt orange */
.bonuspunkte-details-container .bonus-card,
.bonuspunkte-details-container .details-card,
body[data-view="bonuspunkte-details"] .bonus-card {
    background: white !important;
    border: 1px solid #ddd !important;
    border-left: 4px solid #666 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.bonuspunkte-details-container .bonus-card:hover,
.bonuspunkte-details-container .details-card:hover,
body[data-view="bonuspunkte-details"] .bonus-card:hover {
    transform: translateY(-2px);
    border-color: #555 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Bonus Details verwenden das gleiche Layout wie Einreichung Details */
.bonuspunkte-details-container .bonus-card-details,
body[data-view="bonuspunkte-details"] .bonus-card-details {
    border-top: 1px solid #e9ecef !important;
    background: transparent !important;
}

.bonuspunkte-details-container .bonus-card-details strong,
body[data-view="bonuspunkte-details"] .bonus-card-details strong {
    color: #666 !important;
}

/* Stelle sicher, dass Zurück-Button funktioniert */
.bonuspunkte-details-container .details-back-button,
body[data-view="bonuspunkte-details"] .details-back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: #f8f9fa;
}

.bonuspunkte-details-container .details-back-button:hover,
body[data-view="bonuspunkte-details"] .details-back-button:hover {
    color: #FF5722;
    background: #fff5f2;
    transform: translateX(-3px);
}

.bonus-card {
    border-left: 4px solid #ff6b35 !important;
    background: linear-gradient(45deg, #fff9f7, #ffffff) !important;
}

.bonus-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15) !important;
}

/* ===========================================
   EINREICHUNG ACTION BUTTONS
   =========================================== */

.action-buttons-container {
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: flex-end;
}

.action-buttons-grid {
    display: flex;
    gap: 0.75rem;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #E64A19;
    border-radius: 0.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-button:hover {
    background: #FF5722;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.2);
    transform: translateY(-1px);
}

.action-button-icon {
    font-size: 1.1rem;
    min-width: 1.2rem;
    text-align: center;
}

.action-button-text {
    flex: 1;
}

.action-button-description {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.2rem;
}

.action-button.btn-confirm {
    border-color: #FF5722;
}

.action-button.btn-confirm:hover {
    background: #FF5722;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.2);
}

.action-button.btn-pickup {
    border-color: #2196F3;
}

.action-button.btn-pickup:hover {
    background: #2196F3;
    color: white;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.action-button.btn-collected {
    border-color: #FF9800;
}

.action-button.btn-collected:hover {
    background: #FF9800;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}

.action-button.btn-success {
    background: #28a745;
    color: white;
    font-size: 16px;
    padding: 16px 24px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    border: 2px solid #28a745;
    position: relative;
    overflow: hidden;
}

.action-button.btn-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.action-button.btn-success:hover::before {
    left: 100%;
}

.action-button.btn-success:hover {
    background: #1e7e34;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.action-button.btn-danger {
    background: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
    font-size: 13px;
    padding: 8px 16px;
    font-weight: 400;
    box-shadow: none;
    opacity: 0.7;
    order: 2;
}

.action-button.btn-danger:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
    opacity: 1;
}

.action-button.btn-success {
    order: 1;
}

@media (max-width: 768px) {
    .action-buttons-container {
        margin-top: 1rem;
        margin-bottom: 1rem;
        padding: 0.75rem;
    }
    
    .action-button {
        padding: 0.625rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .action-button-icon {
        font-size: 1rem;
    }
    
    .action-button-description {
        font-size: 0.8rem;
    }
}

/* ===========================================
   PICKUP DIALOG STYLES
   =========================================== */

#pickupDialog {
    z-index: 10000;
}

#pickupDialog .dialog-content {
    max-width: 600px;
    width: 95%;
}

.termin-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.termin-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.termin-option:hover {
    border-color: #FF5722;
    background: #fff8f5;
}

.termin-option input[type="radio"] {
    margin: 0;
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #FF5722;
}

.termin-option input[type="radio"]:checked + .termin-details {
    color: #FF5722;
}

.termin-option:has(input[type="radio"]:checked) {
    border-color: #FF5722;
    background: #fff8f5;
}

.termin-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f8f9fa;
    border-color: #e0e0e0;
}

.termin-option.disabled:hover {
    border-color: #e0e0e0;
    background: #f8f9fa;
}

.termin-option.disabled .termin-details {
    color: #999;
}

.termin-option.disabled .termin-date {
    color: #999;
}

.termin-option.disabled .termin-time {
    color: #bbb;
}

.termin-option.disabled input[type="radio"] {
    cursor: not-allowed;
}

.termin-details {
    flex: 1;
}

.termin-date {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.termin-time {
    font-size: 0.9rem;
    color: #666;
}

#pickup-anmerkungen {
    min-height: 80px;
    resize: vertical;
}

@media (max-width: 768px) {
    #pickupDialog .dialog-content {
        width: 98%;
        margin: 1rem;
    }
    
    .termin-option {
        padding: 0.75rem;
    }
    
    .termin-date {
        font-size: 0.95rem;
    }
    
    .termin-time {
        font-size: 0.85rem;
    }
}

/* ===========================================
   TEMPORARY MESSAGE STYLES
   =========================================== */

.alert-dismissible .btn-close {
    padding: 0.375rem 0.375rem;
    margin: -0.375rem -0.375rem -0.375rem auto;
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    color: currentColor;
    opacity: 0.5;
    cursor: pointer;
}

.alert-dismissible .btn-close:hover {
    opacity: 0.75;
}

/* Loading states for action buttons */
.action-button.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.action-button.loading::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinActionButton 1s linear infinite;
}

@keyframes spinActionButton {
    from {
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* ===========================================
   FIX: Bonuspunkt-Karten orange in Übersicht (weniger aggressiv)
   =========================================== */
/* Korrigiere nur das border-left für Übersicht ohne !important */
body:not([data-view="bonuspunkte-details"]) .bonus-card {
    border-left: 4px solid #ff6b35;
}

/* ===========================================
   PROBLEM CARD STYLES - Backend Data Issues
   =========================================== */

/* Problem Card - markiert Einträge mit Backend-Datenproblemen */
.waste-card.problem-card {
    border: 2px solid #ff6b35 !important;
    background: linear-gradient(135deg, #fff8f5 0%, #ffe0cc 100%) !important;
    position: relative;
    animation: problemPulse 2s ease-in-out infinite;
}

.waste-card.problem-card:hover {
    background: linear-gradient(135deg, #ffecb3 0%, #ffd699 100%) !important;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3) !important;
}

/* Problem Badge - zeigt das spezifische Problem an */
.problem-badge {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    white-space: nowrap;
    animation: badgePulse 1.5s ease-in-out infinite;
}

/* Problem Card Cursor - deaktiviert bei ungültiger ID */
.waste-card.problem-card[style*="cursor: not-allowed"] {
    opacity: 0.7;
    filter: grayscale(20%);
}

.waste-card.problem-card[style*="cursor: not-allowed"]:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2) !important;
}

/* Animationen für Problem-Indikatoren */
@keyframes problemPulse {
    0%, 100% {
        border-color: #ff6b35;
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
    }
    50% {
        border-color: #ff8a50;
        box-shadow: 0 2px 12px rgba(255, 107, 53, 0.2);
    }
}

@keyframes badgePulse {
    0%, 100% {
        background: #ff6b35;
        transform: scale(1);
    }
    50% {
        background: #ff8a50;
        transform: scale(1.05);
    }
}

/* Mobile Responsiveness für Problem Cards */
@media (max-width: 768px) {
    .problem-badge {
        font-size: 0.7rem;
        padding: 0.15rem 0.3rem;
        margin-left: 0.3rem;
    }
    
    .waste-card.problem-card {
        border-width: 1px;
    }
}

/* Problem Card in verschiedenen Kontexten */
.bonus-card.problem-card {
    border-left: 4px solid #ff6b35 !important;
}

.anonymous-card.problem-card {
    border: 2px solid #ff6b35 !important;
}

/* Zusätzliche Warnung für kritische ID-Probleme */
.waste-card.problem-card .problem-badge[title*="Keine ID"] {
    background: #d32f2f;
    animation: criticalPulse 1s ease-in-out infinite;
}

@keyframes criticalPulse {
    0%, 100% {
        background: #d32f2f;
        transform: scale(1);
    }
    50% {
        background: #f44336;
        transform: scale(1.1);
    }
}

/* ===========================================
   CARD ACTION BUTTONS - Pickup Cards
   =========================================== */

/* Container für Action-Buttons in Karten */
.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
}

/* Basis-Styles für Action-Buttons */
.action-btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Success Button - Abgeholt */
.action-btn.btn-success {
    background: #10b981;
    color: white;
}

.action-btn.btn-success:hover {
    background: #059669;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Danger Button - Abbrechen */
.action-btn.btn-danger {
    background: #ef4444;
    color: white;
}

.action-btn.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Info Button - Details */
.action-btn.btn-info {
    background: #3b82f6;
    color: white;
}

.action-btn.btn-info:hover {
    background: #2563eb;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Disabled State für Action-Buttons */
.action-disabled {
    color: #6b7280;
    font-size: 0.875rem;
    text-align: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.375rem;
    font-style: italic;
    border: 1px solid #e5e7eb;
}

/* Pickup Card spezifische Styles */
.pickup-card {
    position: relative;
}

.pickup-card .card-actions {
    background: #f8fafc;
    margin: 0.75rem -1rem -1rem -1rem;
    padding: 0.75rem 1rem;
    border-radius: 0 0 0.5rem 0.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Loading State für Action-Buttons */
.action-btn.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.action-btn.loading::after {
    content: '';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .card-actions {
        flex-direction: column;
        gap: 0.375rem;
    }
    
    .action-btn {
        flex: none;
        min-height: 2.25rem;
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .pickup-card .card-actions {
        margin: 0.5rem -0.75rem -0.75rem -0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .action-btn {
        min-height: 2rem;
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    
    .card-actions {
        gap: 0.25rem;
    }
}

/* Focus States für Accessibility */
.action-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.action-btn.btn-success:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.action-btn.btn-danger:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.action-btn.btn-info:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button Text Truncation */
.action-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hover-Effekte für bessere UX */
.pickup-card:hover .card-actions {
    background: #f1f5f9;
}

.pickup-card:hover .action-btn {
    transform: translateY(-1px);
}

.pickup-card:hover .action-btn:hover {
    transform: translateY(-2px);
}

/* Animation für erscheinende Buttons */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-actions {
    animation: slideUp 0.3s ease-out;
}

/* Karten-Fokus-Styles */
.pickup-card:focus-within {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Status-spezifische Button-Anpassungen */
.pickup-card[data-status="wird_abgeholt"] .action-btn.btn-success {
    background: #16a34a;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* High-Contrast Mode Support */
@media (prefers-contrast: high) {
    .action-btn {
        border: 2px solid currentColor;
    }
    
    .action-btn.btn-success {
        background: #065f46;
    }
    
    .action-btn.btn-danger {
        background: #991b1b;
    }
    
    .action-btn.btn-info {
        background: #1e40af;
    }
}

/* Print Styles */
@media print {
    .card-actions {
        display: none;
    }
}

/* ========================================
   GOOGLE MAPS INTEGRATION
   ======================================== */

/* Maps Card */
.maps-card {
    background: #fff;
    border: 1px solid #FF6B35;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.maps-card:hover {
    border-color: #E55A2B;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.maps-card .card-title {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.maps-card .card-title .card-icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

.maps-card .card-content {
    padding: 0;
}

/* Map Container */
.map-container {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #ddd;
}

.google-map {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

/* Map Loading State */
.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f5f5f5;
    color: #666;
    font-size: 0.9rem;
}

/* Map Error State */
.map-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
    color: #6c757d;
    text-align: center;
    padding: 20px;
}

.map-error p {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
}

.map-error small {
    font-size: 0.8rem;
    color: #999;
}

/* Map Address Display */
.map-address {
    font-size: 0.9rem;
    color: #666;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    margin-top: 8px;
}

/* Google Maps Info Window Styling */
.map-info-window {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 8px;
    max-width: 250px;
}

.map-info-window h6 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
}

.map-info-window p {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
}

.map-actions {
    text-align: center;
}

.map-actions .btn {
    display: inline-block;
    padding: 6px 12px;
    background: #FF5722;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.map-actions .btn:hover {
    background: #E64A19;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .map-container {
        height: 250px;
    }
    
    .maps-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .maps-card .card-title {
        font-size: 1rem;
    }
    
    .map-address {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .map-info-window {
        max-width: 200px;
    }
    
    .map-actions .btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .map-container {
        height: 200px;
    }
    
    .maps-card {
        padding: 10px;
    }
    
    .map-address {
        font-size: 0.8rem;
        padding: 5px 8px;
    }
}

/* Integration with Details Grid */
.details-content-grid .maps-card {
    grid-column: 1 / -1; /* Full width by default */
}

/* On larger screens, maps card can be two columns wide */
@media (min-width: 1024px) {
    .details-content-grid .maps-card {
        grid-column: span 2;
    }
}

/* ========================================
   EWASTERACE ALERT SYSTEM
   ======================================== */

/* Base Alert Styling */
.ewasterace-alert {
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideInAlert 0.3s ease-out;
}

.ewasterace-alert strong {
    font-weight: 600;
    margin-right: 4px;
}

.ewasterace-alert small {
    font-size: 0.85rem;
    opacity: 0.8;
    display: block;
    margin-top: 4px;
}

/* Danger Alert (Error) */
.ewasterace-alert-danger {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.ewasterace-alert-danger strong {
    color: #58151c;
}

/* Success Alert */
.ewasterace-alert-success {
    background-color: #d1e7dd;
    border-color: #198754;
    color: #0f5132;
}

.ewasterace-alert-success strong {
    color: #0a3d2a;
}

/* Warning Alert */
.ewasterace-alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #664d03;
}

.ewasterace-alert-warning strong {
    color: #4f3903;
}

/* Info Alert */
.ewasterace-alert-info {
    background-color: #cff4fc;
    border-color: #0dcaf0;
    color: #055160;
}

.ewasterace-alert-info strong {
    color: #024248;
}

/* Security Alert (Special styling for security errors) */
.ewasterace-alert-security {
    background-color: #f8d7da;
    border-color: #842029;
    color: #721c24;
}

.ewasterace-alert-security strong {
    color: #58151c;
}

.ewasterace-alert-security::before {
    content: "🔒 ";
    font-size: 1.1rem;
    margin-right: 6px;
}

/* Alert Animations */
@keyframes slideInAlert {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alert with Dismissible Close Button */
.ewasterace-alert-dismissible {
    position: relative;
    padding-right: 50px;
}

.ewasterace-alert-dismissible .alert-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.ewasterace-alert-dismissible .alert-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ewasterace-alert {
        padding: 10px 12px;
        margin: 8px 0;
        font-size: 0.9rem;
    }
    
    .ewasterace-alert-dismissible {
        padding-right: 45px;
    }
    
    .ewasterace-alert-dismissible .alert-close {
        top: 6px;
        right: 8px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .ewasterace-alert {
        padding: 8px 10px;
        margin: 6px 0;
        font-size: 0.85rem;
    }
}

/* ============================================
   ELEMENTOR VISIBILITY EXTENSION
   ============================================ */

/* Base visibility classes */
.ewasterace-hidden {
    display: none !important;
}

.ewasterace-visible {
    display: block !important;
}

/* Loading states for dynamic visibility changes */
.ewasterace-visibility-loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Smooth transitions for visibility changes */
.ewasterace-visibility-transition {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, max-height 0.3s ease-in-out;
}

.ewasterace-visibility-fade-in {
    opacity: 1;
    transform: translateY(0);
    max-height: none;
}

.ewasterace-visibility-fade-out {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    overflow: hidden;
}

/* Specific classes for different visibility modes */
.ewasterace-visibility-logged-in-only {
    /* Will be shown/hidden by JavaScript */
}

.ewasterace-visibility-logged-out-only {
    /* Will be shown/hidden by JavaScript */
}

.ewasterace-visibility-admin-only {
    /* Will be shown/hidden by JavaScript */
}

/* Debug mode - shows which visibility mode is active */
.ewasterace-debug .ewasterace-visibility-logged-in-only::before {
    content: "[Nur eingeloggt]";
    background: #28a745;
    color: white;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 3px;
    margin-right: 8px;
    display: inline-block;
}

.ewasterace-debug .ewasterace-visibility-logged-out-only::before {
    content: "[Nur ausgeloggt]";
    background: #dc3545;
    color: white;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 3px;
    margin-right: 8px;
    display: inline-block;
}

.ewasterace-debug .ewasterace-visibility-admin-only::before {
    content: "[Nur Admin]";
    background: #ffc107;
    color: black;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 3px;
    margin-right: 8px;
    display: inline-block;
}

/* Responsive visibility adjustments */
@media (max-width: 768px) {
    .ewasterace-visibility-transition {
        transition-duration: 0.2s; /* Faster on mobile */
    }
}