/* Grundlayout */
.page-bg {
    background: linear-gradient(135deg, #e8f1f8, #f5f9fc);
    margin: 0;
    padding: 40px 0;
    font-family: "Segoe UI", Roboto, sans-serif;
    color: #333;
}

/* Container */
.container {
    width: 90%;
    max-width: 900px;
    background: #fff;
    padding: 30px;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    animation: fadeIn 0.6s ease-out;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    max-width: 180px;
    margin-bottom: 10px;
}

/* Navigation */
.nav h2 {
    margin-bottom: 10px;
    color: #005a9e;
    font-size: 1.4rem;
}

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

.competition-item {
    margin: 10px 0;
}

.icon {
    margin-right: 6px;
}

/* Links */
.competition-link {
    text-decoration: none;
    color: #005a9e;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    display: inline-block;
    background: #eef5fb;
    transition: background 0.25s, transform 0.15s;
}

.competition-link:hover {
    background: #005a9e;
    color: white;
    transform: translateY(-2px);
}

/* Disabled */
.competition-disabled {
    color: #777;
    padding: 10px 14px;
    display: inline-block;
    background: #f2f2f2;
    border-radius: 8px;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9em;
    color: #666;
}

.footer a {
    color: #005a9e;
    text-decoration: none;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 600px) {
    .competition-link,
    .competition-disabled {
        width: 100%;
        box-sizing: border-box;
    }
}

/* PDF-Link unter dem Wettkampf */
.competition-pdf {
    margin-left: 2.2rem;
    margin-top: 4px;
}

.pdf-link {
    color: #005a9e;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.pdf-link:hover {
    text-decoration: underline;
    color: #003f73;
}
/* Überschrift Rekordlisten in gleicher Farbe wie Aktuelle Wettkämpfe */
.record-headline {
    color: #005a9e;
    font-size: 1.4rem;
    margin-top: 40px;
}

/* Tabs */
.record-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.record-tab {
    padding: 10px 18px;
    background: #eef5fb;
    border: none;
    border-radius: 8px;
    color: #005a9e;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s;
}

.record-tab:hover {
    background: #005a9e;
    color: white;
    transform: translateY(-2px);
}

.record-tab.active {
    background: #005a9e;
    color: white;
}

/* Frames */
.record-frame {
    display: none;
    list-style: none;
}

.record-frame.active {
    display: block;
}
.record-frame-container {
    list-style: none;
    padding: 0;
    margin: 0;
}
/* Alle Listenpunkte global ausblenden (für ::marker) */
*::marker {
    content: "";
}
iframe {
    border: none;
    outline: none;
    display: block;
}

.record-files {
    margin-top: 40px;
}

.record-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.record-file-card {
    background: #eef5fb;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

.record-file-card h3 {
    color: #005a9e;
    margin-bottom: 15px;
}

.lenex-button {
    display: inline-block;
    padding: 10px 16px;
    background: #005a9e;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.25s, transform 0.15s;
}

.lenex-button:hover {
    background: #003f73;
    transform: translateY(-2px);
}

.lenex-missing {
    color: #777;
    font-style: italic;
}

.lenex-date {
    margin-top: 12px;
    color: #555;
    font-size: 0.9rem;
}
/* Grid für die Kacheln */
.record-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Kachel */
.record-file-card {
    background: #eef5fb;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* sorgt für gleiche Höhe */
    height: 220px; /* feste Höhe für perfekte Ausrichtung */
}

/* Titel */
.record-file-card h3 {
    color: #005a9e;
    margin-bottom: 15px;
}

/* Button-Wrapper für gleiche Höhe */
.record-file-button-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Download-Button */
.lenex-button {
    display: inline-block;
    padding: 10px 16px;
    background: #005a9e;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.25s, transform 0.15s;
}

.lenex-button:hover {
    background: #003f73;
    transform: translateY(-2px);
}

/* Fehlermeldung */
.lenex-missing {
    color: #777;
    font-style: italic;
}

/* Datum */
.lenex-date {
    margin-top: 12px;
    color: #555;
    font-size: 0.9rem;
}

/* Neue Rekorde */

.new-records {
    margin-top: 40px;
}

.new-record-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.new-record-carousel::-webkit-scrollbar {
    height: 8px;
}

.new-record-carousel::-webkit-scrollbar-thumb {
    background: #c5d7e8;
    border-radius: 4px;
}

.new-record-card {
    min-width: 180px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.nr-strecke {
    font-weight: 600;
    color: #005a9e;
    margin-bottom: 8px;
}

.nr-name {
    font-size: 1rem;
    margin-bottom: 6px;
}

.nr-ak {
    color: #444;
    margin-bottom: 6px;
}

.nr-zeit {
    color: #0a8a0a;
    font-weight: 700;
    margin-bottom: 6px;
}

.nr-datum {
    color: #555;
    font-size: 0.9rem;
}

/* Intro-Text */
.intro-text {
    background: #eef5fb;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    animation: fadeIn 0.6s ease-out;
}

.intro-text p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #333;
    font-size: 1rem;
}

.intro-text p:last-child {
    margin-bottom: 0;
}
.intro-text a {
    color: #005a9e;
    text-decoration: underline;
    font-weight: 500;
}

.intro-text a:hover {
    color: #003f73;
}
.future-events {
    margin-top: 40px;
}

.future-events-frame {
    margin-top: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}



.event-header {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 25px;
}

.event-date {
    font-size: 1.2rem;
    color: #333;
}

.event-tiles {
    margin-top: 20px;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.tile-card {
    background: #eef5fb;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.tile-card h3 {
    color: #005a9e;
    margin-bottom: 15px;
}

.tile-button {
    display: inline-block;
    padding: 10px 16px;
    background: #005a9e;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.25s, transform 0.15s;
}

.tile-button:hover {
    background: #003f73;
    transform: translateY(-2px);
}

.tile-missing {
    color: #777;
    font-style: italic;
}

.tile-date {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #555;
}

/* Kleine Kacheln */
.tile-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.tile-card-small {
    background: #eef5fb;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.tile-card-small h3 {
    color: #005a9e;
    margin-bottom: 10px;
    font-size: 1rem;
}

.tile-button-small {
    display: inline-block;
    padding: 8px 12px;
    background: #005a9e;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.25s, transform 0.15s;
}

.tile-button-small:hover {
    background: #003f73;
    transform: translateY(-2px);
}

.tile-missing-small {
    color: #777;
    font-style: italic;
    font-size: 0.9rem;
}

.tile-date-small {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #555;
}
.subsection-headline {
    font-size: 1.2rem;
    color: #000;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 600;
}
