:root {
  --ajax:#0b4a87;
  --ajax-dark:#083d72;
  --ajax-blue:#1d5f9f;
  --text:#173a63;
  --line:#dbe5ef;
  --bg:#ffffff;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);font-family:Arial,Helvetica,sans-serif;color:var(--text)}
a{color:inherit;text-decoration:none}
.shell{display:flex;min-height:100vh}
.sidebar{
  width:200px;flex:0 0 200px;
  background:linear-gradient(180deg,var(--ajax-dark),var(--ajax));
  color:#fff;min-height:100vh;
  position:sticky;top:0;height:100vh;
  padding:18px 0 28px;
}
.brand{display:block;padding:0 24px 24px;text-align:left;font-weight:700;font-size:29px;line-height:1.02}
.brand small{display:block;font-weight:400;font-size:18px;line-height:1.25;margin-top:7px}
.nav a,.nav .item{display:flex;align-items:center;justify-content:space-between;padding:13px 24px;font-size:14px}
.nav .active{background:rgba(255,255,255,.16)}
.nav hr{border:0;border-top:1px solid rgba(255,255,255,.28);margin:10px 24px}
.nav .cta{font-weight:700}
.social{padding:6px 24px;font-size:13px}
.social .icons{font-size:24px;letter-spacing:12px;margin-top:10px}
.side-motto{position:absolute;left:24px;bottom:38px;font-size:18px;line-height:1.35;font-weight:700;opacity:.35}
.main{flex:1;min-width:0;background:#fff}
.hero-frame{width:100%;margin:0;padding:0;background:#fff;overflow:hidden}
.hero{width:100%;height:auto;display:block;margin:0}
.content{max-width:1180px;margin:0 auto;padding:40px 44px 46px}
.kicker{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:#5f7fa2;margin-bottom:8px}
h1{margin:0;color:#123f73;font-size:34px;line-height:1.18}
.rule{width:72px;height:3px;background:var(--ajax);margin:12px 0 22px}
.lead{font-size:19px;line-height:1.55;margin:0 0 18px;max-width:1000px}
.copy{font-size:16px;line-height:1.7;max-width:1050px}
.copy p{margin:0 0 14px}
.motto{font-size:23px;font-weight:800;color:var(--ajax);letter-spacing:.08em;text-transform:uppercase;margin:28px 0 7px}
.welcome{font-size:18px;font-weight:700;margin-bottom:30px}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.tile{border:1px solid var(--line);border-radius:8px;padding:22px;background:#fff;box-shadow:0 3px 12px rgba(0,0,0,.05)}
.tile h3{margin:0 0 8px;font-size:20px;color:#123f73}
.tile p{margin:0 0 18px;font-size:14px;line-height:1.5}
.btn{display:inline-block;background:var(--ajax);color:#fff;padding:11px 16px;border-radius:5px;font-size:14px;font-weight:700}
.footer{display:grid;grid-template-columns:1.1fr .8fr 1.1fr;gap:34px;padding:28px 44px;background:#f6f8fb;border-top:1px solid var(--line);font-size:13px}
.footer strong{display:block;margin-bottom:6px}
.mobilebar{display:none}
@media(max-width:820px){
  .shell{display:block}
  .sidebar{display:none}
  .mobilebar{display:flex;justify-content:space-between;align-items:center;background:var(--ajax-dark);color:#fff;padding:14px 18px}
  .mobilebar .mbrand{font-weight:700;font-size:20px;line-height:1}
  .mobilebar small{display:block;font-weight:400;font-size:11px;margin-top:4px}
  .mobilebar .burger{font-size:28px}
  .hero-frame{height:auto}
  .hero{width:100%;height:auto;display:block}
  .content{padding:28px 18px 34px}
  h1{font-size:28px}
  .lead{font-size:17px}
  .tiles{grid-template-columns:1fr}
  .footer{grid-template-columns:1fr;padding:24px 18px}
}


/* v39 – Spiele & Ergebnisse aus nuLiga */
.match-center{max-width:1180px;margin:0 auto;padding:58px 36px 16px;box-sizing:border-box}
.match-center__head{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;margin-bottom:22px}
.match-center__head h2{margin:4px 0 6px;font-size:clamp(28px,3vw,42px);line-height:1.08}
.match-center__head p{margin:0;color:#607083}
.match-center__nuliga{flex:0 0 auto;font-weight:700;text-decoration:none;color:#073b6e;border-bottom:2px solid #68b9e8;padding-bottom:3px}
.match-center__status{padding:18px 0;color:#607083}
.match-center__status.is-error{padding:18px;border:1px solid #d9e2ea;border-radius:14px;background:#f7f9fb}
.match-center__grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}
.match-panel{border:1px solid #dbe4ec;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 8px 28px rgba(6,43,75,.06)}
.match-panel__title-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px 16px;border-bottom:1px solid #e5ebf0}
.match-panel__title-row h3{margin:0;font-size:21px;color:#073b6e}
.match-panel__badge{font-size:11px;letter-spacing:.12em;font-weight:800;color:#347ca8;background:#eaf6fc;border-radius:999px;padding:6px 9px}
.match-list{display:flex;flex-direction:column}
.match-card{display:grid;grid-template-columns:78px minmax(0,1fr) auto;gap:14px;align-items:center;padding:17px 22px;border-bottom:1px solid #edf1f4}
.match-card:last-child{border-bottom:0}
.match-card__date{font-size:12px;font-weight:800;line-height:1.3;color:#607083;text-transform:uppercase}
.match-card__date strong{display:block;color:#073b6e;font-size:16px;margin-top:2px}
.match-card__body{min-width:0}
.match-card__league{font-size:11px;font-weight:800;letter-spacing:.06em;color:#6e7d8a;text-transform:uppercase;margin-bottom:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.match-card__teams{display:grid;gap:3px;font-size:14px;line-height:1.28}
.match-card__team{overflow-wrap:anywhere}
.match-card__team.ajax{font-weight:800;color:#073b6e}
.match-card__score{min-width:58px;text-align:right;font-size:20px;font-weight:900;color:#073b6e;white-space:nowrap}
.match-card__time{min-width:58px;text-align:right;font-size:16px;font-weight:800;color:#073b6e;white-space:nowrap}
.match-empty{padding:24px 22px;color:#607083}
@media(max-width:900px){.match-center__head{align-items:flex-start;flex-direction:column;gap:12px}}
@media(max-width:820px){.match-center__grid{grid-template-columns:1fr}}
@media(max-width:600px){.match-center{padding:42px 16px 8px}.match-card{grid-template-columns:66px minmax(0,1fr) auto;gap:10px;padding:15px 16px}.match-panel__title-row{padding:18px 16px}.match-card__date strong{font-size:15px}.match-card__score{font-size:18px;min-width:52px}.match-card__time{font-size:15px;min-width:52px}}

.match-center--single .match-center__grid{grid-template-columns:minmax(0,1fr)}
.match-center--single .match-panel{max-width:900px;width:100%;margin-inline:auto}


/* v50 – beteiligte AJAX-Mannschaft in den Spielkarten klar hervorheben */
.match-card__focus{
  display:flex;
  align-items:center;
  gap:.55rem;
  margin:.45rem 0 .6rem;
  padding:.45rem .6rem;
  border:1px solid rgba(15,79,138,.22);
  border-radius:.65rem;
  background:rgba(15,79,138,.08);
}
.match-card__focus span{
  flex:0 0 auto;
  padding:.18rem .38rem;
  border-radius:.3rem;
  background:#0f4f8a;
  color:#fff;
  font-size:.67rem;
  font-weight:800;
  letter-spacing:.08em;
}
.match-card__focus strong{
  color:#0f4f8a;
  font-size:1rem;
  line-height:1.2;
}
.match-card__team{
  display:flex;
  align-items:baseline;
  gap:.45rem;
}
.match-card__team small{
  min-width:2.6rem;
  font-size:.66rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  opacity:.55;
}
.match-card__team.ajax{
  color:#0f4f8a;
  font-weight:800;
}
.match-card__team.ajax::before{
  content:"●";
  font-size:.65em;
  line-height:1;
}


/* v51 – konkrete Jugend-/Erwachsenenmannschaft als Hauptinformation */
.match-card__focus strong{
  font-size:1.2rem;
  font-weight:900;
}
.match-card__focus span{
  font-size:.61rem;
  letter-spacing:.09em;
}


/* v52 – Mannschaft und Liga in der Überschrift; Heimteam immer zuerst */
.match-card__headline{
  margin:0 0 .62rem;
  font-size:1rem;
  line-height:1.25;
  color:#0f4f8a;
}
.match-card__headline strong{
  font-size:1.08rem;
  font-weight:800;
}
.match-card__teams{
  gap:.28rem;
}
.match-card__team{
  font-weight:500;
  color:inherit;
}


/* v53 – AJAX-Heimspiele deutlich hervorheben */
.match-card--home{
  position:relative;
  border:2px solid #0f4f8a;
  background:rgba(15,79,138,.055);
}
.match-card__home-badge{
  position:absolute;
  top:.55rem;
  right:.6rem;
  padding:.22rem .48rem;
  border-radius:.35rem;
  background:#0f4f8a;
  color:#fff;
  font-size:.64rem;
  line-height:1;
  font-weight:800;
  letter-spacing:.08em;
}
.match-card--home .match-card__headline{
  padding-right:4.8rem;
}


/* v54 – einheitliche Kartenränder im Spielbereich */
.match-card{
  border:1px solid rgba(15,79,138,.18);
  border-radius:.8rem;
  box-sizing:border-box;
}
.match-card--home{
  border:1px solid #0f4f8a;
  border-radius:.8rem;
  box-shadow:inset 4px 0 0 #0f4f8a;
  background:rgba(15,79,138,.055);
}
.match-card__home-badge{
  border-radius:.35rem;
}


/* v55 – gleich hohe Spielkarten unabhängig von Mannschaftsname und Liga */
.match-card{
  min-height:132px;
  align-items:center;
}
.match-card__body{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:92px;
}
.match-card__headline{
  min-height:2.6em;
  display:flex;
  align-items:flex-start;
  margin-bottom:.5rem;
}
.match-card__teams{
  min-height:2.7em;
  display:grid;
  grid-template-rows:1fr 1fr;
  align-content:center;
}
.match-card__team{
  line-height:1.25;
}
.match-card__league,
.match-card__headline{
  overflow-wrap:anywhere;
}
@media (max-width:700px){
  .match-card{
    min-height:126px;
  }
  .match-card__body{
    min-height:88px;
  }
}

/* v128: Mannschaften in jeder Spielkarte nebeneinander statt untereinander */
.match-card__teams{display:flex!important;flex-flow:row nowrap!important;align-items:center;gap:8px!important;min-width:0}
.match-card__team{flex:1 1 0;min-width:0;overflow-wrap:break-word;hyphens:auto}
.match-card__team+.match-card__team:before{content:'–';font-weight:500;color:#7a8da1;margin-right:8px}
.match-center__live-link{display:inline-flex;align-items:center;margin-left:12px}
@media(max-width:600px){.match-card__teams{font-size:12px!important;gap:5px!important}.match-card__team+.match-card__team:before{margin-right:5px}.match-center__live-link{margin-left:0}}

/* v143: Three explicit calendar-week choices, shared by both match panels. */
.match-period-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 18px}
.match-period-tabs button{appearance:none;border:1px solid #b8cde1;border-radius:10px;background:#fff;color:#103d69;font:inherit;font-weight:700;font-size:clamp(13px,1.1vw,16px);padding:11px 16px;cursor:pointer;transition:background-color .18s,border-color .18s,color .18s}
.match-period-tabs button:hover{background:#eaf3fc;border-color:#5688b5}
.match-period-tabs button.is-active{background:#0a477e;border-color:#0a477e;color:#fff}
.match-period-tabs button:focus-visible{outline:3px solid #f5b841;outline-offset:3px}
@media(max-width:560px){.match-period-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.match-period-tabs button{font-size:12px;padding:10px 4px;line-height:1.25}}
@media(prefers-reduced-motion:reduce){.match-period-tabs button{transition:none}}
