/* ==========================================
   JFG Nordries - Fußball Webseite
   ========================================== */

:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --danger-color: #ea4335;
    --light-bg: #f8f9fa;
    --dark-text: #202124;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
}

/* ==========================================
   Navbar
   ========================================== */

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--secondary-color) !important;
    transform: scale(1.05);
}

.navbar-logo {
    height: 40px;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.1);
}

/* ==========================================
   Hero Section / Slider
   ========================================== */

.hero-section {
    height: 550px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel {
    height: 100%;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.6s ease-in-out !important;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item:not(.active) {
    opacity: 0;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.2);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-caption h1 {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.carousel-caption h2 {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption .btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.carousel-caption .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.logo-slider {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 25px;
}

.carousel-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
    background-color: white;
    width: 14px;
    height: 14px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 6%;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

/* ==========================================
   Teams Section
   ========================================== */

.teams-section {
    background: var(--light-bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--dark-text);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ==========================================
   Team Cards
   ========================================== */

.team-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid var(--primary-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border-left-color: var(--secondary-color);
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.team-header i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.team-header .badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    font-size: 1rem;
    padding: 8px 15px;
    font-weight: bold;
}

.team-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.team-info {
    color: #606366;
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 15px;
}

.team-card .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    align-self: flex-start;
    transition: all 0.3s ease;
}

.team-card .btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

/* ==========================================
   Modal Styles
   ========================================== */

/* Diese Styles sind nicht mehr nötig, da wir
   separate Seiten statt Modals verwenden */

/* Team Details Header */
.team-details-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eaed 100%);
    border-bottom: 4px solid #1a73e8;
}

/* ==========================================
   League Table
   ========================================== */

.table {
    margin-bottom: 0;
}

.table-dark {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.table-dark thead th {
    border: none;
    padding: 12px;
    font-weight: bold;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table tbody td {
    padding: 12px;
    border-color: #e8eaed;
}

/* ==========================================
   Footer
   ========================================== */

footer {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-top: 4px solid var(--primary-color);
}

footer h5 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

footer p {
    color: #bdbdbd;
    margin-bottom: 10px;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
    .hero-section {
        height: 400px;
    }

    .carousel-caption {
        padding: 20px;
    }

    .carousel-caption h1 {
        font-size: 1.75rem;
    }

    .carousel-caption h2 {
        font-size: 1.75rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .carousel-caption .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1.5rem;
    }

    .logo-slider {
        max-width: 100px;
    }

    .navbar-logo {
        height: 32px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .team-card {
        margin-bottom: 20px;
    }

    .team-details-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 300px;
        margin-bottom: 20px;
    }

    .carousel-caption {
        padding: 15px;
        border-radius: 10px;
    }

    .carousel-caption h1 {
        font-size: 1.25rem;
    }

    .carousel-caption h2 {
        font-size: 1.25rem;
    }

    .carousel-caption p {
        font-size: 0.85rem;
        margin: 10px 0;
    }

    .carousel-caption .btn {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
        margin-top: 15px !important;
    }

    .logo-slider {
        max-width: 80px;
        margin-bottom: 10px !important;
    }

    .navbar-logo {
        height: 28px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }

    .carousel-indicators {
        bottom: 15px;
    }

    .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }

    .carousel-indicators [data-bs-target].active {
        width: 12px;
        height: 12px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .team-details-header h1 {
        font-size: 1.5rem;
    }

    .table-responsive {
        font-size: 0.85rem;
    }

    .table tbody td,
    .table-dark thead th {
        padding: 8px 4px;
    }

    .card-body {
        padding: 1rem;
    }
}

/* ==========================================
   Utility Classes
   ========================================== */

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
