/* ------------------------------------------------------------------
   landkreiscup.de - Basis-Stylesheet
   ------------------------------------------------------------------ */

:root {
    --lkc-blau:      #1f3f7a;
    --lkc-blau-hell: #a4bed5;
    --lkc-rot:       #b3151f;
    --lkc-rahmen:    #d8dee8;
    --lkc-flaeche:   #eef1f6;
    --lkc-text:      #22262c;
}

body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: var(--lkc-text);
    background: var(--lkc-flaeche);
    margin: 0;
    padding: 0;
}

a          { color: var(--lkc-blau); }
a:hover    { color: var(--lkc-rot); }
img        { border: 0; }

/* ---------- Seitengeruest ---------------------------------------- */

#lkc-seite {
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(0,0,0,.12);
}

/* ---------- 1. Kopfbereich --------------------------------------- */

#lkc-kopf {
    background: var(--lkc-blau-hell);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

#lkc-kopf .lkc-titel {
    flex: 1;
    font-size: 27px;
    letter-spacing: .5px;
    color: #16283a;
    text-decoration: none;
    text-shadow: 1px 1px 0 rgba(255,255,255,.5);
}

#lkc-kopf .lkc-titel span { color: var(--lkc-rot); }
#lkc-kopf img { height: 62px; width: auto; }

/* ---------- Rumpf: Seitenleiste + Inhalt ------------------------- */

#lkc-rumpf {
    display: flex;
    align-items: stretch;
}

/* ---------- 2. Hauptnavigation ----------------------------------- */

#lkc-nav {
    width: 190px;
    flex: 0 0 190px;
    background: var(--lkc-blau-hell);
    padding: 12px 0 16px;
}

#lkc-nav a.lkc-mp {
    display: block;
    padding: 8px 14px;
    border-left: 4px solid transparent;
    color: #16283a;
    font-size: 13px;
    letter-spacing: .5px;
    text-decoration: none;
    text-transform: uppercase;
}

#lkc-nav a.lkc-mp:hover {
    background: rgba(255,255,255,.45);
    color: var(--lkc-blau);
}

#lkc-nav a.lkc-mp.aktiv {
    background: #ffffff;
    border-left-color: var(--lkc-rot);
    color: var(--lkc-blau);
    font-weight: bold;
}

#lkc-nav .lkc-jahre {
    background: rgba(255,255,255,.35);
    padding: 6px 0;
    text-align: center;
    font-size: 12px;
}

#lkc-nav .lkc-jahre a { display: inline-block; padding: 1px 6px; }

#lkc-nav .lkc-cup {
    margin: 16px 14px 0;
    text-align: center;
}

#lkc-nav .lkc-cup img { max-width: 100%; height: auto; }

/* ---------- Inhaltsbereich --------------------------------------- */

#lkc-inhalt {
    flex: 1 1 auto;
    min-width: 0;
    background: var(--lkc-flaeche);
    padding: 12px 14px 18px;
}

/* ---------- 4. Weisses Inhaltspanel ------------------------------ */

#lkc-panel {
    background: #ffffff;
    border: 1px solid var(--lkc-rahmen);
    border-radius: 6px;
    padding: 14px 16px 18px;
    /* verhindert, dass ueberbreite Ergebnistabellen das Seitenlayout
       auseinanderziehen - sie scrollen stattdessen im Panel */
    overflow-x: auto;
}

/* Ergebnislisten kompakter setzen, damit mehr Spalten sichtbar sind */
body.lkc-breit #lkc-panel table { font-size: 11px; }
body.lkc-breit #lkc-panel table td,
body.lkc-breit #lkc-panel table th { padding: 2px 4px; }

#lkc-panel hr {
    border: 0;
    border-top: 1px solid var(--lkc-rahmen);
    margin: 18px 0;
}

/* ---------- 3. Vereinsnavigation als Reiter ---------------------- */
/* Greift ueber die Breite 658 auf alle Jahrgangs-Varianten zu,
   ohne dass die einzelnen Jahres-Bloecke geaendert werden muessen.
   Aktiver Reiter = td OHNE bgcolor-Attribut.
   Achtung: im selben <table> steht auch die Inhaltszelle (colspan),
   deshalb sind alle Reiter-Regeln auf td[width="80"] eingeschraenkt. */

table[width="658"] {
    width: 100% !important;
    background: transparent !important;
    border-collapse: separate;
    border-spacing: 3px 0;
    margin: 0;
    table-layout: fixed;
}

table[width="658"] td[width="80"] {
    width: auto !important;
    background: #e2e7ee;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
    padding: 0;
    text-align: center;
    vertical-align: bottom;
}

table[width="658"] td[width="80"]:hover { background: #d5dce7; }

table[width="658"] td[width="80"]:not([bgcolor]) {
    background: #ffffff;
    border-color: var(--lkc-rahmen);
    border-top: 3px solid var(--lkc-rot);
}

/* Reiterbeschriftung als Text (ersetzt die frueheren PNGs) */
table[width="658"] td[width="80"] a {
    display: block;
    padding: 8px 6px;
    min-height: 30px;
    font-size: 11px;
    line-height: 1.35;
    color: #5f5e5a;
    text-decoration: none;
}

table[width="658"] td[width="80"]:not([bgcolor]) a {
    padding-top: 6px;
    color: var(--lkc-blau);
    font-weight: bold;
}

table[width="658"] td[width="80"]:hover a { color: var(--lkc-blau); }

/* Falls doch noch ein Bild-Reiter vorkommt */
table[width="658"] td[width="80"] img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* Inhaltszelle (information.txt) unterhalb der Reiter neutralisieren */
table[width="658"] td.lkc-inhaltszelle {
    background: transparent !important;
    border-top: 1px solid var(--lkc-rahmen);
    padding: 14px 1px 0;
    text-align: left;
    vertical-align: top;
}

/* Zweite Reiterzeile: Zwischen-/Endergebnis (ergebnisse.txt) */
table[width="658"] td[colspan]:not(.lkc-inhaltszelle) {
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
    padding: 6px 4px;
    text-align: center;
}

table[width="658"] td[colspan][bgcolor="#e1e1e1"] { background: #e2e7ee; }
table[width="658"] td[colspan][bgcolor="#e1e1e1"]:hover { background: #d5dce7; }

table[width="658"] td[colspan][bgcolor="#FFFFFF"] {
    background: #ffffff;
    border-color: var(--lkc-rahmen);
    border-top: 3px solid var(--lkc-rot);
    padding-top: 4px;
    font-weight: bold;
}

/* ---------- Wiederverwendbare Inhalts-Elemente ------------------- */

.lkc-h2 {
    color: var(--lkc-blau);
    font-size: 16px;
    margin: 4px 0 10px;
    border-bottom: 1px solid var(--lkc-rahmen);
    padding-bottom: 4px;
}

.lkc-h3 {
    color: var(--lkc-blau);
    font-size: 14px;
    margin: 24px 0 8px;
}

table.lkc-tabelle {
    border-collapse: collapse;
    margin: 6px 0 12px;
}

table.lkc-tabelle th {
    text-align: left;
    color: var(--lkc-blau);
    background: var(--lkc-flaeche);
    font-weight: bold;
    padding: 6px 12px 6px 8px;
    border-bottom: 1px solid var(--lkc-rahmen);
}

table.lkc-tabelle td {
    padding: 5px 12px 5px 8px;
    border-bottom: 1px solid var(--lkc-rahmen);
    vertical-align: top;
}

table.lkc-tabelle tr:hover td { background: #f8f9fc; }

.lkc-nowrap { white-space: nowrap; }
.lkc-leer   { color: #888780; }

/* ---------- 5. Fusszeile ----------------------------------------- */

#lkc-fuss {
    background: #ffffff;
    border-top: 1px solid var(--lkc-rahmen);
    padding: 12px 20px 16px;
    text-align: center;
}

#lkc-fuss img { max-width: 100%; height: auto; }

#lkc-fuss .lkc-fusslinks {
    margin-top: 10px;
    font-size: 11px;
    color: #5f5e5a;
}

#lkc-fuss .lkc-fusslinks a { margin: 0 6px; }

/* ---------- Mobil ------------------------------------------------ */

@media (max-width: 720px) {

    #lkc-kopf { padding: 10px 12px; }
    #lkc-kopf .lkc-titel { font-size: 19px; }
    #lkc-kopf img { height: 44px; }

    #lkc-rumpf { display: block; }

    #lkc-nav {
        width: auto;
        flex: none;
        padding: 6px 0;
        display: flex;
        flex-wrap: wrap;
    }

    #lkc-nav a.lkc-mp {
        flex: 1 0 33%;
        padding: 7px 8px;
        border-left: 0;
        border-bottom: 3px solid transparent;
        text-align: center;
        font-size: 11px;
    }

    #lkc-nav a.lkc-mp.aktiv {
        border-left: 0;
        border-bottom-color: var(--lkc-rot);
    }

    #lkc-nav .lkc-jahre { flex: 1 0 100%; }
    #lkc-nav .lkc-cup   { display: none; }

    #lkc-inhalt { padding: 8px 8px 14px; }
    #lkc-panel  { padding: 10px 10px 14px; }

    table[width="658"] { table-layout: auto; }
    table[width="658"] td { display: inline-block; margin-bottom: 3px; }

    #lkc-panel table { max-width: 100%; }
}
