/* WM2026 overrides — loaded AFTER style_tippen.css. Fixes the new auth/front
   pages without altering the reused europa2021 tippen/highscore styling. */

/* ---- readable, consistent form fields (register / login) ---- */
.content-full input[type="text"],
.content-full input[type="email"],
.content-full input[type="password"] {
    -webkit-appearance: none;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 320px;
    margin: 4px auto 4px auto;
    padding: 11px 14px;
    line-height: 1.4;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: normal;
    text-align: center;
    color: #1d2733;                 /* dark text … */
    background-color: #ffffff;      /* … on white = readable */
    border: none;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
/* base stylesheet jumps line-height to 80px on focus — keep it stable here */
.content-full input[type="text"]:focus,
.content-full input[type="email"]:focus,
.content-full input[type="password"]:focus {
    line-height: 1.4;
    outline: 2px solid #5cc5f0;
}

.content-full label {
    display: block;
    margin: 12px 0 0 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,.45);
}
.content-full h1 { color: #ffffff; font-weight: 300; margin: 0 0 8px 0; }
/* keep the centered form from sitting too low under the fixed header */
.content-full { margin-top: 100px; }
.content-full p  { color: #eaf2fb; }
.content-full a  { color: #bfe6ff; }

/* submit buttons: side-by-side, not full-width-stacked overlapping */
.content-full .login {
    display: inline-block;
    width: auto;
    min-width: 220px;
    padding: 0 26px;
    margin: 18px 8px 0 8px;
}

/* ---- tippen list: long team names must expand the card, not get clipped ---- */
.table .eventbox {            /* base sets a fixed 88px height -> 2-line names overflowed */
    height: auto;
    min-height: 88px;
    overflow: hidden;         /* contain the floated children so the white card grows */
    background-size: 100% 100% !important;   /* stretch events-bg.gif to full card height (no white strip) */
}
.table .row_bezeichnung {
    height: auto;
    min-height: 88px;
    padding-bottom: 10px;
}
.table .row_name {
    font-size: 18px;
    line-height: 1.2;
    overflow-wrap: break-word;
}

/* group letter badges J–L (theme only shipped colours for A–I) + neutral K.O. badge */
.table .row_icon.gruppej,
.table .row_icon.gruppek,
.table .row_icon.gruppel,
.table .row_icon.ko-badge {
    margin: 10px;
    height: 68px;
    line-height: 68px;
    text-align: center;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
}
.table .row_icon.gruppej,
.table .row_icon.gruppek,
.table .row_icon.gruppel { font-size: 26px; }
.table .row_icon.gruppej { background-color: #2e9e8f; }
.table .row_icon.gruppek { background-color: #8d6fd1; }
.table .row_icon.gruppel { background-color: #d96aa6; }
.table .row_icon.ko-badge { background-color: #35414e; }
.table .row_icon.ko-badge span { font-size: 15px; font-weight: 700; }

/* ---- top white header bar: dark, visible links (were white-on-white) ---- */
.header_name { color: #35414e; font-weight: 600; }
.header .topnav { float: right; padding-right: 16px; font-size: 14px; }
.header .topnav a {
    color: #35414e;
    margin-left: 16px;
    text-decoration: none;
    font-weight: 600;
}
.header .topnav a:hover { color: #f65c62; }

/* ======================= Highscore views ======================= */

/* sub-navigation (fixed under the 70px header) */
.subnav {
    position: fixed; top: 70px; left: 0; width: 100%; height: 54px; z-index: 9;
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px;
    background: #35414e; box-shadow: 0 2px 4px rgba(0,0,0,.25);
}
.subnav a {
    color: #cdd9e5; text-decoration: none; font-size: 16px; font-weight: 700;
    padding: 9px 24px; border-radius: 9px; border: 1px solid rgba(255,255,255,.18);
    transition: background .15s, color .15s, border-color .15s;
}
.subnav a:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.subnav a.cur { background: #1f6fb2; color: #fff; border-color: #1f6fb2; box-shadow: 0 1px 5px rgba(0,0,0,.3); }

/* ---- match calendar (tippen.php ?ansicht=kalender) ------------------- */
.calwrap { display: block; }
.cal-empty { background: #fff; border-radius: 10px; padding: 18px; color: #445; }
.cal-month { margin-bottom: 22px; }
.cal-mhead { color: #fff; font-weight: 300; font-size: 24px; margin: 0 0 8px 2px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd {
    text-align: center; color: #cdd9e5; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px; padding: 2px 0;
}
.cal-cell {
    background: rgba(255,255,255,.06); border-radius: 7px; min-height: 78px;
    padding: 4px; display: flex; flex-direction: column; gap: 3px;
}
.cal-cell.empty { background: transparent; }
.cal-cell.has { background: rgba(255,255,255,.12); }
.cal-dnum { color: #9fb3c8; font-size: 12px; font-weight: 700; line-height: 1; margin-bottom: 1px; }

/* one time-group per kickoff time; games inside stack (or wrap) and the
   cell grows with them instead of overlapping */
.cal-slot { display: flex; flex-direction: column; gap: 2px; }
.cal-slot + .cal-slot { margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.10); }
.cal-slot-games { display: flex; flex-direction: column; gap: 2px; }

.cal-mform { margin: 0; }
.cal-match {
    width: 100%; display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
    font-family: 'Open Sans', sans-serif; font-size: 11px; line-height: 1.2;
    text-align: left; border: none; border-radius: 5px; padding: 4px 5px; cursor: default;
    color: #fff; background: #46566a;
}
button.cal-match { cursor: pointer; transition: background .15s, transform .05s; }
button.cal-match.bereit { background: #1f6fb2; }
button.cal-match.bereit:hover { background: #2a86d6; }
button.cal-match.bereit:active { transform: scale(.98); }
button.cal-match.getippt { background: #159a4a; }
button.cal-match.getippt:hover { background: #1bb858; }
.cal-match.vorbei { background: #3a4654; color: #aebccb; opacity: .85; }
.cal-time {
    font-weight: 700; font-size: 10px; color: #fff;
    letter-spacing: .3px; line-height: 1.1;
}
.cal-teams { font-weight: 700; }
.cal-tip, .cal-res {
    margin-left: auto; background: rgba(0,0,0,.28); border-radius: 4px;
    padding: 1px 5px; font-weight: 700; font-size: 10px;
}

@media (max-width: 640px) {
    .cal-grid { gap: 2px; }
    .cal-cell { min-height: 60px; padding: 3px; border-radius: 5px; }
    .cal-match { font-size: 10px; padding: 3px 4px; gap: 3px; }
    .cal-wd { font-size: 10px; }
    .cal-mhead { font-size: 20px; }
}

.hswrap { display: block; }
.hshead { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.hshead h1 { color: #fff; font-weight: 300; margin: 0; font-size: 30px; }
.hsmeta { color: #dce7f2; font-size: 13px; }
.hsempty { background: #fff; border-radius: 10px; padding: 18px; color: #445; }

/* player of the matchday */
.motd { display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
    background: linear-gradient(90deg,#1f6fb2,#159a4a); color: #fff;
    border-radius: 10px; padding: 12px 16px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.motd-label { font-weight: 600; opacity: .95; }
.motd-name { font-size: 18px; font-weight: 800; }
.motd-pts { margin-left: auto; font-weight: 700; white-space: nowrap; }

/* chart box + tabs */
.chartbox { background: #fff; border-radius: 10px; padding: 10px 12px 14px; box-shadow: 0 1px 3px rgba(0,0,0,.15); margin-bottom: 16px; }
.charttabs { display: flex; gap: 8px; margin-bottom: 8px; }
.ctab { background: #eef2f6; color: #33445a; border: none; border-radius: 6px; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.ctab.active { background: #1f6fb2; color: #fff; }
.chartcanvas { width: 100%; }

/* leaderboard table */
table.hs { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
table.hs th { background: #f4f6f9; color: #5a6b7f; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; padding: 9px 8px; text-align: left; }
table.hs th.c, table.hs td.c { text-align: center; }
table.hs td { padding: 9px 8px; border-top: 1px solid #eef1f5; vertical-align: middle; }
tr.hsrow { cursor: pointer; }
tr.hsrow:hover td { background: #f6f9fc; }
tr.hsrow.open td { background: #eef5fb; }
td.rk { font-weight: 700; color: #5a6b7f; width: 30px; }
td.nm { font-weight: 600; }
td.pts { font-weight: 800; color: #1f6fb2; }
.muted, td.muted { color: #8a97a5; }
tr.rank1 td.rk { color: #caa100; } tr.rank2 td.rk { color: #8a929b; } tr.rank3 td.rk { color: #b5752e; }
tr.rank1 .nm::before { content: "🥇 "; } tr.rank2 .nm::before { content: "🥈 "; } tr.rank3 .nm::before { content: "🥉 "; }
td.delta { width: 44px; font-size: 12px; font-weight: 700; }
.d-up { color: #2e9e4f; } .d-down { color: #d9534f; } .d-same { color: #b6c0ca; }
.form-c .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin: 0 1px; }

/* expandable player detail */
tr.hsdetail td { background: #f8fafc; padding: 14px; }
.statgrid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.statgrid > div { background: #fff; border: 1px solid #e6ebf0; border-radius: 8px; padding: 8px 12px; min-width: 110px; text-align: center; flex: 1 1 auto; }
.sg-v { display: block; font-size: 18px; font-weight: 800; color: #1f2d3d; }
.sg-l { display: block; font-size: 11px; color: #7a8896; text-transform: uppercase; letter-spacing: .02em; }
.ptips { display: flex; flex-direction: column; gap: 4px; }
.ptip { display: flex; gap: 8px; align-items: center; font-size: 13px; background: #fff; border: 1px solid #eef1f5; border-radius: 6px; padding: 5px 8px; }
.ptip-bez { width: 120px; color: #7a8896; }
.ptip-match { flex: 1; }
.ptip-res { color: #159a4a; font-weight: 600; }
.ptip-pts { width: 42px; text-align: right; font-weight: 800; }

/* spieltage */
.dayhead { display: flex; align-items: center; gap: 12px; margin: 18px 0 10px; }
.dayhead-date { color: #fff; font-weight: 700; font-size: 16px; }
.dayhead-best { color: #ffe08a; font-weight: 600; font-size: 13px; }
.sptag { background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.15); margin-bottom: 12px; overflow: hidden; }
.sptag-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f4f6f9; border-bottom: 1px solid #e9edf1; }
.sptag-bez { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: #7a8896; background: #e7edf3; padding: 2px 8px; border-radius: 10px; }
.sptag-match { font-size: 15px; } .sptag-match b { color: #1f6fb2; }
.sptag-time { margin-left: auto; color: #9aa6b2; font-size: 13px; }
.sptag-tips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
.sptag-empty { padding: 12px 14px; color: #8a97a5; }
.tcell { display: flex; align-items: center; gap: 8px; background: #f7f9fb; border: 1px solid #eef1f5; border-radius: 8px; padding: 5px 8px 5px 10px; }
.tcell.top { border-color: #e6b800; box-shadow: 0 0 0 1px #e6b800 inset; }
.tc-name { font-weight: 600; font-size: 13px; }
.tc-tip { color: #5a6b7f; font-size: 13px; }
.tc-pts { color: #fff; font-weight: 700; font-size: 12px; border-radius: 10px; padding: 1px 8px; }

/* vergleich */
.cmpform { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border-radius: 10px; padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.15); margin-bottom: 14px; }
.cmpform select { font: inherit; padding: 8px 10px; border: 1px solid #cdd6e0; border-radius: 6px; }
.cmp-vs { font-weight: 700; color: #7a8896; }
.duel { display: flex; align-items: center; background: linear-gradient(90deg,#1f6fb2,#159a4a); color: #fff; border-radius: 10px; padding: 16px; margin-bottom: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.duel-side { flex: 1; text-align: center; }
.duel-name { font-size: 18px; font-weight: 800; }
.duel-score { font-size: 26px; font-weight: 800; padding: 0 18px; white-space: nowrap; }
.duel-score small { font-size: 13px; font-weight: 600; opacity: .85; }
.duel-hint { color: #dce7f2; font-size: 12px; margin: 0 0 14px; }
table.cmptot, table.cmpgames { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.15); margin-bottom: 16px; }
table.cmptot th, table.cmpgames th { background: #f4f6f9; color: #5a6b7f; font-size: 12px; padding: 9px; }
table.cmptot td { padding: 9px 12px; border-top: 1px solid #eef1f5; text-align: center; width: 38%; }
table.cmptot td.cmp-lbl { width: 24%; color: #7a8896; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
td.win { background: #e9f7ee; font-weight: 800; color: #1c7c3a; }
td.lose { color: #9aa6b2; }
table.cmpgames td { padding: 9px 12px; border-top: 1px solid #eef1f5; text-align: center; }
.cg-match { text-align: left !important; }
.cg-bez { display: block; font-size: 11px; color: #7a8896; text-transform: uppercase; }
.cg-mid { color: #b6c0ca; width: 18px; }
.cg-pts { font-size: 12px; }

@media (max-width: 640px) {
    .ptip-bez { display: none; }
    table.hs th.form-h, table.hs td.form-c { display: none; }
    .hshead h1 { font-size: 24px; }
}
