:root{ --vhf-blue:#273583; --vhf-bg:#f4f6fb; }

/* Wrapper + sektioner */
.vhf-kampe-wrap{ display:grid; gap:28px; }
.vhf-kampe-section{ background:#fff; border-radius:10px; box-shadow:0 6px 16px rgba(0,0,0,.06); overflow:hidden; }
.vhf-kampe-h{ margin:0; padding:16px 18px; background:var(--vhf-blue); color:#fff; font-weight:900; text-transform:uppercase; letter-spacing:.5px; }

/* Rækker */
.vhf-kamp-row{
  display:grid;
  grid-template-columns: 1.3fr 1fr 120px 1fr; /* dato | hjemme | score | ude */
  align-items:center;
  gap:8px;
  padding:16px 18px;
  background:#fff;
  border-bottom:1px solid #eef1f7;
}
.vhf-kamp-row:nth-child(odd){ background:#fafbff; }

/* Dato/tid */
.vhf-kamp-when{ font-weight:700; color:#2a2f3a; }

/* Hold + logoer */
.vhf-kamp-side{ display:flex; align-items:center; gap:8px; }
.vhf-kamp-side.vhf-left{  justify-content:flex-end; }   /* hjemmelogo/navn ind mod score */
.vhf-kamp-side.vhf-right{ justify-content:flex-start; } /* udelogo/navn ind mod score */

.vhf-team{ font-weight:900; color:#27324b; font-size:18px; text-transform:uppercase; }
/* Udeholdets navn venstre-justeret */
.vhf-kamp-side.vhf-right .vhf-team{ text-align:left; }

/* Logo-størrelse + stabil placering */
.vhf-logo{
  width:64px;
  height:64px;
  object-fit:contain;
  flex:0 0 64px; /* fast bredde = ens placering linje for linje */
}

/* Score */
.vhf-kamp-score{
  min-width:120px; /* rolig centrering */
  font-size:22px; font-weight:900; color:#27324b;
  display:flex; gap:10px; align-items:center; justify-content:center;
}
.vhf-kamp-score span{ opacity:.75; }

/* U11: "RESULTAT OK" badge */
.vhf-kamp-score.ok{
  background:#e9eef9;
  color:#273583;
  border-radius:24px;
  padding:6px 12px;
  font-weight:900;
  letter-spacing:.4px;
}
.vhf-kamp-score.ok .vhf-ok-dot{
  display:inline-block;
  width:10px; height:10px;
  margin-right:8px;
  border-radius:999px;
  background:#273583;
  vertical-align:middle;
}

/* Responsiv tilpasning */
@media (max-width:900px){
  .vhf-kamp-row{ grid-template-columns: 1fr 1fr 100px 1fr; row-gap:10px; }
  .vhf-kamp-when{ grid-column: 1 / -1; }
  .vhf-logo{ width:52px; height:52px; flex-basis:52px; }
  .vhf-team{ font-size:16px; }
}
/* ---------- Mobil-optimering af kampvisning ---------- */
@media screen and (max-width: 640px) {

  /* Hele kampområdet */
  .vhf-kampe-wrap {
    width: 100%;
    max-width: 100%;
    display: grid;
    gap: 20px;
    overflow: hidden;
  }

  .vhf-kampe-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Blå overskrift */
  .vhf-kampe-h {
    margin: 0;
    padding: 12px 14px;
    font-size: 20px;
    line-height: 1.15;
  }

  /* ------------------------------
     EN ENKELT KAMP
     ------------------------------ */

  .vhf-kamp-row {
    display: grid !important;

    grid-template-areas:
      "when when when"
      "home score away";

    grid-template-columns:
      minmax(0, 1fr)
      70px
      minmax(0, 1fr);

    align-items: center;

    width: calc(100% - 20px);
    max-width: calc(100% - 20px);

    margin: 10px;
    padding: 14px 10px;

    gap: 12px 6px;

    box-sizing: border-box;

    border: 1px solid #e6e9f2;
    border-radius: 12px;

    background: #fff !important;

    overflow: hidden;
  }

  /* ------------------------------
     DATO / RÆKKE / SPILLESTED
     ------------------------------ */

  .vhf-kamp-when {
    grid-area: when;

    width: 100%;
    min-width: 0;

    text-align: center;

    font-size: 14px;
    line-height: 1.3;

    color: #2a2f3a;
  }

  .vhf-kamp-datetime {
    font-weight: 700;
  }

  .vhf-kamp-raekke {
    margin-top: 4px;

    font-size: 13px;
    font-weight: 600;

    opacity: .75;
  }

  .vhf-kamp-sted {
    margin-top: 2px;

    font-size: 12px;
    font-weight: 400;

    opacity: .65;
  }

  /* ------------------------------
     HOLD
     ------------------------------ */

  .vhf-kamp-side {
    width: 100%;
    min-width: 0;

    display: flex !important;
    align-items: center;
    justify-content: center !important;

    overflow: hidden;
  }

  .vhf-kamp-side.vhf-left {
    grid-area: home;
  }

  .vhf-kamp-side.vhf-right {
    grid-area: away;
  }

  /* SKJUL HOLDNAVNE PÅ MOBIL */
  .vhf-kamp-side .vhf-team {
    display: none !important;
  }

  /* ------------------------------
     LOGOER
     ------------------------------ */

  .vhf-kamp-side .vhf-logo {
    display: block;

    width: 55px !important;
    height: 55px !important;

    max-width: 55px !important;

    flex: 0 0 55px !important;

    object-fit: contain;
  }

  /* ------------------------------
     SCORE
     ------------------------------ */

  .vhf-kamp-score {
    grid-area: score;

    width: 70px;
    min-width: 0;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    font-size: 20px;
    font-weight: 900;

    white-space: nowrap;

    color: #27324b;
  }

  /* Kamp uden resultat */
  .vhf-kamp-score span {
    opacity: .75;
  }

  /* ------------------------------
     U11 – RESULTAT OK
     ------------------------------ */

  .vhf-kamp-score.ok {
    width: auto;
    min-width: 0;

    padding: 5px 7px;

    border-radius: 14px;

    font-size: 10px;
    line-height: 1.1;

    text-align: center;
    white-space: normal;
  }

  .vhf-kamp-score.ok .vhf-ok-dot {
    display: none;
  }
}