/* Regatten-Seite Styling */

/* Jahr-Sektionen */
.year-section {
    margin-bottom: 3rem;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.year-header {
    color: #003366;
    border-bottom: 3px solid #003366;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
    font-size: 1.8rem;
}

.year-header i {
    margin-right: 0.5rem;
}

/* Tabellen-Styling */
.regatta-table {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.regatta-table thead {
    background: linear-gradient(135deg, #003366 0%, #004488 100%);
    color: white;
}

.regatta-table thead th {
    border: none;
    font-weight: 600;
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.regatta-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #e9ecef;
}

.regatta-table tbody tr:last-child {
    border-bottom: none;
}

.regatta-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Regatta-Status Styling */
.regatta-past {
    opacity: 0.7;
}

.regatta-past .name-cell strong {
    color: #6c757d;
}

.regatta-ongoing {
    background-color: #d4edda !important;
    border-left: 4px solid #28a745;
}

.regatta-upcoming {
    border-left: 4px solid #003366;
}

/* Badge-Styling */
.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-primary {
    background-color: #003366;
    color: white;
}

.regatta-table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Zellen-Styling */
.date-cell {
    color: #666;
    font-weight: 500;
}

.date-cell i {
    margin-right: 0.5rem;
    color: #003366;
}

.name-cell strong {
    color: #003366;
    font-size: 1.05rem;
}

.action-cell {
    white-space: nowrap;
}

/* Button-Styling */
.btn-primary {
    background: linear-gradient(135deg, #003366 0%, #004488 100%);
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: white !important;
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #002244 0%, #003366 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: white !important;
    text-decoration: none;
}

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

.btn-primary:focus {
    color: white !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.3);
}

/* Alert-Styling */
.alert-info {
    background-color: #e7f3ff;
    border-color: #b3d9ff;
    color: #004085;
    border-left: 4px solid #003366;
}

.alert-info .alert-link {
    color: #002752;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid #003366;
    transition: all 0.2s ease;
}

.alert-info .alert-link:hover {
    color: #003366;
    border-bottom-color: #004488;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* Info-Box */
.info-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.info-box h3 {
    color: #003366;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.info-box h3 i {
    margin-right: 0.5rem;
}

.info-box p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.info-box a {
    color: #003366;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #003366;
    transition: all 0.2s ease;
}

.info-box a:hover {
    color: #004488;
    border-bottom-color: #004488;
}

/* Responsive Design */
@media (max-width: 768px) {
    .year-header {
        font-size: 1.5rem;
    }
    
    .regatta-table {
        font-size: 0.9rem;
    }
    
    .regatta-table td,
    .regatta-table th {
        padding: 0.75rem 0.5rem;
    }
    
    .btn-primary {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .name-cell strong {
        font-size: 1rem;
    }
    
    /* Stack table on mobile */
    .regatta-table thead {
        display: none;
    }
    
    .regatta-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 1rem;
    }
    
    .regatta-table tbody tr:hover {
        transform: none;
    }
    
    .regatta-table tbody td {
        display: block;
        text-align: left !important;
        padding: 0.5rem 0;
        border: none;
    }
    
    .regatta-table tbody td:before {
        content: attr(data-label);
        font-weight: bold;
        display: inline-block;
        margin-right: 0.5rem;
        color: #003366;
    }
    
    .action-cell {
        text-align: left !important;
        margin-top: 0.5rem;
    }
    
    .btn-primary {
        display: block;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .info-box {
        padding: 1rem;
    }
}

/* Print-Styling */
@media print {
    .btn-primary,
    .alert-info {
        display: none;
    }
    
    .regatta-table {
        box-shadow: none;
    }
    
    .year-header {
        page-break-after: avoid;
    }
    
    .year-section {
        page-break-inside: avoid;
    }
}

/* Made with Bob */
