/* v131 – Wappen-Vorschau bei der Mannschaftsauswahl im Spielplan */
.game-team-select-preview{display:none;align-items:center;gap:10px;margin-top:2px;padding:9px 11px;border:1px solid var(--line);border-radius:11px;background:#fff;min-height:42px;color:var(--text)}
.game-team-select-preview.visible{display:flex}
.game-team-select-preview img,.game-team-select-fallback{width:34px;height:34px;flex:0 0 34px;object-fit:contain}
.game-team-select-fallback{display:grid;place-items:center;border-radius:50%;background:#f2eeee;color:var(--red);font-size:10px;font-weight:950}
.game-team-select-preview strong{font-size:12px;line-height:1.2;overflow:hidden;text-overflow:ellipsis}


/* v136 – Vereinswappen im Vergabeformular */
.allocation-team-preview{display:flex;align-items:center;justify-content:center;min-height:72px;margin-top:8px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fff}
.allocation-team-preview .game-popup-team-crest{width:54px;height:54px;flex:0 0 54px}
.allocation-team-preview .game-popup-team-crest img{width:100%;height:100%;object-fit:contain}
.allocation-team-preview .game-popup-team-crest-fallback{width:50px;height:50px;font-size:11px}

/* v137 – Mannschaftswappen in der Tauschbörse */
.exchange-team-preview{display:flex;align-items:center;justify-content:center;min-height:72px;margin-top:8px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fff}
.exchange-team-preview .game-popup-team-crest{width:54px;height:54px;flex:0 0 54px}
.exchange-team-preview .game-popup-team-crest img{width:100%;height:100%;object-fit:contain}
.exchange-team-preview .game-popup-team-crest-fallback{width:50px;height:50px;font-size:11px}
.exchange-card-matchup{display:flex;align-items:center;gap:12px;margin:5px 0 10px}
.exchange-card-matchup h3{margin:0;flex:1}
.exchange-card-team{display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.exchange-card-team .game-popup-team-crest{width:42px;height:42px;flex:0 0 42px}
.exchange-card-team .game-popup-team-crest img{width:100%;height:100%;object-fit:contain}
.exchange-card-team .game-popup-team-crest-fallback{width:38px;height:38px;font-size:9px}


/* v138 – Vereinswappen portalweit bei Mannschaftsanzeigen */
.team-with-crest{display:inline-flex;align-items:center;gap:8px;vertical-align:middle;min-width:0}
.team-with-crest .game-popup-team-crest{width:30px;height:30px;min-width:30px;border-radius:8px;padding:3px;background:#fff;border:1px solid rgba(23,28,34,.09);box-shadow:0 2px 7px rgba(23,28,34,.08)}
.team-with-crest .game-popup-team-crest img{width:100%;height:100%;object-fit:contain}
.team-with-crest .game-popup-team-crest-fallback{font-size:9px}
.matchup-with-crests{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap}
.matchup-separator{opacity:.55;font-weight:900}
.ticket-offer h3 .matchup-with-crests,.saved-allocation-main>strong .matchup-with-crests{margin-top:4px}
@media(max-width:640px){.matchup-with-crests{gap:7px}.team-with-crest{gap:5px}.team-with-crest .game-popup-team-crest{width:25px;height:25px;min-width:25px}}

/* v140 – Vereinswappen überall proportional zur Mannschaftsschrift */
.team-with-crest .game-popup-team-crest,
.game-popup-team .game-popup-team-crest,
.game-team-select-preview .game-popup-team-crest,
.allocation-team-preview .game-popup-team-crest,
.exchange-team-preview .game-popup-team-crest,
.exchange-card-team .game-popup-team-crest{
  width:1em;
  height:1em;
  min-width:1em;
  flex:0 0 1em;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.team-with-crest .game-popup-team-crest img,
.game-popup-team .game-popup-team-crest img,
.game-team-select-preview .game-popup-team-crest img,
.allocation-team-preview .game-popup-team-crest img,
.exchange-team-preview .game-popup-team-crest img,
.exchange-card-team .game-popup-team-crest img{
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  filter:none;
}
.team-with-crest .game-popup-team-crest-fallback,
.game-popup-team .game-popup-team-crest-fallback,
.game-team-select-preview .game-popup-team-crest-fallback,
.allocation-team-preview .game-popup-team-crest-fallback,
.exchange-team-preview .game-popup-team-crest-fallback,
.exchange-card-team .game-popup-team-crest-fallback{
  width:1em;
  height:1em;
  min-width:1em;
  font-size:.42em;
}
/* Der Container übernimmt die Schriftgröße des direkt zugehörigen Mannschaftsnamens. */
.game-popup-team{font-size:inherit}
.game-popup-team .game-popup-team-crest{font-size:1em}
.game-team-select-preview{font-size:12px}
.allocation-team-preview,.exchange-team-preview{font-size:16px}
.exchange-card-team{font-size:inherit}


/* v142 – kompakte Mannschaftsfelder und Tauschbörsen-Karten */
.inline-team-field{min-height:44px;display:flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--text);box-sizing:border-box}
.inline-team-crest{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.inline-team-crest .game-popup-team-crest{width:26px;height:26px;min-width:26px;padding:2px;border-radius:7px}
.inline-team-crest .game-popup-team-crest img{width:100%;height:100%;object-fit:contain}
.inline-team-crest .game-popup-team-crest-fallback{font-size:8px}
.inline-team-name{font-size:12px;font-weight:800;line-height:1.2}
.exchange-form-panel{padding-top:20px}
.exchange-trade-card{display:block;padding:22px 24px;border-radius:22px;box-shadow:0 8px 24px rgba(23,28,34,.05)}
.exchange-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.exchange-card-matchup{display:flex;align-items:center;gap:14px;margin:16px 0 20px;font-size:20px;font-weight:950;flex-wrap:wrap}
.exchange-card-matchup .team-with-crest{gap:10px}
.exchange-card-matchup .team-with-crest .game-popup-team-crest{width:38px;height:38px;min-width:38px}
.exchange-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:15px;border-radius:16px;background:rgba(23,28,34,.035)}
.exchange-info-grid>div{display:grid;gap:3px}
.exchange-info-label{font-size:11px;color:var(--muted);font-weight:800}
.exchange-info-grid strong{font-size:17px;color:var(--text)}
.exchange-card-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding-top:15px;border-top:1px solid rgba(23,28,34,.08)}
.exchange-card-footer>div:first-child{display:grid;gap:3px}.exchange-card-footer small{color:var(--muted)}
.exchange-response-results{margin-top:0}
.exchange-trade-actions .member-access{white-space:nowrap}
@media(max-width:760px){.exchange-card-top,.exchange-card-footer{align-items:flex-start;flex-direction:column}.exchange-info-grid{grid-template-columns:1fr}.exchange-card-matchup{font-size:16px}.exchange-card-matchup .team-with-crest .game-popup-team-crest{width:30px;height:30px;min-width:30px}}

/* v143 – Korrektur: Wappen kompakt direkt neben dem Mannschaftsnamen */
.inline-team-field{
  min-height:44px;
  height:44px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  overflow:hidden;
}
.inline-team-crest{
  width:20px;
  height:20px;
  min-width:20px;
  flex:0 0 20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.inline-team-crest > .game-popup-team-crest{
  width:20px !important;
  height:20px !important;
  min-width:20px !important;
  max-width:20px !important;
  flex:0 0 20px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.inline-team-crest > .game-popup-team-crest > img{
  display:block !important;
  width:20px !important;
  height:20px !important;
  min-width:20px !important;
  max-width:20px !important;
  min-height:20px !important;
  max-height:20px !important;
  object-fit:contain !important;
  filter:none !important;
}
.inline-team-crest .game-popup-team-crest-fallback{
  width:20px !important;
  height:20px !important;
  min-width:20px !important;
  max-width:20px !important;
  font-size:7px !important;
  border-radius:50% !important;
}
.inline-team-name{
  min-width:0;
  font-size:14px;
  font-weight:800;
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
/* Auch in der Tauschbörse bleibt das Wappen im Formular bewusst klein. */
.exchange-trade-form .inline-team-field,
.allocation-game-info .inline-team-field{height:44px;min-height:44px}
/* v144 – bestehende Vergaben direkt an der Karte bearbeiten */
.saved-allocation-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.allocation-direct-editor{margin-top:12px;padding-top:12px;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(3,minmax(150px,1fr)) auto;gap:10px;align-items:end}.allocation-direct-editor[hidden]{display:none}.allocation-direct-editor label{display:grid;gap:6px;font-size:11px;font-weight:800;color:var(--muted)}.allocation-direct-editor input,.allocation-direct-editor select{min-height:42px;border:1px solid var(--line);border-radius:10px;padding:8px 10px;background:#fff;font:inherit;color:var(--text)}@media(max-width:820px){.allocation-direct-editor{grid-template-columns:1fr 1fr}.saved-allocation-actions{width:100%}.saved-allocation-actions button{flex:1}}@media(max-width:520px){.allocation-direct-editor{grid-template-columns:1fr}}

/* v145 – Spielinformation: Vereinswappen bewusst größer als in Formularzeilen */
#dashboardGameModal .game-popup-matchup .game-popup-team .game-popup-team-crest{
  width:56px !important;
  height:56px !important;
  min-width:56px !important;
  flex:0 0 56px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
#dashboardGameModal .game-popup-matchup .game-popup-team .game-popup-team-crest img{
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  filter:drop-shadow(0 4px 7px rgba(0,0,0,.10)) !important;
}
#dashboardGameModal .game-popup-matchup .game-popup-team .game-popup-team-crest-fallback{
  width:52px !important;
  height:52px !important;
  min-width:52px !important;
  font-size:13px !important;
}
@media(max-width:620px){
  #dashboardGameModal .game-popup-matchup .game-popup-team .game-popup-team-crest{
    width:44px !important;height:44px !important;min-width:44px !important;flex-basis:44px !important;
  }
  #dashboardGameModal .game-popup-matchup .game-popup-team .game-popup-team-crest-fallback{
    width:40px !important;height:40px !important;min-width:40px !important;font-size:11px !important;
  }
}


