@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Poppins:wght@400;600&display=swap');

/* --- Global Styles --- */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f8f9fa, #fdf4f4);
    color: #343a40;
}

/* --- Layout --- */
header {
    background: linear-gradient(135deg, #a71d2a, #dc3545, #ff6b6b);
    color: white;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: slide-in 1s ease-out;
}

/* Add a subtle glow/pattern effect */
header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 60%);
    transform: rotate(30deg);
    pointer-events: none;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered by default */
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3em;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: 1.3em;
    margin-top: 10px;
}

header img,
.logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    animation: fade-in 1s ease-out;
}

/* Header Content Specifics (from previous styles.css) */
.header-text {
    flex: 1;
    min-width: 200px;
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: center;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

nav a {
    color: #dc3545;
    text-decoration: none;
    margin: 5px 15px;
    /* Added vertical margin for wrapping */
    font-size: 1em;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #dc3545;
    background: linear-gradient(135deg, #dc3545, #ff6b6b);
    color: white;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
    transform: translateY(-2px);
}

/* --- Main Content --- */
main {
    padding: 40px 20px;
    /* Reduced side padding */
    max-width: 1200px;
    margin: 20px auto;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: fade-in 1s ease-out;
    box-sizing: border-box;
    /* Ensure padding doesn't overflow width */
}

main h2 {
    color: #dc3545;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

/* --- Footer --- */
footer {
    background-color: #dc3545;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0;
    font-size: 1em;
}

/* --- Components --- */

/* Animations */
@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table,
th,
td {
    border: 1px solid #ddd;
}

th,
td {
    padding: 10px;
    text-align: left;
    /* Default alignment */
    vertical-align: top;
}

th {
    background-color: #dc3545;
    color: white;
    text-align: center;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Iframes / Images */
iframe,
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Download Buttons (from kontakt.html) */
.download-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.download-buttons a {
    display: inline-block;
    background: linear-gradient(90deg, #dc3545, #e63946);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.download-buttons a:hover {
    background: #c82333;
}

/* Info Box / Dropdown (from previous styles.css) */
.info-wrapper {
    position: relative;
    display: block;
}

.info-box {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    margin-top: 10px;
    background-color: #f8f9fa;
    padding: 0 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 0.95em;
}

.info-box.open {
    max-height: 1000px;
    opacity: 1;
    padding: 10px;
}

.info-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.info-toggle {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.info-toggle:hover {
    background-color: #c82333;
}


/* --- Responsive Design --- */
@media (max-width: 768px) {

    /* Header adjustments */
    header {
        padding: 30px 10px;
    }

    header h1 {
        font-size: 2em;
    }

    header p {
        font-size: 1.1em;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    /* Navigation adjustments */
    nav {
        flex-direction: column;
        align-items: center;
        padding: 10px;
        position: relative;
        /* Disable sticky on mobile */
    }

    /* Iframe centering */
    iframe {
        display: block;
        margin: 20px auto;
    }

    nav a {
        margin: 5px 0;
        width: 100%;
        /* Full width buttons on mobile */
        text-align: center;
        box-sizing: border-box;
    }

    /* Main content adjustments */
    main {
        padding: 20px 15px;
        margin: 10px auto;
        width: 95%;
        /* Use almost full width */
    }

    /* Table adjustments */
    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
        /* Make tables stack on very small screens if needed, simple approach */
    }

    /* Better table handling for data tables often involves overflowing */
    div.table-wrapper {
        overflow-x: auto;
    }

    /* Simple table stacking for small screens */
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
    }

    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: left;
    }

    td:before {
        /* Pseudo-element for labels if we wanted to get fancy, but simple stacking is often enough or horizontal scroll */
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }
}

/* --- Team Grid Layout --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.team-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid #dc3545;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.team-name {
    color: #dc3545;
    font-size: 1.5em;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
}

.team-league {
    font-weight: bold;
    color: #555;
    margin-bottom: 20px;
    display: block;
    font-size: 1.1em;
}

/* Adjust Info Box for Card */
.team-card .info-wrapper {
    margin-top: 15px;
}

.team-card .info-box {
    text-align: left;
    /* Keep text readable */
    margin-top: 15px;
}