/* TC Oberpöring - Main Styles */
/* Color Scheme:
   Primary: #489CD6 (blue)
   Secondary: #DF9E1F (gold/orange)
   Dark: #424242
   Accent: #2B0909 (dark red)
   Background: #FFFFFF
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #489CD6;
    --secondary-gold: #DF9E1F;
    --dark-gray: #424242;
    --accent-red: #2B0909;
    --background: #FFFFFF;
    --text-color: #333333;
    --light-gray: #F5F5F5;
    --border-color: #DDDDDD;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--background);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-gold) 100%);
    padding: 10px 0;
    text-align: center;
    color: white;
}

.header-main {
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo h1 {
    font-size: 3em;;
    color: var(--primary-blue);
    margin: 0;
}
/* Navigation */
nav {
    background-color: var(--primary-blue);
    position: fixed;
    width: 100%;
    z-index: 1000; /* make sure nav stays above content */
}

.nav-container {
    display: flex;
    justify-content: space-between; /* ensures toggle is visible */
    align-items: center;
    padding: 0 1rem;
}

/* Menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background-color: var(--secondary-gold);
}

/* Dropdown Menu */
.nav-menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark-gray);
    min-width: 250px;
    list-style: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.nav-menu li:hover > ul {
    display: block;
}

.nav-menu li ul li a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.nav-menu li ul li a:hover {
    background-color: var(--primary-blue);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none; /* hidden on desktop */
    background: none;
    border: none;
    color: black;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
    z-index: 1100; /* above nav menu */
}

/* Main Content */
main {
    min-height: calc(100vh - 400px);
    padding: 40px 0;
    margin-top: 20px;
}

.board-table {
    width: auto;                 /* prevents unnecessary stretching */
    max-width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 0.95rem;
    color: #2f2f2f;
}

/* Header */
.board-table th {
    text-align: left;
    padding: 6px 8px;            /* MUCH tighter columns */
    font-weight: 600;
    background-color: #f5f7f9;
    border-bottom: 2px solid #d8dce1;
    white-space: nowrap;
}

/* Body cells */
.board-table td {
    padding: 5px 8px;            /* tight horizontal spacing */
    border-bottom: 1px solid #e3e6ea;
    white-space: nowrap;         /* keeps columns compact */
}

/* Optional: allow long text only where needed */
.board-table td.wrap {
    white-space: normal;
}

/* Hover */
.board-table tbody tr:hover {
    background-color: #fafbfc;
}

/* Emphasize names slightly */
.board-table td:first-child {
    font-weight: 500;
    color: #1f2937;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-blue);
}

.page-header h1 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--dark-gray);
    font-size: 1.1rem;
}

/* Content Sections */
.content-section {
    margin-bottom: 40px;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.content-section h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-left: 4px solid var(--secondary-gold);
    padding-left: 15px;
}

.content-section h3 {
    color: var(--dark-gray);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Links */
a {
    color: var(--primary-blue);
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-gold);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--secondary-gold);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-gold);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

table th,
table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background-color: var(--primary-blue);
    color: white;
    font-weight: 600;
}

table tr:hover {
    background-color: var(--light-gray);
}

/* Cards */
.card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

/* Document Links */
.document-list {
    list-style: none;
    padding: 0;
}

.document-list li {
    margin-bottom: 10px;
    padding: 15px;
    background-color: white;
    border-left: 4px solid var(--primary-blue);
    transition: transform 0.2s;
}

.document-list li:hover {
    transform: translateX(5px);
    border-left-color: var(--secondary-gold);
}

.document-list a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

.document-list a::before {
    content: "📄";
    margin-right: 10px;
    font-size: 1.5rem;
}

/* Document Links */
.link-list {
    list-style: none;
    padding: 0;
}

.link-list li {
    margin-bottom: 10px;
    padding: 8px;
    background-color: white;
    border-left: 4px solid var(--primary-blue);
    transition: transform 0.2s;
}

.link-list li:hover {
    transform: translateX(5px);
    border-left-color: var(--secondary-gold);
}

.link-list a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

.link-list a::before {
    content: "🔗";
    margin-right: 10px;
    font-size: 1.5rem;
}

/* Horizontal layout */
.ranking-layout {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

/* Image styling */
.ranking-image {
    width: 260px;
    max-width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.circle-ranking {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

/* Base item */
.circle-ranking li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 5px 4px;
    margin-bottom: 5px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid var(--primary-blue);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover */
.circle-ranking li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Rank circle (default = blue) */
.circle-ranking li::before {
    content: attr(data-rank);
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

/* 🥇 Gold (Rank 1) */
.circle-ranking li[data-rank="1"] {
    border-left-color: gold;
}
.circle-ranking li[data-rank="1"]::before {
    background-color: gold;
    color: #333;
}

/* 🥈 Silver (Rank 2) */
.circle-ranking li[data-rank="2"] {
    border-left-color: silver;
}
.circle-ranking li[data-rank="2"]::before {
    background-color: silver;
    color: #333;
}

/* 🥉 Bronze (Rank 3) */
.circle-ranking li[data-rank="3"] {
    border-left-color: #cd7f32;
}
.circle-ranking li[data-rank="3"]::before {
    background-color: #cd7f32;
    color: white;
}

.link-div {
    color: var(white);     /* link color */
    text-decoration: underline;     /* underline like a link */
    cursor: pointer;                /* show pointer on hover */
    display: inline-block;          /* shrink to text width */
    transition: color 0.2s, text-decoration 0.2s;
}

.link-div:hover {
    color: var(--secondary-gold);   /* hover color */
    text-decoration: none;          /* optional: remove underline on hover */
}

/* Supporters Section */
.supporters {
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.supporters h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    text-align: center;
}

/* Supporters List */
.supporters-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Individual supporter item */
.supporters-list li {
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 12px;
}

/* Hover effect for all items */
.supporters-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Links styling */
.supporters-list a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-blue);
    text-decoration: underline;
    transition: color 0.2s;
}

.supporters-list a:hover {
    color: var(--secondary-gold);
    text-decoration: none;
}



/* External Links */
.external-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.external-link-card {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue));
    color: white;
    padding: 5px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.external-link-card:hover {
    transform: translateY(-5px);
    color: white;
}

.external-link-card h3 {
    color: white;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--secondary-gold);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--secondary-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none;
}

/* Welcome Box */
.welcome-box {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-gold));
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 30px;
    margin-top: 20px;
}

.welcome-box h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
}

/* News/Aktuelles Items */
.news-item {
    background-color: white;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.news-item h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.news-date {
    color: var(--dark-gray);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 15px;
}

/* Schedule/Training Table */
.schedule-table {
    overflow-x: auto;
}

.schedule-table table {
    min-width: 600px;
}
