*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:         #f5f8f5;
    --surface:    #ffffff;
    --border:     #d8e8d8;
    --text:       #1a1a1a;
    --text-muted: #5a7a60;
    --header-bg:  #1a3d2b;
    --green:      #2e8b57;
    --green-lite: #2e8b5720;
    --red:        #c0392b;
    --red-lite:   #c0392b18;
    --radius:     8px;
    --max-width:  1100px;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 2.5rem; /* Platz für die fixe User-Bar */
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Header --- */

header {
    background: var(--header-bg);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px #0004;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo:hover { text-decoration: none; opacity: .85; }

/* Desktop nav */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}
.nav-desktop > a,
.nav-drop-trigger {
    color: #ffffffbb;
    font-size: .9rem;
    text-decoration: none;
    white-space: nowrap;
}
.nav-desktop > a:hover,
.nav-drop-trigger:hover { color: #fff; }

.nav-chevron { font-size: .7rem; opacity: .7; margin-left: .2rem; }
.nav-chevron--right { margin-left: auto; padding-left: .5rem; }

/* Dropdown (first level) */
.nav-drop-wrap {
    position: relative;
}
.nav-drop-menu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--header-bg);
    border: 1px solid #ffffff18;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px #0008;
    min-width: 150px;
    padding: .35rem 0;
    padding-top: .6rem;
    z-index: 150;
    /* delay only on hide — gives mouse time to reach the menu */
    transition: opacity .15s .2s, visibility .15s .2s;
}
.nav-drop-wrap:hover .nav-drop-menu,
.nav-drop-wrap:focus-within .nav-drop-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity .1s, visibility .1s;
}

/* Flyout (second level) */
.nav-fly-wrap {
    position: relative;
}
.nav-drop-divider {
    height: 1px;
    background: #ffffff18;
    margin: .35rem 0;
}

.nav-drop-top-link {
    font-size: .85rem;
    color: #ffffffdd !important;
}

.nav-fly-trigger {
    display: flex;
    align-items: center;
    padding: .5rem 1rem;
    color: #ffffffbb;
    font-size: .88rem;
    text-decoration: none;
    white-space: nowrap;
}
.nav-fly-trigger:hover { background: #ffffff14; color: #fff; }
span.nav-fly-trigger { cursor: default; }

.nav-fly-menu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    right: 100%;
    background: var(--header-bg);
    border: 1px solid #ffffff18;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px #0008;
    min-width: 140px;
    padding: .35rem 0;
    z-index: 151;
    /* delay only on hide */
    transition: opacity .15s .2s, visibility .15s .2s;
}
.nav-fly-wrap:hover .nav-fly-menu,
.nav-fly-wrap:focus-within .nav-fly-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity .1s, visibility .1s;
}
.nav-fly-menu a {
    display: block;
    padding: .45rem 1rem;
    color: #ffffffbb;
    font-size: .85rem;
    text-decoration: none;
    white-space: nowrap;
}
.nav-fly-menu a:hover { background: #ffffff14; color: #fff; }

.nav-club-link {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.nav-club-inline {
    display: inline-flex;
    align-items: center;
}

.nav-club-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    position: relative;
    top: 1px;
    margin-right: .35rem;
}

.nav-club-link .nav-club-logo {
    top: 4px;
}

.nav-drawer .nav-club-logo {
    top: 0;
}

.nav-fly-menu--wide {
    top: auto;
    bottom: 0;
    column-count: 2;
    min-width: 320px;
}
.nav-fly-menu--wide a { break-inside: avoid; }

/* Burger button — hidden on desktop */
.burger-btn {
    display: none;
    margin-left: auto;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
}
.burger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

/* Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #000a;
    z-index: 200;
    opacity: 0;
    transition: opacity .25s;
}
.nav-overlay.is-visible {
    display: block;
    opacity: 1;
}

/* Drawer */
.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 340px;
    background: var(--header-bg);
    z-index: 300;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.nav-drawer.is-open { transform: translateX(0); }

.drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 56px;
    border-bottom: 1px solid #ffffff18;
    flex-shrink: 0;
}
.drawer-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}
.drawer-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: .25rem .4rem;
    opacity: .7;
}
.drawer-close:hover { opacity: 1; }

.drawer-menu {
    list-style: none;
    padding: .5rem 0;
    flex: 1;
}
.drawer-menu > li { border-bottom: 1px solid #ffffff0f; }

.drawer-menu a,
.drawer-acc-btn {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: .85rem 1.25rem;
    color: #ffffffcc;
    font-size: .95rem;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    gap: .45rem;
}
.drawer-acc-btn {
    justify-content: space-between;
}
.drawer-menu a:hover,
.drawer-acc-btn:hover { color: #fff; background: #ffffff0f; }

.drawer-acc-icon {
    font-size: 1rem;
    opacity: .6;
    transition: transform .2s;
    flex-shrink: 0;
}
.drawer-acc-btn[aria-expanded="true"] .drawer-acc-icon {
    transform: rotate(90deg);
}

/* Sub-lists (Saisons + decades) */
.drawer-sub {
    list-style: none;
    background: #ffffff08;
}
.drawer-sub .drawer-acc-btn {
    padding-left: 2rem;
    font-size: .9rem;
}
.drawer-seasons a {
    padding-left: 3rem;
    font-size: .85rem;
    color: #ffffffaa;
}
.drawer-seasons a:hover { color: #fff; }

/* Mobile breakpoint */
@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .burger-btn  { display: flex; }
}

.user-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--header-bg);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: .45rem 1.5rem;
    font-size: .8rem;
    z-index: 100;
    box-shadow: 0 -1px 6px #0003;
}

.user-menu-wrap {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: #ffffffbb;
    background: none;
    border: 1px solid #ffffff40;
    border-radius: var(--radius);
    padding: .2rem .65rem;
    font-size: .8rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}

.user-menu-btn:hover { color: #fff; border-color: #fff; }

.user-menu-chevron { font-size: .65rem; opacity: .7; }

.user-menu-flyout {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    bottom: calc(100% + .4rem);
    right: 0;
    background: var(--header-bg);
    border: 1px solid #ffffff18;
    border-radius: var(--radius);
    box-shadow: 0 -4px 16px #0006;
    min-width: 120px;
    padding: .35rem 0;
    z-index: 150;
    transition: opacity .15s, visibility .15s;
}

.user-menu-wrap.is-open .user-menu-flyout {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.user-menu-item {
    display: block;
    padding: .5rem 1rem;
    color: #ffffffbb;
    font-size: .85rem;
    text-decoration: none;
    white-space: nowrap;
}

.user-menu-item:hover { background: #ffffff14; color: #fff; text-decoration: none; }

/* --- Main --- */

main {
    flex: 1;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* --- Hero --- */

.hero {
    text-align: center;
    padding: 4rem 1rem 1.5rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero h1 s {
    color: var(--red);
    text-decoration-color: var(--text);
    text-decoration-thickness: 3px;
}

.hero h1 .ohne { color: var(--green); }

.hero-text {
    max-width: 600px;
    margin: 0 auto .75rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- Season Grid --- */

.seasons { margin-top: 1rem; }

.seasons h2 {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .8rem;
    font-weight: 700;
}

.season-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .75rem;
}

.season-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem .75rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: .25rem;
    transition: border-color .15s, box-shadow .15s, transform .1s;
}

.season-card:hover {
    border-color: var(--green);
    box-shadow: 0 2px 12px var(--green-lite);
    transform: translateY(-2px);
    text-decoration: none;
}

.season-year { font-weight: 700; font-size: .95rem; }
.season-label { font-size: .75rem; color: var(--text-muted); }

.club-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: .75rem;
}

.club-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .9rem .5rem .75rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    transition: border-color .15s, box-shadow .15s, transform .1s;
}

.club-card:hover {
    border-color: var(--green);
    box-shadow: 0 2px 12px var(--green-lite);
    transform: translateY(-2px);
    text-decoration: none;
}

.club-card-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.club-card-logo--empty {
    display: block;
}

.club-card-name {
    font-size: .78rem;
    line-height: 1.3;
    color: var(--text-muted);
}

/* --- Page Header (Saison-Titel) --- */

.page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    flex: 1;
}

.page-header h1 s {
    color: var(--red);
    font-size: .85em;
}

.club-logo-box {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.club-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-seasons {
    display: flex;
    gap: .5rem;
}

.nav-seasons a {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .35rem .85rem;
    font-size: .85rem;
    color: var(--text);
    transition: border-color .15s;
}

.nav-seasons a:hover {
    border-color: var(--green);
    text-decoration: none;
}

/* --- Info Badge --- */

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--red-lite);
    border: 1px solid var(--red);
    border-radius: 999px;
    padding: .3rem .85rem;
    font-size: .8rem;
    color: var(--red);
    margin-bottom: 1.25rem;
}

.info-badge-note {
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}


/* next about standings? */
.team-logo-sm {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    vertical-align: middle;
}


.zwei-punkte-hinweis {
    margin-top: .75rem;
    font-size: .78rem;
    color: var(--text-muted);
    text-align: right;
}

.team-note {
    font-size: .78rem;
    color: var(--text-muted);
    margin: .5rem 0 1rem;
}


/* --- Generic Button --- */

.btn {
    display: inline-block;
    background: var(--green);
    color: #fff;
    padding: .6rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
}

.btn:hover { opacity: .9; text-decoration: none; }

/* --- Footer --- */

footer {
    border-top: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    font-size: .8rem;
    color: var(--text-muted);
}

.footer-inner a { color: var(--text-muted); text-decoration: underline; }

/* --- Impressum --- */

.impressum-box {
    max-width: 560px;
}

.impressum-box h2 {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin: 1.75rem 0 .6rem;
}

.impressum-box h2:first-child { margin-top: 0; }

.impressum-box address {
    font-style: normal;
    line-height: 1.8;
    color: var(--text);
}

.impressum-table { border-collapse: collapse; }

.impressum-table td {
    padding: .2rem 1.5rem .2rem 0;
    vertical-align: top;
}

.impressum-table td:first-child {
    color: var(--text-muted);
    white-space: nowrap;
}

.impressum-box p {
    color: var(--text-muted);
    font-size: .92rem;
}

/* --- Login page --- */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg);
}

.login-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--green);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 4px 24px #0001;
}

.login-logo {
    display: block;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: .3rem;
}

.login-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: .85rem;
    margin-bottom: 2rem;
}

.login-error {
    background: var(--red-lite);
    border: 1px solid var(--red);
    border-radius: var(--radius);
    color: var(--red);
    padding: .6rem .85rem;
    font-size: .85rem;
    margin-bottom: 1.25rem;
}

.login-box label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: .35rem;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: .6rem .75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .95rem;
    color: var(--text);
    background: var(--bg);
    margin-bottom: 1.1rem;
    outline: none;
    transition: border-color .15s;
    font-family: inherit;
}

.login-box input:focus { border-color: var(--green); }

.login-box button {
    width: 100%;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: .7rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .15s;
    margin-top: .25rem;
}

.login-box button:hover { opacity: .88; }

/* --- Info block --- */

.info-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    align-items: stretch;
}

@media (max-width: 640px) {
    .info-row { grid-template-columns: 1fr; }
}

.info-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    margin: 0;
}

.latest-season-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--green);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    text-align: center;
    min-width: 9rem;
    transition: border-color .15s, background .15s;
}

.latest-season-card:hover {
    background: #1a2a1a;
    border-color: var(--green);
    text-decoration: none;
}

.latest-season-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
}

.latest-season-year {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.latest-season-link {
    font-size: .8rem;
    color: var(--green);
    font-weight: 600;
}

.info-block-inner {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.info-block-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: .1rem;
}

.info-block h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .6rem;
}

.info-block p {
    color: var(--text-muted);
    font-size: .92rem;
    margin-bottom: .5rem;
    line-height: 1.65;
}

.info-block p:last-child { margin-bottom: 0; }
.info-block em { color: var(--text); font-style: italic; }

/* --- Champions block --- */

.champions-block { margin-bottom: 2.5rem; }

.champions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.champion-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.champion-gold   { border-top: 3px solid #d4af37; }
.champion-silver { border-top: 3px solid #a0a0a0; }

.champion-badge {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
}

.champion-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    line-height: 1.2;
}

.champion-name:hover { color: var(--green); text-decoration: none; }

.champion-count {
    font-size: 2rem;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: .4rem;
}

.champion-label {
    font-size: .85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.champion-text {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: .25rem;
}

/* --- Diversity Block --- */

.diversity-block {
    margin-bottom: 2.5rem;
}

.diversity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.diversity-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--text-muted);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.diversity-card--ohne {
    border-top-color: var(--green);
}

.diversity-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.diversity-card--ohne .diversity-number {
    color: var(--green);
}

.diversity-label {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.diversity-label span {
    font-weight: 400;
    color: var(--text-muted);
}

.diversity-text {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: .25rem;
}

.new-champions {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
}

/* Neue hypothetische Meister */
.new-champions:not(.vanished-champions):not(.streak-block) {
    border-top: 3px solid var(--green);
}

/* Frankfurt – thematisch rot */
.vanished-grid > div:first-child {
    border-left: 4px solid var(--red);
}

/* Weitere Meister – gold */
.vanished-grid > div:last-child {
    border-top: 3px solid #d4af37;
}

.new-champions-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: .75rem;
}

.new-champions-text {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: .25rem 0 .75rem;
}

.new-champions-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.new-champion-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: .3rem .85rem;
    font-size: .88rem;
    color: var(--text);
    text-decoration: none;
    transition: border-color .15s, color .15s;
}

.new-champion-pill:hover {
    border-color: var(--green);
    color: var(--green);
    text-decoration: none;
}

.new-champion-count {
    font-weight: 700;
    color: var(--green);
    font-size: .8rem;
}

.vanished-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

@media (max-width: 600px) {
    .vanished-grid { grid-template-columns: 1fr; }
}

.vanished-champions {
    margin-top: 0;
}

.vanished-emoji {
    font-size: 2.5rem;
    line-height: 1;
    margin: .25rem 0 .5rem;
}

.vanished-text p {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.vanished-link {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.vanished-link:hover {
    color: var(--green);
    text-decoration: none;
}

.streak-block {
    margin-top: 1.25rem;
    border-right: 4px solid var(--text-muted);
}

.streak-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: .75rem 0 1rem;
}

.streak-stat {
    display: flex;
    align-items: baseline;
    gap: .6rem;
}

.streak-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.streak-stat--ohne .streak-number {
    color: var(--green);
}

.streak-label {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

.streak-seasons {
    font-weight: 400;
    color: var(--text-muted);
    font-size: .82rem;
}

.streak-divider {
    font-size: 1.6rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .diversity-grid { grid-template-columns: 1fr; }
}

/* --- Page subtitle --- */

.page-subtitle {
    color: var(--text-muted);
    margin-top: -.75rem;
    margin-bottom: 1.5rem;
    font-size: .95rem;
}

.page-subtitle s { color: var(--red); }

/* --- Club list table extras --- */

.col-group-real  { background: #f0f7f0; }
.col-group-ohne  { background: #e8f4ee; }

.highlight-ohne { background: #f0faf3; }

/* --- Compare cards --- */

.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 .5rem;
}

.compare-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem 1.1rem;
}

.compare-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: .75rem;
}

.compare-values {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.cv-real, .cv-ohne {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.cv-num {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text);
}

.cv-goals { font-size: 1.25rem; }
.cv-gegen { color: var(--text-muted); }

.compare-values--goals-compact {
    flex-direction: column;
    align-items: stretch;
    gap: .4rem;
}
.compare-values--goals-compact .cv-real,
.compare-values--goals-compact .cv-ohne {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
}
.compare-values--goals-compact .cv-tag {
    margin-top: 0;
    font-size: .75rem;
    flex-shrink: 0;
    order: 0;
}
.compare-values--goals-compact .cv-goals {
    font-size: 1rem;
    font-weight: 700;
    order: 1;
}

.cv-tag {
    font-size: .7rem;
    color: var(--text-muted);
    margin-top: .2rem;
}

.cv-divider {
    font-size: .75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.cv-better .cv-num { color: var(--green); }

.cv-hint {
    font-weight: 400;
    font-size: .75rem;
    color: var(--text-muted);
    cursor: help;
}

/* --- Notable matches --- */

.notable-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.notable-title {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: .6rem;
}

/* --- Section title --- */

.section-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin: 2rem 0 .75rem;
}

/* --- History table extras --- */

.history-table .spielfrei {
    color: var(--text-muted);
    font-style: italic;
    font-size: .8rem;
}

.diff-better { color: var(--green); font-size: .75rem; margin-left: .2rem; }
.diff-worse  { color: var(--red);   font-size: .75rem; margin-left: .2rem; }

.pts-col { font-weight: 600; }

/* --- Back button --- */

.club-nav {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.btn-back {
    font-size: .85rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .3rem .75rem;
    text-decoration: none;
    white-space: nowrap;
}

.btn-back:hover { border-color: var(--green); color: var(--green); text-decoration: none; }

/* --- Abstieg-Seite --- */

.abstieg-section {
    margin: 2rem 0;
}

.abstieg-section--playoff {
    margin-top: 3rem;
}

.abstieg-intro-text {
    color: var(--text-muted);
    margin: .75rem 0 1.5rem;
    max-width: 70ch;
    line-height: 1.6;
}

.abstieg-none {
    color: var(--text-muted);
    font-style: italic;
}

.abstieg-swap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.abstieg-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.abstieg-card--victim {
    border-left: 4px solid var(--red);
}

.abstieg-card--saved {
    border-left: 4px solid var(--green);
}

.abstieg-card-season {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.abstieg-card-icon {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.abstieg-card--victim .abstieg-card-icon { color: var(--red); }
.abstieg-card--saved  .abstieg-card-icon { color: var(--green); }

.abstieg-card-team {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    line-height: 1.2;
}

.abstieg-card-team:hover { color: var(--green); }

.abstieg-card-positions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: .25rem 0;
}

.abstieg-pos {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.abstieg-pos-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
}

.abstieg-pos-rank {
    font-size: 1rem;
    font-weight: 600;
}

.abstieg-pos-arrow {
    font-size: 1.4rem;
    color: var(--text-muted);
}

.abstieg-card-text {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: .25rem;
}

/* Status badges */
.rel-badge {
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    padding: .15rem .45rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

.rel-badge--down {
    background: var(--red-lite);
    color: var(--red);
}

.rel-badge--play {
    background: #fef3cd;
    color: #7a5e00;
}

.rel-badge--safe {
    background: var(--green-lite);
    color: var(--green);
}

/* Context box */
.abstieg-context-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.abstieg-context-box h3 {
    font-size: .95rem;
    font-weight: 700;
}

.abstieg-context-box p {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Note box */
.abstieg-note {
    font-size: .8rem;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .6rem 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Playoff table */
.abstieg-table th { font-size: .75rem; white-space: nowrap; }
.abstieg-table td { font-size: .85rem; }

.abstieg-season-cell {
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-muted);
}

.abstieg-row--season-start td {
    border-top: 2px solid var(--border);
}

.abstieg-row--worse { background: #fff8f8; }
.abstieg-row--better { background: #f8fff8; }

/* --- Responsive --- */

@media (max-width: 600px) {
    .season-grid    { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
    .hero           { padding: 2rem .5rem 1.5rem; }
    .page-header    { flex-direction: column; align-items: flex-start; }
    .champions-grid { grid-template-columns: 1fr; }
    .info-block-inner { flex-direction: column; gap: .75rem; }
    .notable-grid   { grid-template-columns: 1fr; }
    .abstieg-swap-grid { grid-template-columns: 1fr; }
    .abstieg-table th:nth-child(3),
    .abstieg-table td:nth-child(3),
    .abstieg-table th:nth-child(5),
    .abstieg-table td:nth-child(5) { display: none; }
}

/* --- Inline tooltip (Sponsoring hint) --- */

.tip-wrap {
    position: relative;
    cursor: help;
    outline: none;
}

.tip-bubble {
    display: none;
    position: absolute;
    bottom: calc(100% + .4rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--header-bg);
    color: #ffffffdd;
    font-size: .82rem;
    line-height: 1.5;
    padding: .6rem .9rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px #0004;
    width: max-content;
    max-width: min(260px, 80vw);
    white-space: normal;
    z-index: 50;
    pointer-events: none;
}

.tip-wrap:hover .tip-bubble,
.tip-wrap.is-open .tip-bubble {
    display: block;
}

/* --- Inhaltsformular (Lob & Kritik) --- */

.content-form {
    max-width: 560px;
    margin-top: 1.5rem;
}

.form-field {
    margin-bottom: 1.25rem;
}

.form-field label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: .35rem;
}

.form-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: .85em;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
    width: 100%;
    padding: .6rem .75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .95rem;
    color: var(--text);
    background: var(--surface);
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus { border-color: var(--green); }

.form-notice {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .3rem .9rem;
    font-size: .85rem;
    margin-bottom: 1.25rem;
}

.form-notice--ok {
    background: var(--green-lite);
    border: 1px solid var(--green);
    color: var(--green);
}

.form-notice--err {
    background: var(--red-lite);
    border: 1px solid var(--red);
    color: var(--red);
}

/* ============================================================
   Tag der Entscheidung
   ============================================================ */

.ent-stats-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.ent-stat-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .85rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    flex: 1 1 160px;
}

.ent-stat-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    font-weight: 600;
}

.ent-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
}

.ent-stat-sub {
    font-size: .75rem;
    color: var(--text-muted);
}

/* Table */
.ent-table-wrap {
    overflow-x: auto;
}

.ent-table {
    min-width: 760px;
}

.ent-table .ent-header-group th {
    border-bottom: 1px solid var(--border);
    padding-bottom: .4rem;
}

.ent-col-group {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .5rem .75rem .25rem;
    text-align: center;
}

.ent-col-group--real {
    border-left: 2px solid var(--border);
}

.ent-col-group--ohne {
    border-left: 2px solid var(--green);
}

.ent-col-group--ohne s {
    color: var(--red);
}

.ent-header-sub th {
    font-size: .75rem;
    color: var(--text-muted);
    font-weight: 600;
    padding-top: .2rem;
}

.ent-season-col { width: 80px; }
.ent-delta-col  { width: 48px; text-align: center; }

.ent-season-cell {
    white-space: nowrap;
    font-weight: 600;
}

.ent-season-cell a {
    color: var(--text);
}

.ent-champion-cell {
    display: flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
}

.ent-champ-name {
    color: var(--text);
    font-size: .85rem;
}

.ent-champ-name:hover {
    text-decoration: underline;
}

.ent-decision-cell {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    font-size: .85rem;
}

.ent-gw-badge {
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.ent-rival-note {
    font-size: .75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.ent-rival-note--last {
    font-style: italic;
}

.ent-rival-note a {
    color: var(--text-muted);
}

.ent-rival-note a:hover {
    color: var(--green);
    text-decoration: underline;
}

/* Delta column */
.ent-delta {
    text-align: center;
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
}

.ent-delta--later {
    color: var(--green);
}

.ent-delta--earlier {
    color: var(--red);
}

.ent-delta--same {
    color: var(--text-muted);
}

/* Column group separators */
.ent-table td:nth-child(2),
.ent-table th:nth-child(2) {
    border-left: 2px solid var(--border);
}

.ent-table td:nth-child(4),
.ent-table th:nth-child(4) {
    border-left: 2px solid var(--green);
}

/* Legend */
.ent-legend {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    font-size: .78rem;
    color: var(--text-muted);
}

.ent-legend-item {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.ent-legend-item .ent-delta {
    font-size: .8rem;
    min-width: 24px;
}
